]> git.saurik.com Git - cycript.git/blob - configure
Use the LC_ID_DYLIB when possible to ID dylibs.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (C) 2009-2012 Jay Freeman (saurik)
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 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='Cycript'
594 PACKAGE_TARNAME='cycript'
595 PACKAGE_VERSION='0.9'
596 PACKAGE_STRING='Cycript 0.9'
597 PACKAGE_BUGREPORT='saurik@saurik.com'
598 PACKAGE_URL='http://www.cycript.org/'
599
600 ac_unique_file="Console.cpp"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 CY_MACH_FALSE
642 CY_MACH_TRUE
643 CY_MACH
644 CY_ATTACH_GROUP
645 ac_ct__OTOOL
646 _OTOOL
647 ac_ct__NM
648 _NM
649 ac_ct__LIPO
650 _LIPO
651 SO
652 LTFLAGS
653 LTLIBTERMCAP
654 LTLIBREADLINE
655 CY_OBJECTIVEC_FALSE
656 CY_OBJECTIVEC_TRUE
657 LTOBJECTIVEC
658 GNUSTEP_CONFIG
659 CY_OBJECTIVEC
660 LTLIBFFI
661 LIBFFI_LIBS
662 LIBFFI_CFLAGS
663 CY_EXECUTE_FALSE
664 CY_EXECUTE_TRUE
665 LTLIBAPR
666 LTJAVASCRIPTCORE
667 WEBKIT_LIBS
668 WEBKIT_CFLAGS
669 CY_EXECUTE
670 CY_IOS_SIMULATOR_FALSE
671 CY_IOS_SIMULATOR_TRUE
672 CY_IOS_SIMULATOR
673 XCODEBUILD
674 CY_ARCH
675 CY_FILTERS
676 GNUTAR
677 GPERF
678 FLEX
679 BISON
680 TIME
681 GIT
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 CXXCPP
686 CPP
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 DLLTOOL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 ac_ct_CC
718 CFLAGS
719 CC
720 ac_ct_AR
721 AR
722 am__fastdepOBJCXX_FALSE
723 am__fastdepOBJCXX_TRUE
724 OBJCXXDEPMODE
725 ac_ct_OBJCXX
726 OBJCXXFLAGS
727 OBJCXX
728 am__fastdepCXX_FALSE
729 am__fastdepCXX_TRUE
730 CXXDEPMODE
731 am__nodep
732 AMDEPBACKSLASH
733 AMDEP_FALSE
734 AMDEP_TRUE
735 am__quote
736 am__include
737 DEPDIR
738 OBJEXT
739 EXEEXT
740 ac_ct_CXX
741 CPPFLAGS
742 LDFLAGS
743 CXXFLAGS
744 CXX
745 MAINT
746 MAINTAINER_MODE_FALSE
747 MAINTAINER_MODE_TRUE
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_maintainer_mode
818 enable_dependency_tracking
819 enable_static
820 enable_shared
821 with_pic
822 enable_fast_install
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_javascript
827 with_apr
828 '
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CXX
833 CXXFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CCC
838 OBJCXX
839 OBJCXXFLAGS
840 CC
841 CFLAGS
842 CPP
843 CXXCPP
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 BISON
848 FLEX
849 GPERF
850 GNUTAR
851 WEBKIT_CFLAGS
852 WEBKIT_LIBS
853 LIBFFI_CFLAGS
854 LIBFFI_LIBS
855 GNUSTEP_CONFIG'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of Cycript 0.9:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful (and
1478 sometimes confusing) to the casual installer
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-javascript[=ENGINE]
1489 use a JavaScript runtime (currently the only
1490 available option for ENGINE is JavaScriptCore)
1491 [default=yes]
1492
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot=DIR Search for dependent libraries within DIR
1500 (or the compiler's sysroot if not specified).
1501 --with-apr=PATH prefix for installed APR or the full path to
1502 apr-config
1503
1504 Some influential environment variables:
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 OBJCXX Objective C++ compiler command
1513 OBJCXXFLAGS Objective C++ compiler flags
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 CPP C preprocessor
1517 CXXCPP C++ preprocessor
1518 PKG_CONFIG path to pkg-config utility
1519 PKG_CONFIG_PATH
1520 directories to add to pkg-config's search path
1521 PKG_CONFIG_LIBDIR
1522 path overriding pkg-config's built-in search path
1523 BISON GNU Project parser generator (yacc replacement)
1524 FLEX the fast lexical analyser generator
1525 GPERF perfect hash function generator
1526 GNUTAR a very sticky lump of files
1527 WEBKIT_CFLAGS
1528 C compiler flags for WEBKIT, overriding pkg-config
1529 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1530 GNUSTEP_CONFIG
1531 prints information about the current gnustep installation
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <saurik@saurik.com>.
1537 Cycript home page: <http://www.cycript.org/>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 Cycript configure 0.9
1601 generated by GNU Autoconf 2.69
1602
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606
1607 Copyright (C) 2009-2012 Jay Freeman (saurik)
1608 _ACEOF
1609 exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_cxx_try_compile LINENO
1617 # ----------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_cxx_try_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_cxx_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_cxx_try_compile
1653
1654 # ac_fn_objcxx_try_compile LINENO
1655 # -------------------------------
1656 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_objcxx_try_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext
1661 if { { ac_try="$ac_compile"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_compile") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_objcxx_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest.$ac_objext; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686 fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_objcxx_try_compile
1691
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_compile
1729
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_link ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest$ac_exeext
1737 if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 test -x conftest$ac_exeext
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765 fi
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_link
1775
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_header_compile
1806
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_cpp ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 }; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838 fi
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_cpp
1843
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1848 ac_fn_c_try_run ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status
1879 fi
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_run
1885
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901 #define $2 innocuous_$2
1902
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1907
1908 #ifdef __STDC__
1909 # include <limits.h>
1910 #else
1911 # include <assert.h>
1912 #endif
1913
1914 #undef $2
1915
1916 /* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1919 #ifdef __cplusplus
1920 extern "C"
1921 #endif
1922 char $2 ();
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined __stub_$2 || defined __stub___$2
1927 choke me
1928 #endif
1929
1930 int
1931 main ()
1932 {
1933 return $2 ();
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_link "$LINENO"; then :
1939 eval "$3=yes"
1940 else
1941 eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_func
1952
1953 # ac_fn_cxx_try_cpp LINENO
1954 # ------------------------
1955 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_cxx_try_cpp ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_cpp conftest.$ac_ext"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } > conftest.i && {
1975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 }; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984 fi
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status $ac_retval
1987
1988 } # ac_fn_cxx_try_cpp
1989
1990 # ac_fn_cxx_try_link LINENO
1991 # -------------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_cxx_try_link ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 rm -f conftest.$ac_objext conftest$ac_exeext
1997 if { { ac_try="$ac_link"
1998 case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>conftest.err
2005 ac_status=$?
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2010 fi
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && {
2013 test -z "$ac_cxx_werror_flag" ||
2014 test ! -s conftest.err
2015 } && test -s conftest$ac_exeext && {
2016 test "$cross_compiling" = yes ||
2017 test -x conftest$ac_exeext
2018 }; then :
2019 ac_retval=0
2020 else
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 ac_retval=1
2025 fi
2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2028 # interfere with the next link command; also delete a directory that is
2029 # left behind by Apple's compiler. We do this before executing the actions.
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 as_fn_set_status $ac_retval
2033
2034 } # ac_fn_cxx_try_link
2035
2036 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2037 # ---------------------------------------------------------
2038 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2039 # the include files in INCLUDES and setting the cache variable VAR
2040 # accordingly.
2041 ac_fn_cxx_check_header_mongrel ()
2042 {
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if eval \${$3+:} false; then :
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 fi
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 else
2054 # Is the header compilable?
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2056 $as_echo_n "checking $2 usability... " >&6; }
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 #include <$2>
2061 _ACEOF
2062 if ac_fn_cxx_try_compile "$LINENO"; then :
2063 ac_header_compiler=yes
2064 else
2065 ac_header_compiler=no
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2069 $as_echo "$ac_header_compiler" >&6; }
2070
2071 # Is the header present?
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2073 $as_echo_n "checking $2 presence... " >&6; }
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 #include <$2>
2077 _ACEOF
2078 if ac_fn_cxx_try_cpp "$LINENO"; then :
2079 ac_header_preproc=yes
2080 else
2081 ac_header_preproc=no
2082 fi
2083 rm -f conftest.err conftest.i conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2085 $as_echo "$ac_header_preproc" >&6; }
2086
2087 # So? What about this header?
2088 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2089 yes:no: )
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2091 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094 ;;
2095 no:yes:* )
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2097 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2099 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2101 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2103 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106 ( $as_echo "## -------------------------------- ##
2107 ## Report this to saurik@saurik.com ##
2108 ## -------------------------------- ##"
2109 ) | sed "s/^/$as_me: WARNING: /" >&2
2110 ;;
2111 esac
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 eval "$3=\$ac_header_compiler"
2118 fi
2119 eval ac_res=\$$3
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 fi
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125 } # ac_fn_cxx_check_header_mongrel
2126
2127 # ac_fn_objcxx_try_link LINENO
2128 # ----------------------------
2129 # Try to link conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_objcxx_try_link ()
2131 {
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext conftest$ac_exeext
2134 if { { ac_try="$ac_link"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_link") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_objcxx_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest$ac_exeext && {
2153 test "$cross_compiling" = yes ||
2154 test -x conftest$ac_exeext
2155 }; then :
2156 ac_retval=0
2157 else
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_retval=1
2162 fi
2163 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165 # interfere with the next link command; also delete a directory that is
2166 # left behind by Apple's compiler. We do this before executing the actions.
2167 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2170
2171 } # ac_fn_objcxx_try_link
2172 cat >config.log <<_ACEOF
2173 This file contains any messages produced by compilers while
2174 running configure, to aid debugging if configure makes a mistake.
2175
2176 It was created by Cycript $as_me 0.9, which was
2177 generated by GNU Autoconf 2.69. Invocation command line was
2178
2179 $ $0 $@
2180
2181 _ACEOF
2182 exec 5>>config.log
2183 {
2184 cat <<_ASUNAME
2185 ## --------- ##
2186 ## Platform. ##
2187 ## --------- ##
2188
2189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2194
2195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2197
2198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2201 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2205
2206 _ASUNAME
2207
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 $as_echo "PATH: $as_dir"
2214 done
2215 IFS=$as_save_IFS
2216
2217 } >&5
2218
2219 cat >&5 <<_ACEOF
2220
2221
2222 ## ----------- ##
2223 ## Core tests. ##
2224 ## ----------- ##
2225
2226 _ACEOF
2227
2228
2229 # Keep a trace of the command line.
2230 # Strip out --no-create and --no-recursion so they do not pile up.
2231 # Strip out --silent because we don't want to record it for future runs.
2232 # Also quote any args containing shell meta-characters.
2233 # Make two passes to allow for proper duplicate-argument suppression.
2234 ac_configure_args=
2235 ac_configure_args0=
2236 ac_configure_args1=
2237 ac_must_keep_next=false
2238 for ac_pass in 1 2
2239 do
2240 for ac_arg
2241 do
2242 case $ac_arg in
2243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2245 | -silent | --silent | --silen | --sile | --sil)
2246 continue ;;
2247 *\'*)
2248 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 esac
2250 case $ac_pass in
2251 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 2)
2253 as_fn_append ac_configure_args1 " '$ac_arg'"
2254 if test $ac_must_keep_next = true; then
2255 ac_must_keep_next=false # Got value, back to normal.
2256 else
2257 case $ac_arg in
2258 *=* | --config-cache | -C | -disable-* | --disable-* \
2259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2261 | -with-* | --with-* | -without-* | --without-* | --x)
2262 case "$ac_configure_args0 " in
2263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 esac
2265 ;;
2266 -* ) ac_must_keep_next=true ;;
2267 esac
2268 fi
2269 as_fn_append ac_configure_args " '$ac_arg'"
2270 ;;
2271 esac
2272 done
2273 done
2274 { ac_configure_args0=; unset ac_configure_args0;}
2275 { ac_configure_args1=; unset ac_configure_args1;}
2276
2277 # When interrupted or exit'd, cleanup temporary files, and complete
2278 # config.log. We remove comments because anyway the quotes in there
2279 # would cause problems or look ugly.
2280 # WARNING: Use '\'' to represent an apostrophe within the trap.
2281 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2282 trap 'exit_status=$?
2283 # Save into config.log some information that might help in debugging.
2284 {
2285 echo
2286
2287 $as_echo "## ---------------- ##
2288 ## Cache variables. ##
2289 ## ---------------- ##"
2290 echo
2291 # The following way of writing the cache mishandles newlines in values,
2292 (
2293 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in #(
2296 *${as_nl}*)
2297 case $ac_var in #(
2298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2300 esac
2301 case $ac_var in #(
2302 _ | IFS | as_nl) ;; #(
2303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304 *) { eval $ac_var=; unset $ac_var;} ;;
2305 esac ;;
2306 esac
2307 done
2308 (set) 2>&1 |
2309 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2310 *${as_nl}ac_space=\ *)
2311 sed -n \
2312 "s/'\''/'\''\\\\'\'''\''/g;
2313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2314 ;; #(
2315 *)
2316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2317 ;;
2318 esac |
2319 sort
2320 )
2321 echo
2322
2323 $as_echo "## ----------------- ##
2324 ## Output variables. ##
2325 ## ----------------- ##"
2326 echo
2327 for ac_var in $ac_subst_vars
2328 do
2329 eval ac_val=\$$ac_var
2330 case $ac_val in
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 esac
2333 $as_echo "$ac_var='\''$ac_val'\''"
2334 done | sort
2335 echo
2336
2337 if test -n "$ac_subst_files"; then
2338 $as_echo "## ------------------- ##
2339 ## File substitutions. ##
2340 ## ------------------- ##"
2341 echo
2342 for ac_var in $ac_subst_files
2343 do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in
2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 esac
2348 $as_echo "$ac_var='\''$ac_val'\''"
2349 done | sort
2350 echo
2351 fi
2352
2353 if test -s confdefs.h; then
2354 $as_echo "## ----------- ##
2355 ## confdefs.h. ##
2356 ## ----------- ##"
2357 echo
2358 cat confdefs.h
2359 echo
2360 fi
2361 test "$ac_signal" != 0 &&
2362 $as_echo "$as_me: caught signal $ac_signal"
2363 $as_echo "$as_me: exit $exit_status"
2364 } >&5
2365 rm -f core *.core core.conftest.* &&
2366 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2367 exit $exit_status
2368 ' 0
2369 for ac_signal in 1 2 13 15; do
2370 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2371 done
2372 ac_signal=0
2373
2374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2375 rm -f -r conftest* confdefs.h
2376
2377 $as_echo "/* confdefs.h */" > confdefs.h
2378
2379 # Predefined preprocessor variables.
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_NAME "$PACKAGE_NAME"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_STRING "$PACKAGE_STRING"
2395 _ACEOF
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399 _ACEOF
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_URL "$PACKAGE_URL"
2403 _ACEOF
2404
2405
2406 # Let the site file select an alternate cache file if it wants to.
2407 # Prefer an explicitly selected file to automatically selected ones.
2408 ac_site_file1=NONE
2409 ac_site_file2=NONE
2410 if test -n "$CONFIG_SITE"; then
2411 # We do not want a PATH search for config.site.
2412 case $CONFIG_SITE in #((
2413 -*) ac_site_file1=./$CONFIG_SITE;;
2414 */*) ac_site_file1=$CONFIG_SITE;;
2415 *) ac_site_file1=./$CONFIG_SITE;;
2416 esac
2417 elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2420 else
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2423 fi
2424 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425 do
2426 test "x$ac_site_file" = xNONE && continue
2427 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2431 . "$ac_site_file" \
2432 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 as_fn_error $? "failed to load site script $ac_site_file
2435 See \`config.log' for more details" "$LINENO" 5; }
2436 fi
2437 done
2438
2439 if test -r "$cache_file"; then
2440 # Some versions of bash will fail to source /dev/null (special files
2441 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2442 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2444 $as_echo "$as_me: loading cache $cache_file" >&6;}
2445 case $cache_file in
2446 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2447 *) . "./$cache_file";;
2448 esac
2449 fi
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2452 $as_echo "$as_me: creating cache $cache_file" >&6;}
2453 >$cache_file
2454 fi
2455
2456 # Check that the precious variables saved in the cache have kept the same
2457 # value.
2458 ac_cache_corrupted=false
2459 for ac_var in $ac_precious_vars; do
2460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2461 eval ac_new_set=\$ac_env_${ac_var}_set
2462 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2463 eval ac_new_val=\$ac_env_${ac_var}_value
2464 case $ac_old_set,$ac_new_set in
2465 set,)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2467 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,set)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2471 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2473 ,);;
2474 *)
2475 if test "x$ac_old_val" != "x$ac_new_val"; then
2476 # differences in whitespace do not lead to failure.
2477 ac_old_val_w=`echo x $ac_old_val`
2478 ac_new_val_w=`echo x $ac_new_val`
2479 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2481 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2482 ac_cache_corrupted=:
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2485 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2486 eval $ac_var=\$ac_old_val
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2489 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2491 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2492 fi;;
2493 esac
2494 # Pass precious variables to config.status.
2495 if test "$ac_new_set" = set; then
2496 case $ac_new_val in
2497 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2498 *) ac_arg=$ac_var=$ac_new_val ;;
2499 esac
2500 case " $ac_configure_args " in
2501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2502 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503 esac
2504 fi
2505 done
2506 if $ac_cache_corrupted; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2510 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2511 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2512 fi
2513 ## -------------------- ##
2514 ## Main body of script. ##
2515 ## -------------------- ##
2516
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524
2525
2526
2527 ac_aux_dir=
2528 for ac_dir in . "$srcdir"/.; do
2529 if test -f "$ac_dir/install-sh"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/install-sh -c"
2532 break
2533 elif test -f "$ac_dir/install.sh"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/install.sh -c"
2536 break
2537 elif test -f "$ac_dir/shtool"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/shtool install -c"
2540 break
2541 fi
2542 done
2543 if test -z "$ac_aux_dir"; then
2544 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2545 fi
2546
2547 # These three variables are undocumented and unsupported,
2548 # and are intended to be withdrawn in a future Autoconf release.
2549 # They can cause serious problems if a builder's source tree is in a directory
2550 # whose full name contains unusual characters.
2551 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2552 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2553 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2554
2555
2556
2557 ac_config_headers="$ac_config_headers config.h"
2558
2559
2560 am__api_version='1.13'
2561
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2568 # AIX /bin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if ${ac_cv_path_install+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2593 *)
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2603 :
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2607 :
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2620 fi
2621 fi
2622 fi
2623 done
2624 done
2625 ;;
2626 esac
2627
2628 done
2629 IFS=$as_save_IFS
2630
2631 rm -rf conftest.one conftest.two conftest.dir
2632
2633 fi
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2642 fi
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2646
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2657 # Reject unsafe characters in $srcdir or the absolute working directory
2658 # name. Accept space and tab only in the latter.
2659 am_lf='
2660 '
2661 case `pwd` in
2662 *[\\\"\#\$\&\'\`$am_lf]*)
2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2664 esac
2665 case $srcdir in
2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2668 esac
2669
2670 # Do 'set' in a subshell so we don't clobber the current shell's
2671 # arguments. Must try -L first in case configure is actually a
2672 # symlink; some systems play weird games with the mod time of symlinks
2673 # (eg FreeBSD returns the mod time of the symlink's containing
2674 # directory).
2675 if (
2676 am_has_slept=no
2677 for am_try in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.file
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2683 fi
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2693 fi
2694 if test "$2" = conftest.file || test $am_try -eq 2; then
2695 break
2696 fi
2697 # Just in case.
2698 sleep 1
2699 am_has_slept=yes
2700 done
2701 test "$2" = conftest.file
2702 )
2703 then
2704 # Ok.
2705 :
2706 else
2707 as_fn_error $? "newly created file is older than distributed files!
2708 Check your system clock" "$LINENO" 5
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711 $as_echo "yes" >&6; }
2712 # If we didn't sleep, we still need to ensure time stamps of config.status and
2713 # generated files are strictly newer.
2714 am_sleep_pid=
2715 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716 ( sleep 1 ) &
2717 am_sleep_pid=$!
2718 fi
2719
2720 rm -f conftest.file
2721
2722 test "$program_prefix" != NONE &&
2723 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724 # Use a double $ so make ignores it.
2725 test "$program_suffix" != NONE &&
2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727 # Double any \ or $.
2728 # By default was `s,x,x', remove it if useless.
2729 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
2732 # expand $ac_aux_dir to an absolute path
2733 am_aux_dir=`cd $ac_aux_dir && pwd`
2734
2735 if test x"${MISSING+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 *)
2740 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741 esac
2742 fi
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
2746 else
2747 am_missing_run=
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2750 fi
2751
2752 if test x"${install_sh}" != xset; then
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 *)
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2759 fi
2760
2761 # Installed binaries are usually stripped using 'strip' when the user
2762 # run "make install-strip". However 'strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the 'STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}strip; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_STRIP+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 STRIP=$ac_cv_prog_STRIP
2795 if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797 $as_echo "$STRIP" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808 set dummy strip; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_STRIP="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835 if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837 $as_echo "$ac_ct_STRIP" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843 if test "x$ac_ct_STRIP" = x; then
2844 STRIP=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852 STRIP=$ac_ct_STRIP
2853 fi
2854 else
2855 STRIP="$ac_cv_prog_STRIP"
2856 fi
2857
2858 fi
2859 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863 if test -z "$MKDIR_P"; then
2864 if ${ac_cv_path_mkdir+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_prog in mkdir gmkdir; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 break 3;;
2881 esac
2882 done
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888
2889 test -d ./--version && rmdir ./--version
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P="$ac_cv_path_mkdir -p"
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 MKDIR_P="$ac_install_sh -d"
2898 fi
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901 $as_echo "$MKDIR_P" >&6; }
2902
2903 for ac_prog in gawk mawk nawk awk
2904 do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_AWK+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 AWK=$ac_cv_prog_AWK
2933 if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935 $as_echo "$AWK" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 fi
2940
2941
2942 test -n "$AWK" && break
2943 done
2944
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947 set x ${MAKE-make}
2948 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2949 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 cat >conftest.make <<\_ACEOF
2953 SHELL = /bin/sh
2954 all:
2955 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956 _ACEOF
2957 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 *@@@%%%=?*=@@@%%%*)
2960 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 *)
2962 eval ac_cv_prog_make_${ac_make}_set=no;;
2963 esac
2964 rm -f conftest.make
2965 fi
2966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 $as_echo "yes" >&6; }
2969 SET_MAKE=
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2974 fi
2975
2976 rm -rf .tst 2>/dev/null
2977 mkdir .tst 2>/dev/null
2978 if test -d .tst; then
2979 am__leading_dot=.
2980 else
2981 am__leading_dot=_
2982 fi
2983 rmdir .tst 2>/dev/null
2984
2985 # Check whether --enable-silent-rules was given.
2986 if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2988 fi
2989
2990 case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994 esac
2995 am_make=${MAKE-make}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998 if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if $as_echo 'TRUE=$(BAR$(V))
3002 BAR0=false
3003 BAR1=true
3004 V=1
3005 am__doit:
3006 @$(TRUE)
3007 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3009 else
3010 am_cv_make_support_nested_variables=no
3011 fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018 else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021 fi
3022 AM_BACKSLASH='\'
3023
3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031 fi
3032 fi
3033
3034 # test whether we have cygpath
3035 if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041 fi
3042
3043
3044 # Define the identity of the package.
3045 PACKAGE='cycript'
3046 VERSION='0.9'
3047
3048
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE "$PACKAGE"
3051 _ACEOF
3052
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define VERSION "$VERSION"
3056 _ACEOF
3057
3058 # Some tools Automake needs.
3059
3060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3061
3062
3063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3064
3065
3066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3067
3068
3069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3070
3071
3072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073
3074 # For better backward compatibility. To be removed once Automake 1.9.x
3075 # dies out for good. For more background, see:
3076 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3077 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3078 mkdir_p='$(MKDIR_P)'
3079
3080 # We need awk for the "check" target. The system "awk" is bad on
3081 # some platforms.
3082 # Always define AMTAR for backward compatibility. Yes, it's still used
3083 # in the wild :-( We should find a proper way to deprecate it ...
3084 AMTAR='$${TAR-tar}'
3085
3086 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3087
3088
3089
3090
3091
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3094 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3095 # Check whether --enable-maintainer-mode was given.
3096 if test "${enable_maintainer_mode+set}" = set; then :
3097 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3098 else
3099 USE_MAINTAINER_MODE=no
3100 fi
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3103 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3104 if test $USE_MAINTAINER_MODE = yes; then
3105 MAINTAINER_MODE_TRUE=
3106 MAINTAINER_MODE_FALSE='#'
3107 else
3108 MAINTAINER_MODE_TRUE='#'
3109 MAINTAINER_MODE_FALSE=
3110 fi
3111
3112 MAINT=$MAINTAINER_MODE_TRUE
3113
3114
3115
3116 am_cv_CC_dependencies_compiler_type=none
3117 am_cv_CXX_dependencies_compiler_type=none
3118 am_cv_OBJCXX_dependencies_compiler_type=none
3119
3120 ac_ext=cpp
3121 ac_cpp='$CXXCPP $CPPFLAGS'
3122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3125 if test -z "$CXX"; then
3126 if test -n "$CCC"; then
3127 CXX=$CCC
3128 else
3129 if test -n "$ac_tool_prefix"; then
3130 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3131 do
3132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CXX+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$CXX"; then
3140 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CXX=$ac_cv_prog_CXX
3160 if test -n "$CXX"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3162 $as_echo "$CXX" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 test -n "$CXX" && break
3170 done
3171 fi
3172 if test -z "$CXX"; then
3173 ac_ct_CXX=$CXX
3174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3175 do
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$ac_ct_CXX"; then
3184 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_CXX="$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3204 if test -n "$ac_ct_CXX"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3206 $as_echo "$ac_ct_CXX" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 test -n "$ac_ct_CXX" && break
3214 done
3215
3216 if test "x$ac_ct_CXX" = x; then
3217 CXX="g++"
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 CXX=$ac_ct_CXX
3226 fi
3227 fi
3228
3229 fi
3230 fi
3231 # Provide some information about the compiler.
3232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3233 set X $ac_compile
3234 ac_compiler=$2
3235 for ac_option in --version -v -V -qversion; do
3236 { { ac_try="$ac_compiler $ac_option >&5"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3244 ac_status=$?
3245 if test -s conftest.err; then
3246 sed '10a\
3247 ... rest of stderr output deleted ...
3248 10q' conftest.err >conftest.er1
3249 cat conftest.er1 >&5
3250 fi
3251 rm -f conftest.er1 conftest.err
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 done
3255
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3273 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275
3276 # The possible output files:
3277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3278
3279 ac_rmfiles=
3280 for ac_file in $ac_files
3281 do
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3285 esac
3286 done
3287 rm -f $ac_rmfiles
3288
3289 if { { ac_try="$ac_link_default"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_link_default") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3303 # so that the user can short-circuit this test for compilers unknown to
3304 # Autoconf.
3305 for ac_file in $ac_files ''
3306 do
3307 test -f "$ac_file" || continue
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3310 ;;
3311 [ab].out )
3312 # We found the default executable, but exeext='' is most
3313 # certainly right.
3314 break;;
3315 *.* )
3316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317 then :; else
3318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 fi
3320 # We set ac_cv_exeext here because the later test for it is not
3321 # safe: cross compilers may not add the suffix if given an `-o'
3322 # argument, so we may need to know it at that point already.
3323 # Even if this section looks crufty: it has the advantage of
3324 # actually working.
3325 break;;
3326 * )
3327 break;;
3328 esac
3329 done
3330 test "$ac_cv_exeext" = no && ac_cv_exeext=
3331
3332 else
3333 ac_file=''
3334 fi
3335 if test -z "$ac_file"; then :
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error 77 "C++ compiler cannot create executables
3344 See \`config.log' for more details" "$LINENO" 5; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3350 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3352 $as_echo "$ac_file" >&6; }
3353 ac_exeext=$ac_cv_exeext
3354
3355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3356 ac_clean_files=$ac_clean_files_save
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3358 $as_echo_n "checking for suffix of executables... " >&6; }
3359 if { { ac_try="$ac_link"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3372 # work properly (i.e., refer to `conftest.exe'), while it won't with
3373 # `rm'.
3374 for ac_file in conftest.exe conftest conftest.*; do
3375 test -f "$ac_file" || continue
3376 case $ac_file in
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379 break;;
3380 * ) break;;
3381 esac
3382 done
3383 else
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3387 See \`config.log' for more details" "$LINENO" 5; }
3388 fi
3389 rm -f conftest conftest$ac_cv_exeext
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3391 $as_echo "$ac_cv_exeext" >&6; }
3392
3393 rm -f conftest.$ac_ext
3394 EXEEXT=$ac_cv_exeext
3395 ac_exeext=$EXEEXT
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398 #include <stdio.h>
3399 int
3400 main ()
3401 {
3402 FILE *f = fopen ("conftest.out", "w");
3403 return ferror (f) || fclose (f) != 0;
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 ac_clean_files="$ac_clean_files conftest.out"
3410 # Check that the compiler produces executables we can run. If not, either
3411 # the compiler is broken, or we cross compile.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3413 $as_echo_n "checking whether we are cross compiling... " >&6; }
3414 if test "$cross_compiling" != yes; then
3415 { { ac_try="$ac_link"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_link") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }
3426 if { ac_try='./conftest$ac_cv_exeext'
3427 { { case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_try") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; }; then
3437 cross_compiling=no
3438 else
3439 if test "$cross_compiling" = maybe; then
3440 cross_compiling=yes
3441 else
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot run C++ compiled programs.
3445 If you meant to cross compile, use \`--host'.
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 fi
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3451 $as_echo "$cross_compiling" >&6; }
3452
3453 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3454 ac_clean_files=$ac_clean_files_save
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456 $as_echo_n "checking for suffix of object files... " >&6; }
3457 if ${ac_cv_objext+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462
3463 int
3464 main ()
3465 {
3466
3467 ;
3468 return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.o conftest.obj
3472 if { { ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compile") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 for ac_file in conftest.o conftest.obj conftest.*; do
3484 test -f "$ac_file" || continue;
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 break;;
3489 esac
3490 done
3491 else
3492 $as_echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "cannot compute suffix of object files: cannot compile
3498 See \`config.log' for more details" "$LINENO" 5; }
3499 fi
3500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503 $as_echo "$ac_cv_objext" >&6; }
3504 OBJEXT=$ac_cv_objext
3505 ac_objext=$OBJEXT
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3507 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3508 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513
3514 int
3515 main ()
3516 {
3517 #ifndef __GNUC__
3518 choke me
3519 #endif
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_cxx_try_compile "$LINENO"; then :
3526 ac_compiler_gnu=yes
3527 else
3528 ac_compiler_gnu=no
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3532
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3535 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3536 if test $ac_compiler_gnu = yes; then
3537 GXX=yes
3538 else
3539 GXX=
3540 fi
3541 ac_test_CXXFLAGS=${CXXFLAGS+set}
3542 ac_save_CXXFLAGS=$CXXFLAGS
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3544 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3545 if ${ac_cv_prog_cxx_g+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3549 ac_cxx_werror_flag=yes
3550 ac_cv_prog_cxx_g=no
3551 CXXFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_cxx_try_compile "$LINENO"; then :
3564 ac_cv_prog_cxx_g=yes
3565 else
3566 CXXFLAGS=""
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_cxx_try_compile "$LINENO"; then :
3579
3580 else
3581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3582 CXXFLAGS="-g"
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585
3586 int
3587 main ()
3588 {
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 if ac_fn_cxx_try_compile "$LINENO"; then :
3595 ac_cv_prog_cxx_g=yes
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3605 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3606 if test "$ac_test_CXXFLAGS" = set; then
3607 CXXFLAGS=$ac_save_CXXFLAGS
3608 elif test $ac_cv_prog_cxx_g = yes; then
3609 if test "$GXX" = yes; then
3610 CXXFLAGS="-g -O2"
3611 else
3612 CXXFLAGS="-g"
3613 fi
3614 else
3615 if test "$GXX" = yes; then
3616 CXXFLAGS="-O2"
3617 else
3618 CXXFLAGS=
3619 fi
3620 fi
3621 ac_ext=c
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 DEPDIR="${am__leading_dot}deps"
3627
3628 ac_config_commands="$ac_config_commands depfiles"
3629
3630
3631 am_make=${MAKE-make}
3632 cat > confinc << 'END'
3633 am__doit:
3634 @echo this is the am__doit target
3635 .PHONY: am__doit
3636 END
3637 # If we don't find an include directive, just comment out the code.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3639 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3640 am__include="#"
3641 am__quote=
3642 _am_result=none
3643 # First try GNU make style include.
3644 echo "include confinc" > confmf
3645 # Ignore all kinds of additional output from 'make'.
3646 case `$am_make -s -f confmf 2> /dev/null` in #(
3647 *the\ am__doit\ target*)
3648 am__include=include
3649 am__quote=
3650 _am_result=GNU
3651 ;;
3652 esac
3653 # Now try BSD make style include.
3654 if test "$am__include" = "#"; then
3655 echo '.include "confinc"' > confmf
3656 case `$am_make -s -f confmf 2> /dev/null` in #(
3657 *the\ am__doit\ target*)
3658 am__include=.include
3659 am__quote="\""
3660 _am_result=BSD
3661 ;;
3662 esac
3663 fi
3664
3665
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3667 $as_echo "$_am_result" >&6; }
3668 rm -f confinc confmf
3669
3670 # Check whether --enable-dependency-tracking was given.
3671 if test "${enable_dependency_tracking+set}" = set; then :
3672 enableval=$enable_dependency_tracking;
3673 fi
3674
3675 if test "x$enable_dependency_tracking" != xno; then
3676 am_depcomp="$ac_aux_dir/depcomp"
3677 AMDEPBACKSLASH='\'
3678 am__nodep='_no'
3679 fi
3680 if test "x$enable_dependency_tracking" != xno; then
3681 AMDEP_TRUE=
3682 AMDEP_FALSE='#'
3683 else
3684 AMDEP_TRUE='#'
3685 AMDEP_FALSE=
3686 fi
3687
3688
3689
3690 depcc="$CXX" am_compiler_list=
3691
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3693 $as_echo_n "checking dependency style of $depcc... " >&6; }
3694 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3698 # We make a subdir and do the tests there. Otherwise we can end up
3699 # making bogus files that we don't know about and never remove. For
3700 # instance it was reported that on HP-UX the gcc test will end up
3701 # making a dummy file named 'D' -- because '-MD' means "put the output
3702 # in D".
3703 rm -rf conftest.dir
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CXX_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3738 # Solaris 10 /bin/sh.
3739 echo '/* dummy */' > sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
3743 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle '-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs.
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
3749 case $depmode in
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
3754 nosideeffect)
3755 # After this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested.
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
3763 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3764 # This compiler won't grok '-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
3770 none) break ;;
3771 esac
3772 if depmode=$depmode \
3773 source=sub/conftest.c object=$am__obj \
3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3776 >/dev/null 2>conftest.err &&
3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CXX_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
3798 else
3799 am_cv_CXX_dependencies_compiler_type=none
3800 fi
3801
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3805 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3806
3807 if
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCXX_TRUE=
3811 am__fastdepCXX_FALSE='#'
3812 else
3813 am__fastdepCXX_TRUE='#'
3814 am__fastdepCXX_FALSE=
3815 fi
3816
3817
3818 ac_ext=mm
3819 ac_cpp='$OBJCXXCPP $CPPFLAGS'
3820 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in g++ objc++ objcxx c++ CXX
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if ${ac_cv_prog_OBJCXX+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -n "$OBJCXX"; then
3834 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851 fi
3852 fi
3853 OBJCXX=$ac_cv_prog_OBJCXX
3854 if test -n "$OBJCXX"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3856 $as_echo "$OBJCXX" >&6; }
3857 else
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3860 fi
3861
3862
3863 test -n "$OBJCXX" && break
3864 done
3865 fi
3866 if test -z "$OBJCXX"; then
3867 ac_ct_OBJCXX=$OBJCXX
3868 for ac_prog in g++ objc++ objcxx c++ CXX
3869 do
3870 # Extract the first word of "$ac_prog", so it can be a program name with args.
3871 set dummy $ac_prog; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 if test -n "$ac_ct_OBJCXX"; then
3878 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 break 2
3890 fi
3891 done
3892 done
3893 IFS=$as_save_IFS
3894
3895 fi
3896 fi
3897 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3898 if test -n "$ac_ct_OBJCXX"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3900 $as_echo "$ac_ct_OBJCXX" >&6; }
3901 else
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 fi
3905
3906
3907 test -n "$ac_ct_OBJCXX" && break
3908 done
3909
3910 if test "x$ac_ct_OBJCXX" = x; then
3911 OBJCXX="g++"
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914 yes:)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917 ac_tool_warned=yes ;;
3918 esac
3919 OBJCXX=$ac_ct_OBJCXX
3920 fi
3921 fi
3922
3923 # Provide some information about the compiler.
3924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3925 set X $ac_compile
3926 ac_compiler=$2
3927 for ac_option in --version -v -V -qversion; do
3928 { { ac_try="$ac_compiler $ac_option >&5"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3936 ac_status=$?
3937 if test -s conftest.err; then
3938 sed '10a\
3939 ... rest of stderr output deleted ...
3940 10q' conftest.err >conftest.er1
3941 cat conftest.er1 >&5
3942 fi
3943 rm -f conftest.er1 conftest.err
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }
3946 done
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3949 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3950 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959 #ifndef __GNUC__
3960 choke me
3961 #endif
3962
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_objcxx_try_compile "$LINENO"; then :
3968 ac_compiler_gnu=yes
3969 else
3970 ac_compiler_gnu=no
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
3974
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3977 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3978 if test $ac_compiler_gnu = yes; then
3979 GOBJCXX=yes
3980 else
3981 GOBJCXX=
3982 fi
3983 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3984 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3986 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3987 if ${ac_cv_prog_objcxx_g+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3991 ac_objcxx_werror_flag=yes
3992 ac_cv_prog_objcxx_g=no
3993 OBJCXXFLAGS="-g"
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_objcxx_try_compile "$LINENO"; then :
4006 ac_cv_prog_objcxx_g=yes
4007 else
4008 OBJCXXFLAGS=""
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012 int
4013 main ()
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_objcxx_try_compile "$LINENO"; then :
4021
4022 else
4023 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4024 OBJCXXFLAGS="-g"
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main ()
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_objcxx_try_compile "$LINENO"; then :
4037 ac_cv_prog_objcxx_g=yes
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4047 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4048 if test "$ac_test_OBJCXXFLAGS" = set; then
4049 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4050 elif test $ac_cv_prog_objcxx_g = yes; then
4051 if test "$GOBJCXX" = yes; then
4052 OBJCXXFLAGS="-g -O2"
4053 else
4054 OBJCXXFLAGS="-g"
4055 fi
4056 else
4057 if test "$GOBJCXX" = yes; then
4058 OBJCXXFLAGS="-O2"
4059 else
4060 OBJCXXFLAGS=
4061 fi
4062 fi
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072 $as_echo_n "checking dependency style of $depcc... " >&6; }
4073 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077 # We make a subdir and do the tests there. Otherwise we can end up
4078 # making bogus files that we don't know about and never remove. For
4079 # instance it was reported that on HP-UX the gcc test will end up
4080 # making a dummy file named 'D' -- because '-MD' means "put the output
4081 # in D".
4082 rm -rf conftest.dir
4083 mkdir conftest.dir
4084 # Copy depcomp to subdir because otherwise we won't find it if we're
4085 # using a relative directory.
4086 cp "$am_depcomp" conftest.dir
4087 cd conftest.dir
4088 # We will build objects and dependencies in a subdirectory because
4089 # it helps to detect inapplicable dependency modes. For instance
4090 # both Tru64's cc and ICC support -MD to output dependencies as a
4091 # side effect of compilation, but ICC will put the dependencies in
4092 # the current directory while Tru64 will put them in the object
4093 # directory.
4094 mkdir sub
4095
4096 am_cv_OBJCXX_dependencies_compiler_type=none
4097 if test "$am_compiler_list" = ""; then
4098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4099 fi
4100 am__universal=false
4101
4102
4103 for depmode in $am_compiler_list; do
4104 # Setup a source with many dependencies, because some compilers
4105 # like to wrap large dependency lists on column 80 (with \), and
4106 # we should not choose a depcomp mode which is confused by this.
4107 #
4108 # We need to recreate these files for each test, as the compiler may
4109 # overwrite some of them when testing with obscure command lines.
4110 # This happens at least with the AIX C compiler.
4111 : > sub/conftest.c
4112 for i in 1 2 3 4 5 6; do
4113 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4114 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4115 # Solaris 10 /bin/sh.
4116 echo '/* dummy */' > sub/conftst$i.h
4117 done
4118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4119
4120 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4121 # mode. It turns out that the SunPro C++ compiler does not properly
4122 # handle '-M -o', and we need to detect this. Also, some Intel
4123 # versions had trouble with output in subdirs.
4124 am__obj=sub/conftest.${OBJEXT-o}
4125 am__minus_obj="-o $am__obj"
4126 case $depmode in
4127 gcc)
4128 # This depmode causes a compiler race in universal mode.
4129 test "$am__universal" = false || continue
4130 ;;
4131 nosideeffect)
4132 # After this tag, mechanisms are not by side-effect, so they'll
4133 # only be used when explicitly requested.
4134 if test "x$enable_dependency_tracking" = xyes; then
4135 continue
4136 else
4137 break
4138 fi
4139 ;;
4140 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4141 # This compiler won't grok '-c -o', but also, the minuso test has
4142 # not run yet. These depmodes are late enough in the game, and
4143 # so weak that their functioning should not be impacted.
4144 am__obj=conftest.${OBJEXT-o}
4145 am__minus_obj=
4146 ;;
4147 none) break ;;
4148 esac
4149 if depmode=$depmode \
4150 source=sub/conftest.c object=$am__obj \
4151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4152 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4153 >/dev/null 2>conftest.err &&
4154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4156 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4158 # icc doesn't choke on unknown options, it will just issue warnings
4159 # or remarks (even with -Werror). So we grep stderr for any message
4160 # that says an option was ignored or not supported.
4161 # When given -MP, icc 7.0 and 7.1 complain thusly:
4162 # icc: Command line warning: ignoring option '-M'; no argument required
4163 # The diagnosis changed in icc 8.0:
4164 # icc: Command line remark: option '-MP' not supported
4165 if (grep 'ignoring option' conftest.err ||
4166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4167 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4168 break
4169 fi
4170 fi
4171 done
4172
4173 cd ..
4174 rm -rf conftest.dir
4175 else
4176 am_cv_OBJCXX_dependencies_compiler_type=none
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4181 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4182 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4183
4184 if
4185 test "x$enable_dependency_tracking" != xno \
4186 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4187 am__fastdepOBJCXX_TRUE=
4188 am__fastdepOBJCXX_FALSE='#'
4189 else
4190 am__fastdepOBJCXX_TRUE='#'
4191 am__fastdepOBJCXX_FALSE=
4192 fi
4193
4194
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241 ac_ct_CC=$CC
4242 # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC="gcc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4288 fi
4289 else
4290 CC="$ac_cv_prog_CC"
4291 fi
4292
4293 if test -z "$CC"; then
4294 if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4296 set dummy ${ac_tool_prefix}cc; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_CC+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$CC"; then
4303 ac_cv_prog_CC="$CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_CC="${ac_tool_prefix}cc"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 CC=$ac_cv_prog_CC
4323 if test -n "$CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332 fi
4333 fi
4334 if test -z "$CC"; then
4335 # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC="$CC" # Let the user override the test.
4344 else
4345 ac_prog_rejected=no
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354 ac_prog_rejected=yes
4355 continue
4356 fi
4357 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4368 shift
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4373 shift
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375 fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389 fi
4390 if test -z "$CC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in cl.exe
4393 do
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_CC+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CC=$ac_cv_prog_CC
4422 if test -n "$CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431 test -n "$CC" && break
4432 done
4433 fi
4434 if test -z "$CC"; then
4435 ac_ct_CC=$CC
4436 for ac_prog in cl.exe
4437 do
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_ac_ct_CC="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475 test -n "$ac_ct_CC" && break
4476 done
4477
4478 if test "x$ac_ct_CC" = x; then
4479 CC=""
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CC=$ac_ct_CC
4488 fi
4489 fi
4490
4491 fi
4492
4493
4494 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error $? "no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details" "$LINENO" 5; }
4498
4499 # Provide some information about the compiler.
4500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4501 set X $ac_compile
4502 ac_compiler=$2
4503 for ac_option in --version -v -V -qversion; do
4504 { { ac_try="$ac_compiler $ac_option >&5"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4512 ac_status=$?
4513 if test -s conftest.err; then
4514 sed '10a\
4515 ... rest of stderr output deleted ...
4516 10q' conftest.err >conftest.er1
4517 cat conftest.er1 >&5
4518 fi
4519 rm -f conftest.er1 conftest.err
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4522 done
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4526 if ${ac_cv_c_compiler_gnu+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main ()
4534 {
4535 #ifndef __GNUC__
4536 choke me
4537 #endif
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544 ac_compiler_gnu=yes
4545 else
4546 ac_compiler_gnu=no
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4550
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4553 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4554 if test $ac_compiler_gnu = yes; then
4555 GCC=yes
4556 else
4557 GCC=
4558 fi
4559 ac_test_CFLAGS=${CFLAGS+set}
4560 ac_save_CFLAGS=$CFLAGS
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4562 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4563 if ${ac_cv_prog_cc_g+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 ac_save_c_werror_flag=$ac_c_werror_flag
4567 ac_c_werror_flag=yes
4568 ac_cv_prog_cc_g=no
4569 CFLAGS="-g"
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572
4573 int
4574 main ()
4575 {
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_prog_cc_g=yes
4583 else
4584 CFLAGS=""
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587
4588 int
4589 main ()
4590 {
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597
4598 else
4599 ac_c_werror_flag=$ac_save_c_werror_flag
4600 CFLAGS="-g"
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 int
4605 main ()
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_prog_cc_g=yes
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4623 $as_echo "$ac_cv_prog_cc_g" >&6; }
4624 if test "$ac_test_CFLAGS" = set; then
4625 CFLAGS=$ac_save_CFLAGS
4626 elif test $ac_cv_prog_cc_g = yes; then
4627 if test "$GCC" = yes; then
4628 CFLAGS="-g -O2"
4629 else
4630 CFLAGS="-g"
4631 fi
4632 else
4633 if test "$GCC" = yes; then
4634 CFLAGS="-O2"
4635 else
4636 CFLAGS=
4637 fi
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4640 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4641 if ${ac_cv_prog_cc_c89+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 ac_cv_prog_cc_c89=no
4645 ac_save_CC=$CC
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <stdarg.h>
4649 #include <stdio.h>
4650 struct stat;
4651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4652 struct buf { int x; };
4653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4654 static char *e (p, i)
4655 char **p;
4656 int i;
4657 {
4658 return p[i];
4659 }
4660 static char *f (char * (*g) (char **, int), char **p, ...)
4661 {
4662 char *s;
4663 va_list v;
4664 va_start (v,p);
4665 s = g (p, va_arg (v,int));
4666 va_end (v);
4667 return s;
4668 }
4669
4670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4671 function prototypes and stuff, but not '\xHH' hex character constants.
4672 These don't provoke an error unfortunately, instead are silently treated
4673 as 'x'. The following induces an error, until -std is added to get
4674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4675 array size at least. It's necessary to write '\x00'==0 to get something
4676 that's true only with -std. */
4677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4678
4679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4680 inside strings and character constants. */
4681 #define FOO(x) 'x'
4682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4683
4684 int test (int i, double x);
4685 struct s1 {int (*f) (int a);};
4686 struct s2 {int (*f) (double a);};
4687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4688 int argc;
4689 char **argv;
4690 int
4691 main ()
4692 {
4693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4700 do
4701 CC="$ac_save_CC $ac_arg"
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 ac_cv_prog_cc_c89=$ac_arg
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext
4706 test "x$ac_cv_prog_cc_c89" != "xno" && break
4707 done
4708 rm -f conftest.$ac_ext
4709 CC=$ac_save_CC
4710
4711 fi
4712 # AC_CACHE_VAL
4713 case "x$ac_cv_prog_cc_c89" in
4714 x)
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4716 $as_echo "none needed" >&6; } ;;
4717 xno)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4719 $as_echo "unsupported" >&6; } ;;
4720 *)
4721 CC="$CC $ac_cv_prog_cc_c89"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4723 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4724 esac
4725 if test "x$ac_cv_prog_cc_c89" != xno; then :
4726
4727 fi
4728
4729 ac_ext=c
4730 ac_cpp='$CPP $CPPFLAGS'
4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734
4735 depcc="$CC" am_compiler_list=
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4738 $as_echo_n "checking dependency style of $depcc... " >&6; }
4739 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4743 # We make a subdir and do the tests there. Otherwise we can end up
4744 # making bogus files that we don't know about and never remove. For
4745 # instance it was reported that on HP-UX the gcc test will end up
4746 # making a dummy file named 'D' -- because '-MD' means "put the output
4747 # in D".
4748 rm -rf conftest.dir
4749 mkdir conftest.dir
4750 # Copy depcomp to subdir because otherwise we won't find it if we're
4751 # using a relative directory.
4752 cp "$am_depcomp" conftest.dir
4753 cd conftest.dir
4754 # We will build objects and dependencies in a subdirectory because
4755 # it helps to detect inapplicable dependency modes. For instance
4756 # both Tru64's cc and ICC support -MD to output dependencies as a
4757 # side effect of compilation, but ICC will put the dependencies in
4758 # the current directory while Tru64 will put them in the object
4759 # directory.
4760 mkdir sub
4761
4762 am_cv_CC_dependencies_compiler_type=none
4763 if test "$am_compiler_list" = ""; then
4764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4765 fi
4766 am__universal=false
4767 case " $depcc " in #(
4768 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4769 esac
4770
4771 for depmode in $am_compiler_list; do
4772 # Setup a source with many dependencies, because some compilers
4773 # like to wrap large dependency lists on column 80 (with \), and
4774 # we should not choose a depcomp mode which is confused by this.
4775 #
4776 # We need to recreate these files for each test, as the compiler may
4777 # overwrite some of them when testing with obscure command lines.
4778 # This happens at least with the AIX C compiler.
4779 : > sub/conftest.c
4780 for i in 1 2 3 4 5 6; do
4781 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4782 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4783 # Solaris 10 /bin/sh.
4784 echo '/* dummy */' > sub/conftst$i.h
4785 done
4786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4787
4788 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4789 # mode. It turns out that the SunPro C++ compiler does not properly
4790 # handle '-M -o', and we need to detect this. Also, some Intel
4791 # versions had trouble with output in subdirs.
4792 am__obj=sub/conftest.${OBJEXT-o}
4793 am__minus_obj="-o $am__obj"
4794 case $depmode in
4795 gcc)
4796 # This depmode causes a compiler race in universal mode.
4797 test "$am__universal" = false || continue
4798 ;;
4799 nosideeffect)
4800 # After this tag, mechanisms are not by side-effect, so they'll
4801 # only be used when explicitly requested.
4802 if test "x$enable_dependency_tracking" = xyes; then
4803 continue
4804 else
4805 break
4806 fi
4807 ;;
4808 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4809 # This compiler won't grok '-c -o', but also, the minuso test has
4810 # not run yet. These depmodes are late enough in the game, and
4811 # so weak that their functioning should not be impacted.
4812 am__obj=conftest.${OBJEXT-o}
4813 am__minus_obj=
4814 ;;
4815 none) break ;;
4816 esac
4817 if depmode=$depmode \
4818 source=sub/conftest.c object=$am__obj \
4819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4820 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4821 >/dev/null 2>conftest.err &&
4822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4824 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4826 # icc doesn't choke on unknown options, it will just issue warnings
4827 # or remarks (even with -Werror). So we grep stderr for any message
4828 # that says an option was ignored or not supported.
4829 # When given -MP, icc 7.0 and 7.1 complain thusly:
4830 # icc: Command line warning: ignoring option '-M'; no argument required
4831 # The diagnosis changed in icc 8.0:
4832 # icc: Command line remark: option '-MP' not supported
4833 if (grep 'ignoring option' conftest.err ||
4834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4835 am_cv_CC_dependencies_compiler_type=$depmode
4836 break
4837 fi
4838 fi
4839 done
4840
4841 cd ..
4842 rm -rf conftest.dir
4843 else
4844 am_cv_CC_dependencies_compiler_type=none
4845 fi
4846
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4849 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4850 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4851
4852 if
4853 test "x$enable_dependency_tracking" != xno \
4854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4855 am__fastdepCC_TRUE=
4856 am__fastdepCC_FALSE='#'
4857 else
4858 am__fastdepCC_TRUE='#'
4859 am__fastdepCC_FALSE=
4860 fi
4861
4862
4863
4864 if test -n "$ac_tool_prefix"; then
4865 for ac_prog in ar lib "link -lib"
4866 do
4867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_AR+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$AR"; then
4875 ac_cv_prog_AR="$AR" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 AR=$ac_cv_prog_AR
4895 if test -n "$AR"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4897 $as_echo "$AR" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904 test -n "$AR" && break
4905 done
4906 fi
4907 if test -z "$AR"; then
4908 ac_ct_AR=$AR
4909 for ac_prog in ar lib "link -lib"
4910 do
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$ac_ct_AR"; then
4919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_ac_ct_AR="$ac_prog"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936 fi
4937 fi
4938 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4939 if test -n "$ac_ct_AR"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4941 $as_echo "$ac_ct_AR" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946
4947
4948 test -n "$ac_ct_AR" && break
4949 done
4950
4951 if test "x$ac_ct_AR" = x; then
4952 AR="false"
4953 else
4954 case $cross_compiling:$ac_tool_warned in
4955 yes:)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4959 esac
4960 AR=$ac_ct_AR
4961 fi
4962 fi
4963
4964 : ${AR=ar}
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4967 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4968 if ${am_cv_ar_interface+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 am_cv_ar_interface=ar
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 int some_variable = 0;
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4979 (eval $am_ar_try) 2>&5
4980 ac_status=$?
4981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; }
4983 if test "$ac_status" -eq 0; then
4984 am_cv_ar_interface=ar
4985 else
4986 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4988 (eval $am_ar_try) 2>&5
4989 ac_status=$?
4990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }
4992 if test "$ac_status" -eq 0; then
4993 am_cv_ar_interface=lib
4994 else
4995 am_cv_ar_interface=unknown
4996 fi
4997 fi
4998 rm -f conftest.lib libconftest.a
4999
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5005 $as_echo "$am_cv_ar_interface" >&6; }
5006
5007 case $am_cv_ar_interface in
5008 ar)
5009 ;;
5010 lib)
5011 # Microsoft lib, so override with the ar-lib wrapper script.
5012 # FIXME: It is wrong to rewrite AR.
5013 # But if we don't then we get into trouble of one sort or another.
5014 # A longer-term fix would be to have automake use am__AR in this case,
5015 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5016 # similar.
5017 AR="$am_aux_dir/ar-lib $AR"
5018 ;;
5019 unknown)
5020 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5021 ;;
5022 esac
5023
5024
5025
5026 case `pwd` in
5027 *\ * | *\ *)
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5029 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5030 esac
5031
5032
5033
5034 macro_version='2.4.2'
5035 macro_revision='1.3337'
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049 ltmain="$ac_aux_dir/ltmain.sh"
5050
5051 # Make sure we can run config.sub.
5052 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5053 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5056 $as_echo_n "checking build system type... " >&6; }
5057 if ${ac_cv_build+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 ac_build_alias=$build_alias
5061 test "x$ac_build_alias" = x &&
5062 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5063 test "x$ac_build_alias" = x &&
5064 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5065 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5066 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5067
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5070 $as_echo "$ac_cv_build" >&6; }
5071 case $ac_cv_build in
5072 *-*-*) ;;
5073 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5074 esac
5075 build=$ac_cv_build
5076 ac_save_IFS=$IFS; IFS='-'
5077 set x $ac_cv_build
5078 shift
5079 build_cpu=$1
5080 build_vendor=$2
5081 shift; shift
5082 # Remember, the first character of IFS is used to create $*,
5083 # except with old shells:
5084 build_os=$*
5085 IFS=$ac_save_IFS
5086 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5090 $as_echo_n "checking host system type... " >&6; }
5091 if ${ac_cv_host+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test "x$host_alias" = x; then
5095 ac_cv_host=$ac_cv_build
5096 else
5097 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5098 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5099 fi
5100
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5103 $as_echo "$ac_cv_host" >&6; }
5104 case $ac_cv_host in
5105 *-*-*) ;;
5106 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5107 esac
5108 host=$ac_cv_host
5109 ac_save_IFS=$IFS; IFS='-'
5110 set x $ac_cv_host
5111 shift
5112 host_cpu=$1
5113 host_vendor=$2
5114 shift; shift
5115 # Remember, the first character of IFS is used to create $*,
5116 # except with old shells:
5117 host_os=$*
5118 IFS=$ac_save_IFS
5119 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5120
5121
5122 # Backslashify metacharacters that are still active within
5123 # double-quoted strings.
5124 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5125
5126 # Same as above, but do not quote variable references.
5127 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5128
5129 # Sed substitution to delay expansion of an escaped shell variable in a
5130 # double_quote_subst'ed string.
5131 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5132
5133 # Sed substitution to delay expansion of an escaped single quote.
5134 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5135
5136 # Sed substitution to avoid accidental globbing in evaled expressions
5137 no_glob_subst='s/\*/\\\*/g'
5138
5139 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5141 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5144 $as_echo_n "checking how to print strings... " >&6; }
5145 # Test print first, because it will be a builtin if present.
5146 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5147 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5148 ECHO='print -r --'
5149 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5150 ECHO='printf %s\n'
5151 else
5152 # Use this function as a fallback that always works.
5153 func_fallback_echo ()
5154 {
5155 eval 'cat <<_LTECHO_EOF
5156 $1
5157 _LTECHO_EOF'
5158 }
5159 ECHO='func_fallback_echo'
5160 fi
5161
5162 # func_echo_all arg...
5163 # Invoke $ECHO with all args, space-separated.
5164 func_echo_all ()
5165 {
5166 $ECHO ""
5167 }
5168
5169 case "$ECHO" in
5170 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5171 $as_echo "printf" >&6; } ;;
5172 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5173 $as_echo "print -r" >&6; } ;;
5174 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5175 $as_echo "cat" >&6; } ;;
5176 esac
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5192 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5193 if ${ac_cv_path_SED+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5197 for ac_i in 1 2 3 4 5 6 7; do
5198 ac_script="$ac_script$as_nl$ac_script"
5199 done
5200 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5201 { ac_script=; unset ac_script;}
5202 if test -z "$SED"; then
5203 ac_path_SED_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in sed gsed; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_SED" || continue
5214 # Check for GNU ac_path_SED and select it if it is found.
5215 # Check for GNU $ac_path_SED
5216 case `"$ac_path_SED" --version 2>&1` in
5217 *GNU*)
5218 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5219 *)
5220 ac_count=0
5221 $as_echo_n 0123456789 >"conftest.in"
5222 while :
5223 do
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo '' >> "conftest.nl"
5228 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_SED_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_SED="$ac_path_SED"
5234 ac_path_SED_max=$ac_count
5235 fi
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5238 done
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5240 esac
5241
5242 $ac_path_SED_found && break 3
5243 done
5244 done
5245 done
5246 IFS=$as_save_IFS
5247 if test -z "$ac_cv_path_SED"; then
5248 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5249 fi
5250 else
5251 ac_cv_path_SED=$SED
5252 fi
5253
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5256 $as_echo "$ac_cv_path_SED" >&6; }
5257 SED="$ac_cv_path_SED"
5258 rm -f conftest.sed
5259
5260 test -z "$SED" && SED=sed
5261 Xsed="$SED -e 1s/^X//"
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5274 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5275 if ${ac_cv_path_GREP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -z "$GREP"; then
5279 ac_path_GREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in grep ggrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_GREP" || continue
5290 # Check for GNU ac_path_GREP and select it if it is found.
5291 # Check for GNU $ac_path_GREP
5292 case `"$ac_path_GREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5295 *)
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5299 do
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'GREP' >> "conftest.nl"
5304 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_GREP="$ac_path_GREP"
5310 ac_path_GREP_max=$ac_count
5311 fi
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5317
5318 $ac_path_GREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_GREP"; then
5324 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5325 fi
5326 else
5327 ac_cv_path_GREP=$GREP
5328 fi
5329
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5332 $as_echo "$ac_cv_path_GREP" >&6; }
5333 GREP="$ac_cv_path_GREP"
5334
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5337 $as_echo_n "checking for egrep... " >&6; }
5338 if ${ac_cv_path_EGREP+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5342 then ac_cv_path_EGREP="$GREP -E"
5343 else
5344 if test -z "$EGREP"; then
5345 ac_path_EGREP_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in egrep; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5355 as_fn_executable_p "$ac_path_EGREP" || continue
5356 # Check for GNU ac_path_EGREP and select it if it is found.
5357 # Check for GNU $ac_path_EGREP
5358 case `"$ac_path_EGREP" --version 2>&1` in
5359 *GNU*)
5360 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5361 *)
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo 'EGREP' >> "conftest.nl"
5370 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_EGREP="$ac_path_EGREP"
5376 ac_path_EGREP_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382 esac
5383
5384 $ac_path_EGREP_found && break 3
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_EGREP"; then
5390 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391 fi
5392 else
5393 ac_cv_path_EGREP=$EGREP
5394 fi
5395
5396 fi
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5399 $as_echo "$ac_cv_path_EGREP" >&6; }
5400 EGREP="$ac_cv_path_EGREP"
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5404 $as_echo_n "checking for fgrep... " >&6; }
5405 if ${ac_cv_path_FGREP+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5409 then ac_cv_path_FGREP="$GREP -F"
5410 else
5411 if test -z "$FGREP"; then
5412 ac_path_FGREP_found=false
5413 # Loop through the user's path and test for each of PROGNAME-LIST
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_prog in fgrep; do
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5422 as_fn_executable_p "$ac_path_FGREP" || continue
5423 # Check for GNU ac_path_FGREP and select it if it is found.
5424 # Check for GNU $ac_path_FGREP
5425 case `"$ac_path_FGREP" --version 2>&1` in
5426 *GNU*)
5427 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5428 *)
5429 ac_count=0
5430 $as_echo_n 0123456789 >"conftest.in"
5431 while :
5432 do
5433 cat "conftest.in" "conftest.in" >"conftest.tmp"
5434 mv "conftest.tmp" "conftest.in"
5435 cp "conftest.in" "conftest.nl"
5436 $as_echo 'FGREP' >> "conftest.nl"
5437 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5439 as_fn_arith $ac_count + 1 && ac_count=$as_val
5440 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5441 # Best one so far, save it but keep looking for a better one
5442 ac_cv_path_FGREP="$ac_path_FGREP"
5443 ac_path_FGREP_max=$ac_count
5444 fi
5445 # 10*(2^10) chars as input seems more than enough
5446 test $ac_count -gt 10 && break
5447 done
5448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5449 esac
5450
5451 $ac_path_FGREP_found && break 3
5452 done
5453 done
5454 done
5455 IFS=$as_save_IFS
5456 if test -z "$ac_cv_path_FGREP"; then
5457 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5458 fi
5459 else
5460 ac_cv_path_FGREP=$FGREP
5461 fi
5462
5463 fi
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5466 $as_echo "$ac_cv_path_FGREP" >&6; }
5467 FGREP="$ac_cv_path_FGREP"
5468
5469
5470 test -z "$GREP" && GREP=grep
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 # Check whether --with-gnu-ld was given.
5491 if test "${with_gnu_ld+set}" = set; then :
5492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5493 else
5494 with_gnu_ld=no
5495 fi
5496
5497 ac_prog=ld
5498 if test "$GCC" = yes; then
5499 # Check if gcc -print-prog-name=ld gives a path.
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5501 $as_echo_n "checking for ld used by $CC... " >&6; }
5502 case $host in
5503 *-*-mingw*)
5504 # gcc leaves a trailing carriage return which upsets mingw
5505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5506 *)
5507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5508 esac
5509 case $ac_prog in
5510 # Accept absolute paths.
5511 [\\/]* | ?:[\\/]*)
5512 re_direlt='/[^/][^/]*/\.\./'
5513 # Canonicalize the pathname of ld
5514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5517 done
5518 test -z "$LD" && LD="$ac_prog"
5519 ;;
5520 "")
5521 # If it fails, then pretend we aren't using GCC.
5522 ac_prog=ld
5523 ;;
5524 *)
5525 # If it is relative, then search for the first ld in PATH.
5526 with_gnu_ld=unknown
5527 ;;
5528 esac
5529 elif test "$with_gnu_ld" = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5531 $as_echo_n "checking for GNU ld... " >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5534 $as_echo_n "checking for non-GNU ld... " >&6; }
5535 fi
5536 if ${lt_cv_path_LD+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -z "$LD"; then
5540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5541 for ac_dir in $PATH; do
5542 IFS="$lt_save_ifs"
5543 test -z "$ac_dir" && ac_dir=.
5544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5545 lt_cv_path_LD="$ac_dir/$ac_prog"
5546 # Check to see if the program is GNU ld. I'd rather use --version,
5547 # but apparently some variants of GNU ld only accept -v.
5548 # Break only if it was the GNU/non-GNU ld that we prefer.
5549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5550 *GNU* | *'with BFD'*)
5551 test "$with_gnu_ld" != no && break
5552 ;;
5553 *)
5554 test "$with_gnu_ld" != yes && break
5555 ;;
5556 esac
5557 fi
5558 done
5559 IFS="$lt_save_ifs"
5560 else
5561 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5562 fi
5563 fi
5564
5565 LD="$lt_cv_path_LD"
5566 if test -n "$LD"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5568 $as_echo "$LD" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5575 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5576 if ${lt_cv_prog_gnu_ld+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5580 case `$LD -v 2>&1 </dev/null` in
5581 *GNU* | *'with BFD'*)
5582 lt_cv_prog_gnu_ld=yes
5583 ;;
5584 *)
5585 lt_cv_prog_gnu_ld=no
5586 ;;
5587 esac
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5590 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5591 with_gnu_ld=$lt_cv_prog_gnu_ld
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5602 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5603 if ${lt_cv_path_NM+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$NM"; then
5607 # Let the user override the test.
5608 lt_cv_path_NM="$NM"
5609 else
5610 lt_nm_to_check="${ac_tool_prefix}nm"
5611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5612 lt_nm_to_check="$lt_nm_to_check nm"
5613 fi
5614 for lt_tmp_nm in $lt_nm_to_check; do
5615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5617 IFS="$lt_save_ifs"
5618 test -z "$ac_dir" && ac_dir=.
5619 tmp_nm="$ac_dir/$lt_tmp_nm"
5620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5621 # Check to see if the nm accepts a BSD-compat flag.
5622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5623 # nm: unknown option "B" ignored
5624 # Tru64's nm complains that /dev/null is an invalid object file
5625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5626 */dev/null* | *'Invalid file or object type'*)
5627 lt_cv_path_NM="$tmp_nm -B"
5628 break
5629 ;;
5630 *)
5631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5632 */dev/null*)
5633 lt_cv_path_NM="$tmp_nm -p"
5634 break
5635 ;;
5636 *)
5637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5638 continue # so that we can try to find one that supports BSD flags
5639 ;;
5640 esac
5641 ;;
5642 esac
5643 fi
5644 done
5645 IFS="$lt_save_ifs"
5646 done
5647 : ${lt_cv_path_NM=no}
5648 fi
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5651 $as_echo "$lt_cv_path_NM" >&6; }
5652 if test "$lt_cv_path_NM" != "no"; then
5653 NM="$lt_cv_path_NM"
5654 else
5655 # Didn't find any BSD compatible name lister, look for dumpbin.
5656 if test -n "$DUMPBIN"; then :
5657 # Let the user override the test.
5658 else
5659 if test -n "$ac_tool_prefix"; then
5660 for ac_prog in dumpbin "link -dump"
5661 do
5662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_DUMPBIN+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$DUMPBIN"; then
5670 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 DUMPBIN=$ac_cv_prog_DUMPBIN
5690 if test -n "$DUMPBIN"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5692 $as_echo "$DUMPBIN" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 test -n "$DUMPBIN" && break
5700 done
5701 fi
5702 if test -z "$DUMPBIN"; then
5703 ac_ct_DUMPBIN=$DUMPBIN
5704 for ac_prog in dumpbin "link -dump"
5705 do
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$ac_ct_DUMPBIN"; then
5714 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5734 if test -n "$ac_ct_DUMPBIN"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5736 $as_echo "$ac_ct_DUMPBIN" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742
5743 test -n "$ac_ct_DUMPBIN" && break
5744 done
5745
5746 if test "x$ac_ct_DUMPBIN" = x; then
5747 DUMPBIN=":"
5748 else
5749 case $cross_compiling:$ac_tool_warned in
5750 yes:)
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753 ac_tool_warned=yes ;;
5754 esac
5755 DUMPBIN=$ac_ct_DUMPBIN
5756 fi
5757 fi
5758
5759 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5760 *COFF*)
5761 DUMPBIN="$DUMPBIN -symbols"
5762 ;;
5763 *)
5764 DUMPBIN=:
5765 ;;
5766 esac
5767 fi
5768
5769 if test "$DUMPBIN" != ":"; then
5770 NM="$DUMPBIN"
5771 fi
5772 fi
5773 test -z "$NM" && NM=nm
5774
5775
5776
5777
5778
5779
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5781 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5782 if ${lt_cv_nm_interface+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 lt_cv_nm_interface="BSD nm"
5786 echo "int some_variable = 0;" > conftest.$ac_ext
5787 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5788 (eval "$ac_compile" 2>conftest.err)
5789 cat conftest.err >&5
5790 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5791 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5792 cat conftest.err >&5
5793 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5794 cat conftest.out >&5
5795 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5796 lt_cv_nm_interface="MS dumpbin"
5797 fi
5798 rm -rf conftest*
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5801 $as_echo "$lt_cv_nm_interface" >&6; }
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5804 $as_echo_n "checking whether ln -s works... " >&6; }
5805 LN_S=$as_ln_s
5806 if test "$LN_S" = "ln -s"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5808 $as_echo "yes" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5811 $as_echo "no, using $LN_S" >&6; }
5812 fi
5813
5814 # find the maximum length of command line arguments
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5816 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5817 if ${lt_cv_sys_max_cmd_len+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 i=0
5821 teststring="ABCD"
5822
5823 case $build_os in
5824 msdosdjgpp*)
5825 # On DJGPP, this test can blow up pretty badly due to problems in libc
5826 # (any single argument exceeding 2000 bytes causes a buffer overrun
5827 # during glob expansion). Even if it were fixed, the result of this
5828 # check would be larger than it should be.
5829 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5830 ;;
5831
5832 gnu*)
5833 # Under GNU Hurd, this test is not required because there is
5834 # no limit to the length of command line arguments.
5835 # Libtool will interpret -1 as no limit whatsoever
5836 lt_cv_sys_max_cmd_len=-1;
5837 ;;
5838
5839 cygwin* | mingw* | cegcc*)
5840 # On Win9x/ME, this test blows up -- it succeeds, but takes
5841 # about 5 minutes as the teststring grows exponentially.
5842 # Worse, since 9x/ME are not pre-emptively multitasking,
5843 # you end up with a "frozen" computer, even though with patience
5844 # the test eventually succeeds (with a max line length of 256k).
5845 # Instead, let's just punt: use the minimum linelength reported by
5846 # all of the supported platforms: 8192 (on NT/2K/XP).
5847 lt_cv_sys_max_cmd_len=8192;
5848 ;;
5849
5850 mint*)
5851 # On MiNT this can take a long time and run out of memory.
5852 lt_cv_sys_max_cmd_len=8192;
5853 ;;
5854
5855 amigaos*)
5856 # On AmigaOS with pdksh, this test takes hours, literally.
5857 # So we just punt and use a minimum line length of 8192.
5858 lt_cv_sys_max_cmd_len=8192;
5859 ;;
5860
5861 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5862 # This has been around since 386BSD, at least. Likely further.
5863 if test -x /sbin/sysctl; then
5864 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5865 elif test -x /usr/sbin/sysctl; then
5866 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5867 else
5868 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5869 fi
5870 # And add a safety zone
5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5873 ;;
5874
5875 interix*)
5876 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5877 lt_cv_sys_max_cmd_len=196608
5878 ;;
5879
5880 os2*)
5881 # The test takes a long time on OS/2.
5882 lt_cv_sys_max_cmd_len=8192
5883 ;;
5884
5885 osf*)
5886 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5887 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5888 # nice to cause kernel panics so lets avoid the loop below.
5889 # First set a reasonable default.
5890 lt_cv_sys_max_cmd_len=16384
5891 #
5892 if test -x /sbin/sysconfig; then
5893 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5894 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5895 esac
5896 fi
5897 ;;
5898 sco3.2v5*)
5899 lt_cv_sys_max_cmd_len=102400
5900 ;;
5901 sysv5* | sco5v6* | sysv4.2uw2*)
5902 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5903 if test -n "$kargmax"; then
5904 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5905 else
5906 lt_cv_sys_max_cmd_len=32768
5907 fi
5908 ;;
5909 *)
5910 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5911 if test -n "$lt_cv_sys_max_cmd_len"; then
5912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5914 else
5915 # Make teststring a little bigger before we do anything with it.
5916 # a 1K string should be a reasonable start.
5917 for i in 1 2 3 4 5 6 7 8 ; do
5918 teststring=$teststring$teststring
5919 done
5920 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5921 # If test is not a shell built-in, we'll probably end up computing a
5922 # maximum length that is only half of the actual maximum length, but
5923 # we can't tell.
5924 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5925 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5926 test $i != 17 # 1/2 MB should be enough
5927 do
5928 i=`expr $i + 1`
5929 teststring=$teststring$teststring
5930 done
5931 # Only check the string length outside the loop.
5932 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5933 teststring=
5934 # Add a significant safety factor because C++ compilers can tack on
5935 # massive amounts of additional arguments before passing them to the
5936 # linker. It appears as though 1/2 is a usable value.
5937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5938 fi
5939 ;;
5940 esac
5941
5942 fi
5943
5944 if test -n $lt_cv_sys_max_cmd_len ; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5946 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5949 $as_echo "none" >&6; }
5950 fi
5951 max_cmd_len=$lt_cv_sys_max_cmd_len
5952
5953
5954
5955
5956
5957
5958 : ${CP="cp -f"}
5959 : ${MV="mv -f"}
5960 : ${RM="rm -f"}
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5963 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5964 # Try some XSI features
5965 xsi_shell=no
5966 ( _lt_dummy="a/b/c"
5967 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5968 = c,a/b,b/c, \
5969 && eval 'test $(( 1 + 1 )) -eq 2 \
5970 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5971 && xsi_shell=yes
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5973 $as_echo "$xsi_shell" >&6; }
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5977 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5978 lt_shell_append=no
5979 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5980 >/dev/null 2>&1 \
5981 && lt_shell_append=yes
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5983 $as_echo "$lt_shell_append" >&6; }
5984
5985
5986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5987 lt_unset=unset
5988 else
5989 lt_unset=false
5990 fi
5991
5992
5993
5994
5995
5996 # test EBCDIC or ASCII
5997 case `echo X|tr X '\101'` in
5998 A) # ASCII based system
5999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6000 lt_SP2NL='tr \040 \012'
6001 lt_NL2SP='tr \015\012 \040\040'
6002 ;;
6003 *) # EBCDIC based system
6004 lt_SP2NL='tr \100 \n'
6005 lt_NL2SP='tr \r\n \100\100'
6006 ;;
6007 esac
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6018 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6019 if ${lt_cv_to_host_file_cmd+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 case $host in
6023 *-*-mingw* )
6024 case $build in
6025 *-*-mingw* ) # actually msys
6026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6027 ;;
6028 *-*-cygwin* )
6029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6030 ;;
6031 * ) # otherwise, assume *nix
6032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6033 ;;
6034 esac
6035 ;;
6036 *-*-cygwin* )
6037 case $build in
6038 *-*-mingw* ) # actually msys
6039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6040 ;;
6041 *-*-cygwin* )
6042 lt_cv_to_host_file_cmd=func_convert_file_noop
6043 ;;
6044 * ) # otherwise, assume *nix
6045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6046 ;;
6047 esac
6048 ;;
6049 * ) # unhandled hosts (and "normal" native builds)
6050 lt_cv_to_host_file_cmd=func_convert_file_noop
6051 ;;
6052 esac
6053
6054 fi
6055
6056 to_host_file_cmd=$lt_cv_to_host_file_cmd
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6058 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6065 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6066 if ${lt_cv_to_tool_file_cmd+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 #assume ordinary cross tools, or native build.
6070 lt_cv_to_tool_file_cmd=func_convert_file_noop
6071 case $host in
6072 *-*-mingw* )
6073 case $build in
6074 *-*-mingw* ) # actually msys
6075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6076 ;;
6077 esac
6078 ;;
6079 esac
6080
6081 fi
6082
6083 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6085 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6086
6087
6088
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6092 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6093 if ${lt_cv_ld_reload_flag+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 lt_cv_ld_reload_flag='-r'
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6099 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6100 reload_flag=$lt_cv_ld_reload_flag
6101 case $reload_flag in
6102 "" | " "*) ;;
6103 *) reload_flag=" $reload_flag" ;;
6104 esac
6105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6106 case $host_os in
6107 cygwin* | mingw* | pw32* | cegcc*)
6108 if test "$GCC" != yes; then
6109 reload_cmds=false
6110 fi
6111 ;;
6112 darwin*)
6113 if test "$GCC" = yes; then
6114 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6115 else
6116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117 fi
6118 ;;
6119 esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 if test -n "$ac_tool_prefix"; then
6130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_OBJDUMP+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$OBJDUMP"; then
6138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 OBJDUMP=$ac_cv_prog_OBJDUMP
6158 if test -n "$OBJDUMP"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6160 $as_echo "$OBJDUMP" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 fi
6168 if test -z "$ac_cv_prog_OBJDUMP"; then
6169 ac_ct_OBJDUMP=$OBJDUMP
6170 # Extract the first word of "objdump", so it can be a program name with args.
6171 set dummy objdump; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if test -n "$ac_ct_OBJDUMP"; then
6178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6198 if test -n "$ac_ct_OBJDUMP"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6200 $as_echo "$ac_ct_OBJDUMP" >&6; }
6201 else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206 if test "x$ac_ct_OBJDUMP" = x; then
6207 OBJDUMP="false"
6208 else
6209 case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215 OBJDUMP=$ac_ct_OBJDUMP
6216 fi
6217 else
6218 OBJDUMP="$ac_cv_prog_OBJDUMP"
6219 fi
6220
6221 test -z "$OBJDUMP" && OBJDUMP=objdump
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6232 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6233 if ${lt_cv_deplibs_check_method+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 lt_cv_file_magic_cmd='$MAGIC_CMD'
6237 lt_cv_file_magic_test_file=
6238 lt_cv_deplibs_check_method='unknown'
6239 # Need to set the preceding variable on all platforms that support
6240 # interlibrary dependencies.
6241 # 'none' -- dependencies not supported.
6242 # `unknown' -- same as none, but documents that we really don't know.
6243 # 'pass_all' -- all dependencies passed with no checks.
6244 # 'test_compile' -- check by making test program.
6245 # 'file_magic [[regex]]' -- check by looking for files in library path
6246 # which responds to the $file_magic_cmd with a given extended regex.
6247 # If you have `file' or equivalent on your system and you're not sure
6248 # whether `pass_all' will *always* work, you probably want this one.
6249
6250 case $host_os in
6251 aix[4-9]*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254
6255 beos*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258
6259 bsdi[45]*)
6260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6261 lt_cv_file_magic_cmd='/usr/bin/file -L'
6262 lt_cv_file_magic_test_file=/shlib/libc.so
6263 ;;
6264
6265 cygwin*)
6266 # func_win32_libid is a shell function defined in ltmain.sh
6267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6268 lt_cv_file_magic_cmd='func_win32_libid'
6269 ;;
6270
6271 mingw* | pw32*)
6272 # Base MSYS/MinGW do not provide the 'file' command needed by
6273 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6274 # unless we find 'file', for example because we are cross-compiling.
6275 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6276 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6278 lt_cv_file_magic_cmd='func_win32_libid'
6279 else
6280 # Keep this pattern in sync with the one in func_win32_libid.
6281 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6282 lt_cv_file_magic_cmd='$OBJDUMP -f'
6283 fi
6284 ;;
6285
6286 cegcc*)
6287 # use the weaker test based on 'objdump'. See mingw*.
6288 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6289 lt_cv_file_magic_cmd='$OBJDUMP -f'
6290 ;;
6291
6292 darwin* | rhapsody*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 freebsd* | dragonfly*)
6297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6298 case $host_cpu in
6299 i*86 )
6300 # Not sure whether the presence of OpenBSD here was a mistake.
6301 # Let's accept both of them until this is cleared up.
6302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6303 lt_cv_file_magic_cmd=/usr/bin/file
6304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6305 ;;
6306 esac
6307 else
6308 lt_cv_deplibs_check_method=pass_all
6309 fi
6310 ;;
6311
6312 gnu*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315
6316 haiku*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320 hpux10.20* | hpux11*)
6321 lt_cv_file_magic_cmd=/usr/bin/file
6322 case $host_cpu in
6323 ia64*)
6324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6325 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6326 ;;
6327 hppa*64*)
6328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6329 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6330 ;;
6331 *)
6332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6333 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6334 ;;
6335 esac
6336 ;;
6337
6338 interix[3-9]*)
6339 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6341 ;;
6342
6343 irix5* | irix6* | nonstopux*)
6344 case $LD in
6345 *-32|*"-32 ") libmagic=32-bit;;
6346 *-n32|*"-n32 ") libmagic=N32;;
6347 *-64|*"-64 ") libmagic=64-bit;;
6348 *) libmagic=never-match;;
6349 esac
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352
6353 # This must be glibc/ELF.
6354 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6355 lt_cv_deplibs_check_method=pass_all
6356 ;;
6357
6358 netbsd*)
6359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6361 else
6362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6363 fi
6364 ;;
6365
6366 newos6*)
6367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6368 lt_cv_file_magic_cmd=/usr/bin/file
6369 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6370 ;;
6371
6372 *nto* | *qnx*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375
6376 openbsd*)
6377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6379 else
6380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6381 fi
6382 ;;
6383
6384 osf3* | osf4* | osf5*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 rdos*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 solaris*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 sysv4 | sysv4.3*)
6401 case $host_vendor in
6402 motorola)
6403 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]'
6404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6405 ;;
6406 ncr)
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
6409 sequent)
6410 lt_cv_file_magic_cmd='/bin/file'
6411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6412 ;;
6413 sni)
6414 lt_cv_file_magic_cmd='/bin/file'
6415 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6416 lt_cv_file_magic_test_file=/lib/libc.so
6417 ;;
6418 siemens)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421 pc)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424 esac
6425 ;;
6426
6427 tpf*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430 esac
6431
6432 fi
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6434 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6435
6436 file_magic_glob=
6437 want_nocaseglob=no
6438 if test "$build" = "$host"; then
6439 case $host_os in
6440 mingw* | pw32*)
6441 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6442 want_nocaseglob=yes
6443 else
6444 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6445 fi
6446 ;;
6447 esac
6448 fi
6449
6450 file_magic_cmd=$lt_cv_file_magic_cmd
6451 deplibs_check_method=$lt_cv_deplibs_check_method
6452 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_DLLTOOL+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$DLLTOOL"; then
6484 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 DLLTOOL=$ac_cv_prog_DLLTOOL
6504 if test -n "$DLLTOOL"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6506 $as_echo "$DLLTOOL" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512
6513 fi
6514 if test -z "$ac_cv_prog_DLLTOOL"; then
6515 ac_ct_DLLTOOL=$DLLTOOL
6516 # Extract the first word of "dlltool", so it can be a program name with args.
6517 set dummy dlltool; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 if test -n "$ac_ct_DLLTOOL"; then
6524 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6544 if test -n "$ac_ct_DLLTOOL"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6546 $as_echo "$ac_ct_DLLTOOL" >&6; }
6547 else
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551
6552 if test "x$ac_ct_DLLTOOL" = x; then
6553 DLLTOOL="false"
6554 else
6555 case $cross_compiling:$ac_tool_warned in
6556 yes:)
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6559 ac_tool_warned=yes ;;
6560 esac
6561 DLLTOOL=$ac_ct_DLLTOOL
6562 fi
6563 else
6564 DLLTOOL="$ac_cv_prog_DLLTOOL"
6565 fi
6566
6567 test -z "$DLLTOOL" && DLLTOOL=dlltool
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6579 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6580 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 lt_cv_sharedlib_from_linklib_cmd='unknown'
6584
6585 case $host_os in
6586 cygwin* | mingw* | pw32* | cegcc*)
6587 # two different shell functions defined in ltmain.sh
6588 # decide which to use based on capabilities of $DLLTOOL
6589 case `$DLLTOOL --help 2>&1` in
6590 *--identify-strict*)
6591 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6592 ;;
6593 *)
6594 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6595 ;;
6596 esac
6597 ;;
6598 *)
6599 # fallback: assume linklib IS sharedlib
6600 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6601 ;;
6602 esac
6603
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6606 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6607 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6608 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6609
6610
6611
6612
6613
6614
6615
6616 if test -n "$ac_tool_prefix"; then
6617 for ac_prog in ar
6618 do
6619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_AR+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$AR"; then
6627 ac_cv_prog_AR="$AR" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 AR=$ac_cv_prog_AR
6647 if test -n "$AR"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6649 $as_echo "$AR" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654
6655
6656 test -n "$AR" && break
6657 done
6658 fi
6659 if test -z "$AR"; then
6660 ac_ct_AR=$AR
6661 for ac_prog in ar
6662 do
6663 # Extract the first word of "$ac_prog", so it can be a program name with args.
6664 set dummy $ac_prog; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$ac_ct_AR"; then
6671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ac_ct_AR="$ac_prog"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6691 if test -n "$ac_ct_AR"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6693 $as_echo "$ac_ct_AR" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699
6700 test -n "$ac_ct_AR" && break
6701 done
6702
6703 if test "x$ac_ct_AR" = x; then
6704 AR="false"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 AR=$ac_ct_AR
6713 fi
6714 fi
6715
6716 : ${AR=ar}
6717 : ${AR_FLAGS=cru}
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6730 $as_echo_n "checking for archiver @FILE support... " >&6; }
6731 if ${lt_cv_ar_at_file+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 lt_cv_ar_at_file=no
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737
6738 int
6739 main ()
6740 {
6741
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 echo conftest.$ac_objext > conftest.lst
6748 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6750 (eval $lt_ar_try) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }
6754 if test "$ac_status" -eq 0; then
6755 # Ensure the archiver fails upon bogus file names.
6756 rm -f conftest.$ac_objext libconftest.a
6757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6758 (eval $lt_ar_try) 2>&5
6759 ac_status=$?
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; }
6762 if test "$ac_status" -ne 0; then
6763 lt_cv_ar_at_file=@
6764 fi
6765 fi
6766 rm -f conftest.* libconftest.a
6767
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6773 $as_echo "$lt_cv_ar_at_file" >&6; }
6774
6775 if test "x$lt_cv_ar_at_file" = xno; then
6776 archiver_list_spec=
6777 else
6778 archiver_list_spec=$lt_cv_ar_at_file
6779 fi
6780
6781
6782
6783
6784
6785
6786
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}strip; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_STRIP+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$STRIP"; then
6796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 STRIP=$ac_cv_prog_STRIP
6816 if test -n "$STRIP"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6818 $as_echo "$STRIP" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_STRIP"; then
6827 ac_ct_STRIP=$STRIP
6828 # Extract the first word of "strip", so it can be a program name with args.
6829 set dummy strip; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_STRIP"; then
6836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_STRIP="strip"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6856 if test -n "$ac_ct_STRIP"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6858 $as_echo "$ac_ct_STRIP" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864 if test "x$ac_ct_STRIP" = x; then
6865 STRIP=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 STRIP=$ac_ct_STRIP
6874 fi
6875 else
6876 STRIP="$ac_cv_prog_STRIP"
6877 fi
6878
6879 test -z "$STRIP" && STRIP=:
6880
6881
6882
6883
6884
6885
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_RANLIB+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$RANLIB"; then
6895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 RANLIB=$ac_cv_prog_RANLIB
6915 if test -n "$RANLIB"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6917 $as_echo "$RANLIB" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 fi
6925 if test -z "$ac_cv_prog_RANLIB"; then
6926 ac_ct_RANLIB=$RANLIB
6927 # Extract the first word of "ranlib", so it can be a program name with args.
6928 set dummy ranlib; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$ac_ct_RANLIB"; then
6935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_RANLIB="ranlib"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6955 if test -n "$ac_ct_RANLIB"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6957 $as_echo "$ac_ct_RANLIB" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963 if test "x$ac_ct_RANLIB" = x; then
6964 RANLIB=":"
6965 else
6966 case $cross_compiling:$ac_tool_warned in
6967 yes:)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned=yes ;;
6971 esac
6972 RANLIB=$ac_ct_RANLIB
6973 fi
6974 else
6975 RANLIB="$ac_cv_prog_RANLIB"
6976 fi
6977
6978 test -z "$RANLIB" && RANLIB=:
6979
6980
6981
6982
6983
6984
6985 # Determine commands to create old-style static archives.
6986 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6987 old_postinstall_cmds='chmod 644 $oldlib'
6988 old_postuninstall_cmds=
6989
6990 if test -n "$RANLIB"; then
6991 case $host_os in
6992 openbsd*)
6993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6994 ;;
6995 *)
6996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6997 ;;
6998 esac
6999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7000 fi
7001
7002 case $host_os in
7003 darwin*)
7004 lock_old_archive_extraction=yes ;;
7005 *)
7006 lock_old_archive_extraction=no ;;
7007 esac
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 # If no C compiler was specified, use CC.
7048 LTCC=${LTCC-"$CC"}
7049
7050 # If no C compiler flags were specified, use CFLAGS.
7051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7052
7053 # Allow CC to be a program name with arguments.
7054 compiler=$CC
7055
7056
7057 # Check for command to grab the raw symbol name followed by C symbol from nm.
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7059 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7060 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063
7064 # These are sane defaults that work on at least a few old systems.
7065 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7066
7067 # Character class describing NM global symbol codes.
7068 symcode='[BCDEGRST]'
7069
7070 # Regexp to match symbols that can be accessed directly from C.
7071 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7072
7073 # Define system-specific variables.
7074 case $host_os in
7075 aix*)
7076 symcode='[BCDT]'
7077 ;;
7078 cygwin* | mingw* | pw32* | cegcc*)
7079 symcode='[ABCDGISTW]'
7080 ;;
7081 hpux*)
7082 if test "$host_cpu" = ia64; then
7083 symcode='[ABCDEGRST]'
7084 fi
7085 ;;
7086 irix* | nonstopux*)
7087 symcode='[BCDEGRST]'
7088 ;;
7089 osf*)
7090 symcode='[BCDEGQRST]'
7091 ;;
7092 solaris*)
7093 symcode='[BDRT]'
7094 ;;
7095 sco3.2v5*)
7096 symcode='[DT]'
7097 ;;
7098 sysv4.2uw2*)
7099 symcode='[DT]'
7100 ;;
7101 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7102 symcode='[ABDT]'
7103 ;;
7104 sysv4)
7105 symcode='[DFNSTU]'
7106 ;;
7107 esac
7108
7109 # If we're using GNU nm, then use its standard symbol codes.
7110 case `$NM -V 2>&1` in
7111 *GNU* | *'with BFD'*)
7112 symcode='[ABCDGIRSTW]' ;;
7113 esac
7114
7115 # Transform an extracted symbol line into a proper C declaration.
7116 # Some systems (esp. on ia64) link data and code symbols differently,
7117 # so use this general approach.
7118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7119
7120 # Transform an extracted symbol line into symbol name and symbol address
7121 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7122 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'"
7123
7124 # Handle CRLF in mingw tool chain
7125 opt_cr=
7126 case $build_os in
7127 mingw*)
7128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7129 ;;
7130 esac
7131
7132 # Try without a prefix underscore, then with it.
7133 for ac_symprfx in "" "_"; do
7134
7135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7136 symxfrm="\\1 $ac_symprfx\\2 \\2"
7137
7138 # Write the raw and C identifiers.
7139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7140 # Fake it for dumpbin and say T for any non-static function
7141 # and D for any global variable.
7142 # Also find C++ and __fastcall symbols from MSVC++,
7143 # which start with @ or ?.
7144 lt_cv_sys_global_symbol_pipe="$AWK '"\
7145 " {last_section=section; section=\$ 3};"\
7146 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7147 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7148 " \$ 0!~/External *\|/{next};"\
7149 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7150 " {if(hide[section]) next};"\
7151 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7152 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7153 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7154 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7155 " ' prfx=^$ac_symprfx"
7156 else
7157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7158 fi
7159 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7160
7161 # Check to see that the pipe works correctly.
7162 pipe_works=no
7163
7164 rm -rf conftest*
7165 cat > conftest.$ac_ext <<_LT_EOF
7166 #ifdef __cplusplus
7167 extern "C" {
7168 #endif
7169 char nm_test_var;
7170 void nm_test_func(void);
7171 void nm_test_func(void){}
7172 #ifdef __cplusplus
7173 }
7174 #endif
7175 int main(){nm_test_var='a';nm_test_func();return(0);}
7176 _LT_EOF
7177
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7179 (eval $ac_compile) 2>&5
7180 ac_status=$?
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; }; then
7183 # Now try to grab the symbols.
7184 nlist=conftest.nm
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7186 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7187 ac_status=$?
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; } && test -s "$nlist"; then
7190 # Try sorting and uniquifying the output.
7191 if sort "$nlist" | uniq > "$nlist"T; then
7192 mv -f "$nlist"T "$nlist"
7193 else
7194 rm -f "$nlist"T
7195 fi
7196
7197 # Make sure that we snagged all the symbols we need.
7198 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7199 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7200 cat <<_LT_EOF > conftest.$ac_ext
7201 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7202 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7203 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7204 relocations are performed -- see ld's documentation on pseudo-relocs. */
7205 # define LT_DLSYM_CONST
7206 #elif defined(__osf__)
7207 /* This system does not cope well with relocations in const data. */
7208 # define LT_DLSYM_CONST
7209 #else
7210 # define LT_DLSYM_CONST const
7211 #endif
7212
7213 #ifdef __cplusplus
7214 extern "C" {
7215 #endif
7216
7217 _LT_EOF
7218 # Now generate the symbol file.
7219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7220
7221 cat <<_LT_EOF >> conftest.$ac_ext
7222
7223 /* The mapping between symbol names and symbols. */
7224 LT_DLSYM_CONST struct {
7225 const char *name;
7226 void *address;
7227 }
7228 lt__PROGRAM__LTX_preloaded_symbols[] =
7229 {
7230 { "@PROGRAM@", (void *) 0 },
7231 _LT_EOF
7232 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7233 cat <<\_LT_EOF >> conftest.$ac_ext
7234 {0, (void *) 0}
7235 };
7236
7237 /* This works around a problem in FreeBSD linker */
7238 #ifdef FREEBSD_WORKAROUND
7239 static const void *lt_preloaded_setup() {
7240 return lt__PROGRAM__LTX_preloaded_symbols;
7241 }
7242 #endif
7243
7244 #ifdef __cplusplus
7245 }
7246 #endif
7247 _LT_EOF
7248 # Now try linking the two files.
7249 mv conftest.$ac_objext conftstm.$ac_objext
7250 lt_globsym_save_LIBS=$LIBS
7251 lt_globsym_save_CFLAGS=$CFLAGS
7252 LIBS="conftstm.$ac_objext"
7253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7255 (eval $ac_link) 2>&5
7256 ac_status=$?
7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7259 pipe_works=yes
7260 fi
7261 LIBS=$lt_globsym_save_LIBS
7262 CFLAGS=$lt_globsym_save_CFLAGS
7263 else
7264 echo "cannot find nm_test_func in $nlist" >&5
7265 fi
7266 else
7267 echo "cannot find nm_test_var in $nlist" >&5
7268 fi
7269 else
7270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7271 fi
7272 else
7273 echo "$progname: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 fi
7276 rm -rf conftest* conftst*
7277
7278 # Do not use the global_symbol_pipe unless it works.
7279 if test "$pipe_works" = yes; then
7280 break
7281 else
7282 lt_cv_sys_global_symbol_pipe=
7283 fi
7284 done
7285
7286 fi
7287
7288 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7289 lt_cv_sys_global_symbol_to_cdecl=
7290 fi
7291 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7293 $as_echo "failed" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7296 $as_echo "ok" >&6; }
7297 fi
7298
7299 # Response file support.
7300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7301 nm_file_list_spec='@'
7302 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7303 nm_file_list_spec='@'
7304 fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7333 $as_echo_n "checking for sysroot... " >&6; }
7334
7335 # Check whether --with-sysroot was given.
7336 if test "${with_sysroot+set}" = set; then :
7337 withval=$with_sysroot;
7338 else
7339 with_sysroot=no
7340 fi
7341
7342
7343 lt_sysroot=
7344 case ${with_sysroot} in #(
7345 yes)
7346 if test "$GCC" = yes; then
7347 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7348 fi
7349 ;; #(
7350 /*)
7351 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7352 ;; #(
7353 no|'')
7354 ;; #(
7355 *)
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7357 $as_echo "${with_sysroot}" >&6; }
7358 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7359 ;;
7360 esac
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7363 $as_echo "${lt_sysroot:-no}" >&6; }
7364
7365
7366
7367
7368
7369 # Check whether --enable-libtool-lock was given.
7370 if test "${enable_libtool_lock+set}" = set; then :
7371 enableval=$enable_libtool_lock;
7372 fi
7373
7374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7375
7376 # Some flags need to be propagated to the compiler or linker for good
7377 # libtool support.
7378 case $host in
7379 ia64-*-hpux*)
7380 # Find out which ABI we are using.
7381 echo 'int i;' > conftest.$ac_ext
7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383 (eval $ac_compile) 2>&5
7384 ac_status=$?
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }; then
7387 case `/usr/bin/file conftest.$ac_objext` in
7388 *ELF-32*)
7389 HPUX_IA64_MODE="32"
7390 ;;
7391 *ELF-64*)
7392 HPUX_IA64_MODE="64"
7393 ;;
7394 esac
7395 fi
7396 rm -rf conftest*
7397 ;;
7398 *-*-irix6*)
7399 # Find out which ABI we are using.
7400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 if test "$lt_cv_prog_gnu_ld" = yes; then
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *32-bit*)
7409 LD="${LD-ld} -melf32bsmip"
7410 ;;
7411 *N32*)
7412 LD="${LD-ld} -melf32bmipn32"
7413 ;;
7414 *64-bit*)
7415 LD="${LD-ld} -melf64bmip"
7416 ;;
7417 esac
7418 else
7419 case `/usr/bin/file conftest.$ac_objext` in
7420 *32-bit*)
7421 LD="${LD-ld} -32"
7422 ;;
7423 *N32*)
7424 LD="${LD-ld} -n32"
7425 ;;
7426 *64-bit*)
7427 LD="${LD-ld} -64"
7428 ;;
7429 esac
7430 fi
7431 fi
7432 rm -rf conftest*
7433 ;;
7434
7435 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7436 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7437 # Find out which ABI we are using.
7438 echo 'int i;' > conftest.$ac_ext
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 case `/usr/bin/file conftest.o` in
7445 *32-bit*)
7446 case $host in
7447 x86_64-*kfreebsd*-gnu)
7448 LD="${LD-ld} -m elf_i386_fbsd"
7449 ;;
7450 x86_64-*linux*)
7451 LD="${LD-ld} -m elf_i386"
7452 ;;
7453 ppc64-*linux*|powerpc64-*linux*)
7454 LD="${LD-ld} -m elf32ppclinux"
7455 ;;
7456 s390x-*linux*)
7457 LD="${LD-ld} -m elf_s390"
7458 ;;
7459 sparc64-*linux*)
7460 LD="${LD-ld} -m elf32_sparc"
7461 ;;
7462 esac
7463 ;;
7464 *64-bit*)
7465 case $host in
7466 x86_64-*kfreebsd*-gnu)
7467 LD="${LD-ld} -m elf_x86_64_fbsd"
7468 ;;
7469 x86_64-*linux*)
7470 LD="${LD-ld} -m elf_x86_64"
7471 ;;
7472 ppc*-*linux*|powerpc*-*linux*)
7473 LD="${LD-ld} -m elf64ppc"
7474 ;;
7475 s390*-*linux*|s390*-*tpf*)
7476 LD="${LD-ld} -m elf64_s390"
7477 ;;
7478 sparc*-*linux*)
7479 LD="${LD-ld} -m elf64_sparc"
7480 ;;
7481 esac
7482 ;;
7483 esac
7484 fi
7485 rm -rf conftest*
7486 ;;
7487
7488 *-*-sco3.2v5*)
7489 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7490 SAVE_CFLAGS="$CFLAGS"
7491 CFLAGS="$CFLAGS -belf"
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7493 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7494 if ${lt_cv_cc_needs_belf+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505
7506 int
7507 main ()
7508 {
7509
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"; then :
7515 lt_cv_cc_needs_belf=yes
7516 else
7517 lt_cv_cc_needs_belf=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext \
7520 conftest$ac_exeext conftest.$ac_ext
7521 ac_ext=c
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7529 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7532 CFLAGS="$SAVE_CFLAGS"
7533 fi
7534 ;;
7535 *-*solaris*)
7536 # Find out which ABI we are using.
7537 echo 'int i;' > conftest.$ac_ext
7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7539 (eval $ac_compile) 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; then
7543 case `/usr/bin/file conftest.o` in
7544 *64-bit*)
7545 case $lt_cv_prog_gnu_ld in
7546 yes*)
7547 case $host in
7548 i?86-*-solaris*)
7549 LD="${LD-ld} -m elf_x86_64"
7550 ;;
7551 sparc*-*-solaris*)
7552 LD="${LD-ld} -m elf64_sparc"
7553 ;;
7554 esac
7555 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7556 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7557 LD="${LD-ld}_sol2"
7558 fi
7559 ;;
7560 *)
7561 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7562 LD="${LD-ld} -64"
7563 fi
7564 ;;
7565 esac
7566 ;;
7567 esac
7568 fi
7569 rm -rf conftest*
7570 ;;
7571 esac
7572
7573 need_locks="$enable_libtool_lock"
7574
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}mt; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$MANIFEST_TOOL"; then
7584 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7604 if test -n "$MANIFEST_TOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7606 $as_echo "$MANIFEST_TOOL" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613 fi
7614 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7615 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7616 # Extract the first word of "mt", so it can be a program name with args.
7617 set dummy mt; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$ac_ct_MANIFEST_TOOL"; then
7624 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7644 if test -n "$ac_ct_MANIFEST_TOOL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7646 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7653 MANIFEST_TOOL=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7662 fi
7663 else
7664 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7665 fi
7666
7667 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7669 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7670 if ${lt_cv_path_mainfest_tool+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 lt_cv_path_mainfest_tool=no
7674 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7675 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7676 cat conftest.err >&5
7677 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7678 lt_cv_path_mainfest_tool=yes
7679 fi
7680 rm -rf conftest*
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7683 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7684 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7685 MANIFEST_TOOL=:
7686 fi
7687
7688
7689
7690
7691
7692
7693 case $host_os in
7694 rhapsody* | darwin*)
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$DSYMUTIL"; then
7704 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7724 if test -n "$DSYMUTIL"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7726 $as_echo "$DSYMUTIL" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 fi
7734 if test -z "$ac_cv_prog_DSYMUTIL"; then
7735 ac_ct_DSYMUTIL=$DSYMUTIL
7736 # Extract the first word of "dsymutil", so it can be a program name with args.
7737 set dummy dsymutil; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 if test -n "$ac_ct_DSYMUTIL"; then
7744 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7764 if test -n "$ac_ct_DSYMUTIL"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7766 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772 if test "x$ac_ct_DSYMUTIL" = x; then
7773 DSYMUTIL=":"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781 DSYMUTIL=$ac_ct_DSYMUTIL
7782 fi
7783 else
7784 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7785 fi
7786
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_NMEDIT+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$NMEDIT"; then
7796 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 NMEDIT=$ac_cv_prog_NMEDIT
7816 if test -n "$NMEDIT"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7818 $as_echo "$NMEDIT" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_NMEDIT"; then
7827 ac_ct_NMEDIT=$NMEDIT
7828 # Extract the first word of "nmedit", so it can be a program name with args.
7829 set dummy nmedit; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 if test -n "$ac_ct_NMEDIT"; then
7836 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7856 if test -n "$ac_ct_NMEDIT"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7858 $as_echo "$ac_ct_NMEDIT" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863
7864 if test "x$ac_ct_NMEDIT" = x; then
7865 NMEDIT=":"
7866 else
7867 case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871 ac_tool_warned=yes ;;
7872 esac
7873 NMEDIT=$ac_ct_NMEDIT
7874 fi
7875 else
7876 NMEDIT="$ac_cv_prog_NMEDIT"
7877 fi
7878
7879 if test -n "$ac_tool_prefix"; then
7880 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_LIPO+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 if test -n "$LIPO"; then
7888 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 LIPO=$ac_cv_prog_LIPO
7908 if test -n "$LIPO"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7910 $as_echo "$LIPO" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917 fi
7918 if test -z "$ac_cv_prog_LIPO"; then
7919 ac_ct_LIPO=$LIPO
7920 # Extract the first word of "lipo", so it can be a program name with args.
7921 set dummy lipo; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 if test -n "$ac_ct_LIPO"; then
7928 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_ac_ct_LIPO="lipo"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941 done
7942 done
7943 IFS=$as_save_IFS
7944
7945 fi
7946 fi
7947 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7948 if test -n "$ac_ct_LIPO"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7950 $as_echo "$ac_ct_LIPO" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956 if test "x$ac_ct_LIPO" = x; then
7957 LIPO=":"
7958 else
7959 case $cross_compiling:$ac_tool_warned in
7960 yes:)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963 ac_tool_warned=yes ;;
7964 esac
7965 LIPO=$ac_ct_LIPO
7966 fi
7967 else
7968 LIPO="$ac_cv_prog_LIPO"
7969 fi
7970
7971 if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7973 set dummy ${ac_tool_prefix}otool; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_prog_OTOOL+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$OTOOL"; then
7980 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993 done
7994 done
7995 IFS=$as_save_IFS
7996
7997 fi
7998 fi
7999 OTOOL=$ac_cv_prog_OTOOL
8000 if test -n "$OTOOL"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8002 $as_echo "$OTOOL" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009 fi
8010 if test -z "$ac_cv_prog_OTOOL"; then
8011 ac_ct_OTOOL=$OTOOL
8012 # Extract the first word of "otool", so it can be a program name with args.
8013 set dummy otool; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$ac_ct_OTOOL"; then
8020 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_ac_ct_OTOOL="otool"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8040 if test -n "$ac_ct_OTOOL"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8042 $as_echo "$ac_ct_OTOOL" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047
8048 if test "x$ac_ct_OTOOL" = x; then
8049 OTOOL=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052 yes:)
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055 ac_tool_warned=yes ;;
8056 esac
8057 OTOOL=$ac_ct_OTOOL
8058 fi
8059 else
8060 OTOOL="$ac_cv_prog_OTOOL"
8061 fi
8062
8063 if test -n "$ac_tool_prefix"; then
8064 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8065 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if ${ac_cv_prog_OTOOL64+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 if test -n "$OTOOL64"; then
8072 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8073 else
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 for as_dir in $PATH
8076 do
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 break 2
8084 fi
8085 done
8086 done
8087 IFS=$as_save_IFS
8088
8089 fi
8090 fi
8091 OTOOL64=$ac_cv_prog_OTOOL64
8092 if test -n "$OTOOL64"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8094 $as_echo "$OTOOL64" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8098 fi
8099
8100
8101 fi
8102 if test -z "$ac_cv_prog_OTOOL64"; then
8103 ac_ct_OTOOL64=$OTOOL64
8104 # Extract the first word of "otool64", so it can be a program name with args.
8105 set dummy otool64; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 if test -n "$ac_ct_OTOOL64"; then
8112 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_ac_ct_OTOOL64="otool64"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8132 if test -n "$ac_ct_OTOOL64"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8134 $as_echo "$ac_ct_OTOOL64" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139
8140 if test "x$ac_ct_OTOOL64" = x; then
8141 OTOOL64=":"
8142 else
8143 case $cross_compiling:$ac_tool_warned in
8144 yes:)
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8147 ac_tool_warned=yes ;;
8148 esac
8149 OTOOL64=$ac_ct_OTOOL64
8150 fi
8151 else
8152 OTOOL64="$ac_cv_prog_OTOOL64"
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8182 $as_echo_n "checking for -single_module linker flag... " >&6; }
8183 if ${lt_cv_apple_cc_single_mod+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_apple_cc_single_mod=no
8187 if test -z "${LT_MULTI_MODULE}"; then
8188 # By default we will add the -single_module flag. You can override
8189 # by either setting the environment variable LT_MULTI_MODULE
8190 # non-empty at configure time, or by adding -multi_module to the
8191 # link flags.
8192 rm -rf libconftest.dylib*
8193 echo "int foo(void){return 1;}" > conftest.c
8194 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8195 -dynamiclib -Wl,-single_module conftest.c" >&5
8196 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8197 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8198 _lt_result=$?
8199 # If there is a non-empty error log, and "single_module"
8200 # appears in it, assume the flag caused a linker warning
8201 if test -s conftest.err && $GREP single_module conftest.err; then
8202 cat conftest.err >&5
8203 # Otherwise, if the output was created with a 0 exit code from
8204 # the compiler, it worked.
8205 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8206 lt_cv_apple_cc_single_mod=yes
8207 else
8208 cat conftest.err >&5
8209 fi
8210 rm -rf libconftest.dylib*
8211 rm -f conftest.*
8212 fi
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8215 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8218 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8219 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 lt_cv_ld_exported_symbols_list=no
8223 save_LDFLAGS=$LDFLAGS
8224 echo "_main" > conftest.sym
8225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228
8229 int
8230 main ()
8231 {
8232
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 lt_cv_ld_exported_symbols_list=yes
8239 else
8240 lt_cv_ld_exported_symbols_list=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 LDFLAGS="$save_LDFLAGS"
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8248 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8249
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8251 $as_echo_n "checking for -force_load linker flag... " >&6; }
8252 if ${lt_cv_ld_force_load+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 lt_cv_ld_force_load=no
8256 cat > conftest.c << _LT_EOF
8257 int forced_loaded() { return 2;}
8258 _LT_EOF
8259 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8260 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8261 echo "$AR cru libconftest.a conftest.o" >&5
8262 $AR cru libconftest.a conftest.o 2>&5
8263 echo "$RANLIB libconftest.a" >&5
8264 $RANLIB libconftest.a 2>&5
8265 cat > conftest.c << _LT_EOF
8266 int main() { return 0;}
8267 _LT_EOF
8268 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8269 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8270 _lt_result=$?
8271 if test -s conftest.err && $GREP force_load conftest.err; then
8272 cat conftest.err >&5
8273 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8274 lt_cv_ld_force_load=yes
8275 else
8276 cat conftest.err >&5
8277 fi
8278 rm -f conftest.err libconftest.a conftest conftest.c
8279 rm -rf conftest.dSYM
8280
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8283 $as_echo "$lt_cv_ld_force_load" >&6; }
8284 case $host_os in
8285 rhapsody* | darwin1.[012])
8286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8287 darwin1.*)
8288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8289 darwin*) # darwin 5.x on
8290 # if running on 10.5 or later, the deployment target defaults
8291 # to the OS version, if on x86, and 10.4, the deployment
8292 # target defaults to 10.4. Don't you love it?
8293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8296 10.[012]*)
8297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8298 10.*)
8299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8300 esac
8301 ;;
8302 esac
8303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8304 _lt_dar_single_mod='$single_module'
8305 fi
8306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8308 else
8309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8310 fi
8311 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8312 _lt_dsymutil='~$DSYMUTIL $lib || :'
8313 else
8314 _lt_dsymutil=
8315 fi
8316 ;;
8317 esac
8318
8319 ac_ext=c
8320 ac_cpp='$CPP $CPPFLAGS'
8321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8326 # On Suns, sometimes $CPP names a directory.
8327 if test -n "$CPP" && test -d "$CPP"; then
8328 CPP=
8329 fi
8330 if test -z "$CPP"; then
8331 if ${ac_cv_prog_CPP+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 # Double quotes because CPP needs to be expanded
8335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8336 do
8337 ac_preproc_ok=false
8338 for ac_c_preproc_warn_flag in '' yes
8339 do
8340 # Use a header file that comes with gcc, so configuring glibc
8341 # with a fresh cross-compiler works.
8342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 # <limits.h> exists even on freestanding compilers.
8344 # On the NeXT, cc -E runs the code through the compiler's parser,
8345 # not just through cpp. "Syntax error" is here to catch this case.
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #ifdef __STDC__
8349 # include <limits.h>
8350 #else
8351 # include <assert.h>
8352 #endif
8353 Syntax error
8354 _ACEOF
8355 if ac_fn_c_try_cpp "$LINENO"; then :
8356
8357 else
8358 # Broken: fails on valid input.
8359 continue
8360 fi
8361 rm -f conftest.err conftest.i conftest.$ac_ext
8362
8363 # OK, works on sane cases. Now check whether nonexistent headers
8364 # can be detected and how.
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 #include <ac_nonexistent.h>
8368 _ACEOF
8369 if ac_fn_c_try_cpp "$LINENO"; then :
8370 # Broken: success on invalid input.
8371 continue
8372 else
8373 # Passes both tests.
8374 ac_preproc_ok=:
8375 break
8376 fi
8377 rm -f conftest.err conftest.i conftest.$ac_ext
8378
8379 done
8380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8381 rm -f conftest.i conftest.err conftest.$ac_ext
8382 if $ac_preproc_ok; then :
8383 break
8384 fi
8385
8386 done
8387 ac_cv_prog_CPP=$CPP
8388
8389 fi
8390 CPP=$ac_cv_prog_CPP
8391 else
8392 ac_cv_prog_CPP=$CPP
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8395 $as_echo "$CPP" >&6; }
8396 ac_preproc_ok=false
8397 for ac_c_preproc_warn_flag in '' yes
8398 do
8399 # Use a header file that comes with gcc, so configuring glibc
8400 # with a fresh cross-compiler works.
8401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8402 # <limits.h> exists even on freestanding compilers.
8403 # On the NeXT, cc -E runs the code through the compiler's parser,
8404 # not just through cpp. "Syntax error" is here to catch this case.
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 #ifdef __STDC__
8408 # include <limits.h>
8409 #else
8410 # include <assert.h>
8411 #endif
8412 Syntax error
8413 _ACEOF
8414 if ac_fn_c_try_cpp "$LINENO"; then :
8415
8416 else
8417 # Broken: fails on valid input.
8418 continue
8419 fi
8420 rm -f conftest.err conftest.i conftest.$ac_ext
8421
8422 # OK, works on sane cases. Now check whether nonexistent headers
8423 # can be detected and how.
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 #include <ac_nonexistent.h>
8427 _ACEOF
8428 if ac_fn_c_try_cpp "$LINENO"; then :
8429 # Broken: success on invalid input.
8430 continue
8431 else
8432 # Passes both tests.
8433 ac_preproc_ok=:
8434 break
8435 fi
8436 rm -f conftest.err conftest.i conftest.$ac_ext
8437
8438 done
8439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8440 rm -f conftest.i conftest.err conftest.$ac_ext
8441 if $ac_preproc_ok; then :
8442
8443 else
8444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8447 See \`config.log' for more details" "$LINENO" 5; }
8448 fi
8449
8450 ac_ext=c
8451 ac_cpp='$CPP $CPPFLAGS'
8452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8455
8456
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8458 $as_echo_n "checking for ANSI C header files... " >&6; }
8459 if ${ac_cv_header_stdc+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <stdlib.h>
8465 #include <stdarg.h>
8466 #include <string.h>
8467 #include <float.h>
8468
8469 int
8470 main ()
8471 {
8472
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478 ac_cv_header_stdc=yes
8479 else
8480 ac_cv_header_stdc=no
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483
8484 if test $ac_cv_header_stdc = yes; then
8485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <string.h>
8489
8490 _ACEOF
8491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8492 $EGREP "memchr" >/dev/null 2>&1; then :
8493
8494 else
8495 ac_cv_header_stdc=no
8496 fi
8497 rm -f conftest*
8498
8499 fi
8500
8501 if test $ac_cv_header_stdc = yes; then
8502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <stdlib.h>
8506
8507 _ACEOF
8508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509 $EGREP "free" >/dev/null 2>&1; then :
8510
8511 else
8512 ac_cv_header_stdc=no
8513 fi
8514 rm -f conftest*
8515
8516 fi
8517
8518 if test $ac_cv_header_stdc = yes; then
8519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8520 if test "$cross_compiling" = yes; then :
8521 :
8522 else
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #include <ctype.h>
8526 #include <stdlib.h>
8527 #if ((' ' & 0x0FF) == 0x020)
8528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8530 #else
8531 # define ISLOWER(c) \
8532 (('a' <= (c) && (c) <= 'i') \
8533 || ('j' <= (c) && (c) <= 'r') \
8534 || ('s' <= (c) && (c) <= 'z'))
8535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8536 #endif
8537
8538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8539 int
8540 main ()
8541 {
8542 int i;
8543 for (i = 0; i < 256; i++)
8544 if (XOR (islower (i), ISLOWER (i))
8545 || toupper (i) != TOUPPER (i))
8546 return 2;
8547 return 0;
8548 }
8549 _ACEOF
8550 if ac_fn_c_try_run "$LINENO"; then :
8551
8552 else
8553 ac_cv_header_stdc=no
8554 fi
8555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8556 conftest.$ac_objext conftest.beam conftest.$ac_ext
8557 fi
8558
8559 fi
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8562 $as_echo "$ac_cv_header_stdc" >&6; }
8563 if test $ac_cv_header_stdc = yes; then
8564
8565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8566
8567 fi
8568
8569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8571 inttypes.h stdint.h unistd.h
8572 do :
8573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8574 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8575 "
8576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8577 cat >>confdefs.h <<_ACEOF
8578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 _ACEOF
8580
8581 fi
8582
8583 done
8584
8585
8586 for ac_header in dlfcn.h
8587 do :
8588 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8589 "
8590 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_DLFCN_H 1
8593 _ACEOF
8594
8595 fi
8596
8597 done
8598
8599
8600
8601
8602 func_stripname_cnf ()
8603 {
8604 case ${2} in
8605 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8606 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8607 esac
8608 } # func_stripname_cnf
8609
8610
8611
8612
8613
8614 # Set options
8615 # Check whether --enable-static was given.
8616 if test "${enable_static+set}" = set; then :
8617 enableval=$enable_static; p=${PACKAGE-default}
8618 case $enableval in
8619 yes) enable_static=yes ;;
8620 no) enable_static=no ;;
8621 *)
8622 enable_static=no
8623 # Look at the argument we got. We use all the common list separators.
8624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8625 for pkg in $enableval; do
8626 IFS="$lt_save_ifs"
8627 if test "X$pkg" = "X$p"; then
8628 enable_static=yes
8629 fi
8630 done
8631 IFS="$lt_save_ifs"
8632 ;;
8633 esac
8634 else
8635 enable_static=no
8636 fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 enable_dlopen=no
8648
8649
8650 enable_win32_dll=no
8651
8652
8653 # Check whether --enable-shared was given.
8654 if test "${enable_shared+set}" = set; then :
8655 enableval=$enable_shared; p=${PACKAGE-default}
8656 case $enableval in
8657 yes) enable_shared=yes ;;
8658 no) enable_shared=no ;;
8659 *)
8660 enable_shared=no
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8663 for pkg in $enableval; do
8664 IFS="$lt_save_ifs"
8665 if test "X$pkg" = "X$p"; then
8666 enable_shared=yes
8667 fi
8668 done
8669 IFS="$lt_save_ifs"
8670 ;;
8671 esac
8672 else
8673 enable_shared=yes
8674 fi
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686 # Check whether --with-pic was given.
8687 if test "${with_pic+set}" = set; then :
8688 withval=$with_pic; lt_p=${PACKAGE-default}
8689 case $withval in
8690 yes|no) pic_mode=$withval ;;
8691 *)
8692 pic_mode=default
8693 # Look at the argument we got. We use all the common list separators.
8694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8695 for lt_pkg in $withval; do
8696 IFS="$lt_save_ifs"
8697 if test "X$lt_pkg" = "X$lt_p"; then
8698 pic_mode=yes
8699 fi
8700 done
8701 IFS="$lt_save_ifs"
8702 ;;
8703 esac
8704 else
8705 pic_mode=default
8706 fi
8707
8708
8709 test -z "$pic_mode" && pic_mode=default
8710
8711
8712
8713
8714
8715
8716
8717 # Check whether --enable-fast-install was given.
8718 if test "${enable_fast_install+set}" = set; then :
8719 enableval=$enable_fast_install; p=${PACKAGE-default}
8720 case $enableval in
8721 yes) enable_fast_install=yes ;;
8722 no) enable_fast_install=no ;;
8723 *)
8724 enable_fast_install=no
8725 # Look at the argument we got. We use all the common list separators.
8726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8727 for pkg in $enableval; do
8728 IFS="$lt_save_ifs"
8729 if test "X$pkg" = "X$p"; then
8730 enable_fast_install=yes
8731 fi
8732 done
8733 IFS="$lt_save_ifs"
8734 ;;
8735 esac
8736 else
8737 enable_fast_install=yes
8738 fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 # This can be used to rebuild libtool when needed
8751 LIBTOOL_DEPS="$ltmain"
8752
8753 # Always use our own libtool.
8754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785 test -z "$LN_S" && LN_S="ln -s"
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 if test -n "${ZSH_VERSION+set}" ; then
8801 setopt NO_GLOB_SUBST
8802 fi
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8805 $as_echo_n "checking for objdir... " >&6; }
8806 if ${lt_cv_objdir+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 rm -f .libs 2>/dev/null
8810 mkdir .libs 2>/dev/null
8811 if test -d .libs; then
8812 lt_cv_objdir=.libs
8813 else
8814 # MS-DOS does not allow filenames that begin with a dot.
8815 lt_cv_objdir=_libs
8816 fi
8817 rmdir .libs 2>/dev/null
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8820 $as_echo "$lt_cv_objdir" >&6; }
8821 objdir=$lt_cv_objdir
8822
8823
8824
8825
8826
8827 cat >>confdefs.h <<_ACEOF
8828 #define LT_OBJDIR "$lt_cv_objdir/"
8829 _ACEOF
8830
8831
8832
8833
8834 case $host_os in
8835 aix3*)
8836 # AIX sometimes has problems with the GCC collect2 program. For some
8837 # reason, if we set the COLLECT_NAMES environment variable, the problems
8838 # vanish in a puff of smoke.
8839 if test "X${COLLECT_NAMES+set}" != Xset; then
8840 COLLECT_NAMES=
8841 export COLLECT_NAMES
8842 fi
8843 ;;
8844 esac
8845
8846 # Global variables:
8847 ofile=libtool
8848 can_build_shared=yes
8849
8850 # All known linkers require a `.a' archive for static linking (except MSVC,
8851 # which needs '.lib').
8852 libext=a
8853
8854 with_gnu_ld="$lt_cv_prog_gnu_ld"
8855
8856 old_CC="$CC"
8857 old_CFLAGS="$CFLAGS"
8858
8859 # Set sane defaults for various variables
8860 test -z "$CC" && CC=cc
8861 test -z "$LTCC" && LTCC=$CC
8862 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8863 test -z "$LD" && LD=ld
8864 test -z "$ac_objext" && ac_objext=o
8865
8866 for cc_temp in $compiler""; do
8867 case $cc_temp in
8868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8870 \-*) ;;
8871 *) break;;
8872 esac
8873 done
8874 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8875
8876
8877 # Only perform the check for file, if the check method requires it
8878 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8879 case $deplibs_check_method in
8880 file_magic*)
8881 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8883 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8884 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 case $MAGIC_CMD in
8888 [\\/*] | ?:[\\/]*)
8889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8890 ;;
8891 *)
8892 lt_save_MAGIC_CMD="$MAGIC_CMD"
8893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8894 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8895 for ac_dir in $ac_dummy; do
8896 IFS="$lt_save_ifs"
8897 test -z "$ac_dir" && ac_dir=.
8898 if test -f $ac_dir/${ac_tool_prefix}file; then
8899 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8900 if test -n "$file_magic_test_file"; then
8901 case $deplibs_check_method in
8902 "file_magic "*)
8903 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8906 $EGREP "$file_magic_regex" > /dev/null; then
8907 :
8908 else
8909 cat <<_LT_EOF 1>&2
8910
8911 *** Warning: the command libtool uses to detect shared libraries,
8912 *** $file_magic_cmd, produces output that libtool cannot recognize.
8913 *** The result is that libtool may fail to recognize shared libraries
8914 *** as such. This will affect the creation of libtool libraries that
8915 *** depend on shared libraries, but programs linked with such libtool
8916 *** libraries will work regardless of this problem. Nevertheless, you
8917 *** may want to report the problem to your system manager and/or to
8918 *** bug-libtool@gnu.org
8919
8920 _LT_EOF
8921 fi ;;
8922 esac
8923 fi
8924 break
8925 fi
8926 done
8927 IFS="$lt_save_ifs"
8928 MAGIC_CMD="$lt_save_MAGIC_CMD"
8929 ;;
8930 esac
8931 fi
8932
8933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8934 if test -n "$MAGIC_CMD"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8936 $as_echo "$MAGIC_CMD" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 fi
8941
8942
8943
8944
8945
8946 if test -z "$lt_cv_path_MAGIC_CMD"; then
8947 if test -n "$ac_tool_prefix"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8949 $as_echo_n "checking for file... " >&6; }
8950 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 case $MAGIC_CMD in
8954 [\\/*] | ?:[\\/]*)
8955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8956 ;;
8957 *)
8958 lt_save_MAGIC_CMD="$MAGIC_CMD"
8959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8961 for ac_dir in $ac_dummy; do
8962 IFS="$lt_save_ifs"
8963 test -z "$ac_dir" && ac_dir=.
8964 if test -f $ac_dir/file; then
8965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8966 if test -n "$file_magic_test_file"; then
8967 case $deplibs_check_method in
8968 "file_magic "*)
8969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8972 $EGREP "$file_magic_regex" > /dev/null; then
8973 :
8974 else
8975 cat <<_LT_EOF 1>&2
8976
8977 *** Warning: the command libtool uses to detect shared libraries,
8978 *** $file_magic_cmd, produces output that libtool cannot recognize.
8979 *** The result is that libtool may fail to recognize shared libraries
8980 *** as such. This will affect the creation of libtool libraries that
8981 *** depend on shared libraries, but programs linked with such libtool
8982 *** libraries will work regardless of this problem. Nevertheless, you
8983 *** may want to report the problem to your system manager and/or to
8984 *** bug-libtool@gnu.org
8985
8986 _LT_EOF
8987 fi ;;
8988 esac
8989 fi
8990 break
8991 fi
8992 done
8993 IFS="$lt_save_ifs"
8994 MAGIC_CMD="$lt_save_MAGIC_CMD"
8995 ;;
8996 esac
8997 fi
8998
8999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9000 if test -n "$MAGIC_CMD"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9002 $as_echo "$MAGIC_CMD" >&6; }
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9006 fi
9007
9008
9009 else
9010 MAGIC_CMD=:
9011 fi
9012 fi
9013
9014 fi
9015 ;;
9016 esac
9017
9018 # Use C for the default configuration in the libtool script
9019
9020 lt_save_CC="$CC"
9021 ac_ext=c
9022 ac_cpp='$CPP $CPPFLAGS'
9023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9026
9027
9028 # Source file extension for C test sources.
9029 ac_ext=c
9030
9031 # Object file extension for compiled C test sources.
9032 objext=o
9033 objext=$objext
9034
9035 # Code to be used in simple compile tests
9036 lt_simple_compile_test_code="int some_variable = 0;"
9037
9038 # Code to be used in simple link tests
9039 lt_simple_link_test_code='int main(){return(0);}'
9040
9041
9042
9043
9044
9045
9046
9047 # If no C compiler was specified, use CC.
9048 LTCC=${LTCC-"$CC"}
9049
9050 # If no C compiler flags were specified, use CFLAGS.
9051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9052
9053 # Allow CC to be a program name with arguments.
9054 compiler=$CC
9055
9056 # Save the default compiler, since it gets overwritten when the other
9057 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9058 compiler_DEFAULT=$CC
9059
9060 # save warnings/boilerplate of simple test code
9061 ac_outfile=conftest.$ac_objext
9062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9064 _lt_compiler_boilerplate=`cat conftest.err`
9065 $RM -r conftest*
9066
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9070 _lt_linker_boilerplate=`cat conftest.err`
9071 $RM -r conftest*
9072
9073
9074 ## CAVEAT EMPTOR:
9075 ## There is no encapsulation within the following macros, do not change
9076 ## the running order or otherwise move them around unless you know exactly
9077 ## what you are doing...
9078 if test -n "$compiler"; then
9079
9080 lt_prog_compiler_no_builtin_flag=
9081
9082 if test "$GCC" = yes; then
9083 case $cc_basename in
9084 nvcc*)
9085 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9086 *)
9087 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9088 esac
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9092 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 lt_cv_prog_compiler_rtti_exceptions=no
9096 ac_outfile=conftest.$ac_objext
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098 lt_compiler_flag="-fno-rtti -fno-exceptions"
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 # The option is referenced via a variable to avoid confusing sed.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>conftest.err)
9110 ac_status=$?
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s "$ac_outfile"; then
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings other than the usual output.
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_rtti_exceptions=yes
9120 fi
9121 fi
9122 $RM -r conftest*
9123
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9127
9128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9130 else
9131 :
9132 fi
9133
9134 fi
9135
9136
9137
9138
9139
9140
9141 lt_prog_compiler_wl=
9142 lt_prog_compiler_pic=
9143 lt_prog_compiler_static=
9144
9145
9146 if test "$GCC" = yes; then
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_static='-static'
9149
9150 case $host_os in
9151 aix*)
9152 # All AIX code is PIC.
9153 if test "$host_cpu" = ia64; then
9154 # AIX 5 now supports IA64 processor
9155 lt_prog_compiler_static='-Bstatic'
9156 fi
9157 ;;
9158
9159 amigaos*)
9160 case $host_cpu in
9161 powerpc)
9162 # see comment about AmigaOS4 .so support
9163 lt_prog_compiler_pic='-fPIC'
9164 ;;
9165 m68k)
9166 # FIXME: we need at least 68020 code to build shared libraries, but
9167 # adding the `-m68020' flag to GCC prevents building anything better,
9168 # like `-m68040'.
9169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9170 ;;
9171 esac
9172 ;;
9173
9174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9175 # PIC is the default for these OSes.
9176 ;;
9177
9178 mingw* | cygwin* | pw32* | os2* | cegcc*)
9179 # This hack is so that the source file can tell whether it is being
9180 # built for inclusion in a dll (and should export symbols for example).
9181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9182 # (--disable-auto-import) libraries
9183 lt_prog_compiler_pic='-DDLL_EXPORT'
9184 ;;
9185
9186 darwin* | rhapsody*)
9187 # PIC is the default on this platform
9188 # Common symbols not allowed in MH_DYLIB files
9189 lt_prog_compiler_pic='-fno-common'
9190 ;;
9191
9192 haiku*)
9193 # PIC is the default for Haiku.
9194 # The "-static" flag exists, but is broken.
9195 lt_prog_compiler_static=
9196 ;;
9197
9198 hpux*)
9199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9201 # sets the default TLS model and affects inlining.
9202 case $host_cpu in
9203 hppa*64*)
9204 # +Z the default
9205 ;;
9206 *)
9207 lt_prog_compiler_pic='-fPIC'
9208 ;;
9209 esac
9210 ;;
9211
9212 interix[3-9]*)
9213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9214 # Instead, we relocate shared libraries at runtime.
9215 ;;
9216
9217 msdosdjgpp*)
9218 # Just because we use GCC doesn't mean we suddenly get shared libraries
9219 # on systems that don't support them.
9220 lt_prog_compiler_can_build_shared=no
9221 enable_shared=no
9222 ;;
9223
9224 *nto* | *qnx*)
9225 # QNX uses GNU C++, but need to define -shared option too, otherwise
9226 # it will coredump.
9227 lt_prog_compiler_pic='-fPIC -shared'
9228 ;;
9229
9230 sysv4*MP*)
9231 if test -d /usr/nec; then
9232 lt_prog_compiler_pic=-Kconform_pic
9233 fi
9234 ;;
9235
9236 *)
9237 lt_prog_compiler_pic='-fPIC'
9238 ;;
9239 esac
9240
9241 case $cc_basename in
9242 nvcc*) # Cuda Compiler Driver 2.2
9243 lt_prog_compiler_wl='-Xlinker '
9244 if test -n "$lt_prog_compiler_pic"; then
9245 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9246 fi
9247 ;;
9248 esac
9249 else
9250 # PORTME Check for flag to pass linker flags through the system compiler.
9251 case $host_os in
9252 aix*)
9253 lt_prog_compiler_wl='-Wl,'
9254 if test "$host_cpu" = ia64; then
9255 # AIX 5 now supports IA64 processor
9256 lt_prog_compiler_static='-Bstatic'
9257 else
9258 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9259 fi
9260 ;;
9261
9262 mingw* | cygwin* | pw32* | os2* | cegcc*)
9263 # This hack is so that the source file can tell whether it is being
9264 # built for inclusion in a dll (and should export symbols for example).
9265 lt_prog_compiler_pic='-DDLL_EXPORT'
9266 ;;
9267
9268 hpux9* | hpux10* | hpux11*)
9269 lt_prog_compiler_wl='-Wl,'
9270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9271 # not for PA HP-UX.
9272 case $host_cpu in
9273 hppa*64*|ia64*)
9274 # +Z the default
9275 ;;
9276 *)
9277 lt_prog_compiler_pic='+Z'
9278 ;;
9279 esac
9280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9281 lt_prog_compiler_static='${wl}-a ${wl}archive'
9282 ;;
9283
9284 irix5* | irix6* | nonstopux*)
9285 lt_prog_compiler_wl='-Wl,'
9286 # PIC (with -KPIC) is the default.
9287 lt_prog_compiler_static='-non_shared'
9288 ;;
9289
9290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9291 case $cc_basename in
9292 # old Intel for x86_64 which still supported -KPIC.
9293 ecc*)
9294 lt_prog_compiler_wl='-Wl,'
9295 lt_prog_compiler_pic='-KPIC'
9296 lt_prog_compiler_static='-static'
9297 ;;
9298 # icc used to be incompatible with GCC.
9299 # ICC 10 doesn't accept -KPIC any more.
9300 icc* | ifort*)
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_pic='-fPIC'
9303 lt_prog_compiler_static='-static'
9304 ;;
9305 # Lahey Fortran 8.1.
9306 lf95*)
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='--shared'
9309 lt_prog_compiler_static='--static'
9310 ;;
9311 nagfor*)
9312 # NAG Fortran compiler
9313 lt_prog_compiler_wl='-Wl,-Wl,,'
9314 lt_prog_compiler_pic='-PIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9318 # Portland Group compilers (*not* the Pentium gcc compiler,
9319 # which looks to be a dead project)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='-fpic'
9322 lt_prog_compiler_static='-Bstatic'
9323 ;;
9324 ccc*)
9325 lt_prog_compiler_wl='-Wl,'
9326 # All Alpha code is PIC.
9327 lt_prog_compiler_static='-non_shared'
9328 ;;
9329 xl* | bgxl* | bgf* | mpixl*)
9330 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-qpic'
9333 lt_prog_compiler_static='-qstaticlink'
9334 ;;
9335 *)
9336 case `$CC -V 2>&1 | sed 5q` in
9337 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9338 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 lt_prog_compiler_wl=''
9342 ;;
9343 *Sun\ F* | *Sun*Fortran*)
9344 lt_prog_compiler_pic='-KPIC'
9345 lt_prog_compiler_static='-Bstatic'
9346 lt_prog_compiler_wl='-Qoption ld '
9347 ;;
9348 *Sun\ C*)
9349 # Sun C 5.9
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 lt_prog_compiler_wl='-Wl,'
9353 ;;
9354 *Intel*\ [CF]*Compiler*)
9355 lt_prog_compiler_wl='-Wl,'
9356 lt_prog_compiler_pic='-fPIC'
9357 lt_prog_compiler_static='-static'
9358 ;;
9359 *Portland\ Group*)
9360 lt_prog_compiler_wl='-Wl,'
9361 lt_prog_compiler_pic='-fpic'
9362 lt_prog_compiler_static='-Bstatic'
9363 ;;
9364 esac
9365 ;;
9366 esac
9367 ;;
9368
9369 newsos6)
9370 lt_prog_compiler_pic='-KPIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 *nto* | *qnx*)
9375 # QNX uses GNU C++, but need to define -shared option too, otherwise
9376 # it will coredump.
9377 lt_prog_compiler_pic='-fPIC -shared'
9378 ;;
9379
9380 osf3* | osf4* | osf5*)
9381 lt_prog_compiler_wl='-Wl,'
9382 # All OSF/1 code is PIC.
9383 lt_prog_compiler_static='-non_shared'
9384 ;;
9385
9386 rdos*)
9387 lt_prog_compiler_static='-non_shared'
9388 ;;
9389
9390 solaris*)
9391 lt_prog_compiler_pic='-KPIC'
9392 lt_prog_compiler_static='-Bstatic'
9393 case $cc_basename in
9394 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9395 lt_prog_compiler_wl='-Qoption ld ';;
9396 *)
9397 lt_prog_compiler_wl='-Wl,';;
9398 esac
9399 ;;
9400
9401 sunos4*)
9402 lt_prog_compiler_wl='-Qoption ld '
9403 lt_prog_compiler_pic='-PIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 ;;
9406
9407 sysv4 | sysv4.2uw2* | sysv4.3*)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_pic='-KPIC'
9410 lt_prog_compiler_static='-Bstatic'
9411 ;;
9412
9413 sysv4*MP*)
9414 if test -d /usr/nec ;then
9415 lt_prog_compiler_pic='-Kconform_pic'
9416 lt_prog_compiler_static='-Bstatic'
9417 fi
9418 ;;
9419
9420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9424 ;;
9425
9426 unicos*)
9427 lt_prog_compiler_wl='-Wl,'
9428 lt_prog_compiler_can_build_shared=no
9429 ;;
9430
9431 uts4*)
9432 lt_prog_compiler_pic='-pic'
9433 lt_prog_compiler_static='-Bstatic'
9434 ;;
9435
9436 *)
9437 lt_prog_compiler_can_build_shared=no
9438 ;;
9439 esac
9440 fi
9441
9442 case $host_os in
9443 # For platforms which do not support PIC, -DPIC is meaningless:
9444 *djgpp*)
9445 lt_prog_compiler_pic=
9446 ;;
9447 *)
9448 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9449 ;;
9450 esac
9451
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9453 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9454 if ${lt_cv_prog_compiler_pic+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9460 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9461 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9462
9463 #
9464 # Check to make sure the PIC flag actually works.
9465 #
9466 if test -n "$lt_prog_compiler_pic"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9468 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9469 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 lt_cv_prog_compiler_pic_works=no
9473 ac_outfile=conftest.$ac_objext
9474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9475 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9476 # Insert the option either (1) after the last *FLAGS variable, or
9477 # (2) before a word containing "conftest.", or (3) at the end.
9478 # Note that $ac_compile itself does not contain backslashes and begins
9479 # with a dollar sign (not a hyphen), so the echo should work correctly.
9480 # The option is referenced via a variable to avoid confusing sed.
9481 lt_compile=`echo "$ac_compile" | $SED \
9482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9484 -e 's:$: $lt_compiler_flag:'`
9485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9486 (eval "$lt_compile" 2>conftest.err)
9487 ac_status=$?
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 if (exit $ac_status) && test -s "$ac_outfile"; then
9491 # The compiler can only warn and ignore the option if not recognized
9492 # So say no if there are warnings other than the usual output.
9493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9496 lt_cv_prog_compiler_pic_works=yes
9497 fi
9498 fi
9499 $RM -r conftest*
9500
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9503 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9504
9505 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9506 case $lt_prog_compiler_pic in
9507 "" | " "*) ;;
9508 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9509 esac
9510 else
9511 lt_prog_compiler_pic=
9512 lt_prog_compiler_can_build_shared=no
9513 fi
9514
9515 fi
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527 #
9528 # Check to make sure the static flag actually works.
9529 #
9530 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9532 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9533 if ${lt_cv_prog_compiler_static_works+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 lt_cv_prog_compiler_static_works=no
9537 save_LDFLAGS="$LDFLAGS"
9538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9539 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9541 # The linker can only warn and ignore the option if not recognized
9542 # So say no if there are warnings
9543 if test -s conftest.err; then
9544 # Append any errors to the config.log.
9545 cat conftest.err 1>&5
9546 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9548 if diff conftest.exp conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_static_works=yes
9550 fi
9551 else
9552 lt_cv_prog_compiler_static_works=yes
9553 fi
9554 fi
9555 $RM -r conftest*
9556 LDFLAGS="$save_LDFLAGS"
9557
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9560 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9561
9562 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9563 :
9564 else
9565 lt_prog_compiler_static=
9566 fi
9567
9568
9569
9570
9571
9572
9573
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9576 if ${lt_cv_prog_compiler_c_o+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 lt_cv_prog_compiler_c_o=no
9580 $RM -r conftest 2>/dev/null
9581 mkdir conftest
9582 cd conftest
9583 mkdir out
9584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9585
9586 lt_compiler_flag="-o out/conftest2.$ac_objext"
9587 # Insert the option either (1) after the last *FLAGS variable, or
9588 # (2) before a word containing "conftest.", or (3) at the end.
9589 # Note that $ac_compile itself does not contain backslashes and begins
9590 # with a dollar sign (not a hyphen), so the echo should work correctly.
9591 lt_compile=`echo "$ac_compile" | $SED \
9592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9594 -e 's:$: $lt_compiler_flag:'`
9595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9596 (eval "$lt_compile" 2>out/conftest.err)
9597 ac_status=$?
9598 cat out/conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9601 then
9602 # The compiler can only warn and ignore the option if not recognized
9603 # So say no if there are warnings
9604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9607 lt_cv_prog_compiler_c_o=yes
9608 fi
9609 fi
9610 chmod u+w . 2>&5
9611 $RM -r conftest*
9612 # SGI C++ compiler will create directory out/ii_files/ for
9613 # template instantiation
9614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9615 $RM out/* && rmdir out
9616 cd ..
9617 $RM -r conftest
9618 $RM -r conftest*
9619
9620 fi
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9622 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9623
9624
9625
9626
9627
9628
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9630 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9631 if ${lt_cv_prog_compiler_c_o+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 lt_cv_prog_compiler_c_o=no
9635 $RM -r conftest 2>/dev/null
9636 mkdir conftest
9637 cd conftest
9638 mkdir out
9639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9640
9641 lt_compiler_flag="-o out/conftest2.$ac_objext"
9642 # Insert the option either (1) after the last *FLAGS variable, or
9643 # (2) before a word containing "conftest.", or (3) at the end.
9644 # Note that $ac_compile itself does not contain backslashes and begins
9645 # with a dollar sign (not a hyphen), so the echo should work correctly.
9646 lt_compile=`echo "$ac_compile" | $SED \
9647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9649 -e 's:$: $lt_compiler_flag:'`
9650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9651 (eval "$lt_compile" 2>out/conftest.err)
9652 ac_status=$?
9653 cat out/conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9656 then
9657 # The compiler can only warn and ignore the option if not recognized
9658 # So say no if there are warnings
9659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9662 lt_cv_prog_compiler_c_o=yes
9663 fi
9664 fi
9665 chmod u+w . 2>&5
9666 $RM -r conftest*
9667 # SGI C++ compiler will create directory out/ii_files/ for
9668 # template instantiation
9669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9670 $RM out/* && rmdir out
9671 cd ..
9672 $RM -r conftest
9673 $RM -r conftest*
9674
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9677 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9678
9679
9680
9681
9682 hard_links="nottested"
9683 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9684 # do not overwrite the value of need_locks provided by the user
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9686 $as_echo_n "checking if we can lock with hard links... " >&6; }
9687 hard_links=yes
9688 $RM -r conftest*
9689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9690 touch conftest.a
9691 ln conftest.a conftest.b 2>&5 || hard_links=no
9692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9694 $as_echo "$hard_links" >&6; }
9695 if test "$hard_links" = no; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9697 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9698 need_locks=warn
9699 fi
9700 else
9701 need_locks=no
9702 fi
9703
9704
9705
9706
9707
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9711
9712 runpath_var=
9713 allow_undefined_flag=
9714 always_export_symbols=no
9715 archive_cmds=
9716 archive_expsym_cmds=
9717 compiler_needs_object=no
9718 enable_shared_with_static_runtimes=no
9719 export_dynamic_flag_spec=
9720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9721 hardcode_automatic=no
9722 hardcode_direct=no
9723 hardcode_direct_absolute=no
9724 hardcode_libdir_flag_spec=
9725 hardcode_libdir_separator=
9726 hardcode_minus_L=no
9727 hardcode_shlibpath_var=unsupported
9728 inherit_rpath=no
9729 link_all_deplibs=unknown
9730 module_cmds=
9731 module_expsym_cmds=
9732 old_archive_from_new_cmds=
9733 old_archive_from_expsyms_cmds=
9734 thread_safe_flag_spec=
9735 whole_archive_flag_spec=
9736 # include_expsyms should be a list of space-separated symbols to be *always*
9737 # included in the symbol list
9738 include_expsyms=
9739 # exclude_expsyms can be an extended regexp of symbols to exclude
9740 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9742 # as well as any symbol that contains `d'.
9743 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9745 # platforms (ab)use it in PIC code, but their linkers get confused if
9746 # the symbol is explicitly referenced. Since portable code cannot
9747 # rely on this symbol name, it's probably fine to never include it in
9748 # preloaded symbol tables.
9749 # Exclude shared library initialization/finalization symbols.
9750 extract_expsyms_cmds=
9751
9752 case $host_os in
9753 cygwin* | mingw* | pw32* | cegcc*)
9754 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9755 # When not using gcc, we currently assume that we are using
9756 # Microsoft Visual C++.
9757 if test "$GCC" != yes; then
9758 with_gnu_ld=no
9759 fi
9760 ;;
9761 interix*)
9762 # we just hope/assume this is gcc and not c89 (= MSVC++)
9763 with_gnu_ld=yes
9764 ;;
9765 openbsd*)
9766 with_gnu_ld=no
9767 ;;
9768 esac
9769
9770 ld_shlibs=yes
9771
9772 # On some targets, GNU ld is compatible enough with the native linker
9773 # that we're better off using the native interface for both.
9774 lt_use_gnu_ld_interface=no
9775 if test "$with_gnu_ld" = yes; then
9776 case $host_os in
9777 aix*)
9778 # The AIX port of GNU ld has always aspired to compatibility
9779 # with the native linker. However, as the warning in the GNU ld
9780 # block says, versions before 2.19.5* couldn't really create working
9781 # shared libraries, regardless of the interface used.
9782 case `$LD -v 2>&1` in
9783 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9784 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9785 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9786 *)
9787 lt_use_gnu_ld_interface=yes
9788 ;;
9789 esac
9790 ;;
9791 *)
9792 lt_use_gnu_ld_interface=yes
9793 ;;
9794 esac
9795 fi
9796
9797 if test "$lt_use_gnu_ld_interface" = yes; then
9798 # If archive_cmds runs LD, not CC, wlarc should be empty
9799 wlarc='${wl}'
9800
9801 # Set some defaults for GNU ld with shared library support. These
9802 # are reset later if shared libraries are not supported. Putting them
9803 # here allows them to be overridden if necessary.
9804 runpath_var=LD_RUN_PATH
9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9806 export_dynamic_flag_spec='${wl}--export-dynamic'
9807 # ancient GNU ld didn't support --whole-archive et. al.
9808 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9809 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9810 else
9811 whole_archive_flag_spec=
9812 fi
9813 supports_anon_versioning=no
9814 case `$LD -v 2>&1` in
9815 *GNU\ gold*) supports_anon_versioning=yes ;;
9816 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9819 *\ 2.11.*) ;; # other 2.11 versions
9820 *) supports_anon_versioning=yes ;;
9821 esac
9822
9823 # See if GNU ld supports shared libraries.
9824 case $host_os in
9825 aix[3-9]*)
9826 # On AIX/PPC, the GNU linker is very broken
9827 if test "$host_cpu" != ia64; then
9828 ld_shlibs=no
9829 cat <<_LT_EOF 1>&2
9830
9831 *** Warning: the GNU linker, at least up to release 2.19, is reported
9832 *** to be unable to reliably create shared libraries on AIX.
9833 *** Therefore, libtool is disabling shared libraries support. If you
9834 *** really care for shared libraries, you may want to install binutils
9835 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9836 *** You will then need to restart the configuration process.
9837
9838 _LT_EOF
9839 fi
9840 ;;
9841
9842 amigaos*)
9843 case $host_cpu in
9844 powerpc)
9845 # see comment about AmigaOS4 .so support
9846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9847 archive_expsym_cmds=''
9848 ;;
9849 m68k)
9850 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)'
9851 hardcode_libdir_flag_spec='-L$libdir'
9852 hardcode_minus_L=yes
9853 ;;
9854 esac
9855 ;;
9856
9857 beos*)
9858 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9859 allow_undefined_flag=unsupported
9860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9861 # support --undefined. This deserves some investigation. FIXME
9862 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863 else
9864 ld_shlibs=no
9865 fi
9866 ;;
9867
9868 cygwin* | mingw* | pw32* | cegcc*)
9869 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9870 # as there is no search path for DLLs.
9871 hardcode_libdir_flag_spec='-L$libdir'
9872 export_dynamic_flag_spec='${wl}--export-all-symbols'
9873 allow_undefined_flag=unsupported
9874 always_export_symbols=no
9875 enable_shared_with_static_runtimes=yes
9876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9877 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9878
9879 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9881 # If the export-symbols file already is a .def file (1st line
9882 # is EXPORTS), use it as is; otherwise, prepend...
9883 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9884 cp $export_symbols $output_objdir/$soname.def;
9885 else
9886 echo EXPORTS > $output_objdir/$soname.def;
9887 cat $export_symbols >> $output_objdir/$soname.def;
9888 fi~
9889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9890 else
9891 ld_shlibs=no
9892 fi
9893 ;;
9894
9895 haiku*)
9896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9897 link_all_deplibs=yes
9898 ;;
9899
9900 interix[3-9]*)
9901 hardcode_direct=no
9902 hardcode_shlibpath_var=no
9903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9904 export_dynamic_flag_spec='${wl}-E'
9905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9906 # Instead, shared libraries are loaded at an image base (0x10000000 by
9907 # default) and relocated if they conflict, which is a slow very memory
9908 # consuming and fragmenting process. To avoid this, we pick a random,
9909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9912 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'
9913 ;;
9914
9915 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9916 tmp_diet=no
9917 if test "$host_os" = linux-dietlibc; then
9918 case $cc_basename in
9919 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9920 esac
9921 fi
9922 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9923 && test "$tmp_diet" = no
9924 then
9925 tmp_addflag=' $pic_flag'
9926 tmp_sharedflag='-shared'
9927 case $cc_basename,$host_cpu in
9928 pgcc*) # Portland Group C compiler
9929 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9930 tmp_addflag=' $pic_flag'
9931 ;;
9932 pgf77* | pgf90* | pgf95* | pgfortran*)
9933 # Portland Group f77 and f90 compilers
9934 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9935 tmp_addflag=' $pic_flag -Mnomain' ;;
9936 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9937 tmp_addflag=' -i_dynamic' ;;
9938 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9939 tmp_addflag=' -i_dynamic -nofor_main' ;;
9940 ifc* | ifort*) # Intel Fortran compiler
9941 tmp_addflag=' -nofor_main' ;;
9942 lf95*) # Lahey Fortran 8.1
9943 whole_archive_flag_spec=
9944 tmp_sharedflag='--shared' ;;
9945 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9946 tmp_sharedflag='-qmkshrobj'
9947 tmp_addflag= ;;
9948 nvcc*) # Cuda Compiler Driver 2.2
9949 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9950 compiler_needs_object=yes
9951 ;;
9952 esac
9953 case `$CC -V 2>&1 | sed 5q` in
9954 *Sun\ C*) # Sun C 5.9
9955 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9956 compiler_needs_object=yes
9957 tmp_sharedflag='-G' ;;
9958 *Sun\ F*) # Sun Fortran 8.3
9959 tmp_sharedflag='-G' ;;
9960 esac
9961 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962
9963 if test "x$supports_anon_versioning" = xyes; then
9964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9966 echo "local: *; };" >> $output_objdir/$libname.ver~
9967 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9968 fi
9969
9970 case $cc_basename in
9971 xlf* | bgf* | bgxlf* | mpixlf*)
9972 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9973 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9976 if test "x$supports_anon_versioning" = xyes; then
9977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9979 echo "local: *; };" >> $output_objdir/$libname.ver~
9980 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9981 fi
9982 ;;
9983 esac
9984 else
9985 ld_shlibs=no
9986 fi
9987 ;;
9988
9989 netbsd*)
9990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9991 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9992 wlarc=
9993 else
9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9996 fi
9997 ;;
9998
9999 solaris*)
10000 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10001 ld_shlibs=no
10002 cat <<_LT_EOF 1>&2
10003
10004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10005 *** create shared libraries on Solaris systems. Therefore, libtool
10006 *** is disabling shared libraries support. We urge you to upgrade GNU
10007 *** binutils to release 2.9.1 or newer. Another option is to modify
10008 *** your PATH or compiler configuration so that the native linker is
10009 *** used, and then restart.
10010
10011 _LT_EOF
10012 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10014 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10015 else
10016 ld_shlibs=no
10017 fi
10018 ;;
10019
10020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10021 case `$LD -v 2>&1` in
10022 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10023 ld_shlibs=no
10024 cat <<_LT_EOF 1>&2
10025
10026 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10027 *** reliably create shared libraries on SCO systems. Therefore, libtool
10028 *** is disabling shared libraries support. We urge you to upgrade GNU
10029 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10030 *** your PATH or compiler configuration so that the native linker is
10031 *** used, and then restart.
10032
10033 _LT_EOF
10034 ;;
10035 *)
10036 # For security reasons, it is highly recommended that you always
10037 # use absolute paths for naming shared libraries, and exclude the
10038 # DT_RUNPATH tag from executables and libraries. But doing so
10039 # requires that you compile everything twice, which is a pain.
10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10044 else
10045 ld_shlibs=no
10046 fi
10047 ;;
10048 esac
10049 ;;
10050
10051 sunos4*)
10052 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053 wlarc=
10054 hardcode_direct=yes
10055 hardcode_shlibpath_var=no
10056 ;;
10057
10058 *)
10059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10062 else
10063 ld_shlibs=no
10064 fi
10065 ;;
10066 esac
10067
10068 if test "$ld_shlibs" = no; then
10069 runpath_var=
10070 hardcode_libdir_flag_spec=
10071 export_dynamic_flag_spec=
10072 whole_archive_flag_spec=
10073 fi
10074 else
10075 # PORTME fill in a description of your system's linker (not GNU ld)
10076 case $host_os in
10077 aix3*)
10078 allow_undefined_flag=unsupported
10079 always_export_symbols=yes
10080 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'
10081 # Note: this linker hardcodes the directories in LIBPATH if there
10082 # are no directories specified by -L.
10083 hardcode_minus_L=yes
10084 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10085 # Neither direct hardcoding nor static linking is supported with a
10086 # broken collect2.
10087 hardcode_direct=unsupported
10088 fi
10089 ;;
10090
10091 aix[4-9]*)
10092 if test "$host_cpu" = ia64; then
10093 # On IA64, the linker does run time linking by default, so we don't
10094 # have to do anything special.
10095 aix_use_runtimelinking=no
10096 exp_sym_flag='-Bexport'
10097 no_entry_flag=""
10098 else
10099 # If we're using GNU nm, then we don't want the "-C" option.
10100 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10101 # Also, AIX nm treats weak defined symbols like other global
10102 # defined symbols, whereas GNU nm marks them as "W".
10103 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10104 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10105 else
10106 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'
10107 fi
10108 aix_use_runtimelinking=no
10109
10110 # Test if we are trying to use run time linking or normal
10111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10112 # need to do runtime linking.
10113 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10114 for ld_flag in $LDFLAGS; do
10115 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10116 aix_use_runtimelinking=yes
10117 break
10118 fi
10119 done
10120 ;;
10121 esac
10122
10123 exp_sym_flag='-bexport'
10124 no_entry_flag='-bnoentry'
10125 fi
10126
10127 # When large executables or shared objects are built, AIX ld can
10128 # have problems creating the table of contents. If linking a library
10129 # or program results in "error TOC overflow" add -mminimal-toc to
10130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10132
10133 archive_cmds=''
10134 hardcode_direct=yes
10135 hardcode_direct_absolute=yes
10136 hardcode_libdir_separator=':'
10137 link_all_deplibs=yes
10138 file_list_spec='${wl}-f,'
10139
10140 if test "$GCC" = yes; then
10141 case $host_os in aix4.[012]|aix4.[012].*)
10142 # We only want to do this on AIX 4.2 and lower, the check
10143 # below for broken collect2 doesn't work under 4.3+
10144 collect2name=`${CC} -print-prog-name=collect2`
10145 if test -f "$collect2name" &&
10146 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10147 then
10148 # We have reworked collect2
10149 :
10150 else
10151 # We have old collect2
10152 hardcode_direct=unsupported
10153 # It fails to find uninstalled libraries when the uninstalled
10154 # path is not listed in the libpath. Setting hardcode_minus_L
10155 # to unsupported forces relinking
10156 hardcode_minus_L=yes
10157 hardcode_libdir_flag_spec='-L$libdir'
10158 hardcode_libdir_separator=
10159 fi
10160 ;;
10161 esac
10162 shared_flag='-shared'
10163 if test "$aix_use_runtimelinking" = yes; then
10164 shared_flag="$shared_flag "'${wl}-G'
10165 fi
10166 else
10167 # not using gcc
10168 if test "$host_cpu" = ia64; then
10169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10170 # chokes on -Wl,-G. The following line is correct:
10171 shared_flag='-G'
10172 else
10173 if test "$aix_use_runtimelinking" = yes; then
10174 shared_flag='${wl}-G'
10175 else
10176 shared_flag='${wl}-bM:SRE'
10177 fi
10178 fi
10179 fi
10180
10181 export_dynamic_flag_spec='${wl}-bexpall'
10182 # It seems that -bexpall does not export symbols beginning with
10183 # underscore (_), so it is better to generate a list of symbols to export.
10184 always_export_symbols=yes
10185 if test "$aix_use_runtimelinking" = yes; then
10186 # Warning - without using the other runtime loading flags (-brtl),
10187 # -berok will link without error, but may produce a broken library.
10188 allow_undefined_flag='-berok'
10189 # Determine the default libpath from the value encoded in an
10190 # empty executable.
10191 if test "${lt_cv_aix_libpath+set}" = set; then
10192 aix_libpath=$lt_cv_aix_libpath
10193 else
10194 if ${lt_cv_aix_libpath_+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199
10200 int
10201 main ()
10202 {
10203
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209
10210 lt_aix_libpath_sed='
10211 /Import File Strings/,/^$/ {
10212 /^0/ {
10213 s/^0 *\([^ ]*\) *$/\1/
10214 p
10215 }
10216 }'
10217 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10218 # Check for a 64-bit object if we didn't find anything.
10219 if test -z "$lt_cv_aix_libpath_"; then
10220 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10221 fi
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 if test -z "$lt_cv_aix_libpath_"; then
10226 lt_cv_aix_libpath_="/usr/lib:/lib"
10227 fi
10228
10229 fi
10230
10231 aix_libpath=$lt_cv_aix_libpath_
10232 fi
10233
10234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10235 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10236 else
10237 if test "$host_cpu" = ia64; then
10238 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10239 allow_undefined_flag="-z nodefs"
10240 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"
10241 else
10242 # Determine the default libpath from the value encoded in an
10243 # empty executable.
10244 if test "${lt_cv_aix_libpath+set}" = set; then
10245 aix_libpath=$lt_cv_aix_libpath
10246 else
10247 if ${lt_cv_aix_libpath_+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252
10253 int
10254 main ()
10255 {
10256
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"; then :
10262
10263 lt_aix_libpath_sed='
10264 /Import File Strings/,/^$/ {
10265 /^0/ {
10266 s/^0 *\([^ ]*\) *$/\1/
10267 p
10268 }
10269 }'
10270 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10271 # Check for a 64-bit object if we didn't find anything.
10272 if test -z "$lt_cv_aix_libpath_"; then
10273 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10274 fi
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 if test -z "$lt_cv_aix_libpath_"; then
10279 lt_cv_aix_libpath_="/usr/lib:/lib"
10280 fi
10281
10282 fi
10283
10284 aix_libpath=$lt_cv_aix_libpath_
10285 fi
10286
10287 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10288 # Warning - without using the other run time loading flags,
10289 # -berok will link without error, but may produce a broken library.
10290 no_undefined_flag=' ${wl}-bernotok'
10291 allow_undefined_flag=' ${wl}-berok'
10292 if test "$with_gnu_ld" = yes; then
10293 # We only use this code for GNU lds that support --whole-archive.
10294 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10295 else
10296 # Exported symbols can be pulled into shared objects from archives
10297 whole_archive_flag_spec='$convenience'
10298 fi
10299 archive_cmds_need_lc=yes
10300 # This is similar to how AIX traditionally builds its shared libraries.
10301 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'
10302 fi
10303 fi
10304 ;;
10305
10306 amigaos*)
10307 case $host_cpu in
10308 powerpc)
10309 # see comment about AmigaOS4 .so support
10310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 archive_expsym_cmds=''
10312 ;;
10313 m68k)
10314 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)'
10315 hardcode_libdir_flag_spec='-L$libdir'
10316 hardcode_minus_L=yes
10317 ;;
10318 esac
10319 ;;
10320
10321 bsdi[45]*)
10322 export_dynamic_flag_spec=-rdynamic
10323 ;;
10324
10325 cygwin* | mingw* | pw32* | cegcc*)
10326 # When not using gcc, we currently assume that we are using
10327 # Microsoft Visual C++.
10328 # hardcode_libdir_flag_spec is actually meaningless, as there is
10329 # no search path for DLLs.
10330 case $cc_basename in
10331 cl*)
10332 # Native MSVC
10333 hardcode_libdir_flag_spec=' '
10334 allow_undefined_flag=unsupported
10335 always_export_symbols=yes
10336 file_list_spec='@'
10337 # Tell ltmain to make .lib files, not .a files.
10338 libext=lib
10339 # Tell ltmain to make .dll files, not .so files.
10340 shrext_cmds=".dll"
10341 # FIXME: Setting linknames here is a bad hack.
10342 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10343 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10344 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10345 else
10346 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10347 fi~
10348 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10349 linknames='
10350 # The linker will not automatically build a static lib if we build a DLL.
10351 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10352 enable_shared_with_static_runtimes=yes
10353 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10355 # Don't use ranlib
10356 old_postinstall_cmds='chmod 644 $oldlib'
10357 postlink_cmds='lt_outputfile="@OUTPUT@"~
10358 lt_tool_outputfile="@TOOL_OUTPUT@"~
10359 case $lt_outputfile in
10360 *.exe|*.EXE) ;;
10361 *)
10362 lt_outputfile="$lt_outputfile.exe"
10363 lt_tool_outputfile="$lt_tool_outputfile.exe"
10364 ;;
10365 esac~
10366 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10367 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10368 $RM "$lt_outputfile.manifest";
10369 fi'
10370 ;;
10371 *)
10372 # Assume MSVC wrapper
10373 hardcode_libdir_flag_spec=' '
10374 allow_undefined_flag=unsupported
10375 # Tell ltmain to make .lib files, not .a files.
10376 libext=lib
10377 # Tell ltmain to make .dll files, not .so files.
10378 shrext_cmds=".dll"
10379 # FIXME: Setting linknames here is a bad hack.
10380 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10381 # The linker will automatically build a .lib file if we build a DLL.
10382 old_archive_from_new_cmds='true'
10383 # FIXME: Should let the user specify the lib program.
10384 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10385 enable_shared_with_static_runtimes=yes
10386 ;;
10387 esac
10388 ;;
10389
10390 darwin* | rhapsody*)
10391
10392
10393 archive_cmds_need_lc=no
10394 hardcode_direct=no
10395 hardcode_automatic=yes
10396 hardcode_shlibpath_var=unsupported
10397 if test "$lt_cv_ld_force_load" = "yes"; then
10398 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10399
10400 else
10401 whole_archive_flag_spec=''
10402 fi
10403 link_all_deplibs=yes
10404 allow_undefined_flag="$_lt_dar_allow_undefined"
10405 case $cc_basename in
10406 ifort*) _lt_dar_can_shared=yes ;;
10407 *) _lt_dar_can_shared=$GCC ;;
10408 esac
10409 if test "$_lt_dar_can_shared" = "yes"; then
10410 output_verbose_link_cmd=func_echo_all
10411 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10412 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10413 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}"
10414 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}"
10415
10416 else
10417 ld_shlibs=no
10418 fi
10419
10420 ;;
10421
10422 dgux*)
10423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_shlibpath_var=no
10426 ;;
10427
10428 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10429 # support. Future versions do this automatically, but an explicit c++rt0.o
10430 # does not break anything, and helps significantly (at the cost of a little
10431 # extra space).
10432 freebsd2.2*)
10433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10434 hardcode_libdir_flag_spec='-R$libdir'
10435 hardcode_direct=yes
10436 hardcode_shlibpath_var=no
10437 ;;
10438
10439 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10440 freebsd2.*)
10441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10442 hardcode_direct=yes
10443 hardcode_minus_L=yes
10444 hardcode_shlibpath_var=no
10445 ;;
10446
10447 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10448 freebsd* | dragonfly*)
10449 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10450 hardcode_libdir_flag_spec='-R$libdir'
10451 hardcode_direct=yes
10452 hardcode_shlibpath_var=no
10453 ;;
10454
10455 hpux9*)
10456 if test "$GCC" = yes; then
10457 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10458 else
10459 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'
10460 fi
10461 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10462 hardcode_libdir_separator=:
10463 hardcode_direct=yes
10464
10465 # hardcode_minus_L: Not really in the search PATH,
10466 # but as the default location of the library.
10467 hardcode_minus_L=yes
10468 export_dynamic_flag_spec='${wl}-E'
10469 ;;
10470
10471 hpux10*)
10472 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10473 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10474 else
10475 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10476 fi
10477 if test "$with_gnu_ld" = no; then
10478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10479 hardcode_libdir_separator=:
10480 hardcode_direct=yes
10481 hardcode_direct_absolute=yes
10482 export_dynamic_flag_spec='${wl}-E'
10483 # hardcode_minus_L: Not really in the search PATH,
10484 # but as the default location of the library.
10485 hardcode_minus_L=yes
10486 fi
10487 ;;
10488
10489 hpux11*)
10490 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10491 case $host_cpu in
10492 hppa*64*)
10493 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10494 ;;
10495 ia64*)
10496 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10497 ;;
10498 *)
10499 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10500 ;;
10501 esac
10502 else
10503 case $host_cpu in
10504 hppa*64*)
10505 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10506 ;;
10507 ia64*)
10508 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10509 ;;
10510 *)
10511
10512 # Older versions of the 11.00 compiler do not understand -b yet
10513 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10515 $as_echo_n "checking if $CC understands -b... " >&6; }
10516 if ${lt_cv_prog_compiler__b+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 lt_cv_prog_compiler__b=no
10520 save_LDFLAGS="$LDFLAGS"
10521 LDFLAGS="$LDFLAGS -b"
10522 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10524 # The linker can only warn and ignore the option if not recognized
10525 # So say no if there are warnings
10526 if test -s conftest.err; then
10527 # Append any errors to the config.log.
10528 cat conftest.err 1>&5
10529 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10531 if diff conftest.exp conftest.er2 >/dev/null; then
10532 lt_cv_prog_compiler__b=yes
10533 fi
10534 else
10535 lt_cv_prog_compiler__b=yes
10536 fi
10537 fi
10538 $RM -r conftest*
10539 LDFLAGS="$save_LDFLAGS"
10540
10541 fi
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10543 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10544
10545 if test x"$lt_cv_prog_compiler__b" = xyes; then
10546 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10547 else
10548 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10549 fi
10550
10551 ;;
10552 esac
10553 fi
10554 if test "$with_gnu_ld" = no; then
10555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10556 hardcode_libdir_separator=:
10557
10558 case $host_cpu in
10559 hppa*64*|ia64*)
10560 hardcode_direct=no
10561 hardcode_shlibpath_var=no
10562 ;;
10563 *)
10564 hardcode_direct=yes
10565 hardcode_direct_absolute=yes
10566 export_dynamic_flag_spec='${wl}-E'
10567
10568 # hardcode_minus_L: Not really in the search PATH,
10569 # but as the default location of the library.
10570 hardcode_minus_L=yes
10571 ;;
10572 esac
10573 fi
10574 ;;
10575
10576 irix5* | irix6* | nonstopux*)
10577 if test "$GCC" = yes; then
10578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10579 # Try to use the -exported_symbol ld option, if it does not
10580 # work, assume that -exports_file does not work either and
10581 # implicitly export all symbols.
10582 # This should be the same for all languages, so no per-tag cache variable.
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10584 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10585 if ${lt_cv_irix_exported_symbol+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 save_LDFLAGS="$LDFLAGS"
10589 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 int foo (void) { return 0; }
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 lt_cv_irix_exported_symbol=yes
10596 else
10597 lt_cv_irix_exported_symbol=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LDFLAGS="$save_LDFLAGS"
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10604 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10605 if test "$lt_cv_irix_exported_symbol" = yes; then
10606 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10607 fi
10608 else
10609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10611 fi
10612 archive_cmds_need_lc='no'
10613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614 hardcode_libdir_separator=:
10615 inherit_rpath=yes
10616 link_all_deplibs=yes
10617 ;;
10618
10619 netbsd*)
10620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10622 else
10623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10624 fi
10625 hardcode_libdir_flag_spec='-R$libdir'
10626 hardcode_direct=yes
10627 hardcode_shlibpath_var=no
10628 ;;
10629
10630 newsos6)
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_direct=yes
10633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10634 hardcode_libdir_separator=:
10635 hardcode_shlibpath_var=no
10636 ;;
10637
10638 *nto* | *qnx*)
10639 ;;
10640
10641 openbsd*)
10642 if test -f /usr/libexec/ld.so; then
10643 hardcode_direct=yes
10644 hardcode_shlibpath_var=no
10645 hardcode_direct_absolute=yes
10646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10648 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10649 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10650 export_dynamic_flag_spec='${wl}-E'
10651 else
10652 case $host_os in
10653 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10655 hardcode_libdir_flag_spec='-R$libdir'
10656 ;;
10657 *)
10658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10660 ;;
10661 esac
10662 fi
10663 else
10664 ld_shlibs=no
10665 fi
10666 ;;
10667
10668 os2*)
10669 hardcode_libdir_flag_spec='-L$libdir'
10670 hardcode_minus_L=yes
10671 allow_undefined_flag=unsupported
10672 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'
10673 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10674 ;;
10675
10676 osf3*)
10677 if test "$GCC" = yes; then
10678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10679 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10680 else
10681 allow_undefined_flag=' -expect_unresolved \*'
10682 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10683 fi
10684 archive_cmds_need_lc='no'
10685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10686 hardcode_libdir_separator=:
10687 ;;
10688
10689 osf4* | osf5*) # as osf3* with the addition of -msym flag
10690 if test "$GCC" = yes; then
10691 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10692 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10694 else
10695 allow_undefined_flag=' -expect_unresolved \*'
10696 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10697 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~
10698 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10699
10700 # Both c and cxx compiler support -rpath directly
10701 hardcode_libdir_flag_spec='-rpath $libdir'
10702 fi
10703 archive_cmds_need_lc='no'
10704 hardcode_libdir_separator=:
10705 ;;
10706
10707 solaris*)
10708 no_undefined_flag=' -z defs'
10709 if test "$GCC" = yes; then
10710 wlarc='${wl}'
10711 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10713 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10714 else
10715 case `$CC -V 2>&1` in
10716 *"Compilers 5.0"*)
10717 wlarc=''
10718 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10719 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10720 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10721 ;;
10722 *)
10723 wlarc='${wl}'
10724 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10726 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10727 ;;
10728 esac
10729 fi
10730 hardcode_libdir_flag_spec='-R$libdir'
10731 hardcode_shlibpath_var=no
10732 case $host_os in
10733 solaris2.[0-5] | solaris2.[0-5].*) ;;
10734 *)
10735 # The compiler driver will combine and reorder linker options,
10736 # but understands `-z linker_flag'. GCC discards it without `$wl',
10737 # but is careful enough not to reorder.
10738 # Supported since Solaris 2.6 (maybe 2.5.1?)
10739 if test "$GCC" = yes; then
10740 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10741 else
10742 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10743 fi
10744 ;;
10745 esac
10746 link_all_deplibs=yes
10747 ;;
10748
10749 sunos4*)
10750 if test "x$host_vendor" = xsequent; then
10751 # Use $CC to link under sequent, because it throws in some extra .o
10752 # files that make .init and .fini sections work.
10753 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10754 else
10755 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10756 fi
10757 hardcode_libdir_flag_spec='-L$libdir'
10758 hardcode_direct=yes
10759 hardcode_minus_L=yes
10760 hardcode_shlibpath_var=no
10761 ;;
10762
10763 sysv4)
10764 case $host_vendor in
10765 sni)
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_direct=yes # is this really true???
10768 ;;
10769 siemens)
10770 ## LD is ld it makes a PLAMLIB
10771 ## CC just makes a GrossModule.
10772 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10773 reload_cmds='$CC -r -o $output$reload_objs'
10774 hardcode_direct=no
10775 ;;
10776 motorola)
10777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10779 ;;
10780 esac
10781 runpath_var='LD_RUN_PATH'
10782 hardcode_shlibpath_var=no
10783 ;;
10784
10785 sysv4.3*)
10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787 hardcode_shlibpath_var=no
10788 export_dynamic_flag_spec='-Bexport'
10789 ;;
10790
10791 sysv4*MP*)
10792 if test -d /usr/nec; then
10793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794 hardcode_shlibpath_var=no
10795 runpath_var=LD_RUN_PATH
10796 hardcode_runpath_var=yes
10797 ld_shlibs=yes
10798 fi
10799 ;;
10800
10801 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10802 no_undefined_flag='${wl}-z,text'
10803 archive_cmds_need_lc=no
10804 hardcode_shlibpath_var=no
10805 runpath_var='LD_RUN_PATH'
10806
10807 if test "$GCC" = yes; then
10808 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 else
10811 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 fi
10814 ;;
10815
10816 sysv5* | sco3.2v5* | sco5v6*)
10817 # Note: We can NOT use -z defs as we might desire, because we do not
10818 # link with -lc, and that would cause any symbols used from libc to
10819 # always be unresolved, which means just about no library would
10820 # ever link correctly. If we're not using GNU ld we use -z text
10821 # though, which does catch some bad symbols but isn't as heavy-handed
10822 # as -z defs.
10823 no_undefined_flag='${wl}-z,text'
10824 allow_undefined_flag='${wl}-z,nodefs'
10825 archive_cmds_need_lc=no
10826 hardcode_shlibpath_var=no
10827 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10828 hardcode_libdir_separator=':'
10829 link_all_deplibs=yes
10830 export_dynamic_flag_spec='${wl}-Bexport'
10831 runpath_var='LD_RUN_PATH'
10832
10833 if test "$GCC" = yes; then
10834 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10836 else
10837 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10839 fi
10840 ;;
10841
10842 uts4*)
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_libdir_flag_spec='-L$libdir'
10845 hardcode_shlibpath_var=no
10846 ;;
10847
10848 *)
10849 ld_shlibs=no
10850 ;;
10851 esac
10852
10853 if test x$host_vendor = xsni; then
10854 case $host in
10855 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10856 export_dynamic_flag_spec='${wl}-Blargedynsym'
10857 ;;
10858 esac
10859 fi
10860 fi
10861
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10863 $as_echo "$ld_shlibs" >&6; }
10864 test "$ld_shlibs" = no && can_build_shared=no
10865
10866 with_gnu_ld=$with_gnu_ld
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 #
10883 # Do we need to explicitly link libc?
10884 #
10885 case "x$archive_cmds_need_lc" in
10886 x|xyes)
10887 # Assume -lc should be added
10888 archive_cmds_need_lc=yes
10889
10890 if test "$enable_shared" = yes && test "$GCC" = yes; then
10891 case $archive_cmds in
10892 *'~'*)
10893 # FIXME: we may have to deal with multi-command sequences.
10894 ;;
10895 '$CC '*)
10896 # Test whether the compiler implicitly links with -lc since on some
10897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10898 # to ld, don't add -lc before -lgcc.
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10900 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10901 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 $RM -r conftest*
10905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10906
10907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10908 (eval $ac_compile) 2>&5
10909 ac_status=$?
10910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911 test $ac_status = 0; } 2>conftest.err; then
10912 soname=conftest
10913 lib=conftest
10914 libobjs=conftest.$ac_objext
10915 deplibs=
10916 wl=$lt_prog_compiler_wl
10917 pic_flag=$lt_prog_compiler_pic
10918 compiler_flags=-v
10919 linker_flags=-v
10920 verstring=
10921 output_objdir=.
10922 libname=conftest
10923 lt_save_allow_undefined_flag=$allow_undefined_flag
10924 allow_undefined_flag=
10925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10926 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10927 ac_status=$?
10928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929 test $ac_status = 0; }
10930 then
10931 lt_cv_archive_cmds_need_lc=no
10932 else
10933 lt_cv_archive_cmds_need_lc=yes
10934 fi
10935 allow_undefined_flag=$lt_save_allow_undefined_flag
10936 else
10937 cat conftest.err 1>&5
10938 fi
10939 $RM -r conftest*
10940
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10943 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10944 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10945 ;;
10946 esac
10947 fi
10948 ;;
10949 esac
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11103 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11104
11105 if test "$GCC" = yes; then
11106 case $host_os in
11107 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11108 *) lt_awk_arg="/^libraries:/" ;;
11109 esac
11110 case $host_os in
11111 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11112 *) lt_sed_strip_eq="s,=/,/,g" ;;
11113 esac
11114 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11115 case $lt_search_path_spec in
11116 *\;*)
11117 # if the path contains ";" then we assume it to be the separator
11118 # otherwise default to the standard path separator (i.e. ":") - it is
11119 # assumed that no part of a normal pathname contains ";" but that should
11120 # okay in the real world where ";" in dirpaths is itself problematic.
11121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11122 ;;
11123 *)
11124 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11125 ;;
11126 esac
11127 # Ok, now we have the path, separated by spaces, we can step through it
11128 # and add multilib dir if necessary.
11129 lt_tmp_lt_search_path_spec=
11130 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11131 for lt_sys_path in $lt_search_path_spec; do
11132 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11134 else
11135 test -d "$lt_sys_path" && \
11136 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11137 fi
11138 done
11139 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11140 BEGIN {RS=" "; FS="/|\n";} {
11141 lt_foo="";
11142 lt_count=0;
11143 for (lt_i = NF; lt_i > 0; lt_i--) {
11144 if ($lt_i != "" && $lt_i != ".") {
11145 if ($lt_i == "..") {
11146 lt_count++;
11147 } else {
11148 if (lt_count == 0) {
11149 lt_foo="/" $lt_i lt_foo;
11150 } else {
11151 lt_count--;
11152 }
11153 }
11154 }
11155 }
11156 if (lt_foo != "") { lt_freq[lt_foo]++; }
11157 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11158 }'`
11159 # AWK program above erroneously prepends '/' to C:/dos/paths
11160 # for these hosts.
11161 case $host_os in
11162 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11163 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11164 esac
11165 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11166 else
11167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11168 fi
11169 library_names_spec=
11170 libname_spec='lib$name'
11171 soname_spec=
11172 shrext_cmds=".so"
11173 postinstall_cmds=
11174 postuninstall_cmds=
11175 finish_cmds=
11176 finish_eval=
11177 shlibpath_var=
11178 shlibpath_overrides_runpath=unknown
11179 version_type=none
11180 dynamic_linker="$host_os ld.so"
11181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11182 need_lib_prefix=unknown
11183 hardcode_into_libs=no
11184
11185 # when you set need_version to no, make sure it does not cause -set_version
11186 # flags to be left without arguments
11187 need_version=unknown
11188
11189 case $host_os in
11190 aix3*)
11191 version_type=linux # correct to gnu/linux during the next big refactor
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11193 shlibpath_var=LIBPATH
11194
11195 # AIX 3 has no versioning support, so we append a major version to the name.
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 ;;
11198
11199 aix[4-9]*)
11200 version_type=linux # correct to gnu/linux during the next big refactor
11201 need_lib_prefix=no
11202 need_version=no
11203 hardcode_into_libs=yes
11204 if test "$host_cpu" = ia64; then
11205 # AIX 5 supports IA64
11206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 else
11209 # With GCC up to 2.95.x, collect2 would create an import file
11210 # for dependence libraries. The import file would start with
11211 # the line `#! .'. This would cause the generated library to
11212 # depend on `.', always an invalid library. This was fixed in
11213 # development snapshots of GCC prior to 3.0.
11214 case $host_os in
11215 aix4 | aix4.[01] | aix4.[01].*)
11216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11217 echo ' yes '
11218 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11219 :
11220 else
11221 can_build_shared=no
11222 fi
11223 ;;
11224 esac
11225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11226 # soname into executable. Probably we can add versioning support to
11227 # collect2, so additional links can be useful in future.
11228 if test "$aix_use_runtimelinking" = yes; then
11229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11230 # instead of lib<name>.a to let people know that these are not
11231 # typical AIX shared libraries.
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 else
11234 # We preserve .a as extension for shared libraries through AIX4.2
11235 # and later when we are not doing run time linking.
11236 library_names_spec='${libname}${release}.a $libname.a'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 fi
11239 shlibpath_var=LIBPATH
11240 fi
11241 ;;
11242
11243 amigaos*)
11244 case $host_cpu in
11245 powerpc)
11246 # Since July 2007 AmigaOS4 officially supports .so libraries.
11247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 ;;
11250 m68k)
11251 library_names_spec='$libname.ixlibrary $libname.a'
11252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11253 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11254 ;;
11255 esac
11256 ;;
11257
11258 beos*)
11259 library_names_spec='${libname}${shared_ext}'
11260 dynamic_linker="$host_os ld.so"
11261 shlibpath_var=LIBRARY_PATH
11262 ;;
11263
11264 bsdi[45]*)
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 need_version=no
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11273 # the default ld.so.conf also contains /usr/contrib/lib and
11274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11275 # libtool to hard-code these into programs
11276 ;;
11277
11278 cygwin* | mingw* | pw32* | cegcc*)
11279 version_type=windows
11280 shrext_cmds=".dll"
11281 need_version=no
11282 need_lib_prefix=no
11283
11284 case $GCC,$cc_basename in
11285 yes,*)
11286 # gcc
11287 library_names_spec='$libname.dll.a'
11288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11289 postinstall_cmds='base_file=`basename \${file}`~
11290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11291 dldir=$destdir/`dirname \$dlpath`~
11292 test -d \$dldir || mkdir -p \$dldir~
11293 $install_prog $dir/$dlname \$dldir/$dlname~
11294 chmod a+x \$dldir/$dlname~
11295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11297 fi'
11298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11299 dlpath=$dir/\$dldll~
11300 $RM \$dlpath'
11301 shlibpath_overrides_runpath=yes
11302
11303 case $host_os in
11304 cygwin*)
11305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11307
11308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11309 ;;
11310 mingw* | cegcc*)
11311 # MinGW DLLs use traditional 'lib' prefix
11312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11313 ;;
11314 pw32*)
11315 # pw32 DLLs use 'pw' prefix rather than 'lib'
11316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11317 ;;
11318 esac
11319 dynamic_linker='Win32 ld.exe'
11320 ;;
11321
11322 *,cl*)
11323 # Native MSVC
11324 libname_spec='$name'
11325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11326 library_names_spec='${libname}.dll.lib'
11327
11328 case $build_os in
11329 mingw*)
11330 sys_lib_search_path_spec=
11331 lt_save_ifs=$IFS
11332 IFS=';'
11333 for lt_path in $LIB
11334 do
11335 IFS=$lt_save_ifs
11336 # Let DOS variable expansion print the short 8.3 style file name.
11337 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11338 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11339 done
11340 IFS=$lt_save_ifs
11341 # Convert to MSYS style.
11342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11343 ;;
11344 cygwin*)
11345 # Convert to unix form, then to dos form, then back to unix form
11346 # but this time dos style (no spaces!) so that the unix form looks
11347 # like /cygdrive/c/PROGRA~1:/cygdr...
11348 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11349 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11350 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11351 ;;
11352 *)
11353 sys_lib_search_path_spec="$LIB"
11354 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11355 # It is most probably a Windows format PATH.
11356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11357 else
11358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11359 fi
11360 # FIXME: find the short name or the path components, as spaces are
11361 # common. (e.g. "Program Files" -> "PROGRA~1")
11362 ;;
11363 esac
11364
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \${file}`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname'
11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11373 $RM \$dlpath'
11374 shlibpath_overrides_runpath=yes
11375 dynamic_linker='Win32 link.exe'
11376 ;;
11377
11378 *)
11379 # Assume MSVC wrapper
11380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11381 dynamic_linker='Win32 ld.exe'
11382 ;;
11383 esac
11384 # FIXME: first we should search . and the directory the executable is in
11385 shlibpath_var=PATH
11386 ;;
11387
11388 darwin* | rhapsody*)
11389 dynamic_linker="$host_os dyld"
11390 version_type=darwin
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11394 soname_spec='${libname}${release}${major}$shared_ext'
11395 shlibpath_overrides_runpath=yes
11396 shlibpath_var=DYLD_LIBRARY_PATH
11397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11398
11399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11401 ;;
11402
11403 dgux*)
11404 version_type=linux # correct to gnu/linux during the next big refactor
11405 need_lib_prefix=no
11406 need_version=no
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 ;;
11411
11412 freebsd* | dragonfly*)
11413 # DragonFly does not have aout. When/if they implement a new
11414 # versioning mechanism, adjust this.
11415 if test -x /usr/bin/objformat; then
11416 objformat=`/usr/bin/objformat`
11417 else
11418 case $host_os in
11419 freebsd[23].*) objformat=aout ;;
11420 *) objformat=elf ;;
11421 esac
11422 fi
11423 version_type=freebsd-$objformat
11424 case $version_type in
11425 freebsd-elf*)
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11427 need_version=no
11428 need_lib_prefix=no
11429 ;;
11430 freebsd-*)
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11432 need_version=yes
11433 ;;
11434 esac
11435 shlibpath_var=LD_LIBRARY_PATH
11436 case $host_os in
11437 freebsd2.*)
11438 shlibpath_overrides_runpath=yes
11439 ;;
11440 freebsd3.[01]* | freebsdelf3.[01]*)
11441 shlibpath_overrides_runpath=yes
11442 hardcode_into_libs=yes
11443 ;;
11444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11446 shlibpath_overrides_runpath=no
11447 hardcode_into_libs=yes
11448 ;;
11449 *) # from 4.6 on, and DragonFly
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 ;;
11453 esac
11454 ;;
11455
11456 gnu*)
11457 version_type=linux # correct to gnu/linux during the next big refactor
11458 need_lib_prefix=no
11459 need_version=no
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=no
11464 hardcode_into_libs=yes
11465 ;;
11466
11467 haiku*)
11468 version_type=linux # correct to gnu/linux during the next big refactor
11469 need_lib_prefix=no
11470 need_version=no
11471 dynamic_linker="$host_os runtime_loader"
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 shlibpath_var=LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11476 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11477 hardcode_into_libs=yes
11478 ;;
11479
11480 hpux9* | hpux10* | hpux11*)
11481 # Give a soname corresponding to the major version so that dld.sl refuses to
11482 # link against other versions.
11483 version_type=sunos
11484 need_lib_prefix=no
11485 need_version=no
11486 case $host_cpu in
11487 ia64*)
11488 shrext_cmds='.so'
11489 hardcode_into_libs=yes
11490 dynamic_linker="$host_os dld.so"
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 if test "X$HPUX_IA64_MODE" = X32; then
11496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11497 else
11498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11499 fi
11500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11501 ;;
11502 hppa*64*)
11503 shrext_cmds='.sl'
11504 hardcode_into_libs=yes
11505 dynamic_linker="$host_os dld.sl"
11506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11512 ;;
11513 *)
11514 shrext_cmds='.sl'
11515 dynamic_linker="$host_os dld.sl"
11516 shlibpath_var=SHLIB_PATH
11517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 ;;
11521 esac
11522 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11523 postinstall_cmds='chmod 555 $lib'
11524 # or fails outright, so override atomically:
11525 install_override_mode=555
11526 ;;
11527
11528 interix[3-9]*)
11529 version_type=linux # correct to gnu/linux during the next big refactor
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=no
11537 hardcode_into_libs=yes
11538 ;;
11539
11540 irix5* | irix6* | nonstopux*)
11541 case $host_os in
11542 nonstopux*) version_type=nonstopux ;;
11543 *)
11544 if test "$lt_cv_prog_gnu_ld" = yes; then
11545 version_type=linux # correct to gnu/linux during the next big refactor
11546 else
11547 version_type=irix
11548 fi ;;
11549 esac
11550 need_lib_prefix=no
11551 need_version=no
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11554 case $host_os in
11555 irix5* | nonstopux*)
11556 libsuff= shlibsuff=
11557 ;;
11558 *)
11559 case $LD in # libtool.m4 will add one of these switches to LD
11560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11561 libsuff= shlibsuff= libmagic=32-bit;;
11562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11563 libsuff=32 shlibsuff=N32 libmagic=N32;;
11564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11566 *) libsuff= shlibsuff= libmagic=never-match;;
11567 esac
11568 ;;
11569 esac
11570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11571 shlibpath_overrides_runpath=no
11572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11574 hardcode_into_libs=yes
11575 ;;
11576
11577 # No shared lib support for Linux oldld, aout, or coff.
11578 linux*oldld* | linux*aout* | linux*coff*)
11579 dynamic_linker=no
11580 ;;
11581
11582 # This must be glibc/ELF.
11583 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11584 version_type=linux # correct to gnu/linux during the next big refactor
11585 need_lib_prefix=no
11586 need_version=no
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=no
11592
11593 # Some binutils ld are patched to set DT_RUNPATH
11594 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 lt_cv_shlibpath_overrides_runpath=no
11598 save_LDFLAGS=$LDFLAGS
11599 save_libdir=$libdir
11600 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11601 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604
11605 int
11606 main ()
11607 {
11608
11609 ;
11610 return 0;
11611 }
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11615 lt_cv_shlibpath_overrides_runpath=yes
11616 fi
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LDFLAGS=$save_LDFLAGS
11621 libdir=$save_libdir
11622
11623 fi
11624
11625 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11626
11627 # This implies no fast_install, which is unacceptable.
11628 # Some rework will be needed to allow for fast_install
11629 # before this can be enabled.
11630 hardcode_into_libs=yes
11631
11632 # Append ld.so.conf contents to the search path
11633 if test -f /etc/ld.so.conf; then
11634 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;s/"//g;/^$/d' | tr '\n' ' '`
11635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11636 fi
11637
11638 # We used to test for /lib/ld.so.1 and disable shared libraries on
11639 # powerpc, because MkLinux only supported shared libraries with the
11640 # GNU dynamic linker. Since this was broken with cross compilers,
11641 # most powerpc-linux boxes support dynamic linking these days and
11642 # people can always --disable-shared, the test was removed, and we
11643 # assume the GNU/Linux dynamic linker is in use.
11644 dynamic_linker='GNU/Linux ld.so'
11645 ;;
11646
11647 netbsd*)
11648 version_type=sunos
11649 need_lib_prefix=no
11650 need_version=no
11651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11654 dynamic_linker='NetBSD (a.out) ld.so'
11655 else
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 dynamic_linker='NetBSD ld.elf_so'
11659 fi
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662 hardcode_into_libs=yes
11663 ;;
11664
11665 newsos6)
11666 version_type=linux # correct to gnu/linux during the next big refactor
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath=yes
11670 ;;
11671
11672 *nto* | *qnx*)
11673 version_type=qnx
11674 need_lib_prefix=no
11675 need_version=no
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 soname_spec='${libname}${release}${shared_ext}$major'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=no
11680 hardcode_into_libs=yes
11681 dynamic_linker='ldqnx.so'
11682 ;;
11683
11684 openbsd*)
11685 version_type=sunos
11686 sys_lib_dlsearch_path_spec="/usr/lib"
11687 need_lib_prefix=no
11688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11689 case $host_os in
11690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11691 *) need_version=no ;;
11692 esac
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11697 case $host_os in
11698 openbsd2.[89] | openbsd2.[89].*)
11699 shlibpath_overrides_runpath=no
11700 ;;
11701 *)
11702 shlibpath_overrides_runpath=yes
11703 ;;
11704 esac
11705 else
11706 shlibpath_overrides_runpath=yes
11707 fi
11708 ;;
11709
11710 os2*)
11711 libname_spec='$name'
11712 shrext_cmds=".dll"
11713 need_lib_prefix=no
11714 library_names_spec='$libname${shared_ext} $libname.a'
11715 dynamic_linker='OS/2 ld.exe'
11716 shlibpath_var=LIBPATH
11717 ;;
11718
11719 osf3* | osf4* | osf5*)
11720 version_type=osf
11721 need_lib_prefix=no
11722 need_version=no
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 shlibpath_var=LD_LIBRARY_PATH
11726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11728 ;;
11729
11730 rdos*)
11731 dynamic_linker=no
11732 ;;
11733
11734 solaris*)
11735 version_type=linux # correct to gnu/linux during the next big refactor
11736 need_lib_prefix=no
11737 need_version=no
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11742 hardcode_into_libs=yes
11743 # ldd complains unless libraries are executable
11744 postinstall_cmds='chmod +x $lib'
11745 ;;
11746
11747 sunos4*)
11748 version_type=sunos
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11753 if test "$with_gnu_ld" = yes; then
11754 need_lib_prefix=no
11755 fi
11756 need_version=yes
11757 ;;
11758
11759 sysv4 | sysv4.3*)
11760 version_type=linux # correct to gnu/linux during the next big refactor
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 case $host_vendor in
11765 sni)
11766 shlibpath_overrides_runpath=no
11767 need_lib_prefix=no
11768 runpath_var=LD_RUN_PATH
11769 ;;
11770 siemens)
11771 need_lib_prefix=no
11772 ;;
11773 motorola)
11774 need_lib_prefix=no
11775 need_version=no
11776 shlibpath_overrides_runpath=no
11777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11778 ;;
11779 esac
11780 ;;
11781
11782 sysv4*MP*)
11783 if test -d /usr/nec ;then
11784 version_type=linux # correct to gnu/linux during the next big refactor
11785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11786 soname_spec='$libname${shared_ext}.$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 fi
11789 ;;
11790
11791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792 version_type=freebsd-elf
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 if test "$with_gnu_ld" = yes; then
11801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11802 else
11803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11804 case $host_os in
11805 sco3.2v5*)
11806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11807 ;;
11808 esac
11809 fi
11810 sys_lib_dlsearch_path_spec='/usr/lib'
11811 ;;
11812
11813 tpf*)
11814 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11815 version_type=linux # correct to gnu/linux during the next big refactor
11816 need_lib_prefix=no
11817 need_version=no
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=no
11821 hardcode_into_libs=yes
11822 ;;
11823
11824 uts4*)
11825 version_type=linux # correct to gnu/linux during the next big refactor
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 ;;
11830
11831 *)
11832 dynamic_linker=no
11833 ;;
11834 esac
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11836 $as_echo "$dynamic_linker" >&6; }
11837 test "$dynamic_linker" = no && can_build_shared=no
11838
11839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11840 if test "$GCC" = yes; then
11841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11842 fi
11843
11844 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11845 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11846 fi
11847 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11848 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11849 fi
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11944 hardcode_action=
11945 if test -n "$hardcode_libdir_flag_spec" ||
11946 test -n "$runpath_var" ||
11947 test "X$hardcode_automatic" = "Xyes" ; then
11948
11949 # We can hardcode non-existent directories.
11950 if test "$hardcode_direct" != no &&
11951 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11952 # have to relink, otherwise we might link with an installed library
11953 # when we should be linking with a yet-to-be-installed one
11954 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11955 test "$hardcode_minus_L" != no; then
11956 # Linking always hardcodes the temporary library directory.
11957 hardcode_action=relink
11958 else
11959 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11960 hardcode_action=immediate
11961 fi
11962 else
11963 # We cannot hardcode anything, or else we can only hardcode existing
11964 # directories.
11965 hardcode_action=unsupported
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11968 $as_echo "$hardcode_action" >&6; }
11969
11970 if test "$hardcode_action" = relink ||
11971 test "$inherit_rpath" = yes; then
11972 # Fast installation is not supported
11973 enable_fast_install=no
11974 elif test "$shlibpath_overrides_runpath" = yes ||
11975 test "$enable_shared" = no; then
11976 # Fast installation is not necessary
11977 enable_fast_install=needless
11978 fi
11979
11980
11981
11982
11983
11984
11985 if test "x$enable_dlopen" != xyes; then
11986 enable_dlopen=unknown
11987 enable_dlopen_self=unknown
11988 enable_dlopen_self_static=unknown
11989 else
11990 lt_cv_dlopen=no
11991 lt_cv_dlopen_libs=
11992
11993 case $host_os in
11994 beos*)
11995 lt_cv_dlopen="load_add_on"
11996 lt_cv_dlopen_libs=
11997 lt_cv_dlopen_self=yes
11998 ;;
11999
12000 mingw* | pw32* | cegcc*)
12001 lt_cv_dlopen="LoadLibrary"
12002 lt_cv_dlopen_libs=
12003 ;;
12004
12005 cygwin*)
12006 lt_cv_dlopen="dlopen"
12007 lt_cv_dlopen_libs=
12008 ;;
12009
12010 darwin*)
12011 # if libdl is installed we need to link against it
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12013 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12014 if ${ac_cv_lib_dl_dlopen+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-ldl $LIBS"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char dlopen ();
12029 int
12030 main ()
12031 {
12032 return dlopen ();
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 ac_cv_lib_dl_dlopen=yes
12039 else
12040 ac_cv_lib_dl_dlopen=no
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12045 fi
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12047 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12048 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12050 else
12051
12052 lt_cv_dlopen="dyld"
12053 lt_cv_dlopen_libs=
12054 lt_cv_dlopen_self=yes
12055
12056 fi
12057
12058 ;;
12059
12060 *)
12061 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12062 if test "x$ac_cv_func_shl_load" = xyes; then :
12063 lt_cv_dlopen="shl_load"
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12066 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12067 if ${ac_cv_lib_dld_shl_load+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 ac_check_lib_save_LIBS=$LIBS
12071 LIBS="-ldld $LIBS"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char shl_load ();
12082 int
12083 main ()
12084 {
12085 return shl_load ();
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_dld_shl_load=yes
12092 else
12093 ac_cv_lib_dld_shl_load=no
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12100 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12101 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12103 else
12104 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12105 if test "x$ac_cv_func_dlopen" = xyes; then :
12106 lt_cv_dlopen="dlopen"
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12110 if ${ac_cv_lib_dl_dlopen+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-ldl $LIBS"
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char dlopen ();
12125 int
12126 main ()
12127 {
12128 return dlopen ();
12129 ;
12130 return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_lib_dl_dlopen=yes
12135 else
12136 ac_cv_lib_dl_dlopen=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12144 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12148 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12149 if ${ac_cv_lib_svld_dlopen+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lsvld $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char dlopen ();
12164 int
12165 main ()
12166 {
12167 return dlopen ();
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_svld_dlopen=yes
12174 else
12175 ac_cv_lib_svld_dlopen=no
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12182 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12183 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12187 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12188 if ${ac_cv_lib_dld_dld_link+:} false; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 ac_check_lib_save_LIBS=$LIBS
12192 LIBS="-ldld $LIBS"
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 char dld_link ();
12203 int
12204 main ()
12205 {
12206 return dld_link ();
12207 ;
12208 return 0;
12209 }
12210 _ACEOF
12211 if ac_fn_c_try_link "$LINENO"; then :
12212 ac_cv_lib_dld_dld_link=yes
12213 else
12214 ac_cv_lib_dld_dld_link=no
12215 fi
12216 rm -f core conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
12218 LIBS=$ac_check_lib_save_LIBS
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12221 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12222 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12223 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12224 fi
12225
12226
12227 fi
12228
12229
12230 fi
12231
12232
12233 fi
12234
12235
12236 fi
12237
12238
12239 fi
12240
12241 ;;
12242 esac
12243
12244 if test "x$lt_cv_dlopen" != xno; then
12245 enable_dlopen=yes
12246 else
12247 enable_dlopen=no
12248 fi
12249
12250 case $lt_cv_dlopen in
12251 dlopen)
12252 save_CPPFLAGS="$CPPFLAGS"
12253 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12254
12255 save_LDFLAGS="$LDFLAGS"
12256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12257
12258 save_LIBS="$LIBS"
12259 LIBS="$lt_cv_dlopen_libs $LIBS"
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12262 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12263 if ${lt_cv_dlopen_self+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test "$cross_compiling" = yes; then :
12267 lt_cv_dlopen_self=cross
12268 else
12269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12270 lt_status=$lt_dlunknown
12271 cat > conftest.$ac_ext <<_LT_EOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12274
12275 #if HAVE_DLFCN_H
12276 #include <dlfcn.h>
12277 #endif
12278
12279 #include <stdio.h>
12280
12281 #ifdef RTLD_GLOBAL
12282 # define LT_DLGLOBAL RTLD_GLOBAL
12283 #else
12284 # ifdef DL_GLOBAL
12285 # define LT_DLGLOBAL DL_GLOBAL
12286 # else
12287 # define LT_DLGLOBAL 0
12288 # endif
12289 #endif
12290
12291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12292 find out it does not work in some platform. */
12293 #ifndef LT_DLLAZY_OR_NOW
12294 # ifdef RTLD_LAZY
12295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12296 # else
12297 # ifdef DL_LAZY
12298 # define LT_DLLAZY_OR_NOW DL_LAZY
12299 # else
12300 # ifdef RTLD_NOW
12301 # define LT_DLLAZY_OR_NOW RTLD_NOW
12302 # else
12303 # ifdef DL_NOW
12304 # define LT_DLLAZY_OR_NOW DL_NOW
12305 # else
12306 # define LT_DLLAZY_OR_NOW 0
12307 # endif
12308 # endif
12309 # endif
12310 # endif
12311 #endif
12312
12313 /* When -fvisbility=hidden is used, assume the code has been annotated
12314 correspondingly for the symbols needed. */
12315 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12316 int fnord () __attribute__((visibility("default")));
12317 #endif
12318
12319 int fnord () { return 42; }
12320 int main ()
12321 {
12322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12323 int status = $lt_dlunknown;
12324
12325 if (self)
12326 {
12327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12328 else
12329 {
12330 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12331 else puts (dlerror ());
12332 }
12333 /* dlclose (self); */
12334 }
12335 else
12336 puts (dlerror ());
12337
12338 return status;
12339 }
12340 _LT_EOF
12341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12342 (eval $ac_link) 2>&5
12343 ac_status=$?
12344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12345 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12346 (./conftest; exit; ) >&5 2>/dev/null
12347 lt_status=$?
12348 case x$lt_status in
12349 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12350 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12351 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12352 esac
12353 else :
12354 # compilation failed
12355 lt_cv_dlopen_self=no
12356 fi
12357 fi
12358 rm -fr conftest*
12359
12360
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12363 $as_echo "$lt_cv_dlopen_self" >&6; }
12364
12365 if test "x$lt_cv_dlopen_self" = xyes; then
12366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12368 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12369 if ${lt_cv_dlopen_self_static+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 if test "$cross_compiling" = yes; then :
12373 lt_cv_dlopen_self_static=cross
12374 else
12375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12376 lt_status=$lt_dlunknown
12377 cat > conftest.$ac_ext <<_LT_EOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12380
12381 #if HAVE_DLFCN_H
12382 #include <dlfcn.h>
12383 #endif
12384
12385 #include <stdio.h>
12386
12387 #ifdef RTLD_GLOBAL
12388 # define LT_DLGLOBAL RTLD_GLOBAL
12389 #else
12390 # ifdef DL_GLOBAL
12391 # define LT_DLGLOBAL DL_GLOBAL
12392 # else
12393 # define LT_DLGLOBAL 0
12394 # endif
12395 #endif
12396
12397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12398 find out it does not work in some platform. */
12399 #ifndef LT_DLLAZY_OR_NOW
12400 # ifdef RTLD_LAZY
12401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12402 # else
12403 # ifdef DL_LAZY
12404 # define LT_DLLAZY_OR_NOW DL_LAZY
12405 # else
12406 # ifdef RTLD_NOW
12407 # define LT_DLLAZY_OR_NOW RTLD_NOW
12408 # else
12409 # ifdef DL_NOW
12410 # define LT_DLLAZY_OR_NOW DL_NOW
12411 # else
12412 # define LT_DLLAZY_OR_NOW 0
12413 # endif
12414 # endif
12415 # endif
12416 # endif
12417 #endif
12418
12419 /* When -fvisbility=hidden is used, assume the code has been annotated
12420 correspondingly for the symbols needed. */
12421 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12422 int fnord () __attribute__((visibility("default")));
12423 #endif
12424
12425 int fnord () { return 42; }
12426 int main ()
12427 {
12428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12429 int status = $lt_dlunknown;
12430
12431 if (self)
12432 {
12433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12434 else
12435 {
12436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12437 else puts (dlerror ());
12438 }
12439 /* dlclose (self); */
12440 }
12441 else
12442 puts (dlerror ());
12443
12444 return status;
12445 }
12446 _LT_EOF
12447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12448 (eval $ac_link) 2>&5
12449 ac_status=$?
12450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12452 (./conftest; exit; ) >&5 2>/dev/null
12453 lt_status=$?
12454 case x$lt_status in
12455 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12456 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12457 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12458 esac
12459 else :
12460 # compilation failed
12461 lt_cv_dlopen_self_static=no
12462 fi
12463 fi
12464 rm -fr conftest*
12465
12466
12467 fi
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12469 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12470 fi
12471
12472 CPPFLAGS="$save_CPPFLAGS"
12473 LDFLAGS="$save_LDFLAGS"
12474 LIBS="$save_LIBS"
12475 ;;
12476 esac
12477
12478 case $lt_cv_dlopen_self in
12479 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12480 *) enable_dlopen_self=unknown ;;
12481 esac
12482
12483 case $lt_cv_dlopen_self_static in
12484 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12485 *) enable_dlopen_self_static=unknown ;;
12486 esac
12487 fi
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505 striplib=
12506 old_striplib=
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12508 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12509 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12513 $as_echo "yes" >&6; }
12514 else
12515 # FIXME - insert some real tests, host_os isn't really good enough
12516 case $host_os in
12517 darwin*)
12518 if test -n "$STRIP" ; then
12519 striplib="$STRIP -x"
12520 old_striplib="$STRIP -S"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522 $as_echo "yes" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527 ;;
12528 *)
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12531 ;;
12532 esac
12533 fi
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 # Report which library types will actually be built
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12548 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12550 $as_echo "$can_build_shared" >&6; }
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12553 $as_echo_n "checking whether to build shared libraries... " >&6; }
12554 test "$can_build_shared" = "no" && enable_shared=no
12555
12556 # On AIX, shared libraries and static libraries use the same namespace, and
12557 # are all built from PIC.
12558 case $host_os in
12559 aix3*)
12560 test "$enable_shared" = yes && enable_static=no
12561 if test -n "$RANLIB"; then
12562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12563 postinstall_cmds='$RANLIB $lib'
12564 fi
12565 ;;
12566
12567 aix[4-9]*)
12568 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12569 test "$enable_shared" = yes && enable_static=no
12570 fi
12571 ;;
12572 esac
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12574 $as_echo "$enable_shared" >&6; }
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12577 $as_echo_n "checking whether to build static libraries... " >&6; }
12578 # Make sure either enable_shared or enable_static is yes.
12579 test "$enable_shared" = yes || enable_static=yes
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12581 $as_echo "$enable_static" >&6; }
12582
12583
12584
12585
12586 fi
12587 ac_ext=c
12588 ac_cpp='$CPP $CPPFLAGS'
12589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
12593 CC="$lt_save_CC"
12594
12595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12597 (test "X$CXX" != "Xg++"))) ; then
12598 ac_ext=cpp
12599 ac_cpp='$CXXCPP $CPPFLAGS'
12600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12604 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12605 if test -z "$CXXCPP"; then
12606 if ${ac_cv_prog_CXXCPP+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 # Double quotes because CXXCPP needs to be expanded
12610 for CXXCPP in "$CXX -E" "/lib/cpp"
12611 do
12612 ac_preproc_ok=false
12613 for ac_cxx_preproc_warn_flag in '' yes
12614 do
12615 # Use a header file that comes with gcc, so configuring glibc
12616 # with a fresh cross-compiler works.
12617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12618 # <limits.h> exists even on freestanding compilers.
12619 # On the NeXT, cc -E runs the code through the compiler's parser,
12620 # not just through cpp. "Syntax error" is here to catch this case.
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 #ifdef __STDC__
12624 # include <limits.h>
12625 #else
12626 # include <assert.h>
12627 #endif
12628 Syntax error
12629 _ACEOF
12630 if ac_fn_cxx_try_cpp "$LINENO"; then :
12631
12632 else
12633 # Broken: fails on valid input.
12634 continue
12635 fi
12636 rm -f conftest.err conftest.i conftest.$ac_ext
12637
12638 # OK, works on sane cases. Now check whether nonexistent headers
12639 # can be detected and how.
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <ac_nonexistent.h>
12643 _ACEOF
12644 if ac_fn_cxx_try_cpp "$LINENO"; then :
12645 # Broken: success on invalid input.
12646 continue
12647 else
12648 # Passes both tests.
12649 ac_preproc_ok=:
12650 break
12651 fi
12652 rm -f conftest.err conftest.i conftest.$ac_ext
12653
12654 done
12655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12656 rm -f conftest.i conftest.err conftest.$ac_ext
12657 if $ac_preproc_ok; then :
12658 break
12659 fi
12660
12661 done
12662 ac_cv_prog_CXXCPP=$CXXCPP
12663
12664 fi
12665 CXXCPP=$ac_cv_prog_CXXCPP
12666 else
12667 ac_cv_prog_CXXCPP=$CXXCPP
12668 fi
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12670 $as_echo "$CXXCPP" >&6; }
12671 ac_preproc_ok=false
12672 for ac_cxx_preproc_warn_flag in '' yes
12673 do
12674 # Use a header file that comes with gcc, so configuring glibc
12675 # with a fresh cross-compiler works.
12676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12677 # <limits.h> exists even on freestanding compilers.
12678 # On the NeXT, cc -E runs the code through the compiler's parser,
12679 # not just through cpp. "Syntax error" is here to catch this case.
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682 #ifdef __STDC__
12683 # include <limits.h>
12684 #else
12685 # include <assert.h>
12686 #endif
12687 Syntax error
12688 _ACEOF
12689 if ac_fn_cxx_try_cpp "$LINENO"; then :
12690
12691 else
12692 # Broken: fails on valid input.
12693 continue
12694 fi
12695 rm -f conftest.err conftest.i conftest.$ac_ext
12696
12697 # OK, works on sane cases. Now check whether nonexistent headers
12698 # can be detected and how.
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701 #include <ac_nonexistent.h>
12702 _ACEOF
12703 if ac_fn_cxx_try_cpp "$LINENO"; then :
12704 # Broken: success on invalid input.
12705 continue
12706 else
12707 # Passes both tests.
12708 ac_preproc_ok=:
12709 break
12710 fi
12711 rm -f conftest.err conftest.i conftest.$ac_ext
12712
12713 done
12714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12715 rm -f conftest.i conftest.err conftest.$ac_ext
12716 if $ac_preproc_ok; then :
12717
12718 else
12719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12721 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12722 See \`config.log' for more details" "$LINENO" 5; }
12723 fi
12724
12725 ac_ext=c
12726 ac_cpp='$CPP $CPPFLAGS'
12727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731 else
12732 _lt_caught_CXX_error=yes
12733 fi
12734
12735 ac_ext=cpp
12736 ac_cpp='$CXXCPP $CPPFLAGS'
12737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12740
12741 archive_cmds_need_lc_CXX=no
12742 allow_undefined_flag_CXX=
12743 always_export_symbols_CXX=no
12744 archive_expsym_cmds_CXX=
12745 compiler_needs_object_CXX=no
12746 export_dynamic_flag_spec_CXX=
12747 hardcode_direct_CXX=no
12748 hardcode_direct_absolute_CXX=no
12749 hardcode_libdir_flag_spec_CXX=
12750 hardcode_libdir_separator_CXX=
12751 hardcode_minus_L_CXX=no
12752 hardcode_shlibpath_var_CXX=unsupported
12753 hardcode_automatic_CXX=no
12754 inherit_rpath_CXX=no
12755 module_cmds_CXX=
12756 module_expsym_cmds_CXX=
12757 link_all_deplibs_CXX=unknown
12758 old_archive_cmds_CXX=$old_archive_cmds
12759 reload_flag_CXX=$reload_flag
12760 reload_cmds_CXX=$reload_cmds
12761 no_undefined_flag_CXX=
12762 whole_archive_flag_spec_CXX=
12763 enable_shared_with_static_runtimes_CXX=no
12764
12765 # Source file extension for C++ test sources.
12766 ac_ext=cpp
12767
12768 # Object file extension for compiled C++ test sources.
12769 objext=o
12770 objext_CXX=$objext
12771
12772 # No sense in running all these tests if we already determined that
12773 # the CXX compiler isn't working. Some variables (like enable_shared)
12774 # are currently assumed to apply to all compilers on this platform,
12775 # and will be corrupted by setting them based on a non-working compiler.
12776 if test "$_lt_caught_CXX_error" != yes; then
12777 # Code to be used in simple compile tests
12778 lt_simple_compile_test_code="int some_variable = 0;"
12779
12780 # Code to be used in simple link tests
12781 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12782
12783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12784
12785
12786
12787
12788
12789
12790 # If no C compiler was specified, use CC.
12791 LTCC=${LTCC-"$CC"}
12792
12793 # If no C compiler flags were specified, use CFLAGS.
12794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12795
12796 # Allow CC to be a program name with arguments.
12797 compiler=$CC
12798
12799
12800 # save warnings/boilerplate of simple test code
12801 ac_outfile=conftest.$ac_objext
12802 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12803 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12804 _lt_compiler_boilerplate=`cat conftest.err`
12805 $RM -r conftest*
12806
12807 ac_outfile=conftest.$ac_objext
12808 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12809 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12810 _lt_linker_boilerplate=`cat conftest.err`
12811 $RM -r conftest*
12812
12813
12814 # Allow CC to be a program name with arguments.
12815 lt_save_CC=$CC
12816 lt_save_CFLAGS=$CFLAGS
12817 lt_save_LD=$LD
12818 lt_save_GCC=$GCC
12819 GCC=$GXX
12820 lt_save_with_gnu_ld=$with_gnu_ld
12821 lt_save_path_LD=$lt_cv_path_LD
12822 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12823 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12824 else
12825 $as_unset lt_cv_prog_gnu_ld
12826 fi
12827 if test -n "${lt_cv_path_LDCXX+set}"; then
12828 lt_cv_path_LD=$lt_cv_path_LDCXX
12829 else
12830 $as_unset lt_cv_path_LD
12831 fi
12832 test -z "${LDCXX+set}" || LD=$LDCXX
12833 CC=${CXX-"c++"}
12834 CFLAGS=$CXXFLAGS
12835 compiler=$CC
12836 compiler_CXX=$CC
12837 for cc_temp in $compiler""; do
12838 case $cc_temp in
12839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12841 \-*) ;;
12842 *) break;;
12843 esac
12844 done
12845 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12846
12847
12848 if test -n "$compiler"; then
12849 # We don't want -fno-exception when compiling C++ code, so set the
12850 # no_builtin_flag separately
12851 if test "$GXX" = yes; then
12852 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12853 else
12854 lt_prog_compiler_no_builtin_flag_CXX=
12855 fi
12856
12857 if test "$GXX" = yes; then
12858 # Set up default GNU C++ configuration
12859
12860
12861
12862 # Check whether --with-gnu-ld was given.
12863 if test "${with_gnu_ld+set}" = set; then :
12864 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12865 else
12866 with_gnu_ld=no
12867 fi
12868
12869 ac_prog=ld
12870 if test "$GCC" = yes; then
12871 # Check if gcc -print-prog-name=ld gives a path.
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12873 $as_echo_n "checking for ld used by $CC... " >&6; }
12874 case $host in
12875 *-*-mingw*)
12876 # gcc leaves a trailing carriage return which upsets mingw
12877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12878 *)
12879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12880 esac
12881 case $ac_prog in
12882 # Accept absolute paths.
12883 [\\/]* | ?:[\\/]*)
12884 re_direlt='/[^/][^/]*/\.\./'
12885 # Canonicalize the pathname of ld
12886 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12887 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12888 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12889 done
12890 test -z "$LD" && LD="$ac_prog"
12891 ;;
12892 "")
12893 # If it fails, then pretend we aren't using GCC.
12894 ac_prog=ld
12895 ;;
12896 *)
12897 # If it is relative, then search for the first ld in PATH.
12898 with_gnu_ld=unknown
12899 ;;
12900 esac
12901 elif test "$with_gnu_ld" = yes; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12903 $as_echo_n "checking for GNU ld... " >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12906 $as_echo_n "checking for non-GNU ld... " >&6; }
12907 fi
12908 if ${lt_cv_path_LD+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 if test -z "$LD"; then
12912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12913 for ac_dir in $PATH; do
12914 IFS="$lt_save_ifs"
12915 test -z "$ac_dir" && ac_dir=.
12916 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12917 lt_cv_path_LD="$ac_dir/$ac_prog"
12918 # Check to see if the program is GNU ld. I'd rather use --version,
12919 # but apparently some variants of GNU ld only accept -v.
12920 # Break only if it was the GNU/non-GNU ld that we prefer.
12921 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12922 *GNU* | *'with BFD'*)
12923 test "$with_gnu_ld" != no && break
12924 ;;
12925 *)
12926 test "$with_gnu_ld" != yes && break
12927 ;;
12928 esac
12929 fi
12930 done
12931 IFS="$lt_save_ifs"
12932 else
12933 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12934 fi
12935 fi
12936
12937 LD="$lt_cv_path_LD"
12938 if test -n "$LD"; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12940 $as_echo "$LD" >&6; }
12941 else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12947 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12948 if ${lt_cv_prog_gnu_ld+:} false; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12952 case `$LD -v 2>&1 </dev/null` in
12953 *GNU* | *'with BFD'*)
12954 lt_cv_prog_gnu_ld=yes
12955 ;;
12956 *)
12957 lt_cv_prog_gnu_ld=no
12958 ;;
12959 esac
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12962 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12963 with_gnu_ld=$lt_cv_prog_gnu_ld
12964
12965
12966
12967
12968
12969
12970
12971 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12972 # archiving commands below assume that GNU ld is being used.
12973 if test "$with_gnu_ld" = yes; then
12974 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12976
12977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12979
12980 # If archive_cmds runs LD, not CC, wlarc should be empty
12981 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12982 # investigate it a little bit more. (MM)
12983 wlarc='${wl}'
12984
12985 # ancient GNU ld didn't support --whole-archive et. al.
12986 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12987 $GREP 'no-whole-archive' > /dev/null; then
12988 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12989 else
12990 whole_archive_flag_spec_CXX=
12991 fi
12992 else
12993 with_gnu_ld=no
12994 wlarc=
12995
12996 # A generic and very simple default shared library creation
12997 # command for GNU C++ for the case where it uses the native
12998 # linker, instead of GNU ld. If possible, this setting should
12999 # overridden to take advantage of the native linker features on
13000 # the platform it is being used on.
13001 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13002 fi
13003
13004 # Commands to make compiler produce verbose output that lists
13005 # what "hidden" libraries, object files and flags are used when
13006 # linking a shared library.
13007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13008
13009 else
13010 GXX=no
13011 with_gnu_ld=no
13012 wlarc=
13013 fi
13014
13015 # PORTME: fill in a description of your system's C++ link characteristics
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13017 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13018 ld_shlibs_CXX=yes
13019 case $host_os in
13020 aix3*)
13021 # FIXME: insert proper C++ library support
13022 ld_shlibs_CXX=no
13023 ;;
13024 aix[4-9]*)
13025 if test "$host_cpu" = ia64; then
13026 # On IA64, the linker does run time linking by default, so we don't
13027 # have to do anything special.
13028 aix_use_runtimelinking=no
13029 exp_sym_flag='-Bexport'
13030 no_entry_flag=""
13031 else
13032 aix_use_runtimelinking=no
13033
13034 # Test if we are trying to use run time linking or normal
13035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13036 # need to do runtime linking.
13037 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13038 for ld_flag in $LDFLAGS; do
13039 case $ld_flag in
13040 *-brtl*)
13041 aix_use_runtimelinking=yes
13042 break
13043 ;;
13044 esac
13045 done
13046 ;;
13047 esac
13048
13049 exp_sym_flag='-bexport'
13050 no_entry_flag='-bnoentry'
13051 fi
13052
13053 # When large executables or shared objects are built, AIX ld can
13054 # have problems creating the table of contents. If linking a library
13055 # or program results in "error TOC overflow" add -mminimal-toc to
13056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13058
13059 archive_cmds_CXX=''
13060 hardcode_direct_CXX=yes
13061 hardcode_direct_absolute_CXX=yes
13062 hardcode_libdir_separator_CXX=':'
13063 link_all_deplibs_CXX=yes
13064 file_list_spec_CXX='${wl}-f,'
13065
13066 if test "$GXX" = yes; then
13067 case $host_os in aix4.[012]|aix4.[012].*)
13068 # We only want to do this on AIX 4.2 and lower, the check
13069 # below for broken collect2 doesn't work under 4.3+
13070 collect2name=`${CC} -print-prog-name=collect2`
13071 if test -f "$collect2name" &&
13072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13073 then
13074 # We have reworked collect2
13075 :
13076 else
13077 # We have old collect2
13078 hardcode_direct_CXX=unsupported
13079 # It fails to find uninstalled libraries when the uninstalled
13080 # path is not listed in the libpath. Setting hardcode_minus_L
13081 # to unsupported forces relinking
13082 hardcode_minus_L_CXX=yes
13083 hardcode_libdir_flag_spec_CXX='-L$libdir'
13084 hardcode_libdir_separator_CXX=
13085 fi
13086 esac
13087 shared_flag='-shared'
13088 if test "$aix_use_runtimelinking" = yes; then
13089 shared_flag="$shared_flag "'${wl}-G'
13090 fi
13091 else
13092 # not using gcc
13093 if test "$host_cpu" = ia64; then
13094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13095 # chokes on -Wl,-G. The following line is correct:
13096 shared_flag='-G'
13097 else
13098 if test "$aix_use_runtimelinking" = yes; then
13099 shared_flag='${wl}-G'
13100 else
13101 shared_flag='${wl}-bM:SRE'
13102 fi
13103 fi
13104 fi
13105
13106 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13107 # It seems that -bexpall does not export symbols beginning with
13108 # underscore (_), so it is better to generate a list of symbols to
13109 # export.
13110 always_export_symbols_CXX=yes
13111 if test "$aix_use_runtimelinking" = yes; then
13112 # Warning - without using the other runtime loading flags (-brtl),
13113 # -berok will link without error, but may produce a broken library.
13114 allow_undefined_flag_CXX='-berok'
13115 # Determine the default libpath from the value encoded in an empty
13116 # executable.
13117 if test "${lt_cv_aix_libpath+set}" = set; then
13118 aix_libpath=$lt_cv_aix_libpath
13119 else
13120 if ${lt_cv_aix_libpath__CXX+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125
13126 int
13127 main ()
13128 {
13129
13130 ;
13131 return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_cxx_try_link "$LINENO"; then :
13135
13136 lt_aix_libpath_sed='
13137 /Import File Strings/,/^$/ {
13138 /^0/ {
13139 s/^0 *\([^ ]*\) *$/\1/
13140 p
13141 }
13142 }'
13143 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 # Check for a 64-bit object if we didn't find anything.
13145 if test -z "$lt_cv_aix_libpath__CXX"; then
13146 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13147 fi
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 if test -z "$lt_cv_aix_libpath__CXX"; then
13152 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13153 fi
13154
13155 fi
13156
13157 aix_libpath=$lt_cv_aix_libpath__CXX
13158 fi
13159
13160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13161
13162 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13163 else
13164 if test "$host_cpu" = ia64; then
13165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13166 allow_undefined_flag_CXX="-z nodefs"
13167 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"
13168 else
13169 # Determine the default libpath from the value encoded in an
13170 # empty executable.
13171 if test "${lt_cv_aix_libpath+set}" = set; then
13172 aix_libpath=$lt_cv_aix_libpath
13173 else
13174 if ${lt_cv_aix_libpath__CXX+:} false; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 int
13181 main ()
13182 {
13183
13184 ;
13185 return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_cxx_try_link "$LINENO"; then :
13189
13190 lt_aix_libpath_sed='
13191 /Import File Strings/,/^$/ {
13192 /^0/ {
13193 s/^0 *\([^ ]*\) *$/\1/
13194 p
13195 }
13196 }'
13197 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13198 # Check for a 64-bit object if we didn't find anything.
13199 if test -z "$lt_cv_aix_libpath__CXX"; then
13200 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13201 fi
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 if test -z "$lt_cv_aix_libpath__CXX"; then
13206 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13207 fi
13208
13209 fi
13210
13211 aix_libpath=$lt_cv_aix_libpath__CXX
13212 fi
13213
13214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13215 # Warning - without using the other run time loading flags,
13216 # -berok will link without error, but may produce a broken library.
13217 no_undefined_flag_CXX=' ${wl}-bernotok'
13218 allow_undefined_flag_CXX=' ${wl}-berok'
13219 if test "$with_gnu_ld" = yes; then
13220 # We only use this code for GNU lds that support --whole-archive.
13221 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13222 else
13223 # Exported symbols can be pulled into shared objects from archives
13224 whole_archive_flag_spec_CXX='$convenience'
13225 fi
13226 archive_cmds_need_lc_CXX=yes
13227 # This is similar to how AIX traditionally builds its shared
13228 # libraries.
13229 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'
13230 fi
13231 fi
13232 ;;
13233
13234 beos*)
13235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13236 allow_undefined_flag_CXX=unsupported
13237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13238 # support --undefined. This deserves some investigation. FIXME
13239 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 else
13241 ld_shlibs_CXX=no
13242 fi
13243 ;;
13244
13245 chorus*)
13246 case $cc_basename in
13247 *)
13248 # FIXME: insert proper C++ library support
13249 ld_shlibs_CXX=no
13250 ;;
13251 esac
13252 ;;
13253
13254 cygwin* | mingw* | pw32* | cegcc*)
13255 case $GXX,$cc_basename in
13256 ,cl* | no,cl*)
13257 # Native MSVC
13258 # hardcode_libdir_flag_spec is actually meaningless, as there is
13259 # no search path for DLLs.
13260 hardcode_libdir_flag_spec_CXX=' '
13261 allow_undefined_flag_CXX=unsupported
13262 always_export_symbols_CXX=yes
13263 file_list_spec_CXX='@'
13264 # Tell ltmain to make .lib files, not .a files.
13265 libext=lib
13266 # Tell ltmain to make .dll files, not .so files.
13267 shrext_cmds=".dll"
13268 # FIXME: Setting linknames here is a bad hack.
13269 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13270 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13271 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13272 else
13273 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13274 fi~
13275 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13276 linknames='
13277 # The linker will not automatically build a static lib if we build a DLL.
13278 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13279 enable_shared_with_static_runtimes_CXX=yes
13280 # Don't use ranlib
13281 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13282 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13283 lt_tool_outputfile="@TOOL_OUTPUT@"~
13284 case $lt_outputfile in
13285 *.exe|*.EXE) ;;
13286 *)
13287 lt_outputfile="$lt_outputfile.exe"
13288 lt_tool_outputfile="$lt_tool_outputfile.exe"
13289 ;;
13290 esac~
13291 func_to_tool_file "$lt_outputfile"~
13292 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13293 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13294 $RM "$lt_outputfile.manifest";
13295 fi'
13296 ;;
13297 *)
13298 # g++
13299 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13300 # as there is no search path for DLLs.
13301 hardcode_libdir_flag_spec_CXX='-L$libdir'
13302 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13303 allow_undefined_flag_CXX=unsupported
13304 always_export_symbols_CXX=no
13305 enable_shared_with_static_runtimes_CXX=yes
13306
13307 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13308 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'
13309 # If the export-symbols file already is a .def file (1st line
13310 # is EXPORTS), use it as is; otherwise, prepend...
13311 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13312 cp $export_symbols $output_objdir/$soname.def;
13313 else
13314 echo EXPORTS > $output_objdir/$soname.def;
13315 cat $export_symbols >> $output_objdir/$soname.def;
13316 fi~
13317 $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'
13318 else
13319 ld_shlibs_CXX=no
13320 fi
13321 ;;
13322 esac
13323 ;;
13324 darwin* | rhapsody*)
13325
13326
13327 archive_cmds_need_lc_CXX=no
13328 hardcode_direct_CXX=no
13329 hardcode_automatic_CXX=yes
13330 hardcode_shlibpath_var_CXX=unsupported
13331 if test "$lt_cv_ld_force_load" = "yes"; then
13332 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13333
13334 else
13335 whole_archive_flag_spec_CXX=''
13336 fi
13337 link_all_deplibs_CXX=yes
13338 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13339 case $cc_basename in
13340 ifort*) _lt_dar_can_shared=yes ;;
13341 *) _lt_dar_can_shared=$GCC ;;
13342 esac
13343 if test "$_lt_dar_can_shared" = "yes"; then
13344 output_verbose_link_cmd=func_echo_all
13345 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}"
13346 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13347 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}"
13348 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}"
13349 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13350 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}"
13351 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}"
13352 fi
13353
13354 else
13355 ld_shlibs_CXX=no
13356 fi
13357
13358 ;;
13359
13360 dgux*)
13361 case $cc_basename in
13362 ec++*)
13363 # FIXME: insert proper C++ library support
13364 ld_shlibs_CXX=no
13365 ;;
13366 ghcx*)
13367 # Green Hills C++ Compiler
13368 # FIXME: insert proper C++ library support
13369 ld_shlibs_CXX=no
13370 ;;
13371 *)
13372 # FIXME: insert proper C++ library support
13373 ld_shlibs_CXX=no
13374 ;;
13375 esac
13376 ;;
13377
13378 freebsd2.*)
13379 # C++ shared libraries reported to be fairly broken before
13380 # switch to ELF
13381 ld_shlibs_CXX=no
13382 ;;
13383
13384 freebsd-elf*)
13385 archive_cmds_need_lc_CXX=no
13386 ;;
13387
13388 freebsd* | dragonfly*)
13389 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13390 # conventions
13391 ld_shlibs_CXX=yes
13392 ;;
13393
13394 gnu*)
13395 ;;
13396
13397 haiku*)
13398 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399 link_all_deplibs_CXX=yes
13400 ;;
13401
13402 hpux9*)
13403 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13404 hardcode_libdir_separator_CXX=:
13405 export_dynamic_flag_spec_CXX='${wl}-E'
13406 hardcode_direct_CXX=yes
13407 hardcode_minus_L_CXX=yes # Not in the search PATH,
13408 # but as the default
13409 # location of the library.
13410
13411 case $cc_basename in
13412 CC*)
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13415 ;;
13416 aCC*)
13417 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'
13418 # Commands to make compiler produce verbose output that lists
13419 # what "hidden" libraries, object files and flags are used when
13420 # linking a shared library.
13421 #
13422 # There doesn't appear to be a way to prevent this compiler from
13423 # explicitly linking system object files so we need to strip them
13424 # from the output so that they don't get included in the library
13425 # dependencies.
13426 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; func_echo_all "$list"'
13427 ;;
13428 *)
13429 if test "$GXX" = yes; then
13430 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13431 else
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 fi
13435 ;;
13436 esac
13437 ;;
13438
13439 hpux10*|hpux11*)
13440 if test $with_gnu_ld = no; then
13441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13442 hardcode_libdir_separator_CXX=:
13443
13444 case $host_cpu in
13445 hppa*64*|ia64*)
13446 ;;
13447 *)
13448 export_dynamic_flag_spec_CXX='${wl}-E'
13449 ;;
13450 esac
13451 fi
13452 case $host_cpu in
13453 hppa*64*|ia64*)
13454 hardcode_direct_CXX=no
13455 hardcode_shlibpath_var_CXX=no
13456 ;;
13457 *)
13458 hardcode_direct_CXX=yes
13459 hardcode_direct_absolute_CXX=yes
13460 hardcode_minus_L_CXX=yes # Not in the search PATH,
13461 # but as the default
13462 # location of the library.
13463 ;;
13464 esac
13465
13466 case $cc_basename in
13467 CC*)
13468 # FIXME: insert proper C++ library support
13469 ld_shlibs_CXX=no
13470 ;;
13471 aCC*)
13472 case $host_cpu in
13473 hppa*64*)
13474 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13475 ;;
13476 ia64*)
13477 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13478 ;;
13479 *)
13480 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13481 ;;
13482 esac
13483 # Commands to make compiler produce verbose output that lists
13484 # what "hidden" libraries, object files and flags are used when
13485 # linking a shared library.
13486 #
13487 # There doesn't appear to be a way to prevent this compiler from
13488 # explicitly linking system object files so we need to strip them
13489 # from the output so that they don't get included in the library
13490 # dependencies.
13491 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; func_echo_all "$list"'
13492 ;;
13493 *)
13494 if test "$GXX" = yes; then
13495 if test $with_gnu_ld = no; then
13496 case $host_cpu in
13497 hppa*64*)
13498 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13499 ;;
13500 ia64*)
13501 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13502 ;;
13503 *)
13504 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13505 ;;
13506 esac
13507 fi
13508 else
13509 # FIXME: insert proper C++ library support
13510 ld_shlibs_CXX=no
13511 fi
13512 ;;
13513 esac
13514 ;;
13515
13516 interix[3-9]*)
13517 hardcode_direct_CXX=no
13518 hardcode_shlibpath_var_CXX=no
13519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13520 export_dynamic_flag_spec_CXX='${wl}-E'
13521 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13522 # Instead, shared libraries are loaded at an image base (0x10000000 by
13523 # default) and relocated if they conflict, which is a slow very memory
13524 # consuming and fragmenting process. To avoid this, we pick a random,
13525 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13526 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13527 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'
13528 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'
13529 ;;
13530 irix5* | irix6*)
13531 case $cc_basename in
13532 CC*)
13533 # SGI C++
13534 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13535
13536 # Archives containing C++ object files must be created using
13537 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13538 # necessary to make sure instantiated templates are included
13539 # in the archive.
13540 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13541 ;;
13542 *)
13543 if test "$GXX" = yes; then
13544 if test "$with_gnu_ld" = no; then
13545 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13546 else
13547 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13548 fi
13549 fi
13550 link_all_deplibs_CXX=yes
13551 ;;
13552 esac
13553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13554 hardcode_libdir_separator_CXX=:
13555 inherit_rpath_CXX=yes
13556 ;;
13557
13558 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13559 case $cc_basename in
13560 KCC*)
13561 # Kuck and Associates, Inc. (KAI) C++ Compiler
13562
13563 # KCC will only create a shared library if the output file
13564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13565 # to its proper name (with version) after linking.
13566 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'
13567 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'
13568 # Commands to make compiler produce verbose output that lists
13569 # what "hidden" libraries, object files and flags are used when
13570 # linking a shared library.
13571 #
13572 # There doesn't appear to be a way to prevent this compiler from
13573 # explicitly linking system object files so we need to strip them
13574 # from the output so that they don't get included in the library
13575 # dependencies.
13576 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; func_echo_all "$list"'
13577
13578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13580
13581 # Archives containing C++ object files must be created using
13582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13584 ;;
13585 icpc* | ecpc* )
13586 # Intel C++
13587 with_gnu_ld=yes
13588 # version 8.0 and above of icpc choke on multiply defined symbols
13589 # if we add $predep_objects and $postdep_objects, however 7.1 and
13590 # earlier do not add the objects themselves.
13591 case `$CC -V 2>&1` in
13592 *"Version 7."*)
13593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594 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'
13595 ;;
13596 *) # Version 8.0 or newer
13597 tmp_idyn=
13598 case $host_cpu in
13599 ia64*) tmp_idyn=' -i_dynamic';;
13600 esac
13601 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13602 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'
13603 ;;
13604 esac
13605 archive_cmds_need_lc_CXX=no
13606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13608 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13609 ;;
13610 pgCC* | pgcpp*)
13611 # Portland Group C++ compiler
13612 case `$CC -V` in
13613 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13614 prelink_cmds_CXX='tpldir=Template.dir~
13615 rm -rf $tpldir~
13616 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13617 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13618 old_archive_cmds_CXX='tpldir=Template.dir~
13619 rm -rf $tpldir~
13620 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13621 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13622 $RANLIB $oldlib'
13623 archive_cmds_CXX='tpldir=Template.dir~
13624 rm -rf $tpldir~
13625 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13626 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13627 archive_expsym_cmds_CXX='tpldir=Template.dir~
13628 rm -rf $tpldir~
13629 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13630 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13631 ;;
13632 *) # Version 6 and above use weak symbols
13633 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13634 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'
13635 ;;
13636 esac
13637
13638 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13640 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13641 ;;
13642 cxx*)
13643 # Compaq C++
13644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13645 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'
13646
13647 runpath_var=LD_RUN_PATH
13648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13649 hardcode_libdir_separator_CXX=:
13650
13651 # Commands to make compiler produce verbose output that lists
13652 # what "hidden" libraries, object files and flags are used when
13653 # linking a shared library.
13654 #
13655 # There doesn't appear to be a way to prevent this compiler from
13656 # explicitly linking system object files so we need to strip them
13657 # from the output so that they don't get included in the library
13658 # dependencies.
13659 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13660 ;;
13661 xl* | mpixl* | bgxl*)
13662 # IBM XL 8.0 on PPC, with GNU ld
13663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13665 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666 if test "x$supports_anon_versioning" = xyes; then
13667 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13669 echo "local: *; };" >> $output_objdir/$libname.ver~
13670 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13671 fi
13672 ;;
13673 *)
13674 case `$CC -V 2>&1 | sed 5q` in
13675 *Sun\ C*)
13676 # Sun C++ 5.9
13677 no_undefined_flag_CXX=' -zdefs'
13678 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13679 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'
13680 hardcode_libdir_flag_spec_CXX='-R$libdir'
13681 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13682 compiler_needs_object_CXX=yes
13683
13684 # Not sure whether something based on
13685 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13686 # would be better.
13687 output_verbose_link_cmd='func_echo_all'
13688
13689 # Archives containing C++ object files must be created using
13690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13691 # necessary to make sure instantiated templates are included
13692 # in the archive.
13693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13694 ;;
13695 esac
13696 ;;
13697 esac
13698 ;;
13699
13700 lynxos*)
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 ;;
13704
13705 m88k*)
13706 # FIXME: insert proper C++ library support
13707 ld_shlibs_CXX=no
13708 ;;
13709
13710 mvs*)
13711 case $cc_basename in
13712 cxx*)
13713 # FIXME: insert proper C++ library support
13714 ld_shlibs_CXX=no
13715 ;;
13716 *)
13717 # FIXME: insert proper C++ library support
13718 ld_shlibs_CXX=no
13719 ;;
13720 esac
13721 ;;
13722
13723 netbsd*)
13724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13725 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13726 wlarc=
13727 hardcode_libdir_flag_spec_CXX='-R$libdir'
13728 hardcode_direct_CXX=yes
13729 hardcode_shlibpath_var_CXX=no
13730 fi
13731 # Workaround some broken pre-1.5 toolchains
13732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13733 ;;
13734
13735 *nto* | *qnx*)
13736 ld_shlibs_CXX=yes
13737 ;;
13738
13739 openbsd2*)
13740 # C++ shared libraries are fairly broken
13741 ld_shlibs_CXX=no
13742 ;;
13743
13744 openbsd*)
13745 if test -f /usr/libexec/ld.so; then
13746 hardcode_direct_CXX=yes
13747 hardcode_shlibpath_var_CXX=no
13748 hardcode_direct_absolute_CXX=yes
13749 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13752 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13753 export_dynamic_flag_spec_CXX='${wl}-E'
13754 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13755 fi
13756 output_verbose_link_cmd=func_echo_all
13757 else
13758 ld_shlibs_CXX=no
13759 fi
13760 ;;
13761
13762 osf3* | osf4* | osf5*)
13763 case $cc_basename in
13764 KCC*)
13765 # Kuck and Associates, Inc. (KAI) C++ Compiler
13766
13767 # KCC will only create a shared library if the output file
13768 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13769 # to its proper name (with version) after linking.
13770 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'
13771
13772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13773 hardcode_libdir_separator_CXX=:
13774
13775 # Archives containing C++ object files must be created using
13776 # the KAI C++ compiler.
13777 case $host in
13778 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13779 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13780 esac
13781 ;;
13782 RCC*)
13783 # Rational C++ 2.4.1
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13786 ;;
13787 cxx*)
13788 case $host in
13789 osf3*)
13790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13791 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13793 ;;
13794 *)
13795 allow_undefined_flag_CXX=' -expect_unresolved \*'
13796 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13797 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13798 echo "-hidden">> $lib.exp~
13799 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13800 $RM $lib.exp'
13801 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13802 ;;
13803 esac
13804
13805 hardcode_libdir_separator_CXX=:
13806
13807 # Commands to make compiler produce verbose output that lists
13808 # what "hidden" libraries, object files and flags are used when
13809 # linking a shared library.
13810 #
13811 # There doesn't appear to be a way to prevent this compiler from
13812 # explicitly linking system object files so we need to strip them
13813 # from the output so that they don't get included in the library
13814 # dependencies.
13815 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13816 ;;
13817 *)
13818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13820 case $host in
13821 osf3*)
13822 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13823 ;;
13824 *)
13825 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13826 ;;
13827 esac
13828
13829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13830 hardcode_libdir_separator_CXX=:
13831
13832 # Commands to make compiler produce verbose output that lists
13833 # what "hidden" libraries, object files and flags are used when
13834 # linking a shared library.
13835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13836
13837 else
13838 # FIXME: insert proper C++ library support
13839 ld_shlibs_CXX=no
13840 fi
13841 ;;
13842 esac
13843 ;;
13844
13845 psos*)
13846 # FIXME: insert proper C++ library support
13847 ld_shlibs_CXX=no
13848 ;;
13849
13850 sunos4*)
13851 case $cc_basename in
13852 CC*)
13853 # Sun C++ 4.x
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13856 ;;
13857 lcc*)
13858 # Lucid
13859 # FIXME: insert proper C++ library support
13860 ld_shlibs_CXX=no
13861 ;;
13862 *)
13863 # FIXME: insert proper C++ library support
13864 ld_shlibs_CXX=no
13865 ;;
13866 esac
13867 ;;
13868
13869 solaris*)
13870 case $cc_basename in
13871 CC* | sunCC*)
13872 # Sun C++ 4.2, 5.x and Centerline C++
13873 archive_cmds_need_lc_CXX=yes
13874 no_undefined_flag_CXX=' -zdefs'
13875 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13876 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13877 $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'
13878
13879 hardcode_libdir_flag_spec_CXX='-R$libdir'
13880 hardcode_shlibpath_var_CXX=no
13881 case $host_os in
13882 solaris2.[0-5] | solaris2.[0-5].*) ;;
13883 *)
13884 # The compiler driver will combine and reorder linker options,
13885 # but understands `-z linker_flag'.
13886 # Supported since Solaris 2.6 (maybe 2.5.1?)
13887 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13888 ;;
13889 esac
13890 link_all_deplibs_CXX=yes
13891
13892 output_verbose_link_cmd='func_echo_all'
13893
13894 # Archives containing C++ object files must be created using
13895 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13896 # necessary to make sure instantiated templates are included
13897 # in the archive.
13898 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13899 ;;
13900 gcx*)
13901 # Green Hills C++ Compiler
13902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13903
13904 # The C++ compiler must be used to create the archive.
13905 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13906 ;;
13907 *)
13908 # GNU C++ compiler with Solaris linker
13909 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13910 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13911 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13912 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13913 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13914 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13915
13916 # Commands to make compiler produce verbose output that lists
13917 # what "hidden" libraries, object files and flags are used when
13918 # linking a shared library.
13919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13920 else
13921 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13922 # platform.
13923 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13924 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13925 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13926
13927 # Commands to make compiler produce verbose output that lists
13928 # what "hidden" libraries, object files and flags are used when
13929 # linking a shared library.
13930 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13931 fi
13932
13933 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13934 case $host_os in
13935 solaris2.[0-5] | solaris2.[0-5].*) ;;
13936 *)
13937 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13938 ;;
13939 esac
13940 fi
13941 ;;
13942 esac
13943 ;;
13944
13945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13946 no_undefined_flag_CXX='${wl}-z,text'
13947 archive_cmds_need_lc_CXX=no
13948 hardcode_shlibpath_var_CXX=no
13949 runpath_var='LD_RUN_PATH'
13950
13951 case $cc_basename in
13952 CC*)
13953 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13955 ;;
13956 *)
13957 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13958 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 ;;
13960 esac
13961 ;;
13962
13963 sysv5* | sco3.2v5* | sco5v6*)
13964 # Note: We can NOT use -z defs as we might desire, because we do not
13965 # link with -lc, and that would cause any symbols used from libc to
13966 # always be unresolved, which means just about no library would
13967 # ever link correctly. If we're not using GNU ld we use -z text
13968 # though, which does catch some bad symbols but isn't as heavy-handed
13969 # as -z defs.
13970 no_undefined_flag_CXX='${wl}-z,text'
13971 allow_undefined_flag_CXX='${wl}-z,nodefs'
13972 archive_cmds_need_lc_CXX=no
13973 hardcode_shlibpath_var_CXX=no
13974 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13975 hardcode_libdir_separator_CXX=':'
13976 link_all_deplibs_CXX=yes
13977 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13978 runpath_var='LD_RUN_PATH'
13979
13980 case $cc_basename in
13981 CC*)
13982 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13984 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13985 '"$old_archive_cmds_CXX"
13986 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13987 '"$reload_cmds_CXX"
13988 ;;
13989 *)
13990 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13991 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13992 ;;
13993 esac
13994 ;;
13995
13996 tandem*)
13997 case $cc_basename in
13998 NCC*)
13999 # NonStop-UX NCC 3.20
14000 # FIXME: insert proper C++ library support
14001 ld_shlibs_CXX=no
14002 ;;
14003 *)
14004 # FIXME: insert proper C++ library support
14005 ld_shlibs_CXX=no
14006 ;;
14007 esac
14008 ;;
14009
14010 vxworks*)
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14013 ;;
14014
14015 *)
14016 # FIXME: insert proper C++ library support
14017 ld_shlibs_CXX=no
14018 ;;
14019 esac
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14022 $as_echo "$ld_shlibs_CXX" >&6; }
14023 test "$ld_shlibs_CXX" = no && can_build_shared=no
14024
14025 GCC_CXX="$GXX"
14026 LD_CXX="$LD"
14027
14028 ## CAVEAT EMPTOR:
14029 ## There is no encapsulation within the following macros, do not change
14030 ## the running order or otherwise move them around unless you know exactly
14031 ## what you are doing...
14032 # Dependencies to place before and after the object being linked:
14033 predep_objects_CXX=
14034 postdep_objects_CXX=
14035 predeps_CXX=
14036 postdeps_CXX=
14037 compiler_lib_search_path_CXX=
14038
14039 cat > conftest.$ac_ext <<_LT_EOF
14040 class Foo
14041 {
14042 public:
14043 Foo (void) { a = 0; }
14044 private:
14045 int a;
14046 };
14047 _LT_EOF
14048
14049
14050 _lt_libdeps_save_CFLAGS=$CFLAGS
14051 case "$CC $CFLAGS " in #(
14052 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14053 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14054 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14055 esac
14056
14057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14058 (eval $ac_compile) 2>&5
14059 ac_status=$?
14060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14061 test $ac_status = 0; }; then
14062 # Parse the compiler output and extract the necessary
14063 # objects, libraries and library flags.
14064
14065 # Sentinel used to keep track of whether or not we are before
14066 # the conftest object file.
14067 pre_test_object_deps_done=no
14068
14069 for p in `eval "$output_verbose_link_cmd"`; do
14070 case ${prev}${p} in
14071
14072 -L* | -R* | -l*)
14073 # Some compilers place space between "-{L,R}" and the path.
14074 # Remove the space.
14075 if test $p = "-L" ||
14076 test $p = "-R"; then
14077 prev=$p
14078 continue
14079 fi
14080
14081 # Expand the sysroot to ease extracting the directories later.
14082 if test -z "$prev"; then
14083 case $p in
14084 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14085 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14086 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14087 esac
14088 fi
14089 case $p in
14090 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14091 esac
14092 if test "$pre_test_object_deps_done" = no; then
14093 case ${prev} in
14094 -L | -R)
14095 # Internal compiler library paths should come after those
14096 # provided the user. The postdeps already come after the
14097 # user supplied libs so there is no need to process them.
14098 if test -z "$compiler_lib_search_path_CXX"; then
14099 compiler_lib_search_path_CXX="${prev}${p}"
14100 else
14101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14102 fi
14103 ;;
14104 # The "-l" case would never come before the object being
14105 # linked, so don't bother handling this case.
14106 esac
14107 else
14108 if test -z "$postdeps_CXX"; then
14109 postdeps_CXX="${prev}${p}"
14110 else
14111 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14112 fi
14113 fi
14114 prev=
14115 ;;
14116
14117 *.lto.$objext) ;; # Ignore GCC LTO objects
14118 *.$objext)
14119 # This assumes that the test object file only shows up
14120 # once in the compiler output.
14121 if test "$p" = "conftest.$objext"; then
14122 pre_test_object_deps_done=yes
14123 continue
14124 fi
14125
14126 if test "$pre_test_object_deps_done" = no; then
14127 if test -z "$predep_objects_CXX"; then
14128 predep_objects_CXX="$p"
14129 else
14130 predep_objects_CXX="$predep_objects_CXX $p"
14131 fi
14132 else
14133 if test -z "$postdep_objects_CXX"; then
14134 postdep_objects_CXX="$p"
14135 else
14136 postdep_objects_CXX="$postdep_objects_CXX $p"
14137 fi
14138 fi
14139 ;;
14140
14141 *) ;; # Ignore the rest.
14142
14143 esac
14144 done
14145
14146 # Clean up.
14147 rm -f a.out a.exe
14148 else
14149 echo "libtool.m4: error: problem compiling CXX test program"
14150 fi
14151
14152 $RM -f confest.$objext
14153 CFLAGS=$_lt_libdeps_save_CFLAGS
14154
14155 # PORTME: override above test on systems where it is broken
14156 case $host_os in
14157 interix[3-9]*)
14158 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14159 # hack all around it, let's just trust "g++" to DTRT.
14160 predep_objects_CXX=
14161 postdep_objects_CXX=
14162 postdeps_CXX=
14163 ;;
14164
14165 linux*)
14166 case `$CC -V 2>&1 | sed 5q` in
14167 *Sun\ C*)
14168 # Sun C++ 5.9
14169
14170 # The more standards-conforming stlport4 library is
14171 # incompatible with the Cstd library. Avoid specifying
14172 # it if it's in CXXFLAGS. Ignore libCrun as
14173 # -library=stlport4 depends on it.
14174 case " $CXX $CXXFLAGS " in
14175 *" -library=stlport4 "*)
14176 solaris_use_stlport4=yes
14177 ;;
14178 esac
14179
14180 if test "$solaris_use_stlport4" != yes; then
14181 postdeps_CXX='-library=Cstd -library=Crun'
14182 fi
14183 ;;
14184 esac
14185 ;;
14186
14187 solaris*)
14188 case $cc_basename in
14189 CC* | sunCC*)
14190 # The more standards-conforming stlport4 library is
14191 # incompatible with the Cstd library. Avoid specifying
14192 # it if it's in CXXFLAGS. Ignore libCrun as
14193 # -library=stlport4 depends on it.
14194 case " $CXX $CXXFLAGS " in
14195 *" -library=stlport4 "*)
14196 solaris_use_stlport4=yes
14197 ;;
14198 esac
14199
14200 # Adding this requires a known-good setup of shared libraries for
14201 # Sun compiler versions before 5.6, else PIC objects from an old
14202 # archive will be linked into the output, leading to subtle bugs.
14203 if test "$solaris_use_stlport4" != yes; then
14204 postdeps_CXX='-library=Cstd -library=Crun'
14205 fi
14206 ;;
14207 esac
14208 ;;
14209 esac
14210
14211
14212 case " $postdeps_CXX " in
14213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14214 esac
14215 compiler_lib_search_dirs_CXX=
14216 if test -n "${compiler_lib_search_path_CXX}"; then
14217 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14218 fi
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250 lt_prog_compiler_wl_CXX=
14251 lt_prog_compiler_pic_CXX=
14252 lt_prog_compiler_static_CXX=
14253
14254
14255 # C++ specific cases for pic, static, wl, etc.
14256 if test "$GXX" = yes; then
14257 lt_prog_compiler_wl_CXX='-Wl,'
14258 lt_prog_compiler_static_CXX='-static'
14259
14260 case $host_os in
14261 aix*)
14262 # All AIX code is PIC.
14263 if test "$host_cpu" = ia64; then
14264 # AIX 5 now supports IA64 processor
14265 lt_prog_compiler_static_CXX='-Bstatic'
14266 fi
14267 ;;
14268
14269 amigaos*)
14270 case $host_cpu in
14271 powerpc)
14272 # see comment about AmigaOS4 .so support
14273 lt_prog_compiler_pic_CXX='-fPIC'
14274 ;;
14275 m68k)
14276 # FIXME: we need at least 68020 code to build shared libraries, but
14277 # adding the `-m68020' flag to GCC prevents building anything better,
14278 # like `-m68040'.
14279 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14280 ;;
14281 esac
14282 ;;
14283
14284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14285 # PIC is the default for these OSes.
14286 ;;
14287 mingw* | cygwin* | os2* | pw32* | cegcc*)
14288 # This hack is so that the source file can tell whether it is being
14289 # built for inclusion in a dll (and should export symbols for example).
14290 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14291 # (--disable-auto-import) libraries
14292 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14293 ;;
14294 darwin* | rhapsody*)
14295 # PIC is the default on this platform
14296 # Common symbols not allowed in MH_DYLIB files
14297 lt_prog_compiler_pic_CXX='-fno-common'
14298 ;;
14299 *djgpp*)
14300 # DJGPP does not support shared libraries at all
14301 lt_prog_compiler_pic_CXX=
14302 ;;
14303 haiku*)
14304 # PIC is the default for Haiku.
14305 # The "-static" flag exists, but is broken.
14306 lt_prog_compiler_static_CXX=
14307 ;;
14308 interix[3-9]*)
14309 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14310 # Instead, we relocate shared libraries at runtime.
14311 ;;
14312 sysv4*MP*)
14313 if test -d /usr/nec; then
14314 lt_prog_compiler_pic_CXX=-Kconform_pic
14315 fi
14316 ;;
14317 hpux*)
14318 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14319 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14320 # sets the default TLS model and affects inlining.
14321 case $host_cpu in
14322 hppa*64*)
14323 ;;
14324 *)
14325 lt_prog_compiler_pic_CXX='-fPIC'
14326 ;;
14327 esac
14328 ;;
14329 *qnx* | *nto*)
14330 # QNX uses GNU C++, but need to define -shared option too, otherwise
14331 # it will coredump.
14332 lt_prog_compiler_pic_CXX='-fPIC -shared'
14333 ;;
14334 *)
14335 lt_prog_compiler_pic_CXX='-fPIC'
14336 ;;
14337 esac
14338 else
14339 case $host_os in
14340 aix[4-9]*)
14341 # All AIX code is PIC.
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 now supports IA64 processor
14344 lt_prog_compiler_static_CXX='-Bstatic'
14345 else
14346 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14347 fi
14348 ;;
14349 chorus*)
14350 case $cc_basename in
14351 cxch68*)
14352 # Green Hills C++ Compiler
14353 # _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"
14354 ;;
14355 esac
14356 ;;
14357 mingw* | cygwin* | os2* | pw32* | cegcc*)
14358 # This hack is so that the source file can tell whether it is being
14359 # built for inclusion in a dll (and should export symbols for example).
14360 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14361 ;;
14362 dgux*)
14363 case $cc_basename in
14364 ec++*)
14365 lt_prog_compiler_pic_CXX='-KPIC'
14366 ;;
14367 ghcx*)
14368 # Green Hills C++ Compiler
14369 lt_prog_compiler_pic_CXX='-pic'
14370 ;;
14371 *)
14372 ;;
14373 esac
14374 ;;
14375 freebsd* | dragonfly*)
14376 # FreeBSD uses GNU C++
14377 ;;
14378 hpux9* | hpux10* | hpux11*)
14379 case $cc_basename in
14380 CC*)
14381 lt_prog_compiler_wl_CXX='-Wl,'
14382 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14383 if test "$host_cpu" != ia64; then
14384 lt_prog_compiler_pic_CXX='+Z'
14385 fi
14386 ;;
14387 aCC*)
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14390 case $host_cpu in
14391 hppa*64*|ia64*)
14392 # +Z the default
14393 ;;
14394 *)
14395 lt_prog_compiler_pic_CXX='+Z'
14396 ;;
14397 esac
14398 ;;
14399 *)
14400 ;;
14401 esac
14402 ;;
14403 interix*)
14404 # This is c89, which is MS Visual C++ (no shared libs)
14405 # Anyone wants to do a port?
14406 ;;
14407 irix5* | irix6* | nonstopux*)
14408 case $cc_basename in
14409 CC*)
14410 lt_prog_compiler_wl_CXX='-Wl,'
14411 lt_prog_compiler_static_CXX='-non_shared'
14412 # CC pic flag -KPIC is the default.
14413 ;;
14414 *)
14415 ;;
14416 esac
14417 ;;
14418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14419 case $cc_basename in
14420 KCC*)
14421 # KAI C++ Compiler
14422 lt_prog_compiler_wl_CXX='--backend -Wl,'
14423 lt_prog_compiler_pic_CXX='-fPIC'
14424 ;;
14425 ecpc* )
14426 # old Intel C++ for x86_64 which still supported -KPIC.
14427 lt_prog_compiler_wl_CXX='-Wl,'
14428 lt_prog_compiler_pic_CXX='-KPIC'
14429 lt_prog_compiler_static_CXX='-static'
14430 ;;
14431 icpc* )
14432 # Intel C++, used to be incompatible with GCC.
14433 # ICC 10 doesn't accept -KPIC any more.
14434 lt_prog_compiler_wl_CXX='-Wl,'
14435 lt_prog_compiler_pic_CXX='-fPIC'
14436 lt_prog_compiler_static_CXX='-static'
14437 ;;
14438 pgCC* | pgcpp*)
14439 # Portland Group C++ compiler
14440 lt_prog_compiler_wl_CXX='-Wl,'
14441 lt_prog_compiler_pic_CXX='-fpic'
14442 lt_prog_compiler_static_CXX='-Bstatic'
14443 ;;
14444 cxx*)
14445 # Compaq C++
14446 # Make sure the PIC flag is empty. It appears that all Alpha
14447 # Linux and Compaq Tru64 Unix objects are PIC.
14448 lt_prog_compiler_pic_CXX=
14449 lt_prog_compiler_static_CXX='-non_shared'
14450 ;;
14451 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14452 # IBM XL 8.0, 9.0 on PPC and BlueGene
14453 lt_prog_compiler_wl_CXX='-Wl,'
14454 lt_prog_compiler_pic_CXX='-qpic'
14455 lt_prog_compiler_static_CXX='-qstaticlink'
14456 ;;
14457 *)
14458 case `$CC -V 2>&1 | sed 5q` in
14459 *Sun\ C*)
14460 # Sun C++ 5.9
14461 lt_prog_compiler_pic_CXX='-KPIC'
14462 lt_prog_compiler_static_CXX='-Bstatic'
14463 lt_prog_compiler_wl_CXX='-Qoption ld '
14464 ;;
14465 esac
14466 ;;
14467 esac
14468 ;;
14469 lynxos*)
14470 ;;
14471 m88k*)
14472 ;;
14473 mvs*)
14474 case $cc_basename in
14475 cxx*)
14476 lt_prog_compiler_pic_CXX='-W c,exportall'
14477 ;;
14478 *)
14479 ;;
14480 esac
14481 ;;
14482 netbsd*)
14483 ;;
14484 *qnx* | *nto*)
14485 # QNX uses GNU C++, but need to define -shared option too, otherwise
14486 # it will coredump.
14487 lt_prog_compiler_pic_CXX='-fPIC -shared'
14488 ;;
14489 osf3* | osf4* | osf5*)
14490 case $cc_basename in
14491 KCC*)
14492 lt_prog_compiler_wl_CXX='--backend -Wl,'
14493 ;;
14494 RCC*)
14495 # Rational C++ 2.4.1
14496 lt_prog_compiler_pic_CXX='-pic'
14497 ;;
14498 cxx*)
14499 # Digital/Compaq C++
14500 lt_prog_compiler_wl_CXX='-Wl,'
14501 # Make sure the PIC flag is empty. It appears that all Alpha
14502 # Linux and Compaq Tru64 Unix objects are PIC.
14503 lt_prog_compiler_pic_CXX=
14504 lt_prog_compiler_static_CXX='-non_shared'
14505 ;;
14506 *)
14507 ;;
14508 esac
14509 ;;
14510 psos*)
14511 ;;
14512 solaris*)
14513 case $cc_basename in
14514 CC* | sunCC*)
14515 # Sun C++ 4.2, 5.x and Centerline C++
14516 lt_prog_compiler_pic_CXX='-KPIC'
14517 lt_prog_compiler_static_CXX='-Bstatic'
14518 lt_prog_compiler_wl_CXX='-Qoption ld '
14519 ;;
14520 gcx*)
14521 # Green Hills C++ Compiler
14522 lt_prog_compiler_pic_CXX='-PIC'
14523 ;;
14524 *)
14525 ;;
14526 esac
14527 ;;
14528 sunos4*)
14529 case $cc_basename in
14530 CC*)
14531 # Sun C++ 4.x
14532 lt_prog_compiler_pic_CXX='-pic'
14533 lt_prog_compiler_static_CXX='-Bstatic'
14534 ;;
14535 lcc*)
14536 # Lucid
14537 lt_prog_compiler_pic_CXX='-pic'
14538 ;;
14539 *)
14540 ;;
14541 esac
14542 ;;
14543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14544 case $cc_basename in
14545 CC*)
14546 lt_prog_compiler_wl_CXX='-Wl,'
14547 lt_prog_compiler_pic_CXX='-KPIC'
14548 lt_prog_compiler_static_CXX='-Bstatic'
14549 ;;
14550 esac
14551 ;;
14552 tandem*)
14553 case $cc_basename in
14554 NCC*)
14555 # NonStop-UX NCC 3.20
14556 lt_prog_compiler_pic_CXX='-KPIC'
14557 ;;
14558 *)
14559 ;;
14560 esac
14561 ;;
14562 vxworks*)
14563 ;;
14564 *)
14565 lt_prog_compiler_can_build_shared_CXX=no
14566 ;;
14567 esac
14568 fi
14569
14570 case $host_os in
14571 # For platforms which do not support PIC, -DPIC is meaningless:
14572 *djgpp*)
14573 lt_prog_compiler_pic_CXX=
14574 ;;
14575 *)
14576 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14577 ;;
14578 esac
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14582 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14586 fi
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14588 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14589 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14590
14591 #
14592 # Check to make sure the PIC flag actually works.
14593 #
14594 if test -n "$lt_prog_compiler_pic_CXX"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14596 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14597 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 lt_cv_prog_compiler_pic_works_CXX=no
14601 ac_outfile=conftest.$ac_objext
14602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14603 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14604 # Insert the option either (1) after the last *FLAGS variable, or
14605 # (2) before a word containing "conftest.", or (3) at the end.
14606 # Note that $ac_compile itself does not contain backslashes and begins
14607 # with a dollar sign (not a hyphen), so the echo should work correctly.
14608 # The option is referenced via a variable to avoid confusing sed.
14609 lt_compile=`echo "$ac_compile" | $SED \
14610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14612 -e 's:$: $lt_compiler_flag:'`
14613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14614 (eval "$lt_compile" 2>conftest.err)
14615 ac_status=$?
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 if (exit $ac_status) && test -s "$ac_outfile"; then
14619 # The compiler can only warn and ignore the option if not recognized
14620 # So say no if there are warnings other than the usual output.
14621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14624 lt_cv_prog_compiler_pic_works_CXX=yes
14625 fi
14626 fi
14627 $RM -r conftest*
14628
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14631 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14632
14633 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14634 case $lt_prog_compiler_pic_CXX in
14635 "" | " "*) ;;
14636 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14637 esac
14638 else
14639 lt_prog_compiler_pic_CXX=
14640 lt_prog_compiler_can_build_shared_CXX=no
14641 fi
14642
14643 fi
14644
14645
14646
14647
14648
14649 #
14650 # Check to make sure the static flag actually works.
14651 #
14652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14655 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_static_works_CXX=no
14659 save_LDFLAGS="$LDFLAGS"
14660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14663 # The linker can only warn and ignore the option if not recognized
14664 # So say no if there are warnings
14665 if test -s conftest.err; then
14666 # Append any errors to the config.log.
14667 cat conftest.err 1>&5
14668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14670 if diff conftest.exp conftest.er2 >/dev/null; then
14671 lt_cv_prog_compiler_static_works_CXX=yes
14672 fi
14673 else
14674 lt_cv_prog_compiler_static_works_CXX=yes
14675 fi
14676 fi
14677 $RM -r conftest*
14678 LDFLAGS="$save_LDFLAGS"
14679
14680 fi
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14682 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14683
14684 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14685 :
14686 else
14687 lt_prog_compiler_static_CXX=
14688 fi
14689
14690
14691
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14695 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 lt_cv_prog_compiler_c_o_CXX=no
14699 $RM -r conftest 2>/dev/null
14700 mkdir conftest
14701 cd conftest
14702 mkdir out
14703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704
14705 lt_compiler_flag="-o out/conftest2.$ac_objext"
14706 # Insert the option either (1) after the last *FLAGS variable, or
14707 # (2) before a word containing "conftest.", or (3) at the end.
14708 # Note that $ac_compile itself does not contain backslashes and begins
14709 # with a dollar sign (not a hyphen), so the echo should work correctly.
14710 lt_compile=`echo "$ac_compile" | $SED \
14711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14713 -e 's:$: $lt_compiler_flag:'`
14714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14715 (eval "$lt_compile" 2>out/conftest.err)
14716 ac_status=$?
14717 cat out/conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14720 then
14721 # The compiler can only warn and ignore the option if not recognized
14722 # So say no if there are warnings
14723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14726 lt_cv_prog_compiler_c_o_CXX=yes
14727 fi
14728 fi
14729 chmod u+w . 2>&5
14730 $RM -r conftest*
14731 # SGI C++ compiler will create directory out/ii_files/ for
14732 # template instantiation
14733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14734 $RM out/* && rmdir out
14735 cd ..
14736 $RM -r conftest
14737 $RM -r conftest*
14738
14739 fi
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14741 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14742
14743
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14747 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 lt_cv_prog_compiler_c_o_CXX=no
14751 $RM -r conftest 2>/dev/null
14752 mkdir conftest
14753 cd conftest
14754 mkdir out
14755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14756
14757 lt_compiler_flag="-o out/conftest2.$ac_objext"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 lt_compile=`echo "$ac_compile" | $SED \
14763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14765 -e 's:$: $lt_compiler_flag:'`
14766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14767 (eval "$lt_compile" 2>out/conftest.err)
14768 ac_status=$?
14769 cat out/conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14772 then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings
14775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_c_o_CXX=yes
14779 fi
14780 fi
14781 chmod u+w . 2>&5
14782 $RM -r conftest*
14783 # SGI C++ compiler will create directory out/ii_files/ for
14784 # template instantiation
14785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14786 $RM out/* && rmdir out
14787 cd ..
14788 $RM -r conftest
14789 $RM -r conftest*
14790
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14793 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14794
14795
14796
14797
14798 hard_links="nottested"
14799 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14800 # do not overwrite the value of need_locks provided by the user
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14802 $as_echo_n "checking if we can lock with hard links... " >&6; }
14803 hard_links=yes
14804 $RM -r conftest*
14805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14806 touch conftest.a
14807 ln conftest.a conftest.b 2>&5 || hard_links=no
14808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14810 $as_echo "$hard_links" >&6; }
14811 if test "$hard_links" = no; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14814 need_locks=warn
14815 fi
14816 else
14817 need_locks=no
14818 fi
14819
14820
14821
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14824
14825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14826 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14827 case $host_os in
14828 aix[4-9]*)
14829 # If we're using GNU nm, then we don't want the "-C" option.
14830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14831 # Also, AIX nm treats weak defined symbols like other global defined
14832 # symbols, whereas GNU nm marks them as "W".
14833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14834 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14835 else
14836 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'
14837 fi
14838 ;;
14839 pw32*)
14840 export_symbols_cmds_CXX="$ltdll_cmds"
14841 ;;
14842 cygwin* | mingw* | cegcc*)
14843 case $cc_basename in
14844 cl*)
14845 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14846 ;;
14847 *)
14848 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14849 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14850 ;;
14851 esac
14852 ;;
14853 *)
14854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14855 ;;
14856 esac
14857
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14859 $as_echo "$ld_shlibs_CXX" >&6; }
14860 test "$ld_shlibs_CXX" = no && can_build_shared=no
14861
14862 with_gnu_ld_CXX=$with_gnu_ld
14863
14864
14865
14866
14867
14868
14869 #
14870 # Do we need to explicitly link libc?
14871 #
14872 case "x$archive_cmds_need_lc_CXX" in
14873 x|xyes)
14874 # Assume -lc should be added
14875 archive_cmds_need_lc_CXX=yes
14876
14877 if test "$enable_shared" = yes && test "$GCC" = yes; then
14878 case $archive_cmds_CXX in
14879 *'~'*)
14880 # FIXME: we may have to deal with multi-command sequences.
14881 ;;
14882 '$CC '*)
14883 # Test whether the compiler implicitly links with -lc since on some
14884 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14885 # to ld, don't add -lc before -lgcc.
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14887 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14888 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 $RM -r conftest*
14892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14893
14894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14895 (eval $ac_compile) 2>&5
14896 ac_status=$?
14897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14898 test $ac_status = 0; } 2>conftest.err; then
14899 soname=conftest
14900 lib=conftest
14901 libobjs=conftest.$ac_objext
14902 deplibs=
14903 wl=$lt_prog_compiler_wl_CXX
14904 pic_flag=$lt_prog_compiler_pic_CXX
14905 compiler_flags=-v
14906 linker_flags=-v
14907 verstring=
14908 output_objdir=.
14909 libname=conftest
14910 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14911 allow_undefined_flag_CXX=
14912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14913 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14914 ac_status=$?
14915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14916 test $ac_status = 0; }
14917 then
14918 lt_cv_archive_cmds_need_lc_CXX=no
14919 else
14920 lt_cv_archive_cmds_need_lc_CXX=yes
14921 fi
14922 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14923 else
14924 cat conftest.err 1>&5
14925 fi
14926 $RM -r conftest*
14927
14928 fi
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14930 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14931 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14932 ;;
14933 esac
14934 fi
14935 ;;
14936 esac
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15000 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15001
15002 library_names_spec=
15003 libname_spec='lib$name'
15004 soname_spec=
15005 shrext_cmds=".so"
15006 postinstall_cmds=
15007 postuninstall_cmds=
15008 finish_cmds=
15009 finish_eval=
15010 shlibpath_var=
15011 shlibpath_overrides_runpath=unknown
15012 version_type=none
15013 dynamic_linker="$host_os ld.so"
15014 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15015 need_lib_prefix=unknown
15016 hardcode_into_libs=no
15017
15018 # when you set need_version to no, make sure it does not cause -set_version
15019 # flags to be left without arguments
15020 need_version=unknown
15021
15022 case $host_os in
15023 aix3*)
15024 version_type=linux # correct to gnu/linux during the next big refactor
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15026 shlibpath_var=LIBPATH
15027
15028 # AIX 3 has no versioning support, so we append a major version to the name.
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 ;;
15031
15032 aix[4-9]*)
15033 version_type=linux # correct to gnu/linux during the next big refactor
15034 need_lib_prefix=no
15035 need_version=no
15036 hardcode_into_libs=yes
15037 if test "$host_cpu" = ia64; then
15038 # AIX 5 supports IA64
15039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 else
15042 # With GCC up to 2.95.x, collect2 would create an import file
15043 # for dependence libraries. The import file would start with
15044 # the line `#! .'. This would cause the generated library to
15045 # depend on `.', always an invalid library. This was fixed in
15046 # development snapshots of GCC prior to 3.0.
15047 case $host_os in
15048 aix4 | aix4.[01] | aix4.[01].*)
15049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15050 echo ' yes '
15051 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15052 :
15053 else
15054 can_build_shared=no
15055 fi
15056 ;;
15057 esac
15058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15059 # soname into executable. Probably we can add versioning support to
15060 # collect2, so additional links can be useful in future.
15061 if test "$aix_use_runtimelinking" = yes; then
15062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15063 # instead of lib<name>.a to let people know that these are not
15064 # typical AIX shared libraries.
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066 else
15067 # We preserve .a as extension for shared libraries through AIX4.2
15068 # and later when we are not doing run time linking.
15069 library_names_spec='${libname}${release}.a $libname.a'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 fi
15072 shlibpath_var=LIBPATH
15073 fi
15074 ;;
15075
15076 amigaos*)
15077 case $host_cpu in
15078 powerpc)
15079 # Since July 2007 AmigaOS4 officially supports .so libraries.
15080 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082 ;;
15083 m68k)
15084 library_names_spec='$libname.ixlibrary $libname.a'
15085 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15086 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15087 ;;
15088 esac
15089 ;;
15090
15091 beos*)
15092 library_names_spec='${libname}${shared_ext}'
15093 dynamic_linker="$host_os ld.so"
15094 shlibpath_var=LIBRARY_PATH
15095 ;;
15096
15097 bsdi[45]*)
15098 version_type=linux # correct to gnu/linux during the next big refactor
15099 need_version=no
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15106 # the default ld.so.conf also contains /usr/contrib/lib and
15107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15108 # libtool to hard-code these into programs
15109 ;;
15110
15111 cygwin* | mingw* | pw32* | cegcc*)
15112 version_type=windows
15113 shrext_cmds=".dll"
15114 need_version=no
15115 need_lib_prefix=no
15116
15117 case $GCC,$cc_basename in
15118 yes,*)
15119 # gcc
15120 library_names_spec='$libname.dll.a'
15121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15122 postinstall_cmds='base_file=`basename \${file}`~
15123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15124 dldir=$destdir/`dirname \$dlpath`~
15125 test -d \$dldir || mkdir -p \$dldir~
15126 $install_prog $dir/$dlname \$dldir/$dlname~
15127 chmod a+x \$dldir/$dlname~
15128 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15129 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15130 fi'
15131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15132 dlpath=$dir/\$dldll~
15133 $RM \$dlpath'
15134 shlibpath_overrides_runpath=yes
15135
15136 case $host_os in
15137 cygwin*)
15138 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15139 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140
15141 ;;
15142 mingw* | cegcc*)
15143 # MinGW DLLs use traditional 'lib' prefix
15144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15145 ;;
15146 pw32*)
15147 # pw32 DLLs use 'pw' prefix rather than 'lib'
15148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15149 ;;
15150 esac
15151 dynamic_linker='Win32 ld.exe'
15152 ;;
15153
15154 *,cl*)
15155 # Native MSVC
15156 libname_spec='$name'
15157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15158 library_names_spec='${libname}.dll.lib'
15159
15160 case $build_os in
15161 mingw*)
15162 sys_lib_search_path_spec=
15163 lt_save_ifs=$IFS
15164 IFS=';'
15165 for lt_path in $LIB
15166 do
15167 IFS=$lt_save_ifs
15168 # Let DOS variable expansion print the short 8.3 style file name.
15169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15171 done
15172 IFS=$lt_save_ifs
15173 # Convert to MSYS style.
15174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15175 ;;
15176 cygwin*)
15177 # Convert to unix form, then to dos form, then back to unix form
15178 # but this time dos style (no spaces!) so that the unix form looks
15179 # like /cygdrive/c/PROGRA~1:/cygdr...
15180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15183 ;;
15184 *)
15185 sys_lib_search_path_spec="$LIB"
15186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15187 # It is most probably a Windows format PATH.
15188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15189 else
15190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15191 fi
15192 # FIXME: find the short name or the path components, as spaces are
15193 # common. (e.g. "Program Files" -> "PROGRA~1")
15194 ;;
15195 esac
15196
15197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15198 postinstall_cmds='base_file=`basename \${file}`~
15199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15200 dldir=$destdir/`dirname \$dlpath`~
15201 test -d \$dldir || mkdir -p \$dldir~
15202 $install_prog $dir/$dlname \$dldir/$dlname'
15203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15204 dlpath=$dir/\$dldll~
15205 $RM \$dlpath'
15206 shlibpath_overrides_runpath=yes
15207 dynamic_linker='Win32 link.exe'
15208 ;;
15209
15210 *)
15211 # Assume MSVC wrapper
15212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15213 dynamic_linker='Win32 ld.exe'
15214 ;;
15215 esac
15216 # FIXME: first we should search . and the directory the executable is in
15217 shlibpath_var=PATH
15218 ;;
15219
15220 darwin* | rhapsody*)
15221 dynamic_linker="$host_os dyld"
15222 version_type=darwin
15223 need_lib_prefix=no
15224 need_version=no
15225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15226 soname_spec='${libname}${release}${major}$shared_ext'
15227 shlibpath_overrides_runpath=yes
15228 shlibpath_var=DYLD_LIBRARY_PATH
15229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15230
15231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15232 ;;
15233
15234 dgux*)
15235 version_type=linux # correct to gnu/linux during the next big refactor
15236 need_lib_prefix=no
15237 need_version=no
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 ;;
15242
15243 freebsd* | dragonfly*)
15244 # DragonFly does not have aout. When/if they implement a new
15245 # versioning mechanism, adjust this.
15246 if test -x /usr/bin/objformat; then
15247 objformat=`/usr/bin/objformat`
15248 else
15249 case $host_os in
15250 freebsd[23].*) objformat=aout ;;
15251 *) objformat=elf ;;
15252 esac
15253 fi
15254 version_type=freebsd-$objformat
15255 case $version_type in
15256 freebsd-elf*)
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15258 need_version=no
15259 need_lib_prefix=no
15260 ;;
15261 freebsd-*)
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15263 need_version=yes
15264 ;;
15265 esac
15266 shlibpath_var=LD_LIBRARY_PATH
15267 case $host_os in
15268 freebsd2.*)
15269 shlibpath_overrides_runpath=yes
15270 ;;
15271 freebsd3.[01]* | freebsdelf3.[01]*)
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15274 ;;
15275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15277 shlibpath_overrides_runpath=no
15278 hardcode_into_libs=yes
15279 ;;
15280 *) # from 4.6 on, and DragonFly
15281 shlibpath_overrides_runpath=yes
15282 hardcode_into_libs=yes
15283 ;;
15284 esac
15285 ;;
15286
15287 gnu*)
15288 version_type=linux # correct to gnu/linux during the next big refactor
15289 need_lib_prefix=no
15290 need_version=no
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15296 ;;
15297
15298 haiku*)
15299 version_type=linux # correct to gnu/linux during the next big refactor
15300 need_lib_prefix=no
15301 need_version=no
15302 dynamic_linker="$host_os runtime_loader"
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LIBRARY_PATH
15306 shlibpath_overrides_runpath=yes
15307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15308 hardcode_into_libs=yes
15309 ;;
15310
15311 hpux9* | hpux10* | hpux11*)
15312 # Give a soname corresponding to the major version so that dld.sl refuses to
15313 # link against other versions.
15314 version_type=sunos
15315 need_lib_prefix=no
15316 need_version=no
15317 case $host_cpu in
15318 ia64*)
15319 shrext_cmds='.so'
15320 hardcode_into_libs=yes
15321 dynamic_linker="$host_os dld.so"
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325 soname_spec='${libname}${release}${shared_ext}$major'
15326 if test "X$HPUX_IA64_MODE" = X32; then
15327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15328 else
15329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15330 fi
15331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15332 ;;
15333 hppa*64*)
15334 shrext_cmds='.sl'
15335 hardcode_into_libs=yes
15336 dynamic_linker="$host_os dld.sl"
15337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15343 ;;
15344 *)
15345 shrext_cmds='.sl'
15346 dynamic_linker="$host_os dld.sl"
15347 shlibpath_var=SHLIB_PATH
15348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 ;;
15352 esac
15353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15354 postinstall_cmds='chmod 555 $lib'
15355 # or fails outright, so override atomically:
15356 install_override_mode=555
15357 ;;
15358
15359 interix[3-9]*)
15360 version_type=linux # correct to gnu/linux during the next big refactor
15361 need_lib_prefix=no
15362 need_version=no
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=no
15368 hardcode_into_libs=yes
15369 ;;
15370
15371 irix5* | irix6* | nonstopux*)
15372 case $host_os in
15373 nonstopux*) version_type=nonstopux ;;
15374 *)
15375 if test "$lt_cv_prog_gnu_ld" = yes; then
15376 version_type=linux # correct to gnu/linux during the next big refactor
15377 else
15378 version_type=irix
15379 fi ;;
15380 esac
15381 need_lib_prefix=no
15382 need_version=no
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15385 case $host_os in
15386 irix5* | nonstopux*)
15387 libsuff= shlibsuff=
15388 ;;
15389 *)
15390 case $LD in # libtool.m4 will add one of these switches to LD
15391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15392 libsuff= shlibsuff= libmagic=32-bit;;
15393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15394 libsuff=32 shlibsuff=N32 libmagic=N32;;
15395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15397 *) libsuff= shlibsuff= libmagic=never-match;;
15398 esac
15399 ;;
15400 esac
15401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15402 shlibpath_overrides_runpath=no
15403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15405 hardcode_into_libs=yes
15406 ;;
15407
15408 # No shared lib support for Linux oldld, aout, or coff.
15409 linux*oldld* | linux*aout* | linux*coff*)
15410 dynamic_linker=no
15411 ;;
15412
15413 # This must be glibc/ELF.
15414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15415 version_type=linux # correct to gnu/linux during the next big refactor
15416 need_lib_prefix=no
15417 need_version=no
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 shlibpath_overrides_runpath=no
15423
15424 # Some binutils ld are patched to set DT_RUNPATH
15425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15426 $as_echo_n "(cached) " >&6
15427 else
15428 lt_cv_shlibpath_overrides_runpath=no
15429 save_LDFLAGS=$LDFLAGS
15430 save_libdir=$libdir
15431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435
15436 int
15437 main ()
15438 {
15439
15440 ;
15441 return 0;
15442 }
15443 _ACEOF
15444 if ac_fn_cxx_try_link "$LINENO"; then :
15445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15446 lt_cv_shlibpath_overrides_runpath=yes
15447 fi
15448 fi
15449 rm -f core conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15451 LDFLAGS=$save_LDFLAGS
15452 libdir=$save_libdir
15453
15454 fi
15455
15456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15457
15458 # This implies no fast_install, which is unacceptable.
15459 # Some rework will be needed to allow for fast_install
15460 # before this can be enabled.
15461 hardcode_into_libs=yes
15462
15463 # Append ld.so.conf contents to the search path
15464 if test -f /etc/ld.so.conf; then
15465 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;s/"//g;/^$/d' | tr '\n' ' '`
15466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15467 fi
15468
15469 # We used to test for /lib/ld.so.1 and disable shared libraries on
15470 # powerpc, because MkLinux only supported shared libraries with the
15471 # GNU dynamic linker. Since this was broken with cross compilers,
15472 # most powerpc-linux boxes support dynamic linking these days and
15473 # people can always --disable-shared, the test was removed, and we
15474 # assume the GNU/Linux dynamic linker is in use.
15475 dynamic_linker='GNU/Linux ld.so'
15476 ;;
15477
15478 netbsd*)
15479 version_type=sunos
15480 need_lib_prefix=no
15481 need_version=no
15482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15485 dynamic_linker='NetBSD (a.out) ld.so'
15486 else
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 dynamic_linker='NetBSD ld.elf_so'
15490 fi
15491 shlibpath_var=LD_LIBRARY_PATH
15492 shlibpath_overrides_runpath=yes
15493 hardcode_into_libs=yes
15494 ;;
15495
15496 newsos6)
15497 version_type=linux # correct to gnu/linux during the next big refactor
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 shlibpath_overrides_runpath=yes
15501 ;;
15502
15503 *nto* | *qnx*)
15504 version_type=qnx
15505 need_lib_prefix=no
15506 need_version=no
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=no
15511 hardcode_into_libs=yes
15512 dynamic_linker='ldqnx.so'
15513 ;;
15514
15515 openbsd*)
15516 version_type=sunos
15517 sys_lib_dlsearch_path_spec="/usr/lib"
15518 need_lib_prefix=no
15519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15520 case $host_os in
15521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15522 *) need_version=no ;;
15523 esac
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15526 shlibpath_var=LD_LIBRARY_PATH
15527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15528 case $host_os in
15529 openbsd2.[89] | openbsd2.[89].*)
15530 shlibpath_overrides_runpath=no
15531 ;;
15532 *)
15533 shlibpath_overrides_runpath=yes
15534 ;;
15535 esac
15536 else
15537 shlibpath_overrides_runpath=yes
15538 fi
15539 ;;
15540
15541 os2*)
15542 libname_spec='$name'
15543 shrext_cmds=".dll"
15544 need_lib_prefix=no
15545 library_names_spec='$libname${shared_ext} $libname.a'
15546 dynamic_linker='OS/2 ld.exe'
15547 shlibpath_var=LIBPATH
15548 ;;
15549
15550 osf3* | osf4* | osf5*)
15551 version_type=osf
15552 need_lib_prefix=no
15553 need_version=no
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15559 ;;
15560
15561 rdos*)
15562 dynamic_linker=no
15563 ;;
15564
15565 solaris*)
15566 version_type=linux # correct to gnu/linux during the next big refactor
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15574 # ldd complains unless libraries are executable
15575 postinstall_cmds='chmod +x $lib'
15576 ;;
15577
15578 sunos4*)
15579 version_type=sunos
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15582 shlibpath_var=LD_LIBRARY_PATH
15583 shlibpath_overrides_runpath=yes
15584 if test "$with_gnu_ld" = yes; then
15585 need_lib_prefix=no
15586 fi
15587 need_version=yes
15588 ;;
15589
15590 sysv4 | sysv4.3*)
15591 version_type=linux # correct to gnu/linux during the next big refactor
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 case $host_vendor in
15596 sni)
15597 shlibpath_overrides_runpath=no
15598 need_lib_prefix=no
15599 runpath_var=LD_RUN_PATH
15600 ;;
15601 siemens)
15602 need_lib_prefix=no
15603 ;;
15604 motorola)
15605 need_lib_prefix=no
15606 need_version=no
15607 shlibpath_overrides_runpath=no
15608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15609 ;;
15610 esac
15611 ;;
15612
15613 sysv4*MP*)
15614 if test -d /usr/nec ;then
15615 version_type=linux # correct to gnu/linux during the next big refactor
15616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15617 soname_spec='$libname${shared_ext}.$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 fi
15620 ;;
15621
15622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15623 version_type=freebsd-elf
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 shlibpath_overrides_runpath=yes
15630 hardcode_into_libs=yes
15631 if test "$with_gnu_ld" = yes; then
15632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15633 else
15634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15635 case $host_os in
15636 sco3.2v5*)
15637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15638 ;;
15639 esac
15640 fi
15641 sys_lib_dlsearch_path_spec='/usr/lib'
15642 ;;
15643
15644 tpf*)
15645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15646 version_type=linux # correct to gnu/linux during the next big refactor
15647 need_lib_prefix=no
15648 need_version=no
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=no
15652 hardcode_into_libs=yes
15653 ;;
15654
15655 uts4*)
15656 version_type=linux # correct to gnu/linux during the next big refactor
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 ;;
15661
15662 *)
15663 dynamic_linker=no
15664 ;;
15665 esac
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15667 $as_echo "$dynamic_linker" >&6; }
15668 test "$dynamic_linker" = no && can_build_shared=no
15669
15670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15671 if test "$GCC" = yes; then
15672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15673 fi
15674
15675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15677 fi
15678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15680 fi
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15721 hardcode_action_CXX=
15722 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15723 test -n "$runpath_var_CXX" ||
15724 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15725
15726 # We can hardcode non-existent directories.
15727 if test "$hardcode_direct_CXX" != no &&
15728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15729 # have to relink, otherwise we might link with an installed library
15730 # when we should be linking with a yet-to-be-installed one
15731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15732 test "$hardcode_minus_L_CXX" != no; then
15733 # Linking always hardcodes the temporary library directory.
15734 hardcode_action_CXX=relink
15735 else
15736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15737 hardcode_action_CXX=immediate
15738 fi
15739 else
15740 # We cannot hardcode anything, or else we can only hardcode existing
15741 # directories.
15742 hardcode_action_CXX=unsupported
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15745 $as_echo "$hardcode_action_CXX" >&6; }
15746
15747 if test "$hardcode_action_CXX" = relink ||
15748 test "$inherit_rpath_CXX" = yes; then
15749 # Fast installation is not supported
15750 enable_fast_install=no
15751 elif test "$shlibpath_overrides_runpath" = yes ||
15752 test "$enable_shared" = no; then
15753 # Fast installation is not necessary
15754 enable_fast_install=needless
15755 fi
15756
15757
15758
15759
15760
15761
15762
15763 fi # test -n "$compiler"
15764
15765 CC=$lt_save_CC
15766 CFLAGS=$lt_save_CFLAGS
15767 LDCXX=$LD
15768 LD=$lt_save_LD
15769 GCC=$lt_save_GCC
15770 with_gnu_ld=$lt_save_with_gnu_ld
15771 lt_cv_path_LDCXX=$lt_cv_path_LD
15772 lt_cv_path_LD=$lt_save_path_LD
15773 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15774 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15775 fi # test "$_lt_caught_CXX_error" != yes
15776
15777 ac_ext=c
15778 ac_cpp='$CPP $CPPFLAGS'
15779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797 ac_config_commands="$ac_config_commands libtool"
15798
15799
15800
15801
15802 # Only expand once:
15803
15804
15805
15806 ac_ext=cpp
15807 ac_cpp='$CXXCPP $CPPFLAGS'
15808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15811
15812
15813
15814
15815
15816
15817
15818
15819 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15820 if test -n "$ac_tool_prefix"; then
15821 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15822 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15824 $as_echo_n "checking for $ac_word... " >&6; }
15825 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 case $PKG_CONFIG in
15829 [\\/]* | ?:[\\/]*)
15830 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15831 ;;
15832 *)
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15843 fi
15844 done
15845 done
15846 IFS=$as_save_IFS
15847
15848 ;;
15849 esac
15850 fi
15851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15852 if test -n "$PKG_CONFIG"; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15854 $as_echo "$PKG_CONFIG" >&6; }
15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857 $as_echo "no" >&6; }
15858 fi
15859
15860
15861 fi
15862 if test -z "$ac_cv_path_PKG_CONFIG"; then
15863 ac_pt_PKG_CONFIG=$PKG_CONFIG
15864 # Extract the first word of "pkg-config", so it can be a program name with args.
15865 set dummy pkg-config; 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 ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 case $ac_pt_PKG_CONFIG in
15872 [\\/]* | ?:[\\/]*)
15873 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15874 ;;
15875 *)
15876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877 for as_dir in $PATH
15878 do
15879 IFS=$as_save_IFS
15880 test -z "$as_dir" && as_dir=.
15881 for ac_exec_ext in '' $ac_executable_extensions; do
15882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15883 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15885 break 2
15886 fi
15887 done
15888 done
15889 IFS=$as_save_IFS
15890
15891 ;;
15892 esac
15893 fi
15894 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15895 if test -n "$ac_pt_PKG_CONFIG"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15897 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15898 else
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15901 fi
15902
15903 if test "x$ac_pt_PKG_CONFIG" = x; then
15904 PKG_CONFIG=""
15905 else
15906 case $cross_compiling:$ac_tool_warned in
15907 yes:)
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15910 ac_tool_warned=yes ;;
15911 esac
15912 PKG_CONFIG=$ac_pt_PKG_CONFIG
15913 fi
15914 else
15915 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15916 fi
15917
15918 fi
15919 if test -n "$PKG_CONFIG"; then
15920 _pkg_min_version=0.22
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15922 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15923 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15925 $as_echo "yes" >&6; }
15926 else
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15929 PKG_CONFIG=""
15930 fi
15931 fi
15932
15933 # Extract the first word of "git", so it can be a program name with args.
15934 set dummy git; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15936 $as_echo_n "checking for $ac_word... " >&6; }
15937 if ${ac_cv_path_GIT+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 case $GIT in
15941 [\\/]* | ?:[\\/]*)
15942 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15943 ;;
15944 *)
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15947 do
15948 IFS=$as_save_IFS
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954 break 2
15955 fi
15956 done
15957 done
15958 IFS=$as_save_IFS
15959
15960 ;;
15961 esac
15962 fi
15963 GIT=$ac_cv_path_GIT
15964 if test -n "$GIT"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
15966 $as_echo "$GIT" >&6; }
15967 else
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15970 fi
15971
15972
15973 # Extract the first word of "time", so it can be a program name with args.
15974 set dummy time; ac_word=$2
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15976 $as_echo_n "checking for $ac_word... " >&6; }
15977 if ${ac_cv_path_TIME+:} false; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 case $TIME in
15981 [\\/]* | ?:[\\/]*)
15982 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
15983 ;;
15984 *)
15985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15986 for as_dir in $PATH
15987 do
15988 IFS=$as_save_IFS
15989 test -z "$as_dir" && as_dir=.
15990 for ac_exec_ext in '' $ac_executable_extensions; do
15991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15992 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
15993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15994 break 2
15995 fi
15996 done
15997 done
15998 IFS=$as_save_IFS
15999
16000 ;;
16001 esac
16002 fi
16003 TIME=$ac_cv_path_TIME
16004 if test -n "$TIME"; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16006 $as_echo "$TIME" >&6; }
16007 else
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009 $as_echo "no" >&6; }
16010 fi
16011
16012
16013
16014
16015
16016
16017
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16019 $as_echo_n "checking for bison >= 2.3... " >&6; }
16020 if test -z "$BISON"; then
16021 ac_path_BISON_found=false
16022 # Loop through the user's path and test for each of PROGNAME-LIST
16023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16024 for as_dir in $PATH
16025 do
16026 IFS=$as_save_IFS
16027 test -z "$as_dir" && as_dir=.
16028 for ac_prog in bison; do
16029 for ac_exec_ext in '' $ac_executable_extensions; do
16030 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16031 as_fn_executable_p "$ac_path_BISON" || continue
16032 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16033 if ${version:+false} :; then :
16034
16035 else
16036 as_awk_strverscmp='
16037 # Use only awk features that work with 7th edition Unix awk (1978).
16038 # My, what an old awk you have, Mr. Solaris!
16039 END {
16040 while (length(v1) && length(v2)) {
16041 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16042 # Normally this is a single character, but if v1 and v2 contain digits,
16043 # compare them as integers and fractions as strverscmp does.
16044 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16045 # Split v1 and v2 into their leading digit string components d1 and d2,
16046 # and advance v1 and v2 past the leading digit strings.
16047 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16048 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16049 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16050 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16051 if (d1 ~ /^0/) {
16052 if (d2 ~ /^0/) {
16053 # Compare two fractions.
16054 while (d1 ~ /^0/ && d2 ~ /^0/) {
16055 d1 = substr(d1, 2); len1--
16056 d2 = substr(d2, 2); len2--
16057 }
16058 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16059 # The two components differ in length, and the common prefix
16060 # contains only leading zeros. Consider the longer to be less.
16061 d1 = -len1
16062 d2 = -len2
16063 } else {
16064 # Otherwise, compare as strings.
16065 d1 = "x" d1
16066 d2 = "x" d2
16067 }
16068 } else {
16069 # A fraction is less than an integer.
16070 exit 1
16071 }
16072 } else {
16073 if (d2 ~ /^0/) {
16074 # An integer is greater than a fraction.
16075 exit 2
16076 } else {
16077 # Compare two integers.
16078 d1 += 0
16079 d2 += 0
16080 }
16081 }
16082 } else {
16083 # The normal case, without worrying about digits.
16084 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16085 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16086 }
16087 if (d1 < d2) exit 1
16088 if (d1 > d2) exit 2
16089 }
16090 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16091 # which mishandles some comparisons of empty strings to integers.
16092 if (length(v2)) exit 1
16093 if (length(v1)) exit 2
16094 }
16095 '
16096 as_arg_v1=$version
16097 as_arg_v2=2.3
16098 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16099 case $? in #(
16100 1) :
16101 ;; #(
16102 0) :
16103 ac_cv_path_BISON=$ac_path_BISON ;; #(
16104 2) :
16105 ac_cv_path_BISON=$ac_path_BISON ;; #(
16106 *) :
16107 ;;
16108 esac
16109 fi
16110
16111 $ac_path_BISON_found && break 3
16112 done
16113 done
16114 done
16115 IFS=$as_save_IFS
16116 if test -z "$ac_cv_path_BISON"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16119 fi
16120 else
16121 ac_cv_path_BISON=$BISON
16122 fi
16123
16124
16125 if true; then :
16126
16127 BISON=$ac_cv_path_BISON
16128
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16130 $as_echo "$BISON" >&6; }
16131
16132 else
16133 if true; then :
16134
16135 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16136
16137 else
16138
16139 BISON=:
16140
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 $as_echo "no" >&6; }
16143
16144 fi
16145 fi
16146
16147
16148
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16151 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16152 if test -z "$FLEX"; then
16153 ac_path_FLEX_found=false
16154 # Loop through the user's path and test for each of PROGNAME-LIST
16155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16156 for as_dir in $PATH
16157 do
16158 IFS=$as_save_IFS
16159 test -z "$as_dir" && as_dir=.
16160 for ac_prog in flex; do
16161 for ac_exec_ext in '' $ac_executable_extensions; do
16162 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16163 as_fn_executable_p "$ac_path_FLEX" || continue
16164 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16165 if ${version:+false} :; then :
16166
16167 else
16168 as_arg_v1=$version
16169 as_arg_v2=2.5.33
16170 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16171 case $? in #(
16172 1) :
16173 ;; #(
16174 0) :
16175 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16176 2) :
16177 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16178 *) :
16179 ;;
16180 esac
16181 fi
16182
16183 $ac_path_FLEX_found && break 3
16184 done
16185 done
16186 done
16187 IFS=$as_save_IFS
16188 if test -z "$ac_cv_path_FLEX"; then
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16191 fi
16192 else
16193 ac_cv_path_FLEX=$FLEX
16194 fi
16195
16196
16197 if true; then :
16198
16199 FLEX=$ac_cv_path_FLEX
16200
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16202 $as_echo "$FLEX" >&6; }
16203
16204 else
16205 if true; then :
16206
16207 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16208
16209 else
16210
16211 FLEX=:
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16215
16216 fi
16217 fi
16218
16219
16220
16221
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16223 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16224 if test -z "$GPERF"; then
16225 ac_path_GPERF_found=false
16226 # Loop through the user's path and test for each of PROGNAME-LIST
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16229 do
16230 IFS=$as_save_IFS
16231 test -z "$as_dir" && as_dir=.
16232 for ac_prog in gperf; do
16233 for ac_exec_ext in '' $ac_executable_extensions; do
16234 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16235 as_fn_executable_p "$ac_path_GPERF" || continue
16236 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16237 if ${version:+false} :; then :
16238
16239 else
16240 as_arg_v1=$version
16241 as_arg_v2=3.0.3
16242 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16243 case $? in #(
16244 1) :
16245 ;; #(
16246 0) :
16247 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16248 2) :
16249 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16250 *) :
16251 ;;
16252 esac
16253 fi
16254
16255 $ac_path_GPERF_found && break 3
16256 done
16257 done
16258 done
16259 IFS=$as_save_IFS
16260 if test -z "$ac_cv_path_GPERF"; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262 $as_echo "no" >&6; }
16263 fi
16264 else
16265 ac_cv_path_GPERF=$GPERF
16266 fi
16267
16268
16269 if true; then :
16270
16271 GPERF=$ac_cv_path_GPERF
16272
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16274 $as_echo "$GPERF" >&6; }
16275
16276 else
16277 if true; then :
16278
16279 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16280
16281 else
16282
16283 GPERF=:
16284
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16287
16288 fi
16289 fi
16290
16291
16292
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16295 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16296 if test -z "$GNUTAR"; then
16297 ac_path_GNUTAR_found=false
16298 # Loop through the user's path and test for each of PROGNAME-LIST
16299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300 for as_dir in $PATH
16301 do
16302 IFS=$as_save_IFS
16303 test -z "$as_dir" && as_dir=.
16304 for ac_prog in tar gtar gnutar; do
16305 for ac_exec_ext in '' $ac_executable_extensions; do
16306 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16307 as_fn_executable_p "$ac_path_GNUTAR" || continue
16308 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16309 if ${version:+false} :; then :
16310
16311 else
16312 as_arg_v1=$version
16313 as_arg_v2=1.19
16314 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16315 case $? in #(
16316 1) :
16317 ;; #(
16318 0) :
16319 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16320 2) :
16321 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16322 *) :
16323 ;;
16324 esac
16325 fi
16326
16327 $ac_path_GNUTAR_found && break 3
16328 done
16329 done
16330 done
16331 IFS=$as_save_IFS
16332 if test -z "$ac_cv_path_GNUTAR"; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16335 fi
16336 else
16337 ac_cv_path_GNUTAR=$GNUTAR
16338 fi
16339
16340
16341 if true; then :
16342
16343 GNUTAR=$ac_cv_path_GNUTAR
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16346 $as_echo "$GNUTAR" >&6; }
16347
16348 else
16349 if true; then :
16350
16351 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16352
16353 else
16354
16355 GNUTAR=:
16356
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358 $as_echo "no" >&6; }
16359
16360 fi
16361 fi
16362
16363
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16365 $as_echo_n "checking bison for %code{}... " >&6; }
16366 echo '%code{}%%_:' >conftest.y
16367 if $BISON conftest.y -o/dev/null 2>/dev/null; then
16368
16369 for element in Bison24; do
16370 haveit=
16371 for x in $CY_FILTERS; do
16372
16373 acl_save_prefix="$prefix"
16374 prefix="$acl_final_prefix"
16375 acl_save_exec_prefix="$exec_prefix"
16376 exec_prefix="$acl_final_exec_prefix"
16377 eval x=\"$x\"
16378 exec_prefix="$acl_save_exec_prefix"
16379 prefix="$acl_save_prefix"
16380
16381 if test "X$x" = "X$element"; then
16382 haveit=yes
16383 break
16384 fi
16385 done
16386 if test -z "$haveit"; then
16387 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16388 fi
16389 done
16390
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16392 $as_echo "yes" >&6; }
16393 else
16394
16395 for element in Bison23; do
16396 haveit=
16397 for x in $CY_FILTERS; do
16398
16399 acl_save_prefix="$prefix"
16400 prefix="$acl_final_prefix"
16401 acl_save_exec_prefix="$exec_prefix"
16402 exec_prefix="$acl_final_exec_prefix"
16403 eval x=\"$x\"
16404 exec_prefix="$acl_save_exec_prefix"
16405 prefix="$acl_save_prefix"
16406
16407 if test "X$x" = "X$element"; then
16408 haveit=yes
16409 break
16410 fi
16411 done
16412 if test -z "$haveit"; then
16413 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16414 fi
16415 done
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418 $as_echo "no" >&6; }
16419 fi
16420
16421 rm -f conftest.y
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432 if ${CFLAGS+:} false; then :
16433 case " $CFLAGS " in
16434 *" "*)
16435 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16436 (: CFLAGS already contains ) 2>&5
16437 ac_status=$?
16438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439 test $ac_status = 0; }
16440 ;;
16441 *)
16442 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16443 (: CFLAGS="$CFLAGS ") 2>&5
16444 ac_status=$?
16445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16446 test $ac_status = 0; }
16447 CFLAGS="$CFLAGS "
16448 ;;
16449 esac
16450 else
16451 CFLAGS=""
16452 fi
16453
16454 ac_ext=c
16455 ac_cpp='$CPP $CPPFLAGS'
16456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16459
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16461 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16462 if ${ac_cv_cflags_warn_all+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 ac_cv_cflags_warn_all="no, unknown"
16466 ac_save_CFLAGS="$CFLAGS"
16467 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16468 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471
16472 int
16473 main ()
16474 {
16475
16476 ;
16477 return 0;
16478 }
16479 _ACEOF
16480 if ac_fn_c_try_compile "$LINENO"; then :
16481 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484 done
16485 CFLAGS="$ac_save_CFLAGS"
16486
16487 fi
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16489 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16490
16491 case ".$ac_cv_cflags_warn_all" in
16492 .ok|.ok,*) ;;
16493 .|.no|.no,*) ;;
16494 *) if ${CFLAGS+:} false; then :
16495 case " $CFLAGS " in
16496 *" $ac_cv_cflags_warn_all "*)
16497 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16498 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16499 ac_status=$?
16500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16501 test $ac_status = 0; }
16502 ;;
16503 *)
16504 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16505 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16506 ac_status=$?
16507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16508 test $ac_status = 0; }
16509 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16510 ;;
16511 esac
16512 else
16513 CFLAGS="$ac_cv_cflags_warn_all"
16514 fi
16515 ;;
16516 esac
16517
16518 ac_ext=cpp
16519 ac_cpp='$CXXCPP $CPPFLAGS'
16520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16523
16524
16525 ac_ext=cpp
16526 ac_cpp='$CXXCPP $CPPFLAGS'
16527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16530
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16532 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16533 if ${ac_cv_cxxflags_warn_all+:} false; then :
16534 $as_echo_n "(cached) " >&6
16535 else
16536 ac_cv_cxxflags_warn_all="no, unknown"
16537 ac_save_CXXFLAGS="$CXXFLAGS"
16538 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16539 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542
16543 int
16544 main ()
16545 {
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_cxx_try_compile "$LINENO"; then :
16552 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 done
16556 CXXFLAGS="$ac_save_CXXFLAGS"
16557
16558 fi
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16560 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16561
16562 case ".$ac_cv_cxxflags_warn_all" in
16563 .ok|.ok,*) ;;
16564 .|.no|.no,*) ;;
16565 *) if ${CXXFLAGS+:} false; then :
16566 case " $CXXFLAGS " in
16567 *" $ac_cv_cxxflags_warn_all "*)
16568 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16569 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16570 ac_status=$?
16571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16572 test $ac_status = 0; }
16573 ;;
16574 *)
16575 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16576 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16577 ac_status=$?
16578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16579 test $ac_status = 0; }
16580 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16581 ;;
16582 esac
16583 else
16584 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16585 fi
16586 ;;
16587 esac
16588
16589 ac_ext=cpp
16590 ac_cpp='$CXXCPP $CPPFLAGS'
16591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16594
16595
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16597 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16598 if ${ac_cv_cxxflags_warn_all+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601 ac_cv_cxxflags_warn_all="no, unknown"
16602 ac_save_CXXFLAGS="$CXXFLAGS"
16603 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16604 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607
16608 int
16609 main ()
16610 {
16611
16612 ;
16613 return 0;
16614 }
16615 _ACEOF
16616 if ac_fn_cxx_try_compile "$LINENO"; then :
16617 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 done
16621 CXXFLAGS="$ac_save_CXXFLAGS"
16622
16623 fi
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16625 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16626
16627 case ".$ac_cv_cxxflags_warn_all" in
16628 .ok|.ok,*) ;;
16629 .|.no|.no,*) ;;
16630 *) if ${CXXFLAGS+:} false; then :
16631 case " $CXXFLAGS " in
16632 *" $ac_cv_cxxflags_warn_all "*)
16633 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16634 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16635 ac_status=$?
16636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16637 test $ac_status = 0; }
16638 ;;
16639 *)
16640 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16641 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16642 ac_status=$?
16643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16644 test $ac_status = 0; }
16645 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16646 ;;
16647 esac
16648 else
16649 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16650 fi
16651 ;;
16652 esac
16653
16654
16655
16656
16657
16658 ac_ext=c
16659 ac_cpp='$CPP $CPPFLAGS'
16660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16663
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16665 $as_echo_n "checking for cc -Werror... " >&6; }
16666
16667 cy_save=$CFLAGS
16668
16669 for element in -Werror; do
16670 haveit=
16671 for x in $CFLAGS; do
16672
16673 acl_save_prefix="$prefix"
16674 prefix="$acl_final_prefix"
16675 acl_save_exec_prefix="$exec_prefix"
16676 exec_prefix="$acl_final_exec_prefix"
16677 eval x=\"$x\"
16678 exec_prefix="$acl_save_exec_prefix"
16679 prefix="$acl_save_prefix"
16680
16681 if test "X$x" = "X$element"; then
16682 haveit=yes
16683 break
16684 fi
16685 done
16686 if test -z "$haveit"; then
16687 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16688 fi
16689 done
16690
16691
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694
16695 _ACEOF
16696 if ac_fn_c_try_compile "$LINENO"; then :
16697 cy_good=1
16698 else
16699 cy_good=0
16700 fi
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702
16703 CFLAGS=$cy_save
16704 if test "x$cy_good" = x1; then :
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16706 $as_echo "yes" >&6; }
16707
16708 for element in -Werror; do
16709 haveit=
16710 for x in $CFLAGS; do
16711
16712 acl_save_prefix="$prefix"
16713 prefix="$acl_final_prefix"
16714 acl_save_exec_prefix="$exec_prefix"
16715 exec_prefix="$acl_final_exec_prefix"
16716 eval x=\"$x\"
16717 exec_prefix="$acl_save_exec_prefix"
16718 prefix="$acl_save_prefix"
16719
16720 if test "X$x" = "X$element"; then
16721 haveit=yes
16722 break
16723 fi
16724 done
16725 if test -z "$haveit"; then
16726 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16727 fi
16728 done
16729
16730
16731 else
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733 $as_echo "no" >&6; }
16734 fi
16735
16736 ac_ext=cpp
16737 ac_cpp='$CXXCPP $CPPFLAGS'
16738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16741
16742
16743
16744 ac_ext=cpp
16745 ac_cpp='$CXXCPP $CPPFLAGS'
16746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16751 $as_echo_n "checking for c++ -Werror... " >&6; }
16752
16753 cy_save=$CXXFLAGS
16754
16755 for element in -Werror; do
16756 haveit=
16757 for x in $CXXFLAGS; do
16758
16759 acl_save_prefix="$prefix"
16760 prefix="$acl_final_prefix"
16761 acl_save_exec_prefix="$exec_prefix"
16762 exec_prefix="$acl_final_exec_prefix"
16763 eval x=\"$x\"
16764 exec_prefix="$acl_save_exec_prefix"
16765 prefix="$acl_save_prefix"
16766
16767 if test "X$x" = "X$element"; then
16768 haveit=yes
16769 break
16770 fi
16771 done
16772 if test -z "$haveit"; then
16773 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16774 fi
16775 done
16776
16777
16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16780
16781 _ACEOF
16782 if ac_fn_cxx_try_compile "$LINENO"; then :
16783 cy_good=1
16784 else
16785 cy_good=0
16786 fi
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788
16789 CXXFLAGS=$cy_save
16790 if test "x$cy_good" = x1; then :
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792 $as_echo "yes" >&6; }
16793
16794 for element in -Werror; do
16795 haveit=
16796 for x in $CXXFLAGS; do
16797
16798 acl_save_prefix="$prefix"
16799 prefix="$acl_final_prefix"
16800 acl_save_exec_prefix="$exec_prefix"
16801 exec_prefix="$acl_final_exec_prefix"
16802 eval x=\"$x\"
16803 exec_prefix="$acl_save_exec_prefix"
16804 prefix="$acl_save_prefix"
16805
16806 if test "X$x" = "X$element"; then
16807 haveit=yes
16808 break
16809 fi
16810 done
16811 if test -z "$haveit"; then
16812 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16813 fi
16814 done
16815
16816
16817 else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819 $as_echo "no" >&6; }
16820 fi
16821
16822 ac_ext=cpp
16823 ac_cpp='$CXXCPP $CPPFLAGS'
16824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16827
16828
16829
16830 ac_ext=mm
16831 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16832 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16833 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16834 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16837 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
16838
16839 cy_save=$OBJCXXFLAGS
16840
16841 for element in -Werror; do
16842 haveit=
16843 for x in $OBJCXXFLAGS; do
16844
16845 acl_save_prefix="$prefix"
16846 prefix="$acl_final_prefix"
16847 acl_save_exec_prefix="$exec_prefix"
16848 exec_prefix="$acl_final_exec_prefix"
16849 eval x=\"$x\"
16850 exec_prefix="$acl_save_exec_prefix"
16851 prefix="$acl_save_prefix"
16852
16853 if test "X$x" = "X$element"; then
16854 haveit=yes
16855 break
16856 fi
16857 done
16858 if test -z "$haveit"; then
16859 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16860 fi
16861 done
16862
16863
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866
16867 _ACEOF
16868 if ac_fn_objcxx_try_compile "$LINENO"; then :
16869 cy_good=1
16870 else
16871 cy_good=0
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874
16875 OBJCXXFLAGS=$cy_save
16876 if test "x$cy_good" = x1; then :
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16878 $as_echo "yes" >&6; }
16879
16880 for element in -Werror; do
16881 haveit=
16882 for x in $OBJCXXFLAGS; do
16883
16884 acl_save_prefix="$prefix"
16885 prefix="$acl_final_prefix"
16886 acl_save_exec_prefix="$exec_prefix"
16887 exec_prefix="$acl_final_exec_prefix"
16888 eval x=\"$x\"
16889 exec_prefix="$acl_save_exec_prefix"
16890 prefix="$acl_save_prefix"
16891
16892 if test "X$x" = "X$element"; then
16893 haveit=yes
16894 break
16895 fi
16896 done
16897 if test -z "$haveit"; then
16898 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16899 fi
16900 done
16901
16902
16903 else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 $as_echo "no" >&6; }
16906 fi
16907
16908 ac_ext=cpp
16909 ac_cpp='$CXXCPP $CPPFLAGS'
16910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16913
16914
16915
16916
16917
16918
16919 ac_ext=c
16920 ac_cpp='$CPP $CPPFLAGS'
16921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16924
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
16926 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
16927
16928 cy_save=$CFLAGS
16929
16930 for element in -Wno-deprecated-declarations; do
16931 haveit=
16932 for x in $CFLAGS; do
16933
16934 acl_save_prefix="$prefix"
16935 prefix="$acl_final_prefix"
16936 acl_save_exec_prefix="$exec_prefix"
16937 exec_prefix="$acl_final_exec_prefix"
16938 eval x=\"$x\"
16939 exec_prefix="$acl_save_exec_prefix"
16940 prefix="$acl_save_prefix"
16941
16942 if test "X$x" = "X$element"; then
16943 haveit=yes
16944 break
16945 fi
16946 done
16947 if test -z "$haveit"; then
16948 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16949 fi
16950 done
16951
16952
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955
16956 _ACEOF
16957 if ac_fn_c_try_compile "$LINENO"; then :
16958 cy_good=1
16959 else
16960 cy_good=0
16961 fi
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16963
16964 CFLAGS=$cy_save
16965 if test "x$cy_good" = x1; then :
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16967 $as_echo "yes" >&6; }
16968
16969 for element in -Wno-deprecated-declarations; do
16970 haveit=
16971 for x in $CFLAGS; do
16972
16973 acl_save_prefix="$prefix"
16974 prefix="$acl_final_prefix"
16975 acl_save_exec_prefix="$exec_prefix"
16976 exec_prefix="$acl_final_exec_prefix"
16977 eval x=\"$x\"
16978 exec_prefix="$acl_save_exec_prefix"
16979 prefix="$acl_save_prefix"
16980
16981 if test "X$x" = "X$element"; then
16982 haveit=yes
16983 break
16984 fi
16985 done
16986 if test -z "$haveit"; then
16987 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16988 fi
16989 done
16990
16991
16992 else
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16995 fi
16996
16997 ac_ext=cpp
16998 ac_cpp='$CXXCPP $CPPFLAGS'
16999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17002
17003
17004
17005 ac_ext=cpp
17006 ac_cpp='$CXXCPP $CPPFLAGS'
17007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17010
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17012 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17013
17014 cy_save=$CXXFLAGS
17015
17016 for element in -Wno-deprecated-declarations; do
17017 haveit=
17018 for x in $CXXFLAGS; do
17019
17020 acl_save_prefix="$prefix"
17021 prefix="$acl_final_prefix"
17022 acl_save_exec_prefix="$exec_prefix"
17023 exec_prefix="$acl_final_exec_prefix"
17024 eval x=\"$x\"
17025 exec_prefix="$acl_save_exec_prefix"
17026 prefix="$acl_save_prefix"
17027
17028 if test "X$x" = "X$element"; then
17029 haveit=yes
17030 break
17031 fi
17032 done
17033 if test -z "$haveit"; then
17034 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17035 fi
17036 done
17037
17038
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041
17042 _ACEOF
17043 if ac_fn_cxx_try_compile "$LINENO"; then :
17044 cy_good=1
17045 else
17046 cy_good=0
17047 fi
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049
17050 CXXFLAGS=$cy_save
17051 if test "x$cy_good" = x1; then :
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17053 $as_echo "yes" >&6; }
17054
17055 for element in -Wno-deprecated-declarations; do
17056 haveit=
17057 for x in $CXXFLAGS; do
17058
17059 acl_save_prefix="$prefix"
17060 prefix="$acl_final_prefix"
17061 acl_save_exec_prefix="$exec_prefix"
17062 exec_prefix="$acl_final_exec_prefix"
17063 eval x=\"$x\"
17064 exec_prefix="$acl_save_exec_prefix"
17065 prefix="$acl_save_prefix"
17066
17067 if test "X$x" = "X$element"; then
17068 haveit=yes
17069 break
17070 fi
17071 done
17072 if test -z "$haveit"; then
17073 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17074 fi
17075 done
17076
17077
17078 else
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17081 fi
17082
17083 ac_ext=cpp
17084 ac_cpp='$CXXCPP $CPPFLAGS'
17085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17088
17089
17090
17091 ac_ext=mm
17092 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17093 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17094 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17095 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17096
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17098 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17099
17100 cy_save=$OBJCXXFLAGS
17101
17102 for element in -Wno-deprecated-declarations; do
17103 haveit=
17104 for x in $OBJCXXFLAGS; do
17105
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17110 eval x=\"$x\"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17113
17114 if test "X$x" = "X$element"; then
17115 haveit=yes
17116 break
17117 fi
17118 done
17119 if test -z "$haveit"; then
17120 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17121 fi
17122 done
17123
17124
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127
17128 _ACEOF
17129 if ac_fn_objcxx_try_compile "$LINENO"; then :
17130 cy_good=1
17131 else
17132 cy_good=0
17133 fi
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135
17136 OBJCXXFLAGS=$cy_save
17137 if test "x$cy_good" = x1; then :
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17139 $as_echo "yes" >&6; }
17140
17141 for element in -Wno-deprecated-declarations; do
17142 haveit=
17143 for x in $OBJCXXFLAGS; do
17144
17145 acl_save_prefix="$prefix"
17146 prefix="$acl_final_prefix"
17147 acl_save_exec_prefix="$exec_prefix"
17148 exec_prefix="$acl_final_exec_prefix"
17149 eval x=\"$x\"
17150 exec_prefix="$acl_save_exec_prefix"
17151 prefix="$acl_save_prefix"
17152
17153 if test "X$x" = "X$element"; then
17154 haveit=yes
17155 break
17156 fi
17157 done
17158 if test -z "$haveit"; then
17159 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17160 fi
17161 done
17162
17163
17164 else
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166 $as_echo "no" >&6; }
17167 fi
17168
17169 ac_ext=cpp
17170 ac_cpp='$CXXCPP $CPPFLAGS'
17171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17174
17175
17176
17177
17178
17179
17180 ac_ext=c
17181 ac_cpp='$CPP $CPPFLAGS'
17182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17185
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17187 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17188
17189 cy_save=$CFLAGS
17190
17191 for element in -Wno-dangling-else; do
17192 haveit=
17193 for x in $CFLAGS; do
17194
17195 acl_save_prefix="$prefix"
17196 prefix="$acl_final_prefix"
17197 acl_save_exec_prefix="$exec_prefix"
17198 exec_prefix="$acl_final_exec_prefix"
17199 eval x=\"$x\"
17200 exec_prefix="$acl_save_exec_prefix"
17201 prefix="$acl_save_prefix"
17202
17203 if test "X$x" = "X$element"; then
17204 haveit=yes
17205 break
17206 fi
17207 done
17208 if test -z "$haveit"; then
17209 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17210 fi
17211 done
17212
17213
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17216
17217 _ACEOF
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219 cy_good=1
17220 else
17221 cy_good=0
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224
17225 CFLAGS=$cy_save
17226 if test "x$cy_good" = x1; then :
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17228 $as_echo "yes" >&6; }
17229
17230 for element in -Wno-dangling-else; do
17231 haveit=
17232 for x in $CFLAGS; do
17233
17234 acl_save_prefix="$prefix"
17235 prefix="$acl_final_prefix"
17236 acl_save_exec_prefix="$exec_prefix"
17237 exec_prefix="$acl_final_exec_prefix"
17238 eval x=\"$x\"
17239 exec_prefix="$acl_save_exec_prefix"
17240 prefix="$acl_save_prefix"
17241
17242 if test "X$x" = "X$element"; then
17243 haveit=yes
17244 break
17245 fi
17246 done
17247 if test -z "$haveit"; then
17248 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17249 fi
17250 done
17251
17252
17253 else
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17255 $as_echo "no" >&6; }
17256 fi
17257
17258 ac_ext=cpp
17259 ac_cpp='$CXXCPP $CPPFLAGS'
17260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17263
17264
17265
17266 ac_ext=cpp
17267 ac_cpp='$CXXCPP $CPPFLAGS'
17268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17271
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17273 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
17274
17275 cy_save=$CXXFLAGS
17276
17277 for element in -Wno-dangling-else; do
17278 haveit=
17279 for x in $CXXFLAGS; do
17280
17281 acl_save_prefix="$prefix"
17282 prefix="$acl_final_prefix"
17283 acl_save_exec_prefix="$exec_prefix"
17284 exec_prefix="$acl_final_exec_prefix"
17285 eval x=\"$x\"
17286 exec_prefix="$acl_save_exec_prefix"
17287 prefix="$acl_save_prefix"
17288
17289 if test "X$x" = "X$element"; then
17290 haveit=yes
17291 break
17292 fi
17293 done
17294 if test -z "$haveit"; then
17295 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17296 fi
17297 done
17298
17299
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302
17303 _ACEOF
17304 if ac_fn_cxx_try_compile "$LINENO"; then :
17305 cy_good=1
17306 else
17307 cy_good=0
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310
17311 CXXFLAGS=$cy_save
17312 if test "x$cy_good" = x1; then :
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17314 $as_echo "yes" >&6; }
17315
17316 for element in -Wno-dangling-else; do
17317 haveit=
17318 for x in $CXXFLAGS; do
17319
17320 acl_save_prefix="$prefix"
17321 prefix="$acl_final_prefix"
17322 acl_save_exec_prefix="$exec_prefix"
17323 exec_prefix="$acl_final_exec_prefix"
17324 eval x=\"$x\"
17325 exec_prefix="$acl_save_exec_prefix"
17326 prefix="$acl_save_prefix"
17327
17328 if test "X$x" = "X$element"; then
17329 haveit=yes
17330 break
17331 fi
17332 done
17333 if test -z "$haveit"; then
17334 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17335 fi
17336 done
17337
17338
17339 else
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17341 $as_echo "no" >&6; }
17342 fi
17343
17344 ac_ext=cpp
17345 ac_cpp='$CXXCPP $CPPFLAGS'
17346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17349
17350
17351
17352 ac_ext=mm
17353 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17354 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17357
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17359 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17360
17361 cy_save=$OBJCXXFLAGS
17362
17363 for element in -Wno-dangling-else; do
17364 haveit=
17365 for x in $OBJCXXFLAGS; do
17366
17367 acl_save_prefix="$prefix"
17368 prefix="$acl_final_prefix"
17369 acl_save_exec_prefix="$exec_prefix"
17370 exec_prefix="$acl_final_exec_prefix"
17371 eval x=\"$x\"
17372 exec_prefix="$acl_save_exec_prefix"
17373 prefix="$acl_save_prefix"
17374
17375 if test "X$x" = "X$element"; then
17376 haveit=yes
17377 break
17378 fi
17379 done
17380 if test -z "$haveit"; then
17381 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17382 fi
17383 done
17384
17385
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388
17389 _ACEOF
17390 if ac_fn_objcxx_try_compile "$LINENO"; then :
17391 cy_good=1
17392 else
17393 cy_good=0
17394 fi
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396
17397 OBJCXXFLAGS=$cy_save
17398 if test "x$cy_good" = x1; then :
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17400 $as_echo "yes" >&6; }
17401
17402 for element in -Wno-dangling-else; do
17403 haveit=
17404 for x in $OBJCXXFLAGS; do
17405
17406 acl_save_prefix="$prefix"
17407 prefix="$acl_final_prefix"
17408 acl_save_exec_prefix="$exec_prefix"
17409 exec_prefix="$acl_final_exec_prefix"
17410 eval x=\"$x\"
17411 exec_prefix="$acl_save_exec_prefix"
17412 prefix="$acl_save_prefix"
17413
17414 if test "X$x" = "X$element"; then
17415 haveit=yes
17416 break
17417 fi
17418 done
17419 if test -z "$haveit"; then
17420 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17421 fi
17422 done
17423
17424
17425 else
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17428 fi
17429
17430 ac_ext=cpp
17431 ac_cpp='$CXXCPP $CPPFLAGS'
17432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17435
17436
17437
17438
17439
17440 ac_ext=c
17441 ac_cpp='$CPP $CPPFLAGS'
17442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17445
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17447 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17448
17449 cy_save=$CFLAGS
17450
17451 for element in -Wno-overloaded-virtual; do
17452 haveit=
17453 for x in $CFLAGS; do
17454
17455 acl_save_prefix="$prefix"
17456 prefix="$acl_final_prefix"
17457 acl_save_exec_prefix="$exec_prefix"
17458 exec_prefix="$acl_final_exec_prefix"
17459 eval x=\"$x\"
17460 exec_prefix="$acl_save_exec_prefix"
17461 prefix="$acl_save_prefix"
17462
17463 if test "X$x" = "X$element"; then
17464 haveit=yes
17465 break
17466 fi
17467 done
17468 if test -z "$haveit"; then
17469 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17470 fi
17471 done
17472
17473
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476
17477 _ACEOF
17478 if ac_fn_c_try_compile "$LINENO"; then :
17479 cy_good=1
17480 else
17481 cy_good=0
17482 fi
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484
17485 CFLAGS=$cy_save
17486 if test "x$cy_good" = x1; then :
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17488 $as_echo "yes" >&6; }
17489
17490 for element in -Wno-overloaded-virtual; do
17491 haveit=
17492 for x in $CFLAGS; do
17493
17494 acl_save_prefix="$prefix"
17495 prefix="$acl_final_prefix"
17496 acl_save_exec_prefix="$exec_prefix"
17497 exec_prefix="$acl_final_exec_prefix"
17498 eval x=\"$x\"
17499 exec_prefix="$acl_save_exec_prefix"
17500 prefix="$acl_save_prefix"
17501
17502 if test "X$x" = "X$element"; then
17503 haveit=yes
17504 break
17505 fi
17506 done
17507 if test -z "$haveit"; then
17508 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17509 fi
17510 done
17511
17512
17513 else
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17515 $as_echo "no" >&6; }
17516 fi
17517
17518 ac_ext=cpp
17519 ac_cpp='$CXXCPP $CPPFLAGS'
17520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17523
17524
17525
17526 ac_ext=cpp
17527 ac_cpp='$CXXCPP $CPPFLAGS'
17528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17531
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17533 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17534
17535 cy_save=$CXXFLAGS
17536
17537 for element in -Wno-overloaded-virtual; do
17538 haveit=
17539 for x in $CXXFLAGS; do
17540
17541 acl_save_prefix="$prefix"
17542 prefix="$acl_final_prefix"
17543 acl_save_exec_prefix="$exec_prefix"
17544 exec_prefix="$acl_final_exec_prefix"
17545 eval x=\"$x\"
17546 exec_prefix="$acl_save_exec_prefix"
17547 prefix="$acl_save_prefix"
17548
17549 if test "X$x" = "X$element"; then
17550 haveit=yes
17551 break
17552 fi
17553 done
17554 if test -z "$haveit"; then
17555 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17556 fi
17557 done
17558
17559
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562
17563 _ACEOF
17564 if ac_fn_cxx_try_compile "$LINENO"; then :
17565 cy_good=1
17566 else
17567 cy_good=0
17568 fi
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570
17571 CXXFLAGS=$cy_save
17572 if test "x$cy_good" = x1; then :
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17574 $as_echo "yes" >&6; }
17575
17576 for element in -Wno-overloaded-virtual; do
17577 haveit=
17578 for x in $CXXFLAGS; do
17579
17580 acl_save_prefix="$prefix"
17581 prefix="$acl_final_prefix"
17582 acl_save_exec_prefix="$exec_prefix"
17583 exec_prefix="$acl_final_exec_prefix"
17584 eval x=\"$x\"
17585 exec_prefix="$acl_save_exec_prefix"
17586 prefix="$acl_save_prefix"
17587
17588 if test "X$x" = "X$element"; then
17589 haveit=yes
17590 break
17591 fi
17592 done
17593 if test -z "$haveit"; then
17594 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17595 fi
17596 done
17597
17598
17599 else
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17602 fi
17603
17604 ac_ext=cpp
17605 ac_cpp='$CXXCPP $CPPFLAGS'
17606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17609
17610
17611
17612 ac_ext=mm
17613 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17614 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17619 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17620
17621 cy_save=$OBJCXXFLAGS
17622
17623 for element in -Wno-overloaded-virtual; do
17624 haveit=
17625 for x in $OBJCXXFLAGS; do
17626
17627 acl_save_prefix="$prefix"
17628 prefix="$acl_final_prefix"
17629 acl_save_exec_prefix="$exec_prefix"
17630 exec_prefix="$acl_final_exec_prefix"
17631 eval x=\"$x\"
17632 exec_prefix="$acl_save_exec_prefix"
17633 prefix="$acl_save_prefix"
17634
17635 if test "X$x" = "X$element"; then
17636 haveit=yes
17637 break
17638 fi
17639 done
17640 if test -z "$haveit"; then
17641 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17642 fi
17643 done
17644
17645
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648
17649 _ACEOF
17650 if ac_fn_objcxx_try_compile "$LINENO"; then :
17651 cy_good=1
17652 else
17653 cy_good=0
17654 fi
17655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17656
17657 OBJCXXFLAGS=$cy_save
17658 if test "x$cy_good" = x1; then :
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17660 $as_echo "yes" >&6; }
17661
17662 for element in -Wno-overloaded-virtual; do
17663 haveit=
17664 for x in $OBJCXXFLAGS; do
17665
17666 acl_save_prefix="$prefix"
17667 prefix="$acl_final_prefix"
17668 acl_save_exec_prefix="$exec_prefix"
17669 exec_prefix="$acl_final_exec_prefix"
17670 eval x=\"$x\"
17671 exec_prefix="$acl_save_exec_prefix"
17672 prefix="$acl_save_prefix"
17673
17674 if test "X$x" = "X$element"; then
17675 haveit=yes
17676 break
17677 fi
17678 done
17679 if test -z "$haveit"; then
17680 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17681 fi
17682 done
17683
17684
17685 else
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 $as_echo "no" >&6; }
17688 fi
17689
17690 ac_ext=cpp
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17695
17696
17697
17698
17699
17700 ac_ext=c
17701 ac_cpp='$CPP $CPPFLAGS'
17702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17705
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17707 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17708
17709 cy_save=$CFLAGS
17710
17711 for element in -Wno-parentheses; do
17712 haveit=
17713 for x in $CFLAGS; do
17714
17715 acl_save_prefix="$prefix"
17716 prefix="$acl_final_prefix"
17717 acl_save_exec_prefix="$exec_prefix"
17718 exec_prefix="$acl_final_exec_prefix"
17719 eval x=\"$x\"
17720 exec_prefix="$acl_save_exec_prefix"
17721 prefix="$acl_save_prefix"
17722
17723 if test "X$x" = "X$element"; then
17724 haveit=yes
17725 break
17726 fi
17727 done
17728 if test -z "$haveit"; then
17729 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17730 fi
17731 done
17732
17733
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17736
17737 _ACEOF
17738 if ac_fn_c_try_compile "$LINENO"; then :
17739 cy_good=1
17740 else
17741 cy_good=0
17742 fi
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744
17745 CFLAGS=$cy_save
17746 if test "x$cy_good" = x1; then :
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17748 $as_echo "yes" >&6; }
17749
17750 for element in -Wno-parentheses; do
17751 haveit=
17752 for x in $CFLAGS; do
17753
17754 acl_save_prefix="$prefix"
17755 prefix="$acl_final_prefix"
17756 acl_save_exec_prefix="$exec_prefix"
17757 exec_prefix="$acl_final_exec_prefix"
17758 eval x=\"$x\"
17759 exec_prefix="$acl_save_exec_prefix"
17760 prefix="$acl_save_prefix"
17761
17762 if test "X$x" = "X$element"; then
17763 haveit=yes
17764 break
17765 fi
17766 done
17767 if test -z "$haveit"; then
17768 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17769 fi
17770 done
17771
17772
17773 else
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17776 fi
17777
17778 ac_ext=cpp
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
17784
17785
17786 ac_ext=cpp
17787 ac_cpp='$CXXCPP $CPPFLAGS'
17788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17791
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17793 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17794
17795 cy_save=$CXXFLAGS
17796
17797 for element in -Wno-parentheses; do
17798 haveit=
17799 for x in $CXXFLAGS; do
17800
17801 acl_save_prefix="$prefix"
17802 prefix="$acl_final_prefix"
17803 acl_save_exec_prefix="$exec_prefix"
17804 exec_prefix="$acl_final_exec_prefix"
17805 eval x=\"$x\"
17806 exec_prefix="$acl_save_exec_prefix"
17807 prefix="$acl_save_prefix"
17808
17809 if test "X$x" = "X$element"; then
17810 haveit=yes
17811 break
17812 fi
17813 done
17814 if test -z "$haveit"; then
17815 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17816 fi
17817 done
17818
17819
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822
17823 _ACEOF
17824 if ac_fn_cxx_try_compile "$LINENO"; then :
17825 cy_good=1
17826 else
17827 cy_good=0
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830
17831 CXXFLAGS=$cy_save
17832 if test "x$cy_good" = x1; then :
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17834 $as_echo "yes" >&6; }
17835
17836 for element in -Wno-parentheses; do
17837 haveit=
17838 for x in $CXXFLAGS; do
17839
17840 acl_save_prefix="$prefix"
17841 prefix="$acl_final_prefix"
17842 acl_save_exec_prefix="$exec_prefix"
17843 exec_prefix="$acl_final_exec_prefix"
17844 eval x=\"$x\"
17845 exec_prefix="$acl_save_exec_prefix"
17846 prefix="$acl_save_prefix"
17847
17848 if test "X$x" = "X$element"; then
17849 haveit=yes
17850 break
17851 fi
17852 done
17853 if test -z "$haveit"; then
17854 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17855 fi
17856 done
17857
17858
17859 else
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861 $as_echo "no" >&6; }
17862 fi
17863
17864 ac_ext=cpp
17865 ac_cpp='$CXXCPP $CPPFLAGS'
17866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17869
17870
17871
17872 ac_ext=mm
17873 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17874 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17877
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17879 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
17880
17881 cy_save=$OBJCXXFLAGS
17882
17883 for element in -Wno-parentheses; do
17884 haveit=
17885 for x in $OBJCXXFLAGS; do
17886
17887 acl_save_prefix="$prefix"
17888 prefix="$acl_final_prefix"
17889 acl_save_exec_prefix="$exec_prefix"
17890 exec_prefix="$acl_final_exec_prefix"
17891 eval x=\"$x\"
17892 exec_prefix="$acl_save_exec_prefix"
17893 prefix="$acl_save_prefix"
17894
17895 if test "X$x" = "X$element"; then
17896 haveit=yes
17897 break
17898 fi
17899 done
17900 if test -z "$haveit"; then
17901 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17902 fi
17903 done
17904
17905
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17908
17909 _ACEOF
17910 if ac_fn_objcxx_try_compile "$LINENO"; then :
17911 cy_good=1
17912 else
17913 cy_good=0
17914 fi
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916
17917 OBJCXXFLAGS=$cy_save
17918 if test "x$cy_good" = x1; then :
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17920 $as_echo "yes" >&6; }
17921
17922 for element in -Wno-parentheses; do
17923 haveit=
17924 for x in $OBJCXXFLAGS; do
17925
17926 acl_save_prefix="$prefix"
17927 prefix="$acl_final_prefix"
17928 acl_save_exec_prefix="$exec_prefix"
17929 exec_prefix="$acl_final_exec_prefix"
17930 eval x=\"$x\"
17931 exec_prefix="$acl_save_exec_prefix"
17932 prefix="$acl_save_prefix"
17933
17934 if test "X$x" = "X$element"; then
17935 haveit=yes
17936 break
17937 fi
17938 done
17939 if test -z "$haveit"; then
17940 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17941 fi
17942 done
17943
17944
17945 else
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 $as_echo "no" >&6; }
17948 fi
17949
17950 ac_ext=cpp
17951 ac_cpp='$CXXCPP $CPPFLAGS'
17952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17955
17956
17957
17958
17959
17960 ac_ext=c
17961 ac_cpp='$CPP $CPPFLAGS'
17962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17965
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
17967 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
17968
17969 cy_save=$CFLAGS
17970
17971 for element in -Wno-unneeded-internal-declaration; do
17972 haveit=
17973 for x in $CFLAGS; do
17974
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 acl_save_exec_prefix="$exec_prefix"
17978 exec_prefix="$acl_final_exec_prefix"
17979 eval x=\"$x\"
17980 exec_prefix="$acl_save_exec_prefix"
17981 prefix="$acl_save_prefix"
17982
17983 if test "X$x" = "X$element"; then
17984 haveit=yes
17985 break
17986 fi
17987 done
17988 if test -z "$haveit"; then
17989 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17990 fi
17991 done
17992
17993
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996
17997 _ACEOF
17998 if ac_fn_c_try_compile "$LINENO"; then :
17999 cy_good=1
18000 else
18001 cy_good=0
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004
18005 CFLAGS=$cy_save
18006 if test "x$cy_good" = x1; then :
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18008 $as_echo "yes" >&6; }
18009
18010 for element in -Wno-unneeded-internal-declaration; do
18011 haveit=
18012 for x in $CFLAGS; do
18013
18014 acl_save_prefix="$prefix"
18015 prefix="$acl_final_prefix"
18016 acl_save_exec_prefix="$exec_prefix"
18017 exec_prefix="$acl_final_exec_prefix"
18018 eval x=\"$x\"
18019 exec_prefix="$acl_save_exec_prefix"
18020 prefix="$acl_save_prefix"
18021
18022 if test "X$x" = "X$element"; then
18023 haveit=yes
18024 break
18025 fi
18026 done
18027 if test -z "$haveit"; then
18028 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18029 fi
18030 done
18031
18032
18033 else
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18035 $as_echo "no" >&6; }
18036 fi
18037
18038 ac_ext=cpp
18039 ac_cpp='$CXXCPP $CPPFLAGS'
18040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18043
18044
18045
18046 ac_ext=cpp
18047 ac_cpp='$CXXCPP $CPPFLAGS'
18048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18051
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18053 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18054
18055 cy_save=$CXXFLAGS
18056
18057 for element in -Wno-unneeded-internal-declaration; do
18058 haveit=
18059 for x in $CXXFLAGS; do
18060
18061 acl_save_prefix="$prefix"
18062 prefix="$acl_final_prefix"
18063 acl_save_exec_prefix="$exec_prefix"
18064 exec_prefix="$acl_final_exec_prefix"
18065 eval x=\"$x\"
18066 exec_prefix="$acl_save_exec_prefix"
18067 prefix="$acl_save_prefix"
18068
18069 if test "X$x" = "X$element"; then
18070 haveit=yes
18071 break
18072 fi
18073 done
18074 if test -z "$haveit"; then
18075 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18076 fi
18077 done
18078
18079
18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081 /* end confdefs.h. */
18082
18083 _ACEOF
18084 if ac_fn_cxx_try_compile "$LINENO"; then :
18085 cy_good=1
18086 else
18087 cy_good=0
18088 fi
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090
18091 CXXFLAGS=$cy_save
18092 if test "x$cy_good" = x1; then :
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18094 $as_echo "yes" >&6; }
18095
18096 for element in -Wno-unneeded-internal-declaration; do
18097 haveit=
18098 for x in $CXXFLAGS; do
18099
18100 acl_save_prefix="$prefix"
18101 prefix="$acl_final_prefix"
18102 acl_save_exec_prefix="$exec_prefix"
18103 exec_prefix="$acl_final_exec_prefix"
18104 eval x=\"$x\"
18105 exec_prefix="$acl_save_exec_prefix"
18106 prefix="$acl_save_prefix"
18107
18108 if test "X$x" = "X$element"; then
18109 haveit=yes
18110 break
18111 fi
18112 done
18113 if test -z "$haveit"; then
18114 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18115 fi
18116 done
18117
18118
18119 else
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18121 $as_echo "no" >&6; }
18122 fi
18123
18124 ac_ext=cpp
18125 ac_cpp='$CXXCPP $CPPFLAGS'
18126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18129
18130
18131
18132 ac_ext=mm
18133 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18134 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18135 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18136 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18137
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18139 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18140
18141 cy_save=$OBJCXXFLAGS
18142
18143 for element in -Wno-unneeded-internal-declaration; do
18144 haveit=
18145 for x in $OBJCXXFLAGS; do
18146
18147 acl_save_prefix="$prefix"
18148 prefix="$acl_final_prefix"
18149 acl_save_exec_prefix="$exec_prefix"
18150 exec_prefix="$acl_final_exec_prefix"
18151 eval x=\"$x\"
18152 exec_prefix="$acl_save_exec_prefix"
18153 prefix="$acl_save_prefix"
18154
18155 if test "X$x" = "X$element"; then
18156 haveit=yes
18157 break
18158 fi
18159 done
18160 if test -z "$haveit"; then
18161 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18162 fi
18163 done
18164
18165
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168
18169 _ACEOF
18170 if ac_fn_objcxx_try_compile "$LINENO"; then :
18171 cy_good=1
18172 else
18173 cy_good=0
18174 fi
18175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18176
18177 OBJCXXFLAGS=$cy_save
18178 if test "x$cy_good" = x1; then :
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18180 $as_echo "yes" >&6; }
18181
18182 for element in -Wno-unneeded-internal-declaration; do
18183 haveit=
18184 for x in $OBJCXXFLAGS; do
18185
18186 acl_save_prefix="$prefix"
18187 prefix="$acl_final_prefix"
18188 acl_save_exec_prefix="$exec_prefix"
18189 exec_prefix="$acl_final_exec_prefix"
18190 eval x=\"$x\"
18191 exec_prefix="$acl_save_exec_prefix"
18192 prefix="$acl_save_prefix"
18193
18194 if test "X$x" = "X$element"; then
18195 haveit=yes
18196 break
18197 fi
18198 done
18199 if test -z "$haveit"; then
18200 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18201 fi
18202 done
18203
18204
18205 else
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18207 $as_echo "no" >&6; }
18208 fi
18209
18210 ac_ext=cpp
18211 ac_cpp='$CXXCPP $CPPFLAGS'
18212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18215
18216
18217
18218
18219 for cy_arch in ppc ppc64 i386 x86_64 armv6; do
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18221 $as_echo_n "checking for -arch $cy_arch... " >&6; }
18222
18223 cy_save=$CXXFLAGS
18224
18225 for element in "-arch $cy_arch"; do
18226 haveit=
18227 for x in $CXXFLAGS; do
18228
18229 acl_save_prefix="$prefix"
18230 prefix="$acl_final_prefix"
18231 acl_save_exec_prefix="$exec_prefix"
18232 exec_prefix="$acl_final_exec_prefix"
18233 eval x=\"$x\"
18234 exec_prefix="$acl_save_exec_prefix"
18235 prefix="$acl_save_prefix"
18236
18237 if test "X$x" = "X$element"; then
18238 haveit=yes
18239 break
18240 fi
18241 done
18242 if test -z "$haveit"; then
18243 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18244 fi
18245 done
18246
18247
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250
18251 int
18252 main ()
18253 {
18254
18255 ;
18256 return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_cxx_try_link "$LINENO"; then :
18260 cy_good=1
18261 else
18262 cy_good=0
18263 fi
18264 rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266
18267 CXXFLAGS=$cy_save
18268 if test "x$cy_good" = x1; then :
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18270 $as_echo "yes" >&6; }
18271
18272 for element in "-arch $cy_arch"; do
18273 haveit=
18274 for x in $CY_ARCH; do
18275
18276 acl_save_prefix="$prefix"
18277 prefix="$acl_final_prefix"
18278 acl_save_exec_prefix="$exec_prefix"
18279 exec_prefix="$acl_final_exec_prefix"
18280 eval x=\"$x\"
18281 exec_prefix="$acl_save_exec_prefix"
18282 prefix="$acl_save_prefix"
18283
18284 if test "X$x" = "X$element"; then
18285 haveit=yes
18286 break
18287 fi
18288 done
18289 if test -z "$haveit"; then
18290 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18291 fi
18292 done
18293
18294
18295 else
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18297 $as_echo "no" >&6; }
18298 fi
18299
18300 done
18301
18302 # Extract the first word of "xcodebuild", so it can be a program name with args.
18303 set dummy xcodebuild; ac_word=$2
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18305 $as_echo_n "checking for $ac_word... " >&6; }
18306 if ${ac_cv_path_XCODEBUILD+:} false; then :
18307 $as_echo_n "(cached) " >&6
18308 else
18309 case $XCODEBUILD in
18310 [\\/]* | ?:[\\/]*)
18311 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
18312 ;;
18313 *)
18314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18315 for as_dir in $PATH
18316 do
18317 IFS=$as_save_IFS
18318 test -z "$as_dir" && as_dir=.
18319 for ac_exec_ext in '' $ac_executable_extensions; do
18320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18321 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
18322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18323 break 2
18324 fi
18325 done
18326 done
18327 IFS=$as_save_IFS
18328
18329 ;;
18330 esac
18331 fi
18332 XCODEBUILD=$ac_cv_path_XCODEBUILD
18333 if test -n "$XCODEBUILD"; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
18335 $as_echo "$XCODEBUILD" >&6; }
18336 else
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18339 fi
18340
18341
18342
18343 if test "x$XCODEBUILD" != x; then :
18344
18345 CY_IOS_SIMULATOR=`xcodebuild -sdk iphonesimulator -version Path`
18346
18347
18348 fi
18349
18350 if test "x$CY_IOS_SIMULATOR" != x; then
18351 CY_IOS_SIMULATOR_TRUE=
18352 CY_IOS_SIMULATOR_FALSE='#'
18353 else
18354 CY_IOS_SIMULATOR_TRUE='#'
18355 CY_IOS_SIMULATOR_FALSE=
18356 fi
18357
18358
18359
18360
18361
18362
18363
18364
18365 # Check whether --enable-javascript was given.
18366 if test "${enable_javascript+set}" = set; then :
18367 enableval=$enable_javascript;
18368 case $enableval in #(
18369 yes) :
18370
18371
18372
18373
18374 cy_save=$LIBS
18375 LIBS=
18376
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18378 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18379 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382
18383 ac_check_framework_save_LIBS=$LIBS
18384 LIBS="-framework JavaScriptCore $LIBS"
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18387
18388 #include <JavaScriptCore/JSBase.h>
18389
18390 int
18391 main ()
18392 {
18393
18394 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18395
18396 ;
18397 return 0;
18398 }
18399 _ACEOF
18400 if ac_fn_cxx_try_link "$LINENO"; then :
18401
18402 ac_cv_framework_JavaScriptCore=yes
18403
18404 else
18405 ac_cv_framework_JavaScriptCore=no
18406 fi
18407 rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18409 LIBS=$ac_check_framework_save_LIBS
18410
18411 fi
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18413 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18414 if test $ac_cv_framework_JavaScriptCore = yes; then :
18415
18416
18417 for element in "-framework JavaScriptCore"; do
18418 haveit=
18419 for x in $LIBS; do
18420
18421 acl_save_prefix="$prefix"
18422 prefix="$acl_final_prefix"
18423 acl_save_exec_prefix="$exec_prefix"
18424 exec_prefix="$acl_final_exec_prefix"
18425 eval x=\"$x\"
18426 exec_prefix="$acl_save_exec_prefix"
18427 prefix="$acl_save_prefix"
18428
18429 if test "X$x" = "X$element"; then
18430 haveit=yes
18431 break
18432 fi
18433 done
18434 if test -z "$haveit"; then
18435 LIBS="${LIBS}${LIBS:+ }$element"
18436 fi
18437 done
18438
18439
18440 CY_EXECUTE=1
18441
18442
18443
18444 else
18445
18446 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18447
18448 pkg_failed=no
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18450 $as_echo_n "checking for WEBKIT... " >&6; }
18451
18452 if test -n "$WEBKIT_CFLAGS"; then
18453 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18454 elif test -n "$PKG_CONFIG"; then
18455 if test -n "$PKG_CONFIG" && \
18456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18457 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18458 ac_status=$?
18459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18460 test $ac_status = 0; }; then
18461 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18462 else
18463 pkg_failed=yes
18464 fi
18465 else
18466 pkg_failed=untried
18467 fi
18468 if test -n "$WEBKIT_LIBS"; then
18469 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18470 elif test -n "$PKG_CONFIG"; then
18471 if test -n "$PKG_CONFIG" && \
18472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18473 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18474 ac_status=$?
18475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18476 test $ac_status = 0; }; then
18477 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18478 else
18479 pkg_failed=yes
18480 fi
18481 else
18482 pkg_failed=untried
18483 fi
18484
18485
18486
18487 if test $pkg_failed = yes; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18489 $as_echo "no" >&6; }
18490
18491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18492 _pkg_short_errors_supported=yes
18493 else
18494 _pkg_short_errors_supported=no
18495 fi
18496 if test $_pkg_short_errors_supported = yes; then
18497 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18498 else
18499 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18500 fi
18501 # Put the nasty error message in config.log where it belongs
18502 echo "$WEBKIT_PKG_ERRORS" >&5
18503
18504 :
18505 elif test $pkg_failed = untried; then
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18508 :
18509 else
18510 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18511 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18513 $as_echo "yes" >&6; }
18514
18515 CY_EXECUTE=1
18516
18517
18518 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18519 haveit=
18520 for x in $CPPFLAGS; do
18521
18522 acl_save_prefix="$prefix"
18523 prefix="$acl_final_prefix"
18524 acl_save_exec_prefix="$exec_prefix"
18525 exec_prefix="$acl_final_exec_prefix"
18526 eval x=\"$x\"
18527 exec_prefix="$acl_save_exec_prefix"
18528 prefix="$acl_save_prefix"
18529
18530 if test "X$x" = "X$element"; then
18531 haveit=yes
18532 break
18533 fi
18534 done
18535 if test -z "$haveit"; then
18536 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18537 fi
18538 done
18539
18540
18541 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18542 haveit=
18543 for x in $LIBS; do
18544
18545 acl_save_prefix="$prefix"
18546 prefix="$acl_final_prefix"
18547 acl_save_exec_prefix="$exec_prefix"
18548 exec_prefix="$acl_final_exec_prefix"
18549 eval x=\"$x\"
18550 exec_prefix="$acl_save_exec_prefix"
18551 prefix="$acl_save_prefix"
18552
18553 if test "X$x" = "X$element"; then
18554 haveit=yes
18555 break
18556 fi
18557 done
18558 if test -z "$haveit"; then
18559 LIBS="${LIBS}${LIBS:+ }$element"
18560 fi
18561 done
18562
18563
18564 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18565 done
18566
18567 fi
18568 LTJAVASCRIPTCORE=$LIBS
18569 LIBS=$cy_save
18570
18571
18572 ;; #(
18573 no) :
18574
18575 CY_EXECUTE=0
18576 ;; #(
18577 JavaScriptCore) :
18578
18579
18580
18581 cy_save=$LIBS
18582 LIBS=
18583
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18585 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18586 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18587 $as_echo_n "(cached) " >&6
18588 else
18589
18590 ac_check_framework_save_LIBS=$LIBS
18591 LIBS="-framework JavaScriptCore $LIBS"
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18594
18595 #include <JavaScriptCore/JSBase.h>
18596
18597 int
18598 main ()
18599 {
18600
18601 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18602
18603 ;
18604 return 0;
18605 }
18606 _ACEOF
18607 if ac_fn_cxx_try_link "$LINENO"; then :
18608
18609 ac_cv_framework_JavaScriptCore=yes
18610
18611 else
18612 ac_cv_framework_JavaScriptCore=no
18613 fi
18614 rm -f core conftest.err conftest.$ac_objext \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_framework_save_LIBS
18617
18618 fi
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18620 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18621 if test $ac_cv_framework_JavaScriptCore = yes; then :
18622
18623
18624 for element in "-framework JavaScriptCore"; do
18625 haveit=
18626 for x in $LIBS; do
18627
18628 acl_save_prefix="$prefix"
18629 prefix="$acl_final_prefix"
18630 acl_save_exec_prefix="$exec_prefix"
18631 exec_prefix="$acl_final_exec_prefix"
18632 eval x=\"$x\"
18633 exec_prefix="$acl_save_exec_prefix"
18634 prefix="$acl_save_prefix"
18635
18636 if test "X$x" = "X$element"; then
18637 haveit=yes
18638 break
18639 fi
18640 done
18641 if test -z "$haveit"; then
18642 LIBS="${LIBS}${LIBS:+ }$element"
18643 fi
18644 done
18645
18646
18647 CY_EXECUTE=1
18648
18649
18650
18651 else
18652
18653 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18654
18655 pkg_failed=no
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18657 $as_echo_n "checking for WEBKIT... " >&6; }
18658
18659 if test -n "$WEBKIT_CFLAGS"; then
18660 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18661 elif test -n "$PKG_CONFIG"; then
18662 if test -n "$PKG_CONFIG" && \
18663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18664 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18665 ac_status=$?
18666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18667 test $ac_status = 0; }; then
18668 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18669 else
18670 pkg_failed=yes
18671 fi
18672 else
18673 pkg_failed=untried
18674 fi
18675 if test -n "$WEBKIT_LIBS"; then
18676 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18677 elif test -n "$PKG_CONFIG"; then
18678 if test -n "$PKG_CONFIG" && \
18679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18680 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18681 ac_status=$?
18682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683 test $ac_status = 0; }; then
18684 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18685 else
18686 pkg_failed=yes
18687 fi
18688 else
18689 pkg_failed=untried
18690 fi
18691
18692
18693
18694 if test $pkg_failed = yes; then
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697
18698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18699 _pkg_short_errors_supported=yes
18700 else
18701 _pkg_short_errors_supported=no
18702 fi
18703 if test $_pkg_short_errors_supported = yes; then
18704 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18705 else
18706 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18707 fi
18708 # Put the nasty error message in config.log where it belongs
18709 echo "$WEBKIT_PKG_ERRORS" >&5
18710
18711 :
18712 elif test $pkg_failed = untried; then
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18715 :
18716 else
18717 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18718 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720 $as_echo "yes" >&6; }
18721
18722 CY_EXECUTE=1
18723
18724
18725 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18726 haveit=
18727 for x in $CPPFLAGS; do
18728
18729 acl_save_prefix="$prefix"
18730 prefix="$acl_final_prefix"
18731 acl_save_exec_prefix="$exec_prefix"
18732 exec_prefix="$acl_final_exec_prefix"
18733 eval x=\"$x\"
18734 exec_prefix="$acl_save_exec_prefix"
18735 prefix="$acl_save_prefix"
18736
18737 if test "X$x" = "X$element"; then
18738 haveit=yes
18739 break
18740 fi
18741 done
18742 if test -z "$haveit"; then
18743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18744 fi
18745 done
18746
18747
18748 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18749 haveit=
18750 for x in $LIBS; do
18751
18752 acl_save_prefix="$prefix"
18753 prefix="$acl_final_prefix"
18754 acl_save_exec_prefix="$exec_prefix"
18755 exec_prefix="$acl_final_exec_prefix"
18756 eval x=\"$x\"
18757 exec_prefix="$acl_save_exec_prefix"
18758 prefix="$acl_save_prefix"
18759
18760 if test "X$x" = "X$element"; then
18761 haveit=yes
18762 break
18763 fi
18764 done
18765 if test -z "$haveit"; then
18766 LIBS="${LIBS}${LIBS:+ }$element"
18767 fi
18768 done
18769
18770
18771 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18772 done
18773
18774 fi
18775 LTJAVASCRIPTCORE=$LIBS
18776 LIBS=$cy_save
18777
18778
18779 ;; #(
18780 *) :
18781 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18782 esac
18783
18784 else
18785
18786
18787
18788 cy_save=$LIBS
18789 LIBS=
18790
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18792 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18793 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18794 $as_echo_n "(cached) " >&6
18795 else
18796
18797 ac_check_framework_save_LIBS=$LIBS
18798 LIBS="-framework JavaScriptCore $LIBS"
18799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800 /* end confdefs.h. */
18801
18802 #include <JavaScriptCore/JSBase.h>
18803
18804 int
18805 main ()
18806 {
18807
18808 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18809
18810 ;
18811 return 0;
18812 }
18813 _ACEOF
18814 if ac_fn_cxx_try_link "$LINENO"; then :
18815
18816 ac_cv_framework_JavaScriptCore=yes
18817
18818 else
18819 ac_cv_framework_JavaScriptCore=no
18820 fi
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823 LIBS=$ac_check_framework_save_LIBS
18824
18825 fi
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18827 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18828 if test $ac_cv_framework_JavaScriptCore = yes; then :
18829
18830
18831 for element in "-framework JavaScriptCore"; do
18832 haveit=
18833 for x in $LIBS; do
18834
18835 acl_save_prefix="$prefix"
18836 prefix="$acl_final_prefix"
18837 acl_save_exec_prefix="$exec_prefix"
18838 exec_prefix="$acl_final_exec_prefix"
18839 eval x=\"$x\"
18840 exec_prefix="$acl_save_exec_prefix"
18841 prefix="$acl_save_prefix"
18842
18843 if test "X$x" = "X$element"; then
18844 haveit=yes
18845 break
18846 fi
18847 done
18848 if test -z "$haveit"; then
18849 LIBS="${LIBS}${LIBS:+ }$element"
18850 fi
18851 done
18852
18853
18854 CY_EXECUTE=1
18855
18856
18857
18858 else
18859
18860 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18861
18862 pkg_failed=no
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18864 $as_echo_n "checking for WEBKIT... " >&6; }
18865
18866 if test -n "$WEBKIT_CFLAGS"; then
18867 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18868 elif test -n "$PKG_CONFIG"; then
18869 if test -n "$PKG_CONFIG" && \
18870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18871 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18872 ac_status=$?
18873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18874 test $ac_status = 0; }; then
18875 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18876 else
18877 pkg_failed=yes
18878 fi
18879 else
18880 pkg_failed=untried
18881 fi
18882 if test -n "$WEBKIT_LIBS"; then
18883 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18884 elif test -n "$PKG_CONFIG"; then
18885 if test -n "$PKG_CONFIG" && \
18886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18887 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18888 ac_status=$?
18889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18890 test $ac_status = 0; }; then
18891 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18892 else
18893 pkg_failed=yes
18894 fi
18895 else
18896 pkg_failed=untried
18897 fi
18898
18899
18900
18901 if test $pkg_failed = yes; then
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903 $as_echo "no" >&6; }
18904
18905 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18906 _pkg_short_errors_supported=yes
18907 else
18908 _pkg_short_errors_supported=no
18909 fi
18910 if test $_pkg_short_errors_supported = yes; then
18911 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18912 else
18913 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18914 fi
18915 # Put the nasty error message in config.log where it belongs
18916 echo "$WEBKIT_PKG_ERRORS" >&5
18917
18918 :
18919 elif test $pkg_failed = untried; then
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18921 $as_echo "no" >&6; }
18922 :
18923 else
18924 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18925 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18927 $as_echo "yes" >&6; }
18928
18929 CY_EXECUTE=1
18930
18931
18932 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18933 haveit=
18934 for x in $CPPFLAGS; do
18935
18936 acl_save_prefix="$prefix"
18937 prefix="$acl_final_prefix"
18938 acl_save_exec_prefix="$exec_prefix"
18939 exec_prefix="$acl_final_exec_prefix"
18940 eval x=\"$x\"
18941 exec_prefix="$acl_save_exec_prefix"
18942 prefix="$acl_save_prefix"
18943
18944 if test "X$x" = "X$element"; then
18945 haveit=yes
18946 break
18947 fi
18948 done
18949 if test -z "$haveit"; then
18950 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18951 fi
18952 done
18953
18954
18955 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18956 haveit=
18957 for x in $LIBS; do
18958
18959 acl_save_prefix="$prefix"
18960 prefix="$acl_final_prefix"
18961 acl_save_exec_prefix="$exec_prefix"
18962 exec_prefix="$acl_final_exec_prefix"
18963 eval x=\"$x\"
18964 exec_prefix="$acl_save_exec_prefix"
18965 prefix="$acl_save_prefix"
18966
18967 if test "X$x" = "X$element"; then
18968 haveit=yes
18969 break
18970 fi
18971 done
18972 if test -z "$haveit"; then
18973 LIBS="${LIBS}${LIBS:+ }$element"
18974 fi
18975 done
18976
18977
18978 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18979 done
18980
18981 fi
18982 LTJAVASCRIPTCORE=$LIBS
18983 LIBS=$cy_save
18984
18985
18986
18987 fi
18988
18989
18990
18991 apr_found="no"
18992
18993 if test "$target_os" = "os2-emx"; then
18994 # Scripts don't pass test -x on OS/2
18995 TEST_X="test -f"
18996 else
18997 TEST_X="test -x"
18998 fi
18999
19000 acceptable_majors="1"
19001
19002 apr_temp_acceptable_apr_config=""
19003 for apr_temp_major in $acceptable_majors
19004 do
19005 case $apr_temp_major in
19006 0)
19007 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19008 ;;
19009 *)
19010 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19011 ;;
19012 esac
19013 done
19014
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19016 $as_echo_n "checking for APR... " >&6; }
19017
19018 # Check whether --with-apr was given.
19019 if test "${with_apr+set}" = set; then :
19020 withval=$with_apr;
19021 if test "$withval" = "no" || test "$withval" = "yes"; then
19022 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19023 fi
19024
19025 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19026 do
19027 for lookdir in "$withval/bin" "$withval"
19028 do
19029 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19030 apr_config="$lookdir/$apr_temp_apr_config_file"
19031
19032 apr_found="yes"
19033 break 2
19034 fi
19035 done
19036 done
19037
19038 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19039 apr_config="$withval"
19040 apr_found="yes"
19041 fi
19042
19043 if test "$apr_found" != "yes"; then
19044 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
19045 fi
19046
19047 else
19048
19049 if test -n "1" && test "1" = "1"; then
19050 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19051 do
19052 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19053 apr_config="$apr_temp_apr_config_file"
19054
19055 apr_found="yes"
19056 break
19057 else
19058 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19059 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19060 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19061
19062 apr_found="yes"
19063 break 2
19064 fi
19065 done
19066 fi
19067 done
19068 fi
19069 if test "$apr_found" = "no" && test -d ""; then
19070 apr_temp_abs_srcdir="`cd && pwd`"
19071 apr_found="reconfig"
19072 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19073 case $apr_bundled_major in
19074 "")
19075 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19076 ;;
19077 0)
19078 apr_temp_apr_config_file="apr-config"
19079 ;;
19080 *)
19081 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19082 ;;
19083 esac
19084 if test -n ""; then
19085 apr_config="/$apr_temp_apr_config_file"
19086 else
19087 apr_config="/$apr_temp_apr_config_file"
19088 fi
19089 fi
19090
19091 fi
19092
19093
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19095 $as_echo "$apr_found" >&6; }
19096
19097 case $apr_found in #(
19098 yes) :
19099
19100
19101 for element in `$apr_config --includes`; do
19102 haveit=
19103 for x in $CPPFLAGS; do
19104
19105 acl_save_prefix="$prefix"
19106 prefix="$acl_final_prefix"
19107 acl_save_exec_prefix="$exec_prefix"
19108 exec_prefix="$acl_final_exec_prefix"
19109 eval x=\"$x\"
19110 exec_prefix="$acl_save_exec_prefix"
19111 prefix="$acl_save_prefix"
19112
19113 if test "X$x" = "X$element"; then
19114 haveit=yes
19115 break
19116 fi
19117 done
19118 if test -z "$haveit"; then
19119 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19120 fi
19121 done
19122
19123
19124 for element in `$apr_config --link-libtool`; do
19125 haveit=
19126 for x in $LTLIBAPR; do
19127
19128 acl_save_prefix="$prefix"
19129 prefix="$acl_final_prefix"
19130 acl_save_exec_prefix="$exec_prefix"
19131 exec_prefix="$acl_final_exec_prefix"
19132 eval x=\"$x\"
19133 exec_prefix="$acl_save_exec_prefix"
19134 prefix="$acl_save_prefix"
19135
19136 if test "X$x" = "X$element"; then
19137 haveit=yes
19138 break
19139 fi
19140 done
19141 if test -z "$haveit"; then
19142 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
19143 fi
19144 done
19145
19146
19147 ;; #(
19148 *) :
19149 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19150 esac
19151
19152
19153
19154 if test "x$CY_EXECUTE" = x1; then
19155 CY_EXECUTE_TRUE=
19156 CY_EXECUTE_FALSE='#'
19157 else
19158 CY_EXECUTE_TRUE='#'
19159 CY_EXECUTE_FALSE=
19160 fi
19161
19162
19163
19164 case $CY_EXECUTE in #(
19165 1) :
19166
19167 for ac_header in ffi.h ffi/ffi.h
19168 do :
19169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19170 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19172 cat >>confdefs.h <<_ACEOF
19173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19174 _ACEOF
19175 break
19176 fi
19177
19178 done
19179
19180
19181
19182 cy_save=$LIBS
19183 LIBS=
19184 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19185
19186
19187 LIBFFI_CFLAGS
19188 C compiler flags for LIBFFI, overriding pkg-config
19189 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
19190
19191 pkg_failed=no
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19193 $as_echo_n "checking for LIBFFI... " >&6; }
19194
19195 if test -n "$LIBFFI_CFLAGS"; then
19196 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19197 elif test -n "$PKG_CONFIG"; then
19198 if test -n "$PKG_CONFIG" && \
19199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19200 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19201 ac_status=$?
19202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19203 test $ac_status = 0; }; then
19204 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19205 else
19206 pkg_failed=yes
19207 fi
19208 else
19209 pkg_failed=untried
19210 fi
19211 if test -n "$LIBFFI_LIBS"; then
19212 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19213 elif test -n "$PKG_CONFIG"; then
19214 if test -n "$PKG_CONFIG" && \
19215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19216 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19217 ac_status=$?
19218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19219 test $ac_status = 0; }; then
19220 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19221 else
19222 pkg_failed=yes
19223 fi
19224 else
19225 pkg_failed=untried
19226 fi
19227
19228
19229
19230 if test $pkg_failed = yes; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233
19234 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19235 _pkg_short_errors_supported=yes
19236 else
19237 _pkg_short_errors_supported=no
19238 fi
19239 if test $_pkg_short_errors_supported = yes; then
19240 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19241 else
19242 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19243 fi
19244 # Put the nasty error message in config.log where it belongs
19245 echo "$LIBFFI_PKG_ERRORS" >&5
19246
19247 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19248 elif test $pkg_failed = untried; then
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250 $as_echo "no" >&6; }
19251 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19252 else
19253 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19254 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19256 $as_echo "yes" >&6; }
19257
19258
19259 for element in `$PKG_CONFIG --cflags libffi`; do
19260 haveit=
19261 for x in $CPPFLAGS; do
19262
19263 acl_save_prefix="$prefix"
19264 prefix="$acl_final_prefix"
19265 acl_save_exec_prefix="$exec_prefix"
19266 exec_prefix="$acl_final_exec_prefix"
19267 eval x=\"$x\"
19268 exec_prefix="$acl_save_exec_prefix"
19269 prefix="$acl_save_prefix"
19270
19271 if test "X$x" = "X$element"; then
19272 haveit=yes
19273 break
19274 fi
19275 done
19276 if test -z "$haveit"; then
19277 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19278 fi
19279 done
19280
19281
19282 for element in `$PKG_CONFIG --libs libffi`; do
19283 haveit=
19284 for x in $LIBS; do
19285
19286 acl_save_prefix="$prefix"
19287 prefix="$acl_final_prefix"
19288 acl_save_exec_prefix="$exec_prefix"
19289 exec_prefix="$acl_final_exec_prefix"
19290 eval x=\"$x\"
19291 exec_prefix="$acl_save_exec_prefix"
19292 prefix="$acl_save_prefix"
19293
19294 if test "X$x" = "X$element"; then
19295 haveit=yes
19296 break
19297 fi
19298 done
19299 if test -z "$haveit"; then
19300 LIBS="${LIBS}${LIBS:+ }$element"
19301 fi
19302 done
19303
19304
19305 fi
19306
19307 else
19308
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19310 $as_echo_n "checking for library containing ffi_call... " >&6; }
19311 if ${ac_cv_search_ffi_call+:} false; then :
19312 $as_echo_n "(cached) " >&6
19313 else
19314 ac_func_search_save_LIBS=$LIBS
19315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h. */
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char ffi_call ();
19325 int
19326 main ()
19327 {
19328 return ffi_call ();
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 for ac_lib in '' ffi; do
19334 if test -z "$ac_lib"; then
19335 ac_res="none required"
19336 else
19337 ac_res=-l$ac_lib
19338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19339 fi
19340 if ac_fn_cxx_try_link "$LINENO"; then :
19341 ac_cv_search_ffi_call=$ac_res
19342 fi
19343 rm -f core conftest.err conftest.$ac_objext \
19344 conftest$ac_exeext
19345 if ${ac_cv_search_ffi_call+:} false; then :
19346 break
19347 fi
19348 done
19349 if ${ac_cv_search_ffi_call+:} false; then :
19350
19351 else
19352 ac_cv_search_ffi_call=no
19353 fi
19354 rm conftest.$ac_ext
19355 LIBS=$ac_func_search_save_LIBS
19356 fi
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19358 $as_echo "$ac_cv_search_ffi_call" >&6; }
19359 ac_res=$ac_cv_search_ffi_call
19360 if test "$ac_res" != no; then :
19361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19362
19363 fi
19364
19365 case $ac_cv_search_ffi_call in #(
19366 no) :
19367
19368
19369 pkg_failed=no
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19371 $as_echo_n "checking for LIBFFI... " >&6; }
19372
19373 if test -n "$LIBFFI_CFLAGS"; then
19374 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19375 elif test -n "$PKG_CONFIG"; then
19376 if test -n "$PKG_CONFIG" && \
19377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19378 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19379 ac_status=$?
19380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19381 test $ac_status = 0; }; then
19382 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19383 else
19384 pkg_failed=yes
19385 fi
19386 else
19387 pkg_failed=untried
19388 fi
19389 if test -n "$LIBFFI_LIBS"; then
19390 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19391 elif test -n "$PKG_CONFIG"; then
19392 if test -n "$PKG_CONFIG" && \
19393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19394 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19395 ac_status=$?
19396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19397 test $ac_status = 0; }; then
19398 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19399 else
19400 pkg_failed=yes
19401 fi
19402 else
19403 pkg_failed=untried
19404 fi
19405
19406
19407
19408 if test $pkg_failed = yes; then
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19410 $as_echo "no" >&6; }
19411
19412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19413 _pkg_short_errors_supported=yes
19414 else
19415 _pkg_short_errors_supported=no
19416 fi
19417 if test $_pkg_short_errors_supported = yes; then
19418 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19419 else
19420 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19421 fi
19422 # Put the nasty error message in config.log where it belongs
19423 echo "$LIBFFI_PKG_ERRORS" >&5
19424
19425 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19426 elif test $pkg_failed = untried; then
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428 $as_echo "no" >&6; }
19429 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19430 else
19431 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19432 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19434 $as_echo "yes" >&6; }
19435
19436
19437 for element in `$PKG_CONFIG --cflags libffi`; do
19438 haveit=
19439 for x in $CPPFLAGS; do
19440
19441 acl_save_prefix="$prefix"
19442 prefix="$acl_final_prefix"
19443 acl_save_exec_prefix="$exec_prefix"
19444 exec_prefix="$acl_final_exec_prefix"
19445 eval x=\"$x\"
19446 exec_prefix="$acl_save_exec_prefix"
19447 prefix="$acl_save_prefix"
19448
19449 if test "X$x" = "X$element"; then
19450 haveit=yes
19451 break
19452 fi
19453 done
19454 if test -z "$haveit"; then
19455 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19456 fi
19457 done
19458
19459
19460 for element in `$PKG_CONFIG --libs libffi`; do
19461 haveit=
19462 for x in $LIBS; do
19463
19464 acl_save_prefix="$prefix"
19465 prefix="$acl_final_prefix"
19466 acl_save_exec_prefix="$exec_prefix"
19467 exec_prefix="$acl_final_exec_prefix"
19468 eval x=\"$x\"
19469 exec_prefix="$acl_save_exec_prefix"
19470 prefix="$acl_save_prefix"
19471
19472 if test "X$x" = "X$element"; then
19473 haveit=yes
19474 break
19475 fi
19476 done
19477 if test -z "$haveit"; then
19478 LIBS="${LIBS}${LIBS:+ }$element"
19479 fi
19480 done
19481
19482
19483 fi ;; #(
19484 *) :
19485 ;;
19486 esac
19487
19488 fi
19489 LTLIBFFI=$LIBS
19490 LIBS=$cy_save
19491
19492
19493
19494 ac_ext=mm
19495 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19496 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19499
19500
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19502 $as_echo_n "checking if we really have Objective C++... " >&6; }
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19505
19506 _ACEOF
19507 if ac_fn_objcxx_try_compile "$LINENO"; then :
19508
19509 CY_OBJECTIVEC=1
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19512
19513 else
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518
19519 if test "x$CY_OBJECTIVEC" = x1; then :
19520
19521
19522 cy_save=$LIBS
19523 LIBS=
19524
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19526 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19527 if ${ac_cv_framework_CoreFoundation+:} false; then :
19528 $as_echo_n "(cached) " >&6
19529 else
19530
19531 ac_check_framework_save_LIBS=$LIBS
19532 LIBS="-framework CoreFoundation $LIBS"
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535
19536 #include <CoreFoundation/CFBase.h>
19537
19538 int
19539 main ()
19540 {
19541 CFAllocatorGetDefault();
19542 ;
19543 return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_objcxx_try_link "$LINENO"; then :
19547
19548 ac_cv_framework_CoreFoundation=yes
19549
19550 else
19551 ac_cv_framework_CoreFoundation=no
19552 fi
19553 rm -f core conftest.err conftest.$ac_objext \
19554 conftest$ac_exeext conftest.$ac_ext
19555 LIBS=$ac_check_framework_save_LIBS
19556
19557 fi
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19559 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19560 if test $ac_cv_framework_CoreFoundation = yes; then :
19561
19562
19563 for element in "-framework CoreFoundation"; do
19564 haveit=
19565 for x in $LIBS; do
19566
19567 acl_save_prefix="$prefix"
19568 prefix="$acl_final_prefix"
19569 acl_save_exec_prefix="$exec_prefix"
19570 exec_prefix="$acl_final_exec_prefix"
19571 eval x=\"$x\"
19572 exec_prefix="$acl_save_exec_prefix"
19573 prefix="$acl_save_prefix"
19574
19575 if test "X$x" = "X$element"; then
19576 haveit=yes
19577 break
19578 fi
19579 done
19580 if test -z "$haveit"; then
19581 LIBS="${LIBS}${LIBS:+ }$element"
19582 fi
19583 done
19584
19585
19586
19587
19588
19589
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19591 $as_echo_n "checking for framework Foundation... " >&6; }
19592 if ${ac_cv_framework_Foundation+:} false; then :
19593 $as_echo_n "(cached) " >&6
19594 else
19595
19596 ac_check_framework_save_LIBS=$LIBS
19597 LIBS="-framework Foundation $LIBS"
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19600
19601 #include <Foundation/NSObject.h>
19602
19603 int
19604 main ()
19605 {
19606 [[NSObject alloc] init];
19607 ;
19608 return 0;
19609 }
19610 _ACEOF
19611 if ac_fn_objcxx_try_link "$LINENO"; then :
19612
19613 ac_cv_framework_Foundation=yes
19614
19615 else
19616 ac_cv_framework_Foundation=no
19617 fi
19618 rm -f core conftest.err conftest.$ac_objext \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_framework_save_LIBS
19621
19622 fi
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19624 $as_echo "$ac_cv_framework_Foundation" >&6; }
19625 if test $ac_cv_framework_Foundation = yes; then :
19626
19627
19628 for element in "-framework Foundation"; do
19629 haveit=
19630 for x in $LIBS; do
19631
19632 acl_save_prefix="$prefix"
19633 prefix="$acl_final_prefix"
19634 acl_save_exec_prefix="$exec_prefix"
19635 exec_prefix="$acl_final_exec_prefix"
19636 eval x=\"$x\"
19637 exec_prefix="$acl_save_exec_prefix"
19638 prefix="$acl_save_prefix"
19639
19640 if test "X$x" = "X$element"; then
19641 haveit=yes
19642 break
19643 fi
19644 done
19645 if test -z "$haveit"; then
19646 LIBS="${LIBS}${LIBS:+ }$element"
19647 fi
19648 done
19649
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_FRAMEWORK_FOUNDATION 1
19652 _ACEOF
19653
19654
19655 fi
19656
19657
19658 else
19659
19660
19661 for ac_prog in gnustep-config
19662 do
19663 # Extract the first word of "$ac_prog", so it can be a program name with args.
19664 set dummy $ac_prog; ac_word=$2
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19666 $as_echo_n "checking for $ac_word... " >&6; }
19667 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19668 $as_echo_n "(cached) " >&6
19669 else
19670 if test -n "$GNUSTEP_CONFIG"; then
19671 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19672 else
19673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19674 for as_dir in $PATH
19675 do
19676 IFS=$as_save_IFS
19677 test -z "$as_dir" && as_dir=.
19678 for ac_exec_ext in '' $ac_executable_extensions; do
19679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19680 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19682 break 2
19683 fi
19684 done
19685 done
19686 IFS=$as_save_IFS
19687
19688 fi
19689 fi
19690 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19691 if test -n "$GNUSTEP_CONFIG"; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19693 $as_echo "$GNUSTEP_CONFIG" >&6; }
19694 else
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696 $as_echo "no" >&6; }
19697 fi
19698
19699
19700 test -n "$GNUSTEP_CONFIG" && break
19701 done
19702
19703
19704 if test "x$GNUSTEP_CONFIG" != x; then :
19705
19706
19707
19708 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19709 haveit=
19710 for x in $OBJCXXFLAGS; do
19711
19712 acl_save_prefix="$prefix"
19713 prefix="$acl_final_prefix"
19714 acl_save_exec_prefix="$exec_prefix"
19715 exec_prefix="$acl_final_exec_prefix"
19716 eval x=\"$x\"
19717 exec_prefix="$acl_save_exec_prefix"
19718 prefix="$acl_save_prefix"
19719
19720 if test "X$x" = "X$element"; then
19721 haveit=yes
19722 break
19723 fi
19724 done
19725 if test -z "$haveit"; then
19726 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19727 fi
19728 done
19729
19730
19731 for element in `$GNUSTEP_CONFIG --base-libs`; do
19732 haveit=
19733 for x in $LIBS; do
19734
19735 acl_save_prefix="$prefix"
19736 prefix="$acl_final_prefix"
19737 acl_save_exec_prefix="$exec_prefix"
19738 exec_prefix="$acl_final_exec_prefix"
19739 eval x=\"$x\"
19740 exec_prefix="$acl_save_exec_prefix"
19741 prefix="$acl_save_prefix"
19742
19743 if test "X$x" = "X$element"; then
19744 haveit=yes
19745 break
19746 fi
19747 done
19748 if test -z "$haveit"; then
19749 LIBS="${LIBS}${LIBS:+ }$element"
19750 fi
19751 done
19752
19753
19754 else
19755 CY_OBJECTIVEC=0
19756
19757 fi
19758
19759 fi
19760 LTOBJECTIVEC=$LIBS
19761 LIBS=$cy_save
19762
19763
19764
19765 fi
19766
19767 ac_ext=cpp
19768 ac_cpp='$CXXCPP $CPPFLAGS'
19769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19772
19773 ;; #(
19774 *) :
19775 ;;
19776 esac
19777
19778 if test "x$CY_OBJECTIVEC" = x1; then
19779 CY_OBJECTIVEC_TRUE=
19780 CY_OBJECTIVEC_FALSE='#'
19781 else
19782 CY_OBJECTIVEC_TRUE='#'
19783 CY_OBJECTIVEC_FALSE=
19784 fi
19785
19786
19787
19788 cy_save=$LIBS
19789 LIBS=
19790
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19792 $as_echo_n "checking for a readline compatible library... " >&6; }
19793 if ${ax_cv_lib_readline+:} false; then :
19794 $as_echo_n "(cached) " >&6
19795 else
19796
19797 ORIG_LIBS="$LIBS"
19798 for readline_lib in readline edit editline; do
19799 for termcap_lib in "" termcap curses ncurses; do
19800 if test -z "$termcap_lib"; then
19801 TRY_LIB="-l$readline_lib"
19802 else
19803 TRY_LIB="-l$readline_lib -l$termcap_lib"
19804 fi
19805 LIBS="$ORIG_LIBS $TRY_LIB"
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808
19809 /* Override any GCC internal prototype to avoid an error.
19810 Use char because int might match the return type of a GCC
19811 builtin and then its argument prototype would still apply. */
19812 #ifdef __cplusplus
19813 extern "C"
19814 #endif
19815 char readline ();
19816 int
19817 main ()
19818 {
19819 return readline ();
19820 ;
19821 return 0;
19822 }
19823 _ACEOF
19824 if ac_fn_cxx_try_link "$LINENO"; then :
19825 ax_cv_lib_readline="$TRY_LIB"
19826 fi
19827 rm -f core conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19829 if test -n "$ax_cv_lib_readline"; then
19830 break
19831 fi
19832 done
19833 if test -n "$ax_cv_lib_readline"; then
19834 break
19835 fi
19836 done
19837 if test -z "$ax_cv_lib_readline"; then
19838 ax_cv_lib_readline="no"
19839 fi
19840 LIBS="$ORIG_LIBS"
19841
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19844 $as_echo "$ax_cv_lib_readline" >&6; }
19845
19846 if test "$ax_cv_lib_readline" != "no"; then
19847 LIBS="$LIBS $ax_cv_lib_readline"
19848
19849 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19850
19851 for ac_header in readline.h readline/readline.h
19852 do :
19853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19854 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19856 cat >>confdefs.h <<_ACEOF
19857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19858 _ACEOF
19859
19860 fi
19861
19862 done
19863
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19865 $as_echo_n "checking whether readline supports history... " >&6; }
19866 if ${ax_cv_lib_readline_history+:} false; then :
19867 $as_echo_n "(cached) " >&6
19868 else
19869
19870 ax_cv_lib_readline_history="no"
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873
19874 /* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19877 #ifdef __cplusplus
19878 extern "C"
19879 #endif
19880 char add_history ();
19881 int
19882 main ()
19883 {
19884 return add_history ();
19885 ;
19886 return 0;
19887 }
19888 _ACEOF
19889 if ac_fn_cxx_try_link "$LINENO"; then :
19890 ax_cv_lib_readline_history="yes"
19891 fi
19892 rm -f core conftest.err conftest.$ac_objext \
19893 conftest$ac_exeext conftest.$ac_ext
19894
19895 fi
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19897 $as_echo "$ax_cv_lib_readline_history" >&6; }
19898 if test "$ax_cv_lib_readline_history" = "yes"; then
19899
19900 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
19901
19902 for ac_header in history.h readline/history.h
19903 do :
19904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19905 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19907 cat >>confdefs.h <<_ACEOF
19908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19909 _ACEOF
19910
19911 fi
19912
19913 done
19914
19915 fi
19916 fi
19917
19918 LTLIBREADLINE=$LIBS
19919 LIBS=$cy_save
19920
19921
19922 case $ax_cv_lib_readline in #(
19923 no) :
19924 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19925 *) :
19926 ;;
19927 esac
19928
19929
19930 cy_save=$LIBS
19931 LIBS=
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
19933 $as_echo_n "checking for library containing cur_term... " >&6; }
19934 if ${ac_cv_search_cur_term+:} false; then :
19935 $as_echo_n "(cached) " >&6
19936 else
19937 ac_func_search_save_LIBS=$LIBS
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19944 #ifdef __cplusplus
19945 extern "C"
19946 #endif
19947 char cur_term ();
19948 int
19949 main ()
19950 {
19951 return cur_term ();
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 for ac_lib in '' termcap; do
19957 if test -z "$ac_lib"; then
19958 ac_res="none required"
19959 else
19960 ac_res=-l$ac_lib
19961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19962 fi
19963 if ac_fn_cxx_try_link "$LINENO"; then :
19964 ac_cv_search_cur_term=$ac_res
19965 fi
19966 rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext
19968 if ${ac_cv_search_cur_term+:} false; then :
19969 break
19970 fi
19971 done
19972 if ${ac_cv_search_cur_term+:} false; then :
19973
19974 else
19975 ac_cv_search_cur_term=no
19976 fi
19977 rm conftest.$ac_ext
19978 LIBS=$ac_func_search_save_LIBS
19979 fi
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19981 $as_echo "$ac_cv_search_cur_term" >&6; }
19982 ac_res=$ac_cv_search_cur_term
19983 if test "$ac_res" != no; then :
19984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19985
19986 fi
19987
19988 LTLIBTERMCAP=$LIBS
19989 LIBS=$cy_save
19990
19991
19992
19993
19994 SO=$acl_shlibext
19995
19996
19997 if test "x$CY_EXECUTE" = x1; then :
19998
19999 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20000 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20001
20002 if test -n "$ac_tool_prefix"; then
20003 for ac_prog in lipo
20004 do
20005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20008 $as_echo_n "checking for $ac_word... " >&6; }
20009 if ${ac_cv_prog__LIPO+:} false; then :
20010 $as_echo_n "(cached) " >&6
20011 else
20012 if test -n "$_LIPO"; then
20013 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20014 else
20015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20016 for as_dir in $PATH
20017 do
20018 IFS=$as_save_IFS
20019 test -z "$as_dir" && as_dir=.
20020 for ac_exec_ext in '' $ac_executable_extensions; do
20021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20022 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20024 break 2
20025 fi
20026 done
20027 done
20028 IFS=$as_save_IFS
20029
20030 fi
20031 fi
20032 _LIPO=$ac_cv_prog__LIPO
20033 if test -n "$_LIPO"; then
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20035 $as_echo "$_LIPO" >&6; }
20036 else
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 $as_echo "no" >&6; }
20039 fi
20040
20041
20042 test -n "$_LIPO" && break
20043 done
20044 fi
20045 if test -z "$_LIPO"; then
20046 ac_ct__LIPO=$_LIPO
20047 for ac_prog in lipo
20048 do
20049 # Extract the first word of "$ac_prog", so it can be a program name with args.
20050 set dummy $ac_prog; ac_word=$2
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20052 $as_echo_n "checking for $ac_word... " >&6; }
20053 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20054 $as_echo_n "(cached) " >&6
20055 else
20056 if test -n "$ac_ct__LIPO"; then
20057 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20058 else
20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 for as_dir in $PATH
20061 do
20062 IFS=$as_save_IFS
20063 test -z "$as_dir" && as_dir=.
20064 for ac_exec_ext in '' $ac_executable_extensions; do
20065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20068 break 2
20069 fi
20070 done
20071 done
20072 IFS=$as_save_IFS
20073
20074 fi
20075 fi
20076 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20077 if test -n "$ac_ct__LIPO"; then
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20079 $as_echo "$ac_ct__LIPO" >&6; }
20080 else
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20083 fi
20084
20085
20086 test -n "$ac_ct__LIPO" && break
20087 done
20088
20089 if test "x$ac_ct__LIPO" = x; then
20090 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
20091 else
20092 case $cross_compiling:$ac_tool_warned in
20093 yes:)
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20096 ac_tool_warned=yes ;;
20097 esac
20098 _LIPO=$ac_ct__LIPO
20099 fi
20100 fi
20101
20102 if test -n "$ac_tool_prefix"; then
20103 for ac_prog in nm
20104 do
20105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20108 $as_echo_n "checking for $ac_word... " >&6; }
20109 if ${ac_cv_prog__NM+:} false; then :
20110 $as_echo_n "(cached) " >&6
20111 else
20112 if test -n "$_NM"; then
20113 ac_cv_prog__NM="$_NM" # Let the user override the test.
20114 else
20115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20116 for as_dir in $PATH
20117 do
20118 IFS=$as_save_IFS
20119 test -z "$as_dir" && as_dir=.
20120 for ac_exec_ext in '' $ac_executable_extensions; do
20121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20122 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20124 break 2
20125 fi
20126 done
20127 done
20128 IFS=$as_save_IFS
20129
20130 fi
20131 fi
20132 _NM=$ac_cv_prog__NM
20133 if test -n "$_NM"; then
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20135 $as_echo "$_NM" >&6; }
20136 else
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20138 $as_echo "no" >&6; }
20139 fi
20140
20141
20142 test -n "$_NM" && break
20143 done
20144 fi
20145 if test -z "$_NM"; then
20146 ac_ct__NM=$_NM
20147 for ac_prog in nm
20148 do
20149 # Extract the first word of "$ac_prog", so it can be a program name with args.
20150 set dummy $ac_prog; ac_word=$2
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20152 $as_echo_n "checking for $ac_word... " >&6; }
20153 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20154 $as_echo_n "(cached) " >&6
20155 else
20156 if test -n "$ac_ct__NM"; then
20157 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20158 else
20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20161 do
20162 IFS=$as_save_IFS
20163 test -z "$as_dir" && as_dir=.
20164 for ac_exec_ext in '' $ac_executable_extensions; do
20165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20166 ac_cv_prog_ac_ct__NM="$ac_prog"
20167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20168 break 2
20169 fi
20170 done
20171 done
20172 IFS=$as_save_IFS
20173
20174 fi
20175 fi
20176 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20177 if test -n "$ac_ct__NM"; then
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20179 $as_echo "$ac_ct__NM" >&6; }
20180 else
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182 $as_echo "no" >&6; }
20183 fi
20184
20185
20186 test -n "$ac_ct__NM" && break
20187 done
20188
20189 if test "x$ac_ct__NM" = x; then
20190 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
20191 else
20192 case $cross_compiling:$ac_tool_warned in
20193 yes:)
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20196 ac_tool_warned=yes ;;
20197 esac
20198 _NM=$ac_ct__NM
20199 fi
20200 fi
20201
20202 if test -n "$ac_tool_prefix"; then
20203 for ac_prog in otool
20204 do
20205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20208 $as_echo_n "checking for $ac_word... " >&6; }
20209 if ${ac_cv_prog__OTOOL+:} false; then :
20210 $as_echo_n "(cached) " >&6
20211 else
20212 if test -n "$_OTOOL"; then
20213 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20214 else
20215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216 for as_dir in $PATH
20217 do
20218 IFS=$as_save_IFS
20219 test -z "$as_dir" && as_dir=.
20220 for ac_exec_ext in '' $ac_executable_extensions; do
20221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20222 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20224 break 2
20225 fi
20226 done
20227 done
20228 IFS=$as_save_IFS
20229
20230 fi
20231 fi
20232 _OTOOL=$ac_cv_prog__OTOOL
20233 if test -n "$_OTOOL"; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20235 $as_echo "$_OTOOL" >&6; }
20236 else
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20239 fi
20240
20241
20242 test -n "$_OTOOL" && break
20243 done
20244 fi
20245 if test -z "$_OTOOL"; then
20246 ac_ct__OTOOL=$_OTOOL
20247 for ac_prog in otool
20248 do
20249 # Extract the first word of "$ac_prog", so it can be a program name with args.
20250 set dummy $ac_prog; ac_word=$2
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20252 $as_echo_n "checking for $ac_word... " >&6; }
20253 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20254 $as_echo_n "(cached) " >&6
20255 else
20256 if test -n "$ac_ct__OTOOL"; then
20257 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20258 else
20259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20260 for as_dir in $PATH
20261 do
20262 IFS=$as_save_IFS
20263 test -z "$as_dir" && as_dir=.
20264 for ac_exec_ext in '' $ac_executable_extensions; do
20265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20266 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20268 break 2
20269 fi
20270 done
20271 done
20272 IFS=$as_save_IFS
20273
20274 fi
20275 fi
20276 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20277 if test -n "$ac_ct__OTOOL"; then
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20279 $as_echo "$ac_ct__OTOOL" >&6; }
20280 else
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20282 $as_echo "no" >&6; }
20283 fi
20284
20285
20286 test -n "$ac_ct__OTOOL" && break
20287 done
20288
20289 if test "x$ac_ct__OTOOL" = x; then
20290 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
20291 else
20292 case $cross_compiling:$ac_tool_warned in
20293 yes:)
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20296 ac_tool_warned=yes ;;
20297 esac
20298 _OTOOL=$ac_ct__OTOOL
20299 fi
20300 fi
20301
20302 CY_ATTACH_GROUP=procmod
20303
20304 CY_MACH=1
20305
20306 fi
20307
20308
20309 fi
20310 if test "x$CY_MACH" = x1; then
20311 CY_MACH_TRUE=
20312 CY_MACH_FALSE='#'
20313 else
20314 CY_MACH_TRUE='#'
20315 CY_MACH_FALSE=
20316 fi
20317
20318
20319 ac_config_files="$ac_config_files Makefile"
20320
20321 cat >confcache <<\_ACEOF
20322 # This file is a shell script that caches the results of configure
20323 # tests run on this system so they can be shared between configure
20324 # scripts and configure runs, see configure's option --config-cache.
20325 # It is not useful on other systems. If it contains results you don't
20326 # want to keep, you may remove or edit it.
20327 #
20328 # config.status only pays attention to the cache file if you give it
20329 # the --recheck option to rerun configure.
20330 #
20331 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20333 # following values.
20334
20335 _ACEOF
20336
20337 # The following way of writing the cache mishandles newlines in values,
20338 # but we know of no workaround that is simple, portable, and efficient.
20339 # So, we kill variables containing newlines.
20340 # Ultrix sh set writes to stderr and can't be redirected directly,
20341 # and sets the high bit in the cache file unless we assign to the vars.
20342 (
20343 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20344 eval ac_val=\$$ac_var
20345 case $ac_val in #(
20346 *${as_nl}*)
20347 case $ac_var in #(
20348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20350 esac
20351 case $ac_var in #(
20352 _ | IFS | as_nl) ;; #(
20353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20354 *) { eval $ac_var=; unset $ac_var;} ;;
20355 esac ;;
20356 esac
20357 done
20358
20359 (set) 2>&1 |
20360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20361 *${as_nl}ac_space=\ *)
20362 # `set' does not quote correctly, so add quotes: double-quote
20363 # substitution turns \\\\ into \\, and sed turns \\ into \.
20364 sed -n \
20365 "s/'/'\\\\''/g;
20366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20367 ;; #(
20368 *)
20369 # `set' quotes correctly as required by POSIX, so do not add quotes.
20370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20371 ;;
20372 esac |
20373 sort
20374 ) |
20375 sed '
20376 /^ac_cv_env_/b end
20377 t clear
20378 :clear
20379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20380 t end
20381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20382 :end' >>confcache
20383 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20384 if test -w "$cache_file"; then
20385 if test "x$cache_file" != "x/dev/null"; then
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20387 $as_echo "$as_me: updating cache $cache_file" >&6;}
20388 if test ! -f "$cache_file" || test -h "$cache_file"; then
20389 cat confcache >"$cache_file"
20390 else
20391 case $cache_file in #(
20392 */* | ?:*)
20393 mv -f confcache "$cache_file"$$ &&
20394 mv -f "$cache_file"$$ "$cache_file" ;; #(
20395 *)
20396 mv -f confcache "$cache_file" ;;
20397 esac
20398 fi
20399 fi
20400 else
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20402 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20403 fi
20404 fi
20405 rm -f confcache
20406
20407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20408 # Let make expand exec_prefix.
20409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20410
20411 DEFS=-DHAVE_CONFIG_H
20412
20413 ac_libobjs=
20414 ac_ltlibobjs=
20415 U=
20416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20417 # 1. Remove the extension, and $U if already installed.
20418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20419 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20421 # will be set to the directory where LIBOBJS objects are built.
20422 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20423 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20424 done
20425 LIBOBJS=$ac_libobjs
20426
20427 LTLIBOBJS=$ac_ltlibobjs
20428
20429
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20431 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20432 if test -n "$am_sleep_pid"; then
20433 # Hide warnings about reused PIDs.
20434 wait $am_sleep_pid 2>/dev/null
20435 fi
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20437 $as_echo "done" >&6; }
20438 if test -n "$EXEEXT"; then
20439 am__EXEEXT_TRUE=
20440 am__EXEEXT_FALSE='#'
20441 else
20442 am__EXEEXT_TRUE='#'
20443 am__EXEEXT_FALSE=
20444 fi
20445
20446 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20447 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20449 fi
20450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20451 as_fn_error $? "conditional \"AMDEP\" was never defined.
20452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20453 fi
20454 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20455 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20457 fi
20458 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20459 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20461 fi
20462 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20463 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20465 fi
20466 if test -z "${CY_IOS_SIMULATOR_TRUE}" && test -z "${CY_IOS_SIMULATOR_FALSE}"; then
20467 as_fn_error $? "conditional \"CY_IOS_SIMULATOR\" was never defined.
20468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20469 fi
20470 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20471 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20473 fi
20474 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20475 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20477 fi
20478 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20479 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20481 fi
20482
20483 : "${CONFIG_STATUS=./config.status}"
20484 ac_write_fail=0
20485 ac_clean_files_save=$ac_clean_files
20486 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20488 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20489 as_write_fail=0
20490 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20491 #! $SHELL
20492 # Generated by $as_me.
20493 # Run this file to recreate the current configuration.
20494 # Compiler output produced by configure, useful for debugging
20495 # configure, is in config.log if it exists.
20496
20497 debug=false
20498 ac_cs_recheck=false
20499 ac_cs_silent=false
20500
20501 SHELL=\${CONFIG_SHELL-$SHELL}
20502 export SHELL
20503 _ASEOF
20504 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20505 ## -------------------- ##
20506 ## M4sh Initialization. ##
20507 ## -------------------- ##
20508
20509 # Be more Bourne compatible
20510 DUALCASE=1; export DUALCASE # for MKS sh
20511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20512 emulate sh
20513 NULLCMD=:
20514 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20515 # is contrary to our usage. Disable this feature.
20516 alias -g '${1+"$@"}'='"$@"'
20517 setopt NO_GLOB_SUBST
20518 else
20519 case `(set -o) 2>/dev/null` in #(
20520 *posix*) :
20521 set -o posix ;; #(
20522 *) :
20523 ;;
20524 esac
20525 fi
20526
20527
20528 as_nl='
20529 '
20530 export as_nl
20531 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20532 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20535 # Prefer a ksh shell builtin over an external printf program on Solaris,
20536 # but without wasting forks for bash or zsh.
20537 if test -z "$BASH_VERSION$ZSH_VERSION" \
20538 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20539 as_echo='print -r --'
20540 as_echo_n='print -rn --'
20541 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20542 as_echo='printf %s\n'
20543 as_echo_n='printf %s'
20544 else
20545 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20546 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20547 as_echo_n='/usr/ucb/echo -n'
20548 else
20549 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20550 as_echo_n_body='eval
20551 arg=$1;
20552 case $arg in #(
20553 *"$as_nl"*)
20554 expr "X$arg" : "X\\(.*\\)$as_nl";
20555 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20556 esac;
20557 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20558 '
20559 export as_echo_n_body
20560 as_echo_n='sh -c $as_echo_n_body as_echo'
20561 fi
20562 export as_echo_body
20563 as_echo='sh -c $as_echo_body as_echo'
20564 fi
20565
20566 # The user is always right.
20567 if test "${PATH_SEPARATOR+set}" != set; then
20568 PATH_SEPARATOR=:
20569 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20570 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20571 PATH_SEPARATOR=';'
20572 }
20573 fi
20574
20575
20576 # IFS
20577 # We need space, tab and new line, in precisely that order. Quoting is
20578 # there to prevent editors from complaining about space-tab.
20579 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20580 # splitting by setting IFS to empty value.)
20581 IFS=" "" $as_nl"
20582
20583 # Find who we are. Look in the path if we contain no directory separator.
20584 as_myself=
20585 case $0 in #((
20586 *[\\/]* ) as_myself=$0 ;;
20587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20588 for as_dir in $PATH
20589 do
20590 IFS=$as_save_IFS
20591 test -z "$as_dir" && as_dir=.
20592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20593 done
20594 IFS=$as_save_IFS
20595
20596 ;;
20597 esac
20598 # We did not find ourselves, most probably we were run as `sh COMMAND'
20599 # in which case we are not to be found in the path.
20600 if test "x$as_myself" = x; then
20601 as_myself=$0
20602 fi
20603 if test ! -f "$as_myself"; then
20604 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20605 exit 1
20606 fi
20607
20608 # Unset variables that we do not need and which cause bugs (e.g. in
20609 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20610 # suppresses any "Segmentation fault" message there. '((' could
20611 # trigger a bug in pdksh 5.2.14.
20612 for as_var in BASH_ENV ENV MAIL MAILPATH
20613 do eval test x\${$as_var+set} = xset \
20614 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20615 done
20616 PS1='$ '
20617 PS2='> '
20618 PS4='+ '
20619
20620 # NLS nuisances.
20621 LC_ALL=C
20622 export LC_ALL
20623 LANGUAGE=C
20624 export LANGUAGE
20625
20626 # CDPATH.
20627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20628
20629
20630 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20631 # ----------------------------------------
20632 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20633 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20634 # script with STATUS, using 1 if that was 0.
20635 as_fn_error ()
20636 {
20637 as_status=$1; test $as_status -eq 0 && as_status=1
20638 if test "$4"; then
20639 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20640 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20641 fi
20642 $as_echo "$as_me: error: $2" >&2
20643 as_fn_exit $as_status
20644 } # as_fn_error
20645
20646
20647 # as_fn_set_status STATUS
20648 # -----------------------
20649 # Set $? to STATUS, without forking.
20650 as_fn_set_status ()
20651 {
20652 return $1
20653 } # as_fn_set_status
20654
20655 # as_fn_exit STATUS
20656 # -----------------
20657 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20658 as_fn_exit ()
20659 {
20660 set +e
20661 as_fn_set_status $1
20662 exit $1
20663 } # as_fn_exit
20664
20665 # as_fn_unset VAR
20666 # ---------------
20667 # Portably unset VAR.
20668 as_fn_unset ()
20669 {
20670 { eval $1=; unset $1;}
20671 }
20672 as_unset=as_fn_unset
20673 # as_fn_append VAR VALUE
20674 # ----------------------
20675 # Append the text in VALUE to the end of the definition contained in VAR. Take
20676 # advantage of any shell optimizations that allow amortized linear growth over
20677 # repeated appends, instead of the typical quadratic growth present in naive
20678 # implementations.
20679 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20680 eval 'as_fn_append ()
20681 {
20682 eval $1+=\$2
20683 }'
20684 else
20685 as_fn_append ()
20686 {
20687 eval $1=\$$1\$2
20688 }
20689 fi # as_fn_append
20690
20691 # as_fn_arith ARG...
20692 # ------------------
20693 # Perform arithmetic evaluation on the ARGs, and store the result in the
20694 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20695 # must be portable across $(()) and expr.
20696 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20697 eval 'as_fn_arith ()
20698 {
20699 as_val=$(( $* ))
20700 }'
20701 else
20702 as_fn_arith ()
20703 {
20704 as_val=`expr "$@" || test $? -eq 1`
20705 }
20706 fi # as_fn_arith
20707
20708
20709 if expr a : '\(a\)' >/dev/null 2>&1 &&
20710 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20711 as_expr=expr
20712 else
20713 as_expr=false
20714 fi
20715
20716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20717 as_basename=basename
20718 else
20719 as_basename=false
20720 fi
20721
20722 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20723 as_dirname=dirname
20724 else
20725 as_dirname=false
20726 fi
20727
20728 as_me=`$as_basename -- "$0" ||
20729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20730 X"$0" : 'X\(//\)$' \| \
20731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20732 $as_echo X/"$0" |
20733 sed '/^.*\/\([^/][^/]*\)\/*$/{
20734 s//\1/
20735 q
20736 }
20737 /^X\/\(\/\/\)$/{
20738 s//\1/
20739 q
20740 }
20741 /^X\/\(\/\).*/{
20742 s//\1/
20743 q
20744 }
20745 s/.*/./; q'`
20746
20747 # Avoid depending upon Character Ranges.
20748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20751 as_cr_digits='0123456789'
20752 as_cr_alnum=$as_cr_Letters$as_cr_digits
20753
20754 ECHO_C= ECHO_N= ECHO_T=
20755 case `echo -n x` in #(((((
20756 -n*)
20757 case `echo 'xy\c'` in
20758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20759 xy) ECHO_C='\c';;
20760 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20761 ECHO_T=' ';;
20762 esac;;
20763 *)
20764 ECHO_N='-n';;
20765 esac
20766
20767 rm -f conf$$ conf$$.exe conf$$.file
20768 if test -d conf$$.dir; then
20769 rm -f conf$$.dir/conf$$.file
20770 else
20771 rm -f conf$$.dir
20772 mkdir conf$$.dir 2>/dev/null
20773 fi
20774 if (echo >conf$$.file) 2>/dev/null; then
20775 if ln -s conf$$.file conf$$ 2>/dev/null; then
20776 as_ln_s='ln -s'
20777 # ... but there are two gotchas:
20778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20780 # In both cases, we have to default to `cp -pR'.
20781 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20782 as_ln_s='cp -pR'
20783 elif ln conf$$.file conf$$ 2>/dev/null; then
20784 as_ln_s=ln
20785 else
20786 as_ln_s='cp -pR'
20787 fi
20788 else
20789 as_ln_s='cp -pR'
20790 fi
20791 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20792 rmdir conf$$.dir 2>/dev/null
20793
20794
20795 # as_fn_mkdir_p
20796 # -------------
20797 # Create "$as_dir" as a directory, including parents if necessary.
20798 as_fn_mkdir_p ()
20799 {
20800
20801 case $as_dir in #(
20802 -*) as_dir=./$as_dir;;
20803 esac
20804 test -d "$as_dir" || eval $as_mkdir_p || {
20805 as_dirs=
20806 while :; do
20807 case $as_dir in #(
20808 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20809 *) as_qdir=$as_dir;;
20810 esac
20811 as_dirs="'$as_qdir' $as_dirs"
20812 as_dir=`$as_dirname -- "$as_dir" ||
20813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20814 X"$as_dir" : 'X\(//\)[^/]' \| \
20815 X"$as_dir" : 'X\(//\)$' \| \
20816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20817 $as_echo X"$as_dir" |
20818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20819 s//\1/
20820 q
20821 }
20822 /^X\(\/\/\)[^/].*/{
20823 s//\1/
20824 q
20825 }
20826 /^X\(\/\/\)$/{
20827 s//\1/
20828 q
20829 }
20830 /^X\(\/\).*/{
20831 s//\1/
20832 q
20833 }
20834 s/.*/./; q'`
20835 test -d "$as_dir" && break
20836 done
20837 test -z "$as_dirs" || eval "mkdir $as_dirs"
20838 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20839
20840
20841 } # as_fn_mkdir_p
20842 if mkdir -p . 2>/dev/null; then
20843 as_mkdir_p='mkdir -p "$as_dir"'
20844 else
20845 test -d ./-p && rmdir ./-p
20846 as_mkdir_p=false
20847 fi
20848
20849
20850 # as_fn_executable_p FILE
20851 # -----------------------
20852 # Test if FILE is an executable regular file.
20853 as_fn_executable_p ()
20854 {
20855 test -f "$1" && test -x "$1"
20856 } # as_fn_executable_p
20857 as_test_x='test -x'
20858 as_executable_p=as_fn_executable_p
20859
20860 # Sed expression to map a string onto a valid CPP name.
20861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20862
20863 # Sed expression to map a string onto a valid variable name.
20864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20865
20866
20867 exec 6>&1
20868 ## ----------------------------------- ##
20869 ## Main body of $CONFIG_STATUS script. ##
20870 ## ----------------------------------- ##
20871 _ASEOF
20872 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20873
20874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20875 # Save the log message, to keep $0 and so on meaningful, and to
20876 # report actual input values of CONFIG_FILES etc. instead of their
20877 # values after options handling.
20878 ac_log="
20879 This file was extended by Cycript $as_me 0.9, which was
20880 generated by GNU Autoconf 2.69. Invocation command line was
20881
20882 CONFIG_FILES = $CONFIG_FILES
20883 CONFIG_HEADERS = $CONFIG_HEADERS
20884 CONFIG_LINKS = $CONFIG_LINKS
20885 CONFIG_COMMANDS = $CONFIG_COMMANDS
20886 $ $0 $@
20887
20888 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20889 "
20890
20891 _ACEOF
20892
20893 case $ac_config_files in *"
20894 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20895 esac
20896
20897 case $ac_config_headers in *"
20898 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20899 esac
20900
20901
20902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20903 # Files that config.status was made for.
20904 config_files="$ac_config_files"
20905 config_headers="$ac_config_headers"
20906 config_commands="$ac_config_commands"
20907
20908 _ACEOF
20909
20910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20911 ac_cs_usage="\
20912 \`$as_me' instantiates files and other configuration actions
20913 from templates according to the current configuration. Unless the files
20914 and actions are specified as TAGs, all are instantiated by default.
20915
20916 Usage: $0 [OPTION]... [TAG]...
20917
20918 -h, --help print this help, then exit
20919 -V, --version print version number and configuration settings, then exit
20920 --config print configuration, then exit
20921 -q, --quiet, --silent
20922 do not print progress messages
20923 -d, --debug don't remove temporary files
20924 --recheck update $as_me by reconfiguring in the same conditions
20925 --file=FILE[:TEMPLATE]
20926 instantiate the configuration file FILE
20927 --header=FILE[:TEMPLATE]
20928 instantiate the configuration header FILE
20929
20930 Configuration files:
20931 $config_files
20932
20933 Configuration headers:
20934 $config_headers
20935
20936 Configuration commands:
20937 $config_commands
20938
20939 Report bugs to <saurik@saurik.com>.
20940 Cycript home page: <http://www.cycript.org/>."
20941
20942 _ACEOF
20943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20944 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20945 ac_cs_version="\\
20946 Cycript config.status 0.9
20947 configured by $0, generated by GNU Autoconf 2.69,
20948 with options \\"\$ac_cs_config\\"
20949
20950 Copyright (C) 2012 Free Software Foundation, Inc.
20951 This config.status script is free software; the Free Software Foundation
20952 gives unlimited permission to copy, distribute and modify it."
20953
20954 ac_pwd='$ac_pwd'
20955 srcdir='$srcdir'
20956 INSTALL='$INSTALL'
20957 MKDIR_P='$MKDIR_P'
20958 AWK='$AWK'
20959 test -n "\$AWK" || AWK=awk
20960 _ACEOF
20961
20962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20963 # The default lists apply if the user does not specify any file.
20964 ac_need_defaults=:
20965 while test $# != 0
20966 do
20967 case $1 in
20968 --*=?*)
20969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20970 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20971 ac_shift=:
20972 ;;
20973 --*=)
20974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20975 ac_optarg=
20976 ac_shift=:
20977 ;;
20978 *)
20979 ac_option=$1
20980 ac_optarg=$2
20981 ac_shift=shift
20982 ;;
20983 esac
20984
20985 case $ac_option in
20986 # Handling of the options.
20987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20988 ac_cs_recheck=: ;;
20989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20990 $as_echo "$ac_cs_version"; exit ;;
20991 --config | --confi | --conf | --con | --co | --c )
20992 $as_echo "$ac_cs_config"; exit ;;
20993 --debug | --debu | --deb | --de | --d | -d )
20994 debug=: ;;
20995 --file | --fil | --fi | --f )
20996 $ac_shift
20997 case $ac_optarg in
20998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20999 '') as_fn_error $? "missing file argument" ;;
21000 esac
21001 as_fn_append CONFIG_FILES " '$ac_optarg'"
21002 ac_need_defaults=false;;
21003 --header | --heade | --head | --hea )
21004 $ac_shift
21005 case $ac_optarg in
21006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21007 esac
21008 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21009 ac_need_defaults=false;;
21010 --he | --h)
21011 # Conflict between --help and --header
21012 as_fn_error $? "ambiguous option: \`$1'
21013 Try \`$0 --help' for more information.";;
21014 --help | --hel | -h )
21015 $as_echo "$ac_cs_usage"; exit ;;
21016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21017 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21018 ac_cs_silent=: ;;
21019
21020 # This is an error.
21021 -*) as_fn_error $? "unrecognized option: \`$1'
21022 Try \`$0 --help' for more information." ;;
21023
21024 *) as_fn_append ac_config_targets " $1"
21025 ac_need_defaults=false ;;
21026
21027 esac
21028 shift
21029 done
21030
21031 ac_configure_extra_args=
21032
21033 if $ac_cs_silent; then
21034 exec 6>/dev/null
21035 ac_configure_extra_args="$ac_configure_extra_args --silent"
21036 fi
21037
21038 _ACEOF
21039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21040 if \$ac_cs_recheck; then
21041 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21042 shift
21043 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21044 CONFIG_SHELL='$SHELL'
21045 export CONFIG_SHELL
21046 exec "\$@"
21047 fi
21048
21049 _ACEOF
21050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21051 exec 5>>config.log
21052 {
21053 echo
21054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21055 ## Running $as_me. ##
21056 _ASBOX
21057 $as_echo "$ac_log"
21058 } >&5
21059
21060 _ACEOF
21061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21062 #
21063 # INIT-COMMANDS
21064 #
21065 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21066
21067
21068 # The HP-UX ksh and POSIX shell print the target directory to stdout
21069 # if CDPATH is set.
21070 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21071
21072 sed_quote_subst='$sed_quote_subst'
21073 double_quote_subst='$double_quote_subst'
21074 delay_variable_subst='$delay_variable_subst'
21075 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21076 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21077 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21078 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21079 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21080 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21081 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21082 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21083 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21084 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21085 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21086 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21087 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21088 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21089 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21090 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21091 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21092 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21093 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21094 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21095 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21096 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21097 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21098 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21099 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21100 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21101 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21102 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21103 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21104 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21105 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21106 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21107 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21108 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21109 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21110 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21111 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21112 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21113 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21114 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21115 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21116 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21117 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21118 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21119 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21120 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21121 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21122 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21123 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21124 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21125 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21126 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21127 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21128 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21129 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21130 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21131 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21132 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21133 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21134 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21135 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21136 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21137 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21138 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21139 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21140 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21141 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21142 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21143 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21144 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21145 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21146 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21147 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21148 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21149 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21150 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21151 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21152 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21153 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21154 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21155 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21156 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21157 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21158 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21159 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21160 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21161 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21162 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21163 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21164 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21165 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21166 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21167 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21168 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21169 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21170 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21171 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21172 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21173 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21174 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21175 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21176 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21177 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21178 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21179 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21180 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21181 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21182 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21183 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21184 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21185 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21186 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21187 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21188 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21189 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21190 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21191 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21192 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21193 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21194 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21195 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21196 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21197 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21198 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21199 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21200 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21201 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21202 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21203 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21204 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21205 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21206 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21207 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21208 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21209 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21210 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21211 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21212 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21213 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21214 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21215 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21216 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21217 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21218 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21219 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21220 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21221 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21222 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21223 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21224 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21225 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21226 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21227 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21228 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21229 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21230 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21231 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21232 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21233 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21234 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21235 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21236 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21237 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21238 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21239 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21240 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21241 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21242 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21243 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21244 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21245 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21246 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21247 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21248 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21249 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21250 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21251 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21252 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21253 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21254 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21255 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21256 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21257 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21258 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21259
21260 LTCC='$LTCC'
21261 LTCFLAGS='$LTCFLAGS'
21262 compiler='$compiler_DEFAULT'
21263
21264 # A function that is used when there is no print builtin or printf.
21265 func_fallback_echo ()
21266 {
21267 eval 'cat <<_LTECHO_EOF
21268 \$1
21269 _LTECHO_EOF'
21270 }
21271
21272 # Quote evaled strings.
21273 for var in SHELL \
21274 ECHO \
21275 PATH_SEPARATOR \
21276 SED \
21277 GREP \
21278 EGREP \
21279 FGREP \
21280 LD \
21281 NM \
21282 LN_S \
21283 lt_SP2NL \
21284 lt_NL2SP \
21285 reload_flag \
21286 OBJDUMP \
21287 deplibs_check_method \
21288 file_magic_cmd \
21289 file_magic_glob \
21290 want_nocaseglob \
21291 DLLTOOL \
21292 sharedlib_from_linklib_cmd \
21293 AR \
21294 AR_FLAGS \
21295 archiver_list_spec \
21296 STRIP \
21297 RANLIB \
21298 CC \
21299 CFLAGS \
21300 compiler \
21301 lt_cv_sys_global_symbol_pipe \
21302 lt_cv_sys_global_symbol_to_cdecl \
21303 lt_cv_sys_global_symbol_to_c_name_address \
21304 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21305 nm_file_list_spec \
21306 lt_prog_compiler_no_builtin_flag \
21307 lt_prog_compiler_pic \
21308 lt_prog_compiler_wl \
21309 lt_prog_compiler_static \
21310 lt_cv_prog_compiler_c_o \
21311 need_locks \
21312 MANIFEST_TOOL \
21313 DSYMUTIL \
21314 NMEDIT \
21315 LIPO \
21316 OTOOL \
21317 OTOOL64 \
21318 shrext_cmds \
21319 export_dynamic_flag_spec \
21320 whole_archive_flag_spec \
21321 compiler_needs_object \
21322 with_gnu_ld \
21323 allow_undefined_flag \
21324 no_undefined_flag \
21325 hardcode_libdir_flag_spec \
21326 hardcode_libdir_separator \
21327 exclude_expsyms \
21328 include_expsyms \
21329 file_list_spec \
21330 variables_saved_for_relink \
21331 libname_spec \
21332 library_names_spec \
21333 soname_spec \
21334 install_override_mode \
21335 finish_eval \
21336 old_striplib \
21337 striplib \
21338 compiler_lib_search_dirs \
21339 predep_objects \
21340 postdep_objects \
21341 predeps \
21342 postdeps \
21343 compiler_lib_search_path \
21344 LD_CXX \
21345 reload_flag_CXX \
21346 compiler_CXX \
21347 lt_prog_compiler_no_builtin_flag_CXX \
21348 lt_prog_compiler_pic_CXX \
21349 lt_prog_compiler_wl_CXX \
21350 lt_prog_compiler_static_CXX \
21351 lt_cv_prog_compiler_c_o_CXX \
21352 export_dynamic_flag_spec_CXX \
21353 whole_archive_flag_spec_CXX \
21354 compiler_needs_object_CXX \
21355 with_gnu_ld_CXX \
21356 allow_undefined_flag_CXX \
21357 no_undefined_flag_CXX \
21358 hardcode_libdir_flag_spec_CXX \
21359 hardcode_libdir_separator_CXX \
21360 exclude_expsyms_CXX \
21361 include_expsyms_CXX \
21362 file_list_spec_CXX \
21363 compiler_lib_search_dirs_CXX \
21364 predep_objects_CXX \
21365 postdep_objects_CXX \
21366 predeps_CXX \
21367 postdeps_CXX \
21368 compiler_lib_search_path_CXX; do
21369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21370 *[\\\\\\\`\\"\\\$]*)
21371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21372 ;;
21373 *)
21374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21375 ;;
21376 esac
21377 done
21378
21379 # Double-quote double-evaled strings.
21380 for var in reload_cmds \
21381 old_postinstall_cmds \
21382 old_postuninstall_cmds \
21383 old_archive_cmds \
21384 extract_expsyms_cmds \
21385 old_archive_from_new_cmds \
21386 old_archive_from_expsyms_cmds \
21387 archive_cmds \
21388 archive_expsym_cmds \
21389 module_cmds \
21390 module_expsym_cmds \
21391 export_symbols_cmds \
21392 prelink_cmds \
21393 postlink_cmds \
21394 postinstall_cmds \
21395 postuninstall_cmds \
21396 finish_cmds \
21397 sys_lib_search_path_spec \
21398 sys_lib_dlsearch_path_spec \
21399 reload_cmds_CXX \
21400 old_archive_cmds_CXX \
21401 old_archive_from_new_cmds_CXX \
21402 old_archive_from_expsyms_cmds_CXX \
21403 archive_cmds_CXX \
21404 archive_expsym_cmds_CXX \
21405 module_cmds_CXX \
21406 module_expsym_cmds_CXX \
21407 export_symbols_cmds_CXX \
21408 prelink_cmds_CXX \
21409 postlink_cmds_CXX; do
21410 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21411 *[\\\\\\\`\\"\\\$]*)
21412 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21413 ;;
21414 *)
21415 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21416 ;;
21417 esac
21418 done
21419
21420 ac_aux_dir='$ac_aux_dir'
21421 xsi_shell='$xsi_shell'
21422 lt_shell_append='$lt_shell_append'
21423
21424 # See if we are running on zsh, and set the options which allow our
21425 # commands through without removal of \ escapes INIT.
21426 if test -n "\${ZSH_VERSION+set}" ; then
21427 setopt NO_GLOB_SUBST
21428 fi
21429
21430
21431 PACKAGE='$PACKAGE'
21432 VERSION='$VERSION'
21433 TIMESTAMP='$TIMESTAMP'
21434 RM='$RM'
21435 ofile='$ofile'
21436
21437
21438
21439
21440
21441
21442 _ACEOF
21443
21444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21445
21446 # Handling of arguments.
21447 for ac_config_target in $ac_config_targets
21448 do
21449 case $ac_config_target in
21450 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21452 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21453 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21454
21455 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21456 esac
21457 done
21458
21459
21460 # If the user did not use the arguments to specify the items to instantiate,
21461 # then the envvar interface is used. Set only those that are not.
21462 # We use the long form for the default assignment because of an extremely
21463 # bizarre bug on SunOS 4.1.3.
21464 if $ac_need_defaults; then
21465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21467 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21468 fi
21469
21470 # Have a temporary directory for convenience. Make it in the build tree
21471 # simply because there is no reason against having it here, and in addition,
21472 # creating and moving files from /tmp can sometimes cause problems.
21473 # Hook for its removal unless debugging.
21474 # Note that there is a small window in which the directory will not be cleaned:
21475 # after its creation but before its name has been assigned to `$tmp'.
21476 $debug ||
21477 {
21478 tmp= ac_tmp=
21479 trap 'exit_status=$?
21480 : "${ac_tmp:=$tmp}"
21481 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21482 ' 0
21483 trap 'as_fn_exit 1' 1 2 13 15
21484 }
21485 # Create a (secure) tmp directory for tmp files.
21486
21487 {
21488 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21489 test -d "$tmp"
21490 } ||
21491 {
21492 tmp=./conf$$-$RANDOM
21493 (umask 077 && mkdir "$tmp")
21494 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21495 ac_tmp=$tmp
21496
21497 # Set up the scripts for CONFIG_FILES section.
21498 # No need to generate them if there are no CONFIG_FILES.
21499 # This happens for instance with `./config.status config.h'.
21500 if test -n "$CONFIG_FILES"; then
21501
21502
21503 ac_cr=`echo X | tr X '\015'`
21504 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21505 # But we know of no other shell where ac_cr would be empty at this
21506 # point, so we can use a bashism as a fallback.
21507 if test "x$ac_cr" = x; then
21508 eval ac_cr=\$\'\\r\'
21509 fi
21510 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21511 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21512 ac_cs_awk_cr='\\r'
21513 else
21514 ac_cs_awk_cr=$ac_cr
21515 fi
21516
21517 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21518 _ACEOF
21519
21520
21521 {
21522 echo "cat >conf$$subs.awk <<_ACEOF" &&
21523 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21524 echo "_ACEOF"
21525 } >conf$$subs.sh ||
21526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21528 ac_delim='%!_!# '
21529 for ac_last_try in false false false false false :; do
21530 . ./conf$$subs.sh ||
21531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21532
21533 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21534 if test $ac_delim_n = $ac_delim_num; then
21535 break
21536 elif $ac_last_try; then
21537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21538 else
21539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21540 fi
21541 done
21542 rm -f conf$$subs.sh
21543
21544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21545 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21546 _ACEOF
21547 sed -n '
21548 h
21549 s/^/S["/; s/!.*/"]=/
21550 p
21551 g
21552 s/^[^!]*!//
21553 :repl
21554 t repl
21555 s/'"$ac_delim"'$//
21556 t delim
21557 :nl
21558 h
21559 s/\(.\{148\}\)..*/\1/
21560 t more1
21561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21562 p
21563 n
21564 b repl
21565 :more1
21566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21567 p
21568 g
21569 s/.\{148\}//
21570 t nl
21571 :delim
21572 h
21573 s/\(.\{148\}\)..*/\1/
21574 t more2
21575 s/["\\]/\\&/g; s/^/"/; s/$/"/
21576 p
21577 b
21578 :more2
21579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21580 p
21581 g
21582 s/.\{148\}//
21583 t delim
21584 ' <conf$$subs.awk | sed '
21585 /^[^""]/{
21586 N
21587 s/\n//
21588 }
21589 ' >>$CONFIG_STATUS || ac_write_fail=1
21590 rm -f conf$$subs.awk
21591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21592 _ACAWK
21593 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21594 for (key in S) S_is_set[key] = 1
21595 FS = "\a"
21596
21597 }
21598 {
21599 line = $ 0
21600 nfields = split(line, field, "@")
21601 substed = 0
21602 len = length(field[1])
21603 for (i = 2; i < nfields; i++) {
21604 key = field[i]
21605 keylen = length(key)
21606 if (S_is_set[key]) {
21607 value = S[key]
21608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21609 len += length(value) + length(field[++i])
21610 substed = 1
21611 } else
21612 len += 1 + keylen
21613 }
21614
21615 print line
21616 }
21617
21618 _ACAWK
21619 _ACEOF
21620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21623 else
21624 cat
21625 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21626 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21627 _ACEOF
21628
21629 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21630 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21631 # trailing colons and then remove the whole line if VPATH becomes empty
21632 # (actually we leave an empty line to preserve line numbers).
21633 if test "x$srcdir" = x.; then
21634 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21635 h
21636 s///
21637 s/^/:/
21638 s/[ ]*$/:/
21639 s/:\$(srcdir):/:/g
21640 s/:\${srcdir}:/:/g
21641 s/:@srcdir@:/:/g
21642 s/^:*//
21643 s/:*$//
21644 x
21645 s/\(=[ ]*\).*/\1/
21646 G
21647 s/\n//
21648 s/^[^=]*=[ ]*$//
21649 }'
21650 fi
21651
21652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21653 fi # test -n "$CONFIG_FILES"
21654
21655 # Set up the scripts for CONFIG_HEADERS section.
21656 # No need to generate them if there are no CONFIG_HEADERS.
21657 # This happens for instance with `./config.status Makefile'.
21658 if test -n "$CONFIG_HEADERS"; then
21659 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21660 BEGIN {
21661 _ACEOF
21662
21663 # Transform confdefs.h into an awk script `defines.awk', embedded as
21664 # here-document in config.status, that substitutes the proper values into
21665 # config.h.in to produce config.h.
21666
21667 # Create a delimiter string that does not exist in confdefs.h, to ease
21668 # handling of long lines.
21669 ac_delim='%!_!# '
21670 for ac_last_try in false false :; do
21671 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21672 if test -z "$ac_tt"; then
21673 break
21674 elif $ac_last_try; then
21675 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21676 else
21677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21678 fi
21679 done
21680
21681 # For the awk script, D is an array of macro values keyed by name,
21682 # likewise P contains macro parameters if any. Preserve backslash
21683 # newline sequences.
21684
21685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21686 sed -n '
21687 s/.\{148\}/&'"$ac_delim"'/g
21688 t rset
21689 :rset
21690 s/^[ ]*#[ ]*define[ ][ ]*/ /
21691 t def
21692 d
21693 :def
21694 s/\\$//
21695 t bsnl
21696 s/["\\]/\\&/g
21697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21698 D["\1"]=" \3"/p
21699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21700 d
21701 :bsnl
21702 s/["\\]/\\&/g
21703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21704 D["\1"]=" \3\\\\\\n"\\/p
21705 t cont
21706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21707 t cont
21708 d
21709 :cont
21710 n
21711 s/.\{148\}/&'"$ac_delim"'/g
21712 t clear
21713 :clear
21714 s/\\$//
21715 t bsnlc
21716 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21717 d
21718 :bsnlc
21719 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21720 b cont
21721 ' <confdefs.h | sed '
21722 s/'"$ac_delim"'/"\\\
21723 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21724
21725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21726 for (key in D) D_is_set[key] = 1
21727 FS = "\a"
21728 }
21729 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21730 line = \$ 0
21731 split(line, arg, " ")
21732 if (arg[1] == "#") {
21733 defundef = arg[2]
21734 mac1 = arg[3]
21735 } else {
21736 defundef = substr(arg[1], 2)
21737 mac1 = arg[2]
21738 }
21739 split(mac1, mac2, "(") #)
21740 macro = mac2[1]
21741 prefix = substr(line, 1, index(line, defundef) - 1)
21742 if (D_is_set[macro]) {
21743 # Preserve the white space surrounding the "#".
21744 print prefix "define", macro P[macro] D[macro]
21745 next
21746 } else {
21747 # Replace #undef with comments. This is necessary, for example,
21748 # in the case of _POSIX_SOURCE, which is predefined and required
21749 # on some systems where configure will not decide to define it.
21750 if (defundef == "undef") {
21751 print "/*", prefix defundef, macro, "*/"
21752 next
21753 }
21754 }
21755 }
21756 { print }
21757 _ACAWK
21758 _ACEOF
21759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21760 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21761 fi # test -n "$CONFIG_HEADERS"
21762
21763
21764 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21765 shift
21766 for ac_tag
21767 do
21768 case $ac_tag in
21769 :[FHLC]) ac_mode=$ac_tag; continue;;
21770 esac
21771 case $ac_mode$ac_tag in
21772 :[FHL]*:*);;
21773 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21774 :[FH]-) ac_tag=-:-;;
21775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21776 esac
21777 ac_save_IFS=$IFS
21778 IFS=:
21779 set x $ac_tag
21780 IFS=$ac_save_IFS
21781 shift
21782 ac_file=$1
21783 shift
21784
21785 case $ac_mode in
21786 :L) ac_source=$1;;
21787 :[FH])
21788 ac_file_inputs=
21789 for ac_f
21790 do
21791 case $ac_f in
21792 -) ac_f="$ac_tmp/stdin";;
21793 *) # Look for the file first in the build tree, then in the source tree
21794 # (if the path is not absolute). The absolute path cannot be DOS-style,
21795 # because $ac_f cannot contain `:'.
21796 test -f "$ac_f" ||
21797 case $ac_f in
21798 [\\/$]*) false;;
21799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21800 esac ||
21801 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21802 esac
21803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21804 as_fn_append ac_file_inputs " '$ac_f'"
21805 done
21806
21807 # Let's still pretend it is `configure' which instantiates (i.e., don't
21808 # use $as_me), people would be surprised to read:
21809 # /* config.h. Generated by config.status. */
21810 configure_input='Generated from '`
21811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21812 `' by configure.'
21813 if test x"$ac_file" != x-; then
21814 configure_input="$ac_file. $configure_input"
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21816 $as_echo "$as_me: creating $ac_file" >&6;}
21817 fi
21818 # Neutralize special characters interpreted by sed in replacement strings.
21819 case $configure_input in #(
21820 *\&* | *\|* | *\\* )
21821 ac_sed_conf_input=`$as_echo "$configure_input" |
21822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21823 *) ac_sed_conf_input=$configure_input;;
21824 esac
21825
21826 case $ac_tag in
21827 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21829 esac
21830 ;;
21831 esac
21832
21833 ac_dir=`$as_dirname -- "$ac_file" ||
21834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21835 X"$ac_file" : 'X\(//\)[^/]' \| \
21836 X"$ac_file" : 'X\(//\)$' \| \
21837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21838 $as_echo X"$ac_file" |
21839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21840 s//\1/
21841 q
21842 }
21843 /^X\(\/\/\)[^/].*/{
21844 s//\1/
21845 q
21846 }
21847 /^X\(\/\/\)$/{
21848 s//\1/
21849 q
21850 }
21851 /^X\(\/\).*/{
21852 s//\1/
21853 q
21854 }
21855 s/.*/./; q'`
21856 as_dir="$ac_dir"; as_fn_mkdir_p
21857 ac_builddir=.
21858
21859 case "$ac_dir" in
21860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21861 *)
21862 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21863 # A ".." for each directory in $ac_dir_suffix.
21864 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21865 case $ac_top_builddir_sub in
21866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21868 esac ;;
21869 esac
21870 ac_abs_top_builddir=$ac_pwd
21871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21872 # for backward compatibility:
21873 ac_top_builddir=$ac_top_build_prefix
21874
21875 case $srcdir in
21876 .) # We are building in place.
21877 ac_srcdir=.
21878 ac_top_srcdir=$ac_top_builddir_sub
21879 ac_abs_top_srcdir=$ac_pwd ;;
21880 [\\/]* | ?:[\\/]* ) # Absolute name.
21881 ac_srcdir=$srcdir$ac_dir_suffix;
21882 ac_top_srcdir=$srcdir
21883 ac_abs_top_srcdir=$srcdir ;;
21884 *) # Relative name.
21885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21886 ac_top_srcdir=$ac_top_build_prefix$srcdir
21887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21888 esac
21889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21890
21891
21892 case $ac_mode in
21893 :F)
21894 #
21895 # CONFIG_FILE
21896 #
21897
21898 case $INSTALL in
21899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21900 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21901 esac
21902 ac_MKDIR_P=$MKDIR_P
21903 case $MKDIR_P in
21904 [\\/$]* | ?:[\\/]* ) ;;
21905 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21906 esac
21907 _ACEOF
21908
21909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21910 # If the template does not know about datarootdir, expand it.
21911 # FIXME: This hack should be removed a few years after 2.60.
21912 ac_datarootdir_hack=; ac_datarootdir_seen=
21913 ac_sed_dataroot='
21914 /datarootdir/ {
21915 p
21916 q
21917 }
21918 /@datadir@/p
21919 /@docdir@/p
21920 /@infodir@/p
21921 /@localedir@/p
21922 /@mandir@/p'
21923 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21924 *datarootdir*) ac_datarootdir_seen=yes;;
21925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21927 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21928 _ACEOF
21929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21930 ac_datarootdir_hack='
21931 s&@datadir@&$datadir&g
21932 s&@docdir@&$docdir&g
21933 s&@infodir@&$infodir&g
21934 s&@localedir@&$localedir&g
21935 s&@mandir@&$mandir&g
21936 s&\\\${datarootdir}&$datarootdir&g' ;;
21937 esac
21938 _ACEOF
21939
21940 # Neutralize VPATH when `$srcdir' = `.'.
21941 # Shell code in configure.ac might set extrasub.
21942 # FIXME: do we really want to maintain this feature?
21943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21944 ac_sed_extra="$ac_vpsub
21945 $extrasub
21946 _ACEOF
21947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21948 :t
21949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21950 s|@configure_input@|$ac_sed_conf_input|;t t
21951 s&@top_builddir@&$ac_top_builddir_sub&;t t
21952 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21953 s&@srcdir@&$ac_srcdir&;t t
21954 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21955 s&@top_srcdir@&$ac_top_srcdir&;t t
21956 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21957 s&@builddir@&$ac_builddir&;t t
21958 s&@abs_builddir@&$ac_abs_builddir&;t t
21959 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21960 s&@INSTALL@&$ac_INSTALL&;t t
21961 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21962 $ac_datarootdir_hack
21963 "
21964 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21965 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21966
21967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21968 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21969 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21970 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21972 which seems to be undefined. Please make sure it is defined" >&5
21973 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21974 which seems to be undefined. Please make sure it is defined" >&2;}
21975
21976 rm -f "$ac_tmp/stdin"
21977 case $ac_file in
21978 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21979 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21980 esac \
21981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21982 ;;
21983 :H)
21984 #
21985 # CONFIG_HEADER
21986 #
21987 if test x"$ac_file" != x-; then
21988 {
21989 $as_echo "/* $configure_input */" \
21990 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21991 } >"$ac_tmp/config.h" \
21992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21993 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21995 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21996 else
21997 rm -f "$ac_file"
21998 mv "$ac_tmp/config.h" "$ac_file" \
21999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22000 fi
22001 else
22002 $as_echo "/* $configure_input */" \
22003 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22004 || as_fn_error $? "could not create -" "$LINENO" 5
22005 fi
22006 # Compute "$ac_file"'s index in $config_headers.
22007 _am_arg="$ac_file"
22008 _am_stamp_count=1
22009 for _am_header in $config_headers :; do
22010 case $_am_header in
22011 $_am_arg | $_am_arg:* )
22012 break ;;
22013 * )
22014 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22015 esac
22016 done
22017 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22018 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22019 X"$_am_arg" : 'X\(//\)[^/]' \| \
22020 X"$_am_arg" : 'X\(//\)$' \| \
22021 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22022 $as_echo X"$_am_arg" |
22023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22024 s//\1/
22025 q
22026 }
22027 /^X\(\/\/\)[^/].*/{
22028 s//\1/
22029 q
22030 }
22031 /^X\(\/\/\)$/{
22032 s//\1/
22033 q
22034 }
22035 /^X\(\/\).*/{
22036 s//\1/
22037 q
22038 }
22039 s/.*/./; q'`/stamp-h$_am_stamp_count
22040 ;;
22041
22042 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22043 $as_echo "$as_me: executing $ac_file commands" >&6;}
22044 ;;
22045 esac
22046
22047
22048 case $ac_file$ac_mode in
22049 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22050 # Older Autoconf quotes --file arguments for eval, but not when files
22051 # are listed without --file. Let's play safe and only enable the eval
22052 # if we detect the quoting.
22053 case $CONFIG_FILES in
22054 *\'*) eval set x "$CONFIG_FILES" ;;
22055 *) set x $CONFIG_FILES ;;
22056 esac
22057 shift
22058 for mf
22059 do
22060 # Strip MF so we end up with the name of the file.
22061 mf=`echo "$mf" | sed -e 's/:.*$//'`
22062 # Check whether this is an Automake generated Makefile or not.
22063 # We used to match only the files named 'Makefile.in', but
22064 # some people rename them; so instead we look at the file content.
22065 # Grep'ing the first line is not enough: some people post-process
22066 # each Makefile.in and add a new line on top of each file to say so.
22067 # Grep'ing the whole file is not good either: AIX grep has a line
22068 # limit of 2048, but all sed's we know have understand at least 4000.
22069 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22070 dirpart=`$as_dirname -- "$mf" ||
22071 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22072 X"$mf" : 'X\(//\)[^/]' \| \
22073 X"$mf" : 'X\(//\)$' \| \
22074 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22075 $as_echo X"$mf" |
22076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22077 s//\1/
22078 q
22079 }
22080 /^X\(\/\/\)[^/].*/{
22081 s//\1/
22082 q
22083 }
22084 /^X\(\/\/\)$/{
22085 s//\1/
22086 q
22087 }
22088 /^X\(\/\).*/{
22089 s//\1/
22090 q
22091 }
22092 s/.*/./; q'`
22093 else
22094 continue
22095 fi
22096 # Extract the definition of DEPDIR, am__include, and am__quote
22097 # from the Makefile without running 'make'.
22098 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22099 test -z "$DEPDIR" && continue
22100 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22101 test -z "am__include" && continue
22102 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22103 # Find all dependency output files, they are included files with
22104 # $(DEPDIR) in their names. We invoke sed twice because it is the
22105 # simplest approach to changing $(DEPDIR) to its actual value in the
22106 # expansion.
22107 for file in `sed -n "
22108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22110 # Make sure the directory exists.
22111 test -f "$dirpart/$file" && continue
22112 fdir=`$as_dirname -- "$file" ||
22113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22114 X"$file" : 'X\(//\)[^/]' \| \
22115 X"$file" : 'X\(//\)$' \| \
22116 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22117 $as_echo X"$file" |
22118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22119 s//\1/
22120 q
22121 }
22122 /^X\(\/\/\)[^/].*/{
22123 s//\1/
22124 q
22125 }
22126 /^X\(\/\/\)$/{
22127 s//\1/
22128 q
22129 }
22130 /^X\(\/\).*/{
22131 s//\1/
22132 q
22133 }
22134 s/.*/./; q'`
22135 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22136 # echo "creating $dirpart/$file"
22137 echo '# dummy' > "$dirpart/$file"
22138 done
22139 done
22140 }
22141 ;;
22142 "libtool":C)
22143
22144 # See if we are running on zsh, and set the options which allow our
22145 # commands through without removal of \ escapes.
22146 if test -n "${ZSH_VERSION+set}" ; then
22147 setopt NO_GLOB_SUBST
22148 fi
22149
22150 cfgfile="${ofile}T"
22151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22152 $RM "$cfgfile"
22153
22154 cat <<_LT_EOF >> "$cfgfile"
22155 #! $SHELL
22156
22157 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22158 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22161 #
22162 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22163 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22164 # Foundation, Inc.
22165 # Written by Gordon Matzigkeit, 1996
22166 #
22167 # This file is part of GNU Libtool.
22168 #
22169 # GNU Libtool is free software; you can redistribute it and/or
22170 # modify it under the terms of the GNU General Public License as
22171 # published by the Free Software Foundation; either version 2 of
22172 # the License, or (at your option) any later version.
22173 #
22174 # As a special exception to the GNU General Public License,
22175 # if you distribute this file as part of a program or library that
22176 # is built using GNU Libtool, you may include this file under the
22177 # same distribution terms that you use for the rest of that program.
22178 #
22179 # GNU Libtool is distributed in the hope that it will be useful,
22180 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22181 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22182 # GNU General Public License for more details.
22183 #
22184 # You should have received a copy of the GNU General Public License
22185 # along with GNU Libtool; see the file COPYING. If not, a copy
22186 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22187 # obtained by writing to the Free Software Foundation, Inc.,
22188 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22189
22190
22191 # The names of the tagged configurations supported by this script.
22192 available_tags="CXX "
22193
22194 # ### BEGIN LIBTOOL CONFIG
22195
22196 # Which release of libtool.m4 was used?
22197 macro_version=$macro_version
22198 macro_revision=$macro_revision
22199
22200 # Whether or not to build static libraries.
22201 build_old_libs=$enable_static
22202
22203 # Whether or not to build shared libraries.
22204 build_libtool_libs=$enable_shared
22205
22206 # What type of objects to build.
22207 pic_mode=$pic_mode
22208
22209 # Whether or not to optimize for fast installation.
22210 fast_install=$enable_fast_install
22211
22212 # Shell to use when invoking shell scripts.
22213 SHELL=$lt_SHELL
22214
22215 # An echo program that protects backslashes.
22216 ECHO=$lt_ECHO
22217
22218 # The PATH separator for the build system.
22219 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22220
22221 # The host system.
22222 host_alias=$host_alias
22223 host=$host
22224 host_os=$host_os
22225
22226 # The build system.
22227 build_alias=$build_alias
22228 build=$build
22229 build_os=$build_os
22230
22231 # A sed program that does not truncate output.
22232 SED=$lt_SED
22233
22234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22235 Xsed="\$SED -e 1s/^X//"
22236
22237 # A grep program that handles long lines.
22238 GREP=$lt_GREP
22239
22240 # An ERE matcher.
22241 EGREP=$lt_EGREP
22242
22243 # A literal string matcher.
22244 FGREP=$lt_FGREP
22245
22246 # A BSD- or MS-compatible name lister.
22247 NM=$lt_NM
22248
22249 # Whether we need soft or hard links.
22250 LN_S=$lt_LN_S
22251
22252 # What is the maximum length of a command?
22253 max_cmd_len=$max_cmd_len
22254
22255 # Object file suffix (normally "o").
22256 objext=$ac_objext
22257
22258 # Executable file suffix (normally "").
22259 exeext=$exeext
22260
22261 # whether the shell understands "unset".
22262 lt_unset=$lt_unset
22263
22264 # turn spaces into newlines.
22265 SP2NL=$lt_lt_SP2NL
22266
22267 # turn newlines into spaces.
22268 NL2SP=$lt_lt_NL2SP
22269
22270 # convert \$build file names to \$host format.
22271 to_host_file_cmd=$lt_cv_to_host_file_cmd
22272
22273 # convert \$build files to toolchain format.
22274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22275
22276 # An object symbol dumper.
22277 OBJDUMP=$lt_OBJDUMP
22278
22279 # Method to check whether dependent libraries are shared objects.
22280 deplibs_check_method=$lt_deplibs_check_method
22281
22282 # Command to use when deplibs_check_method = "file_magic".
22283 file_magic_cmd=$lt_file_magic_cmd
22284
22285 # How to find potential files when deplibs_check_method = "file_magic".
22286 file_magic_glob=$lt_file_magic_glob
22287
22288 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22289 want_nocaseglob=$lt_want_nocaseglob
22290
22291 # DLL creation program.
22292 DLLTOOL=$lt_DLLTOOL
22293
22294 # Command to associate shared and link libraries.
22295 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22296
22297 # The archiver.
22298 AR=$lt_AR
22299
22300 # Flags to create an archive.
22301 AR_FLAGS=$lt_AR_FLAGS
22302
22303 # How to feed a file listing to the archiver.
22304 archiver_list_spec=$lt_archiver_list_spec
22305
22306 # A symbol stripping program.
22307 STRIP=$lt_STRIP
22308
22309 # Commands used to install an old-style archive.
22310 RANLIB=$lt_RANLIB
22311 old_postinstall_cmds=$lt_old_postinstall_cmds
22312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22313
22314 # Whether to use a lock for old archive extraction.
22315 lock_old_archive_extraction=$lock_old_archive_extraction
22316
22317 # A C compiler.
22318 LTCC=$lt_CC
22319
22320 # LTCC compiler flags.
22321 LTCFLAGS=$lt_CFLAGS
22322
22323 # Take the output of nm and produce a listing of raw symbols and C names.
22324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22325
22326 # Transform the output of nm in a proper C declaration.
22327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22328
22329 # Transform the output of nm in a C name address pair.
22330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22331
22332 # Transform the output of nm in a C name address pair when lib prefix is needed.
22333 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22334
22335 # Specify filename containing input files for \$NM.
22336 nm_file_list_spec=$lt_nm_file_list_spec
22337
22338 # The root where to search for dependent libraries,and in which our libraries should be installed.
22339 lt_sysroot=$lt_sysroot
22340
22341 # The name of the directory that contains temporary libtool files.
22342 objdir=$objdir
22343
22344 # Used to examine libraries when file_magic_cmd begins with "file".
22345 MAGIC_CMD=$MAGIC_CMD
22346
22347 # Must we lock files when doing compilation?
22348 need_locks=$lt_need_locks
22349
22350 # Manifest tool.
22351 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22352
22353 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22354 DSYMUTIL=$lt_DSYMUTIL
22355
22356 # Tool to change global to local symbols on Mac OS X.
22357 NMEDIT=$lt_NMEDIT
22358
22359 # Tool to manipulate fat objects and archives on Mac OS X.
22360 LIPO=$lt_LIPO
22361
22362 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22363 OTOOL=$lt_OTOOL
22364
22365 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22366 OTOOL64=$lt_OTOOL64
22367
22368 # Old archive suffix (normally "a").
22369 libext=$libext
22370
22371 # Shared library suffix (normally ".so").
22372 shrext_cmds=$lt_shrext_cmds
22373
22374 # The commands to extract the exported symbol list from a shared archive.
22375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22376
22377 # Variables whose values should be saved in libtool wrapper scripts and
22378 # restored at link time.
22379 variables_saved_for_relink=$lt_variables_saved_for_relink
22380
22381 # Do we need the "lib" prefix for modules?
22382 need_lib_prefix=$need_lib_prefix
22383
22384 # Do we need a version for libraries?
22385 need_version=$need_version
22386
22387 # Library versioning type.
22388 version_type=$version_type
22389
22390 # Shared library runtime path variable.
22391 runpath_var=$runpath_var
22392
22393 # Shared library path variable.
22394 shlibpath_var=$shlibpath_var
22395
22396 # Is shlibpath searched before the hard-coded library search path?
22397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22398
22399 # Format of library name prefix.
22400 libname_spec=$lt_libname_spec
22401
22402 # List of archive names. First name is the real one, the rest are links.
22403 # The last name is the one that the linker finds with -lNAME
22404 library_names_spec=$lt_library_names_spec
22405
22406 # The coded name of the library, if different from the real name.
22407 soname_spec=$lt_soname_spec
22408
22409 # Permission mode override for installation of shared libraries.
22410 install_override_mode=$lt_install_override_mode
22411
22412 # Command to use after installation of a shared archive.
22413 postinstall_cmds=$lt_postinstall_cmds
22414
22415 # Command to use after uninstallation of a shared archive.
22416 postuninstall_cmds=$lt_postuninstall_cmds
22417
22418 # Commands used to finish a libtool library installation in a directory.
22419 finish_cmds=$lt_finish_cmds
22420
22421 # As "finish_cmds", except a single script fragment to be evaled but
22422 # not shown.
22423 finish_eval=$lt_finish_eval
22424
22425 # Whether we should hardcode library paths into libraries.
22426 hardcode_into_libs=$hardcode_into_libs
22427
22428 # Compile-time system search path for libraries.
22429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22430
22431 # Run-time system search path for libraries.
22432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22433
22434 # Whether dlopen is supported.
22435 dlopen_support=$enable_dlopen
22436
22437 # Whether dlopen of programs is supported.
22438 dlopen_self=$enable_dlopen_self
22439
22440 # Whether dlopen of statically linked programs is supported.
22441 dlopen_self_static=$enable_dlopen_self_static
22442
22443 # Commands to strip libraries.
22444 old_striplib=$lt_old_striplib
22445 striplib=$lt_striplib
22446
22447
22448 # The linker used to build libraries.
22449 LD=$lt_LD
22450
22451 # How to create reloadable object files.
22452 reload_flag=$lt_reload_flag
22453 reload_cmds=$lt_reload_cmds
22454
22455 # Commands used to build an old-style archive.
22456 old_archive_cmds=$lt_old_archive_cmds
22457
22458 # A language specific compiler.
22459 CC=$lt_compiler
22460
22461 # Is the compiler the GNU compiler?
22462 with_gcc=$GCC
22463
22464 # Compiler flag to turn off builtin functions.
22465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22466
22467 # Additional compiler flags for building library objects.
22468 pic_flag=$lt_lt_prog_compiler_pic
22469
22470 # How to pass a linker flag through the compiler.
22471 wl=$lt_lt_prog_compiler_wl
22472
22473 # Compiler flag to prevent dynamic linking.
22474 link_static_flag=$lt_lt_prog_compiler_static
22475
22476 # Does compiler simultaneously support -c and -o options?
22477 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22478
22479 # Whether or not to add -lc for building shared libraries.
22480 build_libtool_need_lc=$archive_cmds_need_lc
22481
22482 # Whether or not to disallow shared libs when runtime libs are static.
22483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22484
22485 # Compiler flag to allow reflexive dlopens.
22486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22487
22488 # Compiler flag to generate shared objects directly from archives.
22489 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22490
22491 # Whether the compiler copes with passing no objects directly.
22492 compiler_needs_object=$lt_compiler_needs_object
22493
22494 # Create an old-style archive from a shared archive.
22495 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22496
22497 # Create a temporary old-style archive to link instead of a shared archive.
22498 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22499
22500 # Commands used to build a shared archive.
22501 archive_cmds=$lt_archive_cmds
22502 archive_expsym_cmds=$lt_archive_expsym_cmds
22503
22504 # Commands used to build a loadable module if different from building
22505 # a shared archive.
22506 module_cmds=$lt_module_cmds
22507 module_expsym_cmds=$lt_module_expsym_cmds
22508
22509 # Whether we are building with GNU ld or not.
22510 with_gnu_ld=$lt_with_gnu_ld
22511
22512 # Flag that allows shared libraries with undefined symbols to be built.
22513 allow_undefined_flag=$lt_allow_undefined_flag
22514
22515 # Flag that enforces no undefined symbols.
22516 no_undefined_flag=$lt_no_undefined_flag
22517
22518 # Flag to hardcode \$libdir into a binary during linking.
22519 # This must work even if \$libdir does not exist
22520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22521
22522 # Whether we need a single "-rpath" flag with a separated argument.
22523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22524
22525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22526 # DIR into the resulting binary.
22527 hardcode_direct=$hardcode_direct
22528
22529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22530 # DIR into the resulting binary and the resulting library dependency is
22531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22532 # library is relocated.
22533 hardcode_direct_absolute=$hardcode_direct_absolute
22534
22535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22536 # into the resulting binary.
22537 hardcode_minus_L=$hardcode_minus_L
22538
22539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22540 # into the resulting binary.
22541 hardcode_shlibpath_var=$hardcode_shlibpath_var
22542
22543 # Set to "yes" if building a shared library automatically hardcodes DIR
22544 # into the library and all subsequent libraries and executables linked
22545 # against it.
22546 hardcode_automatic=$hardcode_automatic
22547
22548 # Set to yes if linker adds runtime paths of dependent libraries
22549 # to runtime path list.
22550 inherit_rpath=$inherit_rpath
22551
22552 # Whether libtool must link a program against all its dependency libraries.
22553 link_all_deplibs=$link_all_deplibs
22554
22555 # Set to "yes" if exported symbols are required.
22556 always_export_symbols=$always_export_symbols
22557
22558 # The commands to list exported symbols.
22559 export_symbols_cmds=$lt_export_symbols_cmds
22560
22561 # Symbols that should not be listed in the preloaded symbols.
22562 exclude_expsyms=$lt_exclude_expsyms
22563
22564 # Symbols that must always be exported.
22565 include_expsyms=$lt_include_expsyms
22566
22567 # Commands necessary for linking programs (against libraries) with templates.
22568 prelink_cmds=$lt_prelink_cmds
22569
22570 # Commands necessary for finishing linking programs.
22571 postlink_cmds=$lt_postlink_cmds
22572
22573 # Specify filename containing input files.
22574 file_list_spec=$lt_file_list_spec
22575
22576 # How to hardcode a shared library path into an executable.
22577 hardcode_action=$hardcode_action
22578
22579 # The directories searched by this compiler when creating a shared library.
22580 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22581
22582 # Dependencies to place before and after the objects being linked to
22583 # create a shared library.
22584 predep_objects=$lt_predep_objects
22585 postdep_objects=$lt_postdep_objects
22586 predeps=$lt_predeps
22587 postdeps=$lt_postdeps
22588
22589 # The library search path used internally by the compiler when linking
22590 # a shared library.
22591 compiler_lib_search_path=$lt_compiler_lib_search_path
22592
22593 # ### END LIBTOOL CONFIG
22594
22595 _LT_EOF
22596
22597 case $host_os in
22598 aix3*)
22599 cat <<\_LT_EOF >> "$cfgfile"
22600 # AIX sometimes has problems with the GCC collect2 program. For some
22601 # reason, if we set the COLLECT_NAMES environment variable, the problems
22602 # vanish in a puff of smoke.
22603 if test "X${COLLECT_NAMES+set}" != Xset; then
22604 COLLECT_NAMES=
22605 export COLLECT_NAMES
22606 fi
22607 _LT_EOF
22608 ;;
22609 esac
22610
22611
22612 ltmain="$ac_aux_dir/ltmain.sh"
22613
22614
22615 # We use sed instead of cat because bash on DJGPP gets confused if
22616 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22617 # text mode, it properly converts lines to CR/LF. This bash problem
22618 # is reportedly fixed, but why not run on old versions too?
22619 sed '$q' "$ltmain" >> "$cfgfile" \
22620 || (rm -f "$cfgfile"; exit 1)
22621
22622 if test x"$xsi_shell" = xyes; then
22623 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22624 func_dirname ()\
22625 {\
22626 \ case ${1} in\
22627 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22628 \ * ) func_dirname_result="${3}" ;;\
22629 \ esac\
22630 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22631 && mv -f "$cfgfile.tmp" "$cfgfile" \
22632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22633 test 0 -eq $? || _lt_function_replace_fail=:
22634
22635
22636 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22637 func_basename ()\
22638 {\
22639 \ func_basename_result="${1##*/}"\
22640 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22641 && mv -f "$cfgfile.tmp" "$cfgfile" \
22642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22643 test 0 -eq $? || _lt_function_replace_fail=:
22644
22645
22646 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22647 func_dirname_and_basename ()\
22648 {\
22649 \ case ${1} in\
22650 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22651 \ * ) func_dirname_result="${3}" ;;\
22652 \ esac\
22653 \ func_basename_result="${1##*/}"\
22654 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22655 && mv -f "$cfgfile.tmp" "$cfgfile" \
22656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22657 test 0 -eq $? || _lt_function_replace_fail=:
22658
22659
22660 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22661 func_stripname ()\
22662 {\
22663 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22664 \ # positional parameters, so assign one to ordinary parameter first.\
22665 \ func_stripname_result=${3}\
22666 \ func_stripname_result=${func_stripname_result#"${1}"}\
22667 \ func_stripname_result=${func_stripname_result%"${2}"}\
22668 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22669 && mv -f "$cfgfile.tmp" "$cfgfile" \
22670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22671 test 0 -eq $? || _lt_function_replace_fail=:
22672
22673
22674 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22675 func_split_long_opt ()\
22676 {\
22677 \ func_split_long_opt_name=${1%%=*}\
22678 \ func_split_long_opt_arg=${1#*=}\
22679 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22680 && mv -f "$cfgfile.tmp" "$cfgfile" \
22681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22682 test 0 -eq $? || _lt_function_replace_fail=:
22683
22684
22685 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22686 func_split_short_opt ()\
22687 {\
22688 \ func_split_short_opt_arg=${1#??}\
22689 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22690 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22691 && mv -f "$cfgfile.tmp" "$cfgfile" \
22692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22693 test 0 -eq $? || _lt_function_replace_fail=:
22694
22695
22696 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22697 func_lo2o ()\
22698 {\
22699 \ case ${1} in\
22700 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22701 \ *) func_lo2o_result=${1} ;;\
22702 \ esac\
22703 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22704 && mv -f "$cfgfile.tmp" "$cfgfile" \
22705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22706 test 0 -eq $? || _lt_function_replace_fail=:
22707
22708
22709 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22710 func_xform ()\
22711 {\
22712 func_xform_result=${1%.*}.lo\
22713 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22714 && mv -f "$cfgfile.tmp" "$cfgfile" \
22715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22716 test 0 -eq $? || _lt_function_replace_fail=:
22717
22718
22719 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22720 func_arith ()\
22721 {\
22722 func_arith_result=$(( $* ))\
22723 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22724 && mv -f "$cfgfile.tmp" "$cfgfile" \
22725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22726 test 0 -eq $? || _lt_function_replace_fail=:
22727
22728
22729 sed -e '/^func_len ()$/,/^} # func_len /c\
22730 func_len ()\
22731 {\
22732 func_len_result=${#1}\
22733 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22734 && mv -f "$cfgfile.tmp" "$cfgfile" \
22735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22736 test 0 -eq $? || _lt_function_replace_fail=:
22737
22738 fi
22739
22740 if test x"$lt_shell_append" = xyes; then
22741 sed -e '/^func_append ()$/,/^} # func_append /c\
22742 func_append ()\
22743 {\
22744 eval "${1}+=\\${2}"\
22745 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22746 && mv -f "$cfgfile.tmp" "$cfgfile" \
22747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22748 test 0 -eq $? || _lt_function_replace_fail=:
22749
22750
22751 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22752 func_append_quoted ()\
22753 {\
22754 \ func_quote_for_eval "${2}"\
22755 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22756 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22757 && mv -f "$cfgfile.tmp" "$cfgfile" \
22758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22759 test 0 -eq $? || _lt_function_replace_fail=:
22760
22761
22762 # Save a `func_append' function call where possible by direct use of '+='
22763 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22764 && mv -f "$cfgfile.tmp" "$cfgfile" \
22765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22766 test 0 -eq $? || _lt_function_replace_fail=:
22767 else
22768 # Save a `func_append' function call even when '+=' is not available
22769 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22770 && mv -f "$cfgfile.tmp" "$cfgfile" \
22771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22772 test 0 -eq $? || _lt_function_replace_fail=:
22773 fi
22774
22775 if test x"$_lt_function_replace_fail" = x":"; then
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22777 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22778 fi
22779
22780
22781 mv -f "$cfgfile" "$ofile" ||
22782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22783 chmod +x "$ofile"
22784
22785
22786 cat <<_LT_EOF >> "$ofile"
22787
22788 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22789
22790 # The linker used to build libraries.
22791 LD=$lt_LD_CXX
22792
22793 # How to create reloadable object files.
22794 reload_flag=$lt_reload_flag_CXX
22795 reload_cmds=$lt_reload_cmds_CXX
22796
22797 # Commands used to build an old-style archive.
22798 old_archive_cmds=$lt_old_archive_cmds_CXX
22799
22800 # A language specific compiler.
22801 CC=$lt_compiler_CXX
22802
22803 # Is the compiler the GNU compiler?
22804 with_gcc=$GCC_CXX
22805
22806 # Compiler flag to turn off builtin functions.
22807 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22808
22809 # Additional compiler flags for building library objects.
22810 pic_flag=$lt_lt_prog_compiler_pic_CXX
22811
22812 # How to pass a linker flag through the compiler.
22813 wl=$lt_lt_prog_compiler_wl_CXX
22814
22815 # Compiler flag to prevent dynamic linking.
22816 link_static_flag=$lt_lt_prog_compiler_static_CXX
22817
22818 # Does compiler simultaneously support -c and -o options?
22819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22820
22821 # Whether or not to add -lc for building shared libraries.
22822 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22823
22824 # Whether or not to disallow shared libs when runtime libs are static.
22825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22826
22827 # Compiler flag to allow reflexive dlopens.
22828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22829
22830 # Compiler flag to generate shared objects directly from archives.
22831 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22832
22833 # Whether the compiler copes with passing no objects directly.
22834 compiler_needs_object=$lt_compiler_needs_object_CXX
22835
22836 # Create an old-style archive from a shared archive.
22837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22838
22839 # Create a temporary old-style archive to link instead of a shared archive.
22840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22841
22842 # Commands used to build a shared archive.
22843 archive_cmds=$lt_archive_cmds_CXX
22844 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22845
22846 # Commands used to build a loadable module if different from building
22847 # a shared archive.
22848 module_cmds=$lt_module_cmds_CXX
22849 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22850
22851 # Whether we are building with GNU ld or not.
22852 with_gnu_ld=$lt_with_gnu_ld_CXX
22853
22854 # Flag that allows shared libraries with undefined symbols to be built.
22855 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22856
22857 # Flag that enforces no undefined symbols.
22858 no_undefined_flag=$lt_no_undefined_flag_CXX
22859
22860 # Flag to hardcode \$libdir into a binary during linking.
22861 # This must work even if \$libdir does not exist
22862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22863
22864 # Whether we need a single "-rpath" flag with a separated argument.
22865 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22866
22867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22868 # DIR into the resulting binary.
22869 hardcode_direct=$hardcode_direct_CXX
22870
22871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22872 # DIR into the resulting binary and the resulting library dependency is
22873 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22874 # library is relocated.
22875 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22876
22877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22878 # into the resulting binary.
22879 hardcode_minus_L=$hardcode_minus_L_CXX
22880
22881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22882 # into the resulting binary.
22883 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22884
22885 # Set to "yes" if building a shared library automatically hardcodes DIR
22886 # into the library and all subsequent libraries and executables linked
22887 # against it.
22888 hardcode_automatic=$hardcode_automatic_CXX
22889
22890 # Set to yes if linker adds runtime paths of dependent libraries
22891 # to runtime path list.
22892 inherit_rpath=$inherit_rpath_CXX
22893
22894 # Whether libtool must link a program against all its dependency libraries.
22895 link_all_deplibs=$link_all_deplibs_CXX
22896
22897 # Set to "yes" if exported symbols are required.
22898 always_export_symbols=$always_export_symbols_CXX
22899
22900 # The commands to list exported symbols.
22901 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22902
22903 # Symbols that should not be listed in the preloaded symbols.
22904 exclude_expsyms=$lt_exclude_expsyms_CXX
22905
22906 # Symbols that must always be exported.
22907 include_expsyms=$lt_include_expsyms_CXX
22908
22909 # Commands necessary for linking programs (against libraries) with templates.
22910 prelink_cmds=$lt_prelink_cmds_CXX
22911
22912 # Commands necessary for finishing linking programs.
22913 postlink_cmds=$lt_postlink_cmds_CXX
22914
22915 # Specify filename containing input files.
22916 file_list_spec=$lt_file_list_spec_CXX
22917
22918 # How to hardcode a shared library path into an executable.
22919 hardcode_action=$hardcode_action_CXX
22920
22921 # The directories searched by this compiler when creating a shared library.
22922 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22923
22924 # Dependencies to place before and after the objects being linked to
22925 # create a shared library.
22926 predep_objects=$lt_predep_objects_CXX
22927 postdep_objects=$lt_postdep_objects_CXX
22928 predeps=$lt_predeps_CXX
22929 postdeps=$lt_postdeps_CXX
22930
22931 # The library search path used internally by the compiler when linking
22932 # a shared library.
22933 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22934
22935 # ### END LIBTOOL TAG CONFIG: CXX
22936 _LT_EOF
22937
22938 ;;
22939
22940 esac
22941 done # for ac_tag
22942
22943
22944 as_fn_exit 0
22945 _ACEOF
22946 ac_clean_files=$ac_clean_files_save
22947
22948 test $ac_write_fail = 0 ||
22949 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22950
22951
22952 # configure is writing to config.log, and then calls config.status.
22953 # config.status does its own redirection, appending to config.log.
22954 # Unfortunately, on DOS this fails, as config.log is still kept open
22955 # by configure, so config.status won't be able to write to it; its
22956 # output is simply discarded. So we exec the FD to /dev/null,
22957 # effectively closing config.log, so it can be properly (re)opened and
22958 # appended to by config.status. When coming back to configure, we
22959 # need to make the FD available again.
22960 if test "$no_create" != yes; then
22961 ac_cs_success=:
22962 ac_config_status_args=
22963 test "$silent" = yes &&
22964 ac_config_status_args="$ac_config_status_args --quiet"
22965 exec 5>/dev/null
22966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22967 exec 5>>config.log
22968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22969 # would make configure fail if this is the last instruction.
22970 $ac_cs_success || as_fn_exit 1
22971 fi
22972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22975 fi
22976