]> git.saurik.com Git - cycript.git/blob - configure
Use flex version 2.5.33.
[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 ac_ct_OBJCXX
809 OBJCXXFLAGS
810 OBJCXX
811 ifGNUmake
812 LIBFFI_LIBS
813 LIBFFI_CFLAGS
814 WEBKIT_LIBS
815 WEBKIT_CFLAGS
816 PKG_CONFIG
817 LTLIBICONV
818 LIBICONV
819 INSTALL_DATA
820 INSTALL_SCRIPT
821 INSTALL_PROGRAM
822 CXXCPP
823 ac_ct_CXX
824 CXXFLAGS
825 CXX
826 LTLIBAPR
827 TIME
828 GPERF
829 _BASH
830 FLEX
831 LEXLIB
832 LEX_OUTPUT_ROOT
833 LEX
834 BISON
835 AWK
836 YFLAGS
837 YACC
838 CPP
839 OTOOL64
840 OTOOL
841 LIPO
842 NMEDIT
843 DSYMUTIL
844 lt_ECHO
845 RANLIB
846 STRIP
847 AR
848 OBJDUMP
849 LN_S
850 NM
851 ac_ct_DUMPBIN
852 DUMPBIN
853 LD
854 FGREP
855 EGREP
856 GREP
857 SED
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 host_os
866 host_vendor
867 host_cpu
868 host
869 build_os
870 build_vendor
871 build_cpu
872 build
873 LIBTOOL
874 target_alias
875 host_alias
876 build_alias
877 LIBS
878 ECHO_T
879 ECHO_N
880 ECHO_C
881 DEFS
882 mandir
883 localedir
884 libdir
885 psdir
886 pdfdir
887 dvidir
888 htmldir
889 infodir
890 docdir
891 oldincludedir
892 includedir
893 localstatedir
894 sharedstatedir
895 sysconfdir
896 datadir
897 datarootdir
898 libexecdir
899 sbindir
900 bindir
901 program_transform_name
902 prefix
903 exec_prefix
904 PACKAGE_URL
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 enable_static
916 enable_shared
917 with_pic
918 enable_fast_install
919 with_gnu_ld
920 enable_libtool_lock
921 with_apr
922 enable_rpath
923 with_libiconv_prefix
924 '
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CPP
934 YACC
935 YFLAGS
936 CXX
937 CXXFLAGS
938 CCC
939 CXXCPP
940 PKG_CONFIG
941 WEBKIT_CFLAGS
942 WEBKIT_LIBS
943 LIBFFI_CFLAGS
944 LIBFFI_LIBS
945 OBJCXX
946 OBJCXXFLAGS'
947
948
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1006 fi
1007
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1043
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1076
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354 done
1355
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1359 fi
1360
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1367 fi
1368
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1374 do
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1452 fi
1453 else
1454 ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459 fi
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1542
1543 cat <<\_ACEOF
1544
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of Cycript 0.9:";;
1554 esac
1555 cat <<\_ACEOF
1556
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-static[=PKGS] build static libraries [default=no]
1562 --enable-shared[=PKGS] build shared libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --disable-rpath do not hardcode runtime library paths
1567
1568 Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-pic try to use only PIC/non-PIC objects [default=use
1572 both]
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-apr=PATH prefix for installed APR or the full path to
1575 apr-config
1576 --with-gnu-ld assume the C compiler uses GNU ld default=no
1577 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1578 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1579
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
1594 CXX C++ compiler command
1595 CXXFLAGS C++ compiler flags
1596 CXXCPP C++ preprocessor
1597 PKG_CONFIG path to pkg-config utility
1598 WEBKIT_CFLAGS
1599 C compiler flags for WEBKIT, overriding pkg-config
1600 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1601 LIBFFI_CFLAGS
1602 C compiler flags for LIBFFI, overriding pkg-config
1603 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1604 OBJCXX Objective C++ compiler command
1605 OBJCXXFLAGS Objective C++ compiler flags
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to <saurik@saurik.com>.
1611 Cycript home page: <http://www.cycript.org/>.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 Cycript configure 0.9
1675 generated by GNU Autoconf 2.65
1676
1677 Copyright (C) 2009 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 $as_test_x conftest$ac_exeext
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
1801 } # ac_fn_c_check_header_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } >/dev/null && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1844 ac_fn_c_try_run ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=$ac_status
1875 fi
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_run
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_c_check_header_mongrel ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ;;
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ( cat <<\_ASBOX
2020 ## -------------------------------- ##
2021 ## Report this to saurik@saurik.com ##
2022 ## -------------------------------- ##
2023 _ASBOX
2024 ) | sed "s/^/$as_me: WARNING: /" >&2
2025 ;;
2026 esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 eval "$3=\$ac_header_compiler"
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 fi
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040 } # ac_fn_c_check_header_mongrel
2041
2042 # ac_fn_cxx_try_compile LINENO
2043 # ----------------------------
2044 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2045 ac_fn_cxx_try_compile ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 rm -f conftest.$ac_objext
2049 if { { ac_try="$ac_compile"
2050 case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_compile") 2>conftest.err
2057 ac_status=$?
2058 if test -s conftest.err; then
2059 grep -v '^ *+' conftest.err >conftest.er1
2060 cat conftest.er1 >&5
2061 mv -f conftest.er1 conftest.err
2062 fi
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; } && {
2065 test -z "$ac_cxx_werror_flag" ||
2066 test ! -s conftest.err
2067 } && test -s conftest.$ac_objext; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_retval=1
2074 fi
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 as_fn_set_status $ac_retval
2077
2078 } # ac_fn_cxx_try_compile
2079
2080 # ac_fn_cxx_try_cpp LINENO
2081 # ------------------------
2082 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2083 ac_fn_cxx_try_cpp ()
2084 {
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
2102 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2103 test ! -s conftest.err
2104 }; 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_cxx_try_cpp
2116
2117 # ac_fn_cxx_try_link LINENO
2118 # -------------------------
2119 # Try to link conftest.$ac_ext, and return whether this succeeded.
2120 ac_fn_cxx_try_link ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 rm -f conftest.$ac_objext conftest$ac_exeext
2124 if { { ac_try="$ac_link"
2125 case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_link") 2>conftest.err
2132 ac_status=$?
2133 if test -s conftest.err; then
2134 grep -v '^ *+' conftest.err >conftest.er1
2135 cat conftest.er1 >&5
2136 mv -f conftest.er1 conftest.err
2137 fi
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && {
2140 test -z "$ac_cxx_werror_flag" ||
2141 test ! -s conftest.err
2142 } && test -s conftest$ac_exeext && {
2143 test "$cross_compiling" = yes ||
2144 $as_test_x conftest$ac_exeext
2145 }; then :
2146 ac_retval=0
2147 else
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_retval=1
2152 fi
2153 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2154 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2155 # interfere with the next link command; also delete a directory that is
2156 # left behind by Apple's compiler. We do this before executing the actions.
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 as_fn_set_status $ac_retval
2160
2161 } # ac_fn_cxx_try_link
2162
2163 # ac_fn_objcxx_try_compile LINENO
2164 # -------------------------------
2165 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_objcxx_try_compile ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 rm -f conftest.$ac_objext
2170 if { { ac_try="$ac_compile"
2171 case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_compile") 2>conftest.err
2178 ac_status=$?
2179 if test -s conftest.err; then
2180 grep -v '^ *+' conftest.err >conftest.er1
2181 cat conftest.er1 >&5
2182 mv -f conftest.er1 conftest.err
2183 fi
2184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185 test $ac_status = 0; } && {
2186 test -z "$ac_objcxx_werror_flag" ||
2187 test ! -s conftest.err
2188 } && test -s conftest.$ac_objext; then :
2189 ac_retval=0
2190 else
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_retval=1
2195 fi
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197 as_fn_set_status $ac_retval
2198
2199 } # ac_fn_objcxx_try_compile
2200 cat >config.log <<_ACEOF
2201 This file contains any messages produced by compilers while
2202 running configure, to aid debugging if configure makes a mistake.
2203
2204 It was created by Cycript $as_me 0.9, which was
2205 generated by GNU Autoconf 2.65. Invocation command line was
2206
2207 $ $0 $@
2208
2209 _ACEOF
2210 exec 5>>config.log
2211 {
2212 cat <<_ASUNAME
2213 ## --------- ##
2214 ## Platform. ##
2215 ## --------- ##
2216
2217 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2218 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2219 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2220 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2221 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2222
2223 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2224 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2225
2226 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2227 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2228 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2229 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2230 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2231 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2232 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2233
2234 _ASUNAME
2235
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 $as_echo "PATH: $as_dir"
2242 done
2243 IFS=$as_save_IFS
2244
2245 } >&5
2246
2247 cat >&5 <<_ACEOF
2248
2249
2250 ## ----------- ##
2251 ## Core tests. ##
2252 ## ----------- ##
2253
2254 _ACEOF
2255
2256
2257 # Keep a trace of the command line.
2258 # Strip out --no-create and --no-recursion so they do not pile up.
2259 # Strip out --silent because we don't want to record it for future runs.
2260 # Also quote any args containing shell meta-characters.
2261 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_configure_args=
2263 ac_configure_args0=
2264 ac_configure_args1=
2265 ac_must_keep_next=false
2266 for ac_pass in 1 2
2267 do
2268 for ac_arg
2269 do
2270 case $ac_arg in
2271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2273 | -silent | --silent | --silen | --sile | --sil)
2274 continue ;;
2275 *\'*)
2276 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 esac
2278 case $ac_pass in
2279 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2280 2)
2281 as_fn_append ac_configure_args1 " '$ac_arg'"
2282 if test $ac_must_keep_next = true; then
2283 ac_must_keep_next=false # Got value, back to normal.
2284 else
2285 case $ac_arg in
2286 *=* | --config-cache | -C | -disable-* | --disable-* \
2287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2289 | -with-* | --with-* | -without-* | --without-* | --x)
2290 case "$ac_configure_args0 " in
2291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2292 esac
2293 ;;
2294 -* ) ac_must_keep_next=true ;;
2295 esac
2296 fi
2297 as_fn_append ac_configure_args " '$ac_arg'"
2298 ;;
2299 esac
2300 done
2301 done
2302 { ac_configure_args0=; unset ac_configure_args0;}
2303 { ac_configure_args1=; unset ac_configure_args1;}
2304
2305 # When interrupted or exit'd, cleanup temporary files, and complete
2306 # config.log. We remove comments because anyway the quotes in there
2307 # would cause problems or look ugly.
2308 # WARNING: Use '\'' to represent an apostrophe within the trap.
2309 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2310 trap 'exit_status=$?
2311 # Save into config.log some information that might help in debugging.
2312 {
2313 echo
2314
2315 cat <<\_ASBOX
2316 ## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##
2319 _ASBOX
2320 echo
2321 # The following way of writing the cache mishandles newlines in values,
2322 (
2323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in #(
2326 *${as_nl}*)
2327 case $ac_var in #(
2328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2329 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2330 esac
2331 case $ac_var in #(
2332 _ | IFS | as_nl) ;; #(
2333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2334 *) { eval $ac_var=; unset $ac_var;} ;;
2335 esac ;;
2336 esac
2337 done
2338 (set) 2>&1 |
2339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2340 *${as_nl}ac_space=\ *)
2341 sed -n \
2342 "s/'\''/'\''\\\\'\'''\''/g;
2343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2344 ;; #(
2345 *)
2346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2347 ;;
2348 esac |
2349 sort
2350 )
2351 echo
2352
2353 cat <<\_ASBOX
2354 ## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##
2357 _ASBOX
2358 echo
2359 for ac_var in $ac_subst_vars
2360 do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 esac
2365 $as_echo "$ac_var='\''$ac_val'\''"
2366 done | sort
2367 echo
2368
2369 if test -n "$ac_subst_files"; then
2370 cat <<\_ASBOX
2371 ## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##
2374 _ASBOX
2375 echo
2376 for ac_var in $ac_subst_files
2377 do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in
2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 esac
2382 $as_echo "$ac_var='\''$ac_val'\''"
2383 done | sort
2384 echo
2385 fi
2386
2387 if test -s confdefs.h; then
2388 cat <<\_ASBOX
2389 ## ----------- ##
2390 ## confdefs.h. ##
2391 ## ----------- ##
2392 _ASBOX
2393 echo
2394 cat confdefs.h
2395 echo
2396 fi
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2400 } >&5
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2403 exit $exit_status
2404 ' 0
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 done
2408 ac_signal=0
2409
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2412
2413 $as_echo "/* confdefs.h */" > confdefs.h
2414
2415 # Predefined preprocessor variables.
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2439 _ACEOF
2440
2441
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2444 ac_site_file1=NONE
2445 ac_site_file2=NONE
2446 if test -n "$CONFIG_SITE"; then
2447 ac_site_file1=$CONFIG_SITE
2448 elif test "x$prefix" != xNONE; then
2449 ac_site_file1=$prefix/share/config.site
2450 ac_site_file2=$prefix/etc/config.site
2451 else
2452 ac_site_file1=$ac_default_prefix/share/config.site
2453 ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457 test "x$ac_site_file" = xNONE && continue
2458 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461 sed 's/^/| /' "$ac_site_file" >&5
2462 . "$ac_site_file"
2463 fi
2464 done
2465
2466 if test -r "$cache_file"; then
2467 # Some versions of bash will fail to source /dev/null (special files
2468 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2469 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471 $as_echo "$as_me: loading cache $cache_file" >&6;}
2472 case $cache_file in
2473 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474 *) . "./$cache_file";;
2475 esac
2476 fi
2477 else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479 $as_echo "$as_me: creating cache $cache_file" >&6;}
2480 >$cache_file
2481 fi
2482
2483 # Check that the precious variables saved in the cache have kept the same
2484 # value.
2485 ac_cache_corrupted=false
2486 for ac_var in $ac_precious_vars; do
2487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488 eval ac_new_set=\$ac_env_${ac_var}_set
2489 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490 eval ac_new_val=\$ac_env_${ac_var}_value
2491 case $ac_old_set,$ac_new_set in
2492 set,)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2496 ,set)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499 ac_cache_corrupted=: ;;
2500 ,);;
2501 *)
2502 if test "x$ac_old_val" != "x$ac_new_val"; then
2503 # differences in whitespace do not lead to failure.
2504 ac_old_val_w=`echo x $ac_old_val`
2505 ac_new_val_w=`echo x $ac_new_val`
2506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509 ac_cache_corrupted=:
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513 eval $ac_var=\$ac_old_val
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2516 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2518 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2519 fi;;
2520 esac
2521 # Pass precious variables to config.status.
2522 if test "$ac_new_set" = set; then
2523 case $ac_new_val in
2524 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525 *) ac_arg=$ac_var=$ac_new_val ;;
2526 esac
2527 case " $ac_configure_args " in
2528 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2529 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530 esac
2531 fi
2532 done
2533 if $ac_cache_corrupted; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2539 fi
2540 ## -------------------- ##
2541 ## Main body of script. ##
2542 ## -------------------- ##
2543
2544 ac_ext=c
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550
2551
2552 ac_aux_dir=
2553 for ac_dir in . "$srcdir"/.; do
2554 for ac_t in install-sh install.sh shtool; do
2555 if test -f "$ac_dir/$ac_t"; then
2556 ac_aux_dir=$ac_dir
2557 ac_install_sh="$ac_aux_dir/$ac_t -c"
2558 break 2
2559 fi
2560 done
2561 done
2562 if test -z "$ac_aux_dir"; then
2563 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2564 fi
2565
2566 # These three variables are undocumented and unsupported,
2567 # and are intended to be withdrawn in a future Autoconf release.
2568 # They can cause serious problems if a builder's source tree is in a directory
2569 # whose full name contains unusual characters.
2570 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2571 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2572 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2573
2574
2575 case `pwd` in
2576 *\ * | *\ *)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2578 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2579 esac
2580
2581
2582
2583 macro_version='2.2.6b'
2584 macro_revision='1.3017'
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598 ltmain="$ac_aux_dir/ltmain.sh"
2599
2600 # Make sure we can run config.sub.
2601 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2602 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2605 $as_echo_n "checking build system type... " >&6; }
2606 if test "${ac_cv_build+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 ac_build_alias=$build_alias
2610 test "x$ac_build_alias" = x &&
2611 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2612 test "x$ac_build_alias" = x &&
2613 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2614 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2615 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2619 $as_echo "$ac_cv_build" >&6; }
2620 case $ac_cv_build in
2621 *-*-*) ;;
2622 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2623 esac
2624 build=$ac_cv_build
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_build
2627 shift
2628 build_cpu=$1
2629 build_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 build_os=$*
2634 IFS=$ac_save_IFS
2635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2639 $as_echo_n "checking host system type... " >&6; }
2640 if test "${ac_cv_host+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test "x$host_alias" = x; then
2644 ac_cv_host=$ac_cv_build
2645 else
2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2648 fi
2649
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2652 $as_echo "$ac_cv_host" >&6; }
2653 case $ac_cv_host in
2654 *-*-*) ;;
2655 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2656 esac
2657 host=$ac_cv_host
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_host
2660 shift
2661 host_cpu=$1
2662 host_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 host_os=$*
2667 IFS=$ac_save_IFS
2668 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_CC+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$ac_cv_prog_CC"; then
2716 ac_ct_CC=$CC
2717 # Extract the first word of "gcc", so it can be a program name with args.
2718 set dummy gcc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_CC="gcc"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747 $as_echo "$ac_ct_CC" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753 if test "x$ac_ct_CC" = x; then
2754 CC=""
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762 CC=$ac_ct_CC
2763 fi
2764 else
2765 CC="$ac_cv_prog_CC"
2766 fi
2767
2768 if test -z "$CC"; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}cc; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_CC+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CC="${ac_tool_prefix}cc"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 fi
2809 if test -z "$CC"; then
2810 # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 ac_prog_rejected=no
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829 ac_prog_rejected=yes
2830 continue
2831 fi
2832 ac_cv_prog_CC="cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 if test $ac_prog_rejected = yes; then
2841 # We found a bogon in the path, so make sure we never use it.
2842 set dummy $ac_cv_prog_CC
2843 shift
2844 if test $# != 0; then
2845 # We chose a different compiler from the bogus one.
2846 # However, it has the same basename, so the bogon will be chosen
2847 # first if we set CC to just the basename; use the full file name.
2848 shift
2849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850 fi
2851 fi
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 fi
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 for ac_prog in cl.exe
2868 do
2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 test -n "$CC" && break
2907 done
2908 fi
2909 if test -z "$CC"; then
2910 ac_ct_CC=$CC
2911 for ac_prog in cl.exe
2912 do
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 ac_cv_prog_ac_ct_CC="$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950 test -n "$ac_ct_CC" && break
2951 done
2952
2953 if test "x$ac_ct_CC" = x; then
2954 CC=""
2955 else
2956 case $cross_compiling:$ac_tool_warned in
2957 yes:)
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2961 esac
2962 CC=$ac_ct_CC
2963 fi
2964 fi
2965
2966 fi
2967
2968
2969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error "no acceptable C compiler found in \$PATH
2972 See \`config.log' for more details." "$LINENO" 5; }
2973
2974 # Provide some information about the compiler.
2975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2976 set X $ac_compile
2977 ac_compiler=$2
2978 for ac_option in --version -v -V -qversion; do
2979 { { ac_try="$ac_compiler $ac_option >&5"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$?
2988 if test -s conftest.err; then
2989 sed '10a\
2990 ... rest of stderr output deleted ...
2991 10q' conftest.err >conftest.er1
2992 cat conftest.er1 >&5
2993 fi
2994 rm -f conftest.er1 conftest.err
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }
2997 done
2998
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3001
3002 int
3003 main ()
3004 {
3005
3006 ;
3007 return 0;
3008 }
3009 _ACEOF
3010 ac_clean_files_save=$ac_clean_files
3011 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012 # Try to create an executable without -o first, disregard a.out.
3013 # It will help us diagnose broken compilers, and finding out an intuition
3014 # of exeext.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016 $as_echo_n "checking whether the C compiler works... " >&6; }
3017 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018
3019 # The possible output files:
3020 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3021
3022 ac_rmfiles=
3023 for ac_file in $ac_files
3024 do
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028 esac
3029 done
3030 rm -f $ac_rmfiles
3031
3032 if { { ac_try="$ac_link_default"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_link_default") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3046 # so that the user can short-circuit this test for compilers unknown to
3047 # Autoconf.
3048 for ac_file in $ac_files ''
3049 do
3050 test -f "$ac_file" || continue
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3053 ;;
3054 [ab].out )
3055 # We found the default executable, but exeext='' is most
3056 # certainly right.
3057 break;;
3058 *.* )
3059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060 then :; else
3061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062 fi
3063 # We set ac_cv_exeext here because the later test for it is not
3064 # safe: cross compilers may not add the suffix if given an `-o'
3065 # argument, so we may need to know it at that point already.
3066 # Even if this section looks crufty: it has the advantage of
3067 # actually working.
3068 break;;
3069 * )
3070 break;;
3071 esac
3072 done
3073 test "$ac_cv_exeext" = no && ac_cv_exeext=
3074
3075 else
3076 ac_file=''
3077 fi
3078 if test -z "$ac_file"; then :
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 { as_fn_set_status 77
3087 as_fn_error "C compiler cannot create executables
3088 See \`config.log' for more details." "$LINENO" 5; }; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3094 $as_echo_n "checking for C compiler default output file name... " >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3096 $as_echo "$ac_file" >&6; }
3097 ac_exeext=$ac_cv_exeext
3098
3099 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3100 ac_clean_files=$ac_clean_files_save
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3102 $as_echo_n "checking for suffix of executables... " >&6; }
3103 if { { ac_try="$ac_link"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3115 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3116 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 # `rm'.
3118 for ac_file in conftest.exe conftest conftest.*; do
3119 test -f "$ac_file" || continue
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3122 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 break;;
3124 * ) break;;
3125 esac
3126 done
3127 else
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error "cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." "$LINENO" 5; }
3132 fi
3133 rm -f conftest conftest$ac_cv_exeext
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3135 $as_echo "$ac_cv_exeext" >&6; }
3136
3137 rm -f conftest.$ac_ext
3138 EXEEXT=$ac_cv_exeext
3139 ac_exeext=$EXEEXT
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3142 #include <stdio.h>
3143 int
3144 main ()
3145 {
3146 FILE *f = fopen ("conftest.out", "w");
3147 return ferror (f) || fclose (f) != 0;
3148
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 ac_clean_files="$ac_clean_files conftest.out"
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3157 $as_echo_n "checking whether we are cross compiling... " >&6; }
3158 if test "$cross_compiling" != yes; then
3159 { { ac_try="$ac_link"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link") 2>&5
3167 ac_status=$?
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }
3170 if { ac_try='./conftest$ac_cv_exeext'
3171 { { case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_try") 2>&5
3178 ac_status=$?
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; }; then
3181 cross_compiling=no
3182 else
3183 if test "$cross_compiling" = maybe; then
3184 cross_compiling=yes
3185 else
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error "cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." "$LINENO" 5; }
3191 fi
3192 fi
3193 fi
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3195 $as_echo "$cross_compiling" >&6; }
3196
3197 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3198 ac_clean_files=$ac_clean_files_save
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3200 $as_echo_n "checking for suffix of object files... " >&6; }
3201 if test "${ac_cv_objext+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206
3207 int
3208 main ()
3209 {
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.o conftest.obj
3216 if { { ac_try="$ac_compile"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_compile") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; then :
3227 for ac_file in conftest.o conftest.obj conftest.*; do
3228 test -f "$ac_file" || continue;
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3231 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3232 break;;
3233 esac
3234 done
3235 else
3236 $as_echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error "cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." "$LINENO" 5; }
3243 fi
3244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3247 $as_echo "$ac_cv_objext" >&6; }
3248 OBJEXT=$ac_cv_objext
3249 ac_objext=$OBJEXT
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3251 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257
3258 int
3259 main ()
3260 {
3261 #ifndef __GNUC__
3262 choke me
3263 #endif
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 if ac_fn_c_try_compile "$LINENO"; then :
3270 ac_compiler_gnu=yes
3271 else
3272 ac_compiler_gnu=no
3273 fi
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3276
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3279 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3280 if test $ac_compiler_gnu = yes; then
3281 GCC=yes
3282 else
3283 GCC=
3284 fi
3285 ac_test_CFLAGS=${CFLAGS+set}
3286 ac_save_CFLAGS=$CFLAGS
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3288 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3289 if test "${ac_cv_prog_cc_g+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 ac_save_c_werror_flag=$ac_c_werror_flag
3293 ac_c_werror_flag=yes
3294 ac_cv_prog_cc_g=no
3295 CFLAGS="-g"
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308 ac_cv_prog_cc_g=yes
3309 else
3310 CFLAGS=""
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323
3324 else
3325 ac_c_werror_flag=$ac_save_c_werror_flag
3326 CFLAGS="-g"
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3329
3330 int
3331 main ()
3332 {
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_cv_prog_cc_g=yes
3340 fi
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 fi
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 ac_c_werror_flag=$ac_save_c_werror_flag
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3349 $as_echo "$ac_cv_prog_cc_g" >&6; }
3350 if test "$ac_test_CFLAGS" = set; then
3351 CFLAGS=$ac_save_CFLAGS
3352 elif test $ac_cv_prog_cc_g = yes; then
3353 if test "$GCC" = yes; then
3354 CFLAGS="-g -O2"
3355 else
3356 CFLAGS="-g"
3357 fi
3358 else
3359 if test "$GCC" = yes; then
3360 CFLAGS="-O2"
3361 else
3362 CFLAGS=
3363 fi
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3366 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3367 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 ac_cv_prog_cc_c89=no
3371 ac_save_CC=$CC
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374 #include <stdarg.h>
3375 #include <stdio.h>
3376 #include <sys/types.h>
3377 #include <sys/stat.h>
3378 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3379 struct buf { int x; };
3380 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3381 static char *e (p, i)
3382 char **p;
3383 int i;
3384 {
3385 return p[i];
3386 }
3387 static char *f (char * (*g) (char **, int), char **p, ...)
3388 {
3389 char *s;
3390 va_list v;
3391 va_start (v,p);
3392 s = g (p, va_arg (v,int));
3393 va_end (v);
3394 return s;
3395 }
3396
3397 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3398 function prototypes and stuff, but not '\xHH' hex character constants.
3399 These don't provoke an error unfortunately, instead are silently treated
3400 as 'x'. The following induces an error, until -std is added to get
3401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3402 array size at least. It's necessary to write '\x00'==0 to get something
3403 that's true only with -std. */
3404 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405
3406 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3407 inside strings and character constants. */
3408 #define FOO(x) 'x'
3409 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3410
3411 int test (int i, double x);
3412 struct s1 {int (*f) (int a);};
3413 struct s2 {int (*f) (double a);};
3414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 int argc;
3416 char **argv;
3417 int
3418 main ()
3419 {
3420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3426 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427 do
3428 CC="$ac_save_CC $ac_arg"
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_cv_prog_cc_c89=$ac_arg
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext
3433 test "x$ac_cv_prog_cc_c89" != "xno" && break
3434 done
3435 rm -f conftest.$ac_ext
3436 CC=$ac_save_CC
3437
3438 fi
3439 # AC_CACHE_VAL
3440 case "x$ac_cv_prog_cc_c89" in
3441 x)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3443 $as_echo "none needed" >&6; } ;;
3444 xno)
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3446 $as_echo "unsupported" >&6; } ;;
3447 *)
3448 CC="$CC $ac_cv_prog_cc_c89"
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3450 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3451 esac
3452 if test "x$ac_cv_prog_cc_c89" != xno; then :
3453
3454 fi
3455
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3463 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3464 if test "${ac_cv_path_SED+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3468 for ac_i in 1 2 3 4 5 6 7; do
3469 ac_script="$ac_script$as_nl$ac_script"
3470 done
3471 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3472 { ac_script=; unset ac_script;}
3473 if test -z "$SED"; then
3474 ac_path_SED_found=false
3475 # Loop through the user's path and test for each of PROGNAME-LIST
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_prog in sed gsed; do
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3484 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3485 # Check for GNU ac_path_SED and select it if it is found.
3486 # Check for GNU $ac_path_SED
3487 case `"$ac_path_SED" --version 2>&1` in
3488 *GNU*)
3489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3490 *)
3491 ac_count=0
3492 $as_echo_n 0123456789 >"conftest.in"
3493 while :
3494 do
3495 cat "conftest.in" "conftest.in" >"conftest.tmp"
3496 mv "conftest.tmp" "conftest.in"
3497 cp "conftest.in" "conftest.nl"
3498 $as_echo '' >> "conftest.nl"
3499 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501 as_fn_arith $ac_count + 1 && ac_count=$as_val
3502 if test $ac_count -gt ${ac_path_SED_max-0}; then
3503 # Best one so far, save it but keep looking for a better one
3504 ac_cv_path_SED="$ac_path_SED"
3505 ac_path_SED_max=$ac_count
3506 fi
3507 # 10*(2^10) chars as input seems more than enough
3508 test $ac_count -gt 10 && break
3509 done
3510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511 esac
3512
3513 $ac_path_SED_found && break 3
3514 done
3515 done
3516 done
3517 IFS=$as_save_IFS
3518 if test -z "$ac_cv_path_SED"; then
3519 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3520 fi
3521 else
3522 ac_cv_path_SED=$SED
3523 fi
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3527 $as_echo "$ac_cv_path_SED" >&6; }
3528 SED="$ac_cv_path_SED"
3529 rm -f conftest.sed
3530
3531 test -z "$SED" && SED=sed
3532 Xsed="$SED -e 1s/^X//"
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3545 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3546 if test "${ac_cv_path_GREP+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -z "$GREP"; then
3550 ac_path_GREP_found=false
3551 # Loop through the user's path and test for each of PROGNAME-LIST
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554 do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_prog in grep ggrep; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3561 # Check for GNU ac_path_GREP and select it if it is found.
3562 # Check for GNU $ac_path_GREP
3563 case `"$ac_path_GREP" --version 2>&1` in
3564 *GNU*)
3565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566 *)
3567 ac_count=0
3568 $as_echo_n 0123456789 >"conftest.in"
3569 while :
3570 do
3571 cat "conftest.in" "conftest.in" >"conftest.tmp"
3572 mv "conftest.tmp" "conftest.in"
3573 cp "conftest.in" "conftest.nl"
3574 $as_echo 'GREP' >> "conftest.nl"
3575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3577 as_fn_arith $ac_count + 1 && ac_count=$as_val
3578 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3579 # Best one so far, save it but keep looking for a better one
3580 ac_cv_path_GREP="$ac_path_GREP"
3581 ac_path_GREP_max=$ac_count
3582 fi
3583 # 10*(2^10) chars as input seems more than enough
3584 test $ac_count -gt 10 && break
3585 done
3586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3587 esac
3588
3589 $ac_path_GREP_found && break 3
3590 done
3591 done
3592 done
3593 IFS=$as_save_IFS
3594 if test -z "$ac_cv_path_GREP"; then
3595 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3596 fi
3597 else
3598 ac_cv_path_GREP=$GREP
3599 fi
3600
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3603 $as_echo "$ac_cv_path_GREP" >&6; }
3604 GREP="$ac_cv_path_GREP"
3605
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3608 $as_echo_n "checking for egrep... " >&6; }
3609 if test "${ac_cv_path_EGREP+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3613 then ac_cv_path_EGREP="$GREP -E"
3614 else
3615 if test -z "$EGREP"; then
3616 ac_path_EGREP_found=false
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3620 do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_prog in egrep; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3627 # Check for GNU ac_path_EGREP and select it if it is found.
3628 # Check for GNU $ac_path_EGREP
3629 case `"$ac_path_EGREP" --version 2>&1` in
3630 *GNU*)
3631 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3632 *)
3633 ac_count=0
3634 $as_echo_n 0123456789 >"conftest.in"
3635 while :
3636 do
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
3640 $as_echo 'EGREP' >> "conftest.nl"
3641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3643 as_fn_arith $ac_count + 1 && ac_count=$as_val
3644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_EGREP="$ac_path_EGREP"
3647 ac_path_EGREP_max=$ac_count
3648 fi
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3651 done
3652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3653 esac
3654
3655 $ac_path_EGREP_found && break 3
3656 done
3657 done
3658 done
3659 IFS=$as_save_IFS
3660 if test -z "$ac_cv_path_EGREP"; then
3661 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3662 fi
3663 else
3664 ac_cv_path_EGREP=$EGREP
3665 fi
3666
3667 fi
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3670 $as_echo "$ac_cv_path_EGREP" >&6; }
3671 EGREP="$ac_cv_path_EGREP"
3672
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3675 $as_echo_n "checking for fgrep... " >&6; }
3676 if test "${ac_cv_path_FGREP+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3680 then ac_cv_path_FGREP="$GREP -F"
3681 else
3682 if test -z "$FGREP"; then
3683 ac_path_FGREP_found=false
3684 # Loop through the user's path and test for each of PROGNAME-LIST
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_prog in fgrep; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3693 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3694 # Check for GNU ac_path_FGREP and select it if it is found.
3695 # Check for GNU $ac_path_FGREP
3696 case `"$ac_path_FGREP" --version 2>&1` in
3697 *GNU*)
3698 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3699 *)
3700 ac_count=0
3701 $as_echo_n 0123456789 >"conftest.in"
3702 while :
3703 do
3704 cat "conftest.in" "conftest.in" >"conftest.tmp"
3705 mv "conftest.tmp" "conftest.in"
3706 cp "conftest.in" "conftest.nl"
3707 $as_echo 'FGREP' >> "conftest.nl"
3708 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3710 as_fn_arith $ac_count + 1 && ac_count=$as_val
3711 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3712 # Best one so far, save it but keep looking for a better one
3713 ac_cv_path_FGREP="$ac_path_FGREP"
3714 ac_path_FGREP_max=$ac_count
3715 fi
3716 # 10*(2^10) chars as input seems more than enough
3717 test $ac_count -gt 10 && break
3718 done
3719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3720 esac
3721
3722 $ac_path_FGREP_found && break 3
3723 done
3724 done
3725 done
3726 IFS=$as_save_IFS
3727 if test -z "$ac_cv_path_FGREP"; then
3728 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3729 fi
3730 else
3731 ac_cv_path_FGREP=$FGREP
3732 fi
3733
3734 fi
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3737 $as_echo "$ac_cv_path_FGREP" >&6; }
3738 FGREP="$ac_cv_path_FGREP"
3739
3740
3741 test -z "$GREP" && GREP=grep
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761 # Check whether --with-gnu-ld was given.
3762 if test "${with_gnu_ld+set}" = set; then :
3763 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3764 else
3765 with_gnu_ld=no
3766 fi
3767
3768 ac_prog=ld
3769 if test "$GCC" = yes; then
3770 # Check if gcc -print-prog-name=ld gives a path.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3772 $as_echo_n "checking for ld used by $CC... " >&6; }
3773 case $host in
3774 *-*-mingw*)
3775 # gcc leaves a trailing carriage return which upsets mingw
3776 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3777 *)
3778 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3779 esac
3780 case $ac_prog in
3781 # Accept absolute paths.
3782 [\\/]* | ?:[\\/]*)
3783 re_direlt='/[^/][^/]*/\.\./'
3784 # Canonicalize the pathname of ld
3785 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3786 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3787 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3788 done
3789 test -z "$LD" && LD="$ac_prog"
3790 ;;
3791 "")
3792 # If it fails, then pretend we aren't using GCC.
3793 ac_prog=ld
3794 ;;
3795 *)
3796 # If it is relative, then search for the first ld in PATH.
3797 with_gnu_ld=unknown
3798 ;;
3799 esac
3800 elif test "$with_gnu_ld" = yes; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3802 $as_echo_n "checking for GNU ld... " >&6; }
3803 else
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3805 $as_echo_n "checking for non-GNU ld... " >&6; }
3806 fi
3807 if test "${lt_cv_path_LD+set}" = set; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -z "$LD"; then
3811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3812 for ac_dir in $PATH; do
3813 IFS="$lt_save_ifs"
3814 test -z "$ac_dir" && ac_dir=.
3815 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3816 lt_cv_path_LD="$ac_dir/$ac_prog"
3817 # Check to see if the program is GNU ld. I'd rather use --version,
3818 # but apparently some variants of GNU ld only accept -v.
3819 # Break only if it was the GNU/non-GNU ld that we prefer.
3820 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3821 *GNU* | *'with BFD'*)
3822 test "$with_gnu_ld" != no && break
3823 ;;
3824 *)
3825 test "$with_gnu_ld" != yes && break
3826 ;;
3827 esac
3828 fi
3829 done
3830 IFS="$lt_save_ifs"
3831 else
3832 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3833 fi
3834 fi
3835
3836 LD="$lt_cv_path_LD"
3837 if test -n "$LD"; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3839 $as_echo "$LD" >&6; }
3840 else
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 fi
3844 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3846 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3847 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3851 case `$LD -v 2>&1 </dev/null` in
3852 *GNU* | *'with BFD'*)
3853 lt_cv_prog_gnu_ld=yes
3854 ;;
3855 *)
3856 lt_cv_prog_gnu_ld=no
3857 ;;
3858 esac
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3861 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3862 with_gnu_ld=$lt_cv_prog_gnu_ld
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3873 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3874 if test "${lt_cv_path_NM+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 if test -n "$NM"; then
3878 # Let the user override the test.
3879 lt_cv_path_NM="$NM"
3880 else
3881 lt_nm_to_check="${ac_tool_prefix}nm"
3882 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3883 lt_nm_to_check="$lt_nm_to_check nm"
3884 fi
3885 for lt_tmp_nm in $lt_nm_to_check; do
3886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3887 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3888 IFS="$lt_save_ifs"
3889 test -z "$ac_dir" && ac_dir=.
3890 tmp_nm="$ac_dir/$lt_tmp_nm"
3891 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3892 # Check to see if the nm accepts a BSD-compat flag.
3893 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3894 # nm: unknown option "B" ignored
3895 # Tru64's nm complains that /dev/null is an invalid object file
3896 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3897 */dev/null* | *'Invalid file or object type'*)
3898 lt_cv_path_NM="$tmp_nm -B"
3899 break
3900 ;;
3901 *)
3902 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3903 */dev/null*)
3904 lt_cv_path_NM="$tmp_nm -p"
3905 break
3906 ;;
3907 *)
3908 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3909 continue # so that we can try to find one that supports BSD flags
3910 ;;
3911 esac
3912 ;;
3913 esac
3914 fi
3915 done
3916 IFS="$lt_save_ifs"
3917 done
3918 : ${lt_cv_path_NM=no}
3919 fi
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3922 $as_echo "$lt_cv_path_NM" >&6; }
3923 if test "$lt_cv_path_NM" != "no"; then
3924 NM="$lt_cv_path_NM"
3925 else
3926 # Didn't find any BSD compatible name lister, look for dumpbin.
3927 if test -n "$ac_tool_prefix"; then
3928 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3929 do
3930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -n "$DUMPBIN"; then
3938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951 done
3952 done
3953 IFS=$as_save_IFS
3954
3955 fi
3956 fi
3957 DUMPBIN=$ac_cv_prog_DUMPBIN
3958 if test -n "$DUMPBIN"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3960 $as_echo "$DUMPBIN" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964 fi
3965
3966
3967 test -n "$DUMPBIN" && break
3968 done
3969 fi
3970 if test -z "$DUMPBIN"; then
3971 ac_ct_DUMPBIN=$DUMPBIN
3972 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3973 do
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -n "$ac_ct_DUMPBIN"; then
3982 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4002 if test -n "$ac_ct_DUMPBIN"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4004 $as_echo "$ac_ct_DUMPBIN" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010
4011 test -n "$ac_ct_DUMPBIN" && break
4012 done
4013
4014 if test "x$ac_ct_DUMPBIN" = x; then
4015 DUMPBIN=":"
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 DUMPBIN=$ac_ct_DUMPBIN
4024 fi
4025 fi
4026
4027
4028 if test "$DUMPBIN" != ":"; then
4029 NM="$DUMPBIN"
4030 fi
4031 fi
4032 test -z "$NM" && NM=nm
4033
4034
4035
4036
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4040 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4041 if test "${lt_cv_nm_interface+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 lt_cv_nm_interface="BSD nm"
4045 echo "int some_variable = 0;" > conftest.$ac_ext
4046 (eval echo "\"\$as_me:4046: $ac_compile\"" >&5)
4047 (eval "$ac_compile" 2>conftest.err)
4048 cat conftest.err >&5
4049 (eval echo "\"\$as_me:4049: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4050 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4051 cat conftest.err >&5
4052 (eval echo "\"\$as_me:4052: output\"" >&5)
4053 cat conftest.out >&5
4054 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4055 lt_cv_nm_interface="MS dumpbin"
4056 fi
4057 rm -f conftest*
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4060 $as_echo "$lt_cv_nm_interface" >&6; }
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4063 $as_echo_n "checking whether ln -s works... " >&6; }
4064 LN_S=$as_ln_s
4065 if test "$LN_S" = "ln -s"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4067 $as_echo "yes" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4070 $as_echo "no, using $LN_S" >&6; }
4071 fi
4072
4073 # find the maximum length of command line arguments
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4075 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4076 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 i=0
4080 teststring="ABCD"
4081
4082 case $build_os in
4083 msdosdjgpp*)
4084 # On DJGPP, this test can blow up pretty badly due to problems in libc
4085 # (any single argument exceeding 2000 bytes causes a buffer overrun
4086 # during glob expansion). Even if it were fixed, the result of this
4087 # check would be larger than it should be.
4088 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4089 ;;
4090
4091 gnu*)
4092 # Under GNU Hurd, this test is not required because there is
4093 # no limit to the length of command line arguments.
4094 # Libtool will interpret -1 as no limit whatsoever
4095 lt_cv_sys_max_cmd_len=-1;
4096 ;;
4097
4098 cygwin* | mingw* | cegcc*)
4099 # On Win9x/ME, this test blows up -- it succeeds, but takes
4100 # about 5 minutes as the teststring grows exponentially.
4101 # Worse, since 9x/ME are not pre-emptively multitasking,
4102 # you end up with a "frozen" computer, even though with patience
4103 # the test eventually succeeds (with a max line length of 256k).
4104 # Instead, let's just punt: use the minimum linelength reported by
4105 # all of the supported platforms: 8192 (on NT/2K/XP).
4106 lt_cv_sys_max_cmd_len=8192;
4107 ;;
4108
4109 amigaos*)
4110 # On AmigaOS with pdksh, this test takes hours, literally.
4111 # So we just punt and use a minimum line length of 8192.
4112 lt_cv_sys_max_cmd_len=8192;
4113 ;;
4114
4115 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4116 # This has been around since 386BSD, at least. Likely further.
4117 if test -x /sbin/sysctl; then
4118 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4119 elif test -x /usr/sbin/sysctl; then
4120 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4121 else
4122 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4123 fi
4124 # And add a safety zone
4125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4127 ;;
4128
4129 interix*)
4130 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4131 lt_cv_sys_max_cmd_len=196608
4132 ;;
4133
4134 osf*)
4135 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4136 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4137 # nice to cause kernel panics so lets avoid the loop below.
4138 # First set a reasonable default.
4139 lt_cv_sys_max_cmd_len=16384
4140 #
4141 if test -x /sbin/sysconfig; then
4142 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4143 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4144 esac
4145 fi
4146 ;;
4147 sco3.2v5*)
4148 lt_cv_sys_max_cmd_len=102400
4149 ;;
4150 sysv5* | sco5v6* | sysv4.2uw2*)
4151 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4152 if test -n "$kargmax"; then
4153 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4154 else
4155 lt_cv_sys_max_cmd_len=32768
4156 fi
4157 ;;
4158 *)
4159 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4160 if test -n "$lt_cv_sys_max_cmd_len"; then
4161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4163 else
4164 # Make teststring a little bigger before we do anything with it.
4165 # a 1K string should be a reasonable start.
4166 for i in 1 2 3 4 5 6 7 8 ; do
4167 teststring=$teststring$teststring
4168 done
4169 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4170 # If test is not a shell built-in, we'll probably end up computing a
4171 # maximum length that is only half of the actual maximum length, but
4172 # we can't tell.
4173 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4174 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4175 test $i != 17 # 1/2 MB should be enough
4176 do
4177 i=`expr $i + 1`
4178 teststring=$teststring$teststring
4179 done
4180 # Only check the string length outside the loop.
4181 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4182 teststring=
4183 # Add a significant safety factor because C++ compilers can tack on
4184 # massive amounts of additional arguments before passing them to the
4185 # linker. It appears as though 1/2 is a usable value.
4186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4187 fi
4188 ;;
4189 esac
4190
4191 fi
4192
4193 if test -n $lt_cv_sys_max_cmd_len ; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4198 $as_echo "none" >&6; }
4199 fi
4200 max_cmd_len=$lt_cv_sys_max_cmd_len
4201
4202
4203
4204
4205
4206
4207 : ${CP="cp -f"}
4208 : ${MV="mv -f"}
4209 : ${RM="rm -f"}
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4213 # Try some XSI features
4214 xsi_shell=no
4215 ( _lt_dummy="a/b/c"
4216 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4217 = c,a/b,, \
4218 && eval 'test $(( 1 + 1 )) -eq 2 \
4219 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4220 && xsi_shell=yes
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4222 $as_echo "$xsi_shell" >&6; }
4223
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4226 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4227 lt_shell_append=no
4228 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4229 >/dev/null 2>&1 \
4230 && lt_shell_append=yes
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4232 $as_echo "$lt_shell_append" >&6; }
4233
4234
4235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4236 lt_unset=unset
4237 else
4238 lt_unset=false
4239 fi
4240
4241
4242
4243
4244
4245 # test EBCDIC or ASCII
4246 case `echo X|tr X '\101'` in
4247 A) # ASCII based system
4248 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4249 lt_SP2NL='tr \040 \012'
4250 lt_NL2SP='tr \015\012 \040\040'
4251 ;;
4252 *) # EBCDIC based system
4253 lt_SP2NL='tr \100 \n'
4254 lt_NL2SP='tr \r\n \100\100'
4255 ;;
4256 esac
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4268 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 lt_cv_ld_reload_flag='-r'
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4275 reload_flag=$lt_cv_ld_reload_flag
4276 case $reload_flag in
4277 "" | " "*) ;;
4278 *) reload_flag=" $reload_flag" ;;
4279 esac
4280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4281 case $host_os in
4282 darwin*)
4283 if test "$GCC" = yes; then
4284 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4285 else
4286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4287 fi
4288 ;;
4289 esac
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299 if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -n "$OBJDUMP"; then
4308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321 done
4322 done
4323 IFS=$as_save_IFS
4324
4325 fi
4326 fi
4327 OBJDUMP=$ac_cv_prog_OBJDUMP
4328 if test -n "$OBJDUMP"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4330 $as_echo "$OBJDUMP" >&6; }
4331 else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4334 fi
4335
4336
4337 fi
4338 if test -z "$ac_cv_prog_OBJDUMP"; then
4339 ac_ct_OBJDUMP=$OBJDUMP
4340 # Extract the first word of "objdump", so it can be a program name with args.
4341 set dummy objdump; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -n "$ac_ct_OBJDUMP"; then
4348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361 done
4362 done
4363 IFS=$as_save_IFS
4364
4365 fi
4366 fi
4367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4368 if test -n "$ac_ct_OBJDUMP"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4370 $as_echo "$ac_ct_OBJDUMP" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4374 fi
4375
4376 if test "x$ac_ct_OBJDUMP" = x; then
4377 OBJDUMP="false"
4378 else
4379 case $cross_compiling:$ac_tool_warned in
4380 yes:)
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383 ac_tool_warned=yes ;;
4384 esac
4385 OBJDUMP=$ac_ct_OBJDUMP
4386 fi
4387 else
4388 OBJDUMP="$ac_cv_prog_OBJDUMP"
4389 fi
4390
4391 test -z "$OBJDUMP" && OBJDUMP=objdump
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4402 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4403 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 lt_cv_file_magic_cmd='$MAGIC_CMD'
4407 lt_cv_file_magic_test_file=
4408 lt_cv_deplibs_check_method='unknown'
4409 # Need to set the preceding variable on all platforms that support
4410 # interlibrary dependencies.
4411 # 'none' -- dependencies not supported.
4412 # `unknown' -- same as none, but documents that we really don't know.
4413 # 'pass_all' -- all dependencies passed with no checks.
4414 # 'test_compile' -- check by making test program.
4415 # 'file_magic [[regex]]' -- check by looking for files in library path
4416 # which responds to the $file_magic_cmd with a given extended regex.
4417 # If you have `file' or equivalent on your system and you're not sure
4418 # whether `pass_all' will *always* work, you probably want this one.
4419
4420 case $host_os in
4421 aix[4-9]*)
4422 lt_cv_deplibs_check_method=pass_all
4423 ;;
4424
4425 beos*)
4426 lt_cv_deplibs_check_method=pass_all
4427 ;;
4428
4429 bsdi[45]*)
4430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4431 lt_cv_file_magic_cmd='/usr/bin/file -L'
4432 lt_cv_file_magic_test_file=/shlib/libc.so
4433 ;;
4434
4435 cygwin*)
4436 # func_win32_libid is a shell function defined in ltmain.sh
4437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4438 lt_cv_file_magic_cmd='func_win32_libid'
4439 ;;
4440
4441 mingw* | pw32*)
4442 # Base MSYS/MinGW do not provide the 'file' command needed by
4443 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4444 # unless we find 'file', for example because we are cross-compiling.
4445 if ( file / ) >/dev/null 2>&1; then
4446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4447 lt_cv_file_magic_cmd='func_win32_libid'
4448 else
4449 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4450 lt_cv_file_magic_cmd='$OBJDUMP -f'
4451 fi
4452 ;;
4453
4454 cegcc)
4455 # use the weaker test based on 'objdump'. See mingw*.
4456 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4457 lt_cv_file_magic_cmd='$OBJDUMP -f'
4458 ;;
4459
4460 darwin* | rhapsody*)
4461 lt_cv_deplibs_check_method=pass_all
4462 ;;
4463
4464 freebsd* | dragonfly*)
4465 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4466 case $host_cpu in
4467 i*86 )
4468 # Not sure whether the presence of OpenBSD here was a mistake.
4469 # Let's accept both of them until this is cleared up.
4470 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4471 lt_cv_file_magic_cmd=/usr/bin/file
4472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4473 ;;
4474 esac
4475 else
4476 lt_cv_deplibs_check_method=pass_all
4477 fi
4478 ;;
4479
4480 gnu*)
4481 lt_cv_deplibs_check_method=pass_all
4482 ;;
4483
4484 hpux10.20* | hpux11*)
4485 lt_cv_file_magic_cmd=/usr/bin/file
4486 case $host_cpu in
4487 ia64*)
4488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4489 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4490 ;;
4491 hppa*64*)
4492 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]'
4493 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4494 ;;
4495 *)
4496 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4497 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4498 ;;
4499 esac
4500 ;;
4501
4502 interix[3-9]*)
4503 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4505 ;;
4506
4507 irix5* | irix6* | nonstopux*)
4508 case $LD in
4509 *-32|*"-32 ") libmagic=32-bit;;
4510 *-n32|*"-n32 ") libmagic=N32;;
4511 *-64|*"-64 ") libmagic=64-bit;;
4512 *) libmagic=never-match;;
4513 esac
4514 lt_cv_deplibs_check_method=pass_all
4515 ;;
4516
4517 # This must be Linux ELF.
4518 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4519 lt_cv_deplibs_check_method=pass_all
4520 ;;
4521
4522 netbsd* | netbsdelf*-gnu)
4523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4525 else
4526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4527 fi
4528 ;;
4529
4530 newos6*)
4531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4532 lt_cv_file_magic_cmd=/usr/bin/file
4533 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4534 ;;
4535
4536 *nto* | *qnx*)
4537 lt_cv_deplibs_check_method=pass_all
4538 ;;
4539
4540 openbsd*)
4541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4543 else
4544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4545 fi
4546 ;;
4547
4548 osf3* | osf4* | osf5*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552 rdos*)
4553 lt_cv_deplibs_check_method=pass_all
4554 ;;
4555
4556 solaris*)
4557 lt_cv_deplibs_check_method=pass_all
4558 ;;
4559
4560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4561 lt_cv_deplibs_check_method=pass_all
4562 ;;
4563
4564 sysv4 | sysv4.3*)
4565 case $host_vendor in
4566 motorola)
4567 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]'
4568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4569 ;;
4570 ncr)
4571 lt_cv_deplibs_check_method=pass_all
4572 ;;
4573 sequent)
4574 lt_cv_file_magic_cmd='/bin/file'
4575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4576 ;;
4577 sni)
4578 lt_cv_file_magic_cmd='/bin/file'
4579 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4580 lt_cv_file_magic_test_file=/lib/libc.so
4581 ;;
4582 siemens)
4583 lt_cv_deplibs_check_method=pass_all
4584 ;;
4585 pc)
4586 lt_cv_deplibs_check_method=pass_all
4587 ;;
4588 esac
4589 ;;
4590
4591 tpf*)
4592 lt_cv_deplibs_check_method=pass_all
4593 ;;
4594 esac
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4598 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4599 file_magic_cmd=$lt_cv_file_magic_cmd
4600 deplibs_check_method=$lt_cv_deplibs_check_method
4601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}ar; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_AR+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$AR"; then
4623 ac_cv_prog_AR="$AR" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_AR="${ac_tool_prefix}ar"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 AR=$ac_cv_prog_AR
4643 if test -n "$AR"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4645 $as_echo "$AR" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 fi
4650
4651
4652 fi
4653 if test -z "$ac_cv_prog_AR"; then
4654 ac_ct_AR=$AR
4655 # Extract the first word of "ar", so it can be a program name with args.
4656 set dummy ar; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$ac_ct_AR"; then
4663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_ac_ct_AR="ar"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4683 if test -n "$ac_ct_AR"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4685 $as_echo "$ac_ct_AR" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4689 fi
4690
4691 if test "x$ac_ct_AR" = x; then
4692 AR="false"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 AR=$ac_ct_AR
4701 fi
4702 else
4703 AR="$ac_cv_prog_AR"
4704 fi
4705
4706 test -z "$AR" && AR=ar
4707 test -z "$AR_FLAGS" && AR_FLAGS=cru
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}strip; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_STRIP+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$STRIP"; then
4728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 STRIP=$ac_cv_prog_STRIP
4748 if test -n "$STRIP"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4750 $as_echo "$STRIP" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756
4757 fi
4758 if test -z "$ac_cv_prog_STRIP"; then
4759 ac_ct_STRIP=$STRIP
4760 # Extract the first word of "strip", so it can be a program name with args.
4761 set dummy strip; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$ac_ct_STRIP"; then
4768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_ac_ct_STRIP="strip"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4788 if test -n "$ac_ct_STRIP"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4790 $as_echo "$ac_ct_STRIP" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796 if test "x$ac_ct_STRIP" = x; then
4797 STRIP=":"
4798 else
4799 case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805 STRIP=$ac_ct_STRIP
4806 fi
4807 else
4808 STRIP="$ac_cv_prog_STRIP"
4809 fi
4810
4811 test -z "$STRIP" && STRIP=:
4812
4813
4814
4815
4816
4817
4818 if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$RANLIB"; then
4827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840 done
4841 done
4842 IFS=$as_save_IFS
4843
4844 fi
4845 fi
4846 RANLIB=$ac_cv_prog_RANLIB
4847 if test -n "$RANLIB"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4849 $as_echo "$RANLIB" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855
4856 fi
4857 if test -z "$ac_cv_prog_RANLIB"; then
4858 ac_ct_RANLIB=$RANLIB
4859 # Extract the first word of "ranlib", so it can be a program name with args.
4860 set dummy ranlib; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_RANLIB="ranlib"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887 if test -n "$ac_ct_RANLIB"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4889 $as_echo "$ac_ct_RANLIB" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895 if test "x$ac_ct_RANLIB" = x; then
4896 RANLIB=":"
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 RANLIB=$ac_ct_RANLIB
4905 fi
4906 else
4907 RANLIB="$ac_cv_prog_RANLIB"
4908 fi
4909
4910 test -z "$RANLIB" && RANLIB=:
4911
4912
4913
4914
4915
4916
4917 # Determine commands to create old-style static archives.
4918 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4919 old_postinstall_cmds='chmod 644 $oldlib'
4920 old_postuninstall_cmds=
4921
4922 if test -n "$RANLIB"; then
4923 case $host_os in
4924 openbsd*)
4925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4926 ;;
4927 *)
4928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4929 ;;
4930 esac
4931 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4932 fi
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 # If no C compiler was specified, use CC.
4968 LTCC=${LTCC-"$CC"}
4969
4970 # If no C compiler flags were specified, use CFLAGS.
4971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4972
4973 # Allow CC to be a program name with arguments.
4974 compiler=$CC
4975
4976
4977 # Check for command to grab the raw symbol name followed by C symbol from nm.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4980 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983
4984 # These are sane defaults that work on at least a few old systems.
4985 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4986
4987 # Character class describing NM global symbol codes.
4988 symcode='[BCDEGRST]'
4989
4990 # Regexp to match symbols that can be accessed directly from C.
4991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4992
4993 # Define system-specific variables.
4994 case $host_os in
4995 aix*)
4996 symcode='[BCDT]'
4997 ;;
4998 cygwin* | mingw* | pw32* | cegcc*)
4999 symcode='[ABCDGISTW]'
5000 ;;
5001 hpux*)
5002 if test "$host_cpu" = ia64; then
5003 symcode='[ABCDEGRST]'
5004 fi
5005 ;;
5006 irix* | nonstopux*)
5007 symcode='[BCDEGRST]'
5008 ;;
5009 osf*)
5010 symcode='[BCDEGQRST]'
5011 ;;
5012 solaris*)
5013 symcode='[BDRT]'
5014 ;;
5015 sco3.2v5*)
5016 symcode='[DT]'
5017 ;;
5018 sysv4.2uw2*)
5019 symcode='[DT]'
5020 ;;
5021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5022 symcode='[ABDT]'
5023 ;;
5024 sysv4)
5025 symcode='[DFNSTU]'
5026 ;;
5027 esac
5028
5029 # If we're using GNU nm, then use its standard symbol codes.
5030 case `$NM -V 2>&1` in
5031 *GNU* | *'with BFD'*)
5032 symcode='[ABCDGIRSTW]' ;;
5033 esac
5034
5035 # Transform an extracted symbol line into a proper C declaration.
5036 # Some systems (esp. on ia64) link data and code symbols differently,
5037 # so use this general approach.
5038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5039
5040 # Transform an extracted symbol line into symbol name and symbol address
5041 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5042 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'"
5043
5044 # Handle CRLF in mingw tool chain
5045 opt_cr=
5046 case $build_os in
5047 mingw*)
5048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5049 ;;
5050 esac
5051
5052 # Try without a prefix underscore, then with it.
5053 for ac_symprfx in "" "_"; do
5054
5055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5056 symxfrm="\\1 $ac_symprfx\\2 \\2"
5057
5058 # Write the raw and C identifiers.
5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5060 # Fake it for dumpbin and say T for any non-static function
5061 # and D for any global variable.
5062 # Also find C++ and __fastcall symbols from MSVC++,
5063 # which start with @ or ?.
5064 lt_cv_sys_global_symbol_pipe="$AWK '"\
5065 " {last_section=section; section=\$ 3};"\
5066 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5067 " \$ 0!~/External *\|/{next};"\
5068 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5069 " {if(hide[section]) next};"\
5070 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5071 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5072 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5073 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5074 " ' prfx=^$ac_symprfx"
5075 else
5076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5077 fi
5078
5079 # Check to see that the pipe works correctly.
5080 pipe_works=no
5081
5082 rm -f conftest*
5083 cat > conftest.$ac_ext <<_LT_EOF
5084 #ifdef __cplusplus
5085 extern "C" {
5086 #endif
5087 char nm_test_var;
5088 void nm_test_func(void);
5089 void nm_test_func(void){}
5090 #ifdef __cplusplus
5091 }
5092 #endif
5093 int main(){nm_test_var='a';nm_test_func();return(0);}
5094 _LT_EOF
5095
5096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5097 (eval $ac_compile) 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }; then
5101 # Now try to grab the symbols.
5102 nlist=conftest.nm
5103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5104 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5105 ac_status=$?
5106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5107 test $ac_status = 0; } && test -s "$nlist"; then
5108 # Try sorting and uniquifying the output.
5109 if sort "$nlist" | uniq > "$nlist"T; then
5110 mv -f "$nlist"T "$nlist"
5111 else
5112 rm -f "$nlist"T
5113 fi
5114
5115 # Make sure that we snagged all the symbols we need.
5116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5118 cat <<_LT_EOF > conftest.$ac_ext
5119 #ifdef __cplusplus
5120 extern "C" {
5121 #endif
5122
5123 _LT_EOF
5124 # Now generate the symbol file.
5125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5126
5127 cat <<_LT_EOF >> conftest.$ac_ext
5128
5129 /* The mapping between symbol names and symbols. */
5130 const struct {
5131 const char *name;
5132 void *address;
5133 }
5134 lt__PROGRAM__LTX_preloaded_symbols[] =
5135 {
5136 { "@PROGRAM@", (void *) 0 },
5137 _LT_EOF
5138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5139 cat <<\_LT_EOF >> conftest.$ac_ext
5140 {0, (void *) 0}
5141 };
5142
5143 /* This works around a problem in FreeBSD linker */
5144 #ifdef FREEBSD_WORKAROUND
5145 static const void *lt_preloaded_setup() {
5146 return lt__PROGRAM__LTX_preloaded_symbols;
5147 }
5148 #endif
5149
5150 #ifdef __cplusplus
5151 }
5152 #endif
5153 _LT_EOF
5154 # Now try linking the two files.
5155 mv conftest.$ac_objext conftstm.$ac_objext
5156 lt_save_LIBS="$LIBS"
5157 lt_save_CFLAGS="$CFLAGS"
5158 LIBS="conftstm.$ac_objext"
5159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5161 (eval $ac_link) 2>&5
5162 ac_status=$?
5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5165 pipe_works=yes
5166 fi
5167 LIBS="$lt_save_LIBS"
5168 CFLAGS="$lt_save_CFLAGS"
5169 else
5170 echo "cannot find nm_test_func in $nlist" >&5
5171 fi
5172 else
5173 echo "cannot find nm_test_var in $nlist" >&5
5174 fi
5175 else
5176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5177 fi
5178 else
5179 echo "$progname: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 fi
5182 rm -rf conftest* conftst*
5183
5184 # Do not use the global_symbol_pipe unless it works.
5185 if test "$pipe_works" = yes; then
5186 break
5187 else
5188 lt_cv_sys_global_symbol_pipe=
5189 fi
5190 done
5191
5192 fi
5193
5194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5195 lt_cv_sys_global_symbol_to_cdecl=
5196 fi
5197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5199 $as_echo "failed" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5202 $as_echo "ok" >&6; }
5203 fi
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227 # Check whether --enable-libtool-lock was given.
5228 if test "${enable_libtool_lock+set}" = set; then :
5229 enableval=$enable_libtool_lock;
5230 fi
5231
5232 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5233
5234 # Some flags need to be propagated to the compiler or linker for good
5235 # libtool support.
5236 case $host in
5237 ia64-*-hpux*)
5238 # Find out which ABI we are using.
5239 echo 'int i;' > conftest.$ac_ext
5240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5241 (eval $ac_compile) 2>&5
5242 ac_status=$?
5243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244 test $ac_status = 0; }; then
5245 case `/usr/bin/file conftest.$ac_objext` in
5246 *ELF-32*)
5247 HPUX_IA64_MODE="32"
5248 ;;
5249 *ELF-64*)
5250 HPUX_IA64_MODE="64"
5251 ;;
5252 esac
5253 fi
5254 rm -rf conftest*
5255 ;;
5256 *-*-irix6*)
5257 # Find out which ABI we are using.
5258 echo '#line 5258 "configure"' > conftest.$ac_ext
5259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5260 (eval $ac_compile) 2>&5
5261 ac_status=$?
5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263 test $ac_status = 0; }; then
5264 if test "$lt_cv_prog_gnu_ld" = yes; then
5265 case `/usr/bin/file conftest.$ac_objext` in
5266 *32-bit*)
5267 LD="${LD-ld} -melf32bsmip"
5268 ;;
5269 *N32*)
5270 LD="${LD-ld} -melf32bmipn32"
5271 ;;
5272 *64-bit*)
5273 LD="${LD-ld} -melf64bmip"
5274 ;;
5275 esac
5276 else
5277 case `/usr/bin/file conftest.$ac_objext` in
5278 *32-bit*)
5279 LD="${LD-ld} -32"
5280 ;;
5281 *N32*)
5282 LD="${LD-ld} -n32"
5283 ;;
5284 *64-bit*)
5285 LD="${LD-ld} -64"
5286 ;;
5287 esac
5288 fi
5289 fi
5290 rm -rf conftest*
5291 ;;
5292
5293 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5294 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5295 # Find out which ABI we are using.
5296 echo 'int i;' > conftest.$ac_ext
5297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5298 (eval $ac_compile) 2>&5
5299 ac_status=$?
5300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5301 test $ac_status = 0; }; then
5302 case `/usr/bin/file conftest.o` in
5303 *32-bit*)
5304 case $host in
5305 x86_64-*kfreebsd*-gnu)
5306 LD="${LD-ld} -m elf_i386_fbsd"
5307 ;;
5308 x86_64-*linux*)
5309 LD="${LD-ld} -m elf_i386"
5310 ;;
5311 ppc64-*linux*|powerpc64-*linux*)
5312 LD="${LD-ld} -m elf32ppclinux"
5313 ;;
5314 s390x-*linux*)
5315 LD="${LD-ld} -m elf_s390"
5316 ;;
5317 sparc64-*linux*)
5318 LD="${LD-ld} -m elf32_sparc"
5319 ;;
5320 esac
5321 ;;
5322 *64-bit*)
5323 case $host in
5324 x86_64-*kfreebsd*-gnu)
5325 LD="${LD-ld} -m elf_x86_64_fbsd"
5326 ;;
5327 x86_64-*linux*)
5328 LD="${LD-ld} -m elf_x86_64"
5329 ;;
5330 ppc*-*linux*|powerpc*-*linux*)
5331 LD="${LD-ld} -m elf64ppc"
5332 ;;
5333 s390*-*linux*|s390*-*tpf*)
5334 LD="${LD-ld} -m elf64_s390"
5335 ;;
5336 sparc*-*linux*)
5337 LD="${LD-ld} -m elf64_sparc"
5338 ;;
5339 esac
5340 ;;
5341 esac
5342 fi
5343 rm -rf conftest*
5344 ;;
5345
5346 *-*-sco3.2v5*)
5347 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5348 SAVE_CFLAGS="$CFLAGS"
5349 CFLAGS="$CFLAGS -belf"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5351 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5352 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 ac_ext=c
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363
5364 int
5365 main ()
5366 {
5367
5368 ;
5369 return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_link "$LINENO"; then :
5373 lt_cv_cc_needs_belf=yes
5374 else
5375 lt_cv_cc_needs_belf=no
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext \
5378 conftest$ac_exeext conftest.$ac_ext
5379 ac_ext=c
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5387 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5388 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5389 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5390 CFLAGS="$SAVE_CFLAGS"
5391 fi
5392 ;;
5393 sparc*-*solaris*)
5394 # Find out which ABI we are using.
5395 echo 'int i;' > conftest.$ac_ext
5396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5397 (eval $ac_compile) 2>&5
5398 ac_status=$?
5399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5400 test $ac_status = 0; }; then
5401 case `/usr/bin/file conftest.o` in
5402 *64-bit*)
5403 case $lt_cv_prog_gnu_ld in
5404 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5405 *)
5406 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5407 LD="${LD-ld} -64"
5408 fi
5409 ;;
5410 esac
5411 ;;
5412 esac
5413 fi
5414 rm -rf conftest*
5415 ;;
5416 esac
5417
5418 need_locks="$enable_libtool_lock"
5419
5420
5421 case $host_os in
5422 rhapsody* | darwin*)
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$DSYMUTIL"; then
5432 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5452 if test -n "$DSYMUTIL"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5454 $as_echo "$DSYMUTIL" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 fi
5462 if test -z "$ac_cv_prog_DSYMUTIL"; then
5463 ac_ct_DSYMUTIL=$DSYMUTIL
5464 # Extract the first word of "dsymutil", so it can be a program name with args.
5465 set dummy dsymutil; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$ac_ct_DSYMUTIL"; then
5472 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5492 if test -n "$ac_ct_DSYMUTIL"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5494 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500 if test "x$ac_ct_DSYMUTIL" = x; then
5501 DSYMUTIL=":"
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509 DSYMUTIL=$ac_ct_DSYMUTIL
5510 fi
5511 else
5512 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5513 fi
5514
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$NMEDIT"; then
5524 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 NMEDIT=$ac_cv_prog_NMEDIT
5544 if test -n "$NMEDIT"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5546 $as_echo "$NMEDIT" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 fi
5554 if test -z "$ac_cv_prog_NMEDIT"; then
5555 ac_ct_NMEDIT=$NMEDIT
5556 # Extract the first word of "nmedit", so it can be a program name with args.
5557 set dummy nmedit; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$ac_ct_NMEDIT"; then
5564 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577 done
5578 done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5584 if test -n "$ac_ct_NMEDIT"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5586 $as_echo "$ac_ct_NMEDIT" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592 if test "x$ac_ct_NMEDIT" = x; then
5593 NMEDIT=":"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601 NMEDIT=$ac_ct_NMEDIT
5602 fi
5603 else
5604 NMEDIT="$ac_cv_prog_NMEDIT"
5605 fi
5606
5607 if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_LIPO+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$LIPO"; then
5616 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629 done
5630 done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 LIPO=$ac_cv_prog_LIPO
5636 if test -n "$LIPO"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5638 $as_echo "$LIPO" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 fi
5646 if test -z "$ac_cv_prog_LIPO"; then
5647 ac_ct_LIPO=$LIPO
5648 # Extract the first word of "lipo", so it can be a program name with args.
5649 set dummy lipo; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -n "$ac_ct_LIPO"; then
5656 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_prog_ac_ct_LIPO="lipo"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669 done
5670 done
5671 IFS=$as_save_IFS
5672
5673 fi
5674 fi
5675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5676 if test -n "$ac_ct_LIPO"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5678 $as_echo "$ac_ct_LIPO" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684 if test "x$ac_ct_LIPO" = x; then
5685 LIPO=":"
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688 yes:)
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691 ac_tool_warned=yes ;;
5692 esac
5693 LIPO=$ac_ct_LIPO
5694 fi
5695 else
5696 LIPO="$ac_cv_prog_LIPO"
5697 fi
5698
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}otool; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$OTOOL"; then
5708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 OTOOL=$ac_cv_prog_OTOOL
5728 if test -n "$OTOOL"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5730 $as_echo "$OTOOL" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 fi
5738 if test -z "$ac_cv_prog_OTOOL"; then
5739 ac_ct_OTOOL=$OTOOL
5740 # Extract the first word of "otool", so it can be a program name with args.
5741 set dummy otool; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_OTOOL"; then
5748 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_OTOOL="otool"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5768 if test -n "$ac_ct_OTOOL"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5770 $as_echo "$ac_ct_OTOOL" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776 if test "x$ac_ct_OTOOL" = x; then
5777 OTOOL=":"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 OTOOL=$ac_ct_OTOOL
5786 fi
5787 else
5788 OTOOL="$ac_cv_prog_OTOOL"
5789 fi
5790
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$OTOOL64"; then
5800 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 OTOOL64=$ac_cv_prog_OTOOL64
5820 if test -n "$OTOOL64"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5822 $as_echo "$OTOOL64" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 fi
5830 if test -z "$ac_cv_prog_OTOOL64"; then
5831 ac_ct_OTOOL64=$OTOOL64
5832 # Extract the first word of "otool64", so it can be a program name with args.
5833 set dummy otool64; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$ac_ct_OTOOL64"; then
5840 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_prog_ac_ct_OTOOL64="otool64"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5860 if test -n "$ac_ct_OTOOL64"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5862 $as_echo "$ac_ct_OTOOL64" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868 if test "x$ac_ct_OTOOL64" = x; then
5869 OTOOL64=":"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872 yes:)
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5876 esac
5877 OTOOL64=$ac_ct_OTOOL64
5878 fi
5879 else
5880 OTOOL64="$ac_cv_prog_OTOOL64"
5881 fi
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5910 $as_echo_n "checking for -single_module linker flag... " >&6; }
5911 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 lt_cv_apple_cc_single_mod=no
5915 if test -z "${LT_MULTI_MODULE}"; then
5916 # By default we will add the -single_module flag. You can override
5917 # by either setting the environment variable LT_MULTI_MODULE
5918 # non-empty at configure time, or by adding -multi_module to the
5919 # link flags.
5920 rm -rf libconftest.dylib*
5921 echo "int foo(void){return 1;}" > conftest.c
5922 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5923 -dynamiclib -Wl,-single_module conftest.c" >&5
5924 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5925 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5926 _lt_result=$?
5927 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5928 lt_cv_apple_cc_single_mod=yes
5929 else
5930 cat conftest.err >&5
5931 fi
5932 rm -rf libconftest.dylib*
5933 rm -f conftest.*
5934 fi
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5937 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5939 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5940 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 lt_cv_ld_exported_symbols_list=no
5944 save_LDFLAGS=$LDFLAGS
5945 echo "_main" > conftest.sym
5946 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949
5950 int
5951 main ()
5952 {
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_link "$LINENO"; then :
5959 lt_cv_ld_exported_symbols_list=yes
5960 else
5961 lt_cv_ld_exported_symbols_list=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 LDFLAGS="$save_LDFLAGS"
5966
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5969 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5970 case $host_os in
5971 rhapsody* | darwin1.[012])
5972 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5973 darwin1.*)
5974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5975 darwin*) # darwin 5.x on
5976 # if running on 10.5 or later, the deployment target defaults
5977 # to the OS version, if on x86, and 10.4, the deployment
5978 # target defaults to 10.4. Don't you love it?
5979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5980 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5982 10.[012]*)
5983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5984 10.*)
5985 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5986 esac
5987 ;;
5988 esac
5989 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5990 _lt_dar_single_mod='$single_module'
5991 fi
5992 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5993 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5994 else
5995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5996 fi
5997 if test "$DSYMUTIL" != ":"; then
5998 _lt_dsymutil='~$DSYMUTIL $lib || :'
5999 else
6000 _lt_dsymutil=
6001 fi
6002 ;;
6003 esac
6004
6005 ac_ext=c
6006 ac_cpp='$CPP $CPPFLAGS'
6007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6012 # On Suns, sometimes $CPP names a directory.
6013 if test -n "$CPP" && test -d "$CPP"; then
6014 CPP=
6015 fi
6016 if test -z "$CPP"; then
6017 if test "${ac_cv_prog_CPP+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 # Double quotes because CPP needs to be expanded
6021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6022 do
6023 ac_preproc_ok=false
6024 for ac_c_preproc_warn_flag in '' yes
6025 do
6026 # Use a header file that comes with gcc, so configuring glibc
6027 # with a fresh cross-compiler works.
6028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6029 # <limits.h> exists even on freestanding compilers.
6030 # On the NeXT, cc -E runs the code through the compiler's parser,
6031 # not just through cpp. "Syntax error" is here to catch this case.
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #ifdef __STDC__
6035 # include <limits.h>
6036 #else
6037 # include <assert.h>
6038 #endif
6039 Syntax error
6040 _ACEOF
6041 if ac_fn_c_try_cpp "$LINENO"; then :
6042
6043 else
6044 # Broken: fails on valid input.
6045 continue
6046 fi
6047 rm -f conftest.err conftest.$ac_ext
6048
6049 # OK, works on sane cases. Now check whether nonexistent headers
6050 # can be detected and how.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <ac_nonexistent.h>
6054 _ACEOF
6055 if ac_fn_c_try_cpp "$LINENO"; then :
6056 # Broken: success on invalid input.
6057 continue
6058 else
6059 # Passes both tests.
6060 ac_preproc_ok=:
6061 break
6062 fi
6063 rm -f conftest.err conftest.$ac_ext
6064
6065 done
6066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6067 rm -f conftest.err conftest.$ac_ext
6068 if $ac_preproc_ok; then :
6069 break
6070 fi
6071
6072 done
6073 ac_cv_prog_CPP=$CPP
6074
6075 fi
6076 CPP=$ac_cv_prog_CPP
6077 else
6078 ac_cv_prog_CPP=$CPP
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6081 $as_echo "$CPP" >&6; }
6082 ac_preproc_ok=false
6083 for ac_c_preproc_warn_flag in '' yes
6084 do
6085 # Use a header file that comes with gcc, so configuring glibc
6086 # with a fresh cross-compiler works.
6087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6088 # <limits.h> exists even on freestanding compilers.
6089 # On the NeXT, cc -E runs the code through the compiler's parser,
6090 # not just through cpp. "Syntax error" is here to catch this case.
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #ifdef __STDC__
6094 # include <limits.h>
6095 #else
6096 # include <assert.h>
6097 #endif
6098 Syntax error
6099 _ACEOF
6100 if ac_fn_c_try_cpp "$LINENO"; then :
6101
6102 else
6103 # Broken: fails on valid input.
6104 continue
6105 fi
6106 rm -f conftest.err conftest.$ac_ext
6107
6108 # OK, works on sane cases. Now check whether nonexistent headers
6109 # can be detected and how.
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 #include <ac_nonexistent.h>
6113 _ACEOF
6114 if ac_fn_c_try_cpp "$LINENO"; then :
6115 # Broken: success on invalid input.
6116 continue
6117 else
6118 # Passes both tests.
6119 ac_preproc_ok=:
6120 break
6121 fi
6122 rm -f conftest.err conftest.$ac_ext
6123
6124 done
6125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6126 rm -f conftest.err conftest.$ac_ext
6127 if $ac_preproc_ok; then :
6128
6129 else
6130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6132 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6133 See \`config.log' for more details." "$LINENO" 5; }
6134 fi
6135
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6144 $as_echo_n "checking for ANSI C header files... " >&6; }
6145 if test "${ac_cv_header_stdc+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include <stdlib.h>
6151 #include <stdarg.h>
6152 #include <string.h>
6153 #include <float.h>
6154
6155 int
6156 main ()
6157 {
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_header_stdc=yes
6165 else
6166 ac_cv_header_stdc=no
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169
6170 if test $ac_cv_header_stdc = yes; then
6171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #include <string.h>
6175
6176 _ACEOF
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178 $EGREP "memchr" >/dev/null 2>&1; then :
6179
6180 else
6181 ac_cv_header_stdc=no
6182 fi
6183 rm -f conftest*
6184
6185 fi
6186
6187 if test $ac_cv_header_stdc = yes; then
6188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <stdlib.h>
6192
6193 _ACEOF
6194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6195 $EGREP "free" >/dev/null 2>&1; then :
6196
6197 else
6198 ac_cv_header_stdc=no
6199 fi
6200 rm -f conftest*
6201
6202 fi
6203
6204 if test $ac_cv_header_stdc = yes; then
6205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6206 if test "$cross_compiling" = yes; then :
6207 :
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #include <ctype.h>
6212 #include <stdlib.h>
6213 #if ((' ' & 0x0FF) == 0x020)
6214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6216 #else
6217 # define ISLOWER(c) \
6218 (('a' <= (c) && (c) <= 'i') \
6219 || ('j' <= (c) && (c) <= 'r') \
6220 || ('s' <= (c) && (c) <= 'z'))
6221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6222 #endif
6223
6224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6225 int
6226 main ()
6227 {
6228 int i;
6229 for (i = 0; i < 256; i++)
6230 if (XOR (islower (i), ISLOWER (i))
6231 || toupper (i) != TOUPPER (i))
6232 return 2;
6233 return 0;
6234 }
6235 _ACEOF
6236 if ac_fn_c_try_run "$LINENO"; then :
6237
6238 else
6239 ac_cv_header_stdc=no
6240 fi
6241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6242 conftest.$ac_objext conftest.beam conftest.$ac_ext
6243 fi
6244
6245 fi
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6248 $as_echo "$ac_cv_header_stdc" >&6; }
6249 if test $ac_cv_header_stdc = yes; then
6250
6251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6252
6253 fi
6254
6255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6257 inttypes.h stdint.h unistd.h
6258 do :
6259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6261 "
6262 eval as_val=\$$as_ac_Header
6263 if test "x$as_val" = x""yes; then :
6264 cat >>confdefs.h <<_ACEOF
6265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6267
6268 fi
6269
6270 done
6271
6272
6273 for ac_header in dlfcn.h
6274 do :
6275 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6276 "
6277 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6278 cat >>confdefs.h <<_ACEOF
6279 #define HAVE_DLFCN_H 1
6280 _ACEOF
6281
6282 fi
6283
6284 done
6285
6286
6287
6288 # Set options
6289 # Check whether --enable-static was given.
6290 if test "${enable_static+set}" = set; then :
6291 enableval=$enable_static; p=${PACKAGE-default}
6292 case $enableval in
6293 yes) enable_static=yes ;;
6294 no) enable_static=no ;;
6295 *)
6296 enable_static=no
6297 # Look at the argument we got. We use all the common list separators.
6298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6299 for pkg in $enableval; do
6300 IFS="$lt_save_ifs"
6301 if test "X$pkg" = "X$p"; then
6302 enable_static=yes
6303 fi
6304 done
6305 IFS="$lt_save_ifs"
6306 ;;
6307 esac
6308 else
6309 enable_static=no
6310 fi
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321 enable_dlopen=no
6322
6323
6324 enable_win32_dll=no
6325
6326
6327 # Check whether --enable-shared was given.
6328 if test "${enable_shared+set}" = set; then :
6329 enableval=$enable_shared; p=${PACKAGE-default}
6330 case $enableval in
6331 yes) enable_shared=yes ;;
6332 no) enable_shared=no ;;
6333 *)
6334 enable_shared=no
6335 # Look at the argument we got. We use all the common list separators.
6336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6337 for pkg in $enableval; do
6338 IFS="$lt_save_ifs"
6339 if test "X$pkg" = "X$p"; then
6340 enable_shared=yes
6341 fi
6342 done
6343 IFS="$lt_save_ifs"
6344 ;;
6345 esac
6346 else
6347 enable_shared=yes
6348 fi
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360 # Check whether --with-pic was given.
6361 if test "${with_pic+set}" = set; then :
6362 withval=$with_pic; pic_mode="$withval"
6363 else
6364 pic_mode=default
6365 fi
6366
6367
6368 test -z "$pic_mode" && pic_mode=default
6369
6370
6371
6372
6373
6374
6375
6376 # Check whether --enable-fast-install was given.
6377 if test "${enable_fast_install+set}" = set; then :
6378 enableval=$enable_fast_install; p=${PACKAGE-default}
6379 case $enableval in
6380 yes) enable_fast_install=yes ;;
6381 no) enable_fast_install=no ;;
6382 *)
6383 enable_fast_install=no
6384 # Look at the argument we got. We use all the common list separators.
6385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6386 for pkg in $enableval; do
6387 IFS="$lt_save_ifs"
6388 if test "X$pkg" = "X$p"; then
6389 enable_fast_install=yes
6390 fi
6391 done
6392 IFS="$lt_save_ifs"
6393 ;;
6394 esac
6395 else
6396 enable_fast_install=yes
6397 fi
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 # This can be used to rebuild libtool when needed
6410 LIBTOOL_DEPS="$ltmain"
6411
6412 # Always use our own libtool.
6413 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 test -z "$LN_S" && LN_S="ln -s"
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "${ZSH_VERSION+set}" ; then
6455 setopt NO_GLOB_SUBST
6456 fi
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6459 $as_echo_n "checking for objdir... " >&6; }
6460 if test "${lt_cv_objdir+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 rm -f .libs 2>/dev/null
6464 mkdir .libs 2>/dev/null
6465 if test -d .libs; then
6466 lt_cv_objdir=.libs
6467 else
6468 # MS-DOS does not allow filenames that begin with a dot.
6469 lt_cv_objdir=_libs
6470 fi
6471 rmdir .libs 2>/dev/null
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6474 $as_echo "$lt_cv_objdir" >&6; }
6475 objdir=$lt_cv_objdir
6476
6477
6478
6479
6480
6481 cat >>confdefs.h <<_ACEOF
6482 #define LT_OBJDIR "$lt_cv_objdir/"
6483 _ACEOF
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 case $host_os in
6502 aix3*)
6503 # AIX sometimes has problems with the GCC collect2 program. For some
6504 # reason, if we set the COLLECT_NAMES environment variable, the problems
6505 # vanish in a puff of smoke.
6506 if test "X${COLLECT_NAMES+set}" != Xset; then
6507 COLLECT_NAMES=
6508 export COLLECT_NAMES
6509 fi
6510 ;;
6511 esac
6512
6513 # Sed substitution that helps us do robust quoting. It backslashifies
6514 # metacharacters that are still active within double-quoted strings.
6515 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6516
6517 # Same as above, but do not quote variable references.
6518 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6519
6520 # Sed substitution to delay expansion of an escaped shell variable in a
6521 # double_quote_subst'ed string.
6522 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6523
6524 # Sed substitution to delay expansion of an escaped single quote.
6525 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6526
6527 # Sed substitution to avoid accidental globbing in evaled expressions
6528 no_glob_subst='s/\*/\\\*/g'
6529
6530 # Global variables:
6531 ofile=libtool
6532 can_build_shared=yes
6533
6534 # All known linkers require a `.a' archive for static linking (except MSVC,
6535 # which needs '.lib').
6536 libext=a
6537
6538 with_gnu_ld="$lt_cv_prog_gnu_ld"
6539
6540 old_CC="$CC"
6541 old_CFLAGS="$CFLAGS"
6542
6543 # Set sane defaults for various variables
6544 test -z "$CC" && CC=cc
6545 test -z "$LTCC" && LTCC=$CC
6546 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6547 test -z "$LD" && LD=ld
6548 test -z "$ac_objext" && ac_objext=o
6549
6550 for cc_temp in $compiler""; do
6551 case $cc_temp in
6552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6554 \-*) ;;
6555 *) break;;
6556 esac
6557 done
6558 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6559
6560
6561 # Only perform the check for file, if the check method requires it
6562 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6563 case $deplibs_check_method in
6564 file_magic*)
6565 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6567 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 case $MAGIC_CMD in
6572 [\\/*] | ?:[\\/]*)
6573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6574 ;;
6575 *)
6576 lt_save_MAGIC_CMD="$MAGIC_CMD"
6577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6579 for ac_dir in $ac_dummy; do
6580 IFS="$lt_save_ifs"
6581 test -z "$ac_dir" && ac_dir=.
6582 if test -f $ac_dir/${ac_tool_prefix}file; then
6583 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6584 if test -n "$file_magic_test_file"; then
6585 case $deplibs_check_method in
6586 "file_magic "*)
6587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6590 $EGREP "$file_magic_regex" > /dev/null; then
6591 :
6592 else
6593 cat <<_LT_EOF 1>&2
6594
6595 *** Warning: the command libtool uses to detect shared libraries,
6596 *** $file_magic_cmd, produces output that libtool cannot recognize.
6597 *** The result is that libtool may fail to recognize shared libraries
6598 *** as such. This will affect the creation of libtool libraries that
6599 *** depend on shared libraries, but programs linked with such libtool
6600 *** libraries will work regardless of this problem. Nevertheless, you
6601 *** may want to report the problem to your system manager and/or to
6602 *** bug-libtool@gnu.org
6603
6604 _LT_EOF
6605 fi ;;
6606 esac
6607 fi
6608 break
6609 fi
6610 done
6611 IFS="$lt_save_ifs"
6612 MAGIC_CMD="$lt_save_MAGIC_CMD"
6613 ;;
6614 esac
6615 fi
6616
6617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6618 if test -n "$MAGIC_CMD"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6620 $as_echo "$MAGIC_CMD" >&6; }
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626
6627
6628
6629
6630 if test -z "$lt_cv_path_MAGIC_CMD"; then
6631 if test -n "$ac_tool_prefix"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6633 $as_echo_n "checking for file... " >&6; }
6634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 case $MAGIC_CMD in
6638 [\\/*] | ?:[\\/]*)
6639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6640 ;;
6641 *)
6642 lt_save_MAGIC_CMD="$MAGIC_CMD"
6643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6645 for ac_dir in $ac_dummy; do
6646 IFS="$lt_save_ifs"
6647 test -z "$ac_dir" && ac_dir=.
6648 if test -f $ac_dir/file; then
6649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6650 if test -n "$file_magic_test_file"; then
6651 case $deplibs_check_method in
6652 "file_magic "*)
6653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6656 $EGREP "$file_magic_regex" > /dev/null; then
6657 :
6658 else
6659 cat <<_LT_EOF 1>&2
6660
6661 *** Warning: the command libtool uses to detect shared libraries,
6662 *** $file_magic_cmd, produces output that libtool cannot recognize.
6663 *** The result is that libtool may fail to recognize shared libraries
6664 *** as such. This will affect the creation of libtool libraries that
6665 *** depend on shared libraries, but programs linked with such libtool
6666 *** libraries will work regardless of this problem. Nevertheless, you
6667 *** may want to report the problem to your system manager and/or to
6668 *** bug-libtool@gnu.org
6669
6670 _LT_EOF
6671 fi ;;
6672 esac
6673 fi
6674 break
6675 fi
6676 done
6677 IFS="$lt_save_ifs"
6678 MAGIC_CMD="$lt_save_MAGIC_CMD"
6679 ;;
6680 esac
6681 fi
6682
6683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6684 if test -n "$MAGIC_CMD"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6686 $as_echo "$MAGIC_CMD" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692
6693 else
6694 MAGIC_CMD=:
6695 fi
6696 fi
6697
6698 fi
6699 ;;
6700 esac
6701
6702 # Use C for the default configuration in the libtool script
6703
6704 lt_save_CC="$CC"
6705 ac_ext=c
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710
6711
6712 # Source file extension for C test sources.
6713 ac_ext=c
6714
6715 # Object file extension for compiled C test sources.
6716 objext=o
6717 objext=$objext
6718
6719 # Code to be used in simple compile tests
6720 lt_simple_compile_test_code="int some_variable = 0;"
6721
6722 # Code to be used in simple link tests
6723 lt_simple_link_test_code='int main(){return(0);}'
6724
6725
6726
6727
6728
6729
6730
6731 # If no C compiler was specified, use CC.
6732 LTCC=${LTCC-"$CC"}
6733
6734 # If no C compiler flags were specified, use CFLAGS.
6735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6736
6737 # Allow CC to be a program name with arguments.
6738 compiler=$CC
6739
6740 # Save the default compiler, since it gets overwritten when the other
6741 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6742 compiler_DEFAULT=$CC
6743
6744 # save warnings/boilerplate of simple test code
6745 ac_outfile=conftest.$ac_objext
6746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6748 _lt_compiler_boilerplate=`cat conftest.err`
6749 $RM conftest*
6750
6751 ac_outfile=conftest.$ac_objext
6752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6754 _lt_linker_boilerplate=`cat conftest.err`
6755 $RM -r conftest*
6756
6757
6758 if test -n "$compiler"; then
6759
6760 lt_prog_compiler_no_builtin_flag=
6761
6762 if test "$GCC" = yes; then
6763 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6767 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 lt_cv_prog_compiler_rtti_exceptions=no
6771 ac_outfile=conftest.$ac_objext
6772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6773 lt_compiler_flag="-fno-rtti -fno-exceptions"
6774 # Insert the option either (1) after the last *FLAGS variable, or
6775 # (2) before a word containing "conftest.", or (3) at the end.
6776 # Note that $ac_compile itself does not contain backslashes and begins
6777 # with a dollar sign (not a hyphen), so the echo should work correctly.
6778 # The option is referenced via a variable to avoid confusing sed.
6779 lt_compile=`echo "$ac_compile" | $SED \
6780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6782 -e 's:$: $lt_compiler_flag:'`
6783 (eval echo "\"\$as_me:6783: $lt_compile\"" >&5)
6784 (eval "$lt_compile" 2>conftest.err)
6785 ac_status=$?
6786 cat conftest.err >&5
6787 echo "$as_me:6787: \$? = $ac_status" >&5
6788 if (exit $ac_status) && test -s "$ac_outfile"; then
6789 # The compiler can only warn and ignore the option if not recognized
6790 # So say no if there are warnings other than the usual output.
6791 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6794 lt_cv_prog_compiler_rtti_exceptions=yes
6795 fi
6796 fi
6797 $RM conftest*
6798
6799 fi
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6802
6803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6805 else
6806 :
6807 fi
6808
6809 fi
6810
6811
6812
6813
6814
6815
6816 lt_prog_compiler_wl=
6817 lt_prog_compiler_pic=
6818 lt_prog_compiler_static=
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6822
6823 if test "$GCC" = yes; then
6824 lt_prog_compiler_wl='-Wl,'
6825 lt_prog_compiler_static='-static'
6826
6827 case $host_os in
6828 aix*)
6829 # All AIX code is PIC.
6830 if test "$host_cpu" = ia64; then
6831 # AIX 5 now supports IA64 processor
6832 lt_prog_compiler_static='-Bstatic'
6833 fi
6834 ;;
6835
6836 amigaos*)
6837 case $host_cpu in
6838 powerpc)
6839 # see comment about AmigaOS4 .so support
6840 lt_prog_compiler_pic='-fPIC'
6841 ;;
6842 m68k)
6843 # FIXME: we need at least 68020 code to build shared libraries, but
6844 # adding the `-m68020' flag to GCC prevents building anything better,
6845 # like `-m68040'.
6846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6847 ;;
6848 esac
6849 ;;
6850
6851 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6852 # PIC is the default for these OSes.
6853 ;;
6854
6855 mingw* | cygwin* | pw32* | os2* | cegcc*)
6856 # This hack is so that the source file can tell whether it is being
6857 # built for inclusion in a dll (and should export symbols for example).
6858 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6859 # (--disable-auto-import) libraries
6860 lt_prog_compiler_pic='-DDLL_EXPORT'
6861 ;;
6862
6863 darwin* | rhapsody*)
6864 # PIC is the default on this platform
6865 # Common symbols not allowed in MH_DYLIB files
6866 lt_prog_compiler_pic='-fno-common'
6867 ;;
6868
6869 hpux*)
6870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6872 # sets the default TLS model and affects inlining.
6873 case $host_cpu in
6874 hppa*64*)
6875 # +Z the default
6876 ;;
6877 *)
6878 lt_prog_compiler_pic='-fPIC'
6879 ;;
6880 esac
6881 ;;
6882
6883 interix[3-9]*)
6884 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6885 # Instead, we relocate shared libraries at runtime.
6886 ;;
6887
6888 msdosdjgpp*)
6889 # Just because we use GCC doesn't mean we suddenly get shared libraries
6890 # on systems that don't support them.
6891 lt_prog_compiler_can_build_shared=no
6892 enable_shared=no
6893 ;;
6894
6895 *nto* | *qnx*)
6896 # QNX uses GNU C++, but need to define -shared option too, otherwise
6897 # it will coredump.
6898 lt_prog_compiler_pic='-fPIC -shared'
6899 ;;
6900
6901 sysv4*MP*)
6902 if test -d /usr/nec; then
6903 lt_prog_compiler_pic=-Kconform_pic
6904 fi
6905 ;;
6906
6907 *)
6908 lt_prog_compiler_pic='-fPIC'
6909 ;;
6910 esac
6911 else
6912 # PORTME Check for flag to pass linker flags through the system compiler.
6913 case $host_os in
6914 aix*)
6915 lt_prog_compiler_wl='-Wl,'
6916 if test "$host_cpu" = ia64; then
6917 # AIX 5 now supports IA64 processor
6918 lt_prog_compiler_static='-Bstatic'
6919 else
6920 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6921 fi
6922 ;;
6923
6924 mingw* | cygwin* | pw32* | os2* | cegcc*)
6925 # This hack is so that the source file can tell whether it is being
6926 # built for inclusion in a dll (and should export symbols for example).
6927 lt_prog_compiler_pic='-DDLL_EXPORT'
6928 ;;
6929
6930 hpux9* | hpux10* | hpux11*)
6931 lt_prog_compiler_wl='-Wl,'
6932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6933 # not for PA HP-UX.
6934 case $host_cpu in
6935 hppa*64*|ia64*)
6936 # +Z the default
6937 ;;
6938 *)
6939 lt_prog_compiler_pic='+Z'
6940 ;;
6941 esac
6942 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6943 lt_prog_compiler_static='${wl}-a ${wl}archive'
6944 ;;
6945
6946 irix5* | irix6* | nonstopux*)
6947 lt_prog_compiler_wl='-Wl,'
6948 # PIC (with -KPIC) is the default.
6949 lt_prog_compiler_static='-non_shared'
6950 ;;
6951
6952 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6953 case $cc_basename in
6954 # old Intel for x86_64 which still supported -KPIC.
6955 ecc*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-static'
6959 ;;
6960 # icc used to be incompatible with GCC.
6961 # ICC 10 doesn't accept -KPIC any more.
6962 icc* | ifort*)
6963 lt_prog_compiler_wl='-Wl,'
6964 lt_prog_compiler_pic='-fPIC'
6965 lt_prog_compiler_static='-static'
6966 ;;
6967 # Lahey Fortran 8.1.
6968 lf95*)
6969 lt_prog_compiler_wl='-Wl,'
6970 lt_prog_compiler_pic='--shared'
6971 lt_prog_compiler_static='--static'
6972 ;;
6973 pgcc* | pgf77* | pgf90* | pgf95*)
6974 # Portland Group compilers (*not* the Pentium gcc compiler,
6975 # which looks to be a dead project)
6976 lt_prog_compiler_wl='-Wl,'
6977 lt_prog_compiler_pic='-fpic'
6978 lt_prog_compiler_static='-Bstatic'
6979 ;;
6980 ccc*)
6981 lt_prog_compiler_wl='-Wl,'
6982 # All Alpha code is PIC.
6983 lt_prog_compiler_static='-non_shared'
6984 ;;
6985 xl*)
6986 # IBM XL C 8.0/Fortran 10.1 on PPC
6987 lt_prog_compiler_wl='-Wl,'
6988 lt_prog_compiler_pic='-qpic'
6989 lt_prog_compiler_static='-qstaticlink'
6990 ;;
6991 *)
6992 case `$CC -V 2>&1 | sed 5q` in
6993 *Sun\ C*)
6994 # Sun C 5.9
6995 lt_prog_compiler_pic='-KPIC'
6996 lt_prog_compiler_static='-Bstatic'
6997 lt_prog_compiler_wl='-Wl,'
6998 ;;
6999 *Sun\ F*)
7000 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7001 lt_prog_compiler_pic='-KPIC'
7002 lt_prog_compiler_static='-Bstatic'
7003 lt_prog_compiler_wl=''
7004 ;;
7005 esac
7006 ;;
7007 esac
7008 ;;
7009
7010 newsos6)
7011 lt_prog_compiler_pic='-KPIC'
7012 lt_prog_compiler_static='-Bstatic'
7013 ;;
7014
7015 *nto* | *qnx*)
7016 # QNX uses GNU C++, but need to define -shared option too, otherwise
7017 # it will coredump.
7018 lt_prog_compiler_pic='-fPIC -shared'
7019 ;;
7020
7021 osf3* | osf4* | osf5*)
7022 lt_prog_compiler_wl='-Wl,'
7023 # All OSF/1 code is PIC.
7024 lt_prog_compiler_static='-non_shared'
7025 ;;
7026
7027 rdos*)
7028 lt_prog_compiler_static='-non_shared'
7029 ;;
7030
7031 solaris*)
7032 lt_prog_compiler_pic='-KPIC'
7033 lt_prog_compiler_static='-Bstatic'
7034 case $cc_basename in
7035 f77* | f90* | f95*)
7036 lt_prog_compiler_wl='-Qoption ld ';;
7037 *)
7038 lt_prog_compiler_wl='-Wl,';;
7039 esac
7040 ;;
7041
7042 sunos4*)
7043 lt_prog_compiler_wl='-Qoption ld '
7044 lt_prog_compiler_pic='-PIC'
7045 lt_prog_compiler_static='-Bstatic'
7046 ;;
7047
7048 sysv4 | sysv4.2uw2* | sysv4.3*)
7049 lt_prog_compiler_wl='-Wl,'
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 ;;
7053
7054 sysv4*MP*)
7055 if test -d /usr/nec ;then
7056 lt_prog_compiler_pic='-Kconform_pic'
7057 lt_prog_compiler_static='-Bstatic'
7058 fi
7059 ;;
7060
7061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7062 lt_prog_compiler_wl='-Wl,'
7063 lt_prog_compiler_pic='-KPIC'
7064 lt_prog_compiler_static='-Bstatic'
7065 ;;
7066
7067 unicos*)
7068 lt_prog_compiler_wl='-Wl,'
7069 lt_prog_compiler_can_build_shared=no
7070 ;;
7071
7072 uts4*)
7073 lt_prog_compiler_pic='-pic'
7074 lt_prog_compiler_static='-Bstatic'
7075 ;;
7076
7077 *)
7078 lt_prog_compiler_can_build_shared=no
7079 ;;
7080 esac
7081 fi
7082
7083 case $host_os in
7084 # For platforms which do not support PIC, -DPIC is meaningless:
7085 *djgpp*)
7086 lt_prog_compiler_pic=
7087 ;;
7088 *)
7089 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7090 ;;
7091 esac
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7093 $as_echo "$lt_prog_compiler_pic" >&6; }
7094
7095
7096
7097
7098
7099
7100 #
7101 # Check to make sure the PIC flag actually works.
7102 #
7103 if test -n "$lt_prog_compiler_pic"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7106 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 lt_cv_prog_compiler_pic_works=no
7110 ac_outfile=conftest.$ac_objext
7111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 # The option is referenced via a variable to avoid confusing sed.
7118 lt_compile=`echo "$ac_compile" | $SED \
7119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7121 -e 's:$: $lt_compiler_flag:'`
7122 (eval echo "\"\$as_me:7122: $lt_compile\"" >&5)
7123 (eval "$lt_compile" 2>conftest.err)
7124 ac_status=$?
7125 cat conftest.err >&5
7126 echo "$as_me:7126: \$? = $ac_status" >&5
7127 if (exit $ac_status) && test -s "$ac_outfile"; then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings other than the usual output.
7130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7133 lt_cv_prog_compiler_pic_works=yes
7134 fi
7135 fi
7136 $RM conftest*
7137
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7141
7142 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7143 case $lt_prog_compiler_pic in
7144 "" | " "*) ;;
7145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7146 esac
7147 else
7148 lt_prog_compiler_pic=
7149 lt_prog_compiler_can_build_shared=no
7150 fi
7151
7152 fi
7153
7154
7155
7156
7157
7158
7159 #
7160 # Check to make sure the static flag actually works.
7161 #
7162 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7164 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7165 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 lt_cv_prog_compiler_static_works=no
7169 save_LDFLAGS="$LDFLAGS"
7170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7173 # The linker can only warn and ignore the option if not recognized
7174 # So say no if there are warnings
7175 if test -s conftest.err; then
7176 # Append any errors to the config.log.
7177 cat conftest.err 1>&5
7178 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7180 if diff conftest.exp conftest.er2 >/dev/null; then
7181 lt_cv_prog_compiler_static_works=yes
7182 fi
7183 else
7184 lt_cv_prog_compiler_static_works=yes
7185 fi
7186 fi
7187 $RM -r conftest*
7188 LDFLAGS="$save_LDFLAGS"
7189
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7192 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7193
7194 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7195 :
7196 else
7197 lt_prog_compiler_static=
7198 fi
7199
7200
7201
7202
7203
7204
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7208 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 lt_cv_prog_compiler_c_o=no
7212 $RM -r conftest 2>/dev/null
7213 mkdir conftest
7214 cd conftest
7215 mkdir out
7216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7217
7218 lt_compiler_flag="-o out/conftest2.$ac_objext"
7219 # Insert the option either (1) after the last *FLAGS variable, or
7220 # (2) before a word containing "conftest.", or (3) at the end.
7221 # Note that $ac_compile itself does not contain backslashes and begins
7222 # with a dollar sign (not a hyphen), so the echo should work correctly.
7223 lt_compile=`echo "$ac_compile" | $SED \
7224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7226 -e 's:$: $lt_compiler_flag:'`
7227 (eval echo "\"\$as_me:7227: $lt_compile\"" >&5)
7228 (eval "$lt_compile" 2>out/conftest.err)
7229 ac_status=$?
7230 cat out/conftest.err >&5
7231 echo "$as_me:7231: \$? = $ac_status" >&5
7232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7233 then
7234 # The compiler can only warn and ignore the option if not recognized
7235 # So say no if there are warnings
7236 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7239 lt_cv_prog_compiler_c_o=yes
7240 fi
7241 fi
7242 chmod u+w . 2>&5
7243 $RM conftest*
7244 # SGI C++ compiler will create directory out/ii_files/ for
7245 # template instantiation
7246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7247 $RM out/* && rmdir out
7248 cd ..
7249 $RM -r conftest
7250 $RM conftest*
7251
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7254 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
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 hard_links="nottested"
7315 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7316 # do not overwrite the value of need_locks provided by the user
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7318 $as_echo_n "checking if we can lock with hard links... " >&6; }
7319 hard_links=yes
7320 $RM conftest*
7321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7322 touch conftest.a
7323 ln conftest.a conftest.b 2>&5 || hard_links=no
7324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7326 $as_echo "$hard_links" >&6; }
7327 if test "$hard_links" = no; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7329 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7330 need_locks=warn
7331 fi
7332 else
7333 need_locks=no
7334 fi
7335
7336
7337
7338
7339
7340
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7343
7344 runpath_var=
7345 allow_undefined_flag=
7346 always_export_symbols=no
7347 archive_cmds=
7348 archive_expsym_cmds=
7349 compiler_needs_object=no
7350 enable_shared_with_static_runtimes=no
7351 export_dynamic_flag_spec=
7352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7353 hardcode_automatic=no
7354 hardcode_direct=no
7355 hardcode_direct_absolute=no
7356 hardcode_libdir_flag_spec=
7357 hardcode_libdir_flag_spec_ld=
7358 hardcode_libdir_separator=
7359 hardcode_minus_L=no
7360 hardcode_shlibpath_var=unsupported
7361 inherit_rpath=no
7362 link_all_deplibs=unknown
7363 module_cmds=
7364 module_expsym_cmds=
7365 old_archive_from_new_cmds=
7366 old_archive_from_expsyms_cmds=
7367 thread_safe_flag_spec=
7368 whole_archive_flag_spec=
7369 # include_expsyms should be a list of space-separated symbols to be *always*
7370 # included in the symbol list
7371 include_expsyms=
7372 # exclude_expsyms can be an extended regexp of symbols to exclude
7373 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7374 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7375 # as well as any symbol that contains `d'.
7376 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7377 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7378 # platforms (ab)use it in PIC code, but their linkers get confused if
7379 # the symbol is explicitly referenced. Since portable code cannot
7380 # rely on this symbol name, it's probably fine to never include it in
7381 # preloaded symbol tables.
7382 # Exclude shared library initialization/finalization symbols.
7383 extract_expsyms_cmds=
7384
7385 case $host_os in
7386 cygwin* | mingw* | pw32* | cegcc*)
7387 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7388 # When not using gcc, we currently assume that we are using
7389 # Microsoft Visual C++.
7390 if test "$GCC" != yes; then
7391 with_gnu_ld=no
7392 fi
7393 ;;
7394 interix*)
7395 # we just hope/assume this is gcc and not c89 (= MSVC++)
7396 with_gnu_ld=yes
7397 ;;
7398 openbsd*)
7399 with_gnu_ld=no
7400 ;;
7401 linux* | k*bsd*-gnu)
7402 link_all_deplibs=no
7403 ;;
7404 esac
7405
7406 ld_shlibs=yes
7407 if test "$with_gnu_ld" = yes; then
7408 # If archive_cmds runs LD, not CC, wlarc should be empty
7409 wlarc='${wl}'
7410
7411 # Set some defaults for GNU ld with shared library support. These
7412 # are reset later if shared libraries are not supported. Putting them
7413 # here allows them to be overridden if necessary.
7414 runpath_var=LD_RUN_PATH
7415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7416 export_dynamic_flag_spec='${wl}--export-dynamic'
7417 # ancient GNU ld didn't support --whole-archive et. al.
7418 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7419 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7420 else
7421 whole_archive_flag_spec=
7422 fi
7423 supports_anon_versioning=no
7424 case `$LD -v 2>&1` in
7425 *GNU\ gold*) supports_anon_versioning=yes ;;
7426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7429 *\ 2.11.*) ;; # other 2.11 versions
7430 *) supports_anon_versioning=yes ;;
7431 esac
7432
7433 # See if GNU ld supports shared libraries.
7434 case $host_os in
7435 aix[3-9]*)
7436 # On AIX/PPC, the GNU linker is very broken
7437 if test "$host_cpu" != ia64; then
7438 ld_shlibs=no
7439 cat <<_LT_EOF 1>&2
7440
7441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7442 *** to be unable to reliably create shared libraries on AIX.
7443 *** Therefore, libtool is disabling shared libraries support. If you
7444 *** really care for shared libraries, you may want to modify your PATH
7445 *** so that a non-GNU linker is found, and then restart.
7446
7447 _LT_EOF
7448 fi
7449 ;;
7450
7451 amigaos*)
7452 case $host_cpu in
7453 powerpc)
7454 # see comment about AmigaOS4 .so support
7455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7456 archive_expsym_cmds=''
7457 ;;
7458 m68k)
7459 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)'
7460 hardcode_libdir_flag_spec='-L$libdir'
7461 hardcode_minus_L=yes
7462 ;;
7463 esac
7464 ;;
7465
7466 beos*)
7467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7468 allow_undefined_flag=unsupported
7469 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7470 # support --undefined. This deserves some investigation. FIXME
7471 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7472 else
7473 ld_shlibs=no
7474 fi
7475 ;;
7476
7477 cygwin* | mingw* | pw32* | cegcc*)
7478 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7479 # as there is no search path for DLLs.
7480 hardcode_libdir_flag_spec='-L$libdir'
7481 allow_undefined_flag=unsupported
7482 always_export_symbols=no
7483 enable_shared_with_static_runtimes=yes
7484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7485
7486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7488 # If the export-symbols file already is a .def file (1st line
7489 # is EXPORTS), use it as is; otherwise, prepend...
7490 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7491 cp $export_symbols $output_objdir/$soname.def;
7492 else
7493 echo EXPORTS > $output_objdir/$soname.def;
7494 cat $export_symbols >> $output_objdir/$soname.def;
7495 fi~
7496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7497 else
7498 ld_shlibs=no
7499 fi
7500 ;;
7501
7502 interix[3-9]*)
7503 hardcode_direct=no
7504 hardcode_shlibpath_var=no
7505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7506 export_dynamic_flag_spec='${wl}-E'
7507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7508 # Instead, shared libraries are loaded at an image base (0x10000000 by
7509 # default) and relocated if they conflict, which is a slow very memory
7510 # consuming and fragmenting process. To avoid this, we pick a random,
7511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7513 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7514 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'
7515 ;;
7516
7517 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7518 tmp_diet=no
7519 if test "$host_os" = linux-dietlibc; then
7520 case $cc_basename in
7521 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7522 esac
7523 fi
7524 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7525 && test "$tmp_diet" = no
7526 then
7527 tmp_addflag=
7528 tmp_sharedflag='-shared'
7529 case $cc_basename,$host_cpu in
7530 pgcc*) # Portland Group C compiler
7531 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'
7532 tmp_addflag=' $pic_flag'
7533 ;;
7534 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7535 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'
7536 tmp_addflag=' $pic_flag -Mnomain' ;;
7537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7538 tmp_addflag=' -i_dynamic' ;;
7539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7540 tmp_addflag=' -i_dynamic -nofor_main' ;;
7541 ifc* | ifort*) # Intel Fortran compiler
7542 tmp_addflag=' -nofor_main' ;;
7543 lf95*) # Lahey Fortran 8.1
7544 whole_archive_flag_spec=
7545 tmp_sharedflag='--shared' ;;
7546 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7547 tmp_sharedflag='-qmkshrobj'
7548 tmp_addflag= ;;
7549 esac
7550 case `$CC -V 2>&1 | sed 5q` in
7551 *Sun\ C*) # Sun C 5.9
7552 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'
7553 compiler_needs_object=yes
7554 tmp_sharedflag='-G' ;;
7555 *Sun\ F*) # Sun Fortran 8.3
7556 tmp_sharedflag='-G' ;;
7557 esac
7558 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7559
7560 if test "x$supports_anon_versioning" = xyes; then
7561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7563 echo "local: *; };" >> $output_objdir/$libname.ver~
7564 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7565 fi
7566
7567 case $cc_basename in
7568 xlf*)
7569 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7570 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7571 hardcode_libdir_flag_spec=
7572 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7573 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7574 if test "x$supports_anon_versioning" = xyes; then
7575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7577 echo "local: *; };" >> $output_objdir/$libname.ver~
7578 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7579 fi
7580 ;;
7581 esac
7582 else
7583 ld_shlibs=no
7584 fi
7585 ;;
7586
7587 netbsd* | netbsdelf*-gnu)
7588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7590 wlarc=
7591 else
7592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7594 fi
7595 ;;
7596
7597 solaris*)
7598 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7599 ld_shlibs=no
7600 cat <<_LT_EOF 1>&2
7601
7602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7603 *** create shared libraries on Solaris systems. Therefore, libtool
7604 *** is disabling shared libraries support. We urge you to upgrade GNU
7605 *** binutils to release 2.9.1 or newer. Another option is to modify
7606 *** your PATH or compiler configuration so that the native linker is
7607 *** used, and then restart.
7608
7609 _LT_EOF
7610 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7613 else
7614 ld_shlibs=no
7615 fi
7616 ;;
7617
7618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7619 case `$LD -v 2>&1` in
7620 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7621 ld_shlibs=no
7622 cat <<_LT_EOF 1>&2
7623
7624 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7625 *** reliably create shared libraries on SCO systems. Therefore, libtool
7626 *** is disabling shared libraries support. We urge you to upgrade GNU
7627 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7628 *** your PATH or compiler configuration so that the native linker is
7629 *** used, and then restart.
7630
7631 _LT_EOF
7632 ;;
7633 *)
7634 # For security reasons, it is highly recommended that you always
7635 # use absolute paths for naming shared libraries, and exclude the
7636 # DT_RUNPATH tag from executables and libraries. But doing so
7637 # requires that you compile everything twice, which is a pain.
7638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7642 else
7643 ld_shlibs=no
7644 fi
7645 ;;
7646 esac
7647 ;;
7648
7649 sunos4*)
7650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7651 wlarc=
7652 hardcode_direct=yes
7653 hardcode_shlibpath_var=no
7654 ;;
7655
7656 *)
7657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7660 else
7661 ld_shlibs=no
7662 fi
7663 ;;
7664 esac
7665
7666 if test "$ld_shlibs" = no; then
7667 runpath_var=
7668 hardcode_libdir_flag_spec=
7669 export_dynamic_flag_spec=
7670 whole_archive_flag_spec=
7671 fi
7672 else
7673 # PORTME fill in a description of your system's linker (not GNU ld)
7674 case $host_os in
7675 aix3*)
7676 allow_undefined_flag=unsupported
7677 always_export_symbols=yes
7678 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'
7679 # Note: this linker hardcodes the directories in LIBPATH if there
7680 # are no directories specified by -L.
7681 hardcode_minus_L=yes
7682 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7683 # Neither direct hardcoding nor static linking is supported with a
7684 # broken collect2.
7685 hardcode_direct=unsupported
7686 fi
7687 ;;
7688
7689 aix[4-9]*)
7690 if test "$host_cpu" = ia64; then
7691 # On IA64, the linker does run time linking by default, so we don't
7692 # have to do anything special.
7693 aix_use_runtimelinking=no
7694 exp_sym_flag='-Bexport'
7695 no_entry_flag=""
7696 else
7697 # If we're using GNU nm, then we don't want the "-C" option.
7698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7699 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7700 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'
7701 else
7702 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'
7703 fi
7704 aix_use_runtimelinking=no
7705
7706 # Test if we are trying to use run time linking or normal
7707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7708 # need to do runtime linking.
7709 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7710 for ld_flag in $LDFLAGS; do
7711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7712 aix_use_runtimelinking=yes
7713 break
7714 fi
7715 done
7716 ;;
7717 esac
7718
7719 exp_sym_flag='-bexport'
7720 no_entry_flag='-bnoentry'
7721 fi
7722
7723 # When large executables or shared objects are built, AIX ld can
7724 # have problems creating the table of contents. If linking a library
7725 # or program results in "error TOC overflow" add -mminimal-toc to
7726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7728
7729 archive_cmds=''
7730 hardcode_direct=yes
7731 hardcode_direct_absolute=yes
7732 hardcode_libdir_separator=':'
7733 link_all_deplibs=yes
7734 file_list_spec='${wl}-f,'
7735
7736 if test "$GCC" = yes; then
7737 case $host_os in aix4.[012]|aix4.[012].*)
7738 # We only want to do this on AIX 4.2 and lower, the check
7739 # below for broken collect2 doesn't work under 4.3+
7740 collect2name=`${CC} -print-prog-name=collect2`
7741 if test -f "$collect2name" &&
7742 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7743 then
7744 # We have reworked collect2
7745 :
7746 else
7747 # We have old collect2
7748 hardcode_direct=unsupported
7749 # It fails to find uninstalled libraries when the uninstalled
7750 # path is not listed in the libpath. Setting hardcode_minus_L
7751 # to unsupported forces relinking
7752 hardcode_minus_L=yes
7753 hardcode_libdir_flag_spec='-L$libdir'
7754 hardcode_libdir_separator=
7755 fi
7756 ;;
7757 esac
7758 shared_flag='-shared'
7759 if test "$aix_use_runtimelinking" = yes; then
7760 shared_flag="$shared_flag "'${wl}-G'
7761 fi
7762 link_all_deplibs=no
7763 else
7764 # not using gcc
7765 if test "$host_cpu" = ia64; then
7766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7767 # chokes on -Wl,-G. The following line is correct:
7768 shared_flag='-G'
7769 else
7770 if test "$aix_use_runtimelinking" = yes; then
7771 shared_flag='${wl}-G'
7772 else
7773 shared_flag='${wl}-bM:SRE'
7774 fi
7775 fi
7776 fi
7777
7778 export_dynamic_flag_spec='${wl}-bexpall'
7779 # It seems that -bexpall does not export symbols beginning with
7780 # underscore (_), so it is better to generate a list of symbols to export.
7781 always_export_symbols=yes
7782 if test "$aix_use_runtimelinking" = yes; then
7783 # Warning - without using the other runtime loading flags (-brtl),
7784 # -berok will link without error, but may produce a broken library.
7785 allow_undefined_flag='-berok'
7786 # Determine the default libpath from the value encoded in an
7787 # empty executable.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790
7791 int
7792 main ()
7793 {
7794
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 if ac_fn_c_try_link "$LINENO"; then :
7800
7801 lt_aix_libpath_sed='
7802 /Import File Strings/,/^$/ {
7803 /^0/ {
7804 s/^0 *\(.*\)$/\1/
7805 p
7806 }
7807 }'
7808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7809 # Check for a 64-bit object if we didn't find anything.
7810 if test -z "$aix_libpath"; then
7811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7812 fi
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7817
7818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7819 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"
7820 else
7821 if test "$host_cpu" = ia64; then
7822 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7823 allow_undefined_flag="-z nodefs"
7824 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"
7825 else
7826 # Determine the default libpath from the value encoded in an
7827 # empty executable.
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830
7831 int
7832 main ()
7833 {
7834
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840
7841 lt_aix_libpath_sed='
7842 /Import File Strings/,/^$/ {
7843 /^0/ {
7844 s/^0 *\(.*\)$/\1/
7845 p
7846 }
7847 }'
7848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7849 # Check for a 64-bit object if we didn't find anything.
7850 if test -z "$aix_libpath"; then
7851 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7852 fi
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext \
7855 conftest$ac_exeext conftest.$ac_ext
7856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7857
7858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7859 # Warning - without using the other run time loading flags,
7860 # -berok will link without error, but may produce a broken library.
7861 no_undefined_flag=' ${wl}-bernotok'
7862 allow_undefined_flag=' ${wl}-berok'
7863 # Exported symbols can be pulled into shared objects from archives
7864 whole_archive_flag_spec='$convenience'
7865 archive_cmds_need_lc=yes
7866 # This is similar to how AIX traditionally builds its shared libraries.
7867 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'
7868 fi
7869 fi
7870 ;;
7871
7872 amigaos*)
7873 case $host_cpu in
7874 powerpc)
7875 # see comment about AmigaOS4 .so support
7876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877 archive_expsym_cmds=''
7878 ;;
7879 m68k)
7880 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)'
7881 hardcode_libdir_flag_spec='-L$libdir'
7882 hardcode_minus_L=yes
7883 ;;
7884 esac
7885 ;;
7886
7887 bsdi[45]*)
7888 export_dynamic_flag_spec=-rdynamic
7889 ;;
7890
7891 cygwin* | mingw* | pw32* | cegcc*)
7892 # When not using gcc, we currently assume that we are using
7893 # Microsoft Visual C++.
7894 # hardcode_libdir_flag_spec is actually meaningless, as there is
7895 # no search path for DLLs.
7896 hardcode_libdir_flag_spec=' '
7897 allow_undefined_flag=unsupported
7898 # Tell ltmain to make .lib files, not .a files.
7899 libext=lib
7900 # Tell ltmain to make .dll files, not .so files.
7901 shrext_cmds=".dll"
7902 # FIXME: Setting linknames here is a bad hack.
7903 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7904 # The linker will automatically build a .lib file if we build a DLL.
7905 old_archive_from_new_cmds='true'
7906 # FIXME: Should let the user specify the lib program.
7907 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7908 fix_srcfile_path='`cygpath -w "$srcfile"`'
7909 enable_shared_with_static_runtimes=yes
7910 ;;
7911
7912 darwin* | rhapsody*)
7913
7914
7915 archive_cmds_need_lc=no
7916 hardcode_direct=no
7917 hardcode_automatic=yes
7918 hardcode_shlibpath_var=unsupported
7919 whole_archive_flag_spec=''
7920 link_all_deplibs=yes
7921 allow_undefined_flag="$_lt_dar_allow_undefined"
7922 case $cc_basename in
7923 ifort*) _lt_dar_can_shared=yes ;;
7924 *) _lt_dar_can_shared=$GCC ;;
7925 esac
7926 if test "$_lt_dar_can_shared" = "yes"; then
7927 output_verbose_link_cmd=echo
7928 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7929 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7930 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}"
7931 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}"
7932
7933 else
7934 ld_shlibs=no
7935 fi
7936
7937 ;;
7938
7939 dgux*)
7940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7941 hardcode_libdir_flag_spec='-L$libdir'
7942 hardcode_shlibpath_var=no
7943 ;;
7944
7945 freebsd1*)
7946 ld_shlibs=no
7947 ;;
7948
7949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7950 # support. Future versions do this automatically, but an explicit c++rt0.o
7951 # does not break anything, and helps significantly (at the cost of a little
7952 # extra space).
7953 freebsd2.2*)
7954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7955 hardcode_libdir_flag_spec='-R$libdir'
7956 hardcode_direct=yes
7957 hardcode_shlibpath_var=no
7958 ;;
7959
7960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7961 freebsd2*)
7962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7963 hardcode_direct=yes
7964 hardcode_minus_L=yes
7965 hardcode_shlibpath_var=no
7966 ;;
7967
7968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7969 freebsd* | dragonfly*)
7970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7971 hardcode_libdir_flag_spec='-R$libdir'
7972 hardcode_direct=yes
7973 hardcode_shlibpath_var=no
7974 ;;
7975
7976 hpux9*)
7977 if test "$GCC" = yes; then
7978 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'
7979 else
7980 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'
7981 fi
7982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7983 hardcode_libdir_separator=:
7984 hardcode_direct=yes
7985
7986 # hardcode_minus_L: Not really in the search PATH,
7987 # but as the default location of the library.
7988 hardcode_minus_L=yes
7989 export_dynamic_flag_spec='${wl}-E'
7990 ;;
7991
7992 hpux10*)
7993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7995 else
7996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7997 fi
7998 if test "$with_gnu_ld" = no; then
7999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8000 hardcode_libdir_flag_spec_ld='+b $libdir'
8001 hardcode_libdir_separator=:
8002 hardcode_direct=yes
8003 hardcode_direct_absolute=yes
8004 export_dynamic_flag_spec='${wl}-E'
8005 # hardcode_minus_L: Not really in the search PATH,
8006 # but as the default location of the library.
8007 hardcode_minus_L=yes
8008 fi
8009 ;;
8010
8011 hpux11*)
8012 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8013 case $host_cpu in
8014 hppa*64*)
8015 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 ;;
8017 ia64*)
8018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8019 ;;
8020 *)
8021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8022 ;;
8023 esac
8024 else
8025 case $host_cpu in
8026 hppa*64*)
8027 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8028 ;;
8029 ia64*)
8030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8031 ;;
8032 *)
8033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8034 ;;
8035 esac
8036 fi
8037 if test "$with_gnu_ld" = no; then
8038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8039 hardcode_libdir_separator=:
8040
8041 case $host_cpu in
8042 hppa*64*|ia64*)
8043 hardcode_direct=no
8044 hardcode_shlibpath_var=no
8045 ;;
8046 *)
8047 hardcode_direct=yes
8048 hardcode_direct_absolute=yes
8049 export_dynamic_flag_spec='${wl}-E'
8050
8051 # hardcode_minus_L: Not really in the search PATH,
8052 # but as the default location of the library.
8053 hardcode_minus_L=yes
8054 ;;
8055 esac
8056 fi
8057 ;;
8058
8059 irix5* | irix6* | nonstopux*)
8060 if test "$GCC" = yes; then
8061 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'
8062 # Try to use the -exported_symbol ld option, if it does not
8063 # work, assume that -exports_file does not work either and
8064 # implicitly export all symbols.
8065 save_LDFLAGS="$LDFLAGS"
8066 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int foo(void) {}
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 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'
8073
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LDFLAGS="$save_LDFLAGS"
8078 else
8079 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'
8080 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'
8081 fi
8082 archive_cmds_need_lc='no'
8083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8084 hardcode_libdir_separator=:
8085 inherit_rpath=yes
8086 link_all_deplibs=yes
8087 ;;
8088
8089 netbsd* | netbsdelf*-gnu)
8090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8092 else
8093 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8094 fi
8095 hardcode_libdir_flag_spec='-R$libdir'
8096 hardcode_direct=yes
8097 hardcode_shlibpath_var=no
8098 ;;
8099
8100 newsos6)
8101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8102 hardcode_direct=yes
8103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8104 hardcode_libdir_separator=:
8105 hardcode_shlibpath_var=no
8106 ;;
8107
8108 *nto* | *qnx*)
8109 ;;
8110
8111 openbsd*)
8112 if test -f /usr/libexec/ld.so; then
8113 hardcode_direct=yes
8114 hardcode_shlibpath_var=no
8115 hardcode_direct_absolute=yes
8116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8118 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8120 export_dynamic_flag_spec='${wl}-E'
8121 else
8122 case $host_os in
8123 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8125 hardcode_libdir_flag_spec='-R$libdir'
8126 ;;
8127 *)
8128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8130 ;;
8131 esac
8132 fi
8133 else
8134 ld_shlibs=no
8135 fi
8136 ;;
8137
8138 os2*)
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 hardcode_minus_L=yes
8141 allow_undefined_flag=unsupported
8142 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'
8143 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8144 ;;
8145
8146 osf3*)
8147 if test "$GCC" = yes; then
8148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8149 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'
8150 else
8151 allow_undefined_flag=' -expect_unresolved \*'
8152 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'
8153 fi
8154 archive_cmds_need_lc='no'
8155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8156 hardcode_libdir_separator=:
8157 ;;
8158
8159 osf4* | osf5*) # as osf3* with the addition of -msym flag
8160 if test "$GCC" = yes; then
8161 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8162 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'
8163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8164 else
8165 allow_undefined_flag=' -expect_unresolved \*'
8166 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'
8167 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~
8168 $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'
8169
8170 # Both c and cxx compiler support -rpath directly
8171 hardcode_libdir_flag_spec='-rpath $libdir'
8172 fi
8173 archive_cmds_need_lc='no'
8174 hardcode_libdir_separator=:
8175 ;;
8176
8177 solaris*)
8178 no_undefined_flag=' -z defs'
8179 if test "$GCC" = yes; then
8180 wlarc='${wl}'
8181 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8183 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8184 else
8185 case `$CC -V 2>&1` in
8186 *"Compilers 5.0"*)
8187 wlarc=''
8188 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8190 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8191 ;;
8192 *)
8193 wlarc='${wl}'
8194 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8195 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8196 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8197 ;;
8198 esac
8199 fi
8200 hardcode_libdir_flag_spec='-R$libdir'
8201 hardcode_shlibpath_var=no
8202 case $host_os in
8203 solaris2.[0-5] | solaris2.[0-5].*) ;;
8204 *)
8205 # The compiler driver will combine and reorder linker options,
8206 # but understands `-z linker_flag'. GCC discards it without `$wl',
8207 # but is careful enough not to reorder.
8208 # Supported since Solaris 2.6 (maybe 2.5.1?)
8209 if test "$GCC" = yes; then
8210 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8211 else
8212 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8213 fi
8214 ;;
8215 esac
8216 link_all_deplibs=yes
8217 ;;
8218
8219 sunos4*)
8220 if test "x$host_vendor" = xsequent; then
8221 # Use $CC to link under sequent, because it throws in some extra .o
8222 # files that make .init and .fini sections work.
8223 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8224 else
8225 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8226 fi
8227 hardcode_libdir_flag_spec='-L$libdir'
8228 hardcode_direct=yes
8229 hardcode_minus_L=yes
8230 hardcode_shlibpath_var=no
8231 ;;
8232
8233 sysv4)
8234 case $host_vendor in
8235 sni)
8236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_direct=yes # is this really true???
8238 ;;
8239 siemens)
8240 ## LD is ld it makes a PLAMLIB
8241 ## CC just makes a GrossModule.
8242 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8243 reload_cmds='$CC -r -o $output$reload_objs'
8244 hardcode_direct=no
8245 ;;
8246 motorola)
8247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8249 ;;
8250 esac
8251 runpath_var='LD_RUN_PATH'
8252 hardcode_shlibpath_var=no
8253 ;;
8254
8255 sysv4.3*)
8256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_shlibpath_var=no
8258 export_dynamic_flag_spec='-Bexport'
8259 ;;
8260
8261 sysv4*MP*)
8262 if test -d /usr/nec; then
8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264 hardcode_shlibpath_var=no
8265 runpath_var=LD_RUN_PATH
8266 hardcode_runpath_var=yes
8267 ld_shlibs=yes
8268 fi
8269 ;;
8270
8271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8272 no_undefined_flag='${wl}-z,text'
8273 archive_cmds_need_lc=no
8274 hardcode_shlibpath_var=no
8275 runpath_var='LD_RUN_PATH'
8276
8277 if test "$GCC" = yes; then
8278 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 else
8281 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 fi
8284 ;;
8285
8286 sysv5* | sco3.2v5* | sco5v6*)
8287 # Note: We can NOT use -z defs as we might desire, because we do not
8288 # link with -lc, and that would cause any symbols used from libc to
8289 # always be unresolved, which means just about no library would
8290 # ever link correctly. If we're not using GNU ld we use -z text
8291 # though, which does catch some bad symbols but isn't as heavy-handed
8292 # as -z defs.
8293 no_undefined_flag='${wl}-z,text'
8294 allow_undefined_flag='${wl}-z,nodefs'
8295 archive_cmds_need_lc=no
8296 hardcode_shlibpath_var=no
8297 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8298 hardcode_libdir_separator=':'
8299 link_all_deplibs=yes
8300 export_dynamic_flag_spec='${wl}-Bexport'
8301 runpath_var='LD_RUN_PATH'
8302
8303 if test "$GCC" = yes; then
8304 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8305 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 else
8307 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8308 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 fi
8310 ;;
8311
8312 uts4*)
8313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8314 hardcode_libdir_flag_spec='-L$libdir'
8315 hardcode_shlibpath_var=no
8316 ;;
8317
8318 *)
8319 ld_shlibs=no
8320 ;;
8321 esac
8322
8323 if test x$host_vendor = xsni; then
8324 case $host in
8325 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8326 export_dynamic_flag_spec='${wl}-Blargedynsym'
8327 ;;
8328 esac
8329 fi
8330 fi
8331
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8333 $as_echo "$ld_shlibs" >&6; }
8334 test "$ld_shlibs" = no && can_build_shared=no
8335
8336 with_gnu_ld=$with_gnu_ld
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 #
8353 # Do we need to explicitly link libc?
8354 #
8355 case "x$archive_cmds_need_lc" in
8356 x|xyes)
8357 # Assume -lc should be added
8358 archive_cmds_need_lc=yes
8359
8360 if test "$enable_shared" = yes && test "$GCC" = yes; then
8361 case $archive_cmds in
8362 *'~'*)
8363 # FIXME: we may have to deal with multi-command sequences.
8364 ;;
8365 '$CC '*)
8366 # Test whether the compiler implicitly links with -lc since on some
8367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8368 # to ld, don't add -lc before -lgcc.
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8370 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8371 $RM conftest*
8372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8373
8374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8375 (eval $ac_compile) 2>&5
8376 ac_status=$?
8377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8378 test $ac_status = 0; } 2>conftest.err; then
8379 soname=conftest
8380 lib=conftest
8381 libobjs=conftest.$ac_objext
8382 deplibs=
8383 wl=$lt_prog_compiler_wl
8384 pic_flag=$lt_prog_compiler_pic
8385 compiler_flags=-v
8386 linker_flags=-v
8387 verstring=
8388 output_objdir=.
8389 libname=conftest
8390 lt_save_allow_undefined_flag=$allow_undefined_flag
8391 allow_undefined_flag=
8392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8393 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8394 ac_status=$?
8395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8396 test $ac_status = 0; }
8397 then
8398 archive_cmds_need_lc=no
8399 else
8400 archive_cmds_need_lc=yes
8401 fi
8402 allow_undefined_flag=$lt_save_allow_undefined_flag
8403 else
8404 cat conftest.err 1>&5
8405 fi
8406 $RM conftest*
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8408 $as_echo "$archive_cmds_need_lc" >&6; }
8409 ;;
8410 esac
8411 fi
8412 ;;
8413 esac
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8572 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8573
8574 if test "$GCC" = yes; then
8575 case $host_os in
8576 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8577 *) lt_awk_arg="/^libraries:/" ;;
8578 esac
8579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8580 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8581 # if the path contains ";" then we assume it to be the separator
8582 # otherwise default to the standard path separator (i.e. ":") - it is
8583 # assumed that no part of a normal pathname contains ";" but that should
8584 # okay in the real world where ";" in dirpaths is itself problematic.
8585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8586 else
8587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8588 fi
8589 # Ok, now we have the path, separated by spaces, we can step through it
8590 # and add multilib dir if necessary.
8591 lt_tmp_lt_search_path_spec=
8592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8593 for lt_sys_path in $lt_search_path_spec; do
8594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8596 else
8597 test -d "$lt_sys_path" && \
8598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8599 fi
8600 done
8601 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8602 BEGIN {RS=" "; FS="/|\n";} {
8603 lt_foo="";
8604 lt_count=0;
8605 for (lt_i = NF; lt_i > 0; lt_i--) {
8606 if ($lt_i != "" && $lt_i != ".") {
8607 if ($lt_i == "..") {
8608 lt_count++;
8609 } else {
8610 if (lt_count == 0) {
8611 lt_foo="/" $lt_i lt_foo;
8612 } else {
8613 lt_count--;
8614 }
8615 }
8616 }
8617 }
8618 if (lt_foo != "") { lt_freq[lt_foo]++; }
8619 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8620 }'`
8621 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8622 else
8623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8624 fi
8625 library_names_spec=
8626 libname_spec='lib$name'
8627 soname_spec=
8628 shrext_cmds=".so"
8629 postinstall_cmds=
8630 postuninstall_cmds=
8631 finish_cmds=
8632 finish_eval=
8633 shlibpath_var=
8634 shlibpath_overrides_runpath=unknown
8635 version_type=none
8636 dynamic_linker="$host_os ld.so"
8637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8638 need_lib_prefix=unknown
8639 hardcode_into_libs=no
8640
8641 # when you set need_version to no, make sure it does not cause -set_version
8642 # flags to be left without arguments
8643 need_version=unknown
8644
8645 case $host_os in
8646 aix3*)
8647 version_type=linux
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8649 shlibpath_var=LIBPATH
8650
8651 # AIX 3 has no versioning support, so we append a major version to the name.
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 ;;
8654
8655 aix[4-9]*)
8656 version_type=linux
8657 need_lib_prefix=no
8658 need_version=no
8659 hardcode_into_libs=yes
8660 if test "$host_cpu" = ia64; then
8661 # AIX 5 supports IA64
8662 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 else
8665 # With GCC up to 2.95.x, collect2 would create an import file
8666 # for dependence libraries. The import file would start with
8667 # the line `#! .'. This would cause the generated library to
8668 # depend on `.', always an invalid library. This was fixed in
8669 # development snapshots of GCC prior to 3.0.
8670 case $host_os in
8671 aix4 | aix4.[01] | aix4.[01].*)
8672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8673 echo ' yes '
8674 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8675 :
8676 else
8677 can_build_shared=no
8678 fi
8679 ;;
8680 esac
8681 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8682 # soname into executable. Probably we can add versioning support to
8683 # collect2, so additional links can be useful in future.
8684 if test "$aix_use_runtimelinking" = yes; then
8685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8686 # instead of lib<name>.a to let people know that these are not
8687 # typical AIX shared libraries.
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689 else
8690 # We preserve .a as extension for shared libraries through AIX4.2
8691 # and later when we are not doing run time linking.
8692 library_names_spec='${libname}${release}.a $libname.a'
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 fi
8695 shlibpath_var=LIBPATH
8696 fi
8697 ;;
8698
8699 amigaos*)
8700 case $host_cpu in
8701 powerpc)
8702 # Since July 2007 AmigaOS4 officially supports .so libraries.
8703 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8705 ;;
8706 m68k)
8707 library_names_spec='$libname.ixlibrary $libname.a'
8708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8709 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'
8710 ;;
8711 esac
8712 ;;
8713
8714 beos*)
8715 library_names_spec='${libname}${shared_ext}'
8716 dynamic_linker="$host_os ld.so"
8717 shlibpath_var=LIBRARY_PATH
8718 ;;
8719
8720 bsdi[45]*)
8721 version_type=linux
8722 need_version=no
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8729 # the default ld.so.conf also contains /usr/contrib/lib and
8730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8731 # libtool to hard-code these into programs
8732 ;;
8733
8734 cygwin* | mingw* | pw32* | cegcc*)
8735 version_type=windows
8736 shrext_cmds=".dll"
8737 need_version=no
8738 need_lib_prefix=no
8739
8740 case $GCC,$host_os in
8741 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8742 library_names_spec='$libname.dll.a'
8743 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8744 postinstall_cmds='base_file=`basename \${file}`~
8745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8746 dldir=$destdir/`dirname \$dlpath`~
8747 test -d \$dldir || mkdir -p \$dldir~
8748 $install_prog $dir/$dlname \$dldir/$dlname~
8749 chmod a+x \$dldir/$dlname~
8750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8752 fi'
8753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8754 dlpath=$dir/\$dldll~
8755 $RM \$dlpath'
8756 shlibpath_overrides_runpath=yes
8757
8758 case $host_os in
8759 cygwin*)
8760 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8761 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8762 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8763 ;;
8764 mingw* | cegcc*)
8765 # MinGW DLLs use traditional 'lib' prefix
8766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8767 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8768 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8769 # It is most probably a Windows format PATH printed by
8770 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8771 # path with ; separators, and with drive letters. We can handle the
8772 # drive letters (cygwin fileutils understands them), so leave them,
8773 # especially as we might pass files found there to a mingw objdump,
8774 # which wouldn't understand a cygwinified path. Ahh.
8775 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8776 else
8777 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8778 fi
8779 ;;
8780 pw32*)
8781 # pw32 DLLs use 'pw' prefix rather than 'lib'
8782 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8783 ;;
8784 esac
8785 ;;
8786
8787 *)
8788 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8789 ;;
8790 esac
8791 dynamic_linker='Win32 ld.exe'
8792 # FIXME: first we should search . and the directory the executable is in
8793 shlibpath_var=PATH
8794 ;;
8795
8796 darwin* | rhapsody*)
8797 dynamic_linker="$host_os dyld"
8798 version_type=darwin
8799 need_lib_prefix=no
8800 need_version=no
8801 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8802 soname_spec='${libname}${release}${major}$shared_ext'
8803 shlibpath_overrides_runpath=yes
8804 shlibpath_var=DYLD_LIBRARY_PATH
8805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8806
8807 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8808 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8809 ;;
8810
8811 dgux*)
8812 version_type=linux
8813 need_lib_prefix=no
8814 need_version=no
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 ;;
8819
8820 freebsd1*)
8821 dynamic_linker=no
8822 ;;
8823
8824 freebsd* | dragonfly*)
8825 # DragonFly does not have aout. When/if they implement a new
8826 # versioning mechanism, adjust this.
8827 if test -x /usr/bin/objformat; then
8828 objformat=`/usr/bin/objformat`
8829 else
8830 case $host_os in
8831 freebsd[123]*) objformat=aout ;;
8832 *) objformat=elf ;;
8833 esac
8834 fi
8835 version_type=freebsd-$objformat
8836 case $version_type in
8837 freebsd-elf*)
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8839 need_version=no
8840 need_lib_prefix=no
8841 ;;
8842 freebsd-*)
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8844 need_version=yes
8845 ;;
8846 esac
8847 shlibpath_var=LD_LIBRARY_PATH
8848 case $host_os in
8849 freebsd2*)
8850 shlibpath_overrides_runpath=yes
8851 ;;
8852 freebsd3.[01]* | freebsdelf3.[01]*)
8853 shlibpath_overrides_runpath=yes
8854 hardcode_into_libs=yes
8855 ;;
8856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8858 shlibpath_overrides_runpath=no
8859 hardcode_into_libs=yes
8860 ;;
8861 *) # from 4.6 on, and DragonFly
8862 shlibpath_overrides_runpath=yes
8863 hardcode_into_libs=yes
8864 ;;
8865 esac
8866 ;;
8867
8868 gnu*)
8869 version_type=linux
8870 need_lib_prefix=no
8871 need_version=no
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 hardcode_into_libs=yes
8876 ;;
8877
8878 hpux9* | hpux10* | hpux11*)
8879 # Give a soname corresponding to the major version so that dld.sl refuses to
8880 # link against other versions.
8881 version_type=sunos
8882 need_lib_prefix=no
8883 need_version=no
8884 case $host_cpu in
8885 ia64*)
8886 shrext_cmds='.so'
8887 hardcode_into_libs=yes
8888 dynamic_linker="$host_os dld.so"
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 if test "X$HPUX_IA64_MODE" = X32; then
8894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8895 else
8896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8897 fi
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899 ;;
8900 hppa*64*)
8901 shrext_cmds='.sl'
8902 hardcode_into_libs=yes
8903 dynamic_linker="$host_os dld.sl"
8904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8910 ;;
8911 *)
8912 shrext_cmds='.sl'
8913 dynamic_linker="$host_os dld.sl"
8914 shlibpath_var=SHLIB_PATH
8915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 ;;
8919 esac
8920 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8921 postinstall_cmds='chmod 555 $lib'
8922 ;;
8923
8924 interix[3-9]*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=no
8933 hardcode_into_libs=yes
8934 ;;
8935
8936 irix5* | irix6* | nonstopux*)
8937 case $host_os in
8938 nonstopux*) version_type=nonstopux ;;
8939 *)
8940 if test "$lt_cv_prog_gnu_ld" = yes; then
8941 version_type=linux
8942 else
8943 version_type=irix
8944 fi ;;
8945 esac
8946 need_lib_prefix=no
8947 need_version=no
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8950 case $host_os in
8951 irix5* | nonstopux*)
8952 libsuff= shlibsuff=
8953 ;;
8954 *)
8955 case $LD in # libtool.m4 will add one of these switches to LD
8956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8957 libsuff= shlibsuff= libmagic=32-bit;;
8958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8959 libsuff=32 shlibsuff=N32 libmagic=N32;;
8960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8962 *) libsuff= shlibsuff= libmagic=never-match;;
8963 esac
8964 ;;
8965 esac
8966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8967 shlibpath_overrides_runpath=no
8968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8970 hardcode_into_libs=yes
8971 ;;
8972
8973 # No shared lib support for Linux oldld, aout, or coff.
8974 linux*oldld* | linux*aout* | linux*coff*)
8975 dynamic_linker=no
8976 ;;
8977
8978 # This must be Linux ELF.
8979 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
8988 # Some binutils ld are patched to set DT_RUNPATH
8989 save_LDFLAGS=$LDFLAGS
8990 save_libdir=$libdir
8991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995
8996 int
8997 main ()
8998 {
8999
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"; then :
9005 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9006 shlibpath_overrides_runpath=yes
9007 fi
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011 LDFLAGS=$save_LDFLAGS
9012 libdir=$save_libdir
9013
9014 # This implies no fast_install, which is unacceptable.
9015 # Some rework will be needed to allow for fast_install
9016 # before this can be enabled.
9017 hardcode_into_libs=yes
9018
9019 # Append ld.so.conf contents to the search path
9020 if test -f /etc/ld.so.conf; then
9021 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' ' '`
9022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9023 fi
9024
9025 # We used to test for /lib/ld.so.1 and disable shared libraries on
9026 # powerpc, because MkLinux only supported shared libraries with the
9027 # GNU dynamic linker. Since this was broken with cross compilers,
9028 # most powerpc-linux boxes support dynamic linking these days and
9029 # people can always --disable-shared, the test was removed, and we
9030 # assume the GNU/Linux dynamic linker is in use.
9031 dynamic_linker='GNU/Linux ld.so'
9032 ;;
9033
9034 netbsdelf*-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 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=no
9042 hardcode_into_libs=yes
9043 dynamic_linker='NetBSD ld.elf_so'
9044 ;;
9045
9046 netbsd*)
9047 version_type=sunos
9048 need_lib_prefix=no
9049 need_version=no
9050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9053 dynamic_linker='NetBSD (a.out) ld.so'
9054 else
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 dynamic_linker='NetBSD ld.elf_so'
9058 fi
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 hardcode_into_libs=yes
9062 ;;
9063
9064 newsos6)
9065 version_type=linux
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=yes
9069 ;;
9070
9071 *nto* | *qnx*)
9072 version_type=qnx
9073 need_lib_prefix=no
9074 need_version=no
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=no
9079 hardcode_into_libs=yes
9080 dynamic_linker='ldqnx.so'
9081 ;;
9082
9083 openbsd*)
9084 version_type=sunos
9085 sys_lib_dlsearch_path_spec="/usr/lib"
9086 need_lib_prefix=no
9087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9088 case $host_os in
9089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9090 *) need_version=no ;;
9091 esac
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9096 case $host_os in
9097 openbsd2.[89] | openbsd2.[89].*)
9098 shlibpath_overrides_runpath=no
9099 ;;
9100 *)
9101 shlibpath_overrides_runpath=yes
9102 ;;
9103 esac
9104 else
9105 shlibpath_overrides_runpath=yes
9106 fi
9107 ;;
9108
9109 os2*)
9110 libname_spec='$name'
9111 shrext_cmds=".dll"
9112 need_lib_prefix=no
9113 library_names_spec='$libname${shared_ext} $libname.a'
9114 dynamic_linker='OS/2 ld.exe'
9115 shlibpath_var=LIBPATH
9116 ;;
9117
9118 osf3* | osf4* | osf5*)
9119 version_type=osf
9120 need_lib_prefix=no
9121 need_version=no
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9127 ;;
9128
9129 rdos*)
9130 dynamic_linker=no
9131 ;;
9132
9133 solaris*)
9134 version_type=linux
9135 need_lib_prefix=no
9136 need_version=no
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9142 # ldd complains unless libraries are executable
9143 postinstall_cmds='chmod +x $lib'
9144 ;;
9145
9146 sunos4*)
9147 version_type=sunos
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=yes
9152 if test "$with_gnu_ld" = yes; then
9153 need_lib_prefix=no
9154 fi
9155 need_version=yes
9156 ;;
9157
9158 sysv4 | sysv4.3*)
9159 version_type=linux
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 case $host_vendor in
9164 sni)
9165 shlibpath_overrides_runpath=no
9166 need_lib_prefix=no
9167 runpath_var=LD_RUN_PATH
9168 ;;
9169 siemens)
9170 need_lib_prefix=no
9171 ;;
9172 motorola)
9173 need_lib_prefix=no
9174 need_version=no
9175 shlibpath_overrides_runpath=no
9176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9177 ;;
9178 esac
9179 ;;
9180
9181 sysv4*MP*)
9182 if test -d /usr/nec ;then
9183 version_type=linux
9184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9185 soname_spec='$libname${shared_ext}.$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 fi
9188 ;;
9189
9190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9191 version_type=freebsd-elf
9192 need_lib_prefix=no
9193 need_version=no
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=yes
9198 hardcode_into_libs=yes
9199 if test "$with_gnu_ld" = yes; then
9200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9201 else
9202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9203 case $host_os in
9204 sco3.2v5*)
9205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9206 ;;
9207 esac
9208 fi
9209 sys_lib_dlsearch_path_spec='/usr/lib'
9210 ;;
9211
9212 tpf*)
9213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9214 version_type=linux
9215 need_lib_prefix=no
9216 need_version=no
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=no
9220 hardcode_into_libs=yes
9221 ;;
9222
9223 uts4*)
9224 version_type=linux
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 ;;
9229
9230 *)
9231 dynamic_linker=no
9232 ;;
9233 esac
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9235 $as_echo "$dynamic_linker" >&6; }
9236 test "$dynamic_linker" = no && can_build_shared=no
9237
9238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9239 if test "$GCC" = yes; then
9240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9241 fi
9242
9243 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9245 fi
9246 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9247 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9248 fi
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9337 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9338 hardcode_action=
9339 if test -n "$hardcode_libdir_flag_spec" ||
9340 test -n "$runpath_var" ||
9341 test "X$hardcode_automatic" = "Xyes" ; then
9342
9343 # We can hardcode non-existent directories.
9344 if test "$hardcode_direct" != no &&
9345 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9346 # have to relink, otherwise we might link with an installed library
9347 # when we should be linking with a yet-to-be-installed one
9348 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9349 test "$hardcode_minus_L" != no; then
9350 # Linking always hardcodes the temporary library directory.
9351 hardcode_action=relink
9352 else
9353 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9354 hardcode_action=immediate
9355 fi
9356 else
9357 # We cannot hardcode anything, or else we can only hardcode existing
9358 # directories.
9359 hardcode_action=unsupported
9360 fi
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9362 $as_echo "$hardcode_action" >&6; }
9363
9364 if test "$hardcode_action" = relink ||
9365 test "$inherit_rpath" = yes; then
9366 # Fast installation is not supported
9367 enable_fast_install=no
9368 elif test "$shlibpath_overrides_runpath" = yes ||
9369 test "$enable_shared" = no; then
9370 # Fast installation is not necessary
9371 enable_fast_install=needless
9372 fi
9373
9374
9375
9376
9377
9378
9379 if test "x$enable_dlopen" != xyes; then
9380 enable_dlopen=unknown
9381 enable_dlopen_self=unknown
9382 enable_dlopen_self_static=unknown
9383 else
9384 lt_cv_dlopen=no
9385 lt_cv_dlopen_libs=
9386
9387 case $host_os in
9388 beos*)
9389 lt_cv_dlopen="load_add_on"
9390 lt_cv_dlopen_libs=
9391 lt_cv_dlopen_self=yes
9392 ;;
9393
9394 mingw* | pw32* | cegcc*)
9395 lt_cv_dlopen="LoadLibrary"
9396 lt_cv_dlopen_libs=
9397 ;;
9398
9399 cygwin*)
9400 lt_cv_dlopen="dlopen"
9401 lt_cv_dlopen_libs=
9402 ;;
9403
9404 darwin*)
9405 # if libdl is installed we need to link against it
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9407 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 ac_check_lib_save_LIBS=$LIBS
9412 LIBS="-ldl $LIBS"
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char dlopen ();
9423 int
9424 main ()
9425 {
9426 return dlopen ();
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 ac_cv_lib_dl_dlopen=yes
9433 else
9434 ac_cv_lib_dl_dlopen=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LIBS=$ac_check_lib_save_LIBS
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9441 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9442 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9444 else
9445
9446 lt_cv_dlopen="dyld"
9447 lt_cv_dlopen_libs=
9448 lt_cv_dlopen_self=yes
9449
9450 fi
9451
9452 ;;
9453
9454 *)
9455 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9456 if test "x$ac_cv_func_shl_load" = x""yes; then :
9457 lt_cv_dlopen="shl_load"
9458 else
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9460 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-ldld $LIBS"
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468
9469 /* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
9472 #ifdef __cplusplus
9473 extern "C"
9474 #endif
9475 char shl_load ();
9476 int
9477 main ()
9478 {
9479 return shl_load ();
9480 ;
9481 return 0;
9482 }
9483 _ACEOF
9484 if ac_fn_c_try_link "$LINENO"; then :
9485 ac_cv_lib_dld_shl_load=yes
9486 else
9487 ac_cv_lib_dld_shl_load=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 LIBS=$ac_check_lib_save_LIBS
9492 fi
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9494 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9495 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9496 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9497 else
9498 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9499 if test "x$ac_cv_func_dlopen" = x""yes; then :
9500 lt_cv_dlopen="dlopen"
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 ac_check_lib_save_LIBS=$LIBS
9508 LIBS="-ldl $LIBS"
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char dlopen ();
9519 int
9520 main ()
9521 {
9522 return dlopen ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528 ac_cv_lib_dl_dlopen=yes
9529 else
9530 ac_cv_lib_dl_dlopen=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9537 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9538 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9542 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9543 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-lsvld $LIBS"
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char dlopen ();
9558 int
9559 main ()
9560 {
9561 return dlopen ();
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 if ac_fn_c_try_link "$LINENO"; then :
9567 ac_cv_lib_svld_dlopen=yes
9568 else
9569 ac_cv_lib_svld_dlopen=no
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9574 fi
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9576 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9577 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9581 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 ac_check_lib_save_LIBS=$LIBS
9586 LIBS="-ldld $LIBS"
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char dld_link ();
9597 int
9598 main ()
9599 {
9600 return dld_link ();
9601 ;
9602 return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606 ac_cv_lib_dld_dld_link=yes
9607 else
9608 ac_cv_lib_dld_dld_link=no
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 LIBS=$ac_check_lib_save_LIBS
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9615 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9616 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9617 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9618 fi
9619
9620
9621 fi
9622
9623
9624 fi
9625
9626
9627 fi
9628
9629
9630 fi
9631
9632
9633 fi
9634
9635 ;;
9636 esac
9637
9638 if test "x$lt_cv_dlopen" != xno; then
9639 enable_dlopen=yes
9640 else
9641 enable_dlopen=no
9642 fi
9643
9644 case $lt_cv_dlopen in
9645 dlopen)
9646 save_CPPFLAGS="$CPPFLAGS"
9647 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9648
9649 save_LDFLAGS="$LDFLAGS"
9650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9651
9652 save_LIBS="$LIBS"
9653 LIBS="$lt_cv_dlopen_libs $LIBS"
9654
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9656 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9657 if test "${lt_cv_dlopen_self+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 if test "$cross_compiling" = yes; then :
9661 lt_cv_dlopen_self=cross
9662 else
9663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9664 lt_status=$lt_dlunknown
9665 cat > conftest.$ac_ext <<_LT_EOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9668
9669 #if HAVE_DLFCN_H
9670 #include <dlfcn.h>
9671 #endif
9672
9673 #include <stdio.h>
9674
9675 #ifdef RTLD_GLOBAL
9676 # define LT_DLGLOBAL RTLD_GLOBAL
9677 #else
9678 # ifdef DL_GLOBAL
9679 # define LT_DLGLOBAL DL_GLOBAL
9680 # else
9681 # define LT_DLGLOBAL 0
9682 # endif
9683 #endif
9684
9685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9686 find out it does not work in some platform. */
9687 #ifndef LT_DLLAZY_OR_NOW
9688 # ifdef RTLD_LAZY
9689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9690 # else
9691 # ifdef DL_LAZY
9692 # define LT_DLLAZY_OR_NOW DL_LAZY
9693 # else
9694 # ifdef RTLD_NOW
9695 # define LT_DLLAZY_OR_NOW RTLD_NOW
9696 # else
9697 # ifdef DL_NOW
9698 # define LT_DLLAZY_OR_NOW DL_NOW
9699 # else
9700 # define LT_DLLAZY_OR_NOW 0
9701 # endif
9702 # endif
9703 # endif
9704 # endif
9705 #endif
9706
9707 void fnord() { int i=42;}
9708 int main ()
9709 {
9710 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9711 int status = $lt_dlunknown;
9712
9713 if (self)
9714 {
9715 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9716 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9717 /* dlclose (self); */
9718 }
9719 else
9720 puts (dlerror ());
9721
9722 return status;
9723 }
9724 _LT_EOF
9725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9726 (eval $ac_link) 2>&5
9727 ac_status=$?
9728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9730 (./conftest; exit; ) >&5 2>/dev/null
9731 lt_status=$?
9732 case x$lt_status in
9733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9735 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9736 esac
9737 else :
9738 # compilation failed
9739 lt_cv_dlopen_self=no
9740 fi
9741 fi
9742 rm -fr conftest*
9743
9744
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9747 $as_echo "$lt_cv_dlopen_self" >&6; }
9748
9749 if test "x$lt_cv_dlopen_self" = xyes; then
9750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9752 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9753 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 if test "$cross_compiling" = yes; then :
9757 lt_cv_dlopen_self_static=cross
9758 else
9759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9760 lt_status=$lt_dlunknown
9761 cat > conftest.$ac_ext <<_LT_EOF
9762 #line 9762 "configure"
9763 #include "confdefs.h"
9764
9765 #if HAVE_DLFCN_H
9766 #include <dlfcn.h>
9767 #endif
9768
9769 #include <stdio.h>
9770
9771 #ifdef RTLD_GLOBAL
9772 # define LT_DLGLOBAL RTLD_GLOBAL
9773 #else
9774 # ifdef DL_GLOBAL
9775 # define LT_DLGLOBAL DL_GLOBAL
9776 # else
9777 # define LT_DLGLOBAL 0
9778 # endif
9779 #endif
9780
9781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9782 find out it does not work in some platform. */
9783 #ifndef LT_DLLAZY_OR_NOW
9784 # ifdef RTLD_LAZY
9785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9786 # else
9787 # ifdef DL_LAZY
9788 # define LT_DLLAZY_OR_NOW DL_LAZY
9789 # else
9790 # ifdef RTLD_NOW
9791 # define LT_DLLAZY_OR_NOW RTLD_NOW
9792 # else
9793 # ifdef DL_NOW
9794 # define LT_DLLAZY_OR_NOW DL_NOW
9795 # else
9796 # define LT_DLLAZY_OR_NOW 0
9797 # endif
9798 # endif
9799 # endif
9800 # endif
9801 #endif
9802
9803 void fnord() { int i=42;}
9804 int main ()
9805 {
9806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9807 int status = $lt_dlunknown;
9808
9809 if (self)
9810 {
9811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9812 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9813 /* dlclose (self); */
9814 }
9815 else
9816 puts (dlerror ());
9817
9818 return status;
9819 }
9820 _LT_EOF
9821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9822 (eval $ac_link) 2>&5
9823 ac_status=$?
9824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9825 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9826 (./conftest; exit; ) >&5 2>/dev/null
9827 lt_status=$?
9828 case x$lt_status in
9829 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9830 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9831 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9832 esac
9833 else :
9834 # compilation failed
9835 lt_cv_dlopen_self_static=no
9836 fi
9837 fi
9838 rm -fr conftest*
9839
9840
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9843 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9844 fi
9845
9846 CPPFLAGS="$save_CPPFLAGS"
9847 LDFLAGS="$save_LDFLAGS"
9848 LIBS="$save_LIBS"
9849 ;;
9850 esac
9851
9852 case $lt_cv_dlopen_self in
9853 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9854 *) enable_dlopen_self=unknown ;;
9855 esac
9856
9857 case $lt_cv_dlopen_self_static in
9858 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9859 *) enable_dlopen_self_static=unknown ;;
9860 esac
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879 striplib=
9880 old_striplib=
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9882 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9883 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9884 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9885 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9887 $as_echo "yes" >&6; }
9888 else
9889 # FIXME - insert some real tests, host_os isn't really good enough
9890 case $host_os in
9891 darwin*)
9892 if test -n "$STRIP" ; then
9893 striplib="$STRIP -x"
9894 old_striplib="$STRIP -S"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9896 $as_echo "yes" >&6; }
9897 else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9900 fi
9901 ;;
9902 *)
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9905 ;;
9906 esac
9907 fi
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920 # Report which library types will actually be built
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9922 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9924 $as_echo "$can_build_shared" >&6; }
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9927 $as_echo_n "checking whether to build shared libraries... " >&6; }
9928 test "$can_build_shared" = "no" && enable_shared=no
9929
9930 # On AIX, shared libraries and static libraries use the same namespace, and
9931 # are all built from PIC.
9932 case $host_os in
9933 aix3*)
9934 test "$enable_shared" = yes && enable_static=no
9935 if test -n "$RANLIB"; then
9936 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9937 postinstall_cmds='$RANLIB $lib'
9938 fi
9939 ;;
9940
9941 aix[4-9]*)
9942 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9943 test "$enable_shared" = yes && enable_static=no
9944 fi
9945 ;;
9946 esac
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9948 $as_echo "$enable_shared" >&6; }
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9951 $as_echo_n "checking whether to build static libraries... " >&6; }
9952 # Make sure either enable_shared or enable_static is yes.
9953 test "$enable_shared" = yes || enable_static=yes
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9955 $as_echo "$enable_static" >&6; }
9956
9957
9958
9959
9960 fi
9961 ac_ext=c
9962 ac_cpp='$CPP $CPPFLAGS'
9963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9966
9967 CC="$lt_save_CC"
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981 ac_config_commands="$ac_config_commands libtool"
9982
9983
9984
9985
9986 # Only expand once:
9987
9988
9989 for ac_prog in 'bison -y' byacc
9990 do
9991 # Extract the first word of "$ac_prog", so it can be a program name with args.
9992 set dummy $ac_prog; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if test "${ac_cv_prog_YACC+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 if test -n "$YACC"; then
9999 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_prog_YACC="$ac_prog"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012 done
10013 done
10014 IFS=$as_save_IFS
10015
10016 fi
10017 fi
10018 YACC=$ac_cv_prog_YACC
10019 if test -n "$YACC"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10021 $as_echo "$YACC" >&6; }
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026
10027
10028 test -n "$YACC" && break
10029 done
10030 test -n "$YACC" || YACC="yacc"
10031
10032
10033
10034
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
10037 $as_echo_n "checking if bison is the parser generator... " >&6; }
10038 if test "${ax_cv_prog_bison+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041
10042 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
10043
10044 ax_cv_prog_bison=yes
10045
10046 else
10047
10048 ax_cv_prog_bison=no
10049
10050 fi
10051
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
10054 $as_echo "$ax_cv_prog_bison" >&6; }
10055 if test "$ax_cv_prog_bison" = yes; then :
10056
10057 :
10058
10059 BISON=`echo $YACC | $SED -e 's/ -y//'`
10060 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10061
10062
10063 else
10064
10065 :
10066 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
10067
10068 fi
10069
10070 for ac_prog in gawk mawk nawk awk
10071 do
10072 # Extract the first word of "$ac_prog", so it can be a program name with args.
10073 set dummy $ac_prog; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if test "${ac_cv_prog_AWK+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 if test -n "$AWK"; then
10080 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10081 else
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10084 do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10089 ac_cv_prog_AWK="$ac_prog"
10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093 done
10094 done
10095 IFS=$as_save_IFS
10096
10097 fi
10098 fi
10099 AWK=$ac_cv_prog_AWK
10100 if test -n "$AWK"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10102 $as_echo "$AWK" >&6; }
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 fi
10107
10108
10109 test -n "$AWK" && break
10110 done
10111
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
10113 $as_echo_n "checking if bison is >= 2.4... " >&6; }
10114 as_arg_v1=$BISON_VERSION
10115 as_arg_v2=2.4
10116 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10117 case $? in #(
10118 1) :
10119
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
10123 ;; #(
10124 0) :
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10126 $as_echo "yes" >&6; } ;; #(
10127 2) :
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 $as_echo "yes" >&6; } ;; #(
10130 *) :
10131 ;;
10132 esac
10133
10134 # expand $ac_aux_dir to an absolute path
10135 am_aux_dir=`cd $ac_aux_dir && pwd`
10136
10137 if test x"${MISSING+set}" != xset; then
10138 case $am_aux_dir in
10139 *\ * | *\ *)
10140 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10141 *)
10142 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10143 esac
10144 fi
10145 # Use eval to expand $SHELL
10146 if eval "$MISSING --run true"; then
10147 am_missing_run="$MISSING --run "
10148 else
10149 am_missing_run=
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10151 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10152 fi
10153
10154 for ac_prog in flex lex
10155 do
10156 # Extract the first word of "$ac_prog", so it can be a program name with args.
10157 set dummy $ac_prog; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if test "${ac_cv_prog_LEX+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 if test -n "$LEX"; then
10164 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10165 else
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_prog_LEX="$ac_prog"
10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10176 fi
10177 done
10178 done
10179 IFS=$as_save_IFS
10180
10181 fi
10182 fi
10183 LEX=$ac_cv_prog_LEX
10184 if test -n "$LEX"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10186 $as_echo "$LEX" >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191
10192
10193 test -n "$LEX" && break
10194 done
10195 test -n "$LEX" || LEX=":"
10196
10197 if test "x$LEX" != "x:"; then
10198 cat >conftest.l <<_ACEOF
10199 %%
10200 a { ECHO; }
10201 b { REJECT; }
10202 c { yymore (); }
10203 d { yyless (1); }
10204 e { yyless (input () != 0); }
10205 f { unput (yytext[0]); }
10206 . { BEGIN INITIAL; }
10207 %%
10208 #ifdef YYTEXT_POINTER
10209 extern char *yytext;
10210 #endif
10211 int
10212 main (void)
10213 {
10214 return ! yylex () + ! yywrap ();
10215 }
10216 _ACEOF
10217 { { ac_try="$LEX conftest.l"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10223 $as_echo "$ac_try_echo"; } >&5
10224 (eval "$LEX conftest.l") 2>&5
10225 ac_status=$?
10226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10227 test $ac_status = 0; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10229 $as_echo_n "checking lex output file root... " >&6; }
10230 if test "${ac_cv_prog_lex_root+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233
10234 if test -f lex.yy.c; then
10235 ac_cv_prog_lex_root=lex.yy
10236 elif test -f lexyy.c; then
10237 ac_cv_prog_lex_root=lexyy
10238 else
10239 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
10240 fi
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10243 $as_echo "$ac_cv_prog_lex_root" >&6; }
10244 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10245
10246 if test -z "${LEXLIB+set}"; then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
10248 $as_echo_n "checking lex library... " >&6; }
10249 if test "${ac_cv_lib_lex+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252
10253 ac_save_LIBS=$LIBS
10254 ac_cv_lib_lex='none needed'
10255 for ac_lib in '' -lfl -ll; do
10256 LIBS="$ac_lib $ac_save_LIBS"
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 `cat $LEX_OUTPUT_ROOT.c`
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_lib_lex=$ac_lib
10263 fi
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 test "$ac_cv_lib_lex" != 'none needed' && break
10267 done
10268 LIBS=$ac_save_LIBS
10269
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
10272 $as_echo "$ac_cv_lib_lex" >&6; }
10273 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10274 fi
10275
10276
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
10278 $as_echo_n "checking whether yytext is a pointer... " >&6; }
10279 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282 # POSIX says lex can declare yytext either as a pointer or an array; the
10283 # default is implementation-dependent. Figure out which it is, since
10284 # not all implementations provide the %pointer and %array declarations.
10285 ac_cv_prog_lex_yytext_pointer=no
10286 ac_save_LIBS=$LIBS
10287 LIBS="$LEXLIB $ac_save_LIBS"
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290 #define YYTEXT_POINTER 1
10291 `cat $LEX_OUTPUT_ROOT.c`
10292 _ACEOF
10293 if ac_fn_c_try_link "$LINENO"; then :
10294 ac_cv_prog_lex_yytext_pointer=yes
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext \
10297 conftest$ac_exeext conftest.$ac_ext
10298 LIBS=$ac_save_LIBS
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
10302 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10303 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10304
10305 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
10306
10307 fi
10308 rm -f conftest.l $LEX_OUTPUT_ROOT.c
10309
10310 fi
10311 if test "$LEX" = :; then
10312 LEX=${am_missing_run}flex
10313 fi
10314
10315
10316
10317
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
10319 $as_echo_n "checking if flex is the lexer generator... " >&6; }
10320 if test "${ax_cv_prog_flex+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323
10324 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
10325
10326 ax_cv_prog_flex=yes
10327
10328 else
10329
10330 ax_cv_prog_flex=no
10331
10332 fi
10333
10334 fi
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
10336 $as_echo "$ax_cv_prog_flex" >&6; }
10337 if test "$ax_cv_prog_flex" = yes; then :
10338
10339 :
10340
10341 FLEX=$LEX
10342 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \(.*\)$/\1/p;d'`
10343
10344
10345 else
10346
10347 :
10348
10349 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
10350
10351
10352 fi
10353
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
10355 $as_echo_n "checking if flex is >= 2.5.33... " >&6; }
10356 as_arg_v1=$FLEX_VERSION
10357 as_arg_v2=2.5.33
10358 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10359 case $? in #(
10360 1) :
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10364 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
10365 ;; #(
10366 0) :
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10368 $as_echo "yes" >&6; } ;; #(
10369 2) :
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10371 $as_echo "yes" >&6; } ;; #(
10372 *) :
10373 ;;
10374 esac
10375
10376 for ac_prog in bash
10377 do
10378 # Extract the first word of "$ac_prog", so it can be a program name with args.
10379 set dummy $ac_prog; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if test "${ac_cv_prog__BASH+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test -n "$_BASH"; then
10386 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10395 ac_cv_prog__BASH="$ac_prog"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10398 fi
10399 done
10400 done
10401 IFS=$as_save_IFS
10402
10403 fi
10404 fi
10405 _BASH=$ac_cv_prog__BASH
10406 if test -n "$_BASH"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10408 $as_echo "$_BASH" >&6; }
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10412 fi
10413
10414
10415 test -n "$_BASH" && break
10416 done
10417
10418 for ac_prog in gperf
10419 do
10420 # Extract the first word of "$ac_prog", so it can be a program name with args.
10421 set dummy $ac_prog; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if test "${ac_cv_prog_GPERF+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 if test -n "$GPERF"; then
10428 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
10429 else
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10432 do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10437 ac_cv_prog_GPERF="$ac_prog"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441 done
10442 done
10443 IFS=$as_save_IFS
10444
10445 fi
10446 fi
10447 GPERF=$ac_cv_prog_GPERF
10448 if test -n "$GPERF"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10450 $as_echo "$GPERF" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10454 fi
10455
10456
10457 test -n "$GPERF" && break
10458 done
10459
10460 for ac_prog in time
10461 do
10462 # Extract the first word of "$ac_prog", so it can be a program name with args.
10463 set dummy $ac_prog; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_TIME+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 if test -n "$TIME"; then
10470 ac_cv_prog_TIME="$TIME" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_TIME="$ac_prog"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483 done
10484 done
10485 IFS=$as_save_IFS
10486
10487 fi
10488 fi
10489 TIME=$ac_cv_prog_TIME
10490 if test -n "$TIME"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10492 $as_echo "$TIME" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499 test -n "$TIME" && break
10500 done
10501
10502
10503 apr_found="no"
10504
10505 if test "$target_os" = "os2-emx"; then
10506 # Scripts don't pass test -x on OS/2
10507 TEST_X="test -f"
10508 else
10509 TEST_X="test -x"
10510 fi
10511
10512 acceptable_majors="1"
10513
10514 apr_temp_acceptable_apr_config=""
10515 for apr_temp_major in $acceptable_majors
10516 do
10517 case $apr_temp_major in
10518 0)
10519 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
10520 ;;
10521 *)
10522 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
10523 ;;
10524 esac
10525 done
10526
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
10528 $as_echo_n "checking for APR... " >&6; }
10529
10530 # Check whether --with-apr was given.
10531 if test "${with_apr+set}" = set; then :
10532 withval=$with_apr;
10533 if test "$withval" = "no" || test "$withval" = "yes"; then
10534 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
10535 fi
10536
10537 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
10538 do
10539 for lookdir in "$withval/bin" "$withval"
10540 do
10541 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
10542 apr_config="$lookdir/$apr_temp_apr_config_file"
10543
10544 apr_found="yes"
10545 break 2
10546 fi
10547 done
10548 done
10549
10550 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
10551 apr_config="$withval"
10552 apr_found="yes"
10553 fi
10554
10555 if test "$apr_found" != "yes"; then
10556 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
10557 fi
10558
10559 else
10560
10561 if test -n "1" && test "1" = "1"; then
10562 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
10563 do
10564 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
10565 apr_config="$apr_temp_apr_config_file"
10566
10567 apr_found="yes"
10568 break
10569 else
10570 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
10571 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
10572 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
10573
10574 apr_found="yes"
10575 break 2
10576 fi
10577 done
10578 fi
10579 done
10580 fi
10581 if test "$apr_found" = "no" && test -d ""; then
10582 apr_temp_abs_srcdir="`cd && pwd`"
10583 apr_found="reconfig"
10584 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
10585 case $apr_bundled_major in
10586 "")
10587 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
10588 ;;
10589 0)
10590 apr_temp_apr_config_file="apr-config"
10591 ;;
10592 *)
10593 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
10594 ;;
10595 esac
10596 if test -n ""; then
10597 apr_config="/$apr_temp_apr_config_file"
10598 else
10599 apr_config="/$apr_temp_apr_config_file"
10600 fi
10601 fi
10602
10603 fi
10604
10605
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
10607 $as_echo "$apr_found" >&6; }
10608
10609 case $apr_found in #(
10610 yes) :
10611
10612
10613 for element in `$apr_config --includes`; do
10614 haveit=
10615 for x in $CPPFLAGS; do
10616
10617 acl_save_prefix="$prefix"
10618 prefix="$acl_final_prefix"
10619 acl_save_exec_prefix="$exec_prefix"
10620 exec_prefix="$acl_final_exec_prefix"
10621 eval x=\"$x\"
10622 exec_prefix="$acl_save_exec_prefix"
10623 prefix="$acl_save_prefix"
10624
10625 if test "X$x" = "X$element"; then
10626 haveit=yes
10627 break
10628 fi
10629 done
10630 if test -z "$haveit"; then
10631 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10632 fi
10633 done
10634
10635 LTLIBAPR=`$apr_config --link-libtool`
10636
10637 ;; #(
10638 *) :
10639 as_fn_error "You need apr" "$LINENO" 5 ;;
10640 esac
10641
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
10643 $as_echo_n "checking for a readline compatible library... " >&6; }
10644 if test "${vl_cv_lib_readline+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647
10648 ORIG_LIBS="$LIBS"
10649 for readline_lib in readline edit editline; do
10650 for termcap_lib in "" termcap curses ncurses; do
10651 if test -z "$termcap_lib"; then
10652 TRY_LIB="-l$readline_lib"
10653 else
10654 TRY_LIB="-l$readline_lib -l$termcap_lib"
10655 fi
10656 LIBS="$ORIG_LIBS $TRY_LIB"
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char readline ();
10667 int
10668 main ()
10669 {
10670 return readline ();
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_c_try_link "$LINENO"; then :
10676 vl_cv_lib_readline="$TRY_LIB"
10677 fi
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 if test -n "$vl_cv_lib_readline"; then
10681 break
10682 fi
10683 done
10684 if test -n "$vl_cv_lib_readline"; then
10685 break
10686 fi
10687 done
10688 if test -z "$vl_cv_lib_readline"; then
10689 vl_cv_lib_readline="no"
10690 LIBS="$ORIG_LIBS"
10691 fi
10692
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
10695 $as_echo "$vl_cv_lib_readline" >&6; }
10696
10697 if test "$vl_cv_lib_readline" != "no"; then
10698
10699 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10700
10701 for ac_header in readline.h readline/readline.h
10702 do :
10703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10705 eval as_val=\$$as_ac_Header
10706 if test "x$as_val" = x""yes; then :
10707 cat >>confdefs.h <<_ACEOF
10708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10709 _ACEOF
10710
10711 fi
10712
10713 done
10714
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
10716 $as_echo_n "checking whether readline supports history... " >&6; }
10717 if test "${vl_cv_lib_readline_history+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720
10721 vl_cv_lib_readline_history="no"
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724
10725 /* Override any GCC internal prototype to avoid an error.
10726 Use char because int might match the return type of a GCC
10727 builtin and then its argument prototype would still apply. */
10728 #ifdef __cplusplus
10729 extern "C"
10730 #endif
10731 char add_history ();
10732 int
10733 main ()
10734 {
10735 return add_history ();
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"; then :
10741 vl_cv_lib_readline_history="yes"
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745
10746 fi
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
10748 $as_echo "$vl_cv_lib_readline_history" >&6; }
10749 if test "$vl_cv_lib_readline_history" = "yes"; then
10750
10751 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
10752
10753 for ac_header in history.h readline/history.h
10754 do :
10755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10757 eval as_val=\$$as_ac_Header
10758 if test "x$as_val" = x""yes; then :
10759 cat >>confdefs.h <<_ACEOF
10760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10761 _ACEOF
10762
10763 fi
10764
10765 done
10766
10767 fi
10768 fi
10769
10770 ac_ext=cpp
10771 ac_cpp='$CXXCPP $CPPFLAGS'
10772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10775 if test -z "$CXX"; then
10776 if test -n "$CCC"; then
10777 CXX=$CCC
10778 else
10779 if test -n "$ac_tool_prefix"; then
10780 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10781 do
10782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if test "${ac_cv_prog_CXX+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 if test -n "$CXX"; then
10790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10791 else
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10794 do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10802 fi
10803 done
10804 done
10805 IFS=$as_save_IFS
10806
10807 fi
10808 fi
10809 CXX=$ac_cv_prog_CXX
10810 if test -n "$CXX"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10812 $as_echo "$CXX" >&6; }
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10816 fi
10817
10818
10819 test -n "$CXX" && break
10820 done
10821 fi
10822 if test -z "$CXX"; then
10823 ac_ct_CXX=$CXX
10824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10825 do
10826 # Extract the first word of "$ac_prog", so it can be a program name with args.
10827 set dummy $ac_prog; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 if test -n "$ac_ct_CXX"; then
10834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10843 ac_cv_prog_ac_ct_CXX="$ac_prog"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847 done
10848 done
10849 IFS=$as_save_IFS
10850
10851 fi
10852 fi
10853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10854 if test -n "$ac_ct_CXX"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10856 $as_echo "$ac_ct_CXX" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10860 fi
10861
10862
10863 test -n "$ac_ct_CXX" && break
10864 done
10865
10866 if test "x$ac_ct_CXX" = x; then
10867 CXX="g++"
10868 else
10869 case $cross_compiling:$ac_tool_warned in
10870 yes:)
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10873 ac_tool_warned=yes ;;
10874 esac
10875 CXX=$ac_ct_CXX
10876 fi
10877 fi
10878
10879 fi
10880 fi
10881 # Provide some information about the compiler.
10882 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10883 set X $ac_compile
10884 ac_compiler=$2
10885 for ac_option in --version -v -V -qversion; do
10886 { { ac_try="$ac_compiler $ac_option >&5"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890 esac
10891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10892 $as_echo "$ac_try_echo"; } >&5
10893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10894 ac_status=$?
10895 if test -s conftest.err; then
10896 sed '10a\
10897 ... rest of stderr output deleted ...
10898 10q' conftest.err >conftest.er1
10899 cat conftest.er1 >&5
10900 fi
10901 rm -f conftest.er1 conftest.err
10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10903 test $ac_status = 0; }
10904 done
10905
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10907 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10908 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913
10914 int
10915 main ()
10916 {
10917 #ifndef __GNUC__
10918 choke me
10919 #endif
10920
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_cxx_try_compile "$LINENO"; then :
10926 ac_compiler_gnu=yes
10927 else
10928 ac_compiler_gnu=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10932
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10935 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10936 if test $ac_compiler_gnu = yes; then
10937 GXX=yes
10938 else
10939 GXX=
10940 fi
10941 ac_test_CXXFLAGS=${CXXFLAGS+set}
10942 ac_save_CXXFLAGS=$CXXFLAGS
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10944 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10945 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10949 ac_cxx_werror_flag=yes
10950 ac_cv_prog_cxx_g=no
10951 CXXFLAGS="-g"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954
10955 int
10956 main ()
10957 {
10958
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 if ac_fn_cxx_try_compile "$LINENO"; then :
10964 ac_cv_prog_cxx_g=yes
10965 else
10966 CXXFLAGS=""
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969
10970 int
10971 main ()
10972 {
10973
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_cxx_try_compile "$LINENO"; then :
10979
10980 else
10981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10982 CXXFLAGS="-g"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985
10986 int
10987 main ()
10988 {
10989
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_cxx_try_compile "$LINENO"; then :
10995 ac_cv_prog_cxx_g=yes
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11005 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11006 if test "$ac_test_CXXFLAGS" = set; then
11007 CXXFLAGS=$ac_save_CXXFLAGS
11008 elif test $ac_cv_prog_cxx_g = yes; then
11009 if test "$GXX" = yes; then
11010 CXXFLAGS="-g -O2"
11011 else
11012 CXXFLAGS="-g"
11013 fi
11014 else
11015 if test "$GXX" = yes; then
11016 CXXFLAGS="-O2"
11017 else
11018 CXXFLAGS=
11019 fi
11020 fi
11021 ac_ext=c
11022 ac_cpp='$CPP $CPPFLAGS'
11023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11026
11027
11028 ac_ext=cpp
11029 ac_cpp='$CXXCPP $CPPFLAGS'
11030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11033 if test -z "$CXX"; then
11034 if test -n "$CCC"; then
11035 CXX=$CCC
11036 else
11037 if test -n "$ac_tool_prefix"; then
11038 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11039 do
11040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if test "${ac_cv_prog_CXX+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 if test -n "$CXX"; then
11048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11049 else
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11052 do
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 break 2
11060 fi
11061 done
11062 done
11063 IFS=$as_save_IFS
11064
11065 fi
11066 fi
11067 CXX=$ac_cv_prog_CXX
11068 if test -n "$CXX"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11070 $as_echo "$CXX" >&6; }
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; }
11074 fi
11075
11076
11077 test -n "$CXX" && break
11078 done
11079 fi
11080 if test -z "$CXX"; then
11081 ac_ct_CXX=$CXX
11082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11083 do
11084 # Extract the first word of "$ac_prog", so it can be a program name with args.
11085 set dummy $ac_prog; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 if test -n "$ac_ct_CXX"; then
11092 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11093 else
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11101 ac_cv_prog_ac_ct_CXX="$ac_prog"
11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103 break 2
11104 fi
11105 done
11106 done
11107 IFS=$as_save_IFS
11108
11109 fi
11110 fi
11111 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11112 if test -n "$ac_ct_CXX"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11114 $as_echo "$ac_ct_CXX" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 fi
11119
11120
11121 test -n "$ac_ct_CXX" && break
11122 done
11123
11124 if test "x$ac_ct_CXX" = x; then
11125 CXX="g++"
11126 else
11127 case $cross_compiling:$ac_tool_warned in
11128 yes:)
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11131 ac_tool_warned=yes ;;
11132 esac
11133 CXX=$ac_ct_CXX
11134 fi
11135 fi
11136
11137 fi
11138 fi
11139 # Provide some information about the compiler.
11140 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11141 set X $ac_compile
11142 ac_compiler=$2
11143 for ac_option in --version -v -V -qversion; do
11144 { { ac_try="$ac_compiler $ac_option >&5"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148 esac
11149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11150 $as_echo "$ac_try_echo"; } >&5
11151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11152 ac_status=$?
11153 if test -s conftest.err; then
11154 sed '10a\
11155 ... rest of stderr output deleted ...
11156 10q' conftest.err >conftest.er1
11157 cat conftest.er1 >&5
11158 fi
11159 rm -f conftest.er1 conftest.err
11160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11161 test $ac_status = 0; }
11162 done
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11165 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11166 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171
11172 int
11173 main ()
11174 {
11175 #ifndef __GNUC__
11176 choke me
11177 #endif
11178
11179 ;
11180 return 0;
11181 }
11182 _ACEOF
11183 if ac_fn_cxx_try_compile "$LINENO"; then :
11184 ac_compiler_gnu=yes
11185 else
11186 ac_compiler_gnu=no
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11190
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11193 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11194 if test $ac_compiler_gnu = yes; then
11195 GXX=yes
11196 else
11197 GXX=
11198 fi
11199 ac_test_CXXFLAGS=${CXXFLAGS+set}
11200 ac_save_CXXFLAGS=$CXXFLAGS
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11202 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11203 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11207 ac_cxx_werror_flag=yes
11208 ac_cv_prog_cxx_g=no
11209 CXXFLAGS="-g"
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11212
11213 int
11214 main ()
11215 {
11216
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_cxx_try_compile "$LINENO"; then :
11222 ac_cv_prog_cxx_g=yes
11223 else
11224 CXXFLAGS=""
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_compile "$LINENO"; then :
11237
11238 else
11239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11240 CXXFLAGS="-g"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243
11244 int
11245 main ()
11246 {
11247
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_cxx_try_compile "$LINENO"; then :
11253 ac_cv_prog_cxx_g=yes
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11263 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11264 if test "$ac_test_CXXFLAGS" = set; then
11265 CXXFLAGS=$ac_save_CXXFLAGS
11266 elif test $ac_cv_prog_cxx_g = yes; then
11267 if test "$GXX" = yes; then
11268 CXXFLAGS="-g -O2"
11269 else
11270 CXXFLAGS="-g"
11271 fi
11272 else
11273 if test "$GXX" = yes; then
11274 CXXFLAGS="-O2"
11275 else
11276 CXXFLAGS=
11277 fi
11278 fi
11279 ac_ext=c
11280 ac_cpp='$CPP $CPPFLAGS'
11281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11284
11285 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11286 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11287 (test "X$CXX" != "Xg++"))) ; then
11288 ac_ext=cpp
11289 ac_cpp='$CXXCPP $CPPFLAGS'
11290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11294 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11295 if test -z "$CXXCPP"; then
11296 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 # Double quotes because CXXCPP needs to be expanded
11300 for CXXCPP in "$CXX -E" "/lib/cpp"
11301 do
11302 ac_preproc_ok=false
11303 for ac_cxx_preproc_warn_flag in '' yes
11304 do
11305 # Use a header file that comes with gcc, so configuring glibc
11306 # with a fresh cross-compiler works.
11307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11308 # <limits.h> exists even on freestanding compilers.
11309 # On the NeXT, cc -E runs the code through the compiler's parser,
11310 # not just through cpp. "Syntax error" is here to catch this case.
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #ifdef __STDC__
11314 # include <limits.h>
11315 #else
11316 # include <assert.h>
11317 #endif
11318 Syntax error
11319 _ACEOF
11320 if ac_fn_cxx_try_cpp "$LINENO"; then :
11321
11322 else
11323 # Broken: fails on valid input.
11324 continue
11325 fi
11326 rm -f conftest.err conftest.$ac_ext
11327
11328 # OK, works on sane cases. Now check whether nonexistent headers
11329 # can be detected and how.
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 #include <ac_nonexistent.h>
11333 _ACEOF
11334 if ac_fn_cxx_try_cpp "$LINENO"; then :
11335 # Broken: success on invalid input.
11336 continue
11337 else
11338 # Passes both tests.
11339 ac_preproc_ok=:
11340 break
11341 fi
11342 rm -f conftest.err conftest.$ac_ext
11343
11344 done
11345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11346 rm -f conftest.err conftest.$ac_ext
11347 if $ac_preproc_ok; then :
11348 break
11349 fi
11350
11351 done
11352 ac_cv_prog_CXXCPP=$CXXCPP
11353
11354 fi
11355 CXXCPP=$ac_cv_prog_CXXCPP
11356 else
11357 ac_cv_prog_CXXCPP=$CXXCPP
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11360 $as_echo "$CXXCPP" >&6; }
11361 ac_preproc_ok=false
11362 for ac_cxx_preproc_warn_flag in '' yes
11363 do
11364 # Use a header file that comes with gcc, so configuring glibc
11365 # with a fresh cross-compiler works.
11366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11367 # <limits.h> exists even on freestanding compilers.
11368 # On the NeXT, cc -E runs the code through the compiler's parser,
11369 # not just through cpp. "Syntax error" is here to catch this case.
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #ifdef __STDC__
11373 # include <limits.h>
11374 #else
11375 # include <assert.h>
11376 #endif
11377 Syntax error
11378 _ACEOF
11379 if ac_fn_cxx_try_cpp "$LINENO"; then :
11380
11381 else
11382 # Broken: fails on valid input.
11383 continue
11384 fi
11385 rm -f conftest.err conftest.$ac_ext
11386
11387 # OK, works on sane cases. Now check whether nonexistent headers
11388 # can be detected and how.
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391 #include <ac_nonexistent.h>
11392 _ACEOF
11393 if ac_fn_cxx_try_cpp "$LINENO"; then :
11394 # Broken: success on invalid input.
11395 continue
11396 else
11397 # Passes both tests.
11398 ac_preproc_ok=:
11399 break
11400 fi
11401 rm -f conftest.err conftest.$ac_ext
11402
11403 done
11404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11405 rm -f conftest.err conftest.$ac_ext
11406 if $ac_preproc_ok; then :
11407
11408 else
11409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11411 _lt_caught_CXX_error=yes; }
11412 fi
11413
11414 ac_ext=c
11415 ac_cpp='$CPP $CPPFLAGS'
11416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11419
11420 else
11421 _lt_caught_CXX_error=yes
11422 fi
11423
11424
11425
11426
11427 ac_ext=cpp
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11432
11433 archive_cmds_need_lc_CXX=no
11434 allow_undefined_flag_CXX=
11435 always_export_symbols_CXX=no
11436 archive_expsym_cmds_CXX=
11437 compiler_needs_object_CXX=no
11438 export_dynamic_flag_spec_CXX=
11439 hardcode_direct_CXX=no
11440 hardcode_direct_absolute_CXX=no
11441 hardcode_libdir_flag_spec_CXX=
11442 hardcode_libdir_flag_spec_ld_CXX=
11443 hardcode_libdir_separator_CXX=
11444 hardcode_minus_L_CXX=no
11445 hardcode_shlibpath_var_CXX=unsupported
11446 hardcode_automatic_CXX=no
11447 inherit_rpath_CXX=no
11448 module_cmds_CXX=
11449 module_expsym_cmds_CXX=
11450 link_all_deplibs_CXX=unknown
11451 old_archive_cmds_CXX=$old_archive_cmds
11452 no_undefined_flag_CXX=
11453 whole_archive_flag_spec_CXX=
11454 enable_shared_with_static_runtimes_CXX=no
11455
11456 # Source file extension for C++ test sources.
11457 ac_ext=cpp
11458
11459 # Object file extension for compiled C++ test sources.
11460 objext=o
11461 objext_CXX=$objext
11462
11463 # No sense in running all these tests if we already determined that
11464 # the CXX compiler isn't working. Some variables (like enable_shared)
11465 # are currently assumed to apply to all compilers on this platform,
11466 # and will be corrupted by setting them based on a non-working compiler.
11467 if test "$_lt_caught_CXX_error" != yes; then
11468 # Code to be used in simple compile tests
11469 lt_simple_compile_test_code="int some_variable = 0;"
11470
11471 # Code to be used in simple link tests
11472 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11473
11474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11475
11476
11477
11478
11479
11480
11481 # If no C compiler was specified, use CC.
11482 LTCC=${LTCC-"$CC"}
11483
11484 # If no C compiler flags were specified, use CFLAGS.
11485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11486
11487 # Allow CC to be a program name with arguments.
11488 compiler=$CC
11489
11490
11491 # save warnings/boilerplate of simple test code
11492 ac_outfile=conftest.$ac_objext
11493 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11494 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11495 _lt_compiler_boilerplate=`cat conftest.err`
11496 $RM conftest*
11497
11498 ac_outfile=conftest.$ac_objext
11499 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11500 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11501 _lt_linker_boilerplate=`cat conftest.err`
11502 $RM -r conftest*
11503
11504
11505 # Allow CC to be a program name with arguments.
11506 lt_save_CC=$CC
11507 lt_save_LD=$LD
11508 lt_save_GCC=$GCC
11509 GCC=$GXX
11510 lt_save_with_gnu_ld=$with_gnu_ld
11511 lt_save_path_LD=$lt_cv_path_LD
11512 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11513 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11514 else
11515 $as_unset lt_cv_prog_gnu_ld
11516 fi
11517 if test -n "${lt_cv_path_LDCXX+set}"; then
11518 lt_cv_path_LD=$lt_cv_path_LDCXX
11519 else
11520 $as_unset lt_cv_path_LD
11521 fi
11522 test -z "${LDCXX+set}" || LD=$LDCXX
11523 CC=${CXX-"c++"}
11524 compiler=$CC
11525 compiler_CXX=$CC
11526 for cc_temp in $compiler""; do
11527 case $cc_temp in
11528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11530 \-*) ;;
11531 *) break;;
11532 esac
11533 done
11534 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11535
11536
11537 if test -n "$compiler"; then
11538 # We don't want -fno-exception when compiling C++ code, so set the
11539 # no_builtin_flag separately
11540 if test "$GXX" = yes; then
11541 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11542 else
11543 lt_prog_compiler_no_builtin_flag_CXX=
11544 fi
11545
11546 if test "$GXX" = yes; then
11547 # Set up default GNU C++ configuration
11548
11549
11550
11551 # Check whether --with-gnu-ld was given.
11552 if test "${with_gnu_ld+set}" = set; then :
11553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11554 else
11555 with_gnu_ld=no
11556 fi
11557
11558 ac_prog=ld
11559 if test "$GCC" = yes; then
11560 # Check if gcc -print-prog-name=ld gives a path.
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11562 $as_echo_n "checking for ld used by $CC... " >&6; }
11563 case $host in
11564 *-*-mingw*)
11565 # gcc leaves a trailing carriage return which upsets mingw
11566 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11567 *)
11568 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11569 esac
11570 case $ac_prog in
11571 # Accept absolute paths.
11572 [\\/]* | ?:[\\/]*)
11573 re_direlt='/[^/][^/]*/\.\./'
11574 # Canonicalize the pathname of ld
11575 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11576 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11577 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11578 done
11579 test -z "$LD" && LD="$ac_prog"
11580 ;;
11581 "")
11582 # If it fails, then pretend we aren't using GCC.
11583 ac_prog=ld
11584 ;;
11585 *)
11586 # If it is relative, then search for the first ld in PATH.
11587 with_gnu_ld=unknown
11588 ;;
11589 esac
11590 elif test "$with_gnu_ld" = yes; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11592 $as_echo_n "checking for GNU ld... " >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11595 $as_echo_n "checking for non-GNU ld... " >&6; }
11596 fi
11597 if test "${lt_cv_path_LD+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 if test -z "$LD"; then
11601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11602 for ac_dir in $PATH; do
11603 IFS="$lt_save_ifs"
11604 test -z "$ac_dir" && ac_dir=.
11605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11606 lt_cv_path_LD="$ac_dir/$ac_prog"
11607 # Check to see if the program is GNU ld. I'd rather use --version,
11608 # but apparently some variants of GNU ld only accept -v.
11609 # Break only if it was the GNU/non-GNU ld that we prefer.
11610 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11611 *GNU* | *'with BFD'*)
11612 test "$with_gnu_ld" != no && break
11613 ;;
11614 *)
11615 test "$with_gnu_ld" != yes && break
11616 ;;
11617 esac
11618 fi
11619 done
11620 IFS="$lt_save_ifs"
11621 else
11622 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11623 fi
11624 fi
11625
11626 LD="$lt_cv_path_LD"
11627 if test -n "$LD"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11629 $as_echo "$LD" >&6; }
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11636 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11637 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11641 case `$LD -v 2>&1 </dev/null` in
11642 *GNU* | *'with BFD'*)
11643 lt_cv_prog_gnu_ld=yes
11644 ;;
11645 *)
11646 lt_cv_prog_gnu_ld=no
11647 ;;
11648 esac
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11651 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11652 with_gnu_ld=$lt_cv_prog_gnu_ld
11653
11654
11655
11656
11657
11658
11659
11660 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11661 # archiving commands below assume that GNU ld is being used.
11662 if test "$with_gnu_ld" = yes; then
11663 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11664 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'
11665
11666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11668
11669 # If archive_cmds runs LD, not CC, wlarc should be empty
11670 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11671 # investigate it a little bit more. (MM)
11672 wlarc='${wl}'
11673
11674 # ancient GNU ld didn't support --whole-archive et. al.
11675 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11676 $GREP 'no-whole-archive' > /dev/null; then
11677 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11678 else
11679 whole_archive_flag_spec_CXX=
11680 fi
11681 else
11682 with_gnu_ld=no
11683 wlarc=
11684
11685 # A generic and very simple default shared library creation
11686 # command for GNU C++ for the case where it uses the native
11687 # linker, instead of GNU ld. If possible, this setting should
11688 # overridden to take advantage of the native linker features on
11689 # the platform it is being used on.
11690 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11691 fi
11692
11693 # Commands to make compiler produce verbose output that lists
11694 # what "hidden" libraries, object files and flags are used when
11695 # linking a shared library.
11696 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11697
11698 else
11699 GXX=no
11700 with_gnu_ld=no
11701 wlarc=
11702 fi
11703
11704 # PORTME: fill in a description of your system's C++ link characteristics
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11706 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11707 ld_shlibs_CXX=yes
11708 case $host_os in
11709 aix3*)
11710 # FIXME: insert proper C++ library support
11711 ld_shlibs_CXX=no
11712 ;;
11713 aix[4-9]*)
11714 if test "$host_cpu" = ia64; then
11715 # On IA64, the linker does run time linking by default, so we don't
11716 # have to do anything special.
11717 aix_use_runtimelinking=no
11718 exp_sym_flag='-Bexport'
11719 no_entry_flag=""
11720 else
11721 aix_use_runtimelinking=no
11722
11723 # Test if we are trying to use run time linking or normal
11724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11725 # need to do runtime linking.
11726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11727 for ld_flag in $LDFLAGS; do
11728 case $ld_flag in
11729 *-brtl*)
11730 aix_use_runtimelinking=yes
11731 break
11732 ;;
11733 esac
11734 done
11735 ;;
11736 esac
11737
11738 exp_sym_flag='-bexport'
11739 no_entry_flag='-bnoentry'
11740 fi
11741
11742 # When large executables or shared objects are built, AIX ld can
11743 # have problems creating the table of contents. If linking a library
11744 # or program results in "error TOC overflow" add -mminimal-toc to
11745 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11746 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11747
11748 archive_cmds_CXX=''
11749 hardcode_direct_CXX=yes
11750 hardcode_direct_absolute_CXX=yes
11751 hardcode_libdir_separator_CXX=':'
11752 link_all_deplibs_CXX=yes
11753 file_list_spec_CXX='${wl}-f,'
11754
11755 if test "$GXX" = yes; then
11756 case $host_os in aix4.[012]|aix4.[012].*)
11757 # We only want to do this on AIX 4.2 and lower, the check
11758 # below for broken collect2 doesn't work under 4.3+
11759 collect2name=`${CC} -print-prog-name=collect2`
11760 if test -f "$collect2name" &&
11761 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11762 then
11763 # We have reworked collect2
11764 :
11765 else
11766 # We have old collect2
11767 hardcode_direct_CXX=unsupported
11768 # It fails to find uninstalled libraries when the uninstalled
11769 # path is not listed in the libpath. Setting hardcode_minus_L
11770 # to unsupported forces relinking
11771 hardcode_minus_L_CXX=yes
11772 hardcode_libdir_flag_spec_CXX='-L$libdir'
11773 hardcode_libdir_separator_CXX=
11774 fi
11775 esac
11776 shared_flag='-shared'
11777 if test "$aix_use_runtimelinking" = yes; then
11778 shared_flag="$shared_flag "'${wl}-G'
11779 fi
11780 else
11781 # not using gcc
11782 if test "$host_cpu" = ia64; then
11783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11784 # chokes on -Wl,-G. The following line is correct:
11785 shared_flag='-G'
11786 else
11787 if test "$aix_use_runtimelinking" = yes; then
11788 shared_flag='${wl}-G'
11789 else
11790 shared_flag='${wl}-bM:SRE'
11791 fi
11792 fi
11793 fi
11794
11795 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11796 # It seems that -bexpall does not export symbols beginning with
11797 # underscore (_), so it is better to generate a list of symbols to
11798 # export.
11799 always_export_symbols_CXX=yes
11800 if test "$aix_use_runtimelinking" = yes; then
11801 # Warning - without using the other runtime loading flags (-brtl),
11802 # -berok will link without error, but may produce a broken library.
11803 allow_undefined_flag_CXX='-berok'
11804 # Determine the default libpath from the value encoded in an empty
11805 # executable.
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808
11809 int
11810 main ()
11811 {
11812
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_cxx_try_link "$LINENO"; then :
11818
11819 lt_aix_libpath_sed='
11820 /Import File Strings/,/^$/ {
11821 /^0/ {
11822 s/^0 *\(.*\)$/\1/
11823 p
11824 }
11825 }'
11826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11827 # Check for a 64-bit object if we didn't find anything.
11828 if test -z "$aix_libpath"; then
11829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11830 fi
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11835
11836 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11837
11838 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"
11839 else
11840 if test "$host_cpu" = ia64; then
11841 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11842 allow_undefined_flag_CXX="-z nodefs"
11843 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"
11844 else
11845 # Determine the default libpath from the value encoded in an
11846 # empty executable.
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849
11850 int
11851 main ()
11852 {
11853
11854 ;
11855 return 0;
11856 }
11857 _ACEOF
11858 if ac_fn_cxx_try_link "$LINENO"; then :
11859
11860 lt_aix_libpath_sed='
11861 /Import File Strings/,/^$/ {
11862 /^0/ {
11863 s/^0 *\(.*\)$/\1/
11864 p
11865 }
11866 }'
11867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11868 # Check for a 64-bit object if we didn't find anything.
11869 if test -z "$aix_libpath"; then
11870 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11871 fi
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11876
11877 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11878 # Warning - without using the other run time loading flags,
11879 # -berok will link without error, but may produce a broken library.
11880 no_undefined_flag_CXX=' ${wl}-bernotok'
11881 allow_undefined_flag_CXX=' ${wl}-berok'
11882 # Exported symbols can be pulled into shared objects from archives
11883 whole_archive_flag_spec_CXX='$convenience'
11884 archive_cmds_need_lc_CXX=yes
11885 # This is similar to how AIX traditionally builds its shared
11886 # libraries.
11887 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'
11888 fi
11889 fi
11890 ;;
11891
11892 beos*)
11893 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11894 allow_undefined_flag_CXX=unsupported
11895 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11896 # support --undefined. This deserves some investigation. FIXME
11897 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11898 else
11899 ld_shlibs_CXX=no
11900 fi
11901 ;;
11902
11903 chorus*)
11904 case $cc_basename in
11905 *)
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 ;;
11909 esac
11910 ;;
11911
11912 cygwin* | mingw* | pw32* | cegcc*)
11913 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11914 # as there is no search path for DLLs.
11915 hardcode_libdir_flag_spec_CXX='-L$libdir'
11916 allow_undefined_flag_CXX=unsupported
11917 always_export_symbols_CXX=no
11918 enable_shared_with_static_runtimes_CXX=yes
11919
11920 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11921 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'
11922 # If the export-symbols file already is a .def file (1st line
11923 # is EXPORTS), use it as is; otherwise, prepend...
11924 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11925 cp $export_symbols $output_objdir/$soname.def;
11926 else
11927 echo EXPORTS > $output_objdir/$soname.def;
11928 cat $export_symbols >> $output_objdir/$soname.def;
11929 fi~
11930 $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'
11931 else
11932 ld_shlibs_CXX=no
11933 fi
11934 ;;
11935 darwin* | rhapsody*)
11936
11937
11938 archive_cmds_need_lc_CXX=no
11939 hardcode_direct_CXX=no
11940 hardcode_automatic_CXX=yes
11941 hardcode_shlibpath_var_CXX=unsupported
11942 whole_archive_flag_spec_CXX=''
11943 link_all_deplibs_CXX=yes
11944 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11945 case $cc_basename in
11946 ifort*) _lt_dar_can_shared=yes ;;
11947 *) _lt_dar_can_shared=$GCC ;;
11948 esac
11949 if test "$_lt_dar_can_shared" = "yes"; then
11950 output_verbose_link_cmd=echo
11951 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}"
11952 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11953 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}"
11954 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}"
11955 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11956 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}"
11957 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}"
11958 fi
11959
11960 else
11961 ld_shlibs_CXX=no
11962 fi
11963
11964 ;;
11965
11966 dgux*)
11967 case $cc_basename in
11968 ec++*)
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 ;;
11972 ghcx*)
11973 # Green Hills C++ Compiler
11974 # FIXME: insert proper C++ library support
11975 ld_shlibs_CXX=no
11976 ;;
11977 *)
11978 # FIXME: insert proper C++ library support
11979 ld_shlibs_CXX=no
11980 ;;
11981 esac
11982 ;;
11983
11984 freebsd[12]*)
11985 # C++ shared libraries reported to be fairly broken before
11986 # switch to ELF
11987 ld_shlibs_CXX=no
11988 ;;
11989
11990 freebsd-elf*)
11991 archive_cmds_need_lc_CXX=no
11992 ;;
11993
11994 freebsd* | dragonfly*)
11995 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11996 # conventions
11997 ld_shlibs_CXX=yes
11998 ;;
11999
12000 gnu*)
12001 ;;
12002
12003 hpux9*)
12004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12005 hardcode_libdir_separator_CXX=:
12006 export_dynamic_flag_spec_CXX='${wl}-E'
12007 hardcode_direct_CXX=yes
12008 hardcode_minus_L_CXX=yes # Not in the search PATH,
12009 # but as the default
12010 # location of the library.
12011
12012 case $cc_basename in
12013 CC*)
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12016 ;;
12017 aCC*)
12018 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'
12019 # Commands to make compiler produce verbose output that lists
12020 # what "hidden" libraries, object files and flags are used when
12021 # linking a shared library.
12022 #
12023 # There doesn't appear to be a way to prevent this compiler from
12024 # explicitly linking system object files so we need to strip them
12025 # from the output so that they don't get included in the library
12026 # dependencies.
12027 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'
12028 ;;
12029 *)
12030 if test "$GXX" = yes; then
12031 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'
12032 else
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12035 fi
12036 ;;
12037 esac
12038 ;;
12039
12040 hpux10*|hpux11*)
12041 if test $with_gnu_ld = no; then
12042 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12043 hardcode_libdir_separator_CXX=:
12044
12045 case $host_cpu in
12046 hppa*64*|ia64*)
12047 ;;
12048 *)
12049 export_dynamic_flag_spec_CXX='${wl}-E'
12050 ;;
12051 esac
12052 fi
12053 case $host_cpu in
12054 hppa*64*|ia64*)
12055 hardcode_direct_CXX=no
12056 hardcode_shlibpath_var_CXX=no
12057 ;;
12058 *)
12059 hardcode_direct_CXX=yes
12060 hardcode_direct_absolute_CXX=yes
12061 hardcode_minus_L_CXX=yes # Not in the search PATH,
12062 # but as the default
12063 # location of the library.
12064 ;;
12065 esac
12066
12067 case $cc_basename in
12068 CC*)
12069 # FIXME: insert proper C++ library support
12070 ld_shlibs_CXX=no
12071 ;;
12072 aCC*)
12073 case $host_cpu in
12074 hppa*64*)
12075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076 ;;
12077 ia64*)
12078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079 ;;
12080 *)
12081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 ;;
12083 esac
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12087 #
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12091 # dependencies.
12092 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'
12093 ;;
12094 *)
12095 if test "$GXX" = yes; then
12096 if test $with_gnu_ld = no; then
12097 case $host_cpu in
12098 hppa*64*)
12099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12100 ;;
12101 ia64*)
12102 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 ;;
12104 *)
12105 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'
12106 ;;
12107 esac
12108 fi
12109 else
12110 # FIXME: insert proper C++ library support
12111 ld_shlibs_CXX=no
12112 fi
12113 ;;
12114 esac
12115 ;;
12116
12117 interix[3-9]*)
12118 hardcode_direct_CXX=no
12119 hardcode_shlibpath_var_CXX=no
12120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12121 export_dynamic_flag_spec_CXX='${wl}-E'
12122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12123 # Instead, shared libraries are loaded at an image base (0x10000000 by
12124 # default) and relocated if they conflict, which is a slow very memory
12125 # consuming and fragmenting process. To avoid this, we pick a random,
12126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12128 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'
12129 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'
12130 ;;
12131 irix5* | irix6*)
12132 case $cc_basename in
12133 CC*)
12134 # SGI C++
12135 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'
12136
12137 # Archives containing C++ object files must be created using
12138 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12139 # necessary to make sure instantiated templates are included
12140 # in the archive.
12141 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12142 ;;
12143 *)
12144 if test "$GXX" = yes; then
12145 if test "$with_gnu_ld" = no; then
12146 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'
12147 else
12148 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'
12149 fi
12150 fi
12151 link_all_deplibs_CXX=yes
12152 ;;
12153 esac
12154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155 hardcode_libdir_separator_CXX=:
12156 inherit_rpath_CXX=yes
12157 ;;
12158
12159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12160 case $cc_basename in
12161 KCC*)
12162 # Kuck and Associates, Inc. (KAI) C++ Compiler
12163
12164 # KCC will only create a shared library if the output file
12165 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12166 # to its proper name (with version) after linking.
12167 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'
12168 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'
12169 # Commands to make compiler produce verbose output that lists
12170 # what "hidden" libraries, object files and flags are used when
12171 # linking a shared library.
12172 #
12173 # There doesn't appear to be a way to prevent this compiler from
12174 # explicitly linking system object files so we need to strip them
12175 # from the output so that they don't get included in the library
12176 # dependencies.
12177 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'
12178
12179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12181
12182 # Archives containing C++ object files must be created using
12183 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12184 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12185 ;;
12186 icpc* | ecpc* )
12187 # Intel C++
12188 with_gnu_ld=yes
12189 # version 8.0 and above of icpc choke on multiply defined symbols
12190 # if we add $predep_objects and $postdep_objects, however 7.1 and
12191 # earlier do not add the objects themselves.
12192 case `$CC -V 2>&1` in
12193 *"Version 7."*)
12194 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12195 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'
12196 ;;
12197 *) # Version 8.0 or newer
12198 tmp_idyn=
12199 case $host_cpu in
12200 ia64*) tmp_idyn=' -i_dynamic';;
12201 esac
12202 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203 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'
12204 ;;
12205 esac
12206 archive_cmds_need_lc_CXX=no
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12210 ;;
12211 pgCC* | pgcpp*)
12212 # Portland Group C++ compiler
12213 case `$CC -V` in
12214 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12215 prelink_cmds_CXX='tpldir=Template.dir~
12216 rm -rf $tpldir~
12217 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12218 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12219 old_archive_cmds_CXX='tpldir=Template.dir~
12220 rm -rf $tpldir~
12221 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12222 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12223 $RANLIB $oldlib'
12224 archive_cmds_CXX='tpldir=Template.dir~
12225 rm -rf $tpldir~
12226 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12227 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12228 archive_expsym_cmds_CXX='tpldir=Template.dir~
12229 rm -rf $tpldir~
12230 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12231 $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'
12232 ;;
12233 *) # Version 6 will use weak symbols
12234 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12235 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'
12236 ;;
12237 esac
12238
12239 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12241 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'
12242 ;;
12243 cxx*)
12244 # Compaq C++
12245 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 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'
12247
12248 runpath_var=LD_RUN_PATH
12249 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12250 hardcode_libdir_separator_CXX=:
12251
12252 # Commands to make compiler produce verbose output that lists
12253 # what "hidden" libraries, object files and flags are used when
12254 # linking a shared library.
12255 #
12256 # There doesn't appear to be a way to prevent this compiler from
12257 # explicitly linking system object files so we need to strip them
12258 # from the output so that they don't get included in the library
12259 # dependencies.
12260 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'
12261 ;;
12262 xl*)
12263 # IBM XL 8.0 on PPC, with GNU ld
12264 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12266 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267 if test "x$supports_anon_versioning" = xyes; then
12268 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12270 echo "local: *; };" >> $output_objdir/$libname.ver~
12271 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12272 fi
12273 ;;
12274 *)
12275 case `$CC -V 2>&1 | sed 5q` in
12276 *Sun\ C*)
12277 # Sun C++ 5.9
12278 no_undefined_flag_CXX=' -zdefs'
12279 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12280 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'
12281 hardcode_libdir_flag_spec_CXX='-R$libdir'
12282 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'
12283 compiler_needs_object_CXX=yes
12284
12285 # Not sure whether something based on
12286 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12287 # would be better.
12288 output_verbose_link_cmd='echo'
12289
12290 # Archives containing C++ object files must be created using
12291 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12292 # necessary to make sure instantiated templates are included
12293 # in the archive.
12294 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12295 ;;
12296 esac
12297 ;;
12298 esac
12299 ;;
12300
12301 lynxos*)
12302 # FIXME: insert proper C++ library support
12303 ld_shlibs_CXX=no
12304 ;;
12305
12306 m88k*)
12307 # FIXME: insert proper C++ library support
12308 ld_shlibs_CXX=no
12309 ;;
12310
12311 mvs*)
12312 case $cc_basename in
12313 cxx*)
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12316 ;;
12317 *)
12318 # FIXME: insert proper C++ library support
12319 ld_shlibs_CXX=no
12320 ;;
12321 esac
12322 ;;
12323
12324 netbsd*)
12325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12327 wlarc=
12328 hardcode_libdir_flag_spec_CXX='-R$libdir'
12329 hardcode_direct_CXX=yes
12330 hardcode_shlibpath_var_CXX=no
12331 fi
12332 # Workaround some broken pre-1.5 toolchains
12333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12334 ;;
12335
12336 *nto* | *qnx*)
12337 ld_shlibs_CXX=yes
12338 ;;
12339
12340 openbsd2*)
12341 # C++ shared libraries are fairly broken
12342 ld_shlibs_CXX=no
12343 ;;
12344
12345 openbsd*)
12346 if test -f /usr/libexec/ld.so; then
12347 hardcode_direct_CXX=yes
12348 hardcode_shlibpath_var_CXX=no
12349 hardcode_direct_absolute_CXX=yes
12350 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12353 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12354 export_dynamic_flag_spec_CXX='${wl}-E'
12355 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12356 fi
12357 output_verbose_link_cmd=echo
12358 else
12359 ld_shlibs_CXX=no
12360 fi
12361 ;;
12362
12363 osf3* | osf4* | osf5*)
12364 case $cc_basename in
12365 KCC*)
12366 # Kuck and Associates, Inc. (KAI) C++ Compiler
12367
12368 # KCC will only create a shared library if the output file
12369 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12370 # to its proper name (with version) after linking.
12371 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'
12372
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12374 hardcode_libdir_separator_CXX=:
12375
12376 # Archives containing C++ object files must be created using
12377 # the KAI C++ compiler.
12378 case $host in
12379 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12380 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12381 esac
12382 ;;
12383 RCC*)
12384 # Rational C++ 2.4.1
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12387 ;;
12388 cxx*)
12389 case $host in
12390 osf3*)
12391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12392 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'
12393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394 ;;
12395 *)
12396 allow_undefined_flag_CXX=' -expect_unresolved \*'
12397 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'
12398 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12399 echo "-hidden">> $lib.exp~
12400 $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~
12401 $RM $lib.exp'
12402 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12403 ;;
12404 esac
12405
12406 hardcode_libdir_separator_CXX=:
12407
12408 # Commands to make compiler produce verbose output that lists
12409 # what "hidden" libraries, object files and flags are used when
12410 # linking a shared library.
12411 #
12412 # There doesn't appear to be a way to prevent this compiler from
12413 # explicitly linking system object files so we need to strip them
12414 # from the output so that they don't get included in the library
12415 # dependencies.
12416 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'
12417 ;;
12418 *)
12419 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12420 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12421 case $host in
12422 osf3*)
12423 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'
12424 ;;
12425 *)
12426 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'
12427 ;;
12428 esac
12429
12430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12431 hardcode_libdir_separator_CXX=:
12432
12433 # Commands to make compiler produce verbose output that lists
12434 # what "hidden" libraries, object files and flags are used when
12435 # linking a shared library.
12436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12437
12438 else
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12441 fi
12442 ;;
12443 esac
12444 ;;
12445
12446 psos*)
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12449 ;;
12450
12451 sunos4*)
12452 case $cc_basename in
12453 CC*)
12454 # Sun C++ 4.x
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 lcc*)
12459 # Lucid
12460 # FIXME: insert proper C++ library support
12461 ld_shlibs_CXX=no
12462 ;;
12463 *)
12464 # FIXME: insert proper C++ library support
12465 ld_shlibs_CXX=no
12466 ;;
12467 esac
12468 ;;
12469
12470 solaris*)
12471 case $cc_basename in
12472 CC*)
12473 # Sun C++ 4.2, 5.x and Centerline C++
12474 archive_cmds_need_lc_CXX=yes
12475 no_undefined_flag_CXX=' -zdefs'
12476 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12477 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12478 $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'
12479
12480 hardcode_libdir_flag_spec_CXX='-R$libdir'
12481 hardcode_shlibpath_var_CXX=no
12482 case $host_os in
12483 solaris2.[0-5] | solaris2.[0-5].*) ;;
12484 *)
12485 # The compiler driver will combine and reorder linker options,
12486 # but understands `-z linker_flag'.
12487 # Supported since Solaris 2.6 (maybe 2.5.1?)
12488 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12489 ;;
12490 esac
12491 link_all_deplibs_CXX=yes
12492
12493 output_verbose_link_cmd='echo'
12494
12495 # Archives containing C++ object files must be created using
12496 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12497 # necessary to make sure instantiated templates are included
12498 # in the archive.
12499 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12500 ;;
12501 gcx*)
12502 # Green Hills C++ Compiler
12503 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12504
12505 # The C++ compiler must be used to create the archive.
12506 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12507 ;;
12508 *)
12509 # GNU C++ compiler with Solaris linker
12510 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12511 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12512 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12513 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12514 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12515 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12516
12517 # Commands to make compiler produce verbose output that lists
12518 # what "hidden" libraries, object files and flags are used when
12519 # linking a shared library.
12520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12521 else
12522 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12523 # platform.
12524 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12525 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12526 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12527
12528 # Commands to make compiler produce verbose output that lists
12529 # what "hidden" libraries, object files and flags are used when
12530 # linking a shared library.
12531 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12532 fi
12533
12534 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12535 case $host_os in
12536 solaris2.[0-5] | solaris2.[0-5].*) ;;
12537 *)
12538 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12539 ;;
12540 esac
12541 fi
12542 ;;
12543 esac
12544 ;;
12545
12546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12547 no_undefined_flag_CXX='${wl}-z,text'
12548 archive_cmds_need_lc_CXX=no
12549 hardcode_shlibpath_var_CXX=no
12550 runpath_var='LD_RUN_PATH'
12551
12552 case $cc_basename in
12553 CC*)
12554 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12555 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 ;;
12557 *)
12558 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12559 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12560 ;;
12561 esac
12562 ;;
12563
12564 sysv5* | sco3.2v5* | sco5v6*)
12565 # Note: We can NOT use -z defs as we might desire, because we do not
12566 # link with -lc, and that would cause any symbols used from libc to
12567 # always be unresolved, which means just about no library would
12568 # ever link correctly. If we're not using GNU ld we use -z text
12569 # though, which does catch some bad symbols but isn't as heavy-handed
12570 # as -z defs.
12571 no_undefined_flag_CXX='${wl}-z,text'
12572 allow_undefined_flag_CXX='${wl}-z,nodefs'
12573 archive_cmds_need_lc_CXX=no
12574 hardcode_shlibpath_var_CXX=no
12575 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12576 hardcode_libdir_separator_CXX=':'
12577 link_all_deplibs_CXX=yes
12578 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12579 runpath_var='LD_RUN_PATH'
12580
12581 case $cc_basename in
12582 CC*)
12583 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12585 ;;
12586 *)
12587 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12589 ;;
12590 esac
12591 ;;
12592
12593 tandem*)
12594 case $cc_basename in
12595 NCC*)
12596 # NonStop-UX NCC 3.20
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12599 ;;
12600 *)
12601 # FIXME: insert proper C++ library support
12602 ld_shlibs_CXX=no
12603 ;;
12604 esac
12605 ;;
12606
12607 vxworks*)
12608 # FIXME: insert proper C++ library support
12609 ld_shlibs_CXX=no
12610 ;;
12611
12612 *)
12613 # FIXME: insert proper C++ library support
12614 ld_shlibs_CXX=no
12615 ;;
12616 esac
12617
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12619 $as_echo "$ld_shlibs_CXX" >&6; }
12620 test "$ld_shlibs_CXX" = no && can_build_shared=no
12621
12622 GCC_CXX="$GXX"
12623 LD_CXX="$LD"
12624
12625 ## CAVEAT EMPTOR:
12626 ## There is no encapsulation within the following macros, do not change
12627 ## the running order or otherwise move them around unless you know exactly
12628 ## what you are doing...
12629 # Dependencies to place before and after the object being linked:
12630 predep_objects_CXX=
12631 postdep_objects_CXX=
12632 predeps_CXX=
12633 postdeps_CXX=
12634 compiler_lib_search_path_CXX=
12635
12636 cat > conftest.$ac_ext <<_LT_EOF
12637 class Foo
12638 {
12639 public:
12640 Foo (void) { a = 0; }
12641 private:
12642 int a;
12643 };
12644 _LT_EOF
12645
12646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12647 (eval $ac_compile) 2>&5
12648 ac_status=$?
12649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12650 test $ac_status = 0; }; then
12651 # Parse the compiler output and extract the necessary
12652 # objects, libraries and library flags.
12653
12654 # Sentinel used to keep track of whether or not we are before
12655 # the conftest object file.
12656 pre_test_object_deps_done=no
12657
12658 for p in `eval "$output_verbose_link_cmd"`; do
12659 case $p in
12660
12661 -L* | -R* | -l*)
12662 # Some compilers place space between "-{L,R}" and the path.
12663 # Remove the space.
12664 if test $p = "-L" ||
12665 test $p = "-R"; then
12666 prev=$p
12667 continue
12668 else
12669 prev=
12670 fi
12671
12672 if test "$pre_test_object_deps_done" = no; then
12673 case $p in
12674 -L* | -R*)
12675 # Internal compiler library paths should come after those
12676 # provided the user. The postdeps already come after the
12677 # user supplied libs so there is no need to process them.
12678 if test -z "$compiler_lib_search_path_CXX"; then
12679 compiler_lib_search_path_CXX="${prev}${p}"
12680 else
12681 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12682 fi
12683 ;;
12684 # The "-l" case would never come before the object being
12685 # linked, so don't bother handling this case.
12686 esac
12687 else
12688 if test -z "$postdeps_CXX"; then
12689 postdeps_CXX="${prev}${p}"
12690 else
12691 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12692 fi
12693 fi
12694 ;;
12695
12696 *.$objext)
12697 # This assumes that the test object file only shows up
12698 # once in the compiler output.
12699 if test "$p" = "conftest.$objext"; then
12700 pre_test_object_deps_done=yes
12701 continue
12702 fi
12703
12704 if test "$pre_test_object_deps_done" = no; then
12705 if test -z "$predep_objects_CXX"; then
12706 predep_objects_CXX="$p"
12707 else
12708 predep_objects_CXX="$predep_objects_CXX $p"
12709 fi
12710 else
12711 if test -z "$postdep_objects_CXX"; then
12712 postdep_objects_CXX="$p"
12713 else
12714 postdep_objects_CXX="$postdep_objects_CXX $p"
12715 fi
12716 fi
12717 ;;
12718
12719 *) ;; # Ignore the rest.
12720
12721 esac
12722 done
12723
12724 # Clean up.
12725 rm -f a.out a.exe
12726 else
12727 echo "libtool.m4: error: problem compiling CXX test program"
12728 fi
12729
12730 $RM -f confest.$objext
12731
12732 # PORTME: override above test on systems where it is broken
12733 case $host_os in
12734 interix[3-9]*)
12735 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12736 # hack all around it, let's just trust "g++" to DTRT.
12737 predep_objects_CXX=
12738 postdep_objects_CXX=
12739 postdeps_CXX=
12740 ;;
12741
12742 linux*)
12743 case `$CC -V 2>&1 | sed 5q` in
12744 *Sun\ C*)
12745 # Sun C++ 5.9
12746
12747 # The more standards-conforming stlport4 library is
12748 # incompatible with the Cstd library. Avoid specifying
12749 # it if it's in CXXFLAGS. Ignore libCrun as
12750 # -library=stlport4 depends on it.
12751 case " $CXX $CXXFLAGS " in
12752 *" -library=stlport4 "*)
12753 solaris_use_stlport4=yes
12754 ;;
12755 esac
12756
12757 if test "$solaris_use_stlport4" != yes; then
12758 postdeps_CXX='-library=Cstd -library=Crun'
12759 fi
12760 ;;
12761 esac
12762 ;;
12763
12764 solaris*)
12765 case $cc_basename in
12766 CC*)
12767 # The more standards-conforming stlport4 library is
12768 # incompatible with the Cstd library. Avoid specifying
12769 # it if it's in CXXFLAGS. Ignore libCrun as
12770 # -library=stlport4 depends on it.
12771 case " $CXX $CXXFLAGS " in
12772 *" -library=stlport4 "*)
12773 solaris_use_stlport4=yes
12774 ;;
12775 esac
12776
12777 # Adding this requires a known-good setup of shared libraries for
12778 # Sun compiler versions before 5.6, else PIC objects from an old
12779 # archive will be linked into the output, leading to subtle bugs.
12780 if test "$solaris_use_stlport4" != yes; then
12781 postdeps_CXX='-library=Cstd -library=Crun'
12782 fi
12783 ;;
12784 esac
12785 ;;
12786 esac
12787
12788
12789 case " $postdeps_CXX " in
12790 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12791 esac
12792 compiler_lib_search_dirs_CXX=
12793 if test -n "${compiler_lib_search_path_CXX}"; then
12794 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12795 fi
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827 lt_prog_compiler_wl_CXX=
12828 lt_prog_compiler_pic_CXX=
12829 lt_prog_compiler_static_CXX=
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12832 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12833
12834 # C++ specific cases for pic, static, wl, etc.
12835 if test "$GXX" = yes; then
12836 lt_prog_compiler_wl_CXX='-Wl,'
12837 lt_prog_compiler_static_CXX='-static'
12838
12839 case $host_os in
12840 aix*)
12841 # All AIX code is PIC.
12842 if test "$host_cpu" = ia64; then
12843 # AIX 5 now supports IA64 processor
12844 lt_prog_compiler_static_CXX='-Bstatic'
12845 fi
12846 ;;
12847
12848 amigaos*)
12849 case $host_cpu in
12850 powerpc)
12851 # see comment about AmigaOS4 .so support
12852 lt_prog_compiler_pic_CXX='-fPIC'
12853 ;;
12854 m68k)
12855 # FIXME: we need at least 68020 code to build shared libraries, but
12856 # adding the `-m68020' flag to GCC prevents building anything better,
12857 # like `-m68040'.
12858 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12859 ;;
12860 esac
12861 ;;
12862
12863 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12864 # PIC is the default for these OSes.
12865 ;;
12866 mingw* | cygwin* | os2* | pw32* | cegcc*)
12867 # This hack is so that the source file can tell whether it is being
12868 # built for inclusion in a dll (and should export symbols for example).
12869 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12870 # (--disable-auto-import) libraries
12871 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12872 ;;
12873 darwin* | rhapsody*)
12874 # PIC is the default on this platform
12875 # Common symbols not allowed in MH_DYLIB files
12876 lt_prog_compiler_pic_CXX='-fno-common'
12877 ;;
12878 *djgpp*)
12879 # DJGPP does not support shared libraries at all
12880 lt_prog_compiler_pic_CXX=
12881 ;;
12882 interix[3-9]*)
12883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12884 # Instead, we relocate shared libraries at runtime.
12885 ;;
12886 sysv4*MP*)
12887 if test -d /usr/nec; then
12888 lt_prog_compiler_pic_CXX=-Kconform_pic
12889 fi
12890 ;;
12891 hpux*)
12892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12894 # sets the default TLS model and affects inlining.
12895 case $host_cpu in
12896 hppa*64*)
12897 ;;
12898 *)
12899 lt_prog_compiler_pic_CXX='-fPIC'
12900 ;;
12901 esac
12902 ;;
12903 *qnx* | *nto*)
12904 # QNX uses GNU C++, but need to define -shared option too, otherwise
12905 # it will coredump.
12906 lt_prog_compiler_pic_CXX='-fPIC -shared'
12907 ;;
12908 *)
12909 lt_prog_compiler_pic_CXX='-fPIC'
12910 ;;
12911 esac
12912 else
12913 case $host_os in
12914 aix[4-9]*)
12915 # All AIX code is PIC.
12916 if test "$host_cpu" = ia64; then
12917 # AIX 5 now supports IA64 processor
12918 lt_prog_compiler_static_CXX='-Bstatic'
12919 else
12920 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12921 fi
12922 ;;
12923 chorus*)
12924 case $cc_basename in
12925 cxch68*)
12926 # Green Hills C++ Compiler
12927 # _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"
12928 ;;
12929 esac
12930 ;;
12931 dgux*)
12932 case $cc_basename in
12933 ec++*)
12934 lt_prog_compiler_pic_CXX='-KPIC'
12935 ;;
12936 ghcx*)
12937 # Green Hills C++ Compiler
12938 lt_prog_compiler_pic_CXX='-pic'
12939 ;;
12940 *)
12941 ;;
12942 esac
12943 ;;
12944 freebsd* | dragonfly*)
12945 # FreeBSD uses GNU C++
12946 ;;
12947 hpux9* | hpux10* | hpux11*)
12948 case $cc_basename in
12949 CC*)
12950 lt_prog_compiler_wl_CXX='-Wl,'
12951 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12952 if test "$host_cpu" != ia64; then
12953 lt_prog_compiler_pic_CXX='+Z'
12954 fi
12955 ;;
12956 aCC*)
12957 lt_prog_compiler_wl_CXX='-Wl,'
12958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12959 case $host_cpu in
12960 hppa*64*|ia64*)
12961 # +Z the default
12962 ;;
12963 *)
12964 lt_prog_compiler_pic_CXX='+Z'
12965 ;;
12966 esac
12967 ;;
12968 *)
12969 ;;
12970 esac
12971 ;;
12972 interix*)
12973 # This is c89, which is MS Visual C++ (no shared libs)
12974 # Anyone wants to do a port?
12975 ;;
12976 irix5* | irix6* | nonstopux*)
12977 case $cc_basename in
12978 CC*)
12979 lt_prog_compiler_wl_CXX='-Wl,'
12980 lt_prog_compiler_static_CXX='-non_shared'
12981 # CC pic flag -KPIC is the default.
12982 ;;
12983 *)
12984 ;;
12985 esac
12986 ;;
12987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12988 case $cc_basename in
12989 KCC*)
12990 # KAI C++ Compiler
12991 lt_prog_compiler_wl_CXX='--backend -Wl,'
12992 lt_prog_compiler_pic_CXX='-fPIC'
12993 ;;
12994 ecpc* )
12995 # old Intel C++ for x86_64 which still supported -KPIC.
12996 lt_prog_compiler_wl_CXX='-Wl,'
12997 lt_prog_compiler_pic_CXX='-KPIC'
12998 lt_prog_compiler_static_CXX='-static'
12999 ;;
13000 icpc* )
13001 # Intel C++, used to be incompatible with GCC.
13002 # ICC 10 doesn't accept -KPIC any more.
13003 lt_prog_compiler_wl_CXX='-Wl,'
13004 lt_prog_compiler_pic_CXX='-fPIC'
13005 lt_prog_compiler_static_CXX='-static'
13006 ;;
13007 pgCC* | pgcpp*)
13008 # Portland Group C++ compiler
13009 lt_prog_compiler_wl_CXX='-Wl,'
13010 lt_prog_compiler_pic_CXX='-fpic'
13011 lt_prog_compiler_static_CXX='-Bstatic'
13012 ;;
13013 cxx*)
13014 # Compaq C++
13015 # Make sure the PIC flag is empty. It appears that all Alpha
13016 # Linux and Compaq Tru64 Unix objects are PIC.
13017 lt_prog_compiler_pic_CXX=
13018 lt_prog_compiler_static_CXX='-non_shared'
13019 ;;
13020 xlc* | xlC*)
13021 # IBM XL 8.0 on PPC
13022 lt_prog_compiler_wl_CXX='-Wl,'
13023 lt_prog_compiler_pic_CXX='-qpic'
13024 lt_prog_compiler_static_CXX='-qstaticlink'
13025 ;;
13026 *)
13027 case `$CC -V 2>&1 | sed 5q` in
13028 *Sun\ C*)
13029 # Sun C++ 5.9
13030 lt_prog_compiler_pic_CXX='-KPIC'
13031 lt_prog_compiler_static_CXX='-Bstatic'
13032 lt_prog_compiler_wl_CXX='-Qoption ld '
13033 ;;
13034 esac
13035 ;;
13036 esac
13037 ;;
13038 lynxos*)
13039 ;;
13040 m88k*)
13041 ;;
13042 mvs*)
13043 case $cc_basename in
13044 cxx*)
13045 lt_prog_compiler_pic_CXX='-W c,exportall'
13046 ;;
13047 *)
13048 ;;
13049 esac
13050 ;;
13051 netbsd* | netbsdelf*-gnu)
13052 ;;
13053 *qnx* | *nto*)
13054 # QNX uses GNU C++, but need to define -shared option too, otherwise
13055 # it will coredump.
13056 lt_prog_compiler_pic_CXX='-fPIC -shared'
13057 ;;
13058 osf3* | osf4* | osf5*)
13059 case $cc_basename in
13060 KCC*)
13061 lt_prog_compiler_wl_CXX='--backend -Wl,'
13062 ;;
13063 RCC*)
13064 # Rational C++ 2.4.1
13065 lt_prog_compiler_pic_CXX='-pic'
13066 ;;
13067 cxx*)
13068 # Digital/Compaq C++
13069 lt_prog_compiler_wl_CXX='-Wl,'
13070 # Make sure the PIC flag is empty. It appears that all Alpha
13071 # Linux and Compaq Tru64 Unix objects are PIC.
13072 lt_prog_compiler_pic_CXX=
13073 lt_prog_compiler_static_CXX='-non_shared'
13074 ;;
13075 *)
13076 ;;
13077 esac
13078 ;;
13079 psos*)
13080 ;;
13081 solaris*)
13082 case $cc_basename in
13083 CC*)
13084 # Sun C++ 4.2, 5.x and Centerline C++
13085 lt_prog_compiler_pic_CXX='-KPIC'
13086 lt_prog_compiler_static_CXX='-Bstatic'
13087 lt_prog_compiler_wl_CXX='-Qoption ld '
13088 ;;
13089 gcx*)
13090 # Green Hills C++ Compiler
13091 lt_prog_compiler_pic_CXX='-PIC'
13092 ;;
13093 *)
13094 ;;
13095 esac
13096 ;;
13097 sunos4*)
13098 case $cc_basename in
13099 CC*)
13100 # Sun C++ 4.x
13101 lt_prog_compiler_pic_CXX='-pic'
13102 lt_prog_compiler_static_CXX='-Bstatic'
13103 ;;
13104 lcc*)
13105 # Lucid
13106 lt_prog_compiler_pic_CXX='-pic'
13107 ;;
13108 *)
13109 ;;
13110 esac
13111 ;;
13112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13113 case $cc_basename in
13114 CC*)
13115 lt_prog_compiler_wl_CXX='-Wl,'
13116 lt_prog_compiler_pic_CXX='-KPIC'
13117 lt_prog_compiler_static_CXX='-Bstatic'
13118 ;;
13119 esac
13120 ;;
13121 tandem*)
13122 case $cc_basename in
13123 NCC*)
13124 # NonStop-UX NCC 3.20
13125 lt_prog_compiler_pic_CXX='-KPIC'
13126 ;;
13127 *)
13128 ;;
13129 esac
13130 ;;
13131 vxworks*)
13132 ;;
13133 *)
13134 lt_prog_compiler_can_build_shared_CXX=no
13135 ;;
13136 esac
13137 fi
13138
13139 case $host_os in
13140 # For platforms which do not support PIC, -DPIC is meaningless:
13141 *djgpp*)
13142 lt_prog_compiler_pic_CXX=
13143 ;;
13144 *)
13145 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13146 ;;
13147 esac
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13149 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13150
13151
13152
13153 #
13154 # Check to make sure the PIC flag actually works.
13155 #
13156 if test -n "$lt_prog_compiler_pic_CXX"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13158 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13159 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 lt_cv_prog_compiler_pic_works_CXX=no
13163 ac_outfile=conftest.$ac_objext
13164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13166 # Insert the option either (1) after the last *FLAGS variable, or
13167 # (2) before a word containing "conftest.", or (3) at the end.
13168 # Note that $ac_compile itself does not contain backslashes and begins
13169 # with a dollar sign (not a hyphen), so the echo should work correctly.
13170 # The option is referenced via a variable to avoid confusing sed.
13171 lt_compile=`echo "$ac_compile" | $SED \
13172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13174 -e 's:$: $lt_compiler_flag:'`
13175 (eval echo "\"\$as_me:13175: $lt_compile\"" >&5)
13176 (eval "$lt_compile" 2>conftest.err)
13177 ac_status=$?
13178 cat conftest.err >&5
13179 echo "$as_me:13179: \$? = $ac_status" >&5
13180 if (exit $ac_status) && test -s "$ac_outfile"; then
13181 # The compiler can only warn and ignore the option if not recognized
13182 # So say no if there are warnings other than the usual output.
13183 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13186 lt_cv_prog_compiler_pic_works_CXX=yes
13187 fi
13188 fi
13189 $RM conftest*
13190
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13193 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13194
13195 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13196 case $lt_prog_compiler_pic_CXX in
13197 "" | " "*) ;;
13198 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13199 esac
13200 else
13201 lt_prog_compiler_pic_CXX=
13202 lt_prog_compiler_can_build_shared_CXX=no
13203 fi
13204
13205 fi
13206
13207
13208
13209 #
13210 # Check to make sure the static flag actually works.
13211 #
13212 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13214 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13215 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 lt_cv_prog_compiler_static_works_CXX=no
13219 save_LDFLAGS="$LDFLAGS"
13220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13223 # The linker can only warn and ignore the option if not recognized
13224 # So say no if there are warnings
13225 if test -s conftest.err; then
13226 # Append any errors to the config.log.
13227 cat conftest.err 1>&5
13228 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13230 if diff conftest.exp conftest.er2 >/dev/null; then
13231 lt_cv_prog_compiler_static_works_CXX=yes
13232 fi
13233 else
13234 lt_cv_prog_compiler_static_works_CXX=yes
13235 fi
13236 fi
13237 $RM -r conftest*
13238 LDFLAGS="$save_LDFLAGS"
13239
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13242 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13243
13244 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13245 :
13246 else
13247 lt_prog_compiler_static_CXX=
13248 fi
13249
13250
13251
13252
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13255 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258 lt_cv_prog_compiler_c_o_CXX=no
13259 $RM -r conftest 2>/dev/null
13260 mkdir conftest
13261 cd conftest
13262 mkdir out
13263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13264
13265 lt_compiler_flag="-o out/conftest2.$ac_objext"
13266 # Insert the option either (1) after the last *FLAGS variable, or
13267 # (2) before a word containing "conftest.", or (3) at the end.
13268 # Note that $ac_compile itself does not contain backslashes and begins
13269 # with a dollar sign (not a hyphen), so the echo should work correctly.
13270 lt_compile=`echo "$ac_compile" | $SED \
13271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13273 -e 's:$: $lt_compiler_flag:'`
13274 (eval echo "\"\$as_me:13274: $lt_compile\"" >&5)
13275 (eval "$lt_compile" 2>out/conftest.err)
13276 ac_status=$?
13277 cat out/conftest.err >&5
13278 echo "$as_me:13278: \$? = $ac_status" >&5
13279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13280 then
13281 # The compiler can only warn and ignore the option if not recognized
13282 # So say no if there are warnings
13283 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13286 lt_cv_prog_compiler_c_o_CXX=yes
13287 fi
13288 fi
13289 chmod u+w . 2>&5
13290 $RM conftest*
13291 # SGI C++ compiler will create directory out/ii_files/ for
13292 # template instantiation
13293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13294 $RM out/* && rmdir out
13295 cd ..
13296 $RM -r conftest
13297 $RM conftest*
13298
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13302
13303
13304
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13307 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 lt_cv_prog_compiler_c_o_CXX=no
13311 $RM -r conftest 2>/dev/null
13312 mkdir conftest
13313 cd conftest
13314 mkdir out
13315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13316
13317 lt_compiler_flag="-o out/conftest2.$ac_objext"
13318 # Insert the option either (1) after the last *FLAGS variable, or
13319 # (2) before a word containing "conftest.", or (3) at the end.
13320 # Note that $ac_compile itself does not contain backslashes and begins
13321 # with a dollar sign (not a hyphen), so the echo should work correctly.
13322 lt_compile=`echo "$ac_compile" | $SED \
13323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13325 -e 's:$: $lt_compiler_flag:'`
13326 (eval echo "\"\$as_me:13326: $lt_compile\"" >&5)
13327 (eval "$lt_compile" 2>out/conftest.err)
13328 ac_status=$?
13329 cat out/conftest.err >&5
13330 echo "$as_me:13330: \$? = $ac_status" >&5
13331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13332 then
13333 # The compiler can only warn and ignore the option if not recognized
13334 # So say no if there are warnings
13335 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13338 lt_cv_prog_compiler_c_o_CXX=yes
13339 fi
13340 fi
13341 chmod u+w . 2>&5
13342 $RM conftest*
13343 # SGI C++ compiler will create directory out/ii_files/ for
13344 # template instantiation
13345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13346 $RM out/* && rmdir out
13347 cd ..
13348 $RM -r conftest
13349 $RM conftest*
13350
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13353 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13354
13355
13356
13357
13358 hard_links="nottested"
13359 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13360 # do not overwrite the value of need_locks provided by the user
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13362 $as_echo_n "checking if we can lock with hard links... " >&6; }
13363 hard_links=yes
13364 $RM conftest*
13365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13366 touch conftest.a
13367 ln conftest.a conftest.b 2>&5 || hard_links=no
13368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13370 $as_echo "$hard_links" >&6; }
13371 if test "$hard_links" = no; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13374 need_locks=warn
13375 fi
13376 else
13377 need_locks=no
13378 fi
13379
13380
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13384
13385 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13386 case $host_os in
13387 aix[4-9]*)
13388 # If we're using GNU nm, then we don't want the "-C" option.
13389 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13391 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'
13392 else
13393 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'
13394 fi
13395 ;;
13396 pw32*)
13397 export_symbols_cmds_CXX="$ltdll_cmds"
13398 ;;
13399 cygwin* | mingw* | cegcc*)
13400 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'
13401 ;;
13402 linux* | k*bsd*-gnu)
13403 link_all_deplibs_CXX=no
13404 ;;
13405 *)
13406 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13407 ;;
13408 esac
13409 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13410
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13412 $as_echo "$ld_shlibs_CXX" >&6; }
13413 test "$ld_shlibs_CXX" = no && can_build_shared=no
13414
13415 with_gnu_ld_CXX=$with_gnu_ld
13416
13417
13418
13419
13420
13421
13422 #
13423 # Do we need to explicitly link libc?
13424 #
13425 case "x$archive_cmds_need_lc_CXX" in
13426 x|xyes)
13427 # Assume -lc should be added
13428 archive_cmds_need_lc_CXX=yes
13429
13430 if test "$enable_shared" = yes && test "$GCC" = yes; then
13431 case $archive_cmds_CXX in
13432 *'~'*)
13433 # FIXME: we may have to deal with multi-command sequences.
13434 ;;
13435 '$CC '*)
13436 # Test whether the compiler implicitly links with -lc since on some
13437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13438 # to ld, don't add -lc before -lgcc.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13441 $RM conftest*
13442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443
13444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13445 (eval $ac_compile) 2>&5
13446 ac_status=$?
13447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13448 test $ac_status = 0; } 2>conftest.err; then
13449 soname=conftest
13450 lib=conftest
13451 libobjs=conftest.$ac_objext
13452 deplibs=
13453 wl=$lt_prog_compiler_wl_CXX
13454 pic_flag=$lt_prog_compiler_pic_CXX
13455 compiler_flags=-v
13456 linker_flags=-v
13457 verstring=
13458 output_objdir=.
13459 libname=conftest
13460 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13461 allow_undefined_flag_CXX=
13462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13463 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13464 ac_status=$?
13465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13466 test $ac_status = 0; }
13467 then
13468 archive_cmds_need_lc_CXX=no
13469 else
13470 archive_cmds_need_lc_CXX=yes
13471 fi
13472 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13473 else
13474 cat conftest.err 1>&5
13475 fi
13476 $RM conftest*
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13478 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13479 ;;
13480 esac
13481 fi
13482 ;;
13483 esac
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13549 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13550
13551 library_names_spec=
13552 libname_spec='lib$name'
13553 soname_spec=
13554 shrext_cmds=".so"
13555 postinstall_cmds=
13556 postuninstall_cmds=
13557 finish_cmds=
13558 finish_eval=
13559 shlibpath_var=
13560 shlibpath_overrides_runpath=unknown
13561 version_type=none
13562 dynamic_linker="$host_os ld.so"
13563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13564 need_lib_prefix=unknown
13565 hardcode_into_libs=no
13566
13567 # when you set need_version to no, make sure it does not cause -set_version
13568 # flags to be left without arguments
13569 need_version=unknown
13570
13571 case $host_os in
13572 aix3*)
13573 version_type=linux
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13575 shlibpath_var=LIBPATH
13576
13577 # AIX 3 has no versioning support, so we append a major version to the name.
13578 soname_spec='${libname}${release}${shared_ext}$major'
13579 ;;
13580
13581 aix[4-9]*)
13582 version_type=linux
13583 need_lib_prefix=no
13584 need_version=no
13585 hardcode_into_libs=yes
13586 if test "$host_cpu" = ia64; then
13587 # AIX 5 supports IA64
13588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 else
13591 # With GCC up to 2.95.x, collect2 would create an import file
13592 # for dependence libraries. The import file would start with
13593 # the line `#! .'. This would cause the generated library to
13594 # depend on `.', always an invalid library. This was fixed in
13595 # development snapshots of GCC prior to 3.0.
13596 case $host_os in
13597 aix4 | aix4.[01] | aix4.[01].*)
13598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13599 echo ' yes '
13600 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13601 :
13602 else
13603 can_build_shared=no
13604 fi
13605 ;;
13606 esac
13607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13608 # soname into executable. Probably we can add versioning support to
13609 # collect2, so additional links can be useful in future.
13610 if test "$aix_use_runtimelinking" = yes; then
13611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13612 # instead of lib<name>.a to let people know that these are not
13613 # typical AIX shared libraries.
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615 else
13616 # We preserve .a as extension for shared libraries through AIX4.2
13617 # and later when we are not doing run time linking.
13618 library_names_spec='${libname}${release}.a $libname.a'
13619 soname_spec='${libname}${release}${shared_ext}$major'
13620 fi
13621 shlibpath_var=LIBPATH
13622 fi
13623 ;;
13624
13625 amigaos*)
13626 case $host_cpu in
13627 powerpc)
13628 # Since July 2007 AmigaOS4 officially supports .so libraries.
13629 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631 ;;
13632 m68k)
13633 library_names_spec='$libname.ixlibrary $libname.a'
13634 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13635 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'
13636 ;;
13637 esac
13638 ;;
13639
13640 beos*)
13641 library_names_spec='${libname}${shared_ext}'
13642 dynamic_linker="$host_os ld.so"
13643 shlibpath_var=LIBRARY_PATH
13644 ;;
13645
13646 bsdi[45]*)
13647 version_type=linux
13648 need_version=no
13649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13650 soname_spec='${libname}${release}${shared_ext}$major'
13651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13655 # the default ld.so.conf also contains /usr/contrib/lib and
13656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13657 # libtool to hard-code these into programs
13658 ;;
13659
13660 cygwin* | mingw* | pw32* | cegcc*)
13661 version_type=windows
13662 shrext_cmds=".dll"
13663 need_version=no
13664 need_lib_prefix=no
13665
13666 case $GCC,$host_os in
13667 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13668 library_names_spec='$libname.dll.a'
13669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13670 postinstall_cmds='base_file=`basename \${file}`~
13671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13672 dldir=$destdir/`dirname \$dlpath`~
13673 test -d \$dldir || mkdir -p \$dldir~
13674 $install_prog $dir/$dlname \$dldir/$dlname~
13675 chmod a+x \$dldir/$dlname~
13676 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13677 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13678 fi'
13679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13680 dlpath=$dir/\$dldll~
13681 $RM \$dlpath'
13682 shlibpath_overrides_runpath=yes
13683
13684 case $host_os in
13685 cygwin*)
13686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13688 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13689 ;;
13690 mingw* | cegcc*)
13691 # MinGW DLLs use traditional 'lib' prefix
13692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13693 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13694 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13695 # It is most probably a Windows format PATH printed by
13696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13697 # path with ; separators, and with drive letters. We can handle the
13698 # drive letters (cygwin fileutils understands them), so leave them,
13699 # especially as we might pass files found there to a mingw objdump,
13700 # which wouldn't understand a cygwinified path. Ahh.
13701 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13702 else
13703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13704 fi
13705 ;;
13706 pw32*)
13707 # pw32 DLLs use 'pw' prefix rather than 'lib'
13708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13709 ;;
13710 esac
13711 ;;
13712
13713 *)
13714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13715 ;;
13716 esac
13717 dynamic_linker='Win32 ld.exe'
13718 # FIXME: first we should search . and the directory the executable is in
13719 shlibpath_var=PATH
13720 ;;
13721
13722 darwin* | rhapsody*)
13723 dynamic_linker="$host_os dyld"
13724 version_type=darwin
13725 need_lib_prefix=no
13726 need_version=no
13727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13728 soname_spec='${libname}${release}${major}$shared_ext'
13729 shlibpath_overrides_runpath=yes
13730 shlibpath_var=DYLD_LIBRARY_PATH
13731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13732
13733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13734 ;;
13735
13736 dgux*)
13737 version_type=linux
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 ;;
13744
13745 freebsd1*)
13746 dynamic_linker=no
13747 ;;
13748
13749 freebsd* | dragonfly*)
13750 # DragonFly does not have aout. When/if they implement a new
13751 # versioning mechanism, adjust this.
13752 if test -x /usr/bin/objformat; then
13753 objformat=`/usr/bin/objformat`
13754 else
13755 case $host_os in
13756 freebsd[123]*) objformat=aout ;;
13757 *) objformat=elf ;;
13758 esac
13759 fi
13760 version_type=freebsd-$objformat
13761 case $version_type in
13762 freebsd-elf*)
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13764 need_version=no
13765 need_lib_prefix=no
13766 ;;
13767 freebsd-*)
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13769 need_version=yes
13770 ;;
13771 esac
13772 shlibpath_var=LD_LIBRARY_PATH
13773 case $host_os in
13774 freebsd2*)
13775 shlibpath_overrides_runpath=yes
13776 ;;
13777 freebsd3.[01]* | freebsdelf3.[01]*)
13778 shlibpath_overrides_runpath=yes
13779 hardcode_into_libs=yes
13780 ;;
13781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13783 shlibpath_overrides_runpath=no
13784 hardcode_into_libs=yes
13785 ;;
13786 *) # from 4.6 on, and DragonFly
13787 shlibpath_overrides_runpath=yes
13788 hardcode_into_libs=yes
13789 ;;
13790 esac
13791 ;;
13792
13793 gnu*)
13794 version_type=linux
13795 need_lib_prefix=no
13796 need_version=no
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 hardcode_into_libs=yes
13801 ;;
13802
13803 hpux9* | hpux10* | hpux11*)
13804 # Give a soname corresponding to the major version so that dld.sl refuses to
13805 # link against other versions.
13806 version_type=sunos
13807 need_lib_prefix=no
13808 need_version=no
13809 case $host_cpu in
13810 ia64*)
13811 shrext_cmds='.so'
13812 hardcode_into_libs=yes
13813 dynamic_linker="$host_os dld.so"
13814 shlibpath_var=LD_LIBRARY_PATH
13815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 if test "X$HPUX_IA64_MODE" = X32; then
13819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13820 else
13821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13822 fi
13823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13824 ;;
13825 hppa*64*)
13826 shrext_cmds='.sl'
13827 hardcode_into_libs=yes
13828 dynamic_linker="$host_os dld.sl"
13829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13835 ;;
13836 *)
13837 shrext_cmds='.sl'
13838 dynamic_linker="$host_os dld.sl"
13839 shlibpath_var=SHLIB_PATH
13840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13842 soname_spec='${libname}${release}${shared_ext}$major'
13843 ;;
13844 esac
13845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13846 postinstall_cmds='chmod 555 $lib'
13847 ;;
13848
13849 interix[3-9]*)
13850 version_type=linux
13851 need_lib_prefix=no
13852 need_version=no
13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13854 soname_spec='${libname}${release}${shared_ext}$major'
13855 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13856 shlibpath_var=LD_LIBRARY_PATH
13857 shlibpath_overrides_runpath=no
13858 hardcode_into_libs=yes
13859 ;;
13860
13861 irix5* | irix6* | nonstopux*)
13862 case $host_os in
13863 nonstopux*) version_type=nonstopux ;;
13864 *)
13865 if test "$lt_cv_prog_gnu_ld" = yes; then
13866 version_type=linux
13867 else
13868 version_type=irix
13869 fi ;;
13870 esac
13871 need_lib_prefix=no
13872 need_version=no
13873 soname_spec='${libname}${release}${shared_ext}$major'
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13875 case $host_os in
13876 irix5* | nonstopux*)
13877 libsuff= shlibsuff=
13878 ;;
13879 *)
13880 case $LD in # libtool.m4 will add one of these switches to LD
13881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13882 libsuff= shlibsuff= libmagic=32-bit;;
13883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13884 libsuff=32 shlibsuff=N32 libmagic=N32;;
13885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13886 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13887 *) libsuff= shlibsuff= libmagic=never-match;;
13888 esac
13889 ;;
13890 esac
13891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13892 shlibpath_overrides_runpath=no
13893 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13894 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13895 hardcode_into_libs=yes
13896 ;;
13897
13898 # No shared lib support for Linux oldld, aout, or coff.
13899 linux*oldld* | linux*aout* | linux*coff*)
13900 dynamic_linker=no
13901 ;;
13902
13903 # This must be Linux ELF.
13904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13905 version_type=linux
13906 need_lib_prefix=no
13907 need_version=no
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 shlibpath_overrides_runpath=no
13913 # Some binutils ld are patched to set DT_RUNPATH
13914 save_LDFLAGS=$LDFLAGS
13915 save_libdir=$libdir
13916 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13917 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920
13921 int
13922 main ()
13923 {
13924
13925 ;
13926 return 0;
13927 }
13928 _ACEOF
13929 if ac_fn_cxx_try_link "$LINENO"; then :
13930 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13931 shlibpath_overrides_runpath=yes
13932 fi
13933 fi
13934 rm -f core conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LDFLAGS=$save_LDFLAGS
13937 libdir=$save_libdir
13938
13939 # This implies no fast_install, which is unacceptable.
13940 # Some rework will be needed to allow for fast_install
13941 # before this can be enabled.
13942 hardcode_into_libs=yes
13943
13944 # Append ld.so.conf contents to the search path
13945 if test -f /etc/ld.so.conf; then
13946 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' ' '`
13947 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13948 fi
13949
13950 # We used to test for /lib/ld.so.1 and disable shared libraries on
13951 # powerpc, because MkLinux only supported shared libraries with the
13952 # GNU dynamic linker. Since this was broken with cross compilers,
13953 # most powerpc-linux boxes support dynamic linking these days and
13954 # people can always --disable-shared, the test was removed, and we
13955 # assume the GNU/Linux dynamic linker is in use.
13956 dynamic_linker='GNU/Linux ld.so'
13957 ;;
13958
13959 netbsdelf*-gnu)
13960 version_type=linux
13961 need_lib_prefix=no
13962 need_version=no
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 shlibpath_var=LD_LIBRARY_PATH
13966 shlibpath_overrides_runpath=no
13967 hardcode_into_libs=yes
13968 dynamic_linker='NetBSD ld.elf_so'
13969 ;;
13970
13971 netbsd*)
13972 version_type=sunos
13973 need_lib_prefix=no
13974 need_version=no
13975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13978 dynamic_linker='NetBSD (a.out) ld.so'
13979 else
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 dynamic_linker='NetBSD ld.elf_so'
13983 fi
13984 shlibpath_var=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath=yes
13986 hardcode_into_libs=yes
13987 ;;
13988
13989 newsos6)
13990 version_type=linux
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 ;;
13995
13996 *nto* | *qnx*)
13997 version_type=qnx
13998 need_lib_prefix=no
13999 need_version=no
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 shlibpath_overrides_runpath=no
14004 hardcode_into_libs=yes
14005 dynamic_linker='ldqnx.so'
14006 ;;
14007
14008 openbsd*)
14009 version_type=sunos
14010 sys_lib_dlsearch_path_spec="/usr/lib"
14011 need_lib_prefix=no
14012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14013 case $host_os in
14014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14015 *) need_version=no ;;
14016 esac
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14021 case $host_os in
14022 openbsd2.[89] | openbsd2.[89].*)
14023 shlibpath_overrides_runpath=no
14024 ;;
14025 *)
14026 shlibpath_overrides_runpath=yes
14027 ;;
14028 esac
14029 else
14030 shlibpath_overrides_runpath=yes
14031 fi
14032 ;;
14033
14034 os2*)
14035 libname_spec='$name'
14036 shrext_cmds=".dll"
14037 need_lib_prefix=no
14038 library_names_spec='$libname${shared_ext} $libname.a'
14039 dynamic_linker='OS/2 ld.exe'
14040 shlibpath_var=LIBPATH
14041 ;;
14042
14043 osf3* | osf4* | osf5*)
14044 version_type=osf
14045 need_lib_prefix=no
14046 need_version=no
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14052 ;;
14053
14054 rdos*)
14055 dynamic_linker=no
14056 ;;
14057
14058 solaris*)
14059 version_type=linux
14060 need_lib_prefix=no
14061 need_version=no
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14067 # ldd complains unless libraries are executable
14068 postinstall_cmds='chmod +x $lib'
14069 ;;
14070
14071 sunos4*)
14072 version_type=sunos
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14077 if test "$with_gnu_ld" = yes; then
14078 need_lib_prefix=no
14079 fi
14080 need_version=yes
14081 ;;
14082
14083 sysv4 | sysv4.3*)
14084 version_type=linux
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 shlibpath_var=LD_LIBRARY_PATH
14088 case $host_vendor in
14089 sni)
14090 shlibpath_overrides_runpath=no
14091 need_lib_prefix=no
14092 runpath_var=LD_RUN_PATH
14093 ;;
14094 siemens)
14095 need_lib_prefix=no
14096 ;;
14097 motorola)
14098 need_lib_prefix=no
14099 need_version=no
14100 shlibpath_overrides_runpath=no
14101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14102 ;;
14103 esac
14104 ;;
14105
14106 sysv4*MP*)
14107 if test -d /usr/nec ;then
14108 version_type=linux
14109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14110 soname_spec='$libname${shared_ext}.$major'
14111 shlibpath_var=LD_LIBRARY_PATH
14112 fi
14113 ;;
14114
14115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14116 version_type=freebsd-elf
14117 need_lib_prefix=no
14118 need_version=no
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath=yes
14123 hardcode_into_libs=yes
14124 if test "$with_gnu_ld" = yes; then
14125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14126 else
14127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14128 case $host_os in
14129 sco3.2v5*)
14130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14131 ;;
14132 esac
14133 fi
14134 sys_lib_dlsearch_path_spec='/usr/lib'
14135 ;;
14136
14137 tpf*)
14138 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14139 version_type=linux
14140 need_lib_prefix=no
14141 need_version=no
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=no
14145 hardcode_into_libs=yes
14146 ;;
14147
14148 uts4*)
14149 version_type=linux
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 soname_spec='${libname}${release}${shared_ext}$major'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 ;;
14154
14155 *)
14156 dynamic_linker=no
14157 ;;
14158 esac
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14160 $as_echo "$dynamic_linker" >&6; }
14161 test "$dynamic_linker" = no && can_build_shared=no
14162
14163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14164 if test "$GCC" = yes; then
14165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14166 fi
14167
14168 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14169 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14170 fi
14171 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14172 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14173 fi
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14211 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14212 hardcode_action_CXX=
14213 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14214 test -n "$runpath_var_CXX" ||
14215 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14216
14217 # We can hardcode non-existent directories.
14218 if test "$hardcode_direct_CXX" != no &&
14219 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14220 # have to relink, otherwise we might link with an installed library
14221 # when we should be linking with a yet-to-be-installed one
14222 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14223 test "$hardcode_minus_L_CXX" != no; then
14224 # Linking always hardcodes the temporary library directory.
14225 hardcode_action_CXX=relink
14226 else
14227 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14228 hardcode_action_CXX=immediate
14229 fi
14230 else
14231 # We cannot hardcode anything, or else we can only hardcode existing
14232 # directories.
14233 hardcode_action_CXX=unsupported
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14236 $as_echo "$hardcode_action_CXX" >&6; }
14237
14238 if test "$hardcode_action_CXX" = relink ||
14239 test "$inherit_rpath_CXX" = yes; then
14240 # Fast installation is not supported
14241 enable_fast_install=no
14242 elif test "$shlibpath_overrides_runpath" = yes ||
14243 test "$enable_shared" = no; then
14244 # Fast installation is not necessary
14245 enable_fast_install=needless
14246 fi
14247
14248
14249
14250
14251
14252
14253
14254 fi # test -n "$compiler"
14255
14256 CC=$lt_save_CC
14257 LDCXX=$LD
14258 LD=$lt_save_LD
14259 GCC=$lt_save_GCC
14260 with_gnu_ld=$lt_save_with_gnu_ld
14261 lt_cv_path_LDCXX=$lt_cv_path_LD
14262 lt_cv_path_LD=$lt_save_path_LD
14263 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14264 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14265 fi # test "$_lt_caught_CXX_error" != yes
14266
14267 ac_ext=c
14268 ac_cpp='$CPP $CPPFLAGS'
14269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14272
14273
14274 # Find a good install program. We prefer a C program (faster),
14275 # so one script is as good as another. But avoid the broken or
14276 # incompatible versions:
14277 # SysV /etc/install, /usr/sbin/install
14278 # SunOS /usr/etc/install
14279 # IRIX /sbin/install
14280 # AIX /bin/install
14281 # AmigaOS /C/install, which installs bootblocks on floppy discs
14282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14285 # OS/2's system install, which has a completely different semantic
14286 # ./install, which can be erroneously created by make from ./install.sh.
14287 # Reject install programs that cannot install multiple files.
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14289 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14290 if test -z "$INSTALL"; then
14291 if test "${ac_cv_path_install+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14296 do
14297 IFS=$as_save_IFS
14298 test -z "$as_dir" && as_dir=.
14299 # Account for people who put trailing slashes in PATH elements.
14300 case $as_dir/ in #((
14301 ./ | .// | /[cC]/* | \
14302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14303 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14304 /usr/ucb/* ) ;;
14305 *)
14306 # OSF1 and SCO ODT 3.0 have their own names for install.
14307 # Don't use installbsd from OSF since it installs stuff as root
14308 # by default.
14309 for ac_prog in ginstall scoinst install; do
14310 for ac_exec_ext in '' $ac_executable_extensions; do
14311 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14312 if test $ac_prog = install &&
14313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14314 # AIX install. It has an incompatible calling convention.
14315 :
14316 elif test $ac_prog = install &&
14317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14318 # program-specific install script used by HP pwplus--don't use.
14319 :
14320 else
14321 rm -rf conftest.one conftest.two conftest.dir
14322 echo one > conftest.one
14323 echo two > conftest.two
14324 mkdir conftest.dir
14325 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14326 test -s conftest.one && test -s conftest.two &&
14327 test -s conftest.dir/conftest.one &&
14328 test -s conftest.dir/conftest.two
14329 then
14330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14331 break 3
14332 fi
14333 fi
14334 fi
14335 done
14336 done
14337 ;;
14338 esac
14339
14340 done
14341 IFS=$as_save_IFS
14342
14343 rm -rf conftest.one conftest.two conftest.dir
14344
14345 fi
14346 if test "${ac_cv_path_install+set}" = set; then
14347 INSTALL=$ac_cv_path_install
14348 else
14349 # As a last resort, use the slow shell script. Don't cache a
14350 # value for INSTALL within a source directory, because that will
14351 # break other packages using the cache if that directory is
14352 # removed, or if the value is a relative name.
14353 INSTALL=$ac_install_sh
14354 fi
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14357 $as_echo "$INSTALL" >&6; }
14358
14359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14360 # It thinks the first close brace ends the variable substitution.
14361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14362
14363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14364
14365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14366
14367
14368 if test "X$prefix" = "XNONE"; then
14369 acl_final_prefix="$ac_default_prefix"
14370 else
14371 acl_final_prefix="$prefix"
14372 fi
14373 if test "X$exec_prefix" = "XNONE"; then
14374 acl_final_exec_prefix='${prefix}'
14375 else
14376 acl_final_exec_prefix="$exec_prefix"
14377 fi
14378 acl_save_prefix="$prefix"
14379 prefix="$acl_final_prefix"
14380 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14381 prefix="$acl_save_prefix"
14382
14383
14384 # Check whether --with-gnu-ld was given.
14385 if test "${with_gnu_ld+set}" = set; then :
14386 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14387 else
14388 with_gnu_ld=no
14389 fi
14390
14391 # Prepare PATH_SEPARATOR.
14392 # The user is always right.
14393 if test "${PATH_SEPARATOR+set}" != set; then
14394 echo "#! /bin/sh" >conf$$.sh
14395 echo "exit 0" >>conf$$.sh
14396 chmod +x conf$$.sh
14397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14398 PATH_SEPARATOR=';'
14399 else
14400 PATH_SEPARATOR=:
14401 fi
14402 rm -f conf$$.sh
14403 fi
14404 ac_prog=ld
14405 if test "$GCC" = yes; then
14406 # Check if gcc -print-prog-name=ld gives a path.
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14408 $as_echo_n "checking for ld used by GCC... " >&6; }
14409 case $host in
14410 *-*-mingw*)
14411 # gcc leaves a trailing carriage return which upsets mingw
14412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14413 *)
14414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14415 esac
14416 case $ac_prog in
14417 # Accept absolute paths.
14418 [\\/]* | [A-Za-z]:[\\/]*)
14419 re_direlt='/[^/][^/]*/\.\./'
14420 # Canonicalize the path of ld
14421 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14423 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14424 done
14425 test -z "$LD" && LD="$ac_prog"
14426 ;;
14427 "")
14428 # If it fails, then pretend we aren't using GCC.
14429 ac_prog=ld
14430 ;;
14431 *)
14432 # If it is relative, then search for the first ld in PATH.
14433 with_gnu_ld=unknown
14434 ;;
14435 esac
14436 elif test "$with_gnu_ld" = yes; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14438 $as_echo_n "checking for GNU ld... " >&6; }
14439 else
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14441 $as_echo_n "checking for non-GNU ld... " >&6; }
14442 fi
14443 if test "${acl_cv_path_LD+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 if test -z "$LD"; then
14447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14448 for ac_dir in $PATH; do
14449 test -z "$ac_dir" && ac_dir=.
14450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14451 acl_cv_path_LD="$ac_dir/$ac_prog"
14452 # Check to see if the program is GNU ld. I'd rather use --version,
14453 # but apparently some GNU ld's only accept -v.
14454 # Break only if it was the GNU/non-GNU ld that we prefer.
14455 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14456 *GNU* | *'with BFD'*)
14457 test "$with_gnu_ld" != no && break ;;
14458 *)
14459 test "$with_gnu_ld" != yes && break ;;
14460 esac
14461 fi
14462 done
14463 IFS="$ac_save_ifs"
14464 else
14465 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14466 fi
14467 fi
14468
14469 LD="$acl_cv_path_LD"
14470 if test -n "$LD"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14472 $as_echo "$LD" >&6; }
14473 else
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14475 $as_echo "no" >&6; }
14476 fi
14477 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14479 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14480 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14484 case `$LD -v 2>&1 </dev/null` in
14485 *GNU* | *'with BFD'*)
14486 acl_cv_prog_gnu_ld=yes ;;
14487 *)
14488 acl_cv_prog_gnu_ld=no ;;
14489 esac
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14492 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14493 with_gnu_ld=$acl_cv_prog_gnu_ld
14494
14495
14496
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14499 $as_echo_n "checking for shared library run path origin... " >&6; }
14500 if test "${acl_cv_rpath+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503
14504 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14505 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14506 . ./conftest.sh
14507 rm -f ./conftest.sh
14508 acl_cv_rpath=done
14509
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14512 $as_echo "$acl_cv_rpath" >&6; }
14513 wl="$acl_cv_wl"
14514 acl_libext="$acl_cv_libext"
14515 acl_shlibext="$acl_cv_shlibext"
14516 acl_libname_spec="$acl_cv_libname_spec"
14517 acl_library_names_spec="$acl_cv_library_names_spec"
14518 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14519 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14520 acl_hardcode_direct="$acl_cv_hardcode_direct"
14521 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14522 # Check whether --enable-rpath was given.
14523 if test "${enable_rpath+set}" = set; then :
14524 enableval=$enable_rpath; :
14525 else
14526 enable_rpath=yes
14527 fi
14528
14529
14530
14531 acl_libdirstem=lib
14532 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14533 if test -n "$searchpath"; then
14534 acl_save_IFS="${IFS= }"; IFS=":"
14535 for searchdir in $searchpath; do
14536 if test -d "$searchdir"; then
14537 case "$searchdir" in
14538 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14539 *) searchdir=`cd "$searchdir" && pwd`
14540 case "$searchdir" in
14541 */lib64 ) acl_libdirstem=lib64 ;;
14542 esac ;;
14543 esac
14544 fi
14545 done
14546 IFS="$acl_save_IFS"
14547 fi
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557 use_additional=yes
14558
14559 acl_save_prefix="$prefix"
14560 prefix="$acl_final_prefix"
14561 acl_save_exec_prefix="$exec_prefix"
14562 exec_prefix="$acl_final_exec_prefix"
14563
14564 eval additional_includedir=\"$includedir\"
14565 eval additional_libdir=\"$libdir\"
14566
14567 exec_prefix="$acl_save_exec_prefix"
14568 prefix="$acl_save_prefix"
14569
14570
14571 # Check whether --with-libiconv-prefix was given.
14572 if test "${with_libiconv_prefix+set}" = set; then :
14573 withval=$with_libiconv_prefix;
14574 if test "X$withval" = "Xno"; then
14575 use_additional=no
14576 else
14577 if test "X$withval" = "X"; then
14578
14579 acl_save_prefix="$prefix"
14580 prefix="$acl_final_prefix"
14581 acl_save_exec_prefix="$exec_prefix"
14582 exec_prefix="$acl_final_exec_prefix"
14583
14584 eval additional_includedir=\"$includedir\"
14585 eval additional_libdir=\"$libdir\"
14586
14587 exec_prefix="$acl_save_exec_prefix"
14588 prefix="$acl_save_prefix"
14589
14590 else
14591 additional_includedir="$withval/include"
14592 additional_libdir="$withval/$acl_libdirstem"
14593 fi
14594 fi
14595
14596 fi
14597
14598 LIBICONV=
14599 LTLIBICONV=
14600 INCICONV=
14601 LIBICONV_PREFIX=
14602 rpathdirs=
14603 ltrpathdirs=
14604 names_already_handled=
14605 names_next_round='iconv '
14606 while test -n "$names_next_round"; do
14607 names_this_round="$names_next_round"
14608 names_next_round=
14609 for name in $names_this_round; do
14610 already_handled=
14611 for n in $names_already_handled; do
14612 if test "$n" = "$name"; then
14613 already_handled=yes
14614 break
14615 fi
14616 done
14617 if test -z "$already_handled"; then
14618 names_already_handled="$names_already_handled $name"
14619 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14620 eval value=\"\$HAVE_LIB$uppername\"
14621 if test -n "$value"; then
14622 if test "$value" = yes; then
14623 eval value=\"\$LIB$uppername\"
14624 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14625 eval value=\"\$LTLIB$uppername\"
14626 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14627 else
14628 :
14629 fi
14630 else
14631 found_dir=
14632 found_la=
14633 found_so=
14634 found_a=
14635 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14636 if test -n "$acl_shlibext"; then
14637 shrext=".$acl_shlibext" # typically: shrext=.so
14638 else
14639 shrext=
14640 fi
14641 if test $use_additional = yes; then
14642 dir="$additional_libdir"
14643 if test -n "$acl_shlibext"; then
14644 if test -f "$dir/$libname$shrext"; then
14645 found_dir="$dir"
14646 found_so="$dir/$libname$shrext"
14647 else
14648 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14649 ver=`(cd "$dir" && \
14650 for f in "$libname$shrext".*; do echo "$f"; done \
14651 | sed -e "s,^$libname$shrext\\\\.,," \
14652 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14653 | sed 1q ) 2>/dev/null`
14654 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14655 found_dir="$dir"
14656 found_so="$dir/$libname$shrext.$ver"
14657 fi
14658 else
14659 eval library_names=\"$acl_library_names_spec\"
14660 for f in $library_names; do
14661 if test -f "$dir/$f"; then
14662 found_dir="$dir"
14663 found_so="$dir/$f"
14664 break
14665 fi
14666 done
14667 fi
14668 fi
14669 fi
14670 if test "X$found_dir" = "X"; then
14671 if test -f "$dir/$libname.$acl_libext"; then
14672 found_dir="$dir"
14673 found_a="$dir/$libname.$acl_libext"
14674 fi
14675 fi
14676 if test "X$found_dir" != "X"; then
14677 if test -f "$dir/$libname.la"; then
14678 found_la="$dir/$libname.la"
14679 fi
14680 fi
14681 fi
14682 if test "X$found_dir" = "X"; then
14683 for x in $LDFLAGS $LTLIBICONV; do
14684
14685 acl_save_prefix="$prefix"
14686 prefix="$acl_final_prefix"
14687 acl_save_exec_prefix="$exec_prefix"
14688 exec_prefix="$acl_final_exec_prefix"
14689 eval x=\"$x\"
14690 exec_prefix="$acl_save_exec_prefix"
14691 prefix="$acl_save_prefix"
14692
14693 case "$x" in
14694 -L*)
14695 dir=`echo "X$x" | sed -e 's/^X-L//'`
14696 if test -n "$acl_shlibext"; then
14697 if test -f "$dir/$libname$shrext"; then
14698 found_dir="$dir"
14699 found_so="$dir/$libname$shrext"
14700 else
14701 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14702 ver=`(cd "$dir" && \
14703 for f in "$libname$shrext".*; do echo "$f"; done \
14704 | sed -e "s,^$libname$shrext\\\\.,," \
14705 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14706 | sed 1q ) 2>/dev/null`
14707 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14708 found_dir="$dir"
14709 found_so="$dir/$libname$shrext.$ver"
14710 fi
14711 else
14712 eval library_names=\"$acl_library_names_spec\"
14713 for f in $library_names; do
14714 if test -f "$dir/$f"; then
14715 found_dir="$dir"
14716 found_so="$dir/$f"
14717 break
14718 fi
14719 done
14720 fi
14721 fi
14722 fi
14723 if test "X$found_dir" = "X"; then
14724 if test -f "$dir/$libname.$acl_libext"; then
14725 found_dir="$dir"
14726 found_a="$dir/$libname.$acl_libext"
14727 fi
14728 fi
14729 if test "X$found_dir" != "X"; then
14730 if test -f "$dir/$libname.la"; then
14731 found_la="$dir/$libname.la"
14732 fi
14733 fi
14734 ;;
14735 esac
14736 if test "X$found_dir" != "X"; then
14737 break
14738 fi
14739 done
14740 fi
14741 if test "X$found_dir" != "X"; then
14742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14743 if test "X$found_so" != "X"; then
14744 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14746 else
14747 haveit=
14748 for x in $ltrpathdirs; do
14749 if test "X$x" = "X$found_dir"; then
14750 haveit=yes
14751 break
14752 fi
14753 done
14754 if test -z "$haveit"; then
14755 ltrpathdirs="$ltrpathdirs $found_dir"
14756 fi
14757 if test "$acl_hardcode_direct" = yes; then
14758 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14759 else
14760 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14762 haveit=
14763 for x in $rpathdirs; do
14764 if test "X$x" = "X$found_dir"; then
14765 haveit=yes
14766 break
14767 fi
14768 done
14769 if test -z "$haveit"; then
14770 rpathdirs="$rpathdirs $found_dir"
14771 fi
14772 else
14773 haveit=
14774 for x in $LDFLAGS $LIBICONV; do
14775
14776 acl_save_prefix="$prefix"
14777 prefix="$acl_final_prefix"
14778 acl_save_exec_prefix="$exec_prefix"
14779 exec_prefix="$acl_final_exec_prefix"
14780 eval x=\"$x\"
14781 exec_prefix="$acl_save_exec_prefix"
14782 prefix="$acl_save_prefix"
14783
14784 if test "X$x" = "X-L$found_dir"; then
14785 haveit=yes
14786 break
14787 fi
14788 done
14789 if test -z "$haveit"; then
14790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14791 fi
14792 if test "$acl_hardcode_minus_L" != no; then
14793 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14794 else
14795 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14796 fi
14797 fi
14798 fi
14799 fi
14800 else
14801 if test "X$found_a" != "X"; then
14802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14803 else
14804 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14805 fi
14806 fi
14807 additional_includedir=
14808 case "$found_dir" in
14809 */$acl_libdirstem | */$acl_libdirstem/)
14810 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14811 LIBICONV_PREFIX="$basedir"
14812 additional_includedir="$basedir/include"
14813 ;;
14814 esac
14815 if test "X$additional_includedir" != "X"; then
14816 if test "X$additional_includedir" != "X/usr/include"; then
14817 haveit=
14818 if test "X$additional_includedir" = "X/usr/local/include"; then
14819 if test -n "$GCC"; then
14820 case $host_os in
14821 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14822 esac
14823 fi
14824 fi
14825 if test -z "$haveit"; then
14826 for x in $CPPFLAGS $INCICONV; do
14827
14828 acl_save_prefix="$prefix"
14829 prefix="$acl_final_prefix"
14830 acl_save_exec_prefix="$exec_prefix"
14831 exec_prefix="$acl_final_exec_prefix"
14832 eval x=\"$x\"
14833 exec_prefix="$acl_save_exec_prefix"
14834 prefix="$acl_save_prefix"
14835
14836 if test "X$x" = "X-I$additional_includedir"; then
14837 haveit=yes
14838 break
14839 fi
14840 done
14841 if test -z "$haveit"; then
14842 if test -d "$additional_includedir"; then
14843 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14844 fi
14845 fi
14846 fi
14847 fi
14848 fi
14849 if test -n "$found_la"; then
14850 save_libdir="$libdir"
14851 case "$found_la" in
14852 */* | *\\*) . "$found_la" ;;
14853 *) . "./$found_la" ;;
14854 esac
14855 libdir="$save_libdir"
14856 for dep in $dependency_libs; do
14857 case "$dep" in
14858 -L*)
14859 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14860 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14861 haveit=
14862 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14863 if test -n "$GCC"; then
14864 case $host_os in
14865 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14866 esac
14867 fi
14868 fi
14869 if test -z "$haveit"; then
14870 haveit=
14871 for x in $LDFLAGS $LIBICONV; do
14872
14873 acl_save_prefix="$prefix"
14874 prefix="$acl_final_prefix"
14875 acl_save_exec_prefix="$exec_prefix"
14876 exec_prefix="$acl_final_exec_prefix"
14877 eval x=\"$x\"
14878 exec_prefix="$acl_save_exec_prefix"
14879 prefix="$acl_save_prefix"
14880
14881 if test "X$x" = "X-L$additional_libdir"; then
14882 haveit=yes
14883 break
14884 fi
14885 done
14886 if test -z "$haveit"; then
14887 if test -d "$additional_libdir"; then
14888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14889 fi
14890 fi
14891 haveit=
14892 for x in $LDFLAGS $LTLIBICONV; do
14893
14894 acl_save_prefix="$prefix"
14895 prefix="$acl_final_prefix"
14896 acl_save_exec_prefix="$exec_prefix"
14897 exec_prefix="$acl_final_exec_prefix"
14898 eval x=\"$x\"
14899 exec_prefix="$acl_save_exec_prefix"
14900 prefix="$acl_save_prefix"
14901
14902 if test "X$x" = "X-L$additional_libdir"; then
14903 haveit=yes
14904 break
14905 fi
14906 done
14907 if test -z "$haveit"; then
14908 if test -d "$additional_libdir"; then
14909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14910 fi
14911 fi
14912 fi
14913 fi
14914 ;;
14915 -R*)
14916 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14917 if test "$enable_rpath" != no; then
14918 haveit=
14919 for x in $rpathdirs; do
14920 if test "X$x" = "X$dir"; then
14921 haveit=yes
14922 break
14923 fi
14924 done
14925 if test -z "$haveit"; then
14926 rpathdirs="$rpathdirs $dir"
14927 fi
14928 haveit=
14929 for x in $ltrpathdirs; do
14930 if test "X$x" = "X$dir"; then
14931 haveit=yes
14932 break
14933 fi
14934 done
14935 if test -z "$haveit"; then
14936 ltrpathdirs="$ltrpathdirs $dir"
14937 fi
14938 fi
14939 ;;
14940 -l*)
14941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14942 ;;
14943 *.la)
14944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14945 ;;
14946 *)
14947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14949 ;;
14950 esac
14951 done
14952 fi
14953 else
14954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14956 fi
14957 fi
14958 fi
14959 done
14960 done
14961 if test "X$rpathdirs" != "X"; then
14962 if test -n "$acl_hardcode_libdir_separator"; then
14963 alldirs=
14964 for found_dir in $rpathdirs; do
14965 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14966 done
14967 acl_save_libdir="$libdir"
14968 libdir="$alldirs"
14969 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14970 libdir="$acl_save_libdir"
14971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14972 else
14973 for found_dir in $rpathdirs; do
14974 acl_save_libdir="$libdir"
14975 libdir="$found_dir"
14976 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14977 libdir="$acl_save_libdir"
14978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14979 done
14980 fi
14981 fi
14982 if test "X$ltrpathdirs" != "X"; then
14983 for found_dir in $ltrpathdirs; do
14984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14985 done
14986 fi
14987
14988
14989
14990
14991
14992
14993
14994 am_save_CPPFLAGS="$CPPFLAGS"
14995
14996 for element in $INCICONV; do
14997 haveit=
14998 for x in $CPPFLAGS; do
14999
15000 acl_save_prefix="$prefix"
15001 prefix="$acl_final_prefix"
15002 acl_save_exec_prefix="$exec_prefix"
15003 exec_prefix="$acl_final_exec_prefix"
15004 eval x=\"$x\"
15005 exec_prefix="$acl_save_exec_prefix"
15006 prefix="$acl_save_prefix"
15007
15008 if test "X$x" = "X$element"; then
15009 haveit=yes
15010 break
15011 fi
15012 done
15013 if test -z "$haveit"; then
15014 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15015 fi
15016 done
15017
15018
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15020 $as_echo_n "checking for iconv... " >&6; }
15021 if test "${am_cv_func_iconv+set}" = set; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024
15025 am_cv_func_iconv="no, consider installing GNU libiconv"
15026 am_cv_lib_iconv=no
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #include <stdlib.h>
15030 #include <iconv.h>
15031 int
15032 main ()
15033 {
15034 iconv_t cd = iconv_open("","");
15035 iconv(cd,NULL,NULL,NULL,NULL);
15036 iconv_close(cd);
15037 ;
15038 return 0;
15039 }
15040 _ACEOF
15041 if ac_fn_c_try_link "$LINENO"; then :
15042 am_cv_func_iconv=yes
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 if test "$am_cv_func_iconv" != yes; then
15047 am_save_LIBS="$LIBS"
15048 LIBS="$LIBS $LIBICONV"
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051 #include <stdlib.h>
15052 #include <iconv.h>
15053 int
15054 main ()
15055 {
15056 iconv_t cd = iconv_open("","");
15057 iconv(cd,NULL,NULL,NULL,NULL);
15058 iconv_close(cd);
15059 ;
15060 return 0;
15061 }
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"; then :
15064 am_cv_lib_iconv=yes
15065 am_cv_func_iconv=yes
15066 fi
15067 rm -f core conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
15069 LIBS="$am_save_LIBS"
15070 fi
15071
15072 fi
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15074 $as_echo "$am_cv_func_iconv" >&6; }
15075 if test "$am_cv_func_iconv" = yes; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15077 $as_echo_n "checking for working iconv... " >&6; }
15078 if test "${am_cv_func_iconv_works+set}" = set; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081
15082 am_save_LIBS="$LIBS"
15083 if test $am_cv_lib_iconv = yes; then
15084 LIBS="$LIBS $LIBICONV"
15085 fi
15086 if test "$cross_compiling" = yes; then :
15087 case "$host_os" in
15088 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15089 *) am_cv_func_iconv_works="guessing yes" ;;
15090 esac
15091 else
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15094
15095 #include <iconv.h>
15096 #include <string.h>
15097 int main ()
15098 {
15099 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15100 returns. */
15101 {
15102 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15103 if (cd_utf8_to_88591 != (iconv_t)(-1))
15104 {
15105 static const char input[] = "\342\202\254"; /* EURO SIGN */
15106 char buf[10];
15107 const char *inptr = input;
15108 size_t inbytesleft = strlen (input);
15109 char *outptr = buf;
15110 size_t outbytesleft = sizeof (buf);
15111 size_t res = iconv (cd_utf8_to_88591,
15112 (char **) &inptr, &inbytesleft,
15113 &outptr, &outbytesleft);
15114 if (res == 0)
15115 return 1;
15116 }
15117 }
15118 #if 0 /* This bug could be worked around by the caller. */
15119 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15120 {
15121 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15122 if (cd_88591_to_utf8 != (iconv_t)(-1))
15123 {
15124 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15125 char buf[50];
15126 const char *inptr = input;
15127 size_t inbytesleft = strlen (input);
15128 char *outptr = buf;
15129 size_t outbytesleft = sizeof (buf);
15130 size_t res = iconv (cd_88591_to_utf8,
15131 (char **) &inptr, &inbytesleft,
15132 &outptr, &outbytesleft);
15133 if ((int)res > 0)
15134 return 1;
15135 }
15136 }
15137 #endif
15138 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15139 provided. */
15140 if (/* Try standardized names. */
15141 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15142 /* Try IRIX, OSF/1 names. */
15143 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15144 /* Try AIX names. */
15145 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15146 /* Try HP-UX names. */
15147 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15148 return 1;
15149 return 0;
15150 }
15151 _ACEOF
15152 if ac_fn_c_try_run "$LINENO"; then :
15153 am_cv_func_iconv_works=yes
15154 else
15155 am_cv_func_iconv_works=no
15156 fi
15157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15158 conftest.$ac_objext conftest.beam conftest.$ac_ext
15159 fi
15160
15161 LIBS="$am_save_LIBS"
15162
15163 fi
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15165 $as_echo "$am_cv_func_iconv_works" >&6; }
15166 case "$am_cv_func_iconv_works" in
15167 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15168 *) am_func_iconv=yes ;;
15169 esac
15170 else
15171 am_func_iconv=no am_cv_lib_iconv=no
15172 fi
15173 if test "$am_func_iconv" = yes; then
15174
15175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15176
15177 fi
15178 if test "$am_cv_lib_iconv" = yes; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15180 $as_echo_n "checking how to link with libiconv... " >&6; }
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15182 $as_echo "$LIBICONV" >&6; }
15183 else
15184 CPPFLAGS="$am_save_CPPFLAGS"
15185 LIBICONV=
15186 LTLIBICONV=
15187 fi
15188
15189
15190
15191 if test "$am_cv_func_iconv" = yes; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15193 $as_echo_n "checking for iconv declaration... " >&6; }
15194 if test "${am_cv_proto_iconv+set}" = set; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15197
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15200
15201 #include <stdlib.h>
15202 #include <iconv.h>
15203 extern
15204 #ifdef __cplusplus
15205 "C"
15206 #endif
15207 #if defined(__STDC__) || defined(__cplusplus)
15208 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15209 #else
15210 size_t iconv();
15211 #endif
15212
15213 int
15214 main ()
15215 {
15216
15217 ;
15218 return 0;
15219 }
15220 _ACEOF
15221 if ac_fn_c_try_compile "$LINENO"; then :
15222 am_cv_proto_iconv_arg1=""
15223 else
15224 am_cv_proto_iconv_arg1="const"
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227 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);"
15228 fi
15229
15230 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15232 }$am_cv_proto_iconv" >&5
15233 $as_echo "${ac_t:-
15234 }$am_cv_proto_iconv" >&6; }
15235
15236 cat >>confdefs.h <<_ACEOF
15237 #define ICONV_CONST $am_cv_proto_iconv_arg1
15238 _ACEOF
15239
15240 fi
15241
15242 case $am_cv_func_iconv in #(
15243 yes) :
15244 ;; #(
15245 *) :
15246 as_fn_error "You need iconv" "$LINENO" 5 ;;
15247 esac
15248
15249
15250 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15251 if test -n "$ac_tool_prefix"; then
15252 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15253 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15255 $as_echo_n "checking for $ac_word... " >&6; }
15256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 case $PKG_CONFIG in
15260 [\\/]* | ?:[\\/]*)
15261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15262 ;;
15263 *)
15264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265 for as_dir in $PATH
15266 do
15267 IFS=$as_save_IFS
15268 test -z "$as_dir" && as_dir=.
15269 for ac_exec_ext in '' $ac_executable_extensions; do
15270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15273 break 2
15274 fi
15275 done
15276 done
15277 IFS=$as_save_IFS
15278
15279 ;;
15280 esac
15281 fi
15282 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15283 if test -n "$PKG_CONFIG"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15285 $as_echo "$PKG_CONFIG" >&6; }
15286 else
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288 $as_echo "no" >&6; }
15289 fi
15290
15291
15292 fi
15293 if test -z "$ac_cv_path_PKG_CONFIG"; then
15294 ac_pt_PKG_CONFIG=$PKG_CONFIG
15295 # Extract the first word of "pkg-config", so it can be a program name with args.
15296 set dummy pkg-config; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15298 $as_echo_n "checking for $ac_word... " >&6; }
15299 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 case $ac_pt_PKG_CONFIG in
15303 [\\/]* | ?:[\\/]*)
15304 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15305 ;;
15306 *)
15307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15308 for as_dir in $PATH
15309 do
15310 IFS=$as_save_IFS
15311 test -z "$as_dir" && as_dir=.
15312 for ac_exec_ext in '' $ac_executable_extensions; do
15313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15314 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15316 break 2
15317 fi
15318 done
15319 done
15320 IFS=$as_save_IFS
15321
15322 ;;
15323 esac
15324 fi
15325 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15326 if test -n "$ac_pt_PKG_CONFIG"; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15328 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15329 else
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15331 $as_echo "no" >&6; }
15332 fi
15333
15334 if test "x$ac_pt_PKG_CONFIG" = x; then
15335 PKG_CONFIG=""
15336 else
15337 case $cross_compiling:$ac_tool_warned in
15338 yes:)
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15341 ac_tool_warned=yes ;;
15342 esac
15343 PKG_CONFIG=$ac_pt_PKG_CONFIG
15344 fi
15345 else
15346 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15347 fi
15348
15349 fi
15350 if test -n "$PKG_CONFIG"; then
15351 _pkg_min_version=0.9.0
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15353 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15354 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356 $as_echo "yes" >&6; }
15357 else
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15360 PKG_CONFIG=""
15361 fi
15362
15363 fi
15364
15365 pkg_failed=no
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15367 $as_echo_n "checking for WEBKIT... " >&6; }
15368
15369 if test -n "$PKG_CONFIG"; then
15370 if test -n "$WEBKIT_CFLAGS"; then
15371 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15372 else
15373 if test -n "$PKG_CONFIG" && \
15374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15375 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15376 ac_status=$?
15377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15378 test $ac_status = 0; }; then
15379 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15380 else
15381 pkg_failed=yes
15382 fi
15383 fi
15384 else
15385 pkg_failed=untried
15386 fi
15387 if test -n "$PKG_CONFIG"; then
15388 if test -n "$WEBKIT_LIBS"; then
15389 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15390 else
15391 if test -n "$PKG_CONFIG" && \
15392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15393 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15394 ac_status=$?
15395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15396 test $ac_status = 0; }; then
15397 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15398 else
15399 pkg_failed=yes
15400 fi
15401 fi
15402 else
15403 pkg_failed=untried
15404 fi
15405
15406
15407
15408 if test $pkg_failed = yes; then
15409
15410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15411 _pkg_short_errors_supported=yes
15412 else
15413 _pkg_short_errors_supported=no
15414 fi
15415 if test $_pkg_short_errors_supported = yes; then
15416 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15417 else
15418 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15419 fi
15420 # Put the nasty error message in config.log where it belongs
15421 echo "$WEBKIT_PKG_ERRORS" >&5
15422
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15424 $as_echo "no" >&6; }
15425
15426
15427 pkg_failed=no
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15429 $as_echo_n "checking for WEBKIT... " >&6; }
15430
15431 if test -n "$PKG_CONFIG"; then
15432 if test -n "$WEBKIT_CFLAGS"; then
15433 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15434 else
15435 if test -n "$PKG_CONFIG" && \
15436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15437 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15438 ac_status=$?
15439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15440 test $ac_status = 0; }; then
15441 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15442 else
15443 pkg_failed=yes
15444 fi
15445 fi
15446 else
15447 pkg_failed=untried
15448 fi
15449 if test -n "$PKG_CONFIG"; then
15450 if test -n "$WEBKIT_LIBS"; then
15451 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15452 else
15453 if test -n "$PKG_CONFIG" && \
15454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15455 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15456 ac_status=$?
15457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15458 test $ac_status = 0; }; then
15459 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15460 else
15461 pkg_failed=yes
15462 fi
15463 fi
15464 else
15465 pkg_failed=untried
15466 fi
15467
15468
15469
15470 if test $pkg_failed = yes; then
15471
15472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15473 _pkg_short_errors_supported=yes
15474 else
15475 _pkg_short_errors_supported=no
15476 fi
15477 if test $_pkg_short_errors_supported = yes; then
15478 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15479 else
15480 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15481 fi
15482 # Put the nasty error message in config.log where it belongs
15483 echo "$WEBKIT_PKG_ERRORS" >&5
15484
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15486 $as_echo "no" >&6; }
15487 WEBKIT=no
15488 elif test $pkg_failed = untried; then
15489 WEBKIT=no
15490 else
15491 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15492 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15494 $as_echo "yes" >&6; }
15495 WEBKIT=yes
15496 fi
15497
15498 elif test $pkg_failed = untried; then
15499
15500
15501 pkg_failed=no
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15503 $as_echo_n "checking for WEBKIT... " >&6; }
15504
15505 if test -n "$PKG_CONFIG"; then
15506 if test -n "$WEBKIT_CFLAGS"; then
15507 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15508 else
15509 if test -n "$PKG_CONFIG" && \
15510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15511 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15512 ac_status=$?
15513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15514 test $ac_status = 0; }; then
15515 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15516 else
15517 pkg_failed=yes
15518 fi
15519 fi
15520 else
15521 pkg_failed=untried
15522 fi
15523 if test -n "$PKG_CONFIG"; then
15524 if test -n "$WEBKIT_LIBS"; then
15525 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15526 else
15527 if test -n "$PKG_CONFIG" && \
15528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15529 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15530 ac_status=$?
15531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15532 test $ac_status = 0; }; then
15533 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15534 else
15535 pkg_failed=yes
15536 fi
15537 fi
15538 else
15539 pkg_failed=untried
15540 fi
15541
15542
15543
15544 if test $pkg_failed = yes; then
15545
15546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15547 _pkg_short_errors_supported=yes
15548 else
15549 _pkg_short_errors_supported=no
15550 fi
15551 if test $_pkg_short_errors_supported = yes; then
15552 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15553 else
15554 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15555 fi
15556 # Put the nasty error message in config.log where it belongs
15557 echo "$WEBKIT_PKG_ERRORS" >&5
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560 $as_echo "no" >&6; }
15561 WEBKIT=no
15562 elif test $pkg_failed = untried; then
15563 WEBKIT=no
15564 else
15565 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15566 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15568 $as_echo "yes" >&6; }
15569 WEBKIT=yes
15570 fi
15571
15572 else
15573 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15574 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576 $as_echo "yes" >&6; }
15577 WEBKIT=yes
15578 fi
15579 case $WEBKIT in #(
15580 yes) :
15581
15582
15583 pkg_failed=no
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
15585 $as_echo_n "checking for LIBFFI... " >&6; }
15586
15587 if test -n "$PKG_CONFIG"; then
15588 if test -n "$LIBFFI_CFLAGS"; then
15589 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
15590 else
15591 if test -n "$PKG_CONFIG" && \
15592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15593 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15594 ac_status=$?
15595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15596 test $ac_status = 0; }; then
15597 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
15598 else
15599 pkg_failed=yes
15600 fi
15601 fi
15602 else
15603 pkg_failed=untried
15604 fi
15605 if test -n "$PKG_CONFIG"; then
15606 if test -n "$LIBFFI_LIBS"; then
15607 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
15608 else
15609 if test -n "$PKG_CONFIG" && \
15610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15611 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15612 ac_status=$?
15613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15614 test $ac_status = 0; }; then
15615 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
15616 else
15617 pkg_failed=yes
15618 fi
15619 fi
15620 else
15621 pkg_failed=untried
15622 fi
15623
15624
15625
15626 if test $pkg_failed = yes; then
15627
15628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15629 _pkg_short_errors_supported=yes
15630 else
15631 _pkg_short_errors_supported=no
15632 fi
15633 if test $_pkg_short_errors_supported = yes; then
15634 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
15635 else
15636 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
15637 fi
15638 # Put the nasty error message in config.log where it belongs
15639 echo "$LIBFFI_PKG_ERRORS" >&5
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15643
15644 for ac_header in ffi.h ffi/ffi.h
15645 do :
15646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15648 eval as_val=\$$as_ac_Header
15649 if test "x$as_val" = x""yes; then :
15650 cat >>confdefs.h <<_ACEOF
15651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15652 _ACEOF
15653 break
15654 fi
15655
15656 done
15657
15658 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15659
15660 as_fn_error "You need libffi" "$LINENO" 5
15661
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15664 $as_echo_n "checking for library containing ffi_call... " >&6; }
15665 if test "${ac_cv_search_ffi_call+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 ac_func_search_save_LIBS=$LIBS
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char ffi_call ();
15679 int
15680 main ()
15681 {
15682 return ffi_call ();
15683 ;
15684 return 0;
15685 }
15686 _ACEOF
15687 for ac_lib in '' ffi; do
15688 if test -z "$ac_lib"; then
15689 ac_res="none required"
15690 else
15691 ac_res=-l$ac_lib
15692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15693 fi
15694 if ac_fn_c_try_link "$LINENO"; then :
15695 ac_cv_search_ffi_call=$ac_res
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext
15699 if test "${ac_cv_search_ffi_call+set}" = set; then :
15700 break
15701 fi
15702 done
15703 if test "${ac_cv_search_ffi_call+set}" = set; then :
15704
15705 else
15706 ac_cv_search_ffi_call=no
15707 fi
15708 rm conftest.$ac_ext
15709 LIBS=$ac_func_search_save_LIBS
15710 fi
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15712 $as_echo "$ac_cv_search_ffi_call" >&6; }
15713 ac_res=$ac_cv_search_ffi_call
15714 if test "$ac_res" != no; then :
15715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15716
15717 fi
15718
15719 case $ac_cv_search_ffi_call in #(
15720 no) :
15721
15722 as_fn_error "You need libffi" "$LINENO" 5
15723 ;; #(
15724 *) :
15725 ;;
15726 esac
15727
15728 elif test $pkg_failed = untried; then
15729
15730 for ac_header in ffi.h ffi/ffi.h
15731 do :
15732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15734 eval as_val=\$$as_ac_Header
15735 if test "x$as_val" = x""yes; then :
15736 cat >>confdefs.h <<_ACEOF
15737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15738 _ACEOF
15739 break
15740 fi
15741
15742 done
15743
15744 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15745
15746 as_fn_error "You need libffi" "$LINENO" 5
15747
15748 fi
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15750 $as_echo_n "checking for library containing ffi_call... " >&6; }
15751 if test "${ac_cv_search_ffi_call+set}" = set; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 ac_func_search_save_LIBS=$LIBS
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757
15758 /* Override any GCC internal prototype to avoid an error.
15759 Use char because int might match the return type of a GCC
15760 builtin and then its argument prototype would still apply. */
15761 #ifdef __cplusplus
15762 extern "C"
15763 #endif
15764 char ffi_call ();
15765 int
15766 main ()
15767 {
15768 return ffi_call ();
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 for ac_lib in '' ffi; do
15774 if test -z "$ac_lib"; then
15775 ac_res="none required"
15776 else
15777 ac_res=-l$ac_lib
15778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15779 fi
15780 if ac_fn_c_try_link "$LINENO"; then :
15781 ac_cv_search_ffi_call=$ac_res
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext
15785 if test "${ac_cv_search_ffi_call+set}" = set; then :
15786 break
15787 fi
15788 done
15789 if test "${ac_cv_search_ffi_call+set}" = set; then :
15790
15791 else
15792 ac_cv_search_ffi_call=no
15793 fi
15794 rm conftest.$ac_ext
15795 LIBS=$ac_func_search_save_LIBS
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15798 $as_echo "$ac_cv_search_ffi_call" >&6; }
15799 ac_res=$ac_cv_search_ffi_call
15800 if test "$ac_res" != no; then :
15801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15802
15803 fi
15804
15805 case $ac_cv_search_ffi_call in #(
15806 no) :
15807
15808 as_fn_error "You need libffi" "$LINENO" 5
15809 ;; #(
15810 *) :
15811 ;;
15812 esac
15813
15814 else
15815 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
15816 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15819 :
15820 fi
15821 ;; #(
15822 *) :
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
15824 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} ;;
15825 esac
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
15827 $as_echo_n "checking for GNU make... " >&6; }
15828 if test "${_cv_gnu_make_command+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 _cv_gnu_make_command='' ;
15832 for a in "$MAKE" make gmake gnumake ; do
15833 if test -z "$a" ; then continue ; fi ;
15834 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
15835 _cv_gnu_make_command=$a ;
15836 break;
15837 fi
15838 done ;
15839
15840 fi
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
15842 $as_echo "$_cv_gnu_make_command" >&6; } ;
15843 if test "x$_cv_gnu_make_command" != "x" ; then
15844 ifGNUmake='' ;
15845 else
15846 ifGNUmake='#' ;
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
15848 $as_echo "\"Not found\"" >&6; };
15849 fi
15850
15851
15852 if test "x$_cv_gnu_make_command" = x; then :
15853 as_fn_error "You need GNU make" "$LINENO" 5
15854 fi
15855 # XXX: gnustep
15856 ac_ext=mm
15857 ac_cpp='$OBJCXXCPP $CPPFLAGS'
15858 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15859 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15860 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15861 if test -n "$ac_tool_prefix"; then
15862 for ac_prog in g++ objc++ objcxx c++ CXX
15863 do
15864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 if test -n "$OBJCXX"; then
15872 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15873 else
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15876 do
15877 IFS=$as_save_IFS
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15881 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15883 break 2
15884 fi
15885 done
15886 done
15887 IFS=$as_save_IFS
15888
15889 fi
15890 fi
15891 OBJCXX=$ac_cv_prog_OBJCXX
15892 if test -n "$OBJCXX"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15894 $as_echo "$OBJCXX" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15898 fi
15899
15900
15901 test -n "$OBJCXX" && break
15902 done
15903 fi
15904 if test -z "$OBJCXX"; then
15905 ac_ct_OBJCXX=$OBJCXX
15906 for ac_prog in g++ objc++ objcxx c++ CXX
15907 do
15908 # Extract the first word of "$ac_prog", so it can be a program name with args.
15909 set dummy $ac_prog; ac_word=$2
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15911 $as_echo_n "checking for $ac_word... " >&6; }
15912 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
15913 $as_echo_n "(cached) " >&6
15914 else
15915 if test -n "$ac_ct_OBJCXX"; then
15916 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15917 else
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15920 do
15921 IFS=$as_save_IFS
15922 test -z "$as_dir" && as_dir=.
15923 for ac_exec_ext in '' $ac_executable_extensions; do
15924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15925 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15927 break 2
15928 fi
15929 done
15930 done
15931 IFS=$as_save_IFS
15932
15933 fi
15934 fi
15935 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15936 if test -n "$ac_ct_OBJCXX"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15938 $as_echo "$ac_ct_OBJCXX" >&6; }
15939 else
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942 fi
15943
15944
15945 test -n "$ac_ct_OBJCXX" && break
15946 done
15947
15948 if test "x$ac_ct_OBJCXX" = x; then
15949 OBJCXX="g++"
15950 else
15951 case $cross_compiling:$ac_tool_warned in
15952 yes:)
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15955 ac_tool_warned=yes ;;
15956 esac
15957 OBJCXX=$ac_ct_OBJCXX
15958 fi
15959 fi
15960
15961 # Provide some information about the compiler.
15962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15963 set X $ac_compile
15964 ac_compiler=$2
15965 for ac_option in --version -v -V -qversion; do
15966 { { ac_try="$ac_compiler $ac_option >&5"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970 esac
15971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15972 $as_echo "$ac_try_echo"; } >&5
15973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15974 ac_status=$?
15975 if test -s conftest.err; then
15976 sed '10a\
15977 ... rest of stderr output deleted ...
15978 10q' conftest.err >conftest.er1
15979 cat conftest.er1 >&5
15980 fi
15981 rm -f conftest.er1 conftest.err
15982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15983 test $ac_status = 0; }
15984 done
15985
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15987 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15988 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993
15994 int
15995 main ()
15996 {
15997 #ifndef __GNUC__
15998 choke me
15999 #endif
16000
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_objcxx_try_compile "$LINENO"; then :
16006 ac_compiler_gnu=yes
16007 else
16008 ac_compiler_gnu=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
16012
16013 fi
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
16015 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
16016 if test $ac_compiler_gnu = yes; then
16017 GOBJCXX=yes
16018 else
16019 GOBJCXX=
16020 fi
16021 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
16022 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
16024 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
16025 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
16029 ac_objcxx_werror_flag=yes
16030 ac_cv_prog_objcxx_g=no
16031 OBJCXXFLAGS="-g"
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034
16035 int
16036 main ()
16037 {
16038
16039 ;
16040 return 0;
16041 }
16042 _ACEOF
16043 if ac_fn_objcxx_try_compile "$LINENO"; then :
16044 ac_cv_prog_objcxx_g=yes
16045 else
16046 OBJCXXFLAGS=""
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h. */
16049
16050 int
16051 main ()
16052 {
16053
16054 ;
16055 return 0;
16056 }
16057 _ACEOF
16058 if ac_fn_objcxx_try_compile "$LINENO"; then :
16059
16060 else
16061 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
16062 OBJCXXFLAGS="-g"
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065
16066 int
16067 main ()
16068 {
16069
16070 ;
16071 return 0;
16072 }
16073 _ACEOF
16074 if ac_fn_objcxx_try_compile "$LINENO"; then :
16075 ac_cv_prog_objcxx_g=yes
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078 fi
16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
16083 fi
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
16085 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
16086 if test "$ac_test_OBJCXXFLAGS" = set; then
16087 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16088 elif test $ac_cv_prog_objcxx_g = yes; then
16089 if test "$GOBJCXX" = yes; then
16090 OBJCXXFLAGS="-g -O2"
16091 else
16092 OBJCXXFLAGS="-g"
16093 fi
16094 else
16095 if test "$GOBJCXX" = yes; then
16096 OBJCXXFLAGS="-O2"
16097 else
16098 OBJCXXFLAGS=
16099 fi
16100 fi
16101 ac_ext=c
16102 ac_cpp='$CPP $CPPFLAGS'
16103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16106
16107 ac_config_files="$ac_config_files GNUmakefile"
16108
16109 cat >confcache <<\_ACEOF
16110 # This file is a shell script that caches the results of configure
16111 # tests run on this system so they can be shared between configure
16112 # scripts and configure runs, see configure's option --config-cache.
16113 # It is not useful on other systems. If it contains results you don't
16114 # want to keep, you may remove or edit it.
16115 #
16116 # config.status only pays attention to the cache file if you give it
16117 # the --recheck option to rerun configure.
16118 #
16119 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16121 # following values.
16122
16123 _ACEOF
16124
16125 # The following way of writing the cache mishandles newlines in values,
16126 # but we know of no workaround that is simple, portable, and efficient.
16127 # So, we kill variables containing newlines.
16128 # Ultrix sh set writes to stderr and can't be redirected directly,
16129 # and sets the high bit in the cache file unless we assign to the vars.
16130 (
16131 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16132 eval ac_val=\$$ac_var
16133 case $ac_val in #(
16134 *${as_nl}*)
16135 case $ac_var in #(
16136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16137 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16138 esac
16139 case $ac_var in #(
16140 _ | IFS | as_nl) ;; #(
16141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16142 *) { eval $ac_var=; unset $ac_var;} ;;
16143 esac ;;
16144 esac
16145 done
16146
16147 (set) 2>&1 |
16148 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16149 *${as_nl}ac_space=\ *)
16150 # `set' does not quote correctly, so add quotes: double-quote
16151 # substitution turns \\\\ into \\, and sed turns \\ into \.
16152 sed -n \
16153 "s/'/'\\\\''/g;
16154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16155 ;; #(
16156 *)
16157 # `set' quotes correctly as required by POSIX, so do not add quotes.
16158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16159 ;;
16160 esac |
16161 sort
16162 ) |
16163 sed '
16164 /^ac_cv_env_/b end
16165 t clear
16166 :clear
16167 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16168 t end
16169 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16170 :end' >>confcache
16171 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16172 if test -w "$cache_file"; then
16173 test "x$cache_file" != "x/dev/null" &&
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16175 $as_echo "$as_me: updating cache $cache_file" >&6;}
16176 cat confcache >$cache_file
16177 else
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16179 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16180 fi
16181 fi
16182 rm -f confcache
16183
16184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16185 # Let make expand exec_prefix.
16186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16187
16188 # Transform confdefs.h into DEFS.
16189 # Protect against shell expansion while executing Makefile rules.
16190 # Protect against Makefile macro expansion.
16191 #
16192 # If the first sed substitution is executed (which looks for macros that
16193 # take arguments), then branch to the quote section. Otherwise,
16194 # look for a macro that doesn't take arguments.
16195 ac_script='
16196 :mline
16197 /\\$/{
16198 N
16199 s,\\\n,,
16200 b mline
16201 }
16202 t clear
16203 :clear
16204 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16205 t quote
16206 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16207 t quote
16208 b any
16209 :quote
16210 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16211 s/\[/\\&/g
16212 s/\]/\\&/g
16213 s/\$/$$/g
16214 H
16215 :any
16216 ${
16217 g
16218 s/^\n//
16219 s/\n/ /g
16220 p
16221 }
16222 '
16223 DEFS=`sed -n "$ac_script" confdefs.h`
16224
16225
16226 ac_libobjs=
16227 ac_ltlibobjs=
16228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16229 # 1. Remove the extension, and $U if already installed.
16230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16233 # will be set to the directory where LIBOBJS objects are built.
16234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16236 done
16237 LIBOBJS=$ac_libobjs
16238
16239 LTLIBOBJS=$ac_ltlibobjs
16240
16241
16242
16243 : ${CONFIG_STATUS=./config.status}
16244 ac_write_fail=0
16245 ac_clean_files_save=$ac_clean_files
16246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16248 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16249 as_write_fail=0
16250 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16251 #! $SHELL
16252 # Generated by $as_me.
16253 # Run this file to recreate the current configuration.
16254 # Compiler output produced by configure, useful for debugging
16255 # configure, is in config.log if it exists.
16256
16257 debug=false
16258 ac_cs_recheck=false
16259 ac_cs_silent=false
16260
16261 SHELL=\${CONFIG_SHELL-$SHELL}
16262 export SHELL
16263 _ASEOF
16264 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16265 ## -------------------- ##
16266 ## M4sh Initialization. ##
16267 ## -------------------- ##
16268
16269 # Be more Bourne compatible
16270 DUALCASE=1; export DUALCASE # for MKS sh
16271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16272 emulate sh
16273 NULLCMD=:
16274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16275 # is contrary to our usage. Disable this feature.
16276 alias -g '${1+"$@"}'='"$@"'
16277 setopt NO_GLOB_SUBST
16278 else
16279 case `(set -o) 2>/dev/null` in #(
16280 *posix*) :
16281 set -o posix ;; #(
16282 *) :
16283 ;;
16284 esac
16285 fi
16286
16287
16288 as_nl='
16289 '
16290 export as_nl
16291 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16292 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16293 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16295 # Prefer a ksh shell builtin over an external printf program on Solaris,
16296 # but without wasting forks for bash or zsh.
16297 if test -z "$BASH_VERSION$ZSH_VERSION" \
16298 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16299 as_echo='print -r --'
16300 as_echo_n='print -rn --'
16301 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16302 as_echo='printf %s\n'
16303 as_echo_n='printf %s'
16304 else
16305 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16306 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16307 as_echo_n='/usr/ucb/echo -n'
16308 else
16309 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16310 as_echo_n_body='eval
16311 arg=$1;
16312 case $arg in #(
16313 *"$as_nl"*)
16314 expr "X$arg" : "X\\(.*\\)$as_nl";
16315 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16316 esac;
16317 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16318 '
16319 export as_echo_n_body
16320 as_echo_n='sh -c $as_echo_n_body as_echo'
16321 fi
16322 export as_echo_body
16323 as_echo='sh -c $as_echo_body as_echo'
16324 fi
16325
16326 # The user is always right.
16327 if test "${PATH_SEPARATOR+set}" != set; then
16328 PATH_SEPARATOR=:
16329 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16330 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16331 PATH_SEPARATOR=';'
16332 }
16333 fi
16334
16335
16336 # IFS
16337 # We need space, tab and new line, in precisely that order. Quoting is
16338 # there to prevent editors from complaining about space-tab.
16339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16340 # splitting by setting IFS to empty value.)
16341 IFS=" "" $as_nl"
16342
16343 # Find who we are. Look in the path if we contain no directory separator.
16344 case $0 in #((
16345 *[\\/]* ) as_myself=$0 ;;
16346 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16347 for as_dir in $PATH
16348 do
16349 IFS=$as_save_IFS
16350 test -z "$as_dir" && as_dir=.
16351 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16352 done
16353 IFS=$as_save_IFS
16354
16355 ;;
16356 esac
16357 # We did not find ourselves, most probably we were run as `sh COMMAND'
16358 # in which case we are not to be found in the path.
16359 if test "x$as_myself" = x; then
16360 as_myself=$0
16361 fi
16362 if test ! -f "$as_myself"; then
16363 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16364 exit 1
16365 fi
16366
16367 # Unset variables that we do not need and which cause bugs (e.g. in
16368 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16369 # suppresses any "Segmentation fault" message there. '((' could
16370 # trigger a bug in pdksh 5.2.14.
16371 for as_var in BASH_ENV ENV MAIL MAILPATH
16372 do eval test x\${$as_var+set} = xset \
16373 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16374 done
16375 PS1='$ '
16376 PS2='> '
16377 PS4='+ '
16378
16379 # NLS nuisances.
16380 LC_ALL=C
16381 export LC_ALL
16382 LANGUAGE=C
16383 export LANGUAGE
16384
16385 # CDPATH.
16386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16387
16388
16389 # as_fn_error ERROR [LINENO LOG_FD]
16390 # ---------------------------------
16391 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16392 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16393 # script with status $?, using 1 if that was 0.
16394 as_fn_error ()
16395 {
16396 as_status=$?; test $as_status -eq 0 && as_status=1
16397 if test "$3"; then
16398 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16399 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16400 fi
16401 $as_echo "$as_me: error: $1" >&2
16402 as_fn_exit $as_status
16403 } # as_fn_error
16404
16405
16406 # as_fn_set_status STATUS
16407 # -----------------------
16408 # Set $? to STATUS, without forking.
16409 as_fn_set_status ()
16410 {
16411 return $1
16412 } # as_fn_set_status
16413
16414 # as_fn_exit STATUS
16415 # -----------------
16416 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16417 as_fn_exit ()
16418 {
16419 set +e
16420 as_fn_set_status $1
16421 exit $1
16422 } # as_fn_exit
16423
16424 # as_fn_unset VAR
16425 # ---------------
16426 # Portably unset VAR.
16427 as_fn_unset ()
16428 {
16429 { eval $1=; unset $1;}
16430 }
16431 as_unset=as_fn_unset
16432 # as_fn_append VAR VALUE
16433 # ----------------------
16434 # Append the text in VALUE to the end of the definition contained in VAR. Take
16435 # advantage of any shell optimizations that allow amortized linear growth over
16436 # repeated appends, instead of the typical quadratic growth present in naive
16437 # implementations.
16438 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16439 eval 'as_fn_append ()
16440 {
16441 eval $1+=\$2
16442 }'
16443 else
16444 as_fn_append ()
16445 {
16446 eval $1=\$$1\$2
16447 }
16448 fi # as_fn_append
16449
16450 # as_fn_arith ARG...
16451 # ------------------
16452 # Perform arithmetic evaluation on the ARGs, and store the result in the
16453 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16454 # must be portable across $(()) and expr.
16455 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16456 eval 'as_fn_arith ()
16457 {
16458 as_val=$(( $* ))
16459 }'
16460 else
16461 as_fn_arith ()
16462 {
16463 as_val=`expr "$@" || test $? -eq 1`
16464 }
16465 fi # as_fn_arith
16466
16467
16468 if expr a : '\(a\)' >/dev/null 2>&1 &&
16469 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16470 as_expr=expr
16471 else
16472 as_expr=false
16473 fi
16474
16475 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16476 as_basename=basename
16477 else
16478 as_basename=false
16479 fi
16480
16481 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16482 as_dirname=dirname
16483 else
16484 as_dirname=false
16485 fi
16486
16487 as_me=`$as_basename -- "$0" ||
16488 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16489 X"$0" : 'X\(//\)$' \| \
16490 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16491 $as_echo X/"$0" |
16492 sed '/^.*\/\([^/][^/]*\)\/*$/{
16493 s//\1/
16494 q
16495 }
16496 /^X\/\(\/\/\)$/{
16497 s//\1/
16498 q
16499 }
16500 /^X\/\(\/\).*/{
16501 s//\1/
16502 q
16503 }
16504 s/.*/./; q'`
16505
16506 # Avoid depending upon Character Ranges.
16507 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16508 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16509 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16510 as_cr_digits='0123456789'
16511 as_cr_alnum=$as_cr_Letters$as_cr_digits
16512
16513 ECHO_C= ECHO_N= ECHO_T=
16514 case `echo -n x` in #(((((
16515 -n*)
16516 case `echo 'xy\c'` in
16517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16518 xy) ECHO_C='\c';;
16519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16520 ECHO_T=' ';;
16521 esac;;
16522 *)
16523 ECHO_N='-n';;
16524 esac
16525
16526 rm -f conf$$ conf$$.exe conf$$.file
16527 if test -d conf$$.dir; then
16528 rm -f conf$$.dir/conf$$.file
16529 else
16530 rm -f conf$$.dir
16531 mkdir conf$$.dir 2>/dev/null
16532 fi
16533 if (echo >conf$$.file) 2>/dev/null; then
16534 if ln -s conf$$.file conf$$ 2>/dev/null; then
16535 as_ln_s='ln -s'
16536 # ... but there are two gotchas:
16537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16539 # In both cases, we have to default to `cp -p'.
16540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16541 as_ln_s='cp -p'
16542 elif ln conf$$.file conf$$ 2>/dev/null; then
16543 as_ln_s=ln
16544 else
16545 as_ln_s='cp -p'
16546 fi
16547 else
16548 as_ln_s='cp -p'
16549 fi
16550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16551 rmdir conf$$.dir 2>/dev/null
16552
16553
16554 # as_fn_mkdir_p
16555 # -------------
16556 # Create "$as_dir" as a directory, including parents if necessary.
16557 as_fn_mkdir_p ()
16558 {
16559
16560 case $as_dir in #(
16561 -*) as_dir=./$as_dir;;
16562 esac
16563 test -d "$as_dir" || eval $as_mkdir_p || {
16564 as_dirs=
16565 while :; do
16566 case $as_dir in #(
16567 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16568 *) as_qdir=$as_dir;;
16569 esac
16570 as_dirs="'$as_qdir' $as_dirs"
16571 as_dir=`$as_dirname -- "$as_dir" ||
16572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16573 X"$as_dir" : 'X\(//\)[^/]' \| \
16574 X"$as_dir" : 'X\(//\)$' \| \
16575 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16576 $as_echo X"$as_dir" |
16577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16578 s//\1/
16579 q
16580 }
16581 /^X\(\/\/\)[^/].*/{
16582 s//\1/
16583 q
16584 }
16585 /^X\(\/\/\)$/{
16586 s//\1/
16587 q
16588 }
16589 /^X\(\/\).*/{
16590 s//\1/
16591 q
16592 }
16593 s/.*/./; q'`
16594 test -d "$as_dir" && break
16595 done
16596 test -z "$as_dirs" || eval "mkdir $as_dirs"
16597 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16598
16599
16600 } # as_fn_mkdir_p
16601 if mkdir -p . 2>/dev/null; then
16602 as_mkdir_p='mkdir -p "$as_dir"'
16603 else
16604 test -d ./-p && rmdir ./-p
16605 as_mkdir_p=false
16606 fi
16607
16608 if test -x / >/dev/null 2>&1; then
16609 as_test_x='test -x'
16610 else
16611 if ls -dL / >/dev/null 2>&1; then
16612 as_ls_L_option=L
16613 else
16614 as_ls_L_option=
16615 fi
16616 as_test_x='
16617 eval sh -c '\''
16618 if test -d "$1"; then
16619 test -d "$1/.";
16620 else
16621 case $1 in #(
16622 -*)set "./$1";;
16623 esac;
16624 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16625 ???[sx]*):;;*)false;;esac;fi
16626 '\'' sh
16627 '
16628 fi
16629 as_executable_p=$as_test_x
16630
16631 # Sed expression to map a string onto a valid CPP name.
16632 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16633
16634 # Sed expression to map a string onto a valid variable name.
16635 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16636
16637
16638 exec 6>&1
16639 ## ----------------------------------- ##
16640 ## Main body of $CONFIG_STATUS script. ##
16641 ## ----------------------------------- ##
16642 _ASEOF
16643 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16644
16645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16646 # Save the log message, to keep $0 and so on meaningful, and to
16647 # report actual input values of CONFIG_FILES etc. instead of their
16648 # values after options handling.
16649 ac_log="
16650 This file was extended by Cycript $as_me 0.9, which was
16651 generated by GNU Autoconf 2.65. Invocation command line was
16652
16653 CONFIG_FILES = $CONFIG_FILES
16654 CONFIG_HEADERS = $CONFIG_HEADERS
16655 CONFIG_LINKS = $CONFIG_LINKS
16656 CONFIG_COMMANDS = $CONFIG_COMMANDS
16657 $ $0 $@
16658
16659 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16660 "
16661
16662 _ACEOF
16663
16664 case $ac_config_files in *"
16665 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16666 esac
16667
16668
16669
16670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16671 # Files that config.status was made for.
16672 config_files="$ac_config_files"
16673 config_commands="$ac_config_commands"
16674
16675 _ACEOF
16676
16677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16678 ac_cs_usage="\
16679 \`$as_me' instantiates files and other configuration actions
16680 from templates according to the current configuration. Unless the files
16681 and actions are specified as TAGs, all are instantiated by default.
16682
16683 Usage: $0 [OPTION]... [TAG]...
16684
16685 -h, --help print this help, then exit
16686 -V, --version print version number and configuration settings, then exit
16687 --config print configuration, then exit
16688 -q, --quiet, --silent
16689 do not print progress messages
16690 -d, --debug don't remove temporary files
16691 --recheck update $as_me by reconfiguring in the same conditions
16692 --file=FILE[:TEMPLATE]
16693 instantiate the configuration file FILE
16694
16695 Configuration files:
16696 $config_files
16697
16698 Configuration commands:
16699 $config_commands
16700
16701 Report bugs to <saurik@saurik.com>.
16702 Cycript home page: <http://www.cycript.org/>."
16703
16704 _ACEOF
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16707 ac_cs_version="\\
16708 Cycript config.status 0.9
16709 configured by $0, generated by GNU Autoconf 2.65,
16710 with options \\"\$ac_cs_config\\"
16711
16712 Copyright (C) 2009 Free Software Foundation, Inc.
16713 This config.status script is free software; the Free Software Foundation
16714 gives unlimited permission to copy, distribute and modify it."
16715
16716 ac_pwd='$ac_pwd'
16717 srcdir='$srcdir'
16718 INSTALL='$INSTALL'
16719 AWK='$AWK'
16720 test -n "\$AWK" || AWK=awk
16721 _ACEOF
16722
16723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724 # The default lists apply if the user does not specify any file.
16725 ac_need_defaults=:
16726 while test $# != 0
16727 do
16728 case $1 in
16729 --*=*)
16730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16731 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16732 ac_shift=:
16733 ;;
16734 *)
16735 ac_option=$1
16736 ac_optarg=$2
16737 ac_shift=shift
16738 ;;
16739 esac
16740
16741 case $ac_option in
16742 # Handling of the options.
16743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16744 ac_cs_recheck=: ;;
16745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16746 $as_echo "$ac_cs_version"; exit ;;
16747 --config | --confi | --conf | --con | --co | --c )
16748 $as_echo "$ac_cs_config"; exit ;;
16749 --debug | --debu | --deb | --de | --d | -d )
16750 debug=: ;;
16751 --file | --fil | --fi | --f )
16752 $ac_shift
16753 case $ac_optarg in
16754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16755 esac
16756 as_fn_append CONFIG_FILES " '$ac_optarg'"
16757 ac_need_defaults=false;;
16758 --he | --h | --help | --hel | -h )
16759 $as_echo "$ac_cs_usage"; exit ;;
16760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16762 ac_cs_silent=: ;;
16763
16764 # This is an error.
16765 -*) as_fn_error "unrecognized option: \`$1'
16766 Try \`$0 --help' for more information." ;;
16767
16768 *) as_fn_append ac_config_targets " $1"
16769 ac_need_defaults=false ;;
16770
16771 esac
16772 shift
16773 done
16774
16775 ac_configure_extra_args=
16776
16777 if $ac_cs_silent; then
16778 exec 6>/dev/null
16779 ac_configure_extra_args="$ac_configure_extra_args --silent"
16780 fi
16781
16782 _ACEOF
16783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16784 if \$ac_cs_recheck; then
16785 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16786 shift
16787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16788 CONFIG_SHELL='$SHELL'
16789 export CONFIG_SHELL
16790 exec "\$@"
16791 fi
16792
16793 _ACEOF
16794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16795 exec 5>>config.log
16796 {
16797 echo
16798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16799 ## Running $as_me. ##
16800 _ASBOX
16801 $as_echo "$ac_log"
16802 } >&5
16803
16804 _ACEOF
16805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16806 #
16807 # INIT-COMMANDS
16808 #
16809
16810
16811 # The HP-UX ksh and POSIX shell print the target directory to stdout
16812 # if CDPATH is set.
16813 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16814
16815 sed_quote_subst='$sed_quote_subst'
16816 double_quote_subst='$double_quote_subst'
16817 delay_variable_subst='$delay_variable_subst'
16818 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16819 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16820 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16821 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16822 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16823 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16824 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16825 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16826 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16827 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16828 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16829 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16830 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16831 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16832 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16833 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16834 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16835 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16836 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16837 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16838 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16839 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16840 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16841 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16842 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16843 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16844 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16845 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16846 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16847 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16848 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16849 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16850 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16851 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16852 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16853 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16854 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16855 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16856 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16857 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16858 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16859 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16860 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16861 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16862 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"`'
16863 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"`'
16864 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16865 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16866 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16867 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16868 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16869 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16870 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16871 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16872 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16873 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16874 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16875 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16876 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16877 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16878 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16879 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16880 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16881 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16882 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16883 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16884 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16885 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16886 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16887 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16888 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16889 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16890 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16891 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16892 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16893 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16894 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16895 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16896 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16897 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16898 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16899 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16900 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16901 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16902 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16903 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16904 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16905 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16906 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16907 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16908 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16909 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16910 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16911 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16912 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16913 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16914 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16915 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16916 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16917 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16918 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16919 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16920 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16921 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16922 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16923 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16924 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16925 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16926 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16927 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16928 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16929 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16930 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16931 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16932 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16933 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16934 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16935 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16936 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16937 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16938 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16939 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16940 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16941 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16942 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16943 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16944 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16945 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16946 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16947 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16948 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16949 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16950 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16951 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16952 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16953 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16954 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16955 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16956 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16957 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16958 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16959 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16960 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16961 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16962 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16963 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16964 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16965 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16966 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16967 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16968 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16969 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16970 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16971 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16972 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16973 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16974 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16975 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16976 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16977 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16978 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16979 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16980 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16981 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16982 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16983 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16984 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16985 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16986 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16987 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16988 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16989
16990 LTCC='$LTCC'
16991 LTCFLAGS='$LTCFLAGS'
16992 compiler='$compiler_DEFAULT'
16993
16994 # Quote evaled strings.
16995 for var in SED \
16996 GREP \
16997 EGREP \
16998 FGREP \
16999 LD \
17000 NM \
17001 LN_S \
17002 lt_SP2NL \
17003 lt_NL2SP \
17004 reload_flag \
17005 OBJDUMP \
17006 deplibs_check_method \
17007 file_magic_cmd \
17008 AR \
17009 AR_FLAGS \
17010 STRIP \
17011 RANLIB \
17012 CC \
17013 CFLAGS \
17014 compiler \
17015 lt_cv_sys_global_symbol_pipe \
17016 lt_cv_sys_global_symbol_to_cdecl \
17017 lt_cv_sys_global_symbol_to_c_name_address \
17018 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17019 SHELL \
17020 ECHO \
17021 lt_prog_compiler_no_builtin_flag \
17022 lt_prog_compiler_wl \
17023 lt_prog_compiler_pic \
17024 lt_prog_compiler_static \
17025 lt_cv_prog_compiler_c_o \
17026 need_locks \
17027 DSYMUTIL \
17028 NMEDIT \
17029 LIPO \
17030 OTOOL \
17031 OTOOL64 \
17032 shrext_cmds \
17033 export_dynamic_flag_spec \
17034 whole_archive_flag_spec \
17035 compiler_needs_object \
17036 with_gnu_ld \
17037 allow_undefined_flag \
17038 no_undefined_flag \
17039 hardcode_libdir_flag_spec \
17040 hardcode_libdir_flag_spec_ld \
17041 hardcode_libdir_separator \
17042 fix_srcfile_path \
17043 exclude_expsyms \
17044 include_expsyms \
17045 file_list_spec \
17046 variables_saved_for_relink \
17047 libname_spec \
17048 library_names_spec \
17049 soname_spec \
17050 finish_eval \
17051 old_striplib \
17052 striplib \
17053 compiler_lib_search_dirs \
17054 predep_objects \
17055 postdep_objects \
17056 predeps \
17057 postdeps \
17058 compiler_lib_search_path \
17059 LD_CXX \
17060 compiler_CXX \
17061 lt_prog_compiler_no_builtin_flag_CXX \
17062 lt_prog_compiler_wl_CXX \
17063 lt_prog_compiler_pic_CXX \
17064 lt_prog_compiler_static_CXX \
17065 lt_cv_prog_compiler_c_o_CXX \
17066 export_dynamic_flag_spec_CXX \
17067 whole_archive_flag_spec_CXX \
17068 compiler_needs_object_CXX \
17069 with_gnu_ld_CXX \
17070 allow_undefined_flag_CXX \
17071 no_undefined_flag_CXX \
17072 hardcode_libdir_flag_spec_CXX \
17073 hardcode_libdir_flag_spec_ld_CXX \
17074 hardcode_libdir_separator_CXX \
17075 fix_srcfile_path_CXX \
17076 exclude_expsyms_CXX \
17077 include_expsyms_CXX \
17078 file_list_spec_CXX \
17079 compiler_lib_search_dirs_CXX \
17080 predep_objects_CXX \
17081 postdep_objects_CXX \
17082 predeps_CXX \
17083 postdeps_CXX \
17084 compiler_lib_search_path_CXX; do
17085 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17086 *[\\\\\\\`\\"\\\$]*)
17087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17088 ;;
17089 *)
17090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17091 ;;
17092 esac
17093 done
17094
17095 # Double-quote double-evaled strings.
17096 for var in reload_cmds \
17097 old_postinstall_cmds \
17098 old_postuninstall_cmds \
17099 old_archive_cmds \
17100 extract_expsyms_cmds \
17101 old_archive_from_new_cmds \
17102 old_archive_from_expsyms_cmds \
17103 archive_cmds \
17104 archive_expsym_cmds \
17105 module_cmds \
17106 module_expsym_cmds \
17107 export_symbols_cmds \
17108 prelink_cmds \
17109 postinstall_cmds \
17110 postuninstall_cmds \
17111 finish_cmds \
17112 sys_lib_search_path_spec \
17113 sys_lib_dlsearch_path_spec \
17114 old_archive_cmds_CXX \
17115 old_archive_from_new_cmds_CXX \
17116 old_archive_from_expsyms_cmds_CXX \
17117 archive_cmds_CXX \
17118 archive_expsym_cmds_CXX \
17119 module_cmds_CXX \
17120 module_expsym_cmds_CXX \
17121 export_symbols_cmds_CXX \
17122 prelink_cmds_CXX; do
17123 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17124 *[\\\\\\\`\\"\\\$]*)
17125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17126 ;;
17127 *)
17128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17129 ;;
17130 esac
17131 done
17132
17133 # Fix-up fallback echo if it was mangled by the above quoting rules.
17134 case \$lt_ECHO in
17135 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17136 ;;
17137 esac
17138
17139 ac_aux_dir='$ac_aux_dir'
17140 xsi_shell='$xsi_shell'
17141 lt_shell_append='$lt_shell_append'
17142
17143 # See if we are running on zsh, and set the options which allow our
17144 # commands through without removal of \ escapes INIT.
17145 if test -n "\${ZSH_VERSION+set}" ; then
17146 setopt NO_GLOB_SUBST
17147 fi
17148
17149
17150 PACKAGE='$PACKAGE'
17151 VERSION='$VERSION'
17152 TIMESTAMP='$TIMESTAMP'
17153 RM='$RM'
17154 ofile='$ofile'
17155
17156
17157
17158
17159
17160
17161 _ACEOF
17162
17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164
17165 # Handling of arguments.
17166 for ac_config_target in $ac_config_targets
17167 do
17168 case $ac_config_target in
17169 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17170 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17171
17172 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17173 esac
17174 done
17175
17176
17177 # If the user did not use the arguments to specify the items to instantiate,
17178 # then the envvar interface is used. Set only those that are not.
17179 # We use the long form for the default assignment because of an extremely
17180 # bizarre bug on SunOS 4.1.3.
17181 if $ac_need_defaults; then
17182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17184 fi
17185
17186 # Have a temporary directory for convenience. Make it in the build tree
17187 # simply because there is no reason against having it here, and in addition,
17188 # creating and moving files from /tmp can sometimes cause problems.
17189 # Hook for its removal unless debugging.
17190 # Note that there is a small window in which the directory will not be cleaned:
17191 # after its creation but before its name has been assigned to `$tmp'.
17192 $debug ||
17193 {
17194 tmp=
17195 trap 'exit_status=$?
17196 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17197 ' 0
17198 trap 'as_fn_exit 1' 1 2 13 15
17199 }
17200 # Create a (secure) tmp directory for tmp files.
17201
17202 {
17203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17204 test -n "$tmp" && test -d "$tmp"
17205 } ||
17206 {
17207 tmp=./conf$$-$RANDOM
17208 (umask 077 && mkdir "$tmp")
17209 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17210
17211 # Set up the scripts for CONFIG_FILES section.
17212 # No need to generate them if there are no CONFIG_FILES.
17213 # This happens for instance with `./config.status config.h'.
17214 if test -n "$CONFIG_FILES"; then
17215
17216
17217 ac_cr=`echo X | tr X '\015'`
17218 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17219 # But we know of no other shell where ac_cr would be empty at this
17220 # point, so we can use a bashism as a fallback.
17221 if test "x$ac_cr" = x; then
17222 eval ac_cr=\$\'\\r\'
17223 fi
17224 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17225 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17226 ac_cs_awk_cr='\r'
17227 else
17228 ac_cs_awk_cr=$ac_cr
17229 fi
17230
17231 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17232 _ACEOF
17233
17234
17235 {
17236 echo "cat >conf$$subs.awk <<_ACEOF" &&
17237 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17238 echo "_ACEOF"
17239 } >conf$$subs.sh ||
17240 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17241 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17242 ac_delim='%!_!# '
17243 for ac_last_try in false false false false false :; do
17244 . ./conf$$subs.sh ||
17245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17246
17247 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17248 if test $ac_delim_n = $ac_delim_num; then
17249 break
17250 elif $ac_last_try; then
17251 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17252 else
17253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17254 fi
17255 done
17256 rm -f conf$$subs.sh
17257
17258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17259 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17260 _ACEOF
17261 sed -n '
17262 h
17263 s/^/S["/; s/!.*/"]=/
17264 p
17265 g
17266 s/^[^!]*!//
17267 :repl
17268 t repl
17269 s/'"$ac_delim"'$//
17270 t delim
17271 :nl
17272 h
17273 s/\(.\{148\}\)..*/\1/
17274 t more1
17275 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17276 p
17277 n
17278 b repl
17279 :more1
17280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17281 p
17282 g
17283 s/.\{148\}//
17284 t nl
17285 :delim
17286 h
17287 s/\(.\{148\}\)..*/\1/
17288 t more2
17289 s/["\\]/\\&/g; s/^/"/; s/$/"/
17290 p
17291 b
17292 :more2
17293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17294 p
17295 g
17296 s/.\{148\}//
17297 t delim
17298 ' <conf$$subs.awk | sed '
17299 /^[^""]/{
17300 N
17301 s/\n//
17302 }
17303 ' >>$CONFIG_STATUS || ac_write_fail=1
17304 rm -f conf$$subs.awk
17305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17306 _ACAWK
17307 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17308 for (key in S) S_is_set[key] = 1
17309 FS = "\a"
17310
17311 }
17312 {
17313 line = $ 0
17314 nfields = split(line, field, "@")
17315 substed = 0
17316 len = length(field[1])
17317 for (i = 2; i < nfields; i++) {
17318 key = field[i]
17319 keylen = length(key)
17320 if (S_is_set[key]) {
17321 value = S[key]
17322 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17323 len += length(value) + length(field[++i])
17324 substed = 1
17325 } else
17326 len += 1 + keylen
17327 }
17328
17329 print line
17330 }
17331
17332 _ACAWK
17333 _ACEOF
17334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17335 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17336 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17337 else
17338 cat
17339 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17340 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17341 _ACEOF
17342
17343 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17344 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17345 # trailing colons and then remove the whole line if VPATH becomes empty
17346 # (actually we leave an empty line to preserve line numbers).
17347 if test "x$srcdir" = x.; then
17348 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17349 s/:*\$(srcdir):*/:/
17350 s/:*\${srcdir}:*/:/
17351 s/:*@srcdir@:*/:/
17352 s/^\([^=]*=[ ]*\):*/\1/
17353 s/:*$//
17354 s/^[^=]*=[ ]*$//
17355 }'
17356 fi
17357
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17359 fi # test -n "$CONFIG_FILES"
17360
17361
17362 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17363 shift
17364 for ac_tag
17365 do
17366 case $ac_tag in
17367 :[FHLC]) ac_mode=$ac_tag; continue;;
17368 esac
17369 case $ac_mode$ac_tag in
17370 :[FHL]*:*);;
17371 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17372 :[FH]-) ac_tag=-:-;;
17373 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17374 esac
17375 ac_save_IFS=$IFS
17376 IFS=:
17377 set x $ac_tag
17378 IFS=$ac_save_IFS
17379 shift
17380 ac_file=$1
17381 shift
17382
17383 case $ac_mode in
17384 :L) ac_source=$1;;
17385 :[FH])
17386 ac_file_inputs=
17387 for ac_f
17388 do
17389 case $ac_f in
17390 -) ac_f="$tmp/stdin";;
17391 *) # Look for the file first in the build tree, then in the source tree
17392 # (if the path is not absolute). The absolute path cannot be DOS-style,
17393 # because $ac_f cannot contain `:'.
17394 test -f "$ac_f" ||
17395 case $ac_f in
17396 [\\/$]*) false;;
17397 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17398 esac ||
17399 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17400 esac
17401 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17402 as_fn_append ac_file_inputs " '$ac_f'"
17403 done
17404
17405 # Let's still pretend it is `configure' which instantiates (i.e., don't
17406 # use $as_me), people would be surprised to read:
17407 # /* config.h. Generated by config.status. */
17408 configure_input='Generated from '`
17409 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17410 `' by configure.'
17411 if test x"$ac_file" != x-; then
17412 configure_input="$ac_file. $configure_input"
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17414 $as_echo "$as_me: creating $ac_file" >&6;}
17415 fi
17416 # Neutralize special characters interpreted by sed in replacement strings.
17417 case $configure_input in #(
17418 *\&* | *\|* | *\\* )
17419 ac_sed_conf_input=`$as_echo "$configure_input" |
17420 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17421 *) ac_sed_conf_input=$configure_input;;
17422 esac
17423
17424 case $ac_tag in
17425 *:-:* | *:-) cat >"$tmp/stdin" \
17426 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17427 esac
17428 ;;
17429 esac
17430
17431 ac_dir=`$as_dirname -- "$ac_file" ||
17432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17433 X"$ac_file" : 'X\(//\)[^/]' \| \
17434 X"$ac_file" : 'X\(//\)$' \| \
17435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17436 $as_echo X"$ac_file" |
17437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17438 s//\1/
17439 q
17440 }
17441 /^X\(\/\/\)[^/].*/{
17442 s//\1/
17443 q
17444 }
17445 /^X\(\/\/\)$/{
17446 s//\1/
17447 q
17448 }
17449 /^X\(\/\).*/{
17450 s//\1/
17451 q
17452 }
17453 s/.*/./; q'`
17454 as_dir="$ac_dir"; as_fn_mkdir_p
17455 ac_builddir=.
17456
17457 case "$ac_dir" in
17458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17459 *)
17460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17461 # A ".." for each directory in $ac_dir_suffix.
17462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17463 case $ac_top_builddir_sub in
17464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17466 esac ;;
17467 esac
17468 ac_abs_top_builddir=$ac_pwd
17469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17470 # for backward compatibility:
17471 ac_top_builddir=$ac_top_build_prefix
17472
17473 case $srcdir in
17474 .) # We are building in place.
17475 ac_srcdir=.
17476 ac_top_srcdir=$ac_top_builddir_sub
17477 ac_abs_top_srcdir=$ac_pwd ;;
17478 [\\/]* | ?:[\\/]* ) # Absolute name.
17479 ac_srcdir=$srcdir$ac_dir_suffix;
17480 ac_top_srcdir=$srcdir
17481 ac_abs_top_srcdir=$srcdir ;;
17482 *) # Relative name.
17483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17484 ac_top_srcdir=$ac_top_build_prefix$srcdir
17485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17486 esac
17487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17488
17489
17490 case $ac_mode in
17491 :F)
17492 #
17493 # CONFIG_FILE
17494 #
17495
17496 case $INSTALL in
17497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17498 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17499 esac
17500 _ACEOF
17501
17502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17503 # If the template does not know about datarootdir, expand it.
17504 # FIXME: This hack should be removed a few years after 2.60.
17505 ac_datarootdir_hack=; ac_datarootdir_seen=
17506 ac_sed_dataroot='
17507 /datarootdir/ {
17508 p
17509 q
17510 }
17511 /@datadir@/p
17512 /@docdir@/p
17513 /@infodir@/p
17514 /@localedir@/p
17515 /@mandir@/p'
17516 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17517 *datarootdir*) ac_datarootdir_seen=yes;;
17518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17520 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17521 _ACEOF
17522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17523 ac_datarootdir_hack='
17524 s&@datadir@&$datadir&g
17525 s&@docdir@&$docdir&g
17526 s&@infodir@&$infodir&g
17527 s&@localedir@&$localedir&g
17528 s&@mandir@&$mandir&g
17529 s&\\\${datarootdir}&$datarootdir&g' ;;
17530 esac
17531 _ACEOF
17532
17533 # Neutralize VPATH when `$srcdir' = `.'.
17534 # Shell code in configure.ac might set extrasub.
17535 # FIXME: do we really want to maintain this feature?
17536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17537 ac_sed_extra="$ac_vpsub
17538 $extrasub
17539 _ACEOF
17540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17541 :t
17542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17543 s|@configure_input@|$ac_sed_conf_input|;t t
17544 s&@top_builddir@&$ac_top_builddir_sub&;t t
17545 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17546 s&@srcdir@&$ac_srcdir&;t t
17547 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17548 s&@top_srcdir@&$ac_top_srcdir&;t t
17549 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17550 s&@builddir@&$ac_builddir&;t t
17551 s&@abs_builddir@&$ac_abs_builddir&;t t
17552 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17553 s&@INSTALL@&$ac_INSTALL&;t t
17554 $ac_datarootdir_hack
17555 "
17556 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17557 || as_fn_error "could not create $ac_file" "$LINENO" 5
17558
17559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17560 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17563 which seems to be undefined. Please make sure it is defined." >&5
17564 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17565 which seems to be undefined. Please make sure it is defined." >&2;}
17566
17567 rm -f "$tmp/stdin"
17568 case $ac_file in
17569 -) cat "$tmp/out" && rm -f "$tmp/out";;
17570 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17571 esac \
17572 || as_fn_error "could not create $ac_file" "$LINENO" 5
17573 ;;
17574
17575
17576 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17577 $as_echo "$as_me: executing $ac_file commands" >&6;}
17578 ;;
17579 esac
17580
17581
17582 case $ac_file$ac_mode in
17583 "libtool":C)
17584
17585 # See if we are running on zsh, and set the options which allow our
17586 # commands through without removal of \ escapes.
17587 if test -n "${ZSH_VERSION+set}" ; then
17588 setopt NO_GLOB_SUBST
17589 fi
17590
17591 cfgfile="${ofile}T"
17592 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17593 $RM "$cfgfile"
17594
17595 cat <<_LT_EOF >> "$cfgfile"
17596 #! $SHELL
17597
17598 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17599 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17602 #
17603 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17604 # 2006, 2007, 2008 Free Software Foundation, Inc.
17605 # Written by Gordon Matzigkeit, 1996
17606 #
17607 # This file is part of GNU Libtool.
17608 #
17609 # GNU Libtool is free software; you can redistribute it and/or
17610 # modify it under the terms of the GNU General Public License as
17611 # published by the Free Software Foundation; either version 2 of
17612 # the License, or (at your option) any later version.
17613 #
17614 # As a special exception to the GNU General Public License,
17615 # if you distribute this file as part of a program or library that
17616 # is built using GNU Libtool, you may include this file under the
17617 # same distribution terms that you use for the rest of that program.
17618 #
17619 # GNU Libtool is distributed in the hope that it will be useful,
17620 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17622 # GNU General Public License for more details.
17623 #
17624 # You should have received a copy of the GNU General Public License
17625 # along with GNU Libtool; see the file COPYING. If not, a copy
17626 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17627 # obtained by writing to the Free Software Foundation, Inc.,
17628 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17629
17630
17631 # The names of the tagged configurations supported by this script.
17632 available_tags="CXX "
17633
17634 # ### BEGIN LIBTOOL CONFIG
17635
17636 # Which release of libtool.m4 was used?
17637 macro_version=$macro_version
17638 macro_revision=$macro_revision
17639
17640 # Whether or not to build static libraries.
17641 build_old_libs=$enable_static
17642
17643 # Whether or not to build shared libraries.
17644 build_libtool_libs=$enable_shared
17645
17646 # What type of objects to build.
17647 pic_mode=$pic_mode
17648
17649 # Whether or not to optimize for fast installation.
17650 fast_install=$enable_fast_install
17651
17652 # The host system.
17653 host_alias=$host_alias
17654 host=$host
17655 host_os=$host_os
17656
17657 # The build system.
17658 build_alias=$build_alias
17659 build=$build
17660 build_os=$build_os
17661
17662 # A sed program that does not truncate output.
17663 SED=$lt_SED
17664
17665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17666 Xsed="\$SED -e 1s/^X//"
17667
17668 # A grep program that handles long lines.
17669 GREP=$lt_GREP
17670
17671 # An ERE matcher.
17672 EGREP=$lt_EGREP
17673
17674 # A literal string matcher.
17675 FGREP=$lt_FGREP
17676
17677 # A BSD- or MS-compatible name lister.
17678 NM=$lt_NM
17679
17680 # Whether we need soft or hard links.
17681 LN_S=$lt_LN_S
17682
17683 # What is the maximum length of a command?
17684 max_cmd_len=$max_cmd_len
17685
17686 # Object file suffix (normally "o").
17687 objext=$ac_objext
17688
17689 # Executable file suffix (normally "").
17690 exeext=$exeext
17691
17692 # whether the shell understands "unset".
17693 lt_unset=$lt_unset
17694
17695 # turn spaces into newlines.
17696 SP2NL=$lt_lt_SP2NL
17697
17698 # turn newlines into spaces.
17699 NL2SP=$lt_lt_NL2SP
17700
17701 # How to create reloadable object files.
17702 reload_flag=$lt_reload_flag
17703 reload_cmds=$lt_reload_cmds
17704
17705 # An object symbol dumper.
17706 OBJDUMP=$lt_OBJDUMP
17707
17708 # Method to check whether dependent libraries are shared objects.
17709 deplibs_check_method=$lt_deplibs_check_method
17710
17711 # Command to use when deplibs_check_method == "file_magic".
17712 file_magic_cmd=$lt_file_magic_cmd
17713
17714 # The archiver.
17715 AR=$lt_AR
17716 AR_FLAGS=$lt_AR_FLAGS
17717
17718 # A symbol stripping program.
17719 STRIP=$lt_STRIP
17720
17721 # Commands used to install an old-style archive.
17722 RANLIB=$lt_RANLIB
17723 old_postinstall_cmds=$lt_old_postinstall_cmds
17724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17725
17726 # A C compiler.
17727 LTCC=$lt_CC
17728
17729 # LTCC compiler flags.
17730 LTCFLAGS=$lt_CFLAGS
17731
17732 # Take the output of nm and produce a listing of raw symbols and C names.
17733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17734
17735 # Transform the output of nm in a proper C declaration.
17736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17737
17738 # Transform the output of nm in a C name address pair.
17739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17740
17741 # Transform the output of nm in a C name address pair when lib prefix is needed.
17742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17743
17744 # The name of the directory that contains temporary libtool files.
17745 objdir=$objdir
17746
17747 # Shell to use when invoking shell scripts.
17748 SHELL=$lt_SHELL
17749
17750 # An echo program that does not interpret backslashes.
17751 ECHO=$lt_ECHO
17752
17753 # Used to examine libraries when file_magic_cmd begins with "file".
17754 MAGIC_CMD=$MAGIC_CMD
17755
17756 # Must we lock files when doing compilation?
17757 need_locks=$lt_need_locks
17758
17759 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17760 DSYMUTIL=$lt_DSYMUTIL
17761
17762 # Tool to change global to local symbols on Mac OS X.
17763 NMEDIT=$lt_NMEDIT
17764
17765 # Tool to manipulate fat objects and archives on Mac OS X.
17766 LIPO=$lt_LIPO
17767
17768 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17769 OTOOL=$lt_OTOOL
17770
17771 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17772 OTOOL64=$lt_OTOOL64
17773
17774 # Old archive suffix (normally "a").
17775 libext=$libext
17776
17777 # Shared library suffix (normally ".so").
17778 shrext_cmds=$lt_shrext_cmds
17779
17780 # The commands to extract the exported symbol list from a shared archive.
17781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17782
17783 # Variables whose values should be saved in libtool wrapper scripts and
17784 # restored at link time.
17785 variables_saved_for_relink=$lt_variables_saved_for_relink
17786
17787 # Do we need the "lib" prefix for modules?
17788 need_lib_prefix=$need_lib_prefix
17789
17790 # Do we need a version for libraries?
17791 need_version=$need_version
17792
17793 # Library versioning type.
17794 version_type=$version_type
17795
17796 # Shared library runtime path variable.
17797 runpath_var=$runpath_var
17798
17799 # Shared library path variable.
17800 shlibpath_var=$shlibpath_var
17801
17802 # Is shlibpath searched before the hard-coded library search path?
17803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17804
17805 # Format of library name prefix.
17806 libname_spec=$lt_libname_spec
17807
17808 # List of archive names. First name is the real one, the rest are links.
17809 # The last name is the one that the linker finds with -lNAME
17810 library_names_spec=$lt_library_names_spec
17811
17812 # The coded name of the library, if different from the real name.
17813 soname_spec=$lt_soname_spec
17814
17815 # Command to use after installation of a shared archive.
17816 postinstall_cmds=$lt_postinstall_cmds
17817
17818 # Command to use after uninstallation of a shared archive.
17819 postuninstall_cmds=$lt_postuninstall_cmds
17820
17821 # Commands used to finish a libtool library installation in a directory.
17822 finish_cmds=$lt_finish_cmds
17823
17824 # As "finish_cmds", except a single script fragment to be evaled but
17825 # not shown.
17826 finish_eval=$lt_finish_eval
17827
17828 # Whether we should hardcode library paths into libraries.
17829 hardcode_into_libs=$hardcode_into_libs
17830
17831 # Compile-time system search path for libraries.
17832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17833
17834 # Run-time system search path for libraries.
17835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17836
17837 # Whether dlopen is supported.
17838 dlopen_support=$enable_dlopen
17839
17840 # Whether dlopen of programs is supported.
17841 dlopen_self=$enable_dlopen_self
17842
17843 # Whether dlopen of statically linked programs is supported.
17844 dlopen_self_static=$enable_dlopen_self_static
17845
17846 # Commands to strip libraries.
17847 old_striplib=$lt_old_striplib
17848 striplib=$lt_striplib
17849
17850
17851 # The linker used to build libraries.
17852 LD=$lt_LD
17853
17854 # Commands used to build an old-style archive.
17855 old_archive_cmds=$lt_old_archive_cmds
17856
17857 # A language specific compiler.
17858 CC=$lt_compiler
17859
17860 # Is the compiler the GNU compiler?
17861 with_gcc=$GCC
17862
17863 # Compiler flag to turn off builtin functions.
17864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17865
17866 # How to pass a linker flag through the compiler.
17867 wl=$lt_lt_prog_compiler_wl
17868
17869 # Additional compiler flags for building library objects.
17870 pic_flag=$lt_lt_prog_compiler_pic
17871
17872 # Compiler flag to prevent dynamic linking.
17873 link_static_flag=$lt_lt_prog_compiler_static
17874
17875 # Does compiler simultaneously support -c and -o options?
17876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17877
17878 # Whether or not to add -lc for building shared libraries.
17879 build_libtool_need_lc=$archive_cmds_need_lc
17880
17881 # Whether or not to disallow shared libs when runtime libs are static.
17882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17883
17884 # Compiler flag to allow reflexive dlopens.
17885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17886
17887 # Compiler flag to generate shared objects directly from archives.
17888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17889
17890 # Whether the compiler copes with passing no objects directly.
17891 compiler_needs_object=$lt_compiler_needs_object
17892
17893 # Create an old-style archive from a shared archive.
17894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17895
17896 # Create a temporary old-style archive to link instead of a shared archive.
17897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17898
17899 # Commands used to build a shared archive.
17900 archive_cmds=$lt_archive_cmds
17901 archive_expsym_cmds=$lt_archive_expsym_cmds
17902
17903 # Commands used to build a loadable module if different from building
17904 # a shared archive.
17905 module_cmds=$lt_module_cmds
17906 module_expsym_cmds=$lt_module_expsym_cmds
17907
17908 # Whether we are building with GNU ld or not.
17909 with_gnu_ld=$lt_with_gnu_ld
17910
17911 # Flag that allows shared libraries with undefined symbols to be built.
17912 allow_undefined_flag=$lt_allow_undefined_flag
17913
17914 # Flag that enforces no undefined symbols.
17915 no_undefined_flag=$lt_no_undefined_flag
17916
17917 # Flag to hardcode \$libdir into a binary during linking.
17918 # This must work even if \$libdir does not exist
17919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17920
17921 # If ld is used when linking, flag to hardcode \$libdir into a binary
17922 # during linking. This must work even if \$libdir does not exist.
17923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17924
17925 # Whether we need a single "-rpath" flag with a separated argument.
17926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17927
17928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17929 # DIR into the resulting binary.
17930 hardcode_direct=$hardcode_direct
17931
17932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17933 # DIR into the resulting binary and the resulting library dependency is
17934 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17935 # library is relocated.
17936 hardcode_direct_absolute=$hardcode_direct_absolute
17937
17938 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17939 # into the resulting binary.
17940 hardcode_minus_L=$hardcode_minus_L
17941
17942 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17943 # into the resulting binary.
17944 hardcode_shlibpath_var=$hardcode_shlibpath_var
17945
17946 # Set to "yes" if building a shared library automatically hardcodes DIR
17947 # into the library and all subsequent libraries and executables linked
17948 # against it.
17949 hardcode_automatic=$hardcode_automatic
17950
17951 # Set to yes if linker adds runtime paths of dependent libraries
17952 # to runtime path list.
17953 inherit_rpath=$inherit_rpath
17954
17955 # Whether libtool must link a program against all its dependency libraries.
17956 link_all_deplibs=$link_all_deplibs
17957
17958 # Fix the shell variable \$srcfile for the compiler.
17959 fix_srcfile_path=$lt_fix_srcfile_path
17960
17961 # Set to "yes" if exported symbols are required.
17962 always_export_symbols=$always_export_symbols
17963
17964 # The commands to list exported symbols.
17965 export_symbols_cmds=$lt_export_symbols_cmds
17966
17967 # Symbols that should not be listed in the preloaded symbols.
17968 exclude_expsyms=$lt_exclude_expsyms
17969
17970 # Symbols that must always be exported.
17971 include_expsyms=$lt_include_expsyms
17972
17973 # Commands necessary for linking programs (against libraries) with templates.
17974 prelink_cmds=$lt_prelink_cmds
17975
17976 # Specify filename containing input files.
17977 file_list_spec=$lt_file_list_spec
17978
17979 # How to hardcode a shared library path into an executable.
17980 hardcode_action=$hardcode_action
17981
17982 # The directories searched by this compiler when creating a shared library.
17983 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17984
17985 # Dependencies to place before and after the objects being linked to
17986 # create a shared library.
17987 predep_objects=$lt_predep_objects
17988 postdep_objects=$lt_postdep_objects
17989 predeps=$lt_predeps
17990 postdeps=$lt_postdeps
17991
17992 # The library search path used internally by the compiler when linking
17993 # a shared library.
17994 compiler_lib_search_path=$lt_compiler_lib_search_path
17995
17996 # ### END LIBTOOL CONFIG
17997
17998 _LT_EOF
17999
18000 case $host_os in
18001 aix3*)
18002 cat <<\_LT_EOF >> "$cfgfile"
18003 # AIX sometimes has problems with the GCC collect2 program. For some
18004 # reason, if we set the COLLECT_NAMES environment variable, the problems
18005 # vanish in a puff of smoke.
18006 if test "X${COLLECT_NAMES+set}" != Xset; then
18007 COLLECT_NAMES=
18008 export COLLECT_NAMES
18009 fi
18010 _LT_EOF
18011 ;;
18012 esac
18013
18014
18015 ltmain="$ac_aux_dir/ltmain.sh"
18016
18017
18018 # We use sed instead of cat because bash on DJGPP gets confused if
18019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18020 # text mode, it properly converts lines to CR/LF. This bash problem
18021 # is reportedly fixed, but why not run on old versions too?
18022 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18023 || (rm -f "$cfgfile"; exit 1)
18024
18025 case $xsi_shell in
18026 yes)
18027 cat << \_LT_EOF >> "$cfgfile"
18028
18029 # func_dirname file append nondir_replacement
18030 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18031 # otherwise set result to NONDIR_REPLACEMENT.
18032 func_dirname ()
18033 {
18034 case ${1} in
18035 */*) func_dirname_result="${1%/*}${2}" ;;
18036 * ) func_dirname_result="${3}" ;;
18037 esac
18038 }
18039
18040 # func_basename file
18041 func_basename ()
18042 {
18043 func_basename_result="${1##*/}"
18044 }
18045
18046 # func_dirname_and_basename file append nondir_replacement
18047 # perform func_basename and func_dirname in a single function
18048 # call:
18049 # dirname: Compute the dirname of FILE. If nonempty,
18050 # add APPEND to the result, otherwise set result
18051 # to NONDIR_REPLACEMENT.
18052 # value returned in "$func_dirname_result"
18053 # basename: Compute filename of FILE.
18054 # value retuned in "$func_basename_result"
18055 # Implementation must be kept synchronized with func_dirname
18056 # and func_basename. For efficiency, we do not delegate to
18057 # those functions but instead duplicate the functionality here.
18058 func_dirname_and_basename ()
18059 {
18060 case ${1} in
18061 */*) func_dirname_result="${1%/*}${2}" ;;
18062 * ) func_dirname_result="${3}" ;;
18063 esac
18064 func_basename_result="${1##*/}"
18065 }
18066
18067 # func_stripname prefix suffix name
18068 # strip PREFIX and SUFFIX off of NAME.
18069 # PREFIX and SUFFIX must not contain globbing or regex special
18070 # characters, hashes, percent signs, but SUFFIX may contain a leading
18071 # dot (in which case that matches only a dot).
18072 func_stripname ()
18073 {
18074 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18075 # positional parameters, so assign one to ordinary parameter first.
18076 func_stripname_result=${3}
18077 func_stripname_result=${func_stripname_result#"${1}"}
18078 func_stripname_result=${func_stripname_result%"${2}"}
18079 }
18080
18081 # func_opt_split
18082 func_opt_split ()
18083 {
18084 func_opt_split_opt=${1%%=*}
18085 func_opt_split_arg=${1#*=}
18086 }
18087
18088 # func_lo2o object
18089 func_lo2o ()
18090 {
18091 case ${1} in
18092 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18093 *) func_lo2o_result=${1} ;;
18094 esac
18095 }
18096
18097 # func_xform libobj-or-source
18098 func_xform ()
18099 {
18100 func_xform_result=${1%.*}.lo
18101 }
18102
18103 # func_arith arithmetic-term...
18104 func_arith ()
18105 {
18106 func_arith_result=$(( $* ))
18107 }
18108
18109 # func_len string
18110 # STRING may not start with a hyphen.
18111 func_len ()
18112 {
18113 func_len_result=${#1}
18114 }
18115
18116 _LT_EOF
18117 ;;
18118 *) # Bourne compatible functions.
18119 cat << \_LT_EOF >> "$cfgfile"
18120
18121 # func_dirname file append nondir_replacement
18122 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18123 # otherwise set result to NONDIR_REPLACEMENT.
18124 func_dirname ()
18125 {
18126 # Extract subdirectory from the argument.
18127 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18128 if test "X$func_dirname_result" = "X${1}"; then
18129 func_dirname_result="${3}"
18130 else
18131 func_dirname_result="$func_dirname_result${2}"
18132 fi
18133 }
18134
18135 # func_basename file
18136 func_basename ()
18137 {
18138 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18139 }
18140
18141
18142 # func_stripname prefix suffix name
18143 # strip PREFIX and SUFFIX off of NAME.
18144 # PREFIX and SUFFIX must not contain globbing or regex special
18145 # characters, hashes, percent signs, but SUFFIX may contain a leading
18146 # dot (in which case that matches only a dot).
18147 # func_strip_suffix prefix name
18148 func_stripname ()
18149 {
18150 case ${2} in
18151 .*) func_stripname_result=`$ECHO "X${3}" \
18152 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18153 *) func_stripname_result=`$ECHO "X${3}" \
18154 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18155 esac
18156 }
18157
18158 # sed scripts:
18159 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18160 my_sed_long_arg='1s/^-[^=]*=//'
18161
18162 # func_opt_split
18163 func_opt_split ()
18164 {
18165 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18166 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18167 }
18168
18169 # func_lo2o object
18170 func_lo2o ()
18171 {
18172 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18173 }
18174
18175 # func_xform libobj-or-source
18176 func_xform ()
18177 {
18178 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18179 }
18180
18181 # func_arith arithmetic-term...
18182 func_arith ()
18183 {
18184 func_arith_result=`expr "$@"`
18185 }
18186
18187 # func_len string
18188 # STRING may not start with a hyphen.
18189 func_len ()
18190 {
18191 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18192 }
18193
18194 _LT_EOF
18195 esac
18196
18197 case $lt_shell_append in
18198 yes)
18199 cat << \_LT_EOF >> "$cfgfile"
18200
18201 # func_append var value
18202 # Append VALUE to the end of shell variable VAR.
18203 func_append ()
18204 {
18205 eval "$1+=\$2"
18206 }
18207 _LT_EOF
18208 ;;
18209 *)
18210 cat << \_LT_EOF >> "$cfgfile"
18211
18212 # func_append var value
18213 # Append VALUE to the end of shell variable VAR.
18214 func_append ()
18215 {
18216 eval "$1=\$$1\$2"
18217 }
18218
18219 _LT_EOF
18220 ;;
18221 esac
18222
18223
18224 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18225 || (rm -f "$cfgfile"; exit 1)
18226
18227 mv -f "$cfgfile" "$ofile" ||
18228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18229 chmod +x "$ofile"
18230
18231
18232 cat <<_LT_EOF >> "$ofile"
18233
18234 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18235
18236 # The linker used to build libraries.
18237 LD=$lt_LD_CXX
18238
18239 # Commands used to build an old-style archive.
18240 old_archive_cmds=$lt_old_archive_cmds_CXX
18241
18242 # A language specific compiler.
18243 CC=$lt_compiler_CXX
18244
18245 # Is the compiler the GNU compiler?
18246 with_gcc=$GCC_CXX
18247
18248 # Compiler flag to turn off builtin functions.
18249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18250
18251 # How to pass a linker flag through the compiler.
18252 wl=$lt_lt_prog_compiler_wl_CXX
18253
18254 # Additional compiler flags for building library objects.
18255 pic_flag=$lt_lt_prog_compiler_pic_CXX
18256
18257 # Compiler flag to prevent dynamic linking.
18258 link_static_flag=$lt_lt_prog_compiler_static_CXX
18259
18260 # Does compiler simultaneously support -c and -o options?
18261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18262
18263 # Whether or not to add -lc for building shared libraries.
18264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18265
18266 # Whether or not to disallow shared libs when runtime libs are static.
18267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18268
18269 # Compiler flag to allow reflexive dlopens.
18270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18271
18272 # Compiler flag to generate shared objects directly from archives.
18273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18274
18275 # Whether the compiler copes with passing no objects directly.
18276 compiler_needs_object=$lt_compiler_needs_object_CXX
18277
18278 # Create an old-style archive from a shared archive.
18279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18280
18281 # Create a temporary old-style archive to link instead of a shared archive.
18282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18283
18284 # Commands used to build a shared archive.
18285 archive_cmds=$lt_archive_cmds_CXX
18286 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18287
18288 # Commands used to build a loadable module if different from building
18289 # a shared archive.
18290 module_cmds=$lt_module_cmds_CXX
18291 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18292
18293 # Whether we are building with GNU ld or not.
18294 with_gnu_ld=$lt_with_gnu_ld_CXX
18295
18296 # Flag that allows shared libraries with undefined symbols to be built.
18297 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18298
18299 # Flag that enforces no undefined symbols.
18300 no_undefined_flag=$lt_no_undefined_flag_CXX
18301
18302 # Flag to hardcode \$libdir into a binary during linking.
18303 # This must work even if \$libdir does not exist
18304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18305
18306 # If ld is used when linking, flag to hardcode \$libdir into a binary
18307 # during linking. This must work even if \$libdir does not exist.
18308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18309
18310 # Whether we need a single "-rpath" flag with a separated argument.
18311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18312
18313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18314 # DIR into the resulting binary.
18315 hardcode_direct=$hardcode_direct_CXX
18316
18317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18318 # DIR into the resulting binary and the resulting library dependency is
18319 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18320 # library is relocated.
18321 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18322
18323 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18324 # into the resulting binary.
18325 hardcode_minus_L=$hardcode_minus_L_CXX
18326
18327 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18328 # into the resulting binary.
18329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18330
18331 # Set to "yes" if building a shared library automatically hardcodes DIR
18332 # into the library and all subsequent libraries and executables linked
18333 # against it.
18334 hardcode_automatic=$hardcode_automatic_CXX
18335
18336 # Set to yes if linker adds runtime paths of dependent libraries
18337 # to runtime path list.
18338 inherit_rpath=$inherit_rpath_CXX
18339
18340 # Whether libtool must link a program against all its dependency libraries.
18341 link_all_deplibs=$link_all_deplibs_CXX
18342
18343 # Fix the shell variable \$srcfile for the compiler.
18344 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18345
18346 # Set to "yes" if exported symbols are required.
18347 always_export_symbols=$always_export_symbols_CXX
18348
18349 # The commands to list exported symbols.
18350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18351
18352 # Symbols that should not be listed in the preloaded symbols.
18353 exclude_expsyms=$lt_exclude_expsyms_CXX
18354
18355 # Symbols that must always be exported.
18356 include_expsyms=$lt_include_expsyms_CXX
18357
18358 # Commands necessary for linking programs (against libraries) with templates.
18359 prelink_cmds=$lt_prelink_cmds_CXX
18360
18361 # Specify filename containing input files.
18362 file_list_spec=$lt_file_list_spec_CXX
18363
18364 # How to hardcode a shared library path into an executable.
18365 hardcode_action=$hardcode_action_CXX
18366
18367 # The directories searched by this compiler when creating a shared library.
18368 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18369
18370 # Dependencies to place before and after the objects being linked to
18371 # create a shared library.
18372 predep_objects=$lt_predep_objects_CXX
18373 postdep_objects=$lt_postdep_objects_CXX
18374 predeps=$lt_predeps_CXX
18375 postdeps=$lt_postdeps_CXX
18376
18377 # The library search path used internally by the compiler when linking
18378 # a shared library.
18379 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18380
18381 # ### END LIBTOOL TAG CONFIG: CXX
18382 _LT_EOF
18383
18384 ;;
18385
18386 esac
18387 done # for ac_tag
18388
18389
18390 as_fn_exit 0
18391 _ACEOF
18392 ac_clean_files=$ac_clean_files_save
18393
18394 test $ac_write_fail = 0 ||
18395 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18396
18397
18398 # configure is writing to config.log, and then calls config.status.
18399 # config.status does its own redirection, appending to config.log.
18400 # Unfortunately, on DOS this fails, as config.log is still kept open
18401 # by configure, so config.status won't be able to write to it; its
18402 # output is simply discarded. So we exec the FD to /dev/null,
18403 # effectively closing config.log, so it can be properly (re)opened and
18404 # appended to by config.status. When coming back to configure, we
18405 # need to make the FD available again.
18406 if test "$no_create" != yes; then
18407 ac_cs_success=:
18408 ac_config_status_args=
18409 test "$silent" = yes &&
18410 ac_config_status_args="$ac_config_status_args --quiet"
18411 exec 5>/dev/null
18412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18413 exec 5>>config.log
18414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18415 # would make configure fail if this is the last instruction.
18416 $ac_cs_success || as_fn_exit $?
18417 fi
18418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18421 fi
18422