]> git.saurik.com Git - cycript.git/blob - configure
Switch from MacPorts to Fink for autoconf (YAY!).
[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 CY_CONSOLE_FALSE
667 CY_CONSOLE_TRUE
668 LTJAVASCRIPTCORE
669 WEBKIT_LIBS
670 WEBKIT_CFLAGS
671 CY_EXECUTE
672 CY_ARCH
673 CY_FILTERS
674 GNUTAR
675 GPERF
676 FLEX
677 BISON
678 TIME
679 GIT
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CXXCPP
684 CPP
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 DLLTOOL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 ac_ct_AR
713 AR
714 am__fastdepOBJCXX_FALSE
715 am__fastdepOBJCXX_TRUE
716 OBJCXXDEPMODE
717 ac_ct_OBJCXX
718 OBJCXXFLAGS
719 OBJCXX
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 MAINT
744 MAINTAINER_MODE_FALSE
745 MAINTAINER_MODE_TRUE
746 AM_BACKSLASH
747 AM_DEFAULT_VERBOSITY
748 AM_DEFAULT_V
749 AM_V
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_maintainer_mode
816 enable_dependency_tracking
817 enable_static
818 enable_shared
819 with_pic
820 enable_fast_install
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 enable_javascript
825 enable_console
826 with_apr
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CXX
837 CXXFLAGS
838 CCC
839 OBJCXX
840 OBJCXXFLAGS
841 CPP
842 CXXCPP
843 PKG_CONFIG
844 PKG_CONFIG_PATH
845 PKG_CONFIG_LIBDIR
846 BISON
847 FLEX
848 GPERF
849 GNUTAR
850 WEBKIT_CFLAGS
851 WEBKIT_LIBS
852 LIBFFI_CFLAGS
853 LIBFFI_LIBS
854 GNUSTEP_CONFIG'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 # Accept the important Cygnus configure options, so we can diagnose typos.
923
924 case $ac_dashdash$ac_option in
925 --)
926 ac_dashdash=yes ;;
927
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
932
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
937
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
944
945 --config-cache | -C)
946 cache_file=config.cache ;;
947
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
952
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
959
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
975
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
980
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
985
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1010
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1014
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1021
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1026
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1032
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1039
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1044
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1049
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1056
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1061
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1068
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1073
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1077
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1081
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1085
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1094
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1099
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1106
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1113
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1130
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1135
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1140
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 ;;
1261
1262 esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1283 do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360 else
1361 ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of Cycript 0.9:";;
1466 esac
1467 cat <<\_ACEOF
1468
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-silent-rules less verbose build output (undo: "make V=1")
1474 --disable-silent-rules verbose build output (undo: "make V=0")
1475 --enable-maintainer-mode
1476 enable make rules and dependencies not useful (and
1477 sometimes confusing) to the casual installer
1478 --enable-dependency-tracking
1479 do not reject slow dependency extractors
1480 --disable-dependency-tracking
1481 speeds up one-time build
1482 --enable-static[=PKGS] build static libraries [default=no]
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-javascript[=ENGINE]
1488 use a JavaScript runtime (currently the only
1489 available option for ENGINE is JavaScriptCore)
1490 [default=yes]
1491 --disable-console disable console
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 CC C compiler command
1506 CFLAGS 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 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1514 OBJCXX Objective C++ compiler command
1515 OBJCXXFLAGS Objective 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_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_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_c_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_c_try_compile
1653
1654 # ac_fn_cxx_try_compile LINENO
1655 # ----------------------------
1656 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_cxx_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_cxx_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_cxx_try_compile
1691
1692 # ac_fn_objcxx_try_compile LINENO
1693 # -------------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_objcxx_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_objcxx_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_objcxx_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.14'
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
3087 # We'll loop over all known methods to create a tar archive until one works.
3088 _am_tools='gnutar pax cpio none'
3089
3090 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3091
3092
3093
3094
3095
3096
3097 # POSIX will say in a future version that running "rm -f" with no argument
3098 # is OK; and we want to be able to make that assumption in our Makefile
3099 # recipes. So use an aggressive probe to check that the usage we want is
3100 # actually supported "in the wild" to an acceptable degree.
3101 # See automake bug#10828.
3102 # To make any issue more visible, cause the running configure to be aborted
3103 # by default if the 'rm' program in use doesn't match our expectations; the
3104 # user can still override this though.
3105 if rm -f && rm -fr && rm -rf; then : OK; else
3106 cat >&2 <<'END'
3107 Oops!
3108
3109 Your 'rm' program seems unable to run without file operands specified
3110 on the command line, even when the '-f' option is present. This is contrary
3111 to the behaviour of most rm programs out there, and not conforming with
3112 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3113
3114 Please tell bug-automake@gnu.org about your system, including the value
3115 of your $PATH and any error possibly output before this message. This
3116 can help us improve future automake versions.
3117
3118 END
3119 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3120 echo 'Configuration will proceed anyway, since you have set the' >&2
3121 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3122 echo >&2
3123 else
3124 cat >&2 <<'END'
3125 Aborting the configuration process, to ensure you take notice of the issue.
3126
3127 You can download and install GNU coreutils to get an 'rm' implementation
3128 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3129
3130 If you want to complete the configuration process using your problematic
3131 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3132 to "yes", and re-run configure.
3133
3134 END
3135 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3136 fi
3137 fi
3138
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3140 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3141 # Check whether --enable-maintainer-mode was given.
3142 if test "${enable_maintainer_mode+set}" = set; then :
3143 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3144 else
3145 USE_MAINTAINER_MODE=no
3146 fi
3147
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3149 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3150 if test $USE_MAINTAINER_MODE = yes; then
3151 MAINTAINER_MODE_TRUE=
3152 MAINTAINER_MODE_FALSE='#'
3153 else
3154 MAINTAINER_MODE_TRUE='#'
3155 MAINTAINER_MODE_FALSE=
3156 fi
3157
3158 MAINT=$MAINTAINER_MODE_TRUE
3159
3160
3161
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 if test -z "$ac_cv_prog_CC"; then
3207 ac_ct_CC=$CC
3208 # Extract the first word of "gcc", so it can be a program name with args.
3209 set dummy gcc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_ac_ct_CC="gcc"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229 done
3230 done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253 CC=$ac_ct_CC
3254 fi
3255 else
3256 CC="$ac_cv_prog_CC"
3257 fi
3258
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}cc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_CC+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_CC="${ac_tool_prefix}cc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 $as_echo "$CC" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298 fi
3299 fi
3300 if test -z "$CC"; then
3301 # Extract the first word of "cc", so it can be a program name with args.
3302 set dummy cc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_CC+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 ac_prog_rejected=no
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3320 ac_prog_rejected=yes
3321 continue
3322 fi
3323 ac_cv_prog_CC="cc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 if test $ac_prog_rejected = yes; then
3332 # We found a bogon in the path, so make sure we never use it.
3333 set dummy $ac_cv_prog_CC
3334 shift
3335 if test $# != 0; then
3336 # We chose a different compiler from the bogus one.
3337 # However, it has the same basename, so the bogon will be chosen
3338 # first if we set CC to just the basename; use the full file name.
3339 shift
3340 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3341 fi
3342 fi
3343 fi
3344 fi
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355 fi
3356 if test -z "$CC"; then
3357 if test -n "$ac_tool_prefix"; then
3358 for ac_prog in cl.exe
3359 do
3360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 CC=$ac_cv_prog_CC
3388 if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397 test -n "$CC" && break
3398 done
3399 fi
3400 if test -z "$CC"; then
3401 ac_ct_CC=$CC
3402 for ac_prog in cl.exe
3403 do
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_ac_ct_CC="$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434 $as_echo "$ac_ct_CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441 test -n "$ac_ct_CC" && break
3442 done
3443
3444 if test "x$ac_ct_CC" = x; then
3445 CC=""
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3454 fi
3455 fi
3456
3457 fi
3458
3459
3460 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error $? "no acceptable C compiler found in \$PATH
3463 See \`config.log' for more details" "$LINENO" 5; }
3464
3465 # Provide some information about the compiler.
3466 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467 set X $ac_compile
3468 ac_compiler=$2
3469 for ac_option in --version -v -V -qversion; do
3470 { { ac_try="$ac_compiler $ac_option >&5"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3478 ac_status=$?
3479 if test -s conftest.err; then
3480 sed '10a\
3481 ... rest of stderr output deleted ...
3482 10q' conftest.err >conftest.er1
3483 cat conftest.er1 >&5
3484 fi
3485 rm -f conftest.er1 conftest.err
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488 done
3489
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3507 $as_echo_n "checking whether the C compiler works... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3515 do
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520 done
3521 rm -f $ac_rmfiles
3522
3523 if { { ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3540 do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 ;;
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 fi
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3560 * )
3561 break;;
3562 esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3565
3566 else
3567 ac_file=''
3568 fi
3569 if test -z "$ac_file"; then :
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error 77 "C compiler cannot create executables
3578 See \`config.log' for more details" "$LINENO" 5; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3581 $as_echo "yes" >&6; }
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3584 $as_echo_n "checking for C compiler default output file name... " >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3586 $as_echo "$ac_file" >&6; }
3587 ac_exeext=$ac_cv_exeext
3588
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3590 ac_clean_files=$ac_clean_files_save
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3592 $as_echo_n "checking for suffix of executables... " >&6; }
3593 if { { ac_try="$ac_link"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3605 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3606 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 # `rm'.
3608 for ac_file in conftest.exe conftest conftest.*; do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 break;;
3614 * ) break;;
3615 esac
3616 done
3617 else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3621 See \`config.log' for more details" "$LINENO" 5; }
3622 fi
3623 rm -f conftest conftest$ac_cv_exeext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3625 $as_echo "$ac_cv_exeext" >&6; }
3626
3627 rm -f conftest.$ac_ext
3628 EXEEXT=$ac_cv_exeext
3629 ac_exeext=$EXEEXT
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 #include <stdio.h>
3633 int
3634 main ()
3635 {
3636 FILE *f = fopen ("conftest.out", "w");
3637 return ferror (f) || fclose (f) != 0;
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 ac_clean_files="$ac_clean_files conftest.out"
3644 # Check that the compiler produces executables we can run. If not, either
3645 # the compiler is broken, or we cross compile.
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3647 $as_echo_n "checking whether we are cross compiling... " >&6; }
3648 if test "$cross_compiling" != yes; then
3649 { { ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }
3660 if { ac_try='./conftest$ac_cv_exeext'
3661 { { case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot run C compiled programs.
3679 If you meant to cross compile, use \`--host'.
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 fi
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3685 $as_echo "$cross_compiling" >&6; }
3686
3687 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3688 ac_clean_files=$ac_clean_files_save
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3690 $as_echo_n "checking for suffix of object files... " >&6; }
3691 if ${ac_cv_objext+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.o conftest.obj
3706 if { { ac_try="$ac_compile"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_compile") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; then :
3717 for ac_file in conftest.o conftest.obj conftest.*; do
3718 test -f "$ac_file" || continue;
3719 case $ac_file in
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3722 break;;
3723 esac
3724 done
3725 else
3726 $as_echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731 as_fn_error $? "cannot compute suffix of object files: cannot compile
3732 See \`config.log' for more details" "$LINENO" 5; }
3733 fi
3734 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3737 $as_echo "$ac_cv_objext" >&6; }
3738 OBJEXT=$ac_cv_objext
3739 ac_objext=$OBJEXT
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3741 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3742 if ${ac_cv_c_compiler_gnu+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751 #ifndef __GNUC__
3752 choke me
3753 #endif
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_compiler_gnu=yes
3761 else
3762 ac_compiler_gnu=no
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3769 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3770 if test $ac_compiler_gnu = yes; then
3771 GCC=yes
3772 else
3773 GCC=
3774 fi
3775 ac_test_CFLAGS=${CFLAGS+set}
3776 ac_save_CFLAGS=$CFLAGS
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3778 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3779 if ${ac_cv_prog_cc_g+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 ac_save_c_werror_flag=$ac_c_werror_flag
3783 ac_c_werror_flag=yes
3784 ac_cv_prog_cc_g=no
3785 CFLAGS="-g"
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_g=yes
3799 else
3800 CFLAGS=""
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813
3814 else
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3816 CFLAGS="-g"
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 int
3821 main ()
3822 {
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_cv_prog_cc_g=yes
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_c_werror_flag=$ac_save_c_werror_flag
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3839 $as_echo "$ac_cv_prog_cc_g" >&6; }
3840 if test "$ac_test_CFLAGS" = set; then
3841 CFLAGS=$ac_save_CFLAGS
3842 elif test $ac_cv_prog_cc_g = yes; then
3843 if test "$GCC" = yes; then
3844 CFLAGS="-g -O2"
3845 else
3846 CFLAGS="-g"
3847 fi
3848 else
3849 if test "$GCC" = yes; then
3850 CFLAGS="-O2"
3851 else
3852 CFLAGS=
3853 fi
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3856 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3857 if ${ac_cv_prog_cc_c89+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 ac_cv_prog_cc_c89=no
3861 ac_save_CC=$CC
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864 #include <stdarg.h>
3865 #include <stdio.h>
3866 struct stat;
3867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868 struct buf { int x; };
3869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870 static char *e (p, i)
3871 char **p;
3872 int i;
3873 {
3874 return p[i];
3875 }
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3877 {
3878 char *s;
3879 va_list v;
3880 va_start (v,p);
3881 s = g (p, va_arg (v,int));
3882 va_end (v);
3883 return s;
3884 }
3885
3886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3897 #define FOO(x) 'x'
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904 int argc;
3905 char **argv;
3906 int
3907 main ()
3908 {
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916 do
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3923 done
3924 rm -f conftest.$ac_ext
3925 CC=$ac_save_CC
3926
3927 fi
3928 # AC_CACHE_VAL
3929 case "x$ac_cv_prog_cc_c89" in
3930 x)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3933 xno)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3936 *)
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3940 esac
3941 if test "x$ac_cv_prog_cc_c89" != xno; then :
3942
3943 fi
3944
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3957 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3958 if ${am_cv_prog_cc_c_o+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963
3964 int
3965 main ()
3966 {
3967
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 # Make sure it works both with $CC and with simple cc.
3973 # Following AC_PROG_CC_C_O, we do the test twice because some
3974 # compilers refuse to overwrite an existing .o file with -o,
3975 # though they will create one.
3976 am_cv_prog_cc_c_o=yes
3977 for am_i in 1 2; do
3978 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3979 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } \
3983 && test -f conftest2.$ac_objext; then
3984 : OK
3985 else
3986 am_cv_prog_cc_c_o=no
3987 break
3988 fi
3989 done
3990 rm -f core conftest*
3991 unset am_i
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3994 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3995 if test "$am_cv_prog_cc_c_o" != yes; then
3996 # Losing compiler, so override with the script.
3997 # FIXME: It is wrong to rewrite CC.
3998 # But if we don't then we get into trouble of one sort or another.
3999 # A longer-term fix would be to have automake use am__CC in this case,
4000 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4001 CC="$am_aux_dir/compile $CC"
4002 fi
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009 DEPDIR="${am__leading_dot}deps"
4010
4011 ac_config_commands="$ac_config_commands depfiles"
4012
4013
4014 am_make=${MAKE-make}
4015 cat > confinc << 'END'
4016 am__doit:
4017 @echo this is the am__doit target
4018 .PHONY: am__doit
4019 END
4020 # If we don't find an include directive, just comment out the code.
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4022 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4023 am__include="#"
4024 am__quote=
4025 _am_result=none
4026 # First try GNU make style include.
4027 echo "include confinc" > confmf
4028 # Ignore all kinds of additional output from 'make'.
4029 case `$am_make -s -f confmf 2> /dev/null` in #(
4030 *the\ am__doit\ target*)
4031 am__include=include
4032 am__quote=
4033 _am_result=GNU
4034 ;;
4035 esac
4036 # Now try BSD make style include.
4037 if test "$am__include" = "#"; then
4038 echo '.include "confinc"' > confmf
4039 case `$am_make -s -f confmf 2> /dev/null` in #(
4040 *the\ am__doit\ target*)
4041 am__include=.include
4042 am__quote="\""
4043 _am_result=BSD
4044 ;;
4045 esac
4046 fi
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4050 $as_echo "$_am_result" >&6; }
4051 rm -f confinc confmf
4052
4053 # Check whether --enable-dependency-tracking was given.
4054 if test "${enable_dependency_tracking+set}" = set; then :
4055 enableval=$enable_dependency_tracking;
4056 fi
4057
4058 if test "x$enable_dependency_tracking" != xno; then
4059 am_depcomp="$ac_aux_dir/depcomp"
4060 AMDEPBACKSLASH='\'
4061 am__nodep='_no'
4062 fi
4063 if test "x$enable_dependency_tracking" != xno; then
4064 AMDEP_TRUE=
4065 AMDEP_FALSE='#'
4066 else
4067 AMDEP_TRUE='#'
4068 AMDEP_FALSE=
4069 fi
4070
4071
4072
4073 depcc="$CC" am_compiler_list=
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4076 $as_echo_n "checking dependency style of $depcc... " >&6; }
4077 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4081 # We make a subdir and do the tests there. Otherwise we can end up
4082 # making bogus files that we don't know about and never remove. For
4083 # instance it was reported that on HP-UX the gcc test will end up
4084 # making a dummy file named 'D' -- because '-MD' means "put the output
4085 # in D".
4086 rm -rf conftest.dir
4087 mkdir conftest.dir
4088 # Copy depcomp to subdir because otherwise we won't find it if we're
4089 # using a relative directory.
4090 cp "$am_depcomp" conftest.dir
4091 cd conftest.dir
4092 # We will build objects and dependencies in a subdirectory because
4093 # it helps to detect inapplicable dependency modes. For instance
4094 # both Tru64's cc and ICC support -MD to output dependencies as a
4095 # side effect of compilation, but ICC will put the dependencies in
4096 # the current directory while Tru64 will put them in the object
4097 # directory.
4098 mkdir sub
4099
4100 am_cv_CC_dependencies_compiler_type=none
4101 if test "$am_compiler_list" = ""; then
4102 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4103 fi
4104 am__universal=false
4105 case " $depcc " in #(
4106 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4107 esac
4108
4109 for depmode in $am_compiler_list; do
4110 # Setup a source with many dependencies, because some compilers
4111 # like to wrap large dependency lists on column 80 (with \), and
4112 # we should not choose a depcomp mode which is confused by this.
4113 #
4114 # We need to recreate these files for each test, as the compiler may
4115 # overwrite some of them when testing with obscure command lines.
4116 # This happens at least with the AIX C compiler.
4117 : > sub/conftest.c
4118 for i in 1 2 3 4 5 6; do
4119 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4120 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4121 # Solaris 10 /bin/sh.
4122 echo '/* dummy */' > sub/conftst$i.h
4123 done
4124 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4125
4126 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4127 # mode. It turns out that the SunPro C++ compiler does not properly
4128 # handle '-M -o', and we need to detect this. Also, some Intel
4129 # versions had trouble with output in subdirs.
4130 am__obj=sub/conftest.${OBJEXT-o}
4131 am__minus_obj="-o $am__obj"
4132 case $depmode in
4133 gcc)
4134 # This depmode causes a compiler race in universal mode.
4135 test "$am__universal" = false || continue
4136 ;;
4137 nosideeffect)
4138 # After this tag, mechanisms are not by side-effect, so they'll
4139 # only be used when explicitly requested.
4140 if test "x$enable_dependency_tracking" = xyes; then
4141 continue
4142 else
4143 break
4144 fi
4145 ;;
4146 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4147 # This compiler won't grok '-c -o', but also, the minuso test has
4148 # not run yet. These depmodes are late enough in the game, and
4149 # so weak that their functioning should not be impacted.
4150 am__obj=conftest.${OBJEXT-o}
4151 am__minus_obj=
4152 ;;
4153 none) break ;;
4154 esac
4155 if depmode=$depmode \
4156 source=sub/conftest.c object=$am__obj \
4157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4158 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4159 >/dev/null 2>conftest.err &&
4160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4164 # icc doesn't choke on unknown options, it will just issue warnings
4165 # or remarks (even with -Werror). So we grep stderr for any message
4166 # that says an option was ignored or not supported.
4167 # When given -MP, icc 7.0 and 7.1 complain thusly:
4168 # icc: Command line warning: ignoring option '-M'; no argument required
4169 # The diagnosis changed in icc 8.0:
4170 # icc: Command line remark: option '-MP' not supported
4171 if (grep 'ignoring option' conftest.err ||
4172 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4173 am_cv_CC_dependencies_compiler_type=$depmode
4174 break
4175 fi
4176 fi
4177 done
4178
4179 cd ..
4180 rm -rf conftest.dir
4181 else
4182 am_cv_CC_dependencies_compiler_type=none
4183 fi
4184
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4187 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4188 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4189
4190 if
4191 test "x$enable_dependency_tracking" != xno \
4192 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4193 am__fastdepCC_TRUE=
4194 am__fastdepCC_FALSE='#'
4195 else
4196 am__fastdepCC_TRUE='#'
4197 am__fastdepCC_FALSE=
4198 fi
4199
4200
4201 ac_ext=cpp
4202 ac_cpp='$CXXCPP $CPPFLAGS'
4203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4206 if test -z "$CXX"; then
4207 if test -n "$CCC"; then
4208 CXX=$CCC
4209 else
4210 if test -n "$ac_tool_prefix"; then
4211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4212 do
4213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_CXX+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$CXX"; then
4221 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 CXX=$ac_cv_prog_CXX
4241 if test -n "$CXX"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4243 $as_echo "$CXX" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 fi
4248
4249
4250 test -n "$CXX" && break
4251 done
4252 fi
4253 if test -z "$CXX"; then
4254 ac_ct_CXX=$CXX
4255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4256 do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258 set dummy $ac_prog; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$ac_ct_CXX"; then
4265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_CXX="$ac_prog"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi
4283 fi
4284 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4285 if test -n "$ac_ct_CXX"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4287 $as_echo "$ac_ct_CXX" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4291 fi
4292
4293
4294 test -n "$ac_ct_CXX" && break
4295 done
4296
4297 if test "x$ac_ct_CXX" = x; then
4298 CXX="g++"
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301 yes:)
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304 ac_tool_warned=yes ;;
4305 esac
4306 CXX=$ac_ct_CXX
4307 fi
4308 fi
4309
4310 fi
4311 fi
4312 # Provide some information about the compiler.
4313 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4314 set X $ac_compile
4315 ac_compiler=$2
4316 for ac_option in --version -v -V -qversion; do
4317 { { ac_try="$ac_compiler $ac_option >&5"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4325 ac_status=$?
4326 if test -s conftest.err; then
4327 sed '10a\
4328 ... rest of stderr output deleted ...
4329 10q' conftest.err >conftest.er1
4330 cat conftest.er1 >&5
4331 fi
4332 rm -f conftest.er1 conftest.err
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; }
4335 done
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4338 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4339 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main ()
4347 {
4348 #ifndef __GNUC__
4349 choke me
4350 #endif
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_cxx_try_compile "$LINENO"; then :
4357 ac_compiler_gnu=yes
4358 else
4359 ac_compiler_gnu=no
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4366 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4367 if test $ac_compiler_gnu = yes; then
4368 GXX=yes
4369 else
4370 GXX=
4371 fi
4372 ac_test_CXXFLAGS=${CXXFLAGS+set}
4373 ac_save_CXXFLAGS=$CXXFLAGS
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4375 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4376 if ${ac_cv_prog_cxx_g+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4380 ac_cxx_werror_flag=yes
4381 ac_cv_prog_cxx_g=no
4382 CXXFLAGS="-g"
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385
4386 int
4387 main ()
4388 {
4389
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_cxx_try_compile "$LINENO"; then :
4395 ac_cv_prog_cxx_g=yes
4396 else
4397 CXXFLAGS=""
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400
4401 int
4402 main ()
4403 {
4404
4405 ;
4406 return 0;
4407 }
4408 _ACEOF
4409 if ac_fn_cxx_try_compile "$LINENO"; then :
4410
4411 else
4412 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4413 CXXFLAGS="-g"
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416
4417 int
4418 main ()
4419 {
4420
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_cxx_try_compile "$LINENO"; then :
4426 ac_cv_prog_cxx_g=yes
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4436 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4437 if test "$ac_test_CXXFLAGS" = set; then
4438 CXXFLAGS=$ac_save_CXXFLAGS
4439 elif test $ac_cv_prog_cxx_g = yes; then
4440 if test "$GXX" = yes; then
4441 CXXFLAGS="-g -O2"
4442 else
4443 CXXFLAGS="-g"
4444 fi
4445 else
4446 if test "$GXX" = yes; then
4447 CXXFLAGS="-O2"
4448 else
4449 CXXFLAGS=
4450 fi
4451 fi
4452 ac_ext=c
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457
4458 depcc="$CXX" am_compiler_list=
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461 $as_echo_n "checking dependency style of $depcc... " >&6; }
4462 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
4471 rm -rf conftest.dir
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
4484
4485 am_cv_CXX_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488 fi
4489 am__universal=false
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 esac
4493
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4498 #
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4506 # Solaris 10 /bin/sh.
4507 echo '/* dummy */' > sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
4511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4512 # mode. It turns out that the SunPro C++ compiler does not properly
4513 # handle '-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs.
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
4517 case $depmode in
4518 gcc)
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4521 ;;
4522 nosideeffect)
4523 # After this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested.
4525 if test "x$enable_dependency_tracking" = xyes; then
4526 continue
4527 else
4528 break
4529 fi
4530 ;;
4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4532 # This compiler won't grok '-c -o', but also, the minuso test has
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4536 am__minus_obj=
4537 ;;
4538 none) break ;;
4539 esac
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=$am__obj \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CXX_dependencies_compiler_type=$depmode
4559 break
4560 fi
4561 fi
4562 done
4563
4564 cd ..
4565 rm -rf conftest.dir
4566 else
4567 am_cv_CXX_dependencies_compiler_type=none
4568 fi
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4572 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4573 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4574
4575 if
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCXX_TRUE=
4579 am__fastdepCXX_FALSE='#'
4580 else
4581 am__fastdepCXX_TRUE='#'
4582 am__fastdepCXX_FALSE=
4583 fi
4584
4585
4586 ac_ext=mm
4587 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4588 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in g++ objc++ objcxx c++ CXX
4593 do
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_OBJCXX+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$OBJCXX"; then
4602 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 OBJCXX=$ac_cv_prog_OBJCXX
4622 if test -n "$OBJCXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4624 $as_echo "$OBJCXX" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 test -n "$OBJCXX" && break
4632 done
4633 fi
4634 if test -z "$OBJCXX"; then
4635 ac_ct_OBJCXX=$OBJCXX
4636 for ac_prog in g++ objc++ objcxx c++ CXX
4637 do
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$ac_ct_OBJCXX"; then
4646 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4666 if test -n "$ac_ct_OBJCXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4668 $as_echo "$ac_ct_OBJCXX" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675 test -n "$ac_ct_OBJCXX" && break
4676 done
4677
4678 if test "x$ac_ct_OBJCXX" = x; then
4679 OBJCXX="g++"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 OBJCXX=$ac_ct_OBJCXX
4688 fi
4689 fi
4690
4691 # Provide some information about the compiler.
4692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4693 set X $ac_compile
4694 ac_compiler=$2
4695 for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4704 ac_status=$?
4705 if test -s conftest.err; then
4706 sed '10a\
4707 ... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 fi
4711 rm -f conftest.er1 conftest.err
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 done
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4718 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723
4724 int
4725 main ()
4726 {
4727 #ifndef __GNUC__
4728 choke me
4729 #endif
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_objcxx_try_compile "$LINENO"; then :
4736 ac_compiler_gnu=yes
4737 else
4738 ac_compiler_gnu=no
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4745 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4746 if test $ac_compiler_gnu = yes; then
4747 GOBJCXX=yes
4748 else
4749 GOBJCXX=
4750 fi
4751 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4752 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4754 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4755 if ${ac_cv_prog_objcxx_g+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4759 ac_objcxx_werror_flag=yes
4760 ac_cv_prog_objcxx_g=no
4761 OBJCXXFLAGS="-g"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764
4765 int
4766 main ()
4767 {
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_objcxx_try_compile "$LINENO"; then :
4774 ac_cv_prog_objcxx_g=yes
4775 else
4776 OBJCXXFLAGS=""
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main ()
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_objcxx_try_compile "$LINENO"; then :
4789
4790 else
4791 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4792 OBJCXXFLAGS="-g"
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795
4796 int
4797 main ()
4798 {
4799
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_objcxx_try_compile "$LINENO"; then :
4805 ac_cv_prog_objcxx_g=yes
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4815 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4816 if test "$ac_test_OBJCXXFLAGS" = set; then
4817 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4818 elif test $ac_cv_prog_objcxx_g = yes; then
4819 if test "$GOBJCXX" = yes; then
4820 OBJCXXFLAGS="-g -O2"
4821 else
4822 OBJCXXFLAGS="-g"
4823 fi
4824 else
4825 if test "$GOBJCXX" = yes; then
4826 OBJCXXFLAGS="-O2"
4827 else
4828 OBJCXXFLAGS=
4829 fi
4830 fi
4831 ac_ext=c
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named 'D' -- because '-MD' means "put the output
4849 # in D".
4850 rm -rf conftest.dir
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
4864 am_cv_OBJCXX_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 am__universal=false
4869
4870
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4875 #
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub/conftst$i.h
4885 done
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4894 case $depmode in
4895 gcc)
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4898 ;;
4899 nosideeffect)
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4913 am__minus_obj=
4914 ;;
4915 none) break ;;
4916 esac
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thusly:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4936 break
4937 fi
4938 fi
4939 done
4940
4941 cd ..
4942 rm -rf conftest.dir
4943 else
4944 am_cv_OBJCXX_dependencies_compiler_type=none
4945 fi
4946
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4949 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4950 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4951
4952 if
4953 test "x$enable_dependency_tracking" != xno \
4954 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4955 am__fastdepOBJCXX_TRUE=
4956 am__fastdepOBJCXX_FALSE='#'
4957 else
4958 am__fastdepOBJCXX_TRUE='#'
4959 am__fastdepOBJCXX_FALSE=
4960 fi
4961
4962
4963
4964
4965 if test -n "$ac_tool_prefix"; then
4966 for ac_prog in ar lib "link -lib"
4967 do
4968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_AR+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$AR"; then
4976 ac_cv_prog_AR="$AR" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 AR=$ac_cv_prog_AR
4996 if test -n "$AR"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4998 $as_echo "$AR" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005 test -n "$AR" && break
5006 done
5007 fi
5008 if test -z "$AR"; then
5009 ac_ct_AR=$AR
5010 for ac_prog in ar lib "link -lib"
5011 do
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy $ac_prog; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$ac_ct_AR"; then
5020 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_ac_ct_AR="$ac_prog"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5040 if test -n "$ac_ct_AR"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5042 $as_echo "$ac_ct_AR" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049 test -n "$ac_ct_AR" && break
5050 done
5051
5052 if test "x$ac_ct_AR" = x; then
5053 AR="false"
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056 yes:)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059 ac_tool_warned=yes ;;
5060 esac
5061 AR=$ac_ct_AR
5062 fi
5063 fi
5064
5065 : ${AR=ar}
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5068 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5069 if ${am_cv_ar_interface+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 ac_ext=c
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078 am_cv_ar_interface=ar
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 int some_variable = 0;
5082 _ACEOF
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5086 (eval $am_ar_try) 2>&5
5087 ac_status=$?
5088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089 test $ac_status = 0; }
5090 if test "$ac_status" -eq 0; then
5091 am_cv_ar_interface=ar
5092 else
5093 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5095 (eval $am_ar_try) 2>&5
5096 ac_status=$?
5097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5098 test $ac_status = 0; }
5099 if test "$ac_status" -eq 0; then
5100 am_cv_ar_interface=lib
5101 else
5102 am_cv_ar_interface=unknown
5103 fi
5104 fi
5105 rm -f conftest.lib libconftest.a
5106
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_ext=c
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5117 $as_echo "$am_cv_ar_interface" >&6; }
5118
5119 case $am_cv_ar_interface in
5120 ar)
5121 ;;
5122 lib)
5123 # Microsoft lib, so override with the ar-lib wrapper script.
5124 # FIXME: It is wrong to rewrite AR.
5125 # But if we don't then we get into trouble of one sort or another.
5126 # A longer-term fix would be to have automake use am__AR in this case,
5127 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5128 # similar.
5129 AR="$am_aux_dir/ar-lib $AR"
5130 ;;
5131 unknown)
5132 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5133 ;;
5134 esac
5135
5136
5137
5138 case `pwd` in
5139 *\ * | *\ *)
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5141 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5142 esac
5143
5144
5145
5146 macro_version='2.4.2'
5147 macro_revision='1.3337'
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 ltmain="$ac_aux_dir/ltmain.sh"
5162
5163 # Make sure we can run config.sub.
5164 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5165 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5168 $as_echo_n "checking build system type... " >&6; }
5169 if ${ac_cv_build+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 ac_build_alias=$build_alias
5173 test "x$ac_build_alias" = x &&
5174 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5175 test "x$ac_build_alias" = x &&
5176 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5177 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5178 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5179
5180 fi
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5182 $as_echo "$ac_cv_build" >&6; }
5183 case $ac_cv_build in
5184 *-*-*) ;;
5185 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5186 esac
5187 build=$ac_cv_build
5188 ac_save_IFS=$IFS; IFS='-'
5189 set x $ac_cv_build
5190 shift
5191 build_cpu=$1
5192 build_vendor=$2
5193 shift; shift
5194 # Remember, the first character of IFS is used to create $*,
5195 # except with old shells:
5196 build_os=$*
5197 IFS=$ac_save_IFS
5198 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5202 $as_echo_n "checking host system type... " >&6; }
5203 if ${ac_cv_host+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test "x$host_alias" = x; then
5207 ac_cv_host=$ac_cv_build
5208 else
5209 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5210 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5211 fi
5212
5213 fi
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5215 $as_echo "$ac_cv_host" >&6; }
5216 case $ac_cv_host in
5217 *-*-*) ;;
5218 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5219 esac
5220 host=$ac_cv_host
5221 ac_save_IFS=$IFS; IFS='-'
5222 set x $ac_cv_host
5223 shift
5224 host_cpu=$1
5225 host_vendor=$2
5226 shift; shift
5227 # Remember, the first character of IFS is used to create $*,
5228 # except with old shells:
5229 host_os=$*
5230 IFS=$ac_save_IFS
5231 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5232
5233
5234 # Backslashify metacharacters that are still active within
5235 # double-quoted strings.
5236 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5237
5238 # Same as above, but do not quote variable references.
5239 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5240
5241 # Sed substitution to delay expansion of an escaped shell variable in a
5242 # double_quote_subst'ed string.
5243 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5244
5245 # Sed substitution to delay expansion of an escaped single quote.
5246 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5247
5248 # Sed substitution to avoid accidental globbing in evaled expressions
5249 no_glob_subst='s/\*/\\\*/g'
5250
5251 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5252 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5253 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5256 $as_echo_n "checking how to print strings... " >&6; }
5257 # Test print first, because it will be a builtin if present.
5258 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5259 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5260 ECHO='print -r --'
5261 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5262 ECHO='printf %s\n'
5263 else
5264 # Use this function as a fallback that always works.
5265 func_fallback_echo ()
5266 {
5267 eval 'cat <<_LTECHO_EOF
5268 $1
5269 _LTECHO_EOF'
5270 }
5271 ECHO='func_fallback_echo'
5272 fi
5273
5274 # func_echo_all arg...
5275 # Invoke $ECHO with all args, space-separated.
5276 func_echo_all ()
5277 {
5278 $ECHO ""
5279 }
5280
5281 case "$ECHO" in
5282 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5283 $as_echo "printf" >&6; } ;;
5284 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5285 $as_echo "print -r" >&6; } ;;
5286 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5287 $as_echo "cat" >&6; } ;;
5288 esac
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5304 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5305 if ${ac_cv_path_SED+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5309 for ac_i in 1 2 3 4 5 6 7; do
5310 ac_script="$ac_script$as_nl$ac_script"
5311 done
5312 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5313 { ac_script=; unset ac_script;}
5314 if test -z "$SED"; then
5315 ac_path_SED_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_prog in sed gsed; do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5325 as_fn_executable_p "$ac_path_SED" || continue
5326 # Check for GNU ac_path_SED and select it if it is found.
5327 # Check for GNU $ac_path_SED
5328 case `"$ac_path_SED" --version 2>&1` in
5329 *GNU*)
5330 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5331 *)
5332 ac_count=0
5333 $as_echo_n 0123456789 >"conftest.in"
5334 while :
5335 do
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo '' >> "conftest.nl"
5340 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_SED_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_SED="$ac_path_SED"
5346 ac_path_SED_max=$ac_count
5347 fi
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5350 done
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352 esac
5353
5354 $ac_path_SED_found && break 3
5355 done
5356 done
5357 done
5358 IFS=$as_save_IFS
5359 if test -z "$ac_cv_path_SED"; then
5360 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5361 fi
5362 else
5363 ac_cv_path_SED=$SED
5364 fi
5365
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5368 $as_echo "$ac_cv_path_SED" >&6; }
5369 SED="$ac_cv_path_SED"
5370 rm -f conftest.sed
5371
5372 test -z "$SED" && SED=sed
5373 Xsed="$SED -e 1s/^X//"
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5386 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5387 if ${ac_cv_path_GREP+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -z "$GREP"; then
5391 ac_path_GREP_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_prog in grep ggrep; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5401 as_fn_executable_p "$ac_path_GREP" || continue
5402 # Check for GNU ac_path_GREP and select it if it is found.
5403 # Check for GNU $ac_path_GREP
5404 case `"$ac_path_GREP" --version 2>&1` in
5405 *GNU*)
5406 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5407 *)
5408 ac_count=0
5409 $as_echo_n 0123456789 >"conftest.in"
5410 while :
5411 do
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo 'GREP' >> "conftest.nl"
5416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_GREP="$ac_path_GREP"
5422 ac_path_GREP_max=$ac_count
5423 fi
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5426 done
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428 esac
5429
5430 $ac_path_GREP_found && break 3
5431 done
5432 done
5433 done
5434 IFS=$as_save_IFS
5435 if test -z "$ac_cv_path_GREP"; then
5436 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5437 fi
5438 else
5439 ac_cv_path_GREP=$GREP
5440 fi
5441
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5444 $as_echo "$ac_cv_path_GREP" >&6; }
5445 GREP="$ac_cv_path_GREP"
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5449 $as_echo_n "checking for egrep... " >&6; }
5450 if ${ac_cv_path_EGREP+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5454 then ac_cv_path_EGREP="$GREP -E"
5455 else
5456 if test -z "$EGREP"; then
5457 ac_path_EGREP_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_prog in egrep; do
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5467 as_fn_executable_p "$ac_path_EGREP" || continue
5468 # Check for GNU ac_path_EGREP and select it if it is found.
5469 # Check for GNU $ac_path_EGREP
5470 case `"$ac_path_EGREP" --version 2>&1` in
5471 *GNU*)
5472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5473 *)
5474 ac_count=0
5475 $as_echo_n 0123456789 >"conftest.in"
5476 while :
5477 do
5478 cat "conftest.in" "conftest.in" >"conftest.tmp"
5479 mv "conftest.tmp" "conftest.in"
5480 cp "conftest.in" "conftest.nl"
5481 $as_echo 'EGREP' >> "conftest.nl"
5482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484 as_fn_arith $ac_count + 1 && ac_count=$as_val
5485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5486 # Best one so far, save it but keep looking for a better one
5487 ac_cv_path_EGREP="$ac_path_EGREP"
5488 ac_path_EGREP_max=$ac_count
5489 fi
5490 # 10*(2^10) chars as input seems more than enough
5491 test $ac_count -gt 10 && break
5492 done
5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5494 esac
5495
5496 $ac_path_EGREP_found && break 3
5497 done
5498 done
5499 done
5500 IFS=$as_save_IFS
5501 if test -z "$ac_cv_path_EGREP"; then
5502 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5503 fi
5504 else
5505 ac_cv_path_EGREP=$EGREP
5506 fi
5507
5508 fi
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5511 $as_echo "$ac_cv_path_EGREP" >&6; }
5512 EGREP="$ac_cv_path_EGREP"
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5516 $as_echo_n "checking for fgrep... " >&6; }
5517 if ${ac_cv_path_FGREP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5521 then ac_cv_path_FGREP="$GREP -F"
5522 else
5523 if test -z "$FGREP"; then
5524 ac_path_FGREP_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_prog in fgrep; do
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5534 as_fn_executable_p "$ac_path_FGREP" || continue
5535 # Check for GNU ac_path_FGREP and select it if it is found.
5536 # Check for GNU $ac_path_FGREP
5537 case `"$ac_path_FGREP" --version 2>&1` in
5538 *GNU*)
5539 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5540 *)
5541 ac_count=0
5542 $as_echo_n 0123456789 >"conftest.in"
5543 while :
5544 do
5545 cat "conftest.in" "conftest.in" >"conftest.tmp"
5546 mv "conftest.tmp" "conftest.in"
5547 cp "conftest.in" "conftest.nl"
5548 $as_echo 'FGREP' >> "conftest.nl"
5549 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551 as_fn_arith $ac_count + 1 && ac_count=$as_val
5552 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5553 # Best one so far, save it but keep looking for a better one
5554 ac_cv_path_FGREP="$ac_path_FGREP"
5555 ac_path_FGREP_max=$ac_count
5556 fi
5557 # 10*(2^10) chars as input seems more than enough
5558 test $ac_count -gt 10 && break
5559 done
5560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 esac
5562
5563 $ac_path_FGREP_found && break 3
5564 done
5565 done
5566 done
5567 IFS=$as_save_IFS
5568 if test -z "$ac_cv_path_FGREP"; then
5569 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5570 fi
5571 else
5572 ac_cv_path_FGREP=$FGREP
5573 fi
5574
5575 fi
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5578 $as_echo "$ac_cv_path_FGREP" >&6; }
5579 FGREP="$ac_cv_path_FGREP"
5580
5581
5582 test -z "$GREP" && GREP=grep
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 # Check whether --with-gnu-ld was given.
5603 if test "${with_gnu_ld+set}" = set; then :
5604 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5605 else
5606 with_gnu_ld=no
5607 fi
5608
5609 ac_prog=ld
5610 if test "$GCC" = yes; then
5611 # Check if gcc -print-prog-name=ld gives a path.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5613 $as_echo_n "checking for ld used by $CC... " >&6; }
5614 case $host in
5615 *-*-mingw*)
5616 # gcc leaves a trailing carriage return which upsets mingw
5617 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5618 *)
5619 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5620 esac
5621 case $ac_prog in
5622 # Accept absolute paths.
5623 [\\/]* | ?:[\\/]*)
5624 re_direlt='/[^/][^/]*/\.\./'
5625 # Canonicalize the pathname of ld
5626 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5627 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5628 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5629 done
5630 test -z "$LD" && LD="$ac_prog"
5631 ;;
5632 "")
5633 # If it fails, then pretend we aren't using GCC.
5634 ac_prog=ld
5635 ;;
5636 *)
5637 # If it is relative, then search for the first ld in PATH.
5638 with_gnu_ld=unknown
5639 ;;
5640 esac
5641 elif test "$with_gnu_ld" = yes; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5643 $as_echo_n "checking for GNU ld... " >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5646 $as_echo_n "checking for non-GNU ld... " >&6; }
5647 fi
5648 if ${lt_cv_path_LD+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -z "$LD"; then
5652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5653 for ac_dir in $PATH; do
5654 IFS="$lt_save_ifs"
5655 test -z "$ac_dir" && ac_dir=.
5656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5657 lt_cv_path_LD="$ac_dir/$ac_prog"
5658 # Check to see if the program is GNU ld. I'd rather use --version,
5659 # but apparently some variants of GNU ld only accept -v.
5660 # Break only if it was the GNU/non-GNU ld that we prefer.
5661 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5662 *GNU* | *'with BFD'*)
5663 test "$with_gnu_ld" != no && break
5664 ;;
5665 *)
5666 test "$with_gnu_ld" != yes && break
5667 ;;
5668 esac
5669 fi
5670 done
5671 IFS="$lt_save_ifs"
5672 else
5673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5674 fi
5675 fi
5676
5677 LD="$lt_cv_path_LD"
5678 if test -n "$LD"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5680 $as_echo "$LD" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5687 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5688 if ${lt_cv_prog_gnu_ld+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5692 case `$LD -v 2>&1 </dev/null` in
5693 *GNU* | *'with BFD'*)
5694 lt_cv_prog_gnu_ld=yes
5695 ;;
5696 *)
5697 lt_cv_prog_gnu_ld=no
5698 ;;
5699 esac
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5702 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5703 with_gnu_ld=$lt_cv_prog_gnu_ld
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5714 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5715 if ${lt_cv_path_NM+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -n "$NM"; then
5719 # Let the user override the test.
5720 lt_cv_path_NM="$NM"
5721 else
5722 lt_nm_to_check="${ac_tool_prefix}nm"
5723 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5724 lt_nm_to_check="$lt_nm_to_check nm"
5725 fi
5726 for lt_tmp_nm in $lt_nm_to_check; do
5727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5728 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5729 IFS="$lt_save_ifs"
5730 test -z "$ac_dir" && ac_dir=.
5731 tmp_nm="$ac_dir/$lt_tmp_nm"
5732 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5733 # Check to see if the nm accepts a BSD-compat flag.
5734 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5735 # nm: unknown option "B" ignored
5736 # Tru64's nm complains that /dev/null is an invalid object file
5737 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5738 */dev/null* | *'Invalid file or object type'*)
5739 lt_cv_path_NM="$tmp_nm -B"
5740 break
5741 ;;
5742 *)
5743 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5744 */dev/null*)
5745 lt_cv_path_NM="$tmp_nm -p"
5746 break
5747 ;;
5748 *)
5749 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5750 continue # so that we can try to find one that supports BSD flags
5751 ;;
5752 esac
5753 ;;
5754 esac
5755 fi
5756 done
5757 IFS="$lt_save_ifs"
5758 done
5759 : ${lt_cv_path_NM=no}
5760 fi
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5763 $as_echo "$lt_cv_path_NM" >&6; }
5764 if test "$lt_cv_path_NM" != "no"; then
5765 NM="$lt_cv_path_NM"
5766 else
5767 # Didn't find any BSD compatible name lister, look for dumpbin.
5768 if test -n "$DUMPBIN"; then :
5769 # Let the user override the test.
5770 else
5771 if test -n "$ac_tool_prefix"; then
5772 for ac_prog in dumpbin "link -dump"
5773 do
5774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_DUMPBIN+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$DUMPBIN"; then
5782 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 DUMPBIN=$ac_cv_prog_DUMPBIN
5802 if test -n "$DUMPBIN"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5804 $as_echo "$DUMPBIN" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810
5811 test -n "$DUMPBIN" && break
5812 done
5813 fi
5814 if test -z "$DUMPBIN"; then
5815 ac_ct_DUMPBIN=$DUMPBIN
5816 for ac_prog in dumpbin "link -dump"
5817 do
5818 # Extract the first word of "$ac_prog", so it can be a program name with args.
5819 set dummy $ac_prog; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$ac_ct_DUMPBIN"; then
5826 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5846 if test -n "$ac_ct_DUMPBIN"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5848 $as_echo "$ac_ct_DUMPBIN" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 test -n "$ac_ct_DUMPBIN" && break
5856 done
5857
5858 if test "x$ac_ct_DUMPBIN" = x; then
5859 DUMPBIN=":"
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862 yes:)
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865 ac_tool_warned=yes ;;
5866 esac
5867 DUMPBIN=$ac_ct_DUMPBIN
5868 fi
5869 fi
5870
5871 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5872 *COFF*)
5873 DUMPBIN="$DUMPBIN -symbols"
5874 ;;
5875 *)
5876 DUMPBIN=:
5877 ;;
5878 esac
5879 fi
5880
5881 if test "$DUMPBIN" != ":"; then
5882 NM="$DUMPBIN"
5883 fi
5884 fi
5885 test -z "$NM" && NM=nm
5886
5887
5888
5889
5890
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5893 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5894 if ${lt_cv_nm_interface+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 lt_cv_nm_interface="BSD nm"
5898 echo "int some_variable = 0;" > conftest.$ac_ext
5899 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5900 (eval "$ac_compile" 2>conftest.err)
5901 cat conftest.err >&5
5902 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5903 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5904 cat conftest.err >&5
5905 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5906 cat conftest.out >&5
5907 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5908 lt_cv_nm_interface="MS dumpbin"
5909 fi
5910 rm -rf conftest*
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5913 $as_echo "$lt_cv_nm_interface" >&6; }
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5916 $as_echo_n "checking whether ln -s works... " >&6; }
5917 LN_S=$as_ln_s
5918 if test "$LN_S" = "ln -s"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5920 $as_echo "yes" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5923 $as_echo "no, using $LN_S" >&6; }
5924 fi
5925
5926 # find the maximum length of command line arguments
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5928 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5929 if ${lt_cv_sys_max_cmd_len+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 i=0
5933 teststring="ABCD"
5934
5935 case $build_os in
5936 msdosdjgpp*)
5937 # On DJGPP, this test can blow up pretty badly due to problems in libc
5938 # (any single argument exceeding 2000 bytes causes a buffer overrun
5939 # during glob expansion). Even if it were fixed, the result of this
5940 # check would be larger than it should be.
5941 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5942 ;;
5943
5944 gnu*)
5945 # Under GNU Hurd, this test is not required because there is
5946 # no limit to the length of command line arguments.
5947 # Libtool will interpret -1 as no limit whatsoever
5948 lt_cv_sys_max_cmd_len=-1;
5949 ;;
5950
5951 cygwin* | mingw* | cegcc*)
5952 # On Win9x/ME, this test blows up -- it succeeds, but takes
5953 # about 5 minutes as the teststring grows exponentially.
5954 # Worse, since 9x/ME are not pre-emptively multitasking,
5955 # you end up with a "frozen" computer, even though with patience
5956 # the test eventually succeeds (with a max line length of 256k).
5957 # Instead, let's just punt: use the minimum linelength reported by
5958 # all of the supported platforms: 8192 (on NT/2K/XP).
5959 lt_cv_sys_max_cmd_len=8192;
5960 ;;
5961
5962 mint*)
5963 # On MiNT this can take a long time and run out of memory.
5964 lt_cv_sys_max_cmd_len=8192;
5965 ;;
5966
5967 amigaos*)
5968 # On AmigaOS with pdksh, this test takes hours, literally.
5969 # So we just punt and use a minimum line length of 8192.
5970 lt_cv_sys_max_cmd_len=8192;
5971 ;;
5972
5973 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5974 # This has been around since 386BSD, at least. Likely further.
5975 if test -x /sbin/sysctl; then
5976 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5977 elif test -x /usr/sbin/sysctl; then
5978 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5979 else
5980 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5981 fi
5982 # And add a safety zone
5983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5985 ;;
5986
5987 interix*)
5988 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5989 lt_cv_sys_max_cmd_len=196608
5990 ;;
5991
5992 os2*)
5993 # The test takes a long time on OS/2.
5994 lt_cv_sys_max_cmd_len=8192
5995 ;;
5996
5997 osf*)
5998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6000 # nice to cause kernel panics so lets avoid the loop below.
6001 # First set a reasonable default.
6002 lt_cv_sys_max_cmd_len=16384
6003 #
6004 if test -x /sbin/sysconfig; then
6005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6006 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6007 esac
6008 fi
6009 ;;
6010 sco3.2v5*)
6011 lt_cv_sys_max_cmd_len=102400
6012 ;;
6013 sysv5* | sco5v6* | sysv4.2uw2*)
6014 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6015 if test -n "$kargmax"; then
6016 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6017 else
6018 lt_cv_sys_max_cmd_len=32768
6019 fi
6020 ;;
6021 *)
6022 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6023 if test -n "$lt_cv_sys_max_cmd_len"; then
6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6026 else
6027 # Make teststring a little bigger before we do anything with it.
6028 # a 1K string should be a reasonable start.
6029 for i in 1 2 3 4 5 6 7 8 ; do
6030 teststring=$teststring$teststring
6031 done
6032 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6033 # If test is not a shell built-in, we'll probably end up computing a
6034 # maximum length that is only half of the actual maximum length, but
6035 # we can't tell.
6036 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6037 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6038 test $i != 17 # 1/2 MB should be enough
6039 do
6040 i=`expr $i + 1`
6041 teststring=$teststring$teststring
6042 done
6043 # Only check the string length outside the loop.
6044 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6045 teststring=
6046 # Add a significant safety factor because C++ compilers can tack on
6047 # massive amounts of additional arguments before passing them to the
6048 # linker. It appears as though 1/2 is a usable value.
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6050 fi
6051 ;;
6052 esac
6053
6054 fi
6055
6056 if test -n $lt_cv_sys_max_cmd_len ; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6058 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6061 $as_echo "none" >&6; }
6062 fi
6063 max_cmd_len=$lt_cv_sys_max_cmd_len
6064
6065
6066
6067
6068
6069
6070 : ${CP="cp -f"}
6071 : ${MV="mv -f"}
6072 : ${RM="rm -f"}
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6075 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6076 # Try some XSI features
6077 xsi_shell=no
6078 ( _lt_dummy="a/b/c"
6079 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6080 = c,a/b,b/c, \
6081 && eval 'test $(( 1 + 1 )) -eq 2 \
6082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6083 && xsi_shell=yes
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6085 $as_echo "$xsi_shell" >&6; }
6086
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6089 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6090 lt_shell_append=no
6091 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6092 >/dev/null 2>&1 \
6093 && lt_shell_append=yes
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6095 $as_echo "$lt_shell_append" >&6; }
6096
6097
6098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6099 lt_unset=unset
6100 else
6101 lt_unset=false
6102 fi
6103
6104
6105
6106
6107
6108 # test EBCDIC or ASCII
6109 case `echo X|tr X '\101'` in
6110 A) # ASCII based system
6111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6112 lt_SP2NL='tr \040 \012'
6113 lt_NL2SP='tr \015\012 \040\040'
6114 ;;
6115 *) # EBCDIC based system
6116 lt_SP2NL='tr \100 \n'
6117 lt_NL2SP='tr \r\n \100\100'
6118 ;;
6119 esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6130 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6131 if ${lt_cv_to_host_file_cmd+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 case $host in
6135 *-*-mingw* )
6136 case $build in
6137 *-*-mingw* ) # actually msys
6138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6139 ;;
6140 *-*-cygwin* )
6141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6142 ;;
6143 * ) # otherwise, assume *nix
6144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6145 ;;
6146 esac
6147 ;;
6148 *-*-cygwin* )
6149 case $build in
6150 *-*-mingw* ) # actually msys
6151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6152 ;;
6153 *-*-cygwin* )
6154 lt_cv_to_host_file_cmd=func_convert_file_noop
6155 ;;
6156 * ) # otherwise, assume *nix
6157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6158 ;;
6159 esac
6160 ;;
6161 * ) # unhandled hosts (and "normal" native builds)
6162 lt_cv_to_host_file_cmd=func_convert_file_noop
6163 ;;
6164 esac
6165
6166 fi
6167
6168 to_host_file_cmd=$lt_cv_to_host_file_cmd
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6170 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6171
6172
6173
6174
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6177 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6178 if ${lt_cv_to_tool_file_cmd+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 #assume ordinary cross tools, or native build.
6182 lt_cv_to_tool_file_cmd=func_convert_file_noop
6183 case $host in
6184 *-*-mingw* )
6185 case $build in
6186 *-*-mingw* ) # actually msys
6187 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6188 ;;
6189 esac
6190 ;;
6191 esac
6192
6193 fi
6194
6195 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6197 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6198
6199
6200
6201
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6204 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6205 if ${lt_cv_ld_reload_flag+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 lt_cv_ld_reload_flag='-r'
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6211 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6212 reload_flag=$lt_cv_ld_reload_flag
6213 case $reload_flag in
6214 "" | " "*) ;;
6215 *) reload_flag=" $reload_flag" ;;
6216 esac
6217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6218 case $host_os in
6219 cygwin* | mingw* | pw32* | cegcc*)
6220 if test "$GCC" != yes; then
6221 reload_cmds=false
6222 fi
6223 ;;
6224 darwin*)
6225 if test "$GCC" = yes; then
6226 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6227 else
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 fi
6230 ;;
6231 esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_OBJDUMP+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 if test -n "$OBJDUMP"; then
6250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 OBJDUMP=$ac_cv_prog_OBJDUMP
6270 if test -n "$OBJDUMP"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6272 $as_echo "$OBJDUMP" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279 fi
6280 if test -z "$ac_cv_prog_OBJDUMP"; then
6281 ac_ct_OBJDUMP=$OBJDUMP
6282 # Extract the first word of "objdump", so it can be a program name with args.
6283 set dummy objdump; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$ac_ct_OBJDUMP"; then
6290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6310 if test -n "$ac_ct_OBJDUMP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6312 $as_echo "$ac_ct_OBJDUMP" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318 if test "x$ac_ct_OBJDUMP" = x; then
6319 OBJDUMP="false"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327 OBJDUMP=$ac_ct_OBJDUMP
6328 fi
6329 else
6330 OBJDUMP="$ac_cv_prog_OBJDUMP"
6331 fi
6332
6333 test -z "$OBJDUMP" && OBJDUMP=objdump
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6344 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6345 if ${lt_cv_deplibs_check_method+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 lt_cv_file_magic_cmd='$MAGIC_CMD'
6349 lt_cv_file_magic_test_file=
6350 lt_cv_deplibs_check_method='unknown'
6351 # Need to set the preceding variable on all platforms that support
6352 # interlibrary dependencies.
6353 # 'none' -- dependencies not supported.
6354 # `unknown' -- same as none, but documents that we really don't know.
6355 # 'pass_all' -- all dependencies passed with no checks.
6356 # 'test_compile' -- check by making test program.
6357 # 'file_magic [[regex]]' -- check by looking for files in library path
6358 # which responds to the $file_magic_cmd with a given extended regex.
6359 # If you have `file' or equivalent on your system and you're not sure
6360 # whether `pass_all' will *always* work, you probably want this one.
6361
6362 case $host_os in
6363 aix[4-9]*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366
6367 beos*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 bsdi[45]*)
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6373 lt_cv_file_magic_cmd='/usr/bin/file -L'
6374 lt_cv_file_magic_test_file=/shlib/libc.so
6375 ;;
6376
6377 cygwin*)
6378 # func_win32_libid is a shell function defined in ltmain.sh
6379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6380 lt_cv_file_magic_cmd='func_win32_libid'
6381 ;;
6382
6383 mingw* | pw32*)
6384 # Base MSYS/MinGW do not provide the 'file' command needed by
6385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6386 # unless we find 'file', for example because we are cross-compiling.
6387 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6388 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6391 else
6392 # Keep this pattern in sync with the one in func_win32_libid.
6393 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6394 lt_cv_file_magic_cmd='$OBJDUMP -f'
6395 fi
6396 ;;
6397
6398 cegcc*)
6399 # use the weaker test based on 'objdump'. See mingw*.
6400 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401 lt_cv_file_magic_cmd='$OBJDUMP -f'
6402 ;;
6403
6404 darwin* | rhapsody*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408 freebsd* | dragonfly*)
6409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6410 case $host_cpu in
6411 i*86 )
6412 # Not sure whether the presence of OpenBSD here was a mistake.
6413 # Let's accept both of them until this is cleared up.
6414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417 ;;
6418 esac
6419 else
6420 lt_cv_deplibs_check_method=pass_all
6421 fi
6422 ;;
6423
6424 gnu*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 haiku*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 hpux10.20* | hpux11*)
6433 lt_cv_file_magic_cmd=/usr/bin/file
6434 case $host_cpu in
6435 ia64*)
6436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6437 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6438 ;;
6439 hppa*64*)
6440 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]'
6441 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6442 ;;
6443 *)
6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6445 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6446 ;;
6447 esac
6448 ;;
6449
6450 interix[3-9]*)
6451 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6453 ;;
6454
6455 irix5* | irix6* | nonstopux*)
6456 case $LD in
6457 *-32|*"-32 ") libmagic=32-bit;;
6458 *-n32|*"-n32 ") libmagic=N32;;
6459 *-64|*"-64 ") libmagic=64-bit;;
6460 *) libmagic=never-match;;
6461 esac
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 # This must be glibc/ELF.
6466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 netbsd*)
6471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 else
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6475 fi
6476 ;;
6477
6478 newos6*)
6479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6480 lt_cv_file_magic_cmd=/usr/bin/file
6481 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6482 ;;
6483
6484 *nto* | *qnx*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 openbsd*)
6489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6491 else
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 fi
6494 ;;
6495
6496 osf3* | osf4* | osf5*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 rdos*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504 solaris*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 sysv4 | sysv4.3*)
6513 case $host_vendor in
6514 motorola)
6515 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]'
6516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6517 ;;
6518 ncr)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 sequent)
6522 lt_cv_file_magic_cmd='/bin/file'
6523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6524 ;;
6525 sni)
6526 lt_cv_file_magic_cmd='/bin/file'
6527 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6528 lt_cv_file_magic_test_file=/lib/libc.so
6529 ;;
6530 siemens)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 pc)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536 esac
6537 ;;
6538
6539 tpf*)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542 esac
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6546 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6547
6548 file_magic_glob=
6549 want_nocaseglob=no
6550 if test "$build" = "$host"; then
6551 case $host_os in
6552 mingw* | pw32*)
6553 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6554 want_nocaseglob=yes
6555 else
6556 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6557 fi
6558 ;;
6559 esac
6560 fi
6561
6562 file_magic_cmd=$lt_cv_file_magic_cmd
6563 deplibs_check_method=$lt_cv_deplibs_check_method
6564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587 if test -n "$ac_tool_prefix"; then
6588 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6589 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_DLLTOOL+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$DLLTOOL"; then
6596 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 DLLTOOL=$ac_cv_prog_DLLTOOL
6616 if test -n "$DLLTOOL"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6618 $as_echo "$DLLTOOL" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624
6625 fi
6626 if test -z "$ac_cv_prog_DLLTOOL"; then
6627 ac_ct_DLLTOOL=$DLLTOOL
6628 # Extract the first word of "dlltool", so it can be a program name with args.
6629 set dummy dlltool; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$ac_ct_DLLTOOL"; then
6636 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6656 if test -n "$ac_ct_DLLTOOL"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6658 $as_echo "$ac_ct_DLLTOOL" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663
6664 if test "x$ac_ct_DLLTOOL" = x; then
6665 DLLTOOL="false"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673 DLLTOOL=$ac_ct_DLLTOOL
6674 fi
6675 else
6676 DLLTOOL="$ac_cv_prog_DLLTOOL"
6677 fi
6678
6679 test -z "$DLLTOOL" && DLLTOOL=dlltool
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6691 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6692 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 lt_cv_sharedlib_from_linklib_cmd='unknown'
6696
6697 case $host_os in
6698 cygwin* | mingw* | pw32* | cegcc*)
6699 # two different shell functions defined in ltmain.sh
6700 # decide which to use based on capabilities of $DLLTOOL
6701 case `$DLLTOOL --help 2>&1` in
6702 *--identify-strict*)
6703 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6704 ;;
6705 *)
6706 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6707 ;;
6708 esac
6709 ;;
6710 *)
6711 # fallback: assume linklib IS sharedlib
6712 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6713 ;;
6714 esac
6715
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6718 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6719 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6720 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6721
6722
6723
6724
6725
6726
6727
6728 if test -n "$ac_tool_prefix"; then
6729 for ac_prog in ar
6730 do
6731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_AR+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$AR"; then
6739 ac_cv_prog_AR="$AR" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 AR=$ac_cv_prog_AR
6759 if test -n "$AR"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6761 $as_echo "$AR" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 test -n "$AR" && break
6769 done
6770 fi
6771 if test -z "$AR"; then
6772 ac_ct_AR=$AR
6773 for ac_prog in ar
6774 do
6775 # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test -n "$ac_ct_AR"; then
6783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_ac_ct_AR="$ac_prog"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6803 if test -n "$ac_ct_AR"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6805 $as_echo "$ac_ct_AR" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811
6812 test -n "$ac_ct_AR" && break
6813 done
6814
6815 if test "x$ac_ct_AR" = x; then
6816 AR="false"
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824 AR=$ac_ct_AR
6825 fi
6826 fi
6827
6828 : ${AR=ar}
6829 : ${AR_FLAGS=cru}
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6842 $as_echo_n "checking for archiver @FILE support... " >&6; }
6843 if ${lt_cv_ar_at_file+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 lt_cv_ar_at_file=no
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849
6850 int
6851 main ()
6852 {
6853
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859 echo conftest.$ac_objext > conftest.lst
6860 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6862 (eval $lt_ar_try) 2>&5
6863 ac_status=$?
6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6865 test $ac_status = 0; }
6866 if test "$ac_status" -eq 0; then
6867 # Ensure the archiver fails upon bogus file names.
6868 rm -f conftest.$ac_objext libconftest.a
6869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6870 (eval $lt_ar_try) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }
6874 if test "$ac_status" -ne 0; then
6875 lt_cv_ar_at_file=@
6876 fi
6877 fi
6878 rm -f conftest.* libconftest.a
6879
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6885 $as_echo "$lt_cv_ar_at_file" >&6; }
6886
6887 if test "x$lt_cv_ar_at_file" = xno; then
6888 archiver_list_spec=
6889 else
6890 archiver_list_spec=$lt_cv_ar_at_file
6891 fi
6892
6893
6894
6895
6896
6897
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}strip; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_STRIP+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$STRIP"; then
6908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 STRIP=$ac_cv_prog_STRIP
6928 if test -n "$STRIP"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6930 $as_echo "$STRIP" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_STRIP"; then
6939 ac_ct_STRIP=$STRIP
6940 # Extract the first word of "strip", so it can be a program name with args.
6941 set dummy strip; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_STRIP"; then
6948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_STRIP="strip"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6968 if test -n "$ac_ct_STRIP"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6970 $as_echo "$ac_ct_STRIP" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_STRIP" = x; then
6977 STRIP=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 STRIP=$ac_ct_STRIP
6986 fi
6987 else
6988 STRIP="$ac_cv_prog_STRIP"
6989 fi
6990
6991 test -z "$STRIP" && STRIP=:
6992
6993
6994
6995
6996
6997
6998 if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if ${ac_cv_prog_RANLIB+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 if test -n "$RANLIB"; then
7007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024 fi
7025 fi
7026 RANLIB=$ac_cv_prog_RANLIB
7027 if test -n "$RANLIB"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7029 $as_echo "$RANLIB" >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7033 fi
7034
7035
7036 fi
7037 if test -z "$ac_cv_prog_RANLIB"; then
7038 ac_ct_RANLIB=$RANLIB
7039 # Extract the first word of "ranlib", so it can be a program name with args.
7040 set dummy ranlib; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 if test -n "$ac_ct_RANLIB"; then
7047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_ac_ct_RANLIB="ranlib"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7067 if test -n "$ac_ct_RANLIB"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7069 $as_echo "$ac_ct_RANLIB" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075 if test "x$ac_ct_RANLIB" = x; then
7076 RANLIB=":"
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079 yes:)
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 ac_tool_warned=yes ;;
7083 esac
7084 RANLIB=$ac_ct_RANLIB
7085 fi
7086 else
7087 RANLIB="$ac_cv_prog_RANLIB"
7088 fi
7089
7090 test -z "$RANLIB" && RANLIB=:
7091
7092
7093
7094
7095
7096
7097 # Determine commands to create old-style static archives.
7098 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7099 old_postinstall_cmds='chmod 644 $oldlib'
7100 old_postuninstall_cmds=
7101
7102 if test -n "$RANLIB"; then
7103 case $host_os in
7104 openbsd*)
7105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7106 ;;
7107 *)
7108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7109 ;;
7110 esac
7111 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7112 fi
7113
7114 case $host_os in
7115 darwin*)
7116 lock_old_archive_extraction=yes ;;
7117 *)
7118 lock_old_archive_extraction=no ;;
7119 esac
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 # If no C compiler was specified, use CC.
7160 LTCC=${LTCC-"$CC"}
7161
7162 # If no C compiler flags were specified, use CFLAGS.
7163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7164
7165 # Allow CC to be a program name with arguments.
7166 compiler=$CC
7167
7168
7169 # Check for command to grab the raw symbol name followed by C symbol from nm.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7171 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7172 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175
7176 # These are sane defaults that work on at least a few old systems.
7177 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7178
7179 # Character class describing NM global symbol codes.
7180 symcode='[BCDEGRST]'
7181
7182 # Regexp to match symbols that can be accessed directly from C.
7183 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7184
7185 # Define system-specific variables.
7186 case $host_os in
7187 aix*)
7188 symcode='[BCDT]'
7189 ;;
7190 cygwin* | mingw* | pw32* | cegcc*)
7191 symcode='[ABCDGISTW]'
7192 ;;
7193 hpux*)
7194 if test "$host_cpu" = ia64; then
7195 symcode='[ABCDEGRST]'
7196 fi
7197 ;;
7198 irix* | nonstopux*)
7199 symcode='[BCDEGRST]'
7200 ;;
7201 osf*)
7202 symcode='[BCDEGQRST]'
7203 ;;
7204 solaris*)
7205 symcode='[BDRT]'
7206 ;;
7207 sco3.2v5*)
7208 symcode='[DT]'
7209 ;;
7210 sysv4.2uw2*)
7211 symcode='[DT]'
7212 ;;
7213 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7214 symcode='[ABDT]'
7215 ;;
7216 sysv4)
7217 symcode='[DFNSTU]'
7218 ;;
7219 esac
7220
7221 # If we're using GNU nm, then use its standard symbol codes.
7222 case `$NM -V 2>&1` in
7223 *GNU* | *'with BFD'*)
7224 symcode='[ABCDGIRSTW]' ;;
7225 esac
7226
7227 # Transform an extracted symbol line into a proper C declaration.
7228 # Some systems (esp. on ia64) link data and code symbols differently,
7229 # so use this general approach.
7230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7231
7232 # Transform an extracted symbol line into symbol name and symbol address
7233 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7234 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'"
7235
7236 # Handle CRLF in mingw tool chain
7237 opt_cr=
7238 case $build_os in
7239 mingw*)
7240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7241 ;;
7242 esac
7243
7244 # Try without a prefix underscore, then with it.
7245 for ac_symprfx in "" "_"; do
7246
7247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7248 symxfrm="\\1 $ac_symprfx\\2 \\2"
7249
7250 # Write the raw and C identifiers.
7251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7252 # Fake it for dumpbin and say T for any non-static function
7253 # and D for any global variable.
7254 # Also find C++ and __fastcall symbols from MSVC++,
7255 # which start with @ or ?.
7256 lt_cv_sys_global_symbol_pipe="$AWK '"\
7257 " {last_section=section; section=\$ 3};"\
7258 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7259 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7260 " \$ 0!~/External *\|/{next};"\
7261 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7262 " {if(hide[section]) next};"\
7263 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7264 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7265 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7266 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7267 " ' prfx=^$ac_symprfx"
7268 else
7269 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7270 fi
7271 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7272
7273 # Check to see that the pipe works correctly.
7274 pipe_works=no
7275
7276 rm -rf conftest*
7277 cat > conftest.$ac_ext <<_LT_EOF
7278 #ifdef __cplusplus
7279 extern "C" {
7280 #endif
7281 char nm_test_var;
7282 void nm_test_func(void);
7283 void nm_test_func(void){}
7284 #ifdef __cplusplus
7285 }
7286 #endif
7287 int main(){nm_test_var='a';nm_test_func();return(0);}
7288 _LT_EOF
7289
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7291 (eval $ac_compile) 2>&5
7292 ac_status=$?
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; }; then
7295 # Now try to grab the symbols.
7296 nlist=conftest.nm
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7298 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; } && test -s "$nlist"; then
7302 # Try sorting and uniquifying the output.
7303 if sort "$nlist" | uniq > "$nlist"T; then
7304 mv -f "$nlist"T "$nlist"
7305 else
7306 rm -f "$nlist"T
7307 fi
7308
7309 # Make sure that we snagged all the symbols we need.
7310 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7311 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7312 cat <<_LT_EOF > conftest.$ac_ext
7313 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7314 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7315 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7316 relocations are performed -- see ld's documentation on pseudo-relocs. */
7317 # define LT_DLSYM_CONST
7318 #elif defined(__osf__)
7319 /* This system does not cope well with relocations in const data. */
7320 # define LT_DLSYM_CONST
7321 #else
7322 # define LT_DLSYM_CONST const
7323 #endif
7324
7325 #ifdef __cplusplus
7326 extern "C" {
7327 #endif
7328
7329 _LT_EOF
7330 # Now generate the symbol file.
7331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7332
7333 cat <<_LT_EOF >> conftest.$ac_ext
7334
7335 /* The mapping between symbol names and symbols. */
7336 LT_DLSYM_CONST struct {
7337 const char *name;
7338 void *address;
7339 }
7340 lt__PROGRAM__LTX_preloaded_symbols[] =
7341 {
7342 { "@PROGRAM@", (void *) 0 },
7343 _LT_EOF
7344 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7345 cat <<\_LT_EOF >> conftest.$ac_ext
7346 {0, (void *) 0}
7347 };
7348
7349 /* This works around a problem in FreeBSD linker */
7350 #ifdef FREEBSD_WORKAROUND
7351 static const void *lt_preloaded_setup() {
7352 return lt__PROGRAM__LTX_preloaded_symbols;
7353 }
7354 #endif
7355
7356 #ifdef __cplusplus
7357 }
7358 #endif
7359 _LT_EOF
7360 # Now try linking the two files.
7361 mv conftest.$ac_objext conftstm.$ac_objext
7362 lt_globsym_save_LIBS=$LIBS
7363 lt_globsym_save_CFLAGS=$CFLAGS
7364 LIBS="conftstm.$ac_objext"
7365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7367 (eval $ac_link) 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7371 pipe_works=yes
7372 fi
7373 LIBS=$lt_globsym_save_LIBS
7374 CFLAGS=$lt_globsym_save_CFLAGS
7375 else
7376 echo "cannot find nm_test_func in $nlist" >&5
7377 fi
7378 else
7379 echo "cannot find nm_test_var in $nlist" >&5
7380 fi
7381 else
7382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7383 fi
7384 else
7385 echo "$progname: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 fi
7388 rm -rf conftest* conftst*
7389
7390 # Do not use the global_symbol_pipe unless it works.
7391 if test "$pipe_works" = yes; then
7392 break
7393 else
7394 lt_cv_sys_global_symbol_pipe=
7395 fi
7396 done
7397
7398 fi
7399
7400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7401 lt_cv_sys_global_symbol_to_cdecl=
7402 fi
7403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7405 $as_echo "failed" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7408 $as_echo "ok" >&6; }
7409 fi
7410
7411 # Response file support.
7412 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7413 nm_file_list_spec='@'
7414 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7415 nm_file_list_spec='@'
7416 fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7445 $as_echo_n "checking for sysroot... " >&6; }
7446
7447 # Check whether --with-sysroot was given.
7448 if test "${with_sysroot+set}" = set; then :
7449 withval=$with_sysroot;
7450 else
7451 with_sysroot=no
7452 fi
7453
7454
7455 lt_sysroot=
7456 case ${with_sysroot} in #(
7457 yes)
7458 if test "$GCC" = yes; then
7459 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7460 fi
7461 ;; #(
7462 /*)
7463 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7464 ;; #(
7465 no|'')
7466 ;; #(
7467 *)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7469 $as_echo "${with_sysroot}" >&6; }
7470 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7471 ;;
7472 esac
7473
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7475 $as_echo "${lt_sysroot:-no}" >&6; }
7476
7477
7478
7479
7480
7481 # Check whether --enable-libtool-lock was given.
7482 if test "${enable_libtool_lock+set}" = set; then :
7483 enableval=$enable_libtool_lock;
7484 fi
7485
7486 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7487
7488 # Some flags need to be propagated to the compiler or linker for good
7489 # libtool support.
7490 case $host in
7491 ia64-*-hpux*)
7492 # Find out which ABI we are using.
7493 echo 'int i;' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 case `/usr/bin/file conftest.$ac_objext` in
7500 *ELF-32*)
7501 HPUX_IA64_MODE="32"
7502 ;;
7503 *ELF-64*)
7504 HPUX_IA64_MODE="64"
7505 ;;
7506 esac
7507 fi
7508 rm -rf conftest*
7509 ;;
7510 *-*-irix6*)
7511 # Find out which ABI we are using.
7512 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 if test "$lt_cv_prog_gnu_ld" = yes; then
7519 case `/usr/bin/file conftest.$ac_objext` in
7520 *32-bit*)
7521 LD="${LD-ld} -melf32bsmip"
7522 ;;
7523 *N32*)
7524 LD="${LD-ld} -melf32bmipn32"
7525 ;;
7526 *64-bit*)
7527 LD="${LD-ld} -melf64bmip"
7528 ;;
7529 esac
7530 else
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *32-bit*)
7533 LD="${LD-ld} -32"
7534 ;;
7535 *N32*)
7536 LD="${LD-ld} -n32"
7537 ;;
7538 *64-bit*)
7539 LD="${LD-ld} -64"
7540 ;;
7541 esac
7542 fi
7543 fi
7544 rm -rf conftest*
7545 ;;
7546
7547 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7548 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7549 # Find out which ABI we are using.
7550 echo 'int i;' > conftest.$ac_ext
7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7552 (eval $ac_compile) 2>&5
7553 ac_status=$?
7554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555 test $ac_status = 0; }; then
7556 case `/usr/bin/file conftest.o` in
7557 *32-bit*)
7558 case $host in
7559 x86_64-*kfreebsd*-gnu)
7560 LD="${LD-ld} -m elf_i386_fbsd"
7561 ;;
7562 x86_64-*linux*)
7563 LD="${LD-ld} -m elf_i386"
7564 ;;
7565 ppc64-*linux*|powerpc64-*linux*)
7566 LD="${LD-ld} -m elf32ppclinux"
7567 ;;
7568 s390x-*linux*)
7569 LD="${LD-ld} -m elf_s390"
7570 ;;
7571 sparc64-*linux*)
7572 LD="${LD-ld} -m elf32_sparc"
7573 ;;
7574 esac
7575 ;;
7576 *64-bit*)
7577 case $host in
7578 x86_64-*kfreebsd*-gnu)
7579 LD="${LD-ld} -m elf_x86_64_fbsd"
7580 ;;
7581 x86_64-*linux*)
7582 LD="${LD-ld} -m elf_x86_64"
7583 ;;
7584 ppc*-*linux*|powerpc*-*linux*)
7585 LD="${LD-ld} -m elf64ppc"
7586 ;;
7587 s390*-*linux*|s390*-*tpf*)
7588 LD="${LD-ld} -m elf64_s390"
7589 ;;
7590 sparc*-*linux*)
7591 LD="${LD-ld} -m elf64_sparc"
7592 ;;
7593 esac
7594 ;;
7595 esac
7596 fi
7597 rm -rf conftest*
7598 ;;
7599
7600 *-*-sco3.2v5*)
7601 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7602 SAVE_CFLAGS="$CFLAGS"
7603 CFLAGS="$CFLAGS -belf"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7605 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7606 if ${lt_cv_cc_needs_belf+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 ac_ext=c
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617
7618 int
7619 main ()
7620 {
7621
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_link "$LINENO"; then :
7627 lt_cv_cc_needs_belf=yes
7628 else
7629 lt_cv_cc_needs_belf=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 ac_ext=c
7634 ac_cpp='$CPP $CPPFLAGS'
7635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7641 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7644 CFLAGS="$SAVE_CFLAGS"
7645 fi
7646 ;;
7647 *-*solaris*)
7648 # Find out which ABI we are using.
7649 echo 'int i;' > conftest.$ac_ext
7650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7651 (eval $ac_compile) 2>&5
7652 ac_status=$?
7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7654 test $ac_status = 0; }; then
7655 case `/usr/bin/file conftest.o` in
7656 *64-bit*)
7657 case $lt_cv_prog_gnu_ld in
7658 yes*)
7659 case $host in
7660 i?86-*-solaris*)
7661 LD="${LD-ld} -m elf_x86_64"
7662 ;;
7663 sparc*-*-solaris*)
7664 LD="${LD-ld} -m elf64_sparc"
7665 ;;
7666 esac
7667 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7668 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7669 LD="${LD-ld}_sol2"
7670 fi
7671 ;;
7672 *)
7673 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7674 LD="${LD-ld} -64"
7675 fi
7676 ;;
7677 esac
7678 ;;
7679 esac
7680 fi
7681 rm -rf conftest*
7682 ;;
7683 esac
7684
7685 need_locks="$enable_libtool_lock"
7686
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}mt; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if test -n "$MANIFEST_TOOL"; then
7696 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7716 if test -n "$MANIFEST_TOOL"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7718 $as_echo "$MANIFEST_TOOL" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 fi
7726 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7727 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7728 # Extract the first word of "mt", so it can be a program name with args.
7729 set dummy mt; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$ac_ct_MANIFEST_TOOL"; then
7736 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7756 if test -n "$ac_ct_MANIFEST_TOOL"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7758 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7765 MANIFEST_TOOL=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768 yes:)
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned=yes ;;
7772 esac
7773 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7774 fi
7775 else
7776 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7777 fi
7778
7779 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7781 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7782 if ${lt_cv_path_mainfest_tool+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 lt_cv_path_mainfest_tool=no
7786 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7787 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7788 cat conftest.err >&5
7789 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7790 lt_cv_path_mainfest_tool=yes
7791 fi
7792 rm -rf conftest*
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7795 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7796 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7797 MANIFEST_TOOL=:
7798 fi
7799
7800
7801
7802
7803
7804
7805 case $host_os in
7806 rhapsody* | darwin*)
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7809 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$DSYMUTIL"; then
7816 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829 done
7830 done
7831 IFS=$as_save_IFS
7832
7833 fi
7834 fi
7835 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7836 if test -n "$DSYMUTIL"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7838 $as_echo "$DSYMUTIL" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843
7844
7845 fi
7846 if test -z "$ac_cv_prog_DSYMUTIL"; then
7847 ac_ct_DSYMUTIL=$DSYMUTIL
7848 # Extract the first word of "dsymutil", so it can be a program name with args.
7849 set dummy dsymutil; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$ac_ct_DSYMUTIL"; then
7856 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7876 if test -n "$ac_ct_DSYMUTIL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7878 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7879 else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7882 fi
7883
7884 if test "x$ac_ct_DSYMUTIL" = x; then
7885 DSYMUTIL=":"
7886 else
7887 case $cross_compiling:$ac_tool_warned in
7888 yes:)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned=yes ;;
7892 esac
7893 DSYMUTIL=$ac_ct_DSYMUTIL
7894 fi
7895 else
7896 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7897 fi
7898
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_NMEDIT+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$NMEDIT"; then
7908 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 NMEDIT=$ac_cv_prog_NMEDIT
7928 if test -n "$NMEDIT"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7930 $as_echo "$NMEDIT" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 fi
7938 if test -z "$ac_cv_prog_NMEDIT"; then
7939 ac_ct_NMEDIT=$NMEDIT
7940 # Extract the first word of "nmedit", so it can be a program name with args.
7941 set dummy nmedit; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$ac_ct_NMEDIT"; then
7948 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7968 if test -n "$ac_ct_NMEDIT"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7970 $as_echo "$ac_ct_NMEDIT" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976 if test "x$ac_ct_NMEDIT" = x; then
7977 NMEDIT=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985 NMEDIT=$ac_ct_NMEDIT
7986 fi
7987 else
7988 NMEDIT="$ac_cv_prog_NMEDIT"
7989 fi
7990
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_LIPO+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$LIPO"; then
8000 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 LIPO=$ac_cv_prog_LIPO
8020 if test -n "$LIPO"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8022 $as_echo "$LIPO" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_LIPO"; then
8031 ac_ct_LIPO=$LIPO
8032 # Extract the first word of "lipo", so it can be a program name with args.
8033 set dummy lipo; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$ac_ct_LIPO"; then
8040 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_LIPO="lipo"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8060 if test -n "$ac_ct_LIPO"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8062 $as_echo "$ac_ct_LIPO" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068 if test "x$ac_ct_LIPO" = x; then
8069 LIPO=":"
8070 else
8071 case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077 LIPO=$ac_ct_LIPO
8078 fi
8079 else
8080 LIPO="$ac_cv_prog_LIPO"
8081 fi
8082
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}otool; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_OTOOL+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 if test -n "$OTOOL"; then
8092 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 OTOOL=$ac_cv_prog_OTOOL
8112 if test -n "$OTOOL"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8114 $as_echo "$OTOOL" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_OTOOL"; then
8123 ac_ct_OTOOL=$OTOOL
8124 # Extract the first word of "otool", so it can be a program name with args.
8125 set dummy otool; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$ac_ct_OTOOL"; then
8132 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_ac_ct_OTOOL="otool"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145 done
8146 done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8152 if test -n "$ac_ct_OTOOL"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8154 $as_echo "$ac_ct_OTOOL" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160 if test "x$ac_ct_OTOOL" = x; then
8161 OTOOL=":"
8162 else
8163 case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169 OTOOL=$ac_ct_OTOOL
8170 fi
8171 else
8172 OTOOL="$ac_cv_prog_OTOOL"
8173 fi
8174
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if ${ac_cv_prog_OTOOL64+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 if test -n "$OTOOL64"; then
8184 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8196 fi
8197 done
8198 done
8199 IFS=$as_save_IFS
8200
8201 fi
8202 fi
8203 OTOOL64=$ac_cv_prog_OTOOL64
8204 if test -n "$OTOOL64"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8206 $as_echo "$OTOOL64" >&6; }
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_OTOOL64"; then
8215 ac_ct_OTOOL64=$OTOOL64
8216 # Extract the first word of "otool64", so it can be a program name with args.
8217 set dummy otool64; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$ac_ct_OTOOL64"; then
8224 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_ac_ct_OTOOL64="otool64"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 fi
8242 fi
8243 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8244 if test -n "$ac_ct_OTOOL64"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8246 $as_echo "$ac_ct_OTOOL64" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252 if test "x$ac_ct_OTOOL64" = x; then
8253 OTOOL64=":"
8254 else
8255 case $cross_compiling:$ac_tool_warned in
8256 yes:)
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8260 esac
8261 OTOOL64=$ac_ct_OTOOL64
8262 fi
8263 else
8264 OTOOL64="$ac_cv_prog_OTOOL64"
8265 fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8294 $as_echo_n "checking for -single_module linker flag... " >&6; }
8295 if ${lt_cv_apple_cc_single_mod+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 lt_cv_apple_cc_single_mod=no
8299 if test -z "${LT_MULTI_MODULE}"; then
8300 # By default we will add the -single_module flag. You can override
8301 # by either setting the environment variable LT_MULTI_MODULE
8302 # non-empty at configure time, or by adding -multi_module to the
8303 # link flags.
8304 rm -rf libconftest.dylib*
8305 echo "int foo(void){return 1;}" > conftest.c
8306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8307 -dynamiclib -Wl,-single_module conftest.c" >&5
8308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8310 _lt_result=$?
8311 # If there is a non-empty error log, and "single_module"
8312 # appears in it, assume the flag caused a linker warning
8313 if test -s conftest.err && $GREP single_module conftest.err; then
8314 cat conftest.err >&5
8315 # Otherwise, if the output was created with a 0 exit code from
8316 # the compiler, it worked.
8317 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8318 lt_cv_apple_cc_single_mod=yes
8319 else
8320 cat conftest.err >&5
8321 fi
8322 rm -rf libconftest.dylib*
8323 rm -f conftest.*
8324 fi
8325 fi
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8327 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8330 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8331 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 lt_cv_ld_exported_symbols_list=no
8335 save_LDFLAGS=$LDFLAGS
8336 echo "_main" > conftest.sym
8337 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340
8341 int
8342 main ()
8343 {
8344
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_link "$LINENO"; then :
8350 lt_cv_ld_exported_symbols_list=yes
8351 else
8352 lt_cv_ld_exported_symbols_list=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 LDFLAGS="$save_LDFLAGS"
8357
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8360 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8363 $as_echo_n "checking for -force_load linker flag... " >&6; }
8364 if ${lt_cv_ld_force_load+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 lt_cv_ld_force_load=no
8368 cat > conftest.c << _LT_EOF
8369 int forced_loaded() { return 2;}
8370 _LT_EOF
8371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8373 echo "$AR cru libconftest.a conftest.o" >&5
8374 $AR cru libconftest.a conftest.o 2>&5
8375 echo "$RANLIB libconftest.a" >&5
8376 $RANLIB libconftest.a 2>&5
8377 cat > conftest.c << _LT_EOF
8378 int main() { return 0;}
8379 _LT_EOF
8380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8382 _lt_result=$?
8383 if test -s conftest.err && $GREP force_load conftest.err; then
8384 cat conftest.err >&5
8385 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8386 lt_cv_ld_force_load=yes
8387 else
8388 cat conftest.err >&5
8389 fi
8390 rm -f conftest.err libconftest.a conftest conftest.c
8391 rm -rf conftest.dSYM
8392
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8395 $as_echo "$lt_cv_ld_force_load" >&6; }
8396 case $host_os in
8397 rhapsody* | darwin1.[012])
8398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8399 darwin1.*)
8400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8401 darwin*) # darwin 5.x on
8402 # if running on 10.5 or later, the deployment target defaults
8403 # to the OS version, if on x86, and 10.4, the deployment
8404 # target defaults to 10.4. Don't you love it?
8405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8406 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8408 10.[012]*)
8409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8410 10.*)
8411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8412 esac
8413 ;;
8414 esac
8415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8416 _lt_dar_single_mod='$single_module'
8417 fi
8418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8420 else
8421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8422 fi
8423 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8424 _lt_dsymutil='~$DSYMUTIL $lib || :'
8425 else
8426 _lt_dsymutil=
8427 fi
8428 ;;
8429 esac
8430
8431 ac_ext=c
8432 ac_cpp='$CPP $CPPFLAGS'
8433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8437 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8438 # On Suns, sometimes $CPP names a directory.
8439 if test -n "$CPP" && test -d "$CPP"; then
8440 CPP=
8441 fi
8442 if test -z "$CPP"; then
8443 if ${ac_cv_prog_CPP+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 # Double quotes because CPP needs to be expanded
8447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8448 do
8449 ac_preproc_ok=false
8450 for ac_c_preproc_warn_flag in '' yes
8451 do
8452 # Use a header file that comes with gcc, so configuring glibc
8453 # with a fresh cross-compiler works.
8454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 # <limits.h> exists even on freestanding compilers.
8456 # On the NeXT, cc -E runs the code through the compiler's parser,
8457 # not just through cpp. "Syntax error" is here to catch this case.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #ifdef __STDC__
8461 # include <limits.h>
8462 #else
8463 # include <assert.h>
8464 #endif
8465 Syntax error
8466 _ACEOF
8467 if ac_fn_c_try_cpp "$LINENO"; then :
8468
8469 else
8470 # Broken: fails on valid input.
8471 continue
8472 fi
8473 rm -f conftest.err conftest.i conftest.$ac_ext
8474
8475 # OK, works on sane cases. Now check whether nonexistent headers
8476 # can be detected and how.
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <ac_nonexistent.h>
8480 _ACEOF
8481 if ac_fn_c_try_cpp "$LINENO"; then :
8482 # Broken: success on invalid input.
8483 continue
8484 else
8485 # Passes both tests.
8486 ac_preproc_ok=:
8487 break
8488 fi
8489 rm -f conftest.err conftest.i conftest.$ac_ext
8490
8491 done
8492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8493 rm -f conftest.i conftest.err conftest.$ac_ext
8494 if $ac_preproc_ok; then :
8495 break
8496 fi
8497
8498 done
8499 ac_cv_prog_CPP=$CPP
8500
8501 fi
8502 CPP=$ac_cv_prog_CPP
8503 else
8504 ac_cv_prog_CPP=$CPP
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8507 $as_echo "$CPP" >&6; }
8508 ac_preproc_ok=false
8509 for ac_c_preproc_warn_flag in '' yes
8510 do
8511 # Use a header file that comes with gcc, so configuring glibc
8512 # with a fresh cross-compiler works.
8513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8514 # <limits.h> exists even on freestanding compilers.
8515 # On the NeXT, cc -E runs the code through the compiler's parser,
8516 # not just through cpp. "Syntax error" is here to catch this case.
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 #ifdef __STDC__
8520 # include <limits.h>
8521 #else
8522 # include <assert.h>
8523 #endif
8524 Syntax error
8525 _ACEOF
8526 if ac_fn_c_try_cpp "$LINENO"; then :
8527
8528 else
8529 # Broken: fails on valid input.
8530 continue
8531 fi
8532 rm -f conftest.err conftest.i conftest.$ac_ext
8533
8534 # OK, works on sane cases. Now check whether nonexistent headers
8535 # can be detected and how.
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 #include <ac_nonexistent.h>
8539 _ACEOF
8540 if ac_fn_c_try_cpp "$LINENO"; then :
8541 # Broken: success on invalid input.
8542 continue
8543 else
8544 # Passes both tests.
8545 ac_preproc_ok=:
8546 break
8547 fi
8548 rm -f conftest.err conftest.i conftest.$ac_ext
8549
8550 done
8551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8552 rm -f conftest.i conftest.err conftest.$ac_ext
8553 if $ac_preproc_ok; then :
8554
8555 else
8556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8558 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8559 See \`config.log' for more details" "$LINENO" 5; }
8560 fi
8561
8562 ac_ext=c
8563 ac_cpp='$CPP $CPPFLAGS'
8564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567
8568
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8570 $as_echo_n "checking for ANSI C header files... " >&6; }
8571 if ${ac_cv_header_stdc+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <stdlib.h>
8577 #include <stdarg.h>
8578 #include <string.h>
8579 #include <float.h>
8580
8581 int
8582 main ()
8583 {
8584
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 ac_cv_header_stdc=yes
8591 else
8592 ac_cv_header_stdc=no
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595
8596 if test $ac_cv_header_stdc = yes; then
8597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <string.h>
8601
8602 _ACEOF
8603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 $EGREP "memchr" >/dev/null 2>&1; then :
8605
8606 else
8607 ac_cv_header_stdc=no
8608 fi
8609 rm -f conftest*
8610
8611 fi
8612
8613 if test $ac_cv_header_stdc = yes; then
8614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <stdlib.h>
8618
8619 _ACEOF
8620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8621 $EGREP "free" >/dev/null 2>&1; then :
8622
8623 else
8624 ac_cv_header_stdc=no
8625 fi
8626 rm -f conftest*
8627
8628 fi
8629
8630 if test $ac_cv_header_stdc = yes; then
8631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8632 if test "$cross_compiling" = yes; then :
8633 :
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <ctype.h>
8638 #include <stdlib.h>
8639 #if ((' ' & 0x0FF) == 0x020)
8640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8642 #else
8643 # define ISLOWER(c) \
8644 (('a' <= (c) && (c) <= 'i') \
8645 || ('j' <= (c) && (c) <= 'r') \
8646 || ('s' <= (c) && (c) <= 'z'))
8647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8648 #endif
8649
8650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8651 int
8652 main ()
8653 {
8654 int i;
8655 for (i = 0; i < 256; i++)
8656 if (XOR (islower (i), ISLOWER (i))
8657 || toupper (i) != TOUPPER (i))
8658 return 2;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_run "$LINENO"; then :
8663
8664 else
8665 ac_cv_header_stdc=no
8666 fi
8667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8668 conftest.$ac_objext conftest.beam conftest.$ac_ext
8669 fi
8670
8671 fi
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8674 $as_echo "$ac_cv_header_stdc" >&6; }
8675 if test $ac_cv_header_stdc = yes; then
8676
8677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8678
8679 fi
8680
8681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8682 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8683 inttypes.h stdint.h unistd.h
8684 do :
8685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8686 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8687 "
8688 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8689 cat >>confdefs.h <<_ACEOF
8690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8691 _ACEOF
8692
8693 fi
8694
8695 done
8696
8697
8698 for ac_header in dlfcn.h
8699 do :
8700 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8701 "
8702 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8703 cat >>confdefs.h <<_ACEOF
8704 #define HAVE_DLFCN_H 1
8705 _ACEOF
8706
8707 fi
8708
8709 done
8710
8711
8712
8713
8714 func_stripname_cnf ()
8715 {
8716 case ${2} in
8717 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8718 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8719 esac
8720 } # func_stripname_cnf
8721
8722
8723
8724
8725
8726 # Set options
8727 # Check whether --enable-static was given.
8728 if test "${enable_static+set}" = set; then :
8729 enableval=$enable_static; p=${PACKAGE-default}
8730 case $enableval in
8731 yes) enable_static=yes ;;
8732 no) enable_static=no ;;
8733 *)
8734 enable_static=no
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8737 for pkg in $enableval; do
8738 IFS="$lt_save_ifs"
8739 if test "X$pkg" = "X$p"; then
8740 enable_static=yes
8741 fi
8742 done
8743 IFS="$lt_save_ifs"
8744 ;;
8745 esac
8746 else
8747 enable_static=no
8748 fi
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759 enable_dlopen=no
8760
8761
8762 enable_win32_dll=no
8763
8764
8765 # Check whether --enable-shared was given.
8766 if test "${enable_shared+set}" = set; then :
8767 enableval=$enable_shared; p=${PACKAGE-default}
8768 case $enableval in
8769 yes) enable_shared=yes ;;
8770 no) enable_shared=no ;;
8771 *)
8772 enable_shared=no
8773 # Look at the argument we got. We use all the common list separators.
8774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8775 for pkg in $enableval; do
8776 IFS="$lt_save_ifs"
8777 if test "X$pkg" = "X$p"; then
8778 enable_shared=yes
8779 fi
8780 done
8781 IFS="$lt_save_ifs"
8782 ;;
8783 esac
8784 else
8785 enable_shared=yes
8786 fi
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 # Check whether --with-pic was given.
8799 if test "${with_pic+set}" = set; then :
8800 withval=$with_pic; lt_p=${PACKAGE-default}
8801 case $withval in
8802 yes|no) pic_mode=$withval ;;
8803 *)
8804 pic_mode=default
8805 # Look at the argument we got. We use all the common list separators.
8806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8807 for lt_pkg in $withval; do
8808 IFS="$lt_save_ifs"
8809 if test "X$lt_pkg" = "X$lt_p"; then
8810 pic_mode=yes
8811 fi
8812 done
8813 IFS="$lt_save_ifs"
8814 ;;
8815 esac
8816 else
8817 pic_mode=default
8818 fi
8819
8820
8821 test -z "$pic_mode" && pic_mode=default
8822
8823
8824
8825
8826
8827
8828
8829 # Check whether --enable-fast-install was given.
8830 if test "${enable_fast_install+set}" = set; then :
8831 enableval=$enable_fast_install; p=${PACKAGE-default}
8832 case $enableval in
8833 yes) enable_fast_install=yes ;;
8834 no) enable_fast_install=no ;;
8835 *)
8836 enable_fast_install=no
8837 # Look at the argument we got. We use all the common list separators.
8838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8839 for pkg in $enableval; do
8840 IFS="$lt_save_ifs"
8841 if test "X$pkg" = "X$p"; then
8842 enable_fast_install=yes
8843 fi
8844 done
8845 IFS="$lt_save_ifs"
8846 ;;
8847 esac
8848 else
8849 enable_fast_install=yes
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 # This can be used to rebuild libtool when needed
8863 LIBTOOL_DEPS="$ltmain"
8864
8865 # Always use our own libtool.
8866 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 test -z "$LN_S" && LN_S="ln -s"
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 if test -n "${ZSH_VERSION+set}" ; then
8913 setopt NO_GLOB_SUBST
8914 fi
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8917 $as_echo_n "checking for objdir... " >&6; }
8918 if ${lt_cv_objdir+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 rm -f .libs 2>/dev/null
8922 mkdir .libs 2>/dev/null
8923 if test -d .libs; then
8924 lt_cv_objdir=.libs
8925 else
8926 # MS-DOS does not allow filenames that begin with a dot.
8927 lt_cv_objdir=_libs
8928 fi
8929 rmdir .libs 2>/dev/null
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8932 $as_echo "$lt_cv_objdir" >&6; }
8933 objdir=$lt_cv_objdir
8934
8935
8936
8937
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define LT_OBJDIR "$lt_cv_objdir/"
8941 _ACEOF
8942
8943
8944
8945
8946 case $host_os in
8947 aix3*)
8948 # AIX sometimes has problems with the GCC collect2 program. For some
8949 # reason, if we set the COLLECT_NAMES environment variable, the problems
8950 # vanish in a puff of smoke.
8951 if test "X${COLLECT_NAMES+set}" != Xset; then
8952 COLLECT_NAMES=
8953 export COLLECT_NAMES
8954 fi
8955 ;;
8956 esac
8957
8958 # Global variables:
8959 ofile=libtool
8960 can_build_shared=yes
8961
8962 # All known linkers require a `.a' archive for static linking (except MSVC,
8963 # which needs '.lib').
8964 libext=a
8965
8966 with_gnu_ld="$lt_cv_prog_gnu_ld"
8967
8968 old_CC="$CC"
8969 old_CFLAGS="$CFLAGS"
8970
8971 # Set sane defaults for various variables
8972 test -z "$CC" && CC=cc
8973 test -z "$LTCC" && LTCC=$CC
8974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8975 test -z "$LD" && LD=ld
8976 test -z "$ac_objext" && ac_objext=o
8977
8978 for cc_temp in $compiler""; do
8979 case $cc_temp in
8980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8982 \-*) ;;
8983 *) break;;
8984 esac
8985 done
8986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8987
8988
8989 # Only perform the check for file, if the check method requires it
8990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8991 case $deplibs_check_method in
8992 file_magic*)
8993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 case $MAGIC_CMD in
9000 [\\/*] | ?:[\\/]*)
9001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9002 ;;
9003 *)
9004 lt_save_MAGIC_CMD="$MAGIC_CMD"
9005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9007 for ac_dir in $ac_dummy; do
9008 IFS="$lt_save_ifs"
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f $ac_dir/${ac_tool_prefix}file; then
9011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9012 if test -n "$file_magic_test_file"; then
9013 case $deplibs_check_method in
9014 "file_magic "*)
9015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9018 $EGREP "$file_magic_regex" > /dev/null; then
9019 :
9020 else
9021 cat <<_LT_EOF 1>&2
9022
9023 *** Warning: the command libtool uses to detect shared libraries,
9024 *** $file_magic_cmd, produces output that libtool cannot recognize.
9025 *** The result is that libtool may fail to recognize shared libraries
9026 *** as such. This will affect the creation of libtool libraries that
9027 *** depend on shared libraries, but programs linked with such libtool
9028 *** libraries will work regardless of this problem. Nevertheless, you
9029 *** may want to report the problem to your system manager and/or to
9030 *** bug-libtool@gnu.org
9031
9032 _LT_EOF
9033 fi ;;
9034 esac
9035 fi
9036 break
9037 fi
9038 done
9039 IFS="$lt_save_ifs"
9040 MAGIC_CMD="$lt_save_MAGIC_CMD"
9041 ;;
9042 esac
9043 fi
9044
9045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9046 if test -n "$MAGIC_CMD"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9048 $as_echo "$MAGIC_CMD" >&6; }
9049 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 fi
9053
9054
9055
9056
9057
9058 if test -z "$lt_cv_path_MAGIC_CMD"; then
9059 if test -n "$ac_tool_prefix"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9061 $as_echo_n "checking for file... " >&6; }
9062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 case $MAGIC_CMD in
9066 [\\/*] | ?:[\\/]*)
9067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9068 ;;
9069 *)
9070 lt_save_MAGIC_CMD="$MAGIC_CMD"
9071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9073 for ac_dir in $ac_dummy; do
9074 IFS="$lt_save_ifs"
9075 test -z "$ac_dir" && ac_dir=.
9076 if test -f $ac_dir/file; then
9077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9078 if test -n "$file_magic_test_file"; then
9079 case $deplibs_check_method in
9080 "file_magic "*)
9081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9084 $EGREP "$file_magic_regex" > /dev/null; then
9085 :
9086 else
9087 cat <<_LT_EOF 1>&2
9088
9089 *** Warning: the command libtool uses to detect shared libraries,
9090 *** $file_magic_cmd, produces output that libtool cannot recognize.
9091 *** The result is that libtool may fail to recognize shared libraries
9092 *** as such. This will affect the creation of libtool libraries that
9093 *** depend on shared libraries, but programs linked with such libtool
9094 *** libraries will work regardless of this problem. Nevertheless, you
9095 *** may want to report the problem to your system manager and/or to
9096 *** bug-libtool@gnu.org
9097
9098 _LT_EOF
9099 fi ;;
9100 esac
9101 fi
9102 break
9103 fi
9104 done
9105 IFS="$lt_save_ifs"
9106 MAGIC_CMD="$lt_save_MAGIC_CMD"
9107 ;;
9108 esac
9109 fi
9110
9111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9112 if test -n "$MAGIC_CMD"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9114 $as_echo "$MAGIC_CMD" >&6; }
9115 else
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119
9120
9121 else
9122 MAGIC_CMD=:
9123 fi
9124 fi
9125
9126 fi
9127 ;;
9128 esac
9129
9130 # Use C for the default configuration in the libtool script
9131
9132 lt_save_CC="$CC"
9133 ac_ext=c
9134 ac_cpp='$CPP $CPPFLAGS'
9135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9138
9139
9140 # Source file extension for C test sources.
9141 ac_ext=c
9142
9143 # Object file extension for compiled C test sources.
9144 objext=o
9145 objext=$objext
9146
9147 # Code to be used in simple compile tests
9148 lt_simple_compile_test_code="int some_variable = 0;"
9149
9150 # Code to be used in simple link tests
9151 lt_simple_link_test_code='int main(){return(0);}'
9152
9153
9154
9155
9156
9157
9158
9159 # If no C compiler was specified, use CC.
9160 LTCC=${LTCC-"$CC"}
9161
9162 # If no C compiler flags were specified, use CFLAGS.
9163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9164
9165 # Allow CC to be a program name with arguments.
9166 compiler=$CC
9167
9168 # Save the default compiler, since it gets overwritten when the other
9169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9170 compiler_DEFAULT=$CC
9171
9172 # save warnings/boilerplate of simple test code
9173 ac_outfile=conftest.$ac_objext
9174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9176 _lt_compiler_boilerplate=`cat conftest.err`
9177 $RM -r conftest*
9178
9179 ac_outfile=conftest.$ac_objext
9180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9182 _lt_linker_boilerplate=`cat conftest.err`
9183 $RM -r conftest*
9184
9185
9186 ## CAVEAT EMPTOR:
9187 ## There is no encapsulation within the following macros, do not change
9188 ## the running order or otherwise move them around unless you know exactly
9189 ## what you are doing...
9190 if test -n "$compiler"; then
9191
9192 lt_prog_compiler_no_builtin_flag=
9193
9194 if test "$GCC" = yes; then
9195 case $cc_basename in
9196 nvcc*)
9197 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9198 *)
9199 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9200 esac
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9203 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9204 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 lt_cv_prog_compiler_rtti_exceptions=no
9208 ac_outfile=conftest.$ac_objext
9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9210 lt_compiler_flag="-fno-rtti -fno-exceptions"
9211 # Insert the option either (1) after the last *FLAGS variable, or
9212 # (2) before a word containing "conftest.", or (3) at the end.
9213 # Note that $ac_compile itself does not contain backslashes and begins
9214 # with a dollar sign (not a hyphen), so the echo should work correctly.
9215 # The option is referenced via a variable to avoid confusing sed.
9216 lt_compile=`echo "$ac_compile" | $SED \
9217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9219 -e 's:$: $lt_compiler_flag:'`
9220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9221 (eval "$lt_compile" 2>conftest.err)
9222 ac_status=$?
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 if (exit $ac_status) && test -s "$ac_outfile"; then
9226 # The compiler can only warn and ignore the option if not recognized
9227 # So say no if there are warnings other than the usual output.
9228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9231 lt_cv_prog_compiler_rtti_exceptions=yes
9232 fi
9233 fi
9234 $RM -r conftest*
9235
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9238 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9239
9240 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9241 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9242 else
9243 :
9244 fi
9245
9246 fi
9247
9248
9249
9250
9251
9252
9253 lt_prog_compiler_wl=
9254 lt_prog_compiler_pic=
9255 lt_prog_compiler_static=
9256
9257
9258 if test "$GCC" = yes; then
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_static='-static'
9261
9262 case $host_os in
9263 aix*)
9264 # All AIX code is PIC.
9265 if test "$host_cpu" = ia64; then
9266 # AIX 5 now supports IA64 processor
9267 lt_prog_compiler_static='-Bstatic'
9268 fi
9269 ;;
9270
9271 amigaos*)
9272 case $host_cpu in
9273 powerpc)
9274 # see comment about AmigaOS4 .so support
9275 lt_prog_compiler_pic='-fPIC'
9276 ;;
9277 m68k)
9278 # FIXME: we need at least 68020 code to build shared libraries, but
9279 # adding the `-m68020' flag to GCC prevents building anything better,
9280 # like `-m68040'.
9281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9282 ;;
9283 esac
9284 ;;
9285
9286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9287 # PIC is the default for these OSes.
9288 ;;
9289
9290 mingw* | cygwin* | pw32* | os2* | cegcc*)
9291 # This hack is so that the source file can tell whether it is being
9292 # built for inclusion in a dll (and should export symbols for example).
9293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9294 # (--disable-auto-import) libraries
9295 lt_prog_compiler_pic='-DDLL_EXPORT'
9296 ;;
9297
9298 darwin* | rhapsody*)
9299 # PIC is the default on this platform
9300 # Common symbols not allowed in MH_DYLIB files
9301 lt_prog_compiler_pic='-fno-common'
9302 ;;
9303
9304 haiku*)
9305 # PIC is the default for Haiku.
9306 # The "-static" flag exists, but is broken.
9307 lt_prog_compiler_static=
9308 ;;
9309
9310 hpux*)
9311 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9312 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9313 # sets the default TLS model and affects inlining.
9314 case $host_cpu in
9315 hppa*64*)
9316 # +Z the default
9317 ;;
9318 *)
9319 lt_prog_compiler_pic='-fPIC'
9320 ;;
9321 esac
9322 ;;
9323
9324 interix[3-9]*)
9325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9326 # Instead, we relocate shared libraries at runtime.
9327 ;;
9328
9329 msdosdjgpp*)
9330 # Just because we use GCC doesn't mean we suddenly get shared libraries
9331 # on systems that don't support them.
9332 lt_prog_compiler_can_build_shared=no
9333 enable_shared=no
9334 ;;
9335
9336 *nto* | *qnx*)
9337 # QNX uses GNU C++, but need to define -shared option too, otherwise
9338 # it will coredump.
9339 lt_prog_compiler_pic='-fPIC -shared'
9340 ;;
9341
9342 sysv4*MP*)
9343 if test -d /usr/nec; then
9344 lt_prog_compiler_pic=-Kconform_pic
9345 fi
9346 ;;
9347
9348 *)
9349 lt_prog_compiler_pic='-fPIC'
9350 ;;
9351 esac
9352
9353 case $cc_basename in
9354 nvcc*) # Cuda Compiler Driver 2.2
9355 lt_prog_compiler_wl='-Xlinker '
9356 if test -n "$lt_prog_compiler_pic"; then
9357 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9358 fi
9359 ;;
9360 esac
9361 else
9362 # PORTME Check for flag to pass linker flags through the system compiler.
9363 case $host_os in
9364 aix*)
9365 lt_prog_compiler_wl='-Wl,'
9366 if test "$host_cpu" = ia64; then
9367 # AIX 5 now supports IA64 processor
9368 lt_prog_compiler_static='-Bstatic'
9369 else
9370 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9371 fi
9372 ;;
9373
9374 mingw* | cygwin* | pw32* | os2* | cegcc*)
9375 # This hack is so that the source file can tell whether it is being
9376 # built for inclusion in a dll (and should export symbols for example).
9377 lt_prog_compiler_pic='-DDLL_EXPORT'
9378 ;;
9379
9380 hpux9* | hpux10* | hpux11*)
9381 lt_prog_compiler_wl='-Wl,'
9382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9383 # not for PA HP-UX.
9384 case $host_cpu in
9385 hppa*64*|ia64*)
9386 # +Z the default
9387 ;;
9388 *)
9389 lt_prog_compiler_pic='+Z'
9390 ;;
9391 esac
9392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9393 lt_prog_compiler_static='${wl}-a ${wl}archive'
9394 ;;
9395
9396 irix5* | irix6* | nonstopux*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # PIC (with -KPIC) is the default.
9399 lt_prog_compiler_static='-non_shared'
9400 ;;
9401
9402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9403 case $cc_basename in
9404 # old Intel for x86_64 which still supported -KPIC.
9405 ecc*)
9406 lt_prog_compiler_wl='-Wl,'
9407 lt_prog_compiler_pic='-KPIC'
9408 lt_prog_compiler_static='-static'
9409 ;;
9410 # icc used to be incompatible with GCC.
9411 # ICC 10 doesn't accept -KPIC any more.
9412 icc* | ifort*)
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='-fPIC'
9415 lt_prog_compiler_static='-static'
9416 ;;
9417 # Lahey Fortran 8.1.
9418 lf95*)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='--shared'
9421 lt_prog_compiler_static='--static'
9422 ;;
9423 nagfor*)
9424 # NAG Fortran compiler
9425 lt_prog_compiler_wl='-Wl,-Wl,,'
9426 lt_prog_compiler_pic='-PIC'
9427 lt_prog_compiler_static='-Bstatic'
9428 ;;
9429 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9430 # Portland Group compilers (*not* the Pentium gcc compiler,
9431 # which looks to be a dead project)
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-fpic'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436 ccc*)
9437 lt_prog_compiler_wl='-Wl,'
9438 # All Alpha code is PIC.
9439 lt_prog_compiler_static='-non_shared'
9440 ;;
9441 xl* | bgxl* | bgf* | mpixl*)
9442 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-qpic'
9445 lt_prog_compiler_static='-qstaticlink'
9446 ;;
9447 *)
9448 case `$CC -V 2>&1 | sed 5q` in
9449 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9450 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9451 lt_prog_compiler_pic='-KPIC'
9452 lt_prog_compiler_static='-Bstatic'
9453 lt_prog_compiler_wl=''
9454 ;;
9455 *Sun\ F* | *Sun*Fortran*)
9456 lt_prog_compiler_pic='-KPIC'
9457 lt_prog_compiler_static='-Bstatic'
9458 lt_prog_compiler_wl='-Qoption ld '
9459 ;;
9460 *Sun\ C*)
9461 # Sun C 5.9
9462 lt_prog_compiler_pic='-KPIC'
9463 lt_prog_compiler_static='-Bstatic'
9464 lt_prog_compiler_wl='-Wl,'
9465 ;;
9466 *Intel*\ [CF]*Compiler*)
9467 lt_prog_compiler_wl='-Wl,'
9468 lt_prog_compiler_pic='-fPIC'
9469 lt_prog_compiler_static='-static'
9470 ;;
9471 *Portland\ Group*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='-fpic'
9474 lt_prog_compiler_static='-Bstatic'
9475 ;;
9476 esac
9477 ;;
9478 esac
9479 ;;
9480
9481 newsos6)
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-Bstatic'
9484 ;;
9485
9486 *nto* | *qnx*)
9487 # QNX uses GNU C++, but need to define -shared option too, otherwise
9488 # it will coredump.
9489 lt_prog_compiler_pic='-fPIC -shared'
9490 ;;
9491
9492 osf3* | osf4* | osf5*)
9493 lt_prog_compiler_wl='-Wl,'
9494 # All OSF/1 code is PIC.
9495 lt_prog_compiler_static='-non_shared'
9496 ;;
9497
9498 rdos*)
9499 lt_prog_compiler_static='-non_shared'
9500 ;;
9501
9502 solaris*)
9503 lt_prog_compiler_pic='-KPIC'
9504 lt_prog_compiler_static='-Bstatic'
9505 case $cc_basename in
9506 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9507 lt_prog_compiler_wl='-Qoption ld ';;
9508 *)
9509 lt_prog_compiler_wl='-Wl,';;
9510 esac
9511 ;;
9512
9513 sunos4*)
9514 lt_prog_compiler_wl='-Qoption ld '
9515 lt_prog_compiler_pic='-PIC'
9516 lt_prog_compiler_static='-Bstatic'
9517 ;;
9518
9519 sysv4 | sysv4.2uw2* | sysv4.3*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9524
9525 sysv4*MP*)
9526 if test -d /usr/nec ;then
9527 lt_prog_compiler_pic='-Kconform_pic'
9528 lt_prog_compiler_static='-Bstatic'
9529 fi
9530 ;;
9531
9532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='-KPIC'
9535 lt_prog_compiler_static='-Bstatic'
9536 ;;
9537
9538 unicos*)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_can_build_shared=no
9541 ;;
9542
9543 uts4*)
9544 lt_prog_compiler_pic='-pic'
9545 lt_prog_compiler_static='-Bstatic'
9546 ;;
9547
9548 *)
9549 lt_prog_compiler_can_build_shared=no
9550 ;;
9551 esac
9552 fi
9553
9554 case $host_os in
9555 # For platforms which do not support PIC, -DPIC is meaningless:
9556 *djgpp*)
9557 lt_prog_compiler_pic=
9558 ;;
9559 *)
9560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9561 ;;
9562 esac
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9565 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9566 if ${lt_cv_prog_compiler_pic+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9572 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9573 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9574
9575 #
9576 # Check to make sure the PIC flag actually works.
9577 #
9578 if test -n "$lt_prog_compiler_pic"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9581 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 lt_cv_prog_compiler_pic_works=no
9585 ac_outfile=conftest.$ac_objext
9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9588 # Insert the option either (1) after the last *FLAGS variable, or
9589 # (2) before a word containing "conftest.", or (3) at the end.
9590 # Note that $ac_compile itself does not contain backslashes and begins
9591 # with a dollar sign (not a hyphen), so the echo should work correctly.
9592 # The option is referenced via a variable to avoid confusing sed.
9593 lt_compile=`echo "$ac_compile" | $SED \
9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596 -e 's:$: $lt_compiler_flag:'`
9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598 (eval "$lt_compile" 2>conftest.err)
9599 ac_status=$?
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 if (exit $ac_status) && test -s "$ac_outfile"; then
9603 # The compiler can only warn and ignore the option if not recognized
9604 # So say no if there are warnings other than the usual output.
9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler_pic_works=yes
9609 fi
9610 fi
9611 $RM -r conftest*
9612
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9616
9617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9618 case $lt_prog_compiler_pic in
9619 "" | " "*) ;;
9620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9621 esac
9622 else
9623 lt_prog_compiler_pic=
9624 lt_prog_compiler_can_build_shared=no
9625 fi
9626
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639 #
9640 # Check to make sure the static flag actually works.
9641 #
9642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9644 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9645 if ${lt_cv_prog_compiler_static_works+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 lt_cv_prog_compiler_static_works=no
9649 save_LDFLAGS="$LDFLAGS"
9650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9653 # The linker can only warn and ignore the option if not recognized
9654 # So say no if there are warnings
9655 if test -s conftest.err; then
9656 # Append any errors to the config.log.
9657 cat conftest.err 1>&5
9658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660 if diff conftest.exp conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_static_works=yes
9662 fi
9663 else
9664 lt_cv_prog_compiler_static_works=yes
9665 fi
9666 fi
9667 $RM -r conftest*
9668 LDFLAGS="$save_LDFLAGS"
9669
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9672 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9673
9674 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9675 :
9676 else
9677 lt_prog_compiler_static=
9678 fi
9679
9680
9681
9682
9683
9684
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9688 if ${lt_cv_prog_compiler_c_o+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 lt_cv_prog_compiler_c_o=no
9692 $RM -r conftest 2>/dev/null
9693 mkdir conftest
9694 cd conftest
9695 mkdir out
9696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9697
9698 lt_compiler_flag="-o out/conftest2.$ac_objext"
9699 # Insert the option either (1) after the last *FLAGS variable, or
9700 # (2) before a word containing "conftest.", or (3) at the end.
9701 # Note that $ac_compile itself does not contain backslashes and begins
9702 # with a dollar sign (not a hyphen), so the echo should work correctly.
9703 lt_compile=`echo "$ac_compile" | $SED \
9704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9706 -e 's:$: $lt_compiler_flag:'`
9707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9708 (eval "$lt_compile" 2>out/conftest.err)
9709 ac_status=$?
9710 cat out/conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9713 then
9714 # The compiler can only warn and ignore the option if not recognized
9715 # So say no if there are warnings
9716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler_c_o=yes
9720 fi
9721 fi
9722 chmod u+w . 2>&5
9723 $RM -r conftest*
9724 # SGI C++ compiler will create directory out/ii_files/ for
9725 # template instantiation
9726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9727 $RM out/* && rmdir out
9728 cd ..
9729 $RM -r conftest
9730 $RM -r conftest*
9731
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9735
9736
9737
9738
9739
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9743 if ${lt_cv_prog_compiler_c_o+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 lt_cv_prog_compiler_c_o=no
9747 $RM -r conftest 2>/dev/null
9748 mkdir conftest
9749 cd conftest
9750 mkdir out
9751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9752
9753 lt_compiler_flag="-o out/conftest2.$ac_objext"
9754 # Insert the option either (1) after the last *FLAGS variable, or
9755 # (2) before a word containing "conftest.", or (3) at the end.
9756 # Note that $ac_compile itself does not contain backslashes and begins
9757 # with a dollar sign (not a hyphen), so the echo should work correctly.
9758 lt_compile=`echo "$ac_compile" | $SED \
9759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9761 -e 's:$: $lt_compiler_flag:'`
9762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9763 (eval "$lt_compile" 2>out/conftest.err)
9764 ac_status=$?
9765 cat out/conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9768 then
9769 # The compiler can only warn and ignore the option if not recognized
9770 # So say no if there are warnings
9771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_c_o=yes
9775 fi
9776 fi
9777 chmod u+w . 2>&5
9778 $RM -r conftest*
9779 # SGI C++ compiler will create directory out/ii_files/ for
9780 # template instantiation
9781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9782 $RM out/* && rmdir out
9783 cd ..
9784 $RM -r conftest
9785 $RM -r conftest*
9786
9787 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9790
9791
9792
9793
9794 hard_links="nottested"
9795 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9796 # do not overwrite the value of need_locks provided by the user
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9798 $as_echo_n "checking if we can lock with hard links... " >&6; }
9799 hard_links=yes
9800 $RM -r conftest*
9801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9802 touch conftest.a
9803 ln conftest.a conftest.b 2>&5 || hard_links=no
9804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9806 $as_echo "$hard_links" >&6; }
9807 if test "$hard_links" = no; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9809 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9810 need_locks=warn
9811 fi
9812 else
9813 need_locks=no
9814 fi
9815
9816
9817
9818
9819
9820
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9822 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9823
9824 runpath_var=
9825 allow_undefined_flag=
9826 always_export_symbols=no
9827 archive_cmds=
9828 archive_expsym_cmds=
9829 compiler_needs_object=no
9830 enable_shared_with_static_runtimes=no
9831 export_dynamic_flag_spec=
9832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9833 hardcode_automatic=no
9834 hardcode_direct=no
9835 hardcode_direct_absolute=no
9836 hardcode_libdir_flag_spec=
9837 hardcode_libdir_separator=
9838 hardcode_minus_L=no
9839 hardcode_shlibpath_var=unsupported
9840 inherit_rpath=no
9841 link_all_deplibs=unknown
9842 module_cmds=
9843 module_expsym_cmds=
9844 old_archive_from_new_cmds=
9845 old_archive_from_expsyms_cmds=
9846 thread_safe_flag_spec=
9847 whole_archive_flag_spec=
9848 # include_expsyms should be a list of space-separated symbols to be *always*
9849 # included in the symbol list
9850 include_expsyms=
9851 # exclude_expsyms can be an extended regexp of symbols to exclude
9852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9854 # as well as any symbol that contains `d'.
9855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9857 # platforms (ab)use it in PIC code, but their linkers get confused if
9858 # the symbol is explicitly referenced. Since portable code cannot
9859 # rely on this symbol name, it's probably fine to never include it in
9860 # preloaded symbol tables.
9861 # Exclude shared library initialization/finalization symbols.
9862 extract_expsyms_cmds=
9863
9864 case $host_os in
9865 cygwin* | mingw* | pw32* | cegcc*)
9866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9867 # When not using gcc, we currently assume that we are using
9868 # Microsoft Visual C++.
9869 if test "$GCC" != yes; then
9870 with_gnu_ld=no
9871 fi
9872 ;;
9873 interix*)
9874 # we just hope/assume this is gcc and not c89 (= MSVC++)
9875 with_gnu_ld=yes
9876 ;;
9877 openbsd*)
9878 with_gnu_ld=no
9879 ;;
9880 esac
9881
9882 ld_shlibs=yes
9883
9884 # On some targets, GNU ld is compatible enough with the native linker
9885 # that we're better off using the native interface for both.
9886 lt_use_gnu_ld_interface=no
9887 if test "$with_gnu_ld" = yes; then
9888 case $host_os in
9889 aix*)
9890 # The AIX port of GNU ld has always aspired to compatibility
9891 # with the native linker. However, as the warning in the GNU ld
9892 # block says, versions before 2.19.5* couldn't really create working
9893 # shared libraries, regardless of the interface used.
9894 case `$LD -v 2>&1` in
9895 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9896 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9897 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9898 *)
9899 lt_use_gnu_ld_interface=yes
9900 ;;
9901 esac
9902 ;;
9903 *)
9904 lt_use_gnu_ld_interface=yes
9905 ;;
9906 esac
9907 fi
9908
9909 if test "$lt_use_gnu_ld_interface" = yes; then
9910 # If archive_cmds runs LD, not CC, wlarc should be empty
9911 wlarc='${wl}'
9912
9913 # Set some defaults for GNU ld with shared library support. These
9914 # are reset later if shared libraries are not supported. Putting them
9915 # here allows them to be overridden if necessary.
9916 runpath_var=LD_RUN_PATH
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 export_dynamic_flag_spec='${wl}--export-dynamic'
9919 # ancient GNU ld didn't support --whole-archive et. al.
9920 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9921 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9922 else
9923 whole_archive_flag_spec=
9924 fi
9925 supports_anon_versioning=no
9926 case `$LD -v 2>&1` in
9927 *GNU\ gold*) supports_anon_versioning=yes ;;
9928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9931 *\ 2.11.*) ;; # other 2.11 versions
9932 *) supports_anon_versioning=yes ;;
9933 esac
9934
9935 # See if GNU ld supports shared libraries.
9936 case $host_os in
9937 aix[3-9]*)
9938 # On AIX/PPC, the GNU linker is very broken
9939 if test "$host_cpu" != ia64; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9942
9943 *** Warning: the GNU linker, at least up to release 2.19, is reported
9944 *** to be unable to reliably create shared libraries on AIX.
9945 *** Therefore, libtool is disabling shared libraries support. If you
9946 *** really care for shared libraries, you may want to install binutils
9947 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9948 *** You will then need to restart the configuration process.
9949
9950 _LT_EOF
9951 fi
9952 ;;
9953
9954 amigaos*)
9955 case $host_cpu in
9956 powerpc)
9957 # see comment about AmigaOS4 .so support
9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 archive_expsym_cmds=''
9960 ;;
9961 m68k)
9962 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)'
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_minus_L=yes
9965 ;;
9966 esac
9967 ;;
9968
9969 beos*)
9970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9971 allow_undefined_flag=unsupported
9972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9973 # support --undefined. This deserves some investigation. FIXME
9974 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9975 else
9976 ld_shlibs=no
9977 fi
9978 ;;
9979
9980 cygwin* | mingw* | pw32* | cegcc*)
9981 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9982 # as there is no search path for DLLs.
9983 hardcode_libdir_flag_spec='-L$libdir'
9984 export_dynamic_flag_spec='${wl}--export-all-symbols'
9985 allow_undefined_flag=unsupported
9986 always_export_symbols=no
9987 enable_shared_with_static_runtimes=yes
9988 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'
9989 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9990
9991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9993 # If the export-symbols file already is a .def file (1st line
9994 # is EXPORTS), use it as is; otherwise, prepend...
9995 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9996 cp $export_symbols $output_objdir/$soname.def;
9997 else
9998 echo EXPORTS > $output_objdir/$soname.def;
9999 cat $export_symbols >> $output_objdir/$soname.def;
10000 fi~
10001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10002 else
10003 ld_shlibs=no
10004 fi
10005 ;;
10006
10007 haiku*)
10008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009 link_all_deplibs=yes
10010 ;;
10011
10012 interix[3-9]*)
10013 hardcode_direct=no
10014 hardcode_shlibpath_var=no
10015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10016 export_dynamic_flag_spec='${wl}-E'
10017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10018 # Instead, shared libraries are loaded at an image base (0x10000000 by
10019 # default) and relocated if they conflict, which is a slow very memory
10020 # consuming and fragmenting process. To avoid this, we pick a random,
10021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10024 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'
10025 ;;
10026
10027 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10028 tmp_diet=no
10029 if test "$host_os" = linux-dietlibc; then
10030 case $cc_basename in
10031 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10032 esac
10033 fi
10034 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10035 && test "$tmp_diet" = no
10036 then
10037 tmp_addflag=' $pic_flag'
10038 tmp_sharedflag='-shared'
10039 case $cc_basename,$host_cpu in
10040 pgcc*) # Portland Group C compiler
10041 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'
10042 tmp_addflag=' $pic_flag'
10043 ;;
10044 pgf77* | pgf90* | pgf95* | pgfortran*)
10045 # Portland Group f77 and f90 compilers
10046 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'
10047 tmp_addflag=' $pic_flag -Mnomain' ;;
10048 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10049 tmp_addflag=' -i_dynamic' ;;
10050 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10051 tmp_addflag=' -i_dynamic -nofor_main' ;;
10052 ifc* | ifort*) # Intel Fortran compiler
10053 tmp_addflag=' -nofor_main' ;;
10054 lf95*) # Lahey Fortran 8.1
10055 whole_archive_flag_spec=
10056 tmp_sharedflag='--shared' ;;
10057 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10058 tmp_sharedflag='-qmkshrobj'
10059 tmp_addflag= ;;
10060 nvcc*) # Cuda Compiler Driver 2.2
10061 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'
10062 compiler_needs_object=yes
10063 ;;
10064 esac
10065 case `$CC -V 2>&1 | sed 5q` in
10066 *Sun\ C*) # Sun C 5.9
10067 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'
10068 compiler_needs_object=yes
10069 tmp_sharedflag='-G' ;;
10070 *Sun\ F*) # Sun Fortran 8.3
10071 tmp_sharedflag='-G' ;;
10072 esac
10073 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074
10075 if test "x$supports_anon_versioning" = xyes; then
10076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10078 echo "local: *; };" >> $output_objdir/$libname.ver~
10079 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10080 fi
10081
10082 case $cc_basename in
10083 xlf* | bgf* | bgxlf* | mpixlf*)
10084 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10085 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10087 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10088 if test "x$supports_anon_versioning" = xyes; then
10089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10091 echo "local: *; };" >> $output_objdir/$libname.ver~
10092 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10093 fi
10094 ;;
10095 esac
10096 else
10097 ld_shlibs=no
10098 fi
10099 ;;
10100
10101 netbsd*)
10102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10103 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10104 wlarc=
10105 else
10106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10108 fi
10109 ;;
10110
10111 solaris*)
10112 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10113 ld_shlibs=no
10114 cat <<_LT_EOF 1>&2
10115
10116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10117 *** create shared libraries on Solaris systems. Therefore, libtool
10118 *** is disabling shared libraries support. We urge you to upgrade GNU
10119 *** binutils to release 2.9.1 or newer. Another option is to modify
10120 *** your PATH or compiler configuration so that the native linker is
10121 *** used, and then restart.
10122
10123 _LT_EOF
10124 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10125 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10127 else
10128 ld_shlibs=no
10129 fi
10130 ;;
10131
10132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10133 case `$LD -v 2>&1` in
10134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10135 ld_shlibs=no
10136 cat <<_LT_EOF 1>&2
10137
10138 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10139 *** reliably create shared libraries on SCO systems. Therefore, libtool
10140 *** is disabling shared libraries support. We urge you to upgrade GNU
10141 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10142 *** your PATH or compiler configuration so that the native linker is
10143 *** used, and then restart.
10144
10145 _LT_EOF
10146 ;;
10147 *)
10148 # For security reasons, it is highly recommended that you always
10149 # use absolute paths for naming shared libraries, and exclude the
10150 # DT_RUNPATH tag from executables and libraries. But doing so
10151 # requires that you compile everything twice, which is a pain.
10152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156 else
10157 ld_shlibs=no
10158 fi
10159 ;;
10160 esac
10161 ;;
10162
10163 sunos4*)
10164 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10165 wlarc=
10166 hardcode_direct=yes
10167 hardcode_shlibpath_var=no
10168 ;;
10169
10170 *)
10171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10174 else
10175 ld_shlibs=no
10176 fi
10177 ;;
10178 esac
10179
10180 if test "$ld_shlibs" = no; then
10181 runpath_var=
10182 hardcode_libdir_flag_spec=
10183 export_dynamic_flag_spec=
10184 whole_archive_flag_spec=
10185 fi
10186 else
10187 # PORTME fill in a description of your system's linker (not GNU ld)
10188 case $host_os in
10189 aix3*)
10190 allow_undefined_flag=unsupported
10191 always_export_symbols=yes
10192 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'
10193 # Note: this linker hardcodes the directories in LIBPATH if there
10194 # are no directories specified by -L.
10195 hardcode_minus_L=yes
10196 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10197 # Neither direct hardcoding nor static linking is supported with a
10198 # broken collect2.
10199 hardcode_direct=unsupported
10200 fi
10201 ;;
10202
10203 aix[4-9]*)
10204 if test "$host_cpu" = ia64; then
10205 # On IA64, the linker does run time linking by default, so we don't
10206 # have to do anything special.
10207 aix_use_runtimelinking=no
10208 exp_sym_flag='-Bexport'
10209 no_entry_flag=""
10210 else
10211 # If we're using GNU nm, then we don't want the "-C" option.
10212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10213 # Also, AIX nm treats weak defined symbols like other global
10214 # defined symbols, whereas GNU nm marks them as "W".
10215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10216 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'
10217 else
10218 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'
10219 fi
10220 aix_use_runtimelinking=no
10221
10222 # Test if we are trying to use run time linking or normal
10223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10224 # need to do runtime linking.
10225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10226 for ld_flag in $LDFLAGS; do
10227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10228 aix_use_runtimelinking=yes
10229 break
10230 fi
10231 done
10232 ;;
10233 esac
10234
10235 exp_sym_flag='-bexport'
10236 no_entry_flag='-bnoentry'
10237 fi
10238
10239 # When large executables or shared objects are built, AIX ld can
10240 # have problems creating the table of contents. If linking a library
10241 # or program results in "error TOC overflow" add -mminimal-toc to
10242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10244
10245 archive_cmds=''
10246 hardcode_direct=yes
10247 hardcode_direct_absolute=yes
10248 hardcode_libdir_separator=':'
10249 link_all_deplibs=yes
10250 file_list_spec='${wl}-f,'
10251
10252 if test "$GCC" = yes; then
10253 case $host_os in aix4.[012]|aix4.[012].*)
10254 # We only want to do this on AIX 4.2 and lower, the check
10255 # below for broken collect2 doesn't work under 4.3+
10256 collect2name=`${CC} -print-prog-name=collect2`
10257 if test -f "$collect2name" &&
10258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10259 then
10260 # We have reworked collect2
10261 :
10262 else
10263 # We have old collect2
10264 hardcode_direct=unsupported
10265 # It fails to find uninstalled libraries when the uninstalled
10266 # path is not listed in the libpath. Setting hardcode_minus_L
10267 # to unsupported forces relinking
10268 hardcode_minus_L=yes
10269 hardcode_libdir_flag_spec='-L$libdir'
10270 hardcode_libdir_separator=
10271 fi
10272 ;;
10273 esac
10274 shared_flag='-shared'
10275 if test "$aix_use_runtimelinking" = yes; then
10276 shared_flag="$shared_flag "'${wl}-G'
10277 fi
10278 else
10279 # not using gcc
10280 if test "$host_cpu" = ia64; then
10281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10282 # chokes on -Wl,-G. The following line is correct:
10283 shared_flag='-G'
10284 else
10285 if test "$aix_use_runtimelinking" = yes; then
10286 shared_flag='${wl}-G'
10287 else
10288 shared_flag='${wl}-bM:SRE'
10289 fi
10290 fi
10291 fi
10292
10293 export_dynamic_flag_spec='${wl}-bexpall'
10294 # It seems that -bexpall does not export symbols beginning with
10295 # underscore (_), so it is better to generate a list of symbols to export.
10296 always_export_symbols=yes
10297 if test "$aix_use_runtimelinking" = yes; then
10298 # Warning - without using the other runtime loading flags (-brtl),
10299 # -berok will link without error, but may produce a broken library.
10300 allow_undefined_flag='-berok'
10301 # Determine the default libpath from the value encoded in an
10302 # empty executable.
10303 if test "${lt_cv_aix_libpath+set}" = set; then
10304 aix_libpath=$lt_cv_aix_libpath
10305 else
10306 if ${lt_cv_aix_libpath_+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311
10312 int
10313 main ()
10314 {
10315
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321
10322 lt_aix_libpath_sed='
10323 /Import File Strings/,/^$/ {
10324 /^0/ {
10325 s/^0 *\([^ ]*\) *$/\1/
10326 p
10327 }
10328 }'
10329 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10330 # Check for a 64-bit object if we didn't find anything.
10331 if test -z "$lt_cv_aix_libpath_"; then
10332 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10333 fi
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 if test -z "$lt_cv_aix_libpath_"; then
10338 lt_cv_aix_libpath_="/usr/lib:/lib"
10339 fi
10340
10341 fi
10342
10343 aix_libpath=$lt_cv_aix_libpath_
10344 fi
10345
10346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10347 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"
10348 else
10349 if test "$host_cpu" = ia64; then
10350 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10351 allow_undefined_flag="-z nodefs"
10352 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"
10353 else
10354 # Determine the default libpath from the value encoded in an
10355 # empty executable.
10356 if test "${lt_cv_aix_libpath+set}" = set; then
10357 aix_libpath=$lt_cv_aix_libpath
10358 else
10359 if ${lt_cv_aix_libpath_+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364
10365 int
10366 main ()
10367 {
10368
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374
10375 lt_aix_libpath_sed='
10376 /Import File Strings/,/^$/ {
10377 /^0/ {
10378 s/^0 *\([^ ]*\) *$/\1/
10379 p
10380 }
10381 }'
10382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 # Check for a 64-bit object if we didn't find anything.
10384 if test -z "$lt_cv_aix_libpath_"; then
10385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10386 fi
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390 if test -z "$lt_cv_aix_libpath_"; then
10391 lt_cv_aix_libpath_="/usr/lib:/lib"
10392 fi
10393
10394 fi
10395
10396 aix_libpath=$lt_cv_aix_libpath_
10397 fi
10398
10399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400 # Warning - without using the other run time loading flags,
10401 # -berok will link without error, but may produce a broken library.
10402 no_undefined_flag=' ${wl}-bernotok'
10403 allow_undefined_flag=' ${wl}-berok'
10404 if test "$with_gnu_ld" = yes; then
10405 # We only use this code for GNU lds that support --whole-archive.
10406 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10407 else
10408 # Exported symbols can be pulled into shared objects from archives
10409 whole_archive_flag_spec='$convenience'
10410 fi
10411 archive_cmds_need_lc=yes
10412 # This is similar to how AIX traditionally builds its shared libraries.
10413 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'
10414 fi
10415 fi
10416 ;;
10417
10418 amigaos*)
10419 case $host_cpu in
10420 powerpc)
10421 # see comment about AmigaOS4 .so support
10422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423 archive_expsym_cmds=''
10424 ;;
10425 m68k)
10426 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)'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_minus_L=yes
10429 ;;
10430 esac
10431 ;;
10432
10433 bsdi[45]*)
10434 export_dynamic_flag_spec=-rdynamic
10435 ;;
10436
10437 cygwin* | mingw* | pw32* | cegcc*)
10438 # When not using gcc, we currently assume that we are using
10439 # Microsoft Visual C++.
10440 # hardcode_libdir_flag_spec is actually meaningless, as there is
10441 # no search path for DLLs.
10442 case $cc_basename in
10443 cl*)
10444 # Native MSVC
10445 hardcode_libdir_flag_spec=' '
10446 allow_undefined_flag=unsupported
10447 always_export_symbols=yes
10448 file_list_spec='@'
10449 # Tell ltmain to make .lib files, not .a files.
10450 libext=lib
10451 # Tell ltmain to make .dll files, not .so files.
10452 shrext_cmds=".dll"
10453 # FIXME: Setting linknames here is a bad hack.
10454 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10455 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10456 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10457 else
10458 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10459 fi~
10460 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10461 linknames='
10462 # The linker will not automatically build a static lib if we build a DLL.
10463 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10464 enable_shared_with_static_runtimes=yes
10465 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10467 # Don't use ranlib
10468 old_postinstall_cmds='chmod 644 $oldlib'
10469 postlink_cmds='lt_outputfile="@OUTPUT@"~
10470 lt_tool_outputfile="@TOOL_OUTPUT@"~
10471 case $lt_outputfile in
10472 *.exe|*.EXE) ;;
10473 *)
10474 lt_outputfile="$lt_outputfile.exe"
10475 lt_tool_outputfile="$lt_tool_outputfile.exe"
10476 ;;
10477 esac~
10478 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10479 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10480 $RM "$lt_outputfile.manifest";
10481 fi'
10482 ;;
10483 *)
10484 # Assume MSVC wrapper
10485 hardcode_libdir_flag_spec=' '
10486 allow_undefined_flag=unsupported
10487 # Tell ltmain to make .lib files, not .a files.
10488 libext=lib
10489 # Tell ltmain to make .dll files, not .so files.
10490 shrext_cmds=".dll"
10491 # FIXME: Setting linknames here is a bad hack.
10492 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10493 # The linker will automatically build a .lib file if we build a DLL.
10494 old_archive_from_new_cmds='true'
10495 # FIXME: Should let the user specify the lib program.
10496 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10497 enable_shared_with_static_runtimes=yes
10498 ;;
10499 esac
10500 ;;
10501
10502 darwin* | rhapsody*)
10503
10504
10505 archive_cmds_need_lc=no
10506 hardcode_direct=no
10507 hardcode_automatic=yes
10508 hardcode_shlibpath_var=unsupported
10509 if test "$lt_cv_ld_force_load" = "yes"; then
10510 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\"`'
10511
10512 else
10513 whole_archive_flag_spec=''
10514 fi
10515 link_all_deplibs=yes
10516 allow_undefined_flag="$_lt_dar_allow_undefined"
10517 case $cc_basename in
10518 ifort*) _lt_dar_can_shared=yes ;;
10519 *) _lt_dar_can_shared=$GCC ;;
10520 esac
10521 if test "$_lt_dar_can_shared" = "yes"; then
10522 output_verbose_link_cmd=func_echo_all
10523 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10524 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10525 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}"
10526 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}"
10527
10528 else
10529 ld_shlibs=no
10530 fi
10531
10532 ;;
10533
10534 dgux*)
10535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_libdir_flag_spec='-L$libdir'
10537 hardcode_shlibpath_var=no
10538 ;;
10539
10540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10541 # support. Future versions do this automatically, but an explicit c++rt0.o
10542 # does not break anything, and helps significantly (at the cost of a little
10543 # extra space).
10544 freebsd2.2*)
10545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10546 hardcode_libdir_flag_spec='-R$libdir'
10547 hardcode_direct=yes
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10552 freebsd2.*)
10553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10554 hardcode_direct=yes
10555 hardcode_minus_L=yes
10556 hardcode_shlibpath_var=no
10557 ;;
10558
10559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10560 freebsd* | dragonfly*)
10561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10562 hardcode_libdir_flag_spec='-R$libdir'
10563 hardcode_direct=yes
10564 hardcode_shlibpath_var=no
10565 ;;
10566
10567 hpux9*)
10568 if test "$GCC" = yes; then
10569 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'
10570 else
10571 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'
10572 fi
10573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10574 hardcode_libdir_separator=:
10575 hardcode_direct=yes
10576
10577 # hardcode_minus_L: Not really in the search PATH,
10578 # but as the default location of the library.
10579 hardcode_minus_L=yes
10580 export_dynamic_flag_spec='${wl}-E'
10581 ;;
10582
10583 hpux10*)
10584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10585 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10586 else
10587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10588 fi
10589 if test "$with_gnu_ld" = no; then
10590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10591 hardcode_libdir_separator=:
10592 hardcode_direct=yes
10593 hardcode_direct_absolute=yes
10594 export_dynamic_flag_spec='${wl}-E'
10595 # hardcode_minus_L: Not really in the search PATH,
10596 # but as the default location of the library.
10597 hardcode_minus_L=yes
10598 fi
10599 ;;
10600
10601 hpux11*)
10602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10603 case $host_cpu in
10604 hppa*64*)
10605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 ia64*)
10608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 *)
10611 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 esac
10614 else
10615 case $host_cpu in
10616 hppa*64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 ;;
10619 ia64*)
10620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 *)
10623
10624 # Older versions of the 11.00 compiler do not understand -b yet
10625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10627 $as_echo_n "checking if $CC understands -b... " >&6; }
10628 if ${lt_cv_prog_compiler__b+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 lt_cv_prog_compiler__b=no
10632 save_LDFLAGS="$LDFLAGS"
10633 LDFLAGS="$LDFLAGS -b"
10634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10636 # The linker can only warn and ignore the option if not recognized
10637 # So say no if there are warnings
10638 if test -s conftest.err; then
10639 # Append any errors to the config.log.
10640 cat conftest.err 1>&5
10641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10643 if diff conftest.exp conftest.er2 >/dev/null; then
10644 lt_cv_prog_compiler__b=yes
10645 fi
10646 else
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 fi
10650 $RM -r conftest*
10651 LDFLAGS="$save_LDFLAGS"
10652
10653 fi
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10656
10657 if test x"$lt_cv_prog_compiler__b" = xyes; then
10658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10659 else
10660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10661 fi
10662
10663 ;;
10664 esac
10665 fi
10666 if test "$with_gnu_ld" = no; then
10667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10668 hardcode_libdir_separator=:
10669
10670 case $host_cpu in
10671 hppa*64*|ia64*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10674 ;;
10675 *)
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 export_dynamic_flag_spec='${wl}-E'
10679
10680 # hardcode_minus_L: Not really in the search PATH,
10681 # but as the default location of the library.
10682 hardcode_minus_L=yes
10683 ;;
10684 esac
10685 fi
10686 ;;
10687
10688 irix5* | irix6* | nonstopux*)
10689 if test "$GCC" = yes; then
10690 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'
10691 # Try to use the -exported_symbol ld option, if it does not
10692 # work, assume that -exports_file does not work either and
10693 # implicitly export all symbols.
10694 # This should be the same for all languages, so no per-tag cache variable.
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10696 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10697 if ${lt_cv_irix_exported_symbol+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 save_LDFLAGS="$LDFLAGS"
10701 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 int foo (void) { return 0; }
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707 lt_cv_irix_exported_symbol=yes
10708 else
10709 lt_cv_irix_exported_symbol=no
10710 fi
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LDFLAGS="$save_LDFLAGS"
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10716 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10717 if test "$lt_cv_irix_exported_symbol" = yes; then
10718 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'
10719 fi
10720 else
10721 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'
10722 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'
10723 fi
10724 archive_cmds_need_lc='no'
10725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10726 hardcode_libdir_separator=:
10727 inherit_rpath=yes
10728 link_all_deplibs=yes
10729 ;;
10730
10731 netbsd*)
10732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10734 else
10735 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10736 fi
10737 hardcode_libdir_flag_spec='-R$libdir'
10738 hardcode_direct=yes
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 newsos6)
10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10744 hardcode_direct=yes
10745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator=:
10747 hardcode_shlibpath_var=no
10748 ;;
10749
10750 *nto* | *qnx*)
10751 ;;
10752
10753 openbsd*)
10754 if test -f /usr/libexec/ld.so; then
10755 hardcode_direct=yes
10756 hardcode_shlibpath_var=no
10757 hardcode_direct_absolute=yes
10758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10762 export_dynamic_flag_spec='${wl}-E'
10763 else
10764 case $host_os in
10765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_libdir_flag_spec='-R$libdir'
10768 ;;
10769 *)
10770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10772 ;;
10773 esac
10774 fi
10775 else
10776 ld_shlibs=no
10777 fi
10778 ;;
10779
10780 os2*)
10781 hardcode_libdir_flag_spec='-L$libdir'
10782 hardcode_minus_L=yes
10783 allow_undefined_flag=unsupported
10784 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'
10785 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10786 ;;
10787
10788 osf3*)
10789 if test "$GCC" = yes; then
10790 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10791 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'
10792 else
10793 allow_undefined_flag=' -expect_unresolved \*'
10794 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'
10795 fi
10796 archive_cmds_need_lc='no'
10797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10798 hardcode_libdir_separator=:
10799 ;;
10800
10801 osf4* | osf5*) # as osf3* with the addition of -msym flag
10802 if test "$GCC" = yes; then
10803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10804 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'
10805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10806 else
10807 allow_undefined_flag=' -expect_unresolved \*'
10808 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'
10809 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~
10810 $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'
10811
10812 # Both c and cxx compiler support -rpath directly
10813 hardcode_libdir_flag_spec='-rpath $libdir'
10814 fi
10815 archive_cmds_need_lc='no'
10816 hardcode_libdir_separator=:
10817 ;;
10818
10819 solaris*)
10820 no_undefined_flag=' -z defs'
10821 if test "$GCC" = yes; then
10822 wlarc='${wl}'
10823 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10825 $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'
10826 else
10827 case `$CC -V 2>&1` in
10828 *"Compilers 5.0"*)
10829 wlarc=''
10830 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10833 ;;
10834 *)
10835 wlarc='${wl}'
10836 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10839 ;;
10840 esac
10841 fi
10842 hardcode_libdir_flag_spec='-R$libdir'
10843 hardcode_shlibpath_var=no
10844 case $host_os in
10845 solaris2.[0-5] | solaris2.[0-5].*) ;;
10846 *)
10847 # The compiler driver will combine and reorder linker options,
10848 # but understands `-z linker_flag'. GCC discards it without `$wl',
10849 # but is careful enough not to reorder.
10850 # Supported since Solaris 2.6 (maybe 2.5.1?)
10851 if test "$GCC" = yes; then
10852 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10853 else
10854 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10855 fi
10856 ;;
10857 esac
10858 link_all_deplibs=yes
10859 ;;
10860
10861 sunos4*)
10862 if test "x$host_vendor" = xsequent; then
10863 # Use $CC to link under sequent, because it throws in some extra .o
10864 # files that make .init and .fini sections work.
10865 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866 else
10867 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10868 fi
10869 hardcode_libdir_flag_spec='-L$libdir'
10870 hardcode_direct=yes
10871 hardcode_minus_L=yes
10872 hardcode_shlibpath_var=no
10873 ;;
10874
10875 sysv4)
10876 case $host_vendor in
10877 sni)
10878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879 hardcode_direct=yes # is this really true???
10880 ;;
10881 siemens)
10882 ## LD is ld it makes a PLAMLIB
10883 ## CC just makes a GrossModule.
10884 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10885 reload_cmds='$CC -r -o $output$reload_objs'
10886 hardcode_direct=no
10887 ;;
10888 motorola)
10889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10891 ;;
10892 esac
10893 runpath_var='LD_RUN_PATH'
10894 hardcode_shlibpath_var=no
10895 ;;
10896
10897 sysv4.3*)
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_shlibpath_var=no
10900 export_dynamic_flag_spec='-Bexport'
10901 ;;
10902
10903 sysv4*MP*)
10904 if test -d /usr/nec; then
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_shlibpath_var=no
10907 runpath_var=LD_RUN_PATH
10908 hardcode_runpath_var=yes
10909 ld_shlibs=yes
10910 fi
10911 ;;
10912
10913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10914 no_undefined_flag='${wl}-z,text'
10915 archive_cmds_need_lc=no
10916 hardcode_shlibpath_var=no
10917 runpath_var='LD_RUN_PATH'
10918
10919 if test "$GCC" = yes; then
10920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 else
10923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 fi
10926 ;;
10927
10928 sysv5* | sco3.2v5* | sco5v6*)
10929 # Note: We can NOT use -z defs as we might desire, because we do not
10930 # link with -lc, and that would cause any symbols used from libc to
10931 # always be unresolved, which means just about no library would
10932 # ever link correctly. If we're not using GNU ld we use -z text
10933 # though, which does catch some bad symbols but isn't as heavy-handed
10934 # as -z defs.
10935 no_undefined_flag='${wl}-z,text'
10936 allow_undefined_flag='${wl}-z,nodefs'
10937 archive_cmds_need_lc=no
10938 hardcode_shlibpath_var=no
10939 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10940 hardcode_libdir_separator=':'
10941 link_all_deplibs=yes
10942 export_dynamic_flag_spec='${wl}-Bexport'
10943 runpath_var='LD_RUN_PATH'
10944
10945 if test "$GCC" = yes; then
10946 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 else
10949 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 fi
10952 ;;
10953
10954 uts4*)
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_libdir_flag_spec='-L$libdir'
10957 hardcode_shlibpath_var=no
10958 ;;
10959
10960 *)
10961 ld_shlibs=no
10962 ;;
10963 esac
10964
10965 if test x$host_vendor = xsni; then
10966 case $host in
10967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10968 export_dynamic_flag_spec='${wl}-Blargedynsym'
10969 ;;
10970 esac
10971 fi
10972 fi
10973
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10975 $as_echo "$ld_shlibs" >&6; }
10976 test "$ld_shlibs" = no && can_build_shared=no
10977
10978 with_gnu_ld=$with_gnu_ld
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994 #
10995 # Do we need to explicitly link libc?
10996 #
10997 case "x$archive_cmds_need_lc" in
10998 x|xyes)
10999 # Assume -lc should be added
11000 archive_cmds_need_lc=yes
11001
11002 if test "$enable_shared" = yes && test "$GCC" = yes; then
11003 case $archive_cmds in
11004 *'~'*)
11005 # FIXME: we may have to deal with multi-command sequences.
11006 ;;
11007 '$CC '*)
11008 # Test whether the compiler implicitly links with -lc since on some
11009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11010 # to ld, don't add -lc before -lgcc.
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11012 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11013 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 $RM -r conftest*
11017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11018
11019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11020 (eval $ac_compile) 2>&5
11021 ac_status=$?
11022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11023 test $ac_status = 0; } 2>conftest.err; then
11024 soname=conftest
11025 lib=conftest
11026 libobjs=conftest.$ac_objext
11027 deplibs=
11028 wl=$lt_prog_compiler_wl
11029 pic_flag=$lt_prog_compiler_pic
11030 compiler_flags=-v
11031 linker_flags=-v
11032 verstring=
11033 output_objdir=.
11034 libname=conftest
11035 lt_save_allow_undefined_flag=$allow_undefined_flag
11036 allow_undefined_flag=
11037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11038 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11039 ac_status=$?
11040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; }
11042 then
11043 lt_cv_archive_cmds_need_lc=no
11044 else
11045 lt_cv_archive_cmds_need_lc=yes
11046 fi
11047 allow_undefined_flag=$lt_save_allow_undefined_flag
11048 else
11049 cat conftest.err 1>&5
11050 fi
11051 $RM -r conftest*
11052
11053 fi
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11055 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11056 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11057 ;;
11058 esac
11059 fi
11060 ;;
11061 esac
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
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11215 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11216
11217 if test "$GCC" = yes; then
11218 case $host_os in
11219 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11220 *) lt_awk_arg="/^libraries:/" ;;
11221 esac
11222 case $host_os in
11223 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11224 *) lt_sed_strip_eq="s,=/,/,g" ;;
11225 esac
11226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11227 case $lt_search_path_spec in
11228 *\;*)
11229 # if the path contains ";" then we assume it to be the separator
11230 # otherwise default to the standard path separator (i.e. ":") - it is
11231 # assumed that no part of a normal pathname contains ";" but that should
11232 # okay in the real world where ";" in dirpaths is itself problematic.
11233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11234 ;;
11235 *)
11236 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11237 ;;
11238 esac
11239 # Ok, now we have the path, separated by spaces, we can step through it
11240 # and add multilib dir if necessary.
11241 lt_tmp_lt_search_path_spec=
11242 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11243 for lt_sys_path in $lt_search_path_spec; do
11244 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11246 else
11247 test -d "$lt_sys_path" && \
11248 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11249 fi
11250 done
11251 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11252 BEGIN {RS=" "; FS="/|\n";} {
11253 lt_foo="";
11254 lt_count=0;
11255 for (lt_i = NF; lt_i > 0; lt_i--) {
11256 if ($lt_i != "" && $lt_i != ".") {
11257 if ($lt_i == "..") {
11258 lt_count++;
11259 } else {
11260 if (lt_count == 0) {
11261 lt_foo="/" $lt_i lt_foo;
11262 } else {
11263 lt_count--;
11264 }
11265 }
11266 }
11267 }
11268 if (lt_foo != "") { lt_freq[lt_foo]++; }
11269 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11270 }'`
11271 # AWK program above erroneously prepends '/' to C:/dos/paths
11272 # for these hosts.
11273 case $host_os in
11274 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11275 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11276 esac
11277 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11278 else
11279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11280 fi
11281 library_names_spec=
11282 libname_spec='lib$name'
11283 soname_spec=
11284 shrext_cmds=".so"
11285 postinstall_cmds=
11286 postuninstall_cmds=
11287 finish_cmds=
11288 finish_eval=
11289 shlibpath_var=
11290 shlibpath_overrides_runpath=unknown
11291 version_type=none
11292 dynamic_linker="$host_os ld.so"
11293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11294 need_lib_prefix=unknown
11295 hardcode_into_libs=no
11296
11297 # when you set need_version to no, make sure it does not cause -set_version
11298 # flags to be left without arguments
11299 need_version=unknown
11300
11301 case $host_os in
11302 aix3*)
11303 version_type=linux # correct to gnu/linux during the next big refactor
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11305 shlibpath_var=LIBPATH
11306
11307 # AIX 3 has no versioning support, so we append a major version to the name.
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 ;;
11310
11311 aix[4-9]*)
11312 version_type=linux # correct to gnu/linux during the next big refactor
11313 need_lib_prefix=no
11314 need_version=no
11315 hardcode_into_libs=yes
11316 if test "$host_cpu" = ia64; then
11317 # AIX 5 supports IA64
11318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 else
11321 # With GCC up to 2.95.x, collect2 would create an import file
11322 # for dependence libraries. The import file would start with
11323 # the line `#! .'. This would cause the generated library to
11324 # depend on `.', always an invalid library. This was fixed in
11325 # development snapshots of GCC prior to 3.0.
11326 case $host_os in
11327 aix4 | aix4.[01] | aix4.[01].*)
11328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11329 echo ' yes '
11330 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11331 :
11332 else
11333 can_build_shared=no
11334 fi
11335 ;;
11336 esac
11337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11338 # soname into executable. Probably we can add versioning support to
11339 # collect2, so additional links can be useful in future.
11340 if test "$aix_use_runtimelinking" = yes; then
11341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11342 # instead of lib<name>.a to let people know that these are not
11343 # typical AIX shared libraries.
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 else
11346 # We preserve .a as extension for shared libraries through AIX4.2
11347 # and later when we are not doing run time linking.
11348 library_names_spec='${libname}${release}.a $libname.a'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 fi
11351 shlibpath_var=LIBPATH
11352 fi
11353 ;;
11354
11355 amigaos*)
11356 case $host_cpu in
11357 powerpc)
11358 # Since July 2007 AmigaOS4 officially supports .so libraries.
11359 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 ;;
11362 m68k)
11363 library_names_spec='$libname.ixlibrary $libname.a'
11364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11365 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'
11366 ;;
11367 esac
11368 ;;
11369
11370 beos*)
11371 library_names_spec='${libname}${shared_ext}'
11372 dynamic_linker="$host_os ld.so"
11373 shlibpath_var=LIBRARY_PATH
11374 ;;
11375
11376 bsdi[45]*)
11377 version_type=linux # correct to gnu/linux during the next big refactor
11378 need_version=no
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11385 # the default ld.so.conf also contains /usr/contrib/lib and
11386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11387 # libtool to hard-code these into programs
11388 ;;
11389
11390 cygwin* | mingw* | pw32* | cegcc*)
11391 version_type=windows
11392 shrext_cmds=".dll"
11393 need_version=no
11394 need_lib_prefix=no
11395
11396 case $GCC,$cc_basename in
11397 yes,*)
11398 # gcc
11399 library_names_spec='$libname.dll.a'
11400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11401 postinstall_cmds='base_file=`basename \${file}`~
11402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11403 dldir=$destdir/`dirname \$dlpath`~
11404 test -d \$dldir || mkdir -p \$dldir~
11405 $install_prog $dir/$dlname \$dldir/$dlname~
11406 chmod a+x \$dldir/$dlname~
11407 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11408 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11409 fi'
11410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11411 dlpath=$dir/\$dldll~
11412 $RM \$dlpath'
11413 shlibpath_overrides_runpath=yes
11414
11415 case $host_os in
11416 cygwin*)
11417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11419
11420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11421 ;;
11422 mingw* | cegcc*)
11423 # MinGW DLLs use traditional 'lib' prefix
11424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11425 ;;
11426 pw32*)
11427 # pw32 DLLs use 'pw' prefix rather than 'lib'
11428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 ;;
11430 esac
11431 dynamic_linker='Win32 ld.exe'
11432 ;;
11433
11434 *,cl*)
11435 # Native MSVC
11436 libname_spec='$name'
11437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11438 library_names_spec='${libname}.dll.lib'
11439
11440 case $build_os in
11441 mingw*)
11442 sys_lib_search_path_spec=
11443 lt_save_ifs=$IFS
11444 IFS=';'
11445 for lt_path in $LIB
11446 do
11447 IFS=$lt_save_ifs
11448 # Let DOS variable expansion print the short 8.3 style file name.
11449 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11450 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11451 done
11452 IFS=$lt_save_ifs
11453 # Convert to MSYS style.
11454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11455 ;;
11456 cygwin*)
11457 # Convert to unix form, then to dos form, then back to unix form
11458 # but this time dos style (no spaces!) so that the unix form looks
11459 # like /cygdrive/c/PROGRA~1:/cygdr...
11460 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11461 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11462 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11463 ;;
11464 *)
11465 sys_lib_search_path_spec="$LIB"
11466 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11467 # It is most probably a Windows format PATH.
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11469 else
11470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11471 fi
11472 # FIXME: find the short name or the path components, as spaces are
11473 # common. (e.g. "Program Files" -> "PROGRA~1")
11474 ;;
11475 esac
11476
11477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11478 postinstall_cmds='base_file=`basename \${file}`~
11479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11480 dldir=$destdir/`dirname \$dlpath`~
11481 test -d \$dldir || mkdir -p \$dldir~
11482 $install_prog $dir/$dlname \$dldir/$dlname'
11483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11484 dlpath=$dir/\$dldll~
11485 $RM \$dlpath'
11486 shlibpath_overrides_runpath=yes
11487 dynamic_linker='Win32 link.exe'
11488 ;;
11489
11490 *)
11491 # Assume MSVC wrapper
11492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11493 dynamic_linker='Win32 ld.exe'
11494 ;;
11495 esac
11496 # FIXME: first we should search . and the directory the executable is in
11497 shlibpath_var=PATH
11498 ;;
11499
11500 darwin* | rhapsody*)
11501 dynamic_linker="$host_os dyld"
11502 version_type=darwin
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11506 soname_spec='${libname}${release}${major}$shared_ext'
11507 shlibpath_overrides_runpath=yes
11508 shlibpath_var=DYLD_LIBRARY_PATH
11509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11510
11511 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11513 ;;
11514
11515 dgux*)
11516 version_type=linux # correct to gnu/linux during the next big refactor
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 ;;
11523
11524 freebsd* | dragonfly*)
11525 # DragonFly does not have aout. When/if they implement a new
11526 # versioning mechanism, adjust this.
11527 if test -x /usr/bin/objformat; then
11528 objformat=`/usr/bin/objformat`
11529 else
11530 case $host_os in
11531 freebsd[23].*) objformat=aout ;;
11532 *) objformat=elf ;;
11533 esac
11534 fi
11535 version_type=freebsd-$objformat
11536 case $version_type in
11537 freebsd-elf*)
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11539 need_version=no
11540 need_lib_prefix=no
11541 ;;
11542 freebsd-*)
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11544 need_version=yes
11545 ;;
11546 esac
11547 shlibpath_var=LD_LIBRARY_PATH
11548 case $host_os in
11549 freebsd2.*)
11550 shlibpath_overrides_runpath=yes
11551 ;;
11552 freebsd3.[01]* | freebsdelf3.[01]*)
11553 shlibpath_overrides_runpath=yes
11554 hardcode_into_libs=yes
11555 ;;
11556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11558 shlibpath_overrides_runpath=no
11559 hardcode_into_libs=yes
11560 ;;
11561 *) # from 4.6 on, and DragonFly
11562 shlibpath_overrides_runpath=yes
11563 hardcode_into_libs=yes
11564 ;;
11565 esac
11566 ;;
11567
11568 gnu*)
11569 version_type=linux # correct to gnu/linux during the next big refactor
11570 need_lib_prefix=no
11571 need_version=no
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=no
11576 hardcode_into_libs=yes
11577 ;;
11578
11579 haiku*)
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 need_lib_prefix=no
11582 need_version=no
11583 dynamic_linker="$host_os runtime_loader"
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11589 hardcode_into_libs=yes
11590 ;;
11591
11592 hpux9* | hpux10* | hpux11*)
11593 # Give a soname corresponding to the major version so that dld.sl refuses to
11594 # link against other versions.
11595 version_type=sunos
11596 need_lib_prefix=no
11597 need_version=no
11598 case $host_cpu in
11599 ia64*)
11600 shrext_cmds='.so'
11601 hardcode_into_libs=yes
11602 dynamic_linker="$host_os dld.so"
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 if test "X$HPUX_IA64_MODE" = X32; then
11608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11609 else
11610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11611 fi
11612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11613 ;;
11614 hppa*64*)
11615 shrext_cmds='.sl'
11616 hardcode_into_libs=yes
11617 dynamic_linker="$host_os dld.sl"
11618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624 ;;
11625 *)
11626 shrext_cmds='.sl'
11627 dynamic_linker="$host_os dld.sl"
11628 shlibpath_var=SHLIB_PATH
11629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 ;;
11633 esac
11634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11635 postinstall_cmds='chmod 555 $lib'
11636 # or fails outright, so override atomically:
11637 install_override_mode=555
11638 ;;
11639
11640 interix[3-9]*)
11641 version_type=linux # correct to gnu/linux during the next big refactor
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 ;;
11651
11652 irix5* | irix6* | nonstopux*)
11653 case $host_os in
11654 nonstopux*) version_type=nonstopux ;;
11655 *)
11656 if test "$lt_cv_prog_gnu_ld" = yes; then
11657 version_type=linux # correct to gnu/linux during the next big refactor
11658 else
11659 version_type=irix
11660 fi ;;
11661 esac
11662 need_lib_prefix=no
11663 need_version=no
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11666 case $host_os in
11667 irix5* | nonstopux*)
11668 libsuff= shlibsuff=
11669 ;;
11670 *)
11671 case $LD in # libtool.m4 will add one of these switches to LD
11672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11673 libsuff= shlibsuff= libmagic=32-bit;;
11674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11675 libsuff=32 shlibsuff=N32 libmagic=N32;;
11676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11678 *) libsuff= shlibsuff= libmagic=never-match;;
11679 esac
11680 ;;
11681 esac
11682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11683 shlibpath_overrides_runpath=no
11684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11686 hardcode_into_libs=yes
11687 ;;
11688
11689 # No shared lib support for Linux oldld, aout, or coff.
11690 linux*oldld* | linux*aout* | linux*coff*)
11691 dynamic_linker=no
11692 ;;
11693
11694 # This must be glibc/ELF.
11695 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11696 version_type=linux # correct to gnu/linux during the next big refactor
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704
11705 # Some binutils ld are patched to set DT_RUNPATH
11706 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 lt_cv_shlibpath_overrides_runpath=no
11710 save_LDFLAGS=$LDFLAGS
11711 save_libdir=$libdir
11712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716
11717 int
11718 main ()
11719 {
11720
11721 ;
11722 return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11727 lt_cv_shlibpath_overrides_runpath=yes
11728 fi
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LDFLAGS=$save_LDFLAGS
11733 libdir=$save_libdir
11734
11735 fi
11736
11737 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11738
11739 # This implies no fast_install, which is unacceptable.
11740 # Some rework will be needed to allow for fast_install
11741 # before this can be enabled.
11742 hardcode_into_libs=yes
11743
11744 # Append ld.so.conf contents to the search path
11745 if test -f /etc/ld.so.conf; then
11746 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' ' '`
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11748 fi
11749
11750 # We used to test for /lib/ld.so.1 and disable shared libraries on
11751 # powerpc, because MkLinux only supported shared libraries with the
11752 # GNU dynamic linker. Since this was broken with cross compilers,
11753 # most powerpc-linux boxes support dynamic linking these days and
11754 # people can always --disable-shared, the test was removed, and we
11755 # assume the GNU/Linux dynamic linker is in use.
11756 dynamic_linker='GNU/Linux ld.so'
11757 ;;
11758
11759 netbsd*)
11760 version_type=sunos
11761 need_lib_prefix=no
11762 need_version=no
11763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11766 dynamic_linker='NetBSD (a.out) ld.so'
11767 else
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 dynamic_linker='NetBSD ld.elf_so'
11771 fi
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11774 hardcode_into_libs=yes
11775 ;;
11776
11777 newsos6)
11778 version_type=linux # correct to gnu/linux during the next big refactor
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 ;;
11783
11784 *nto* | *qnx*)
11785 version_type=qnx
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=no
11792 hardcode_into_libs=yes
11793 dynamic_linker='ldqnx.so'
11794 ;;
11795
11796 openbsd*)
11797 version_type=sunos
11798 sys_lib_dlsearch_path_spec="/usr/lib"
11799 need_lib_prefix=no
11800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11801 case $host_os in
11802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11803 *) need_version=no ;;
11804 esac
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11809 case $host_os in
11810 openbsd2.[89] | openbsd2.[89].*)
11811 shlibpath_overrides_runpath=no
11812 ;;
11813 *)
11814 shlibpath_overrides_runpath=yes
11815 ;;
11816 esac
11817 else
11818 shlibpath_overrides_runpath=yes
11819 fi
11820 ;;
11821
11822 os2*)
11823 libname_spec='$name'
11824 shrext_cmds=".dll"
11825 need_lib_prefix=no
11826 library_names_spec='$libname${shared_ext} $libname.a'
11827 dynamic_linker='OS/2 ld.exe'
11828 shlibpath_var=LIBPATH
11829 ;;
11830
11831 osf3* | osf4* | osf5*)
11832 version_type=osf
11833 need_lib_prefix=no
11834 need_version=no
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11840 ;;
11841
11842 rdos*)
11843 dynamic_linker=no
11844 ;;
11845
11846 solaris*)
11847 version_type=linux # correct to gnu/linux during the next big refactor
11848 need_lib_prefix=no
11849 need_version=no
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 shlibpath_overrides_runpath=yes
11854 hardcode_into_libs=yes
11855 # ldd complains unless libraries are executable
11856 postinstall_cmds='chmod +x $lib'
11857 ;;
11858
11859 sunos4*)
11860 version_type=sunos
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11865 if test "$with_gnu_ld" = yes; then
11866 need_lib_prefix=no
11867 fi
11868 need_version=yes
11869 ;;
11870
11871 sysv4 | sysv4.3*)
11872 version_type=linux # correct to gnu/linux during the next big refactor
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 case $host_vendor in
11877 sni)
11878 shlibpath_overrides_runpath=no
11879 need_lib_prefix=no
11880 runpath_var=LD_RUN_PATH
11881 ;;
11882 siemens)
11883 need_lib_prefix=no
11884 ;;
11885 motorola)
11886 need_lib_prefix=no
11887 need_version=no
11888 shlibpath_overrides_runpath=no
11889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11890 ;;
11891 esac
11892 ;;
11893
11894 sysv4*MP*)
11895 if test -d /usr/nec ;then
11896 version_type=linux # correct to gnu/linux during the next big refactor
11897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11898 soname_spec='$libname${shared_ext}.$major'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 fi
11901 ;;
11902
11903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11904 version_type=freebsd-elf
11905 need_lib_prefix=no
11906 need_version=no
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 shlibpath_overrides_runpath=yes
11911 hardcode_into_libs=yes
11912 if test "$with_gnu_ld" = yes; then
11913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11914 else
11915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11916 case $host_os in
11917 sco3.2v5*)
11918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11919 ;;
11920 esac
11921 fi
11922 sys_lib_dlsearch_path_spec='/usr/lib'
11923 ;;
11924
11925 tpf*)
11926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11927 version_type=linux # correct to gnu/linux during the next big refactor
11928 need_lib_prefix=no
11929 need_version=no
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=no
11933 hardcode_into_libs=yes
11934 ;;
11935
11936 uts4*)
11937 version_type=linux # correct to gnu/linux during the next big refactor
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 ;;
11942
11943 *)
11944 dynamic_linker=no
11945 ;;
11946 esac
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11948 $as_echo "$dynamic_linker" >&6; }
11949 test "$dynamic_linker" = no && can_build_shared=no
11950
11951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11952 if test "$GCC" = yes; then
11953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11954 fi
11955
11956 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11958 fi
11959 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11960 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11961 fi
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12055 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12056 hardcode_action=
12057 if test -n "$hardcode_libdir_flag_spec" ||
12058 test -n "$runpath_var" ||
12059 test "X$hardcode_automatic" = "Xyes" ; then
12060
12061 # We can hardcode non-existent directories.
12062 if test "$hardcode_direct" != no &&
12063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12064 # have to relink, otherwise we might link with an installed library
12065 # when we should be linking with a yet-to-be-installed one
12066 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12067 test "$hardcode_minus_L" != no; then
12068 # Linking always hardcodes the temporary library directory.
12069 hardcode_action=relink
12070 else
12071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12072 hardcode_action=immediate
12073 fi
12074 else
12075 # We cannot hardcode anything, or else we can only hardcode existing
12076 # directories.
12077 hardcode_action=unsupported
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12080 $as_echo "$hardcode_action" >&6; }
12081
12082 if test "$hardcode_action" = relink ||
12083 test "$inherit_rpath" = yes; then
12084 # Fast installation is not supported
12085 enable_fast_install=no
12086 elif test "$shlibpath_overrides_runpath" = yes ||
12087 test "$enable_shared" = no; then
12088 # Fast installation is not necessary
12089 enable_fast_install=needless
12090 fi
12091
12092
12093
12094
12095
12096
12097 if test "x$enable_dlopen" != xyes; then
12098 enable_dlopen=unknown
12099 enable_dlopen_self=unknown
12100 enable_dlopen_self_static=unknown
12101 else
12102 lt_cv_dlopen=no
12103 lt_cv_dlopen_libs=
12104
12105 case $host_os in
12106 beos*)
12107 lt_cv_dlopen="load_add_on"
12108 lt_cv_dlopen_libs=
12109 lt_cv_dlopen_self=yes
12110 ;;
12111
12112 mingw* | pw32* | cegcc*)
12113 lt_cv_dlopen="LoadLibrary"
12114 lt_cv_dlopen_libs=
12115 ;;
12116
12117 cygwin*)
12118 lt_cv_dlopen="dlopen"
12119 lt_cv_dlopen_libs=
12120 ;;
12121
12122 darwin*)
12123 # if libdl is installed we need to link against it
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12125 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12126 if ${ac_cv_lib_dl_dlopen+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 ac_check_lib_save_LIBS=$LIBS
12130 LIBS="-ldl $LIBS"
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133
12134 /* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char dlopen ();
12141 int
12142 main ()
12143 {
12144 return dlopen ();
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 if ac_fn_c_try_link "$LINENO"; then :
12150 ac_cv_lib_dl_dlopen=yes
12151 else
12152 ac_cv_lib_dl_dlopen=no
12153 fi
12154 rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12160 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12162 else
12163
12164 lt_cv_dlopen="dyld"
12165 lt_cv_dlopen_libs=
12166 lt_cv_dlopen_self=yes
12167
12168 fi
12169
12170 ;;
12171
12172 *)
12173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12174 if test "x$ac_cv_func_shl_load" = xyes; then :
12175 lt_cv_dlopen="shl_load"
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12178 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12179 if ${ac_cv_lib_dld_shl_load+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-ldld $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char shl_load ();
12194 int
12195 main ()
12196 {
12197 return shl_load ();
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_dld_shl_load=yes
12204 else
12205 ac_cv_lib_dld_shl_load=no
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12212 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12213 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12215 else
12216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12217 if test "x$ac_cv_func_dlopen" = xyes; then :
12218 lt_cv_dlopen="dlopen"
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12222 if ${ac_cv_lib_dl_dlopen+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-ldl $LIBS"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char dlopen ();
12237 int
12238 main ()
12239 {
12240 return dlopen ();
12241 ;
12242 return 0;
12243 }
12244 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_dl_dlopen=yes
12247 else
12248 ac_cv_lib_dl_dlopen=no
12249 fi
12250 rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12258 else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12260 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12261 if ${ac_cv_lib_svld_dlopen+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-lsvld $LIBS"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12268
12269 /* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 char dlopen ();
12276 int
12277 main ()
12278 {
12279 return dlopen ();
12280 ;
12281 return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"; then :
12285 ac_cv_lib_svld_dlopen=yes
12286 else
12287 ac_cv_lib_svld_dlopen=no
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12295 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12300 if ${ac_cv_lib_dld_dld_link+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-ldld $LIBS"
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307
12308 /* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311 #ifdef __cplusplus
12312 extern "C"
12313 #endif
12314 char dld_link ();
12315 int
12316 main ()
12317 {
12318 return dld_link ();
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 ac_cv_lib_dld_dld_link=yes
12325 else
12326 ac_cv_lib_dld_dld_link=no
12327 fi
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12333 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12334 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12336 fi
12337
12338
12339 fi
12340
12341
12342 fi
12343
12344
12345 fi
12346
12347
12348 fi
12349
12350
12351 fi
12352
12353 ;;
12354 esac
12355
12356 if test "x$lt_cv_dlopen" != xno; then
12357 enable_dlopen=yes
12358 else
12359 enable_dlopen=no
12360 fi
12361
12362 case $lt_cv_dlopen in
12363 dlopen)
12364 save_CPPFLAGS="$CPPFLAGS"
12365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12366
12367 save_LDFLAGS="$LDFLAGS"
12368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12369
12370 save_LIBS="$LIBS"
12371 LIBS="$lt_cv_dlopen_libs $LIBS"
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12374 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12375 if ${lt_cv_dlopen_self+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test "$cross_compiling" = yes; then :
12379 lt_cv_dlopen_self=cross
12380 else
12381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12382 lt_status=$lt_dlunknown
12383 cat > conftest.$ac_ext <<_LT_EOF
12384 #line $LINENO "configure"
12385 #include "confdefs.h"
12386
12387 #if HAVE_DLFCN_H
12388 #include <dlfcn.h>
12389 #endif
12390
12391 #include <stdio.h>
12392
12393 #ifdef RTLD_GLOBAL
12394 # define LT_DLGLOBAL RTLD_GLOBAL
12395 #else
12396 # ifdef DL_GLOBAL
12397 # define LT_DLGLOBAL DL_GLOBAL
12398 # else
12399 # define LT_DLGLOBAL 0
12400 # endif
12401 #endif
12402
12403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12404 find out it does not work in some platform. */
12405 #ifndef LT_DLLAZY_OR_NOW
12406 # ifdef RTLD_LAZY
12407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12408 # else
12409 # ifdef DL_LAZY
12410 # define LT_DLLAZY_OR_NOW DL_LAZY
12411 # else
12412 # ifdef RTLD_NOW
12413 # define LT_DLLAZY_OR_NOW RTLD_NOW
12414 # else
12415 # ifdef DL_NOW
12416 # define LT_DLLAZY_OR_NOW DL_NOW
12417 # else
12418 # define LT_DLLAZY_OR_NOW 0
12419 # endif
12420 # endif
12421 # endif
12422 # endif
12423 #endif
12424
12425 /* When -fvisbility=hidden is used, assume the code has been annotated
12426 correspondingly for the symbols needed. */
12427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12428 int fnord () __attribute__((visibility("default")));
12429 #endif
12430
12431 int fnord () { return 42; }
12432 int main ()
12433 {
12434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12435 int status = $lt_dlunknown;
12436
12437 if (self)
12438 {
12439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12440 else
12441 {
12442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12443 else puts (dlerror ());
12444 }
12445 /* dlclose (self); */
12446 }
12447 else
12448 puts (dlerror ());
12449
12450 return status;
12451 }
12452 _LT_EOF
12453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12454 (eval $ac_link) 2>&5
12455 ac_status=$?
12456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12458 (./conftest; exit; ) >&5 2>/dev/null
12459 lt_status=$?
12460 case x$lt_status in
12461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12464 esac
12465 else :
12466 # compilation failed
12467 lt_cv_dlopen_self=no
12468 fi
12469 fi
12470 rm -fr conftest*
12471
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12475 $as_echo "$lt_cv_dlopen_self" >&6; }
12476
12477 if test "x$lt_cv_dlopen_self" = xyes; then
12478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12480 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12481 if ${lt_cv_dlopen_self_static+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 if test "$cross_compiling" = yes; then :
12485 lt_cv_dlopen_self_static=cross
12486 else
12487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12488 lt_status=$lt_dlunknown
12489 cat > conftest.$ac_ext <<_LT_EOF
12490 #line $LINENO "configure"
12491 #include "confdefs.h"
12492
12493 #if HAVE_DLFCN_H
12494 #include <dlfcn.h>
12495 #endif
12496
12497 #include <stdio.h>
12498
12499 #ifdef RTLD_GLOBAL
12500 # define LT_DLGLOBAL RTLD_GLOBAL
12501 #else
12502 # ifdef DL_GLOBAL
12503 # define LT_DLGLOBAL DL_GLOBAL
12504 # else
12505 # define LT_DLGLOBAL 0
12506 # endif
12507 #endif
12508
12509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12510 find out it does not work in some platform. */
12511 #ifndef LT_DLLAZY_OR_NOW
12512 # ifdef RTLD_LAZY
12513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12514 # else
12515 # ifdef DL_LAZY
12516 # define LT_DLLAZY_OR_NOW DL_LAZY
12517 # else
12518 # ifdef RTLD_NOW
12519 # define LT_DLLAZY_OR_NOW RTLD_NOW
12520 # else
12521 # ifdef DL_NOW
12522 # define LT_DLLAZY_OR_NOW DL_NOW
12523 # else
12524 # define LT_DLLAZY_OR_NOW 0
12525 # endif
12526 # endif
12527 # endif
12528 # endif
12529 #endif
12530
12531 /* When -fvisbility=hidden is used, assume the code has been annotated
12532 correspondingly for the symbols needed. */
12533 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12534 int fnord () __attribute__((visibility("default")));
12535 #endif
12536
12537 int fnord () { return 42; }
12538 int main ()
12539 {
12540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12541 int status = $lt_dlunknown;
12542
12543 if (self)
12544 {
12545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12546 else
12547 {
12548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12549 else puts (dlerror ());
12550 }
12551 /* dlclose (self); */
12552 }
12553 else
12554 puts (dlerror ());
12555
12556 return status;
12557 }
12558 _LT_EOF
12559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12560 (eval $ac_link) 2>&5
12561 ac_status=$?
12562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12564 (./conftest; exit; ) >&5 2>/dev/null
12565 lt_status=$?
12566 case x$lt_status in
12567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12569 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12570 esac
12571 else :
12572 # compilation failed
12573 lt_cv_dlopen_self_static=no
12574 fi
12575 fi
12576 rm -fr conftest*
12577
12578
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12581 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12582 fi
12583
12584 CPPFLAGS="$save_CPPFLAGS"
12585 LDFLAGS="$save_LDFLAGS"
12586 LIBS="$save_LIBS"
12587 ;;
12588 esac
12589
12590 case $lt_cv_dlopen_self in
12591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12592 *) enable_dlopen_self=unknown ;;
12593 esac
12594
12595 case $lt_cv_dlopen_self_static in
12596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12597 *) enable_dlopen_self_static=unknown ;;
12598 esac
12599 fi
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617 striplib=
12618 old_striplib=
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12620 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12621 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12625 $as_echo "yes" >&6; }
12626 else
12627 # FIXME - insert some real tests, host_os isn't really good enough
12628 case $host_os in
12629 darwin*)
12630 if test -n "$STRIP" ; then
12631 striplib="$STRIP -x"
12632 old_striplib="$STRIP -S"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634 $as_echo "yes" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639 ;;
12640 *)
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12643 ;;
12644 esac
12645 fi
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658 # Report which library types will actually be built
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12662 $as_echo "$can_build_shared" >&6; }
12663
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12665 $as_echo_n "checking whether to build shared libraries... " >&6; }
12666 test "$can_build_shared" = "no" && enable_shared=no
12667
12668 # On AIX, shared libraries and static libraries use the same namespace, and
12669 # are all built from PIC.
12670 case $host_os in
12671 aix3*)
12672 test "$enable_shared" = yes && enable_static=no
12673 if test -n "$RANLIB"; then
12674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12675 postinstall_cmds='$RANLIB $lib'
12676 fi
12677 ;;
12678
12679 aix[4-9]*)
12680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12681 test "$enable_shared" = yes && enable_static=no
12682 fi
12683 ;;
12684 esac
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12686 $as_echo "$enable_shared" >&6; }
12687
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12689 $as_echo_n "checking whether to build static libraries... " >&6; }
12690 # Make sure either enable_shared or enable_static is yes.
12691 test "$enable_shared" = yes || enable_static=yes
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12693 $as_echo "$enable_static" >&6; }
12694
12695
12696
12697
12698 fi
12699 ac_ext=c
12700 ac_cpp='$CPP $CPPFLAGS'
12701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12704
12705 CC="$lt_save_CC"
12706
12707 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12708 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12709 (test "X$CXX" != "Xg++"))) ; then
12710 ac_ext=cpp
12711 ac_cpp='$CXXCPP $CPPFLAGS'
12712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12716 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12717 if test -z "$CXXCPP"; then
12718 if ${ac_cv_prog_CXXCPP+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 # Double quotes because CXXCPP needs to be expanded
12722 for CXXCPP in "$CXX -E" "/lib/cpp"
12723 do
12724 ac_preproc_ok=false
12725 for ac_cxx_preproc_warn_flag in '' yes
12726 do
12727 # Use a header file that comes with gcc, so configuring glibc
12728 # with a fresh cross-compiler works.
12729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730 # <limits.h> exists even on freestanding compilers.
12731 # On the NeXT, cc -E runs the code through the compiler's parser,
12732 # not just through cpp. "Syntax error" is here to catch this case.
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #ifdef __STDC__
12736 # include <limits.h>
12737 #else
12738 # include <assert.h>
12739 #endif
12740 Syntax error
12741 _ACEOF
12742 if ac_fn_cxx_try_cpp "$LINENO"; then :
12743
12744 else
12745 # Broken: fails on valid input.
12746 continue
12747 fi
12748 rm -f conftest.err conftest.i conftest.$ac_ext
12749
12750 # OK, works on sane cases. Now check whether nonexistent headers
12751 # can be detected and how.
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <ac_nonexistent.h>
12755 _ACEOF
12756 if ac_fn_cxx_try_cpp "$LINENO"; then :
12757 # Broken: success on invalid input.
12758 continue
12759 else
12760 # Passes both tests.
12761 ac_preproc_ok=:
12762 break
12763 fi
12764 rm -f conftest.err conftest.i conftest.$ac_ext
12765
12766 done
12767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12768 rm -f conftest.i conftest.err conftest.$ac_ext
12769 if $ac_preproc_ok; then :
12770 break
12771 fi
12772
12773 done
12774 ac_cv_prog_CXXCPP=$CXXCPP
12775
12776 fi
12777 CXXCPP=$ac_cv_prog_CXXCPP
12778 else
12779 ac_cv_prog_CXXCPP=$CXXCPP
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12782 $as_echo "$CXXCPP" >&6; }
12783 ac_preproc_ok=false
12784 for ac_cxx_preproc_warn_flag in '' yes
12785 do
12786 # Use a header file that comes with gcc, so configuring glibc
12787 # with a fresh cross-compiler works.
12788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12789 # <limits.h> exists even on freestanding compilers.
12790 # On the NeXT, cc -E runs the code through the compiler's parser,
12791 # not just through cpp. "Syntax error" is here to catch this case.
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 #ifdef __STDC__
12795 # include <limits.h>
12796 #else
12797 # include <assert.h>
12798 #endif
12799 Syntax error
12800 _ACEOF
12801 if ac_fn_cxx_try_cpp "$LINENO"; then :
12802
12803 else
12804 # Broken: fails on valid input.
12805 continue
12806 fi
12807 rm -f conftest.err conftest.i conftest.$ac_ext
12808
12809 # OK, works on sane cases. Now check whether nonexistent headers
12810 # can be detected and how.
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #include <ac_nonexistent.h>
12814 _ACEOF
12815 if ac_fn_cxx_try_cpp "$LINENO"; then :
12816 # Broken: success on invalid input.
12817 continue
12818 else
12819 # Passes both tests.
12820 ac_preproc_ok=:
12821 break
12822 fi
12823 rm -f conftest.err conftest.i conftest.$ac_ext
12824
12825 done
12826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12827 rm -f conftest.i conftest.err conftest.$ac_ext
12828 if $ac_preproc_ok; then :
12829
12830 else
12831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12834 See \`config.log' for more details" "$LINENO" 5; }
12835 fi
12836
12837 ac_ext=c
12838 ac_cpp='$CPP $CPPFLAGS'
12839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12842
12843 else
12844 _lt_caught_CXX_error=yes
12845 fi
12846
12847 ac_ext=cpp
12848 ac_cpp='$CXXCPP $CPPFLAGS'
12849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12852
12853 archive_cmds_need_lc_CXX=no
12854 allow_undefined_flag_CXX=
12855 always_export_symbols_CXX=no
12856 archive_expsym_cmds_CXX=
12857 compiler_needs_object_CXX=no
12858 export_dynamic_flag_spec_CXX=
12859 hardcode_direct_CXX=no
12860 hardcode_direct_absolute_CXX=no
12861 hardcode_libdir_flag_spec_CXX=
12862 hardcode_libdir_separator_CXX=
12863 hardcode_minus_L_CXX=no
12864 hardcode_shlibpath_var_CXX=unsupported
12865 hardcode_automatic_CXX=no
12866 inherit_rpath_CXX=no
12867 module_cmds_CXX=
12868 module_expsym_cmds_CXX=
12869 link_all_deplibs_CXX=unknown
12870 old_archive_cmds_CXX=$old_archive_cmds
12871 reload_flag_CXX=$reload_flag
12872 reload_cmds_CXX=$reload_cmds
12873 no_undefined_flag_CXX=
12874 whole_archive_flag_spec_CXX=
12875 enable_shared_with_static_runtimes_CXX=no
12876
12877 # Source file extension for C++ test sources.
12878 ac_ext=cpp
12879
12880 # Object file extension for compiled C++ test sources.
12881 objext=o
12882 objext_CXX=$objext
12883
12884 # No sense in running all these tests if we already determined that
12885 # the CXX compiler isn't working. Some variables (like enable_shared)
12886 # are currently assumed to apply to all compilers on this platform,
12887 # and will be corrupted by setting them based on a non-working compiler.
12888 if test "$_lt_caught_CXX_error" != yes; then
12889 # Code to be used in simple compile tests
12890 lt_simple_compile_test_code="int some_variable = 0;"
12891
12892 # Code to be used in simple link tests
12893 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12894
12895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12896
12897
12898
12899
12900
12901
12902 # If no C compiler was specified, use CC.
12903 LTCC=${LTCC-"$CC"}
12904
12905 # If no C compiler flags were specified, use CFLAGS.
12906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12907
12908 # Allow CC to be a program name with arguments.
12909 compiler=$CC
12910
12911
12912 # save warnings/boilerplate of simple test code
12913 ac_outfile=conftest.$ac_objext
12914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12916 _lt_compiler_boilerplate=`cat conftest.err`
12917 $RM -r conftest*
12918
12919 ac_outfile=conftest.$ac_objext
12920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12922 _lt_linker_boilerplate=`cat conftest.err`
12923 $RM -r conftest*
12924
12925
12926 # Allow CC to be a program name with arguments.
12927 lt_save_CC=$CC
12928 lt_save_CFLAGS=$CFLAGS
12929 lt_save_LD=$LD
12930 lt_save_GCC=$GCC
12931 GCC=$GXX
12932 lt_save_with_gnu_ld=$with_gnu_ld
12933 lt_save_path_LD=$lt_cv_path_LD
12934 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12935 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12936 else
12937 $as_unset lt_cv_prog_gnu_ld
12938 fi
12939 if test -n "${lt_cv_path_LDCXX+set}"; then
12940 lt_cv_path_LD=$lt_cv_path_LDCXX
12941 else
12942 $as_unset lt_cv_path_LD
12943 fi
12944 test -z "${LDCXX+set}" || LD=$LDCXX
12945 CC=${CXX-"c++"}
12946 CFLAGS=$CXXFLAGS
12947 compiler=$CC
12948 compiler_CXX=$CC
12949 for cc_temp in $compiler""; do
12950 case $cc_temp in
12951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12953 \-*) ;;
12954 *) break;;
12955 esac
12956 done
12957 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12958
12959
12960 if test -n "$compiler"; then
12961 # We don't want -fno-exception when compiling C++ code, so set the
12962 # no_builtin_flag separately
12963 if test "$GXX" = yes; then
12964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12965 else
12966 lt_prog_compiler_no_builtin_flag_CXX=
12967 fi
12968
12969 if test "$GXX" = yes; then
12970 # Set up default GNU C++ configuration
12971
12972
12973
12974 # Check whether --with-gnu-ld was given.
12975 if test "${with_gnu_ld+set}" = set; then :
12976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12977 else
12978 with_gnu_ld=no
12979 fi
12980
12981 ac_prog=ld
12982 if test "$GCC" = yes; then
12983 # Check if gcc -print-prog-name=ld gives a path.
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12985 $as_echo_n "checking for ld used by $CC... " >&6; }
12986 case $host in
12987 *-*-mingw*)
12988 # gcc leaves a trailing carriage return which upsets mingw
12989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12990 *)
12991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12992 esac
12993 case $ac_prog in
12994 # Accept absolute paths.
12995 [\\/]* | ?:[\\/]*)
12996 re_direlt='/[^/][^/]*/\.\./'
12997 # Canonicalize the pathname of ld
12998 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12999 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13000 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13001 done
13002 test -z "$LD" && LD="$ac_prog"
13003 ;;
13004 "")
13005 # If it fails, then pretend we aren't using GCC.
13006 ac_prog=ld
13007 ;;
13008 *)
13009 # If it is relative, then search for the first ld in PATH.
13010 with_gnu_ld=unknown
13011 ;;
13012 esac
13013 elif test "$with_gnu_ld" = yes; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13015 $as_echo_n "checking for GNU ld... " >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13018 $as_echo_n "checking for non-GNU ld... " >&6; }
13019 fi
13020 if ${lt_cv_path_LD+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 if test -z "$LD"; then
13024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13025 for ac_dir in $PATH; do
13026 IFS="$lt_save_ifs"
13027 test -z "$ac_dir" && ac_dir=.
13028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13029 lt_cv_path_LD="$ac_dir/$ac_prog"
13030 # Check to see if the program is GNU ld. I'd rather use --version,
13031 # but apparently some variants of GNU ld only accept -v.
13032 # Break only if it was the GNU/non-GNU ld that we prefer.
13033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13034 *GNU* | *'with BFD'*)
13035 test "$with_gnu_ld" != no && break
13036 ;;
13037 *)
13038 test "$with_gnu_ld" != yes && break
13039 ;;
13040 esac
13041 fi
13042 done
13043 IFS="$lt_save_ifs"
13044 else
13045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13046 fi
13047 fi
13048
13049 LD="$lt_cv_path_LD"
13050 if test -n "$LD"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13052 $as_echo "$LD" >&6; }
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13056 fi
13057 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13059 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13060 if ${lt_cv_prog_gnu_ld+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13064 case `$LD -v 2>&1 </dev/null` in
13065 *GNU* | *'with BFD'*)
13066 lt_cv_prog_gnu_ld=yes
13067 ;;
13068 *)
13069 lt_cv_prog_gnu_ld=no
13070 ;;
13071 esac
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13074 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13075 with_gnu_ld=$lt_cv_prog_gnu_ld
13076
13077
13078
13079
13080
13081
13082
13083 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13084 # archiving commands below assume that GNU ld is being used.
13085 if test "$with_gnu_ld" = yes; then
13086 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087 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'
13088
13089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13091
13092 # If archive_cmds runs LD, not CC, wlarc should be empty
13093 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13094 # investigate it a little bit more. (MM)
13095 wlarc='${wl}'
13096
13097 # ancient GNU ld didn't support --whole-archive et. al.
13098 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13099 $GREP 'no-whole-archive' > /dev/null; then
13100 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13101 else
13102 whole_archive_flag_spec_CXX=
13103 fi
13104 else
13105 with_gnu_ld=no
13106 wlarc=
13107
13108 # A generic and very simple default shared library creation
13109 # command for GNU C++ for the case where it uses the native
13110 # linker, instead of GNU ld. If possible, this setting should
13111 # overridden to take advantage of the native linker features on
13112 # the platform it is being used on.
13113 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13114 fi
13115
13116 # Commands to make compiler produce verbose output that lists
13117 # what "hidden" libraries, object files and flags are used when
13118 # linking a shared library.
13119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13120
13121 else
13122 GXX=no
13123 with_gnu_ld=no
13124 wlarc=
13125 fi
13126
13127 # PORTME: fill in a description of your system's C++ link characteristics
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13129 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13130 ld_shlibs_CXX=yes
13131 case $host_os in
13132 aix3*)
13133 # FIXME: insert proper C++ library support
13134 ld_shlibs_CXX=no
13135 ;;
13136 aix[4-9]*)
13137 if test "$host_cpu" = ia64; then
13138 # On IA64, the linker does run time linking by default, so we don't
13139 # have to do anything special.
13140 aix_use_runtimelinking=no
13141 exp_sym_flag='-Bexport'
13142 no_entry_flag=""
13143 else
13144 aix_use_runtimelinking=no
13145
13146 # Test if we are trying to use run time linking or normal
13147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13148 # need to do runtime linking.
13149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13150 for ld_flag in $LDFLAGS; do
13151 case $ld_flag in
13152 *-brtl*)
13153 aix_use_runtimelinking=yes
13154 break
13155 ;;
13156 esac
13157 done
13158 ;;
13159 esac
13160
13161 exp_sym_flag='-bexport'
13162 no_entry_flag='-bnoentry'
13163 fi
13164
13165 # When large executables or shared objects are built, AIX ld can
13166 # have problems creating the table of contents. If linking a library
13167 # or program results in "error TOC overflow" add -mminimal-toc to
13168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13170
13171 archive_cmds_CXX=''
13172 hardcode_direct_CXX=yes
13173 hardcode_direct_absolute_CXX=yes
13174 hardcode_libdir_separator_CXX=':'
13175 link_all_deplibs_CXX=yes
13176 file_list_spec_CXX='${wl}-f,'
13177
13178 if test "$GXX" = yes; then
13179 case $host_os in aix4.[012]|aix4.[012].*)
13180 # We only want to do this on AIX 4.2 and lower, the check
13181 # below for broken collect2 doesn't work under 4.3+
13182 collect2name=`${CC} -print-prog-name=collect2`
13183 if test -f "$collect2name" &&
13184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13185 then
13186 # We have reworked collect2
13187 :
13188 else
13189 # We have old collect2
13190 hardcode_direct_CXX=unsupported
13191 # It fails to find uninstalled libraries when the uninstalled
13192 # path is not listed in the libpath. Setting hardcode_minus_L
13193 # to unsupported forces relinking
13194 hardcode_minus_L_CXX=yes
13195 hardcode_libdir_flag_spec_CXX='-L$libdir'
13196 hardcode_libdir_separator_CXX=
13197 fi
13198 esac
13199 shared_flag='-shared'
13200 if test "$aix_use_runtimelinking" = yes; then
13201 shared_flag="$shared_flag "'${wl}-G'
13202 fi
13203 else
13204 # not using gcc
13205 if test "$host_cpu" = ia64; then
13206 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13207 # chokes on -Wl,-G. The following line is correct:
13208 shared_flag='-G'
13209 else
13210 if test "$aix_use_runtimelinking" = yes; then
13211 shared_flag='${wl}-G'
13212 else
13213 shared_flag='${wl}-bM:SRE'
13214 fi
13215 fi
13216 fi
13217
13218 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13219 # It seems that -bexpall does not export symbols beginning with
13220 # underscore (_), so it is better to generate a list of symbols to
13221 # export.
13222 always_export_symbols_CXX=yes
13223 if test "$aix_use_runtimelinking" = yes; then
13224 # Warning - without using the other runtime loading flags (-brtl),
13225 # -berok will link without error, but may produce a broken library.
13226 allow_undefined_flag_CXX='-berok'
13227 # Determine the default libpath from the value encoded in an empty
13228 # executable.
13229 if test "${lt_cv_aix_libpath+set}" = set; then
13230 aix_libpath=$lt_cv_aix_libpath
13231 else
13232 if ${lt_cv_aix_libpath__CXX+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237
13238 int
13239 main ()
13240 {
13241
13242 ;
13243 return 0;
13244 }
13245 _ACEOF
13246 if ac_fn_cxx_try_link "$LINENO"; then :
13247
13248 lt_aix_libpath_sed='
13249 /Import File Strings/,/^$/ {
13250 /^0/ {
13251 s/^0 *\([^ ]*\) *$/\1/
13252 p
13253 }
13254 }'
13255 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13256 # Check for a 64-bit object if we didn't find anything.
13257 if test -z "$lt_cv_aix_libpath__CXX"; then
13258 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13259 fi
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13263 if test -z "$lt_cv_aix_libpath__CXX"; then
13264 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13265 fi
13266
13267 fi
13268
13269 aix_libpath=$lt_cv_aix_libpath__CXX
13270 fi
13271
13272 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13273
13274 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"
13275 else
13276 if test "$host_cpu" = ia64; then
13277 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13278 allow_undefined_flag_CXX="-z nodefs"
13279 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"
13280 else
13281 # Determine the default libpath from the value encoded in an
13282 # empty executable.
13283 if test "${lt_cv_aix_libpath+set}" = set; then
13284 aix_libpath=$lt_cv_aix_libpath
13285 else
13286 if ${lt_cv_aix_libpath__CXX+:} false; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 int
13293 main ()
13294 {
13295
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_cxx_try_link "$LINENO"; then :
13301
13302 lt_aix_libpath_sed='
13303 /Import File Strings/,/^$/ {
13304 /^0/ {
13305 s/^0 *\([^ ]*\) *$/\1/
13306 p
13307 }
13308 }'
13309 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310 # Check for a 64-bit object if we didn't find anything.
13311 if test -z "$lt_cv_aix_libpath__CXX"; then
13312 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13313 fi
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 if test -z "$lt_cv_aix_libpath__CXX"; then
13318 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13319 fi
13320
13321 fi
13322
13323 aix_libpath=$lt_cv_aix_libpath__CXX
13324 fi
13325
13326 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13327 # Warning - without using the other run time loading flags,
13328 # -berok will link without error, but may produce a broken library.
13329 no_undefined_flag_CXX=' ${wl}-bernotok'
13330 allow_undefined_flag_CXX=' ${wl}-berok'
13331 if test "$with_gnu_ld" = yes; then
13332 # We only use this code for GNU lds that support --whole-archive.
13333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13334 else
13335 # Exported symbols can be pulled into shared objects from archives
13336 whole_archive_flag_spec_CXX='$convenience'
13337 fi
13338 archive_cmds_need_lc_CXX=yes
13339 # This is similar to how AIX traditionally builds its shared
13340 # libraries.
13341 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'
13342 fi
13343 fi
13344 ;;
13345
13346 beos*)
13347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13348 allow_undefined_flag_CXX=unsupported
13349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13350 # support --undefined. This deserves some investigation. FIXME
13351 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 else
13353 ld_shlibs_CXX=no
13354 fi
13355 ;;
13356
13357 chorus*)
13358 case $cc_basename in
13359 *)
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 ;;
13363 esac
13364 ;;
13365
13366 cygwin* | mingw* | pw32* | cegcc*)
13367 case $GXX,$cc_basename in
13368 ,cl* | no,cl*)
13369 # Native MSVC
13370 # hardcode_libdir_flag_spec is actually meaningless, as there is
13371 # no search path for DLLs.
13372 hardcode_libdir_flag_spec_CXX=' '
13373 allow_undefined_flag_CXX=unsupported
13374 always_export_symbols_CXX=yes
13375 file_list_spec_CXX='@'
13376 # Tell ltmain to make .lib files, not .a files.
13377 libext=lib
13378 # Tell ltmain to make .dll files, not .so files.
13379 shrext_cmds=".dll"
13380 # FIXME: Setting linknames here is a bad hack.
13381 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13382 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13383 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13384 else
13385 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13386 fi~
13387 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13388 linknames='
13389 # The linker will not automatically build a static lib if we build a DLL.
13390 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13391 enable_shared_with_static_runtimes_CXX=yes
13392 # Don't use ranlib
13393 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13394 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13395 lt_tool_outputfile="@TOOL_OUTPUT@"~
13396 case $lt_outputfile in
13397 *.exe|*.EXE) ;;
13398 *)
13399 lt_outputfile="$lt_outputfile.exe"
13400 lt_tool_outputfile="$lt_tool_outputfile.exe"
13401 ;;
13402 esac~
13403 func_to_tool_file "$lt_outputfile"~
13404 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13405 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13406 $RM "$lt_outputfile.manifest";
13407 fi'
13408 ;;
13409 *)
13410 # g++
13411 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13412 # as there is no search path for DLLs.
13413 hardcode_libdir_flag_spec_CXX='-L$libdir'
13414 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13415 allow_undefined_flag_CXX=unsupported
13416 always_export_symbols_CXX=no
13417 enable_shared_with_static_runtimes_CXX=yes
13418
13419 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13420 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'
13421 # If the export-symbols file already is a .def file (1st line
13422 # is EXPORTS), use it as is; otherwise, prepend...
13423 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13424 cp $export_symbols $output_objdir/$soname.def;
13425 else
13426 echo EXPORTS > $output_objdir/$soname.def;
13427 cat $export_symbols >> $output_objdir/$soname.def;
13428 fi~
13429 $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'
13430 else
13431 ld_shlibs_CXX=no
13432 fi
13433 ;;
13434 esac
13435 ;;
13436 darwin* | rhapsody*)
13437
13438
13439 archive_cmds_need_lc_CXX=no
13440 hardcode_direct_CXX=no
13441 hardcode_automatic_CXX=yes
13442 hardcode_shlibpath_var_CXX=unsupported
13443 if test "$lt_cv_ld_force_load" = "yes"; then
13444 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\"`'
13445
13446 else
13447 whole_archive_flag_spec_CXX=''
13448 fi
13449 link_all_deplibs_CXX=yes
13450 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13451 case $cc_basename in
13452 ifort*) _lt_dar_can_shared=yes ;;
13453 *) _lt_dar_can_shared=$GCC ;;
13454 esac
13455 if test "$_lt_dar_can_shared" = "yes"; then
13456 output_verbose_link_cmd=func_echo_all
13457 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}"
13458 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13459 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}"
13460 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}"
13461 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13462 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}"
13463 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}"
13464 fi
13465
13466 else
13467 ld_shlibs_CXX=no
13468 fi
13469
13470 ;;
13471
13472 dgux*)
13473 case $cc_basename in
13474 ec++*)
13475 # FIXME: insert proper C++ library support
13476 ld_shlibs_CXX=no
13477 ;;
13478 ghcx*)
13479 # Green Hills C++ Compiler
13480 # FIXME: insert proper C++ library support
13481 ld_shlibs_CXX=no
13482 ;;
13483 *)
13484 # FIXME: insert proper C++ library support
13485 ld_shlibs_CXX=no
13486 ;;
13487 esac
13488 ;;
13489
13490 freebsd2.*)
13491 # C++ shared libraries reported to be fairly broken before
13492 # switch to ELF
13493 ld_shlibs_CXX=no
13494 ;;
13495
13496 freebsd-elf*)
13497 archive_cmds_need_lc_CXX=no
13498 ;;
13499
13500 freebsd* | dragonfly*)
13501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13502 # conventions
13503 ld_shlibs_CXX=yes
13504 ;;
13505
13506 gnu*)
13507 ;;
13508
13509 haiku*)
13510 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511 link_all_deplibs_CXX=yes
13512 ;;
13513
13514 hpux9*)
13515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13516 hardcode_libdir_separator_CXX=:
13517 export_dynamic_flag_spec_CXX='${wl}-E'
13518 hardcode_direct_CXX=yes
13519 hardcode_minus_L_CXX=yes # Not in the search PATH,
13520 # but as the default
13521 # location of the library.
13522
13523 case $cc_basename in
13524 CC*)
13525 # FIXME: insert proper C++ library support
13526 ld_shlibs_CXX=no
13527 ;;
13528 aCC*)
13529 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'
13530 # Commands to make compiler produce verbose output that lists
13531 # what "hidden" libraries, object files and flags are used when
13532 # linking a shared library.
13533 #
13534 # There doesn't appear to be a way to prevent this compiler from
13535 # explicitly linking system object files so we need to strip them
13536 # from the output so that they don't get included in the library
13537 # dependencies.
13538 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"'
13539 ;;
13540 *)
13541 if test "$GXX" = yes; then
13542 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'
13543 else
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 fi
13547 ;;
13548 esac
13549 ;;
13550
13551 hpux10*|hpux11*)
13552 if test $with_gnu_ld = no; then
13553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13554 hardcode_libdir_separator_CXX=:
13555
13556 case $host_cpu in
13557 hppa*64*|ia64*)
13558 ;;
13559 *)
13560 export_dynamic_flag_spec_CXX='${wl}-E'
13561 ;;
13562 esac
13563 fi
13564 case $host_cpu in
13565 hppa*64*|ia64*)
13566 hardcode_direct_CXX=no
13567 hardcode_shlibpath_var_CXX=no
13568 ;;
13569 *)
13570 hardcode_direct_CXX=yes
13571 hardcode_direct_absolute_CXX=yes
13572 hardcode_minus_L_CXX=yes # Not in the search PATH,
13573 # but as the default
13574 # location of the library.
13575 ;;
13576 esac
13577
13578 case $cc_basename in
13579 CC*)
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13582 ;;
13583 aCC*)
13584 case $host_cpu in
13585 hppa*64*)
13586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13587 ;;
13588 ia64*)
13589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590 ;;
13591 *)
13592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13593 ;;
13594 esac
13595 # Commands to make compiler produce verbose output that lists
13596 # what "hidden" libraries, object files and flags are used when
13597 # linking a shared library.
13598 #
13599 # There doesn't appear to be a way to prevent this compiler from
13600 # explicitly linking system object files so we need to strip them
13601 # from the output so that they don't get included in the library
13602 # dependencies.
13603 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"'
13604 ;;
13605 *)
13606 if test "$GXX" = yes; then
13607 if test $with_gnu_ld = no; then
13608 case $host_cpu in
13609 hppa*64*)
13610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611 ;;
13612 ia64*)
13613 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13614 ;;
13615 *)
13616 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'
13617 ;;
13618 esac
13619 fi
13620 else
13621 # FIXME: insert proper C++ library support
13622 ld_shlibs_CXX=no
13623 fi
13624 ;;
13625 esac
13626 ;;
13627
13628 interix[3-9]*)
13629 hardcode_direct_CXX=no
13630 hardcode_shlibpath_var_CXX=no
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13632 export_dynamic_flag_spec_CXX='${wl}-E'
13633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13634 # Instead, shared libraries are loaded at an image base (0x10000000 by
13635 # default) and relocated if they conflict, which is a slow very memory
13636 # consuming and fragmenting process. To avoid this, we pick a random,
13637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13639 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'
13640 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'
13641 ;;
13642 irix5* | irix6*)
13643 case $cc_basename in
13644 CC*)
13645 # SGI C++
13646 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'
13647
13648 # Archives containing C++ object files must be created using
13649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13650 # necessary to make sure instantiated templates are included
13651 # in the archive.
13652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13653 ;;
13654 *)
13655 if test "$GXX" = yes; then
13656 if test "$with_gnu_ld" = no; then
13657 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'
13658 else
13659 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'
13660 fi
13661 fi
13662 link_all_deplibs_CXX=yes
13663 ;;
13664 esac
13665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13666 hardcode_libdir_separator_CXX=:
13667 inherit_rpath_CXX=yes
13668 ;;
13669
13670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13671 case $cc_basename in
13672 KCC*)
13673 # Kuck and Associates, Inc. (KAI) C++ Compiler
13674
13675 # KCC will only create a shared library if the output file
13676 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13677 # to its proper name (with version) after linking.
13678 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'
13679 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'
13680 # Commands to make compiler produce verbose output that lists
13681 # what "hidden" libraries, object files and flags are used when
13682 # linking a shared library.
13683 #
13684 # There doesn't appear to be a way to prevent this compiler from
13685 # explicitly linking system object files so we need to strip them
13686 # from the output so that they don't get included in the library
13687 # dependencies.
13688 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"'
13689
13690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13692
13693 # Archives containing C++ object files must be created using
13694 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13696 ;;
13697 icpc* | ecpc* )
13698 # Intel C++
13699 with_gnu_ld=yes
13700 # version 8.0 and above of icpc choke on multiply defined symbols
13701 # if we add $predep_objects and $postdep_objects, however 7.1 and
13702 # earlier do not add the objects themselves.
13703 case `$CC -V 2>&1` in
13704 *"Version 7."*)
13705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706 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'
13707 ;;
13708 *) # Version 8.0 or newer
13709 tmp_idyn=
13710 case $host_cpu in
13711 ia64*) tmp_idyn=' -i_dynamic';;
13712 esac
13713 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714 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'
13715 ;;
13716 esac
13717 archive_cmds_need_lc_CXX=no
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13720 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13721 ;;
13722 pgCC* | pgcpp*)
13723 # Portland Group C++ compiler
13724 case `$CC -V` in
13725 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13726 prelink_cmds_CXX='tpldir=Template.dir~
13727 rm -rf $tpldir~
13728 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13729 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13730 old_archive_cmds_CXX='tpldir=Template.dir~
13731 rm -rf $tpldir~
13732 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13733 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13734 $RANLIB $oldlib'
13735 archive_cmds_CXX='tpldir=Template.dir~
13736 rm -rf $tpldir~
13737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13738 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13739 archive_expsym_cmds_CXX='tpldir=Template.dir~
13740 rm -rf $tpldir~
13741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13742 $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'
13743 ;;
13744 *) # Version 6 and above use weak symbols
13745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13746 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'
13747 ;;
13748 esac
13749
13750 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13752 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'
13753 ;;
13754 cxx*)
13755 # Compaq C++
13756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757 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'
13758
13759 runpath_var=LD_RUN_PATH
13760 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13761 hardcode_libdir_separator_CXX=:
13762
13763 # Commands to make compiler produce verbose output that lists
13764 # what "hidden" libraries, object files and flags are used when
13765 # linking a shared library.
13766 #
13767 # There doesn't appear to be a way to prevent this compiler from
13768 # explicitly linking system object files so we need to strip them
13769 # from the output so that they don't get included in the library
13770 # dependencies.
13771 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'
13772 ;;
13773 xl* | mpixl* | bgxl*)
13774 # IBM XL 8.0 on PPC, with GNU ld
13775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778 if test "x$supports_anon_versioning" = xyes; then
13779 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13781 echo "local: *; };" >> $output_objdir/$libname.ver~
13782 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13783 fi
13784 ;;
13785 *)
13786 case `$CC -V 2>&1 | sed 5q` in
13787 *Sun\ C*)
13788 # Sun C++ 5.9
13789 no_undefined_flag_CXX=' -zdefs'
13790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13791 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'
13792 hardcode_libdir_flag_spec_CXX='-R$libdir'
13793 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'
13794 compiler_needs_object_CXX=yes
13795
13796 # Not sure whether something based on
13797 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13798 # would be better.
13799 output_verbose_link_cmd='func_echo_all'
13800
13801 # Archives containing C++ object files must be created using
13802 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13803 # necessary to make sure instantiated templates are included
13804 # in the archive.
13805 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13806 ;;
13807 esac
13808 ;;
13809 esac
13810 ;;
13811
13812 lynxos*)
13813 # FIXME: insert proper C++ library support
13814 ld_shlibs_CXX=no
13815 ;;
13816
13817 m88k*)
13818 # FIXME: insert proper C++ library support
13819 ld_shlibs_CXX=no
13820 ;;
13821
13822 mvs*)
13823 case $cc_basename in
13824 cxx*)
13825 # FIXME: insert proper C++ library support
13826 ld_shlibs_CXX=no
13827 ;;
13828 *)
13829 # FIXME: insert proper C++ library support
13830 ld_shlibs_CXX=no
13831 ;;
13832 esac
13833 ;;
13834
13835 netbsd*)
13836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13837 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13838 wlarc=
13839 hardcode_libdir_flag_spec_CXX='-R$libdir'
13840 hardcode_direct_CXX=yes
13841 hardcode_shlibpath_var_CXX=no
13842 fi
13843 # Workaround some broken pre-1.5 toolchains
13844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13845 ;;
13846
13847 *nto* | *qnx*)
13848 ld_shlibs_CXX=yes
13849 ;;
13850
13851 openbsd2*)
13852 # C++ shared libraries are fairly broken
13853 ld_shlibs_CXX=no
13854 ;;
13855
13856 openbsd*)
13857 if test -f /usr/libexec/ld.so; then
13858 hardcode_direct_CXX=yes
13859 hardcode_shlibpath_var_CXX=no
13860 hardcode_direct_absolute_CXX=yes
13861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13865 export_dynamic_flag_spec_CXX='${wl}-E'
13866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13867 fi
13868 output_verbose_link_cmd=func_echo_all
13869 else
13870 ld_shlibs_CXX=no
13871 fi
13872 ;;
13873
13874 osf3* | osf4* | osf5*)
13875 case $cc_basename in
13876 KCC*)
13877 # Kuck and Associates, Inc. (KAI) C++ Compiler
13878
13879 # KCC will only create a shared library if the output file
13880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13881 # to its proper name (with version) after linking.
13882 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'
13883
13884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13885 hardcode_libdir_separator_CXX=:
13886
13887 # Archives containing C++ object files must be created using
13888 # the KAI C++ compiler.
13889 case $host in
13890 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13891 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13892 esac
13893 ;;
13894 RCC*)
13895 # Rational C++ 2.4.1
13896 # FIXME: insert proper C++ library support
13897 ld_shlibs_CXX=no
13898 ;;
13899 cxx*)
13900 case $host in
13901 osf3*)
13902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13903 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'
13904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13905 ;;
13906 *)
13907 allow_undefined_flag_CXX=' -expect_unresolved \*'
13908 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'
13909 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13910 echo "-hidden">> $lib.exp~
13911 $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~
13912 $RM $lib.exp'
13913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13914 ;;
13915 esac
13916
13917 hardcode_libdir_separator_CXX=:
13918
13919 # Commands to make compiler produce verbose output that lists
13920 # what "hidden" libraries, object files and flags are used when
13921 # linking a shared library.
13922 #
13923 # There doesn't appear to be a way to prevent this compiler from
13924 # explicitly linking system object files so we need to strip them
13925 # from the output so that they don't get included in the library
13926 # dependencies.
13927 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"'
13928 ;;
13929 *)
13930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13932 case $host in
13933 osf3*)
13934 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'
13935 ;;
13936 *)
13937 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'
13938 ;;
13939 esac
13940
13941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13942 hardcode_libdir_separator_CXX=:
13943
13944 # Commands to make compiler produce verbose output that lists
13945 # what "hidden" libraries, object files and flags are used when
13946 # linking a shared library.
13947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13948
13949 else
13950 # FIXME: insert proper C++ library support
13951 ld_shlibs_CXX=no
13952 fi
13953 ;;
13954 esac
13955 ;;
13956
13957 psos*)
13958 # FIXME: insert proper C++ library support
13959 ld_shlibs_CXX=no
13960 ;;
13961
13962 sunos4*)
13963 case $cc_basename in
13964 CC*)
13965 # Sun C++ 4.x
13966 # FIXME: insert proper C++ library support
13967 ld_shlibs_CXX=no
13968 ;;
13969 lcc*)
13970 # Lucid
13971 # FIXME: insert proper C++ library support
13972 ld_shlibs_CXX=no
13973 ;;
13974 *)
13975 # FIXME: insert proper C++ library support
13976 ld_shlibs_CXX=no
13977 ;;
13978 esac
13979 ;;
13980
13981 solaris*)
13982 case $cc_basename in
13983 CC* | sunCC*)
13984 # Sun C++ 4.2, 5.x and Centerline C++
13985 archive_cmds_need_lc_CXX=yes
13986 no_undefined_flag_CXX=' -zdefs'
13987 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13989 $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'
13990
13991 hardcode_libdir_flag_spec_CXX='-R$libdir'
13992 hardcode_shlibpath_var_CXX=no
13993 case $host_os in
13994 solaris2.[0-5] | solaris2.[0-5].*) ;;
13995 *)
13996 # The compiler driver will combine and reorder linker options,
13997 # but understands `-z linker_flag'.
13998 # Supported since Solaris 2.6 (maybe 2.5.1?)
13999 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14000 ;;
14001 esac
14002 link_all_deplibs_CXX=yes
14003
14004 output_verbose_link_cmd='func_echo_all'
14005
14006 # Archives containing C++ object files must be created using
14007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14008 # necessary to make sure instantiated templates are included
14009 # in the archive.
14010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14011 ;;
14012 gcx*)
14013 # Green Hills C++ Compiler
14014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14015
14016 # The C++ compiler must be used to create the archive.
14017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14018 ;;
14019 *)
14020 # GNU C++ compiler with Solaris linker
14021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14023 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14024 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14026 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14027
14028 # Commands to make compiler produce verbose output that lists
14029 # what "hidden" libraries, object files and flags are used when
14030 # linking a shared library.
14031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14032 else
14033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14034 # platform.
14035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14038
14039 # Commands to make compiler produce verbose output that lists
14040 # what "hidden" libraries, object files and flags are used when
14041 # linking a shared library.
14042 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14043 fi
14044
14045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14046 case $host_os in
14047 solaris2.[0-5] | solaris2.[0-5].*) ;;
14048 *)
14049 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14050 ;;
14051 esac
14052 fi
14053 ;;
14054 esac
14055 ;;
14056
14057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14058 no_undefined_flag_CXX='${wl}-z,text'
14059 archive_cmds_need_lc_CXX=no
14060 hardcode_shlibpath_var_CXX=no
14061 runpath_var='LD_RUN_PATH'
14062
14063 case $cc_basename in
14064 CC*)
14065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 ;;
14068 *)
14069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 ;;
14072 esac
14073 ;;
14074
14075 sysv5* | sco3.2v5* | sco5v6*)
14076 # Note: We can NOT use -z defs as we might desire, because we do not
14077 # link with -lc, and that would cause any symbols used from libc to
14078 # always be unresolved, which means just about no library would
14079 # ever link correctly. If we're not using GNU ld we use -z text
14080 # though, which does catch some bad symbols but isn't as heavy-handed
14081 # as -z defs.
14082 no_undefined_flag_CXX='${wl}-z,text'
14083 allow_undefined_flag_CXX='${wl}-z,nodefs'
14084 archive_cmds_need_lc_CXX=no
14085 hardcode_shlibpath_var_CXX=no
14086 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14087 hardcode_libdir_separator_CXX=':'
14088 link_all_deplibs_CXX=yes
14089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14090 runpath_var='LD_RUN_PATH'
14091
14092 case $cc_basename in
14093 CC*)
14094 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14096 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14097 '"$old_archive_cmds_CXX"
14098 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14099 '"$reload_cmds_CXX"
14100 ;;
14101 *)
14102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 ;;
14105 esac
14106 ;;
14107
14108 tandem*)
14109 case $cc_basename in
14110 NCC*)
14111 # NonStop-UX NCC 3.20
14112 # FIXME: insert proper C++ library support
14113 ld_shlibs_CXX=no
14114 ;;
14115 *)
14116 # FIXME: insert proper C++ library support
14117 ld_shlibs_CXX=no
14118 ;;
14119 esac
14120 ;;
14121
14122 vxworks*)
14123 # FIXME: insert proper C++ library support
14124 ld_shlibs_CXX=no
14125 ;;
14126
14127 *)
14128 # FIXME: insert proper C++ library support
14129 ld_shlibs_CXX=no
14130 ;;
14131 esac
14132
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14134 $as_echo "$ld_shlibs_CXX" >&6; }
14135 test "$ld_shlibs_CXX" = no && can_build_shared=no
14136
14137 GCC_CXX="$GXX"
14138 LD_CXX="$LD"
14139
14140 ## CAVEAT EMPTOR:
14141 ## There is no encapsulation within the following macros, do not change
14142 ## the running order or otherwise move them around unless you know exactly
14143 ## what you are doing...
14144 # Dependencies to place before and after the object being linked:
14145 predep_objects_CXX=
14146 postdep_objects_CXX=
14147 predeps_CXX=
14148 postdeps_CXX=
14149 compiler_lib_search_path_CXX=
14150
14151 cat > conftest.$ac_ext <<_LT_EOF
14152 class Foo
14153 {
14154 public:
14155 Foo (void) { a = 0; }
14156 private:
14157 int a;
14158 };
14159 _LT_EOF
14160
14161
14162 _lt_libdeps_save_CFLAGS=$CFLAGS
14163 case "$CC $CFLAGS " in #(
14164 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14165 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14166 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14167 esac
14168
14169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14170 (eval $ac_compile) 2>&5
14171 ac_status=$?
14172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }; then
14174 # Parse the compiler output and extract the necessary
14175 # objects, libraries and library flags.
14176
14177 # Sentinel used to keep track of whether or not we are before
14178 # the conftest object file.
14179 pre_test_object_deps_done=no
14180
14181 for p in `eval "$output_verbose_link_cmd"`; do
14182 case ${prev}${p} in
14183
14184 -L* | -R* | -l*)
14185 # Some compilers place space between "-{L,R}" and the path.
14186 # Remove the space.
14187 if test $p = "-L" ||
14188 test $p = "-R"; then
14189 prev=$p
14190 continue
14191 fi
14192
14193 # Expand the sysroot to ease extracting the directories later.
14194 if test -z "$prev"; then
14195 case $p in
14196 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14197 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14198 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14199 esac
14200 fi
14201 case $p in
14202 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14203 esac
14204 if test "$pre_test_object_deps_done" = no; then
14205 case ${prev} in
14206 -L | -R)
14207 # Internal compiler library paths should come after those
14208 # provided the user. The postdeps already come after the
14209 # user supplied libs so there is no need to process them.
14210 if test -z "$compiler_lib_search_path_CXX"; then
14211 compiler_lib_search_path_CXX="${prev}${p}"
14212 else
14213 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14214 fi
14215 ;;
14216 # The "-l" case would never come before the object being
14217 # linked, so don't bother handling this case.
14218 esac
14219 else
14220 if test -z "$postdeps_CXX"; then
14221 postdeps_CXX="${prev}${p}"
14222 else
14223 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14224 fi
14225 fi
14226 prev=
14227 ;;
14228
14229 *.lto.$objext) ;; # Ignore GCC LTO objects
14230 *.$objext)
14231 # This assumes that the test object file only shows up
14232 # once in the compiler output.
14233 if test "$p" = "conftest.$objext"; then
14234 pre_test_object_deps_done=yes
14235 continue
14236 fi
14237
14238 if test "$pre_test_object_deps_done" = no; then
14239 if test -z "$predep_objects_CXX"; then
14240 predep_objects_CXX="$p"
14241 else
14242 predep_objects_CXX="$predep_objects_CXX $p"
14243 fi
14244 else
14245 if test -z "$postdep_objects_CXX"; then
14246 postdep_objects_CXX="$p"
14247 else
14248 postdep_objects_CXX="$postdep_objects_CXX $p"
14249 fi
14250 fi
14251 ;;
14252
14253 *) ;; # Ignore the rest.
14254
14255 esac
14256 done
14257
14258 # Clean up.
14259 rm -f a.out a.exe
14260 else
14261 echo "libtool.m4: error: problem compiling CXX test program"
14262 fi
14263
14264 $RM -f confest.$objext
14265 CFLAGS=$_lt_libdeps_save_CFLAGS
14266
14267 # PORTME: override above test on systems where it is broken
14268 case $host_os in
14269 interix[3-9]*)
14270 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14271 # hack all around it, let's just trust "g++" to DTRT.
14272 predep_objects_CXX=
14273 postdep_objects_CXX=
14274 postdeps_CXX=
14275 ;;
14276
14277 linux*)
14278 case `$CC -V 2>&1 | sed 5q` in
14279 *Sun\ C*)
14280 # Sun C++ 5.9
14281
14282 # The more standards-conforming stlport4 library is
14283 # incompatible with the Cstd library. Avoid specifying
14284 # it if it's in CXXFLAGS. Ignore libCrun as
14285 # -library=stlport4 depends on it.
14286 case " $CXX $CXXFLAGS " in
14287 *" -library=stlport4 "*)
14288 solaris_use_stlport4=yes
14289 ;;
14290 esac
14291
14292 if test "$solaris_use_stlport4" != yes; then
14293 postdeps_CXX='-library=Cstd -library=Crun'
14294 fi
14295 ;;
14296 esac
14297 ;;
14298
14299 solaris*)
14300 case $cc_basename in
14301 CC* | sunCC*)
14302 # The more standards-conforming stlport4 library is
14303 # incompatible with the Cstd library. Avoid specifying
14304 # it if it's in CXXFLAGS. Ignore libCrun as
14305 # -library=stlport4 depends on it.
14306 case " $CXX $CXXFLAGS " in
14307 *" -library=stlport4 "*)
14308 solaris_use_stlport4=yes
14309 ;;
14310 esac
14311
14312 # Adding this requires a known-good setup of shared libraries for
14313 # Sun compiler versions before 5.6, else PIC objects from an old
14314 # archive will be linked into the output, leading to subtle bugs.
14315 if test "$solaris_use_stlport4" != yes; then
14316 postdeps_CXX='-library=Cstd -library=Crun'
14317 fi
14318 ;;
14319 esac
14320 ;;
14321 esac
14322
14323
14324 case " $postdeps_CXX " in
14325 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14326 esac
14327 compiler_lib_search_dirs_CXX=
14328 if test -n "${compiler_lib_search_path_CXX}"; then
14329 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14330 fi
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362 lt_prog_compiler_wl_CXX=
14363 lt_prog_compiler_pic_CXX=
14364 lt_prog_compiler_static_CXX=
14365
14366
14367 # C++ specific cases for pic, static, wl, etc.
14368 if test "$GXX" = yes; then
14369 lt_prog_compiler_wl_CXX='-Wl,'
14370 lt_prog_compiler_static_CXX='-static'
14371
14372 case $host_os in
14373 aix*)
14374 # All AIX code is PIC.
14375 if test "$host_cpu" = ia64; then
14376 # AIX 5 now supports IA64 processor
14377 lt_prog_compiler_static_CXX='-Bstatic'
14378 fi
14379 ;;
14380
14381 amigaos*)
14382 case $host_cpu in
14383 powerpc)
14384 # see comment about AmigaOS4 .so support
14385 lt_prog_compiler_pic_CXX='-fPIC'
14386 ;;
14387 m68k)
14388 # FIXME: we need at least 68020 code to build shared libraries, but
14389 # adding the `-m68020' flag to GCC prevents building anything better,
14390 # like `-m68040'.
14391 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14392 ;;
14393 esac
14394 ;;
14395
14396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14397 # PIC is the default for these OSes.
14398 ;;
14399 mingw* | cygwin* | os2* | pw32* | cegcc*)
14400 # This hack is so that the source file can tell whether it is being
14401 # built for inclusion in a dll (and should export symbols for example).
14402 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14403 # (--disable-auto-import) libraries
14404 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14405 ;;
14406 darwin* | rhapsody*)
14407 # PIC is the default on this platform
14408 # Common symbols not allowed in MH_DYLIB files
14409 lt_prog_compiler_pic_CXX='-fno-common'
14410 ;;
14411 *djgpp*)
14412 # DJGPP does not support shared libraries at all
14413 lt_prog_compiler_pic_CXX=
14414 ;;
14415 haiku*)
14416 # PIC is the default for Haiku.
14417 # The "-static" flag exists, but is broken.
14418 lt_prog_compiler_static_CXX=
14419 ;;
14420 interix[3-9]*)
14421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14422 # Instead, we relocate shared libraries at runtime.
14423 ;;
14424 sysv4*MP*)
14425 if test -d /usr/nec; then
14426 lt_prog_compiler_pic_CXX=-Kconform_pic
14427 fi
14428 ;;
14429 hpux*)
14430 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14431 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14432 # sets the default TLS model and affects inlining.
14433 case $host_cpu in
14434 hppa*64*)
14435 ;;
14436 *)
14437 lt_prog_compiler_pic_CXX='-fPIC'
14438 ;;
14439 esac
14440 ;;
14441 *qnx* | *nto*)
14442 # QNX uses GNU C++, but need to define -shared option too, otherwise
14443 # it will coredump.
14444 lt_prog_compiler_pic_CXX='-fPIC -shared'
14445 ;;
14446 *)
14447 lt_prog_compiler_pic_CXX='-fPIC'
14448 ;;
14449 esac
14450 else
14451 case $host_os in
14452 aix[4-9]*)
14453 # All AIX code is PIC.
14454 if test "$host_cpu" = ia64; then
14455 # AIX 5 now supports IA64 processor
14456 lt_prog_compiler_static_CXX='-Bstatic'
14457 else
14458 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14459 fi
14460 ;;
14461 chorus*)
14462 case $cc_basename in
14463 cxch68*)
14464 # Green Hills C++ Compiler
14465 # _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"
14466 ;;
14467 esac
14468 ;;
14469 mingw* | cygwin* | os2* | pw32* | cegcc*)
14470 # This hack is so that the source file can tell whether it is being
14471 # built for inclusion in a dll (and should export symbols for example).
14472 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14473 ;;
14474 dgux*)
14475 case $cc_basename in
14476 ec++*)
14477 lt_prog_compiler_pic_CXX='-KPIC'
14478 ;;
14479 ghcx*)
14480 # Green Hills C++ Compiler
14481 lt_prog_compiler_pic_CXX='-pic'
14482 ;;
14483 *)
14484 ;;
14485 esac
14486 ;;
14487 freebsd* | dragonfly*)
14488 # FreeBSD uses GNU C++
14489 ;;
14490 hpux9* | hpux10* | hpux11*)
14491 case $cc_basename in
14492 CC*)
14493 lt_prog_compiler_wl_CXX='-Wl,'
14494 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14495 if test "$host_cpu" != ia64; then
14496 lt_prog_compiler_pic_CXX='+Z'
14497 fi
14498 ;;
14499 aCC*)
14500 lt_prog_compiler_wl_CXX='-Wl,'
14501 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14502 case $host_cpu in
14503 hppa*64*|ia64*)
14504 # +Z the default
14505 ;;
14506 *)
14507 lt_prog_compiler_pic_CXX='+Z'
14508 ;;
14509 esac
14510 ;;
14511 *)
14512 ;;
14513 esac
14514 ;;
14515 interix*)
14516 # This is c89, which is MS Visual C++ (no shared libs)
14517 # Anyone wants to do a port?
14518 ;;
14519 irix5* | irix6* | nonstopux*)
14520 case $cc_basename in
14521 CC*)
14522 lt_prog_compiler_wl_CXX='-Wl,'
14523 lt_prog_compiler_static_CXX='-non_shared'
14524 # CC pic flag -KPIC is the default.
14525 ;;
14526 *)
14527 ;;
14528 esac
14529 ;;
14530 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14531 case $cc_basename in
14532 KCC*)
14533 # KAI C++ Compiler
14534 lt_prog_compiler_wl_CXX='--backend -Wl,'
14535 lt_prog_compiler_pic_CXX='-fPIC'
14536 ;;
14537 ecpc* )
14538 # old Intel C++ for x86_64 which still supported -KPIC.
14539 lt_prog_compiler_wl_CXX='-Wl,'
14540 lt_prog_compiler_pic_CXX='-KPIC'
14541 lt_prog_compiler_static_CXX='-static'
14542 ;;
14543 icpc* )
14544 # Intel C++, used to be incompatible with GCC.
14545 # ICC 10 doesn't accept -KPIC any more.
14546 lt_prog_compiler_wl_CXX='-Wl,'
14547 lt_prog_compiler_pic_CXX='-fPIC'
14548 lt_prog_compiler_static_CXX='-static'
14549 ;;
14550 pgCC* | pgcpp*)
14551 # Portland Group C++ compiler
14552 lt_prog_compiler_wl_CXX='-Wl,'
14553 lt_prog_compiler_pic_CXX='-fpic'
14554 lt_prog_compiler_static_CXX='-Bstatic'
14555 ;;
14556 cxx*)
14557 # Compaq C++
14558 # Make sure the PIC flag is empty. It appears that all Alpha
14559 # Linux and Compaq Tru64 Unix objects are PIC.
14560 lt_prog_compiler_pic_CXX=
14561 lt_prog_compiler_static_CXX='-non_shared'
14562 ;;
14563 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14564 # IBM XL 8.0, 9.0 on PPC and BlueGene
14565 lt_prog_compiler_wl_CXX='-Wl,'
14566 lt_prog_compiler_pic_CXX='-qpic'
14567 lt_prog_compiler_static_CXX='-qstaticlink'
14568 ;;
14569 *)
14570 case `$CC -V 2>&1 | sed 5q` in
14571 *Sun\ C*)
14572 # Sun C++ 5.9
14573 lt_prog_compiler_pic_CXX='-KPIC'
14574 lt_prog_compiler_static_CXX='-Bstatic'
14575 lt_prog_compiler_wl_CXX='-Qoption ld '
14576 ;;
14577 esac
14578 ;;
14579 esac
14580 ;;
14581 lynxos*)
14582 ;;
14583 m88k*)
14584 ;;
14585 mvs*)
14586 case $cc_basename in
14587 cxx*)
14588 lt_prog_compiler_pic_CXX='-W c,exportall'
14589 ;;
14590 *)
14591 ;;
14592 esac
14593 ;;
14594 netbsd*)
14595 ;;
14596 *qnx* | *nto*)
14597 # QNX uses GNU C++, but need to define -shared option too, otherwise
14598 # it will coredump.
14599 lt_prog_compiler_pic_CXX='-fPIC -shared'
14600 ;;
14601 osf3* | osf4* | osf5*)
14602 case $cc_basename in
14603 KCC*)
14604 lt_prog_compiler_wl_CXX='--backend -Wl,'
14605 ;;
14606 RCC*)
14607 # Rational C++ 2.4.1
14608 lt_prog_compiler_pic_CXX='-pic'
14609 ;;
14610 cxx*)
14611 # Digital/Compaq C++
14612 lt_prog_compiler_wl_CXX='-Wl,'
14613 # Make sure the PIC flag is empty. It appears that all Alpha
14614 # Linux and Compaq Tru64 Unix objects are PIC.
14615 lt_prog_compiler_pic_CXX=
14616 lt_prog_compiler_static_CXX='-non_shared'
14617 ;;
14618 *)
14619 ;;
14620 esac
14621 ;;
14622 psos*)
14623 ;;
14624 solaris*)
14625 case $cc_basename in
14626 CC* | sunCC*)
14627 # Sun C++ 4.2, 5.x and Centerline C++
14628 lt_prog_compiler_pic_CXX='-KPIC'
14629 lt_prog_compiler_static_CXX='-Bstatic'
14630 lt_prog_compiler_wl_CXX='-Qoption ld '
14631 ;;
14632 gcx*)
14633 # Green Hills C++ Compiler
14634 lt_prog_compiler_pic_CXX='-PIC'
14635 ;;
14636 *)
14637 ;;
14638 esac
14639 ;;
14640 sunos4*)
14641 case $cc_basename in
14642 CC*)
14643 # Sun C++ 4.x
14644 lt_prog_compiler_pic_CXX='-pic'
14645 lt_prog_compiler_static_CXX='-Bstatic'
14646 ;;
14647 lcc*)
14648 # Lucid
14649 lt_prog_compiler_pic_CXX='-pic'
14650 ;;
14651 *)
14652 ;;
14653 esac
14654 ;;
14655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14656 case $cc_basename in
14657 CC*)
14658 lt_prog_compiler_wl_CXX='-Wl,'
14659 lt_prog_compiler_pic_CXX='-KPIC'
14660 lt_prog_compiler_static_CXX='-Bstatic'
14661 ;;
14662 esac
14663 ;;
14664 tandem*)
14665 case $cc_basename in
14666 NCC*)
14667 # NonStop-UX NCC 3.20
14668 lt_prog_compiler_pic_CXX='-KPIC'
14669 ;;
14670 *)
14671 ;;
14672 esac
14673 ;;
14674 vxworks*)
14675 ;;
14676 *)
14677 lt_prog_compiler_can_build_shared_CXX=no
14678 ;;
14679 esac
14680 fi
14681
14682 case $host_os in
14683 # For platforms which do not support PIC, -DPIC is meaningless:
14684 *djgpp*)
14685 lt_prog_compiler_pic_CXX=
14686 ;;
14687 *)
14688 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14689 ;;
14690 esac
14691
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14693 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14694 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14695 $as_echo_n "(cached) " >&6
14696 else
14697 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14700 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14701 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14702
14703 #
14704 # Check to make sure the PIC flag actually works.
14705 #
14706 if test -n "$lt_prog_compiler_pic_CXX"; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14708 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14709 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14712 lt_cv_prog_compiler_pic_works_CXX=no
14713 ac_outfile=conftest.$ac_objext
14714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14716 # Insert the option either (1) after the last *FLAGS variable, or
14717 # (2) before a word containing "conftest.", or (3) at the end.
14718 # Note that $ac_compile itself does not contain backslashes and begins
14719 # with a dollar sign (not a hyphen), so the echo should work correctly.
14720 # The option is referenced via a variable to avoid confusing sed.
14721 lt_compile=`echo "$ac_compile" | $SED \
14722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14724 -e 's:$: $lt_compiler_flag:'`
14725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14726 (eval "$lt_compile" 2>conftest.err)
14727 ac_status=$?
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 if (exit $ac_status) && test -s "$ac_outfile"; then
14731 # The compiler can only warn and ignore the option if not recognized
14732 # So say no if there are warnings other than the usual output.
14733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14736 lt_cv_prog_compiler_pic_works_CXX=yes
14737 fi
14738 fi
14739 $RM -r conftest*
14740
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14743 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14744
14745 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14746 case $lt_prog_compiler_pic_CXX in
14747 "" | " "*) ;;
14748 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14749 esac
14750 else
14751 lt_prog_compiler_pic_CXX=
14752 lt_prog_compiler_can_build_shared_CXX=no
14753 fi
14754
14755 fi
14756
14757
14758
14759
14760
14761 #
14762 # Check to make sure the static flag actually works.
14763 #
14764 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14766 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14767 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 lt_cv_prog_compiler_static_works_CXX=no
14771 save_LDFLAGS="$LDFLAGS"
14772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14775 # The linker can only warn and ignore the option if not recognized
14776 # So say no if there are warnings
14777 if test -s conftest.err; then
14778 # Append any errors to the config.log.
14779 cat conftest.err 1>&5
14780 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if diff conftest.exp conftest.er2 >/dev/null; then
14783 lt_cv_prog_compiler_static_works_CXX=yes
14784 fi
14785 else
14786 lt_cv_prog_compiler_static_works_CXX=yes
14787 fi
14788 fi
14789 $RM -r conftest*
14790 LDFLAGS="$save_LDFLAGS"
14791
14792 fi
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14794 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14795
14796 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14797 :
14798 else
14799 lt_prog_compiler_static_CXX=
14800 fi
14801
14802
14803
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14806 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14807 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14808 $as_echo_n "(cached) " >&6
14809 else
14810 lt_cv_prog_compiler_c_o_CXX=no
14811 $RM -r conftest 2>/dev/null
14812 mkdir conftest
14813 cd conftest
14814 mkdir out
14815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14816
14817 lt_compiler_flag="-o out/conftest2.$ac_objext"
14818 # Insert the option either (1) after the last *FLAGS variable, or
14819 # (2) before a word containing "conftest.", or (3) at the end.
14820 # Note that $ac_compile itself does not contain backslashes and begins
14821 # with a dollar sign (not a hyphen), so the echo should work correctly.
14822 lt_compile=`echo "$ac_compile" | $SED \
14823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14825 -e 's:$: $lt_compiler_flag:'`
14826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14827 (eval "$lt_compile" 2>out/conftest.err)
14828 ac_status=$?
14829 cat out/conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14832 then
14833 # The compiler can only warn and ignore the option if not recognized
14834 # So say no if there are warnings
14835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14838 lt_cv_prog_compiler_c_o_CXX=yes
14839 fi
14840 fi
14841 chmod u+w . 2>&5
14842 $RM -r conftest*
14843 # SGI C++ compiler will create directory out/ii_files/ for
14844 # template instantiation
14845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14846 $RM out/* && rmdir out
14847 cd ..
14848 $RM -r conftest
14849 $RM -r conftest*
14850
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14853 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14854
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14859 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 lt_cv_prog_compiler_c_o_CXX=no
14863 $RM -r conftest 2>/dev/null
14864 mkdir conftest
14865 cd conftest
14866 mkdir out
14867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868
14869 lt_compiler_flag="-o out/conftest2.$ac_objext"
14870 # Insert the option either (1) after the last *FLAGS variable, or
14871 # (2) before a word containing "conftest.", or (3) at the end.
14872 # Note that $ac_compile itself does not contain backslashes and begins
14873 # with a dollar sign (not a hyphen), so the echo should work correctly.
14874 lt_compile=`echo "$ac_compile" | $SED \
14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877 -e 's:$: $lt_compiler_flag:'`
14878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14879 (eval "$lt_compile" 2>out/conftest.err)
14880 ac_status=$?
14881 cat out/conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14884 then
14885 # The compiler can only warn and ignore the option if not recognized
14886 # So say no if there are warnings
14887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14890 lt_cv_prog_compiler_c_o_CXX=yes
14891 fi
14892 fi
14893 chmod u+w . 2>&5
14894 $RM -r conftest*
14895 # SGI C++ compiler will create directory out/ii_files/ for
14896 # template instantiation
14897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14898 $RM out/* && rmdir out
14899 cd ..
14900 $RM -r conftest
14901 $RM -r conftest*
14902
14903 fi
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14905 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14906
14907
14908
14909
14910 hard_links="nottested"
14911 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14912 # do not overwrite the value of need_locks provided by the user
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14914 $as_echo_n "checking if we can lock with hard links... " >&6; }
14915 hard_links=yes
14916 $RM -r conftest*
14917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14918 touch conftest.a
14919 ln conftest.a conftest.b 2>&5 || hard_links=no
14920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14922 $as_echo "$hard_links" >&6; }
14923 if test "$hard_links" = no; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14925 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14926 need_locks=warn
14927 fi
14928 else
14929 need_locks=no
14930 fi
14931
14932
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14935 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14936
14937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14938 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14939 case $host_os in
14940 aix[4-9]*)
14941 # If we're using GNU nm, then we don't want the "-C" option.
14942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14943 # Also, AIX nm treats weak defined symbols like other global defined
14944 # symbols, whereas GNU nm marks them as "W".
14945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14946 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'
14947 else
14948 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'
14949 fi
14950 ;;
14951 pw32*)
14952 export_symbols_cmds_CXX="$ltdll_cmds"
14953 ;;
14954 cygwin* | mingw* | cegcc*)
14955 case $cc_basename in
14956 cl*)
14957 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14958 ;;
14959 *)
14960 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'
14961 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14962 ;;
14963 esac
14964 ;;
14965 *)
14966 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14967 ;;
14968 esac
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14971 $as_echo "$ld_shlibs_CXX" >&6; }
14972 test "$ld_shlibs_CXX" = no && can_build_shared=no
14973
14974 with_gnu_ld_CXX=$with_gnu_ld
14975
14976
14977
14978
14979
14980
14981 #
14982 # Do we need to explicitly link libc?
14983 #
14984 case "x$archive_cmds_need_lc_CXX" in
14985 x|xyes)
14986 # Assume -lc should be added
14987 archive_cmds_need_lc_CXX=yes
14988
14989 if test "$enable_shared" = yes && test "$GCC" = yes; then
14990 case $archive_cmds_CXX in
14991 *'~'*)
14992 # FIXME: we may have to deal with multi-command sequences.
14993 ;;
14994 '$CC '*)
14995 # Test whether the compiler implicitly links with -lc since on some
14996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14997 # to ld, don't add -lc before -lgcc.
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14999 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15000 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 $RM -r conftest*
15004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15005
15006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15007 (eval $ac_compile) 2>&5
15008 ac_status=$?
15009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010 test $ac_status = 0; } 2>conftest.err; then
15011 soname=conftest
15012 lib=conftest
15013 libobjs=conftest.$ac_objext
15014 deplibs=
15015 wl=$lt_prog_compiler_wl_CXX
15016 pic_flag=$lt_prog_compiler_pic_CXX
15017 compiler_flags=-v
15018 linker_flags=-v
15019 verstring=
15020 output_objdir=.
15021 libname=conftest
15022 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15023 allow_undefined_flag_CXX=
15024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15025 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026 ac_status=$?
15027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; }
15029 then
15030 lt_cv_archive_cmds_need_lc_CXX=no
15031 else
15032 lt_cv_archive_cmds_need_lc_CXX=yes
15033 fi
15034 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15035 else
15036 cat conftest.err 1>&5
15037 fi
15038 $RM -r conftest*
15039
15040 fi
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15042 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15043 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15044 ;;
15045 esac
15046 fi
15047 ;;
15048 esac
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15112 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15113
15114 library_names_spec=
15115 libname_spec='lib$name'
15116 soname_spec=
15117 shrext_cmds=".so"
15118 postinstall_cmds=
15119 postuninstall_cmds=
15120 finish_cmds=
15121 finish_eval=
15122 shlibpath_var=
15123 shlibpath_overrides_runpath=unknown
15124 version_type=none
15125 dynamic_linker="$host_os ld.so"
15126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15127 need_lib_prefix=unknown
15128 hardcode_into_libs=no
15129
15130 # when you set need_version to no, make sure it does not cause -set_version
15131 # flags to be left without arguments
15132 need_version=unknown
15133
15134 case $host_os in
15135 aix3*)
15136 version_type=linux # correct to gnu/linux during the next big refactor
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15138 shlibpath_var=LIBPATH
15139
15140 # AIX 3 has no versioning support, so we append a major version to the name.
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 ;;
15143
15144 aix[4-9]*)
15145 version_type=linux # correct to gnu/linux during the next big refactor
15146 need_lib_prefix=no
15147 need_version=no
15148 hardcode_into_libs=yes
15149 if test "$host_cpu" = ia64; then
15150 # AIX 5 supports IA64
15151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 else
15154 # With GCC up to 2.95.x, collect2 would create an import file
15155 # for dependence libraries. The import file would start with
15156 # the line `#! .'. This would cause the generated library to
15157 # depend on `.', always an invalid library. This was fixed in
15158 # development snapshots of GCC prior to 3.0.
15159 case $host_os in
15160 aix4 | aix4.[01] | aix4.[01].*)
15161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15162 echo ' yes '
15163 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15164 :
15165 else
15166 can_build_shared=no
15167 fi
15168 ;;
15169 esac
15170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15171 # soname into executable. Probably we can add versioning support to
15172 # collect2, so additional links can be useful in future.
15173 if test "$aix_use_runtimelinking" = yes; then
15174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15175 # instead of lib<name>.a to let people know that these are not
15176 # typical AIX shared libraries.
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 else
15179 # We preserve .a as extension for shared libraries through AIX4.2
15180 # and later when we are not doing run time linking.
15181 library_names_spec='${libname}${release}.a $libname.a'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 fi
15184 shlibpath_var=LIBPATH
15185 fi
15186 ;;
15187
15188 amigaos*)
15189 case $host_cpu in
15190 powerpc)
15191 # Since July 2007 AmigaOS4 officially supports .so libraries.
15192 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 ;;
15195 m68k)
15196 library_names_spec='$libname.ixlibrary $libname.a'
15197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15198 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'
15199 ;;
15200 esac
15201 ;;
15202
15203 beos*)
15204 library_names_spec='${libname}${shared_ext}'
15205 dynamic_linker="$host_os ld.so"
15206 shlibpath_var=LIBRARY_PATH
15207 ;;
15208
15209 bsdi[45]*)
15210 version_type=linux # correct to gnu/linux during the next big refactor
15211 need_version=no
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15218 # the default ld.so.conf also contains /usr/contrib/lib and
15219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15220 # libtool to hard-code these into programs
15221 ;;
15222
15223 cygwin* | mingw* | pw32* | cegcc*)
15224 version_type=windows
15225 shrext_cmds=".dll"
15226 need_version=no
15227 need_lib_prefix=no
15228
15229 case $GCC,$cc_basename in
15230 yes,*)
15231 # gcc
15232 library_names_spec='$libname.dll.a'
15233 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15234 postinstall_cmds='base_file=`basename \${file}`~
15235 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15236 dldir=$destdir/`dirname \$dlpath`~
15237 test -d \$dldir || mkdir -p \$dldir~
15238 $install_prog $dir/$dlname \$dldir/$dlname~
15239 chmod a+x \$dldir/$dlname~
15240 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15241 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15242 fi'
15243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15244 dlpath=$dir/\$dldll~
15245 $RM \$dlpath'
15246 shlibpath_overrides_runpath=yes
15247
15248 case $host_os in
15249 cygwin*)
15250 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15251 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15252
15253 ;;
15254 mingw* | cegcc*)
15255 # MinGW DLLs use traditional 'lib' prefix
15256 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15257 ;;
15258 pw32*)
15259 # pw32 DLLs use 'pw' prefix rather than 'lib'
15260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261 ;;
15262 esac
15263 dynamic_linker='Win32 ld.exe'
15264 ;;
15265
15266 *,cl*)
15267 # Native MSVC
15268 libname_spec='$name'
15269 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270 library_names_spec='${libname}.dll.lib'
15271
15272 case $build_os in
15273 mingw*)
15274 sys_lib_search_path_spec=
15275 lt_save_ifs=$IFS
15276 IFS=';'
15277 for lt_path in $LIB
15278 do
15279 IFS=$lt_save_ifs
15280 # Let DOS variable expansion print the short 8.3 style file name.
15281 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15282 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15283 done
15284 IFS=$lt_save_ifs
15285 # Convert to MSYS style.
15286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15287 ;;
15288 cygwin*)
15289 # Convert to unix form, then to dos form, then back to unix form
15290 # but this time dos style (no spaces!) so that the unix form looks
15291 # like /cygdrive/c/PROGRA~1:/cygdr...
15292 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15293 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15294 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15295 ;;
15296 *)
15297 sys_lib_search_path_spec="$LIB"
15298 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15299 # It is most probably a Windows format PATH.
15300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15301 else
15302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15303 fi
15304 # FIXME: find the short name or the path components, as spaces are
15305 # common. (e.g. "Program Files" -> "PROGRA~1")
15306 ;;
15307 esac
15308
15309 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15310 postinstall_cmds='base_file=`basename \${file}`~
15311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15312 dldir=$destdir/`dirname \$dlpath`~
15313 test -d \$dldir || mkdir -p \$dldir~
15314 $install_prog $dir/$dlname \$dldir/$dlname'
15315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316 dlpath=$dir/\$dldll~
15317 $RM \$dlpath'
15318 shlibpath_overrides_runpath=yes
15319 dynamic_linker='Win32 link.exe'
15320 ;;
15321
15322 *)
15323 # Assume MSVC wrapper
15324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15325 dynamic_linker='Win32 ld.exe'
15326 ;;
15327 esac
15328 # FIXME: first we should search . and the directory the executable is in
15329 shlibpath_var=PATH
15330 ;;
15331
15332 darwin* | rhapsody*)
15333 dynamic_linker="$host_os dyld"
15334 version_type=darwin
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15338 soname_spec='${libname}${release}${major}$shared_ext'
15339 shlibpath_overrides_runpath=yes
15340 shlibpath_var=DYLD_LIBRARY_PATH
15341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15342
15343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15344 ;;
15345
15346 dgux*)
15347 version_type=linux # correct to gnu/linux during the next big refactor
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 ;;
15354
15355 freebsd* | dragonfly*)
15356 # DragonFly does not have aout. When/if they implement a new
15357 # versioning mechanism, adjust this.
15358 if test -x /usr/bin/objformat; then
15359 objformat=`/usr/bin/objformat`
15360 else
15361 case $host_os in
15362 freebsd[23].*) objformat=aout ;;
15363 *) objformat=elf ;;
15364 esac
15365 fi
15366 version_type=freebsd-$objformat
15367 case $version_type in
15368 freebsd-elf*)
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15370 need_version=no
15371 need_lib_prefix=no
15372 ;;
15373 freebsd-*)
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15375 need_version=yes
15376 ;;
15377 esac
15378 shlibpath_var=LD_LIBRARY_PATH
15379 case $host_os in
15380 freebsd2.*)
15381 shlibpath_overrides_runpath=yes
15382 ;;
15383 freebsd3.[01]* | freebsdelf3.[01]*)
15384 shlibpath_overrides_runpath=yes
15385 hardcode_into_libs=yes
15386 ;;
15387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15389 shlibpath_overrides_runpath=no
15390 hardcode_into_libs=yes
15391 ;;
15392 *) # from 4.6 on, and DragonFly
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 ;;
15396 esac
15397 ;;
15398
15399 gnu*)
15400 version_type=linux # correct to gnu/linux during the next big refactor
15401 need_lib_prefix=no
15402 need_version=no
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 shlibpath_overrides_runpath=no
15407 hardcode_into_libs=yes
15408 ;;
15409
15410 haiku*)
15411 version_type=linux # correct to gnu/linux during the next big refactor
15412 need_lib_prefix=no
15413 need_version=no
15414 dynamic_linker="$host_os runtime_loader"
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15420 hardcode_into_libs=yes
15421 ;;
15422
15423 hpux9* | hpux10* | hpux11*)
15424 # Give a soname corresponding to the major version so that dld.sl refuses to
15425 # link against other versions.
15426 version_type=sunos
15427 need_lib_prefix=no
15428 need_version=no
15429 case $host_cpu in
15430 ia64*)
15431 shrext_cmds='.so'
15432 hardcode_into_libs=yes
15433 dynamic_linker="$host_os dld.so"
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 if test "X$HPUX_IA64_MODE" = X32; then
15439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15440 else
15441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15442 fi
15443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15444 ;;
15445 hppa*64*)
15446 shrext_cmds='.sl'
15447 hardcode_into_libs=yes
15448 dynamic_linker="$host_os dld.sl"
15449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15455 ;;
15456 *)
15457 shrext_cmds='.sl'
15458 dynamic_linker="$host_os dld.sl"
15459 shlibpath_var=SHLIB_PATH
15460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 ;;
15464 esac
15465 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15466 postinstall_cmds='chmod 555 $lib'
15467 # or fails outright, so override atomically:
15468 install_override_mode=555
15469 ;;
15470
15471 interix[3-9]*)
15472 version_type=linux # correct to gnu/linux during the next big refactor
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 ;;
15482
15483 irix5* | irix6* | nonstopux*)
15484 case $host_os in
15485 nonstopux*) version_type=nonstopux ;;
15486 *)
15487 if test "$lt_cv_prog_gnu_ld" = yes; then
15488 version_type=linux # correct to gnu/linux during the next big refactor
15489 else
15490 version_type=irix
15491 fi ;;
15492 esac
15493 need_lib_prefix=no
15494 need_version=no
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497 case $host_os in
15498 irix5* | nonstopux*)
15499 libsuff= shlibsuff=
15500 ;;
15501 *)
15502 case $LD in # libtool.m4 will add one of these switches to LD
15503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504 libsuff= shlibsuff= libmagic=32-bit;;
15505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506 libsuff=32 shlibsuff=N32 libmagic=N32;;
15507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509 *) libsuff= shlibsuff= libmagic=never-match;;
15510 esac
15511 ;;
15512 esac
15513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514 shlibpath_overrides_runpath=no
15515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517 hardcode_into_libs=yes
15518 ;;
15519
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15522 dynamic_linker=no
15523 ;;
15524
15525 # This must be glibc/ELF.
15526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15527 version_type=linux # correct to gnu/linux during the next big refactor
15528 need_lib_prefix=no
15529 need_version=no
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535
15536 # Some binutils ld are patched to set DT_RUNPATH
15537 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15538 $as_echo_n "(cached) " >&6
15539 else
15540 lt_cv_shlibpath_overrides_runpath=no
15541 save_LDFLAGS=$LDFLAGS
15542 save_libdir=$libdir
15543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547
15548 int
15549 main ()
15550 {
15551
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 if ac_fn_cxx_try_link "$LINENO"; then :
15557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15558 lt_cv_shlibpath_overrides_runpath=yes
15559 fi
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
15563 LDFLAGS=$save_LDFLAGS
15564 libdir=$save_libdir
15565
15566 fi
15567
15568 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15569
15570 # This implies no fast_install, which is unacceptable.
15571 # Some rework will be needed to allow for fast_install
15572 # before this can be enabled.
15573 hardcode_into_libs=yes
15574
15575 # Append ld.so.conf contents to the search path
15576 if test -f /etc/ld.so.conf; then
15577 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' ' '`
15578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15579 fi
15580
15581 # We used to test for /lib/ld.so.1 and disable shared libraries on
15582 # powerpc, because MkLinux only supported shared libraries with the
15583 # GNU dynamic linker. Since this was broken with cross compilers,
15584 # most powerpc-linux boxes support dynamic linking these days and
15585 # people can always --disable-shared, the test was removed, and we
15586 # assume the GNU/Linux dynamic linker is in use.
15587 dynamic_linker='GNU/Linux ld.so'
15588 ;;
15589
15590 netbsd*)
15591 version_type=sunos
15592 need_lib_prefix=no
15593 need_version=no
15594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15597 dynamic_linker='NetBSD (a.out) ld.so'
15598 else
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 dynamic_linker='NetBSD ld.elf_so'
15602 fi
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15605 hardcode_into_libs=yes
15606 ;;
15607
15608 newsos6)
15609 version_type=linux # correct to gnu/linux during the next big refactor
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 shlibpath_overrides_runpath=yes
15613 ;;
15614
15615 *nto* | *qnx*)
15616 version_type=qnx
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=no
15623 hardcode_into_libs=yes
15624 dynamic_linker='ldqnx.so'
15625 ;;
15626
15627 openbsd*)
15628 version_type=sunos
15629 sys_lib_dlsearch_path_spec="/usr/lib"
15630 need_lib_prefix=no
15631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15632 case $host_os in
15633 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15634 *) need_version=no ;;
15635 esac
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 case $host_os in
15641 openbsd2.[89] | openbsd2.[89].*)
15642 shlibpath_overrides_runpath=no
15643 ;;
15644 *)
15645 shlibpath_overrides_runpath=yes
15646 ;;
15647 esac
15648 else
15649 shlibpath_overrides_runpath=yes
15650 fi
15651 ;;
15652
15653 os2*)
15654 libname_spec='$name'
15655 shrext_cmds=".dll"
15656 need_lib_prefix=no
15657 library_names_spec='$libname${shared_ext} $libname.a'
15658 dynamic_linker='OS/2 ld.exe'
15659 shlibpath_var=LIBPATH
15660 ;;
15661
15662 osf3* | osf4* | osf5*)
15663 version_type=osf
15664 need_lib_prefix=no
15665 need_version=no
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15671 ;;
15672
15673 rdos*)
15674 dynamic_linker=no
15675 ;;
15676
15677 solaris*)
15678 version_type=linux # correct to gnu/linux during the next big refactor
15679 need_lib_prefix=no
15680 need_version=no
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=yes
15685 hardcode_into_libs=yes
15686 # ldd complains unless libraries are executable
15687 postinstall_cmds='chmod +x $lib'
15688 ;;
15689
15690 sunos4*)
15691 version_type=sunos
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 shlibpath_overrides_runpath=yes
15696 if test "$with_gnu_ld" = yes; then
15697 need_lib_prefix=no
15698 fi
15699 need_version=yes
15700 ;;
15701
15702 sysv4 | sysv4.3*)
15703 version_type=linux # correct to gnu/linux during the next big refactor
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 case $host_vendor in
15708 sni)
15709 shlibpath_overrides_runpath=no
15710 need_lib_prefix=no
15711 runpath_var=LD_RUN_PATH
15712 ;;
15713 siemens)
15714 need_lib_prefix=no
15715 ;;
15716 motorola)
15717 need_lib_prefix=no
15718 need_version=no
15719 shlibpath_overrides_runpath=no
15720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15721 ;;
15722 esac
15723 ;;
15724
15725 sysv4*MP*)
15726 if test -d /usr/nec ;then
15727 version_type=linux # correct to gnu/linux during the next big refactor
15728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15729 soname_spec='$libname${shared_ext}.$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 fi
15732 ;;
15733
15734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15735 version_type=freebsd-elf
15736 need_lib_prefix=no
15737 need_version=no
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=yes
15742 hardcode_into_libs=yes
15743 if test "$with_gnu_ld" = yes; then
15744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15745 else
15746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15747 case $host_os in
15748 sco3.2v5*)
15749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15750 ;;
15751 esac
15752 fi
15753 sys_lib_dlsearch_path_spec='/usr/lib'
15754 ;;
15755
15756 tpf*)
15757 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15758 version_type=linux # correct to gnu/linux during the next big refactor
15759 need_lib_prefix=no
15760 need_version=no
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15765 ;;
15766
15767 uts4*)
15768 version_type=linux # correct to gnu/linux during the next big refactor
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 ;;
15773
15774 *)
15775 dynamic_linker=no
15776 ;;
15777 esac
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15779 $as_echo "$dynamic_linker" >&6; }
15780 test "$dynamic_linker" = no && can_build_shared=no
15781
15782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15783 if test "$GCC" = yes; then
15784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15785 fi
15786
15787 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15789 fi
15790 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15791 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15792 fi
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15832 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15833 hardcode_action_CXX=
15834 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15835 test -n "$runpath_var_CXX" ||
15836 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15837
15838 # We can hardcode non-existent directories.
15839 if test "$hardcode_direct_CXX" != no &&
15840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15841 # have to relink, otherwise we might link with an installed library
15842 # when we should be linking with a yet-to-be-installed one
15843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15844 test "$hardcode_minus_L_CXX" != no; then
15845 # Linking always hardcodes the temporary library directory.
15846 hardcode_action_CXX=relink
15847 else
15848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15849 hardcode_action_CXX=immediate
15850 fi
15851 else
15852 # We cannot hardcode anything, or else we can only hardcode existing
15853 # directories.
15854 hardcode_action_CXX=unsupported
15855 fi
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15857 $as_echo "$hardcode_action_CXX" >&6; }
15858
15859 if test "$hardcode_action_CXX" = relink ||
15860 test "$inherit_rpath_CXX" = yes; then
15861 # Fast installation is not supported
15862 enable_fast_install=no
15863 elif test "$shlibpath_overrides_runpath" = yes ||
15864 test "$enable_shared" = no; then
15865 # Fast installation is not necessary
15866 enable_fast_install=needless
15867 fi
15868
15869
15870
15871
15872
15873
15874
15875 fi # test -n "$compiler"
15876
15877 CC=$lt_save_CC
15878 CFLAGS=$lt_save_CFLAGS
15879 LDCXX=$LD
15880 LD=$lt_save_LD
15881 GCC=$lt_save_GCC
15882 with_gnu_ld=$lt_save_with_gnu_ld
15883 lt_cv_path_LDCXX=$lt_cv_path_LD
15884 lt_cv_path_LD=$lt_save_path_LD
15885 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15886 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15887 fi # test "$_lt_caught_CXX_error" != yes
15888
15889 ac_ext=c
15890 ac_cpp='$CPP $CPPFLAGS'
15891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909 ac_config_commands="$ac_config_commands libtool"
15910
15911
15912
15913
15914 # Only expand once:
15915
15916
15917
15918 ac_ext=cpp
15919 ac_cpp='$CXXCPP $CPPFLAGS'
15920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15923
15924
15925
15926
15927
15928
15929
15930
15931 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15932 if test -n "$ac_tool_prefix"; then
15933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15934 set dummy ${ac_tool_prefix}pkg-config; 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_PKG_CONFIG+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 case $PKG_CONFIG in
15941 [\\/]* | ?:[\\/]*)
15942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15964 if test -n "$PKG_CONFIG"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15966 $as_echo "$PKG_CONFIG" >&6; }
15967 else
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15970 fi
15971
15972
15973 fi
15974 if test -z "$ac_cv_path_PKG_CONFIG"; then
15975 ac_pt_PKG_CONFIG=$PKG_CONFIG
15976 # Extract the first word of "pkg-config", so it can be a program name with args.
15977 set dummy pkg-config; ac_word=$2
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15979 $as_echo_n "checking for $ac_word... " >&6; }
15980 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15981 $as_echo_n "(cached) " >&6
15982 else
15983 case $ac_pt_PKG_CONFIG in
15984 [\\/]* | ?:[\\/]*)
15985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15986 ;;
15987 *)
15988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989 for as_dir in $PATH
15990 do
15991 IFS=$as_save_IFS
15992 test -z "$as_dir" && as_dir=.
15993 for ac_exec_ext in '' $ac_executable_extensions; do
15994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15997 break 2
15998 fi
15999 done
16000 done
16001 IFS=$as_save_IFS
16002
16003 ;;
16004 esac
16005 fi
16006 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16007 if test -n "$ac_pt_PKG_CONFIG"; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16009 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16010 else
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012 $as_echo "no" >&6; }
16013 fi
16014
16015 if test "x$ac_pt_PKG_CONFIG" = x; then
16016 PKG_CONFIG=""
16017 else
16018 case $cross_compiling:$ac_tool_warned in
16019 yes:)
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16022 ac_tool_warned=yes ;;
16023 esac
16024 PKG_CONFIG=$ac_pt_PKG_CONFIG
16025 fi
16026 else
16027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16028 fi
16029
16030 fi
16031 if test -n "$PKG_CONFIG"; then
16032 _pkg_min_version=0.22
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16034 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16035 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16037 $as_echo "yes" >&6; }
16038 else
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16041 PKG_CONFIG=""
16042 fi
16043 fi
16044
16045 # Extract the first word of "git", so it can be a program name with args.
16046 set dummy git; ac_word=$2
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048 $as_echo_n "checking for $ac_word... " >&6; }
16049 if ${ac_cv_path_GIT+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 case $GIT in
16053 [\\/]* | ?:[\\/]*)
16054 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16055 ;;
16056 *)
16057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16058 for as_dir in $PATH
16059 do
16060 IFS=$as_save_IFS
16061 test -z "$as_dir" && as_dir=.
16062 for ac_exec_ext in '' $ac_executable_extensions; do
16063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16064 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16066 break 2
16067 fi
16068 done
16069 done
16070 IFS=$as_save_IFS
16071
16072 ;;
16073 esac
16074 fi
16075 GIT=$ac_cv_path_GIT
16076 if test -n "$GIT"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16078 $as_echo "$GIT" >&6; }
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082 fi
16083
16084
16085 # Extract the first word of "time", so it can be a program name with args.
16086 set dummy time; ac_word=$2
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16088 $as_echo_n "checking for $ac_word... " >&6; }
16089 if ${ac_cv_path_TIME+:} false; then :
16090 $as_echo_n "(cached) " >&6
16091 else
16092 case $TIME in
16093 [\\/]* | ?:[\\/]*)
16094 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16095 ;;
16096 *)
16097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $PATH
16099 do
16100 IFS=$as_save_IFS
16101 test -z "$as_dir" && as_dir=.
16102 for ac_exec_ext in '' $ac_executable_extensions; do
16103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16106 break 2
16107 fi
16108 done
16109 done
16110 IFS=$as_save_IFS
16111
16112 ;;
16113 esac
16114 fi
16115 TIME=$ac_cv_path_TIME
16116 if test -n "$TIME"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16118 $as_echo "$TIME" >&6; }
16119 else
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121 $as_echo "no" >&6; }
16122 fi
16123
16124
16125
16126
16127
16128
16129
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16131 $as_echo_n "checking for bison >= 2.3... " >&6; }
16132 if test -z "$BISON"; then
16133 ac_path_BISON_found=false
16134 # Loop through the user's path and test for each of PROGNAME-LIST
16135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136 for as_dir in $PATH
16137 do
16138 IFS=$as_save_IFS
16139 test -z "$as_dir" && as_dir=.
16140 for ac_prog in bison; do
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16143 as_fn_executable_p "$ac_path_BISON" || continue
16144 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16145 if ${version:+false} :; then :
16146
16147 else
16148 as_awk_strverscmp='
16149 # Use only awk features that work with 7th edition Unix awk (1978).
16150 # My, what an old awk you have, Mr. Solaris!
16151 END {
16152 while (length(v1) && length(v2)) {
16153 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16154 # Normally this is a single character, but if v1 and v2 contain digits,
16155 # compare them as integers and fractions as strverscmp does.
16156 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16157 # Split v1 and v2 into their leading digit string components d1 and d2,
16158 # and advance v1 and v2 past the leading digit strings.
16159 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16160 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16161 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16162 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16163 if (d1 ~ /^0/) {
16164 if (d2 ~ /^0/) {
16165 # Compare two fractions.
16166 while (d1 ~ /^0/ && d2 ~ /^0/) {
16167 d1 = substr(d1, 2); len1--
16168 d2 = substr(d2, 2); len2--
16169 }
16170 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16171 # The two components differ in length, and the common prefix
16172 # contains only leading zeros. Consider the longer to be less.
16173 d1 = -len1
16174 d2 = -len2
16175 } else {
16176 # Otherwise, compare as strings.
16177 d1 = "x" d1
16178 d2 = "x" d2
16179 }
16180 } else {
16181 # A fraction is less than an integer.
16182 exit 1
16183 }
16184 } else {
16185 if (d2 ~ /^0/) {
16186 # An integer is greater than a fraction.
16187 exit 2
16188 } else {
16189 # Compare two integers.
16190 d1 += 0
16191 d2 += 0
16192 }
16193 }
16194 } else {
16195 # The normal case, without worrying about digits.
16196 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16197 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16198 }
16199 if (d1 < d2) exit 1
16200 if (d1 > d2) exit 2
16201 }
16202 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16203 # which mishandles some comparisons of empty strings to integers.
16204 if (length(v2)) exit 1
16205 if (length(v1)) exit 2
16206 }
16207 '
16208 as_arg_v1=$version
16209 as_arg_v2=2.3
16210 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16211 case $? in #(
16212 1) :
16213 ;; #(
16214 0) :
16215 ac_cv_path_BISON=$ac_path_BISON ;; #(
16216 2) :
16217 ac_cv_path_BISON=$ac_path_BISON ;; #(
16218 *) :
16219 ;;
16220 esac
16221 fi
16222
16223 $ac_path_BISON_found && break 3
16224 done
16225 done
16226 done
16227 IFS=$as_save_IFS
16228 if test -z "$ac_cv_path_BISON"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230 $as_echo "no" >&6; }
16231 fi
16232 else
16233 ac_cv_path_BISON=$BISON
16234 fi
16235
16236
16237 if true; then :
16238
16239 BISON=$ac_cv_path_BISON
16240
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16242 $as_echo "$BISON" >&6; }
16243
16244 else
16245 if true; then :
16246
16247 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16248
16249 else
16250
16251 BISON=:
16252
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254 $as_echo "no" >&6; }
16255
16256 fi
16257 fi
16258
16259
16260
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16263 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16264 if test -z "$FLEX"; then
16265 ac_path_FLEX_found=false
16266 # Loop through the user's path and test for each of PROGNAME-LIST
16267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16268 for as_dir in $PATH
16269 do
16270 IFS=$as_save_IFS
16271 test -z "$as_dir" && as_dir=.
16272 for ac_prog in flex; do
16273 for ac_exec_ext in '' $ac_executable_extensions; do
16274 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16275 as_fn_executable_p "$ac_path_FLEX" || continue
16276 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16277 if ${version:+false} :; then :
16278
16279 else
16280 as_arg_v1=$version
16281 as_arg_v2=2.5.33
16282 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16283 case $? in #(
16284 1) :
16285 ;; #(
16286 0) :
16287 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16288 2) :
16289 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16290 *) :
16291 ;;
16292 esac
16293 fi
16294
16295 $ac_path_FLEX_found && break 3
16296 done
16297 done
16298 done
16299 IFS=$as_save_IFS
16300 if test -z "$ac_cv_path_FLEX"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16303 fi
16304 else
16305 ac_cv_path_FLEX=$FLEX
16306 fi
16307
16308
16309 if true; then :
16310
16311 FLEX=$ac_cv_path_FLEX
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16314 $as_echo "$FLEX" >&6; }
16315
16316 else
16317 if true; then :
16318
16319 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16320
16321 else
16322
16323 FLEX=:
16324
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16326 $as_echo "no" >&6; }
16327
16328 fi
16329 fi
16330
16331
16332
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16335 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16336 if test -z "$GPERF"; then
16337 ac_path_GPERF_found=false
16338 # Loop through the user's path and test for each of PROGNAME-LIST
16339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16340 for as_dir in $PATH
16341 do
16342 IFS=$as_save_IFS
16343 test -z "$as_dir" && as_dir=.
16344 for ac_prog in gperf; do
16345 for ac_exec_ext in '' $ac_executable_extensions; do
16346 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16347 as_fn_executable_p "$ac_path_GPERF" || continue
16348 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16349 if ${version:+false} :; then :
16350
16351 else
16352 as_arg_v1=$version
16353 as_arg_v2=3.0.3
16354 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16355 case $? in #(
16356 1) :
16357 ;; #(
16358 0) :
16359 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16360 2) :
16361 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16362 *) :
16363 ;;
16364 esac
16365 fi
16366
16367 $ac_path_GPERF_found && break 3
16368 done
16369 done
16370 done
16371 IFS=$as_save_IFS
16372 if test -z "$ac_cv_path_GPERF"; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374 $as_echo "no" >&6; }
16375 fi
16376 else
16377 ac_cv_path_GPERF=$GPERF
16378 fi
16379
16380
16381 if true; then :
16382
16383 GPERF=$ac_cv_path_GPERF
16384
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16386 $as_echo "$GPERF" >&6; }
16387
16388 else
16389 if true; then :
16390
16391 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16392
16393 else
16394
16395 GPERF=:
16396
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16399
16400 fi
16401 fi
16402
16403
16404
16405
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16407 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16408 if test -z "$GNUTAR"; then
16409 ac_path_GNUTAR_found=false
16410 # Loop through the user's path and test for each of PROGNAME-LIST
16411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16412 for as_dir in $PATH
16413 do
16414 IFS=$as_save_IFS
16415 test -z "$as_dir" && as_dir=.
16416 for ac_prog in tar gtar gnutar; do
16417 for ac_exec_ext in '' $ac_executable_extensions; do
16418 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16419 as_fn_executable_p "$ac_path_GNUTAR" || continue
16420 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16421 if ${version:+false} :; then :
16422
16423 else
16424 as_arg_v1=$version
16425 as_arg_v2=1.19
16426 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16427 case $? in #(
16428 1) :
16429 ;; #(
16430 0) :
16431 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16432 2) :
16433 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16434 *) :
16435 ;;
16436 esac
16437 fi
16438
16439 $ac_path_GNUTAR_found && break 3
16440 done
16441 done
16442 done
16443 IFS=$as_save_IFS
16444 if test -z "$ac_cv_path_GNUTAR"; then
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16447 fi
16448 else
16449 ac_cv_path_GNUTAR=$GNUTAR
16450 fi
16451
16452
16453 if true; then :
16454
16455 GNUTAR=$ac_cv_path_GNUTAR
16456
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16458 $as_echo "$GNUTAR" >&6; }
16459
16460 else
16461 if true; then :
16462
16463 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16464
16465 else
16466
16467 GNUTAR=:
16468
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16471
16472 fi
16473 fi
16474
16475
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16477 $as_echo_n "checking bison for %code{}... " >&6; }
16478 echo '%code{}%%_:' >conftest.y
16479 if $BISON conftest.y -o/dev/null 2>/dev/null; then
16480
16481 for element in Bison24; do
16482 haveit=
16483 for x in $CY_FILTERS; do
16484
16485 acl_save_prefix="$prefix"
16486 prefix="$acl_final_prefix"
16487 acl_save_exec_prefix="$exec_prefix"
16488 exec_prefix="$acl_final_exec_prefix"
16489 eval x=\"$x\"
16490 exec_prefix="$acl_save_exec_prefix"
16491 prefix="$acl_save_prefix"
16492
16493 if test "X$x" = "X$element"; then
16494 haveit=yes
16495 break
16496 fi
16497 done
16498 if test -z "$haveit"; then
16499 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16500 fi
16501 done
16502
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16504 $as_echo "yes" >&6; }
16505 else
16506
16507 for element in Bison23; do
16508 haveit=
16509 for x in $CY_FILTERS; do
16510
16511 acl_save_prefix="$prefix"
16512 prefix="$acl_final_prefix"
16513 acl_save_exec_prefix="$exec_prefix"
16514 exec_prefix="$acl_final_exec_prefix"
16515 eval x=\"$x\"
16516 exec_prefix="$acl_save_exec_prefix"
16517 prefix="$acl_save_prefix"
16518
16519 if test "X$x" = "X$element"; then
16520 haveit=yes
16521 break
16522 fi
16523 done
16524 if test -z "$haveit"; then
16525 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16526 fi
16527 done
16528
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 $as_echo "no" >&6; }
16531 fi
16532
16533 rm -f conftest.y
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544 if ${CFLAGS+:} false; then :
16545 case " $CFLAGS " in
16546 *" "*)
16547 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16548 (: CFLAGS already contains ) 2>&5
16549 ac_status=$?
16550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551 test $ac_status = 0; }
16552 ;;
16553 *)
16554 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16555 (: CFLAGS="$CFLAGS ") 2>&5
16556 ac_status=$?
16557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16558 test $ac_status = 0; }
16559 CFLAGS="$CFLAGS "
16560 ;;
16561 esac
16562 else
16563 CFLAGS=""
16564 fi
16565
16566 ac_ext=c
16567 ac_cpp='$CPP $CPPFLAGS'
16568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16571
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16573 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16574 if ${ac_cv_cflags_warn_all+:} false; then :
16575 $as_echo_n "(cached) " >&6
16576 else
16577 ac_cv_cflags_warn_all="no, unknown"
16578 ac_save_CFLAGS="$CFLAGS"
16579 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" #
16580 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16583
16584 int
16585 main ()
16586 {
16587
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_compile "$LINENO"; then :
16593 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 done
16597 CFLAGS="$ac_save_CFLAGS"
16598
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16601 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16602
16603 case ".$ac_cv_cflags_warn_all" in
16604 .ok|.ok,*) ;;
16605 .|.no|.no,*) ;;
16606 *) if ${CFLAGS+:} false; then :
16607 case " $CFLAGS " in
16608 *" $ac_cv_cflags_warn_all "*)
16609 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16610 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16611 ac_status=$?
16612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16613 test $ac_status = 0; }
16614 ;;
16615 *)
16616 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16617 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16618 ac_status=$?
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; }
16621 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16622 ;;
16623 esac
16624 else
16625 CFLAGS="$ac_cv_cflags_warn_all"
16626 fi
16627 ;;
16628 esac
16629
16630 ac_ext=cpp
16631 ac_cpp='$CXXCPP $CPPFLAGS'
16632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16635
16636
16637 ac_ext=cpp
16638 ac_cpp='$CXXCPP $CPPFLAGS'
16639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16642
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16644 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16645 if ${ac_cv_cxxflags_warn_all+:} false; then :
16646 $as_echo_n "(cached) " >&6
16647 else
16648 ac_cv_cxxflags_warn_all="no, unknown"
16649 ac_save_CXXFLAGS="$CXXFLAGS"
16650 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" #
16651 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654
16655 int
16656 main ()
16657 {
16658
16659 ;
16660 return 0;
16661 }
16662 _ACEOF
16663 if ac_fn_cxx_try_compile "$LINENO"; then :
16664 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16665 fi
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 done
16668 CXXFLAGS="$ac_save_CXXFLAGS"
16669
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16672 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16673
16674 case ".$ac_cv_cxxflags_warn_all" in
16675 .ok|.ok,*) ;;
16676 .|.no|.no,*) ;;
16677 *) if ${CXXFLAGS+:} false; then :
16678 case " $CXXFLAGS " in
16679 *" $ac_cv_cxxflags_warn_all "*)
16680 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16681 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; }
16685 ;;
16686 *)
16687 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16688 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16689 ac_status=$?
16690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16691 test $ac_status = 0; }
16692 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16693 ;;
16694 esac
16695 else
16696 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16697 fi
16698 ;;
16699 esac
16700
16701 ac_ext=cpp
16702 ac_cpp='$CXXCPP $CPPFLAGS'
16703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16706
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16709 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16710 if ${ac_cv_cxxflags_warn_all+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 ac_cv_cxxflags_warn_all="no, unknown"
16714 ac_save_CXXFLAGS="$CXXFLAGS"
16715 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" #
16716 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719
16720 int
16721 main ()
16722 {
16723
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 if ac_fn_cxx_try_compile "$LINENO"; then :
16729 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16730 fi
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732 done
16733 CXXFLAGS="$ac_save_CXXFLAGS"
16734
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16737 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16738
16739 case ".$ac_cv_cxxflags_warn_all" in
16740 .ok|.ok,*) ;;
16741 .|.no|.no,*) ;;
16742 *) if ${CXXFLAGS+:} false; then :
16743 case " $CXXFLAGS " in
16744 *" $ac_cv_cxxflags_warn_all "*)
16745 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16746 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16747 ac_status=$?
16748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749 test $ac_status = 0; }
16750 ;;
16751 *)
16752 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16753 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16754 ac_status=$?
16755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756 test $ac_status = 0; }
16757 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16758 ;;
16759 esac
16760 else
16761 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16762 fi
16763 ;;
16764 esac
16765
16766
16767
16768
16769
16770 ac_ext=c
16771 ac_cpp='$CPP $CPPFLAGS'
16772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16777 $as_echo_n "checking for cc -Werror... " >&6; }
16778
16779 cy_save=$CFLAGS
16780
16781 for element in -Werror; do
16782 haveit=
16783 for x in $CFLAGS; do
16784
16785 acl_save_prefix="$prefix"
16786 prefix="$acl_final_prefix"
16787 acl_save_exec_prefix="$exec_prefix"
16788 exec_prefix="$acl_final_exec_prefix"
16789 eval x=\"$x\"
16790 exec_prefix="$acl_save_exec_prefix"
16791 prefix="$acl_save_prefix"
16792
16793 if test "X$x" = "X$element"; then
16794 haveit=yes
16795 break
16796 fi
16797 done
16798 if test -z "$haveit"; then
16799 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16800 fi
16801 done
16802
16803
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806
16807 _ACEOF
16808 if ac_fn_c_try_compile "$LINENO"; then :
16809 cy_good=1
16810 else
16811 cy_good=0
16812 fi
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814
16815 CFLAGS=$cy_save
16816 if test "x$cy_good" = x1; then :
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818 $as_echo "yes" >&6; }
16819
16820 for element in -Werror; do
16821 haveit=
16822 for x in $CFLAGS; do
16823
16824 acl_save_prefix="$prefix"
16825 prefix="$acl_final_prefix"
16826 acl_save_exec_prefix="$exec_prefix"
16827 exec_prefix="$acl_final_exec_prefix"
16828 eval x=\"$x\"
16829 exec_prefix="$acl_save_exec_prefix"
16830 prefix="$acl_save_prefix"
16831
16832 if test "X$x" = "X$element"; then
16833 haveit=yes
16834 break
16835 fi
16836 done
16837 if test -z "$haveit"; then
16838 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16839 fi
16840 done
16841
16842
16843 else
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845 $as_echo "no" >&6; }
16846 fi
16847
16848 ac_ext=cpp
16849 ac_cpp='$CXXCPP $CPPFLAGS'
16850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16853
16854
16855
16856 ac_ext=cpp
16857 ac_cpp='$CXXCPP $CPPFLAGS'
16858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16861
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16863 $as_echo_n "checking for c++ -Werror... " >&6; }
16864
16865 cy_save=$CXXFLAGS
16866
16867 for element in -Werror; do
16868 haveit=
16869 for x in $CXXFLAGS; do
16870
16871 acl_save_prefix="$prefix"
16872 prefix="$acl_final_prefix"
16873 acl_save_exec_prefix="$exec_prefix"
16874 exec_prefix="$acl_final_exec_prefix"
16875 eval x=\"$x\"
16876 exec_prefix="$acl_save_exec_prefix"
16877 prefix="$acl_save_prefix"
16878
16879 if test "X$x" = "X$element"; then
16880 haveit=yes
16881 break
16882 fi
16883 done
16884 if test -z "$haveit"; then
16885 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16886 fi
16887 done
16888
16889
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892
16893 _ACEOF
16894 if ac_fn_cxx_try_compile "$LINENO"; then :
16895 cy_good=1
16896 else
16897 cy_good=0
16898 fi
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900
16901 CXXFLAGS=$cy_save
16902 if test "x$cy_good" = x1; then :
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16904 $as_echo "yes" >&6; }
16905
16906 for element in -Werror; do
16907 haveit=
16908 for x in $CXXFLAGS; do
16909
16910 acl_save_prefix="$prefix"
16911 prefix="$acl_final_prefix"
16912 acl_save_exec_prefix="$exec_prefix"
16913 exec_prefix="$acl_final_exec_prefix"
16914 eval x=\"$x\"
16915 exec_prefix="$acl_save_exec_prefix"
16916 prefix="$acl_save_prefix"
16917
16918 if test "X$x" = "X$element"; then
16919 haveit=yes
16920 break
16921 fi
16922 done
16923 if test -z "$haveit"; then
16924 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16925 fi
16926 done
16927
16928
16929 else
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16931 $as_echo "no" >&6; }
16932 fi
16933
16934 ac_ext=cpp
16935 ac_cpp='$CXXCPP $CPPFLAGS'
16936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16939
16940
16941
16942 ac_ext=mm
16943 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16944 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16945 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16946 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16947
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16949 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
16950
16951 cy_save=$OBJCXXFLAGS
16952
16953 for element in -Werror; do
16954 haveit=
16955 for x in $OBJCXXFLAGS; do
16956
16957 acl_save_prefix="$prefix"
16958 prefix="$acl_final_prefix"
16959 acl_save_exec_prefix="$exec_prefix"
16960 exec_prefix="$acl_final_exec_prefix"
16961 eval x=\"$x\"
16962 exec_prefix="$acl_save_exec_prefix"
16963 prefix="$acl_save_prefix"
16964
16965 if test "X$x" = "X$element"; then
16966 haveit=yes
16967 break
16968 fi
16969 done
16970 if test -z "$haveit"; then
16971 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16972 fi
16973 done
16974
16975
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978
16979 _ACEOF
16980 if ac_fn_objcxx_try_compile "$LINENO"; then :
16981 cy_good=1
16982 else
16983 cy_good=0
16984 fi
16985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16986
16987 OBJCXXFLAGS=$cy_save
16988 if test "x$cy_good" = x1; then :
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16990 $as_echo "yes" >&6; }
16991
16992 for element in -Werror; do
16993 haveit=
16994 for x in $OBJCXXFLAGS; do
16995
16996 acl_save_prefix="$prefix"
16997 prefix="$acl_final_prefix"
16998 acl_save_exec_prefix="$exec_prefix"
16999 exec_prefix="$acl_final_exec_prefix"
17000 eval x=\"$x\"
17001 exec_prefix="$acl_save_exec_prefix"
17002 prefix="$acl_save_prefix"
17003
17004 if test "X$x" = "X$element"; then
17005 haveit=yes
17006 break
17007 fi
17008 done
17009 if test -z "$haveit"; then
17010 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17011 fi
17012 done
17013
17014
17015 else
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017 $as_echo "no" >&6; }
17018 fi
17019
17020 ac_ext=cpp
17021 ac_cpp='$CXXCPP $CPPFLAGS'
17022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17025
17026
17027
17028
17029
17030
17031 ac_ext=c
17032 ac_cpp='$CPP $CPPFLAGS'
17033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17036
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17038 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17039
17040 cy_save=$CFLAGS
17041
17042 for element in -Wno-deprecated-declarations; do
17043 haveit=
17044 for x in $CFLAGS; do
17045
17046 acl_save_prefix="$prefix"
17047 prefix="$acl_final_prefix"
17048 acl_save_exec_prefix="$exec_prefix"
17049 exec_prefix="$acl_final_exec_prefix"
17050 eval x=\"$x\"
17051 exec_prefix="$acl_save_exec_prefix"
17052 prefix="$acl_save_prefix"
17053
17054 if test "X$x" = "X$element"; then
17055 haveit=yes
17056 break
17057 fi
17058 done
17059 if test -z "$haveit"; then
17060 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17061 fi
17062 done
17063
17064
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067
17068 _ACEOF
17069 if ac_fn_c_try_compile "$LINENO"; then :
17070 cy_good=1
17071 else
17072 cy_good=0
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17075
17076 CFLAGS=$cy_save
17077 if test "x$cy_good" = x1; then :
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17079 $as_echo "yes" >&6; }
17080
17081 for element in -Wno-deprecated-declarations; do
17082 haveit=
17083 for x in $CFLAGS; do
17084
17085 acl_save_prefix="$prefix"
17086 prefix="$acl_final_prefix"
17087 acl_save_exec_prefix="$exec_prefix"
17088 exec_prefix="$acl_final_exec_prefix"
17089 eval x=\"$x\"
17090 exec_prefix="$acl_save_exec_prefix"
17091 prefix="$acl_save_prefix"
17092
17093 if test "X$x" = "X$element"; then
17094 haveit=yes
17095 break
17096 fi
17097 done
17098 if test -z "$haveit"; then
17099 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17100 fi
17101 done
17102
17103
17104 else
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17106 $as_echo "no" >&6; }
17107 fi
17108
17109 ac_ext=cpp
17110 ac_cpp='$CXXCPP $CPPFLAGS'
17111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17114
17115
17116
17117 ac_ext=cpp
17118 ac_cpp='$CXXCPP $CPPFLAGS'
17119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17122
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17124 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17125
17126 cy_save=$CXXFLAGS
17127
17128 for element in -Wno-deprecated-declarations; do
17129 haveit=
17130 for x in $CXXFLAGS; do
17131
17132 acl_save_prefix="$prefix"
17133 prefix="$acl_final_prefix"
17134 acl_save_exec_prefix="$exec_prefix"
17135 exec_prefix="$acl_final_exec_prefix"
17136 eval x=\"$x\"
17137 exec_prefix="$acl_save_exec_prefix"
17138 prefix="$acl_save_prefix"
17139
17140 if test "X$x" = "X$element"; then
17141 haveit=yes
17142 break
17143 fi
17144 done
17145 if test -z "$haveit"; then
17146 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17147 fi
17148 done
17149
17150
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17153
17154 _ACEOF
17155 if ac_fn_cxx_try_compile "$LINENO"; then :
17156 cy_good=1
17157 else
17158 cy_good=0
17159 fi
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161
17162 CXXFLAGS=$cy_save
17163 if test "x$cy_good" = x1; then :
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17165 $as_echo "yes" >&6; }
17166
17167 for element in -Wno-deprecated-declarations; do
17168 haveit=
17169 for x in $CXXFLAGS; do
17170
17171 acl_save_prefix="$prefix"
17172 prefix="$acl_final_prefix"
17173 acl_save_exec_prefix="$exec_prefix"
17174 exec_prefix="$acl_final_exec_prefix"
17175 eval x=\"$x\"
17176 exec_prefix="$acl_save_exec_prefix"
17177 prefix="$acl_save_prefix"
17178
17179 if test "X$x" = "X$element"; then
17180 haveit=yes
17181 break
17182 fi
17183 done
17184 if test -z "$haveit"; then
17185 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17186 fi
17187 done
17188
17189
17190 else
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192 $as_echo "no" >&6; }
17193 fi
17194
17195 ac_ext=cpp
17196 ac_cpp='$CXXCPP $CPPFLAGS'
17197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17200
17201
17202
17203 ac_ext=mm
17204 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17205 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17206 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17207 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17208
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17210 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17211
17212 cy_save=$OBJCXXFLAGS
17213
17214 for element in -Wno-deprecated-declarations; do
17215 haveit=
17216 for x in $OBJCXXFLAGS; do
17217
17218 acl_save_prefix="$prefix"
17219 prefix="$acl_final_prefix"
17220 acl_save_exec_prefix="$exec_prefix"
17221 exec_prefix="$acl_final_exec_prefix"
17222 eval x=\"$x\"
17223 exec_prefix="$acl_save_exec_prefix"
17224 prefix="$acl_save_prefix"
17225
17226 if test "X$x" = "X$element"; then
17227 haveit=yes
17228 break
17229 fi
17230 done
17231 if test -z "$haveit"; then
17232 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17233 fi
17234 done
17235
17236
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17239
17240 _ACEOF
17241 if ac_fn_objcxx_try_compile "$LINENO"; then :
17242 cy_good=1
17243 else
17244 cy_good=0
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247
17248 OBJCXXFLAGS=$cy_save
17249 if test "x$cy_good" = x1; then :
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17251 $as_echo "yes" >&6; }
17252
17253 for element in -Wno-deprecated-declarations; do
17254 haveit=
17255 for x in $OBJCXXFLAGS; do
17256
17257 acl_save_prefix="$prefix"
17258 prefix="$acl_final_prefix"
17259 acl_save_exec_prefix="$exec_prefix"
17260 exec_prefix="$acl_final_exec_prefix"
17261 eval x=\"$x\"
17262 exec_prefix="$acl_save_exec_prefix"
17263 prefix="$acl_save_prefix"
17264
17265 if test "X$x" = "X$element"; then
17266 haveit=yes
17267 break
17268 fi
17269 done
17270 if test -z "$haveit"; then
17271 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17272 fi
17273 done
17274
17275
17276 else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17279 fi
17280
17281 ac_ext=cpp
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17286
17287
17288
17289
17290
17291
17292 ac_ext=c
17293 ac_cpp='$CPP $CPPFLAGS'
17294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17297
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17299 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17300
17301 cy_save=$CFLAGS
17302
17303 for element in -Wno-dangling-else; do
17304 haveit=
17305 for x in $CFLAGS; do
17306
17307 acl_save_prefix="$prefix"
17308 prefix="$acl_final_prefix"
17309 acl_save_exec_prefix="$exec_prefix"
17310 exec_prefix="$acl_final_exec_prefix"
17311 eval x=\"$x\"
17312 exec_prefix="$acl_save_exec_prefix"
17313 prefix="$acl_save_prefix"
17314
17315 if test "X$x" = "X$element"; then
17316 haveit=yes
17317 break
17318 fi
17319 done
17320 if test -z "$haveit"; then
17321 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17322 fi
17323 done
17324
17325
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328
17329 _ACEOF
17330 if ac_fn_c_try_compile "$LINENO"; then :
17331 cy_good=1
17332 else
17333 cy_good=0
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336
17337 CFLAGS=$cy_save
17338 if test "x$cy_good" = x1; then :
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17340 $as_echo "yes" >&6; }
17341
17342 for element in -Wno-dangling-else; do
17343 haveit=
17344 for x in $CFLAGS; do
17345
17346 acl_save_prefix="$prefix"
17347 prefix="$acl_final_prefix"
17348 acl_save_exec_prefix="$exec_prefix"
17349 exec_prefix="$acl_final_exec_prefix"
17350 eval x=\"$x\"
17351 exec_prefix="$acl_save_exec_prefix"
17352 prefix="$acl_save_prefix"
17353
17354 if test "X$x" = "X$element"; then
17355 haveit=yes
17356 break
17357 fi
17358 done
17359 if test -z "$haveit"; then
17360 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17361 fi
17362 done
17363
17364
17365 else
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 $as_echo "no" >&6; }
17368 fi
17369
17370 ac_ext=cpp
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17375
17376
17377
17378 ac_ext=cpp
17379 ac_cpp='$CXXCPP $CPPFLAGS'
17380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17385 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
17386
17387 cy_save=$CXXFLAGS
17388
17389 for element in -Wno-dangling-else; do
17390 haveit=
17391 for x in $CXXFLAGS; do
17392
17393 acl_save_prefix="$prefix"
17394 prefix="$acl_final_prefix"
17395 acl_save_exec_prefix="$exec_prefix"
17396 exec_prefix="$acl_final_exec_prefix"
17397 eval x=\"$x\"
17398 exec_prefix="$acl_save_exec_prefix"
17399 prefix="$acl_save_prefix"
17400
17401 if test "X$x" = "X$element"; then
17402 haveit=yes
17403 break
17404 fi
17405 done
17406 if test -z "$haveit"; then
17407 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17408 fi
17409 done
17410
17411
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414
17415 _ACEOF
17416 if ac_fn_cxx_try_compile "$LINENO"; then :
17417 cy_good=1
17418 else
17419 cy_good=0
17420 fi
17421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422
17423 CXXFLAGS=$cy_save
17424 if test "x$cy_good" = x1; then :
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426 $as_echo "yes" >&6; }
17427
17428 for element in -Wno-dangling-else; do
17429 haveit=
17430 for x in $CXXFLAGS; do
17431
17432 acl_save_prefix="$prefix"
17433 prefix="$acl_final_prefix"
17434 acl_save_exec_prefix="$exec_prefix"
17435 exec_prefix="$acl_final_exec_prefix"
17436 eval x=\"$x\"
17437 exec_prefix="$acl_save_exec_prefix"
17438 prefix="$acl_save_prefix"
17439
17440 if test "X$x" = "X$element"; then
17441 haveit=yes
17442 break
17443 fi
17444 done
17445 if test -z "$haveit"; then
17446 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17447 fi
17448 done
17449
17450
17451 else
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17453 $as_echo "no" >&6; }
17454 fi
17455
17456 ac_ext=cpp
17457 ac_cpp='$CXXCPP $CPPFLAGS'
17458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17461
17462
17463
17464 ac_ext=mm
17465 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17466 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17467 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17468 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17469
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17471 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17472
17473 cy_save=$OBJCXXFLAGS
17474
17475 for element in -Wno-dangling-else; do
17476 haveit=
17477 for x in $OBJCXXFLAGS; do
17478
17479 acl_save_prefix="$prefix"
17480 prefix="$acl_final_prefix"
17481 acl_save_exec_prefix="$exec_prefix"
17482 exec_prefix="$acl_final_exec_prefix"
17483 eval x=\"$x\"
17484 exec_prefix="$acl_save_exec_prefix"
17485 prefix="$acl_save_prefix"
17486
17487 if test "X$x" = "X$element"; then
17488 haveit=yes
17489 break
17490 fi
17491 done
17492 if test -z "$haveit"; then
17493 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17494 fi
17495 done
17496
17497
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500
17501 _ACEOF
17502 if ac_fn_objcxx_try_compile "$LINENO"; then :
17503 cy_good=1
17504 else
17505 cy_good=0
17506 fi
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508
17509 OBJCXXFLAGS=$cy_save
17510 if test "x$cy_good" = x1; then :
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17512 $as_echo "yes" >&6; }
17513
17514 for element in -Wno-dangling-else; do
17515 haveit=
17516 for x in $OBJCXXFLAGS; do
17517
17518 acl_save_prefix="$prefix"
17519 prefix="$acl_final_prefix"
17520 acl_save_exec_prefix="$exec_prefix"
17521 exec_prefix="$acl_final_exec_prefix"
17522 eval x=\"$x\"
17523 exec_prefix="$acl_save_exec_prefix"
17524 prefix="$acl_save_prefix"
17525
17526 if test "X$x" = "X$element"; then
17527 haveit=yes
17528 break
17529 fi
17530 done
17531 if test -z "$haveit"; then
17532 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17533 fi
17534 done
17535
17536
17537 else
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17540 fi
17541
17542 ac_ext=cpp
17543 ac_cpp='$CXXCPP $CPPFLAGS'
17544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17547
17548
17549
17550
17551
17552 ac_ext=c
17553 ac_cpp='$CPP $CPPFLAGS'
17554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17557
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17559 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17560
17561 cy_save=$CFLAGS
17562
17563 for element in -Wno-overloaded-virtual; do
17564 haveit=
17565 for x in $CFLAGS; do
17566
17567 acl_save_prefix="$prefix"
17568 prefix="$acl_final_prefix"
17569 acl_save_exec_prefix="$exec_prefix"
17570 exec_prefix="$acl_final_exec_prefix"
17571 eval x=\"$x\"
17572 exec_prefix="$acl_save_exec_prefix"
17573 prefix="$acl_save_prefix"
17574
17575 if test "X$x" = "X$element"; then
17576 haveit=yes
17577 break
17578 fi
17579 done
17580 if test -z "$haveit"; then
17581 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17582 fi
17583 done
17584
17585
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588
17589 _ACEOF
17590 if ac_fn_c_try_compile "$LINENO"; then :
17591 cy_good=1
17592 else
17593 cy_good=0
17594 fi
17595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596
17597 CFLAGS=$cy_save
17598 if test "x$cy_good" = x1; then :
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17600 $as_echo "yes" >&6; }
17601
17602 for element in -Wno-overloaded-virtual; do
17603 haveit=
17604 for x in $CFLAGS; do
17605
17606 acl_save_prefix="$prefix"
17607 prefix="$acl_final_prefix"
17608 acl_save_exec_prefix="$exec_prefix"
17609 exec_prefix="$acl_final_exec_prefix"
17610 eval x=\"$x\"
17611 exec_prefix="$acl_save_exec_prefix"
17612 prefix="$acl_save_prefix"
17613
17614 if test "X$x" = "X$element"; then
17615 haveit=yes
17616 break
17617 fi
17618 done
17619 if test -z "$haveit"; then
17620 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17621 fi
17622 done
17623
17624
17625 else
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17627 $as_echo "no" >&6; }
17628 fi
17629
17630 ac_ext=cpp
17631 ac_cpp='$CXXCPP $CPPFLAGS'
17632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17635
17636
17637
17638 ac_ext=cpp
17639 ac_cpp='$CXXCPP $CPPFLAGS'
17640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17643
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17645 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17646
17647 cy_save=$CXXFLAGS
17648
17649 for element in -Wno-overloaded-virtual; do
17650 haveit=
17651 for x in $CXXFLAGS; do
17652
17653 acl_save_prefix="$prefix"
17654 prefix="$acl_final_prefix"
17655 acl_save_exec_prefix="$exec_prefix"
17656 exec_prefix="$acl_final_exec_prefix"
17657 eval x=\"$x\"
17658 exec_prefix="$acl_save_exec_prefix"
17659 prefix="$acl_save_prefix"
17660
17661 if test "X$x" = "X$element"; then
17662 haveit=yes
17663 break
17664 fi
17665 done
17666 if test -z "$haveit"; then
17667 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17668 fi
17669 done
17670
17671
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17674
17675 _ACEOF
17676 if ac_fn_cxx_try_compile "$LINENO"; then :
17677 cy_good=1
17678 else
17679 cy_good=0
17680 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682
17683 CXXFLAGS=$cy_save
17684 if test "x$cy_good" = x1; then :
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686 $as_echo "yes" >&6; }
17687
17688 for element in -Wno-overloaded-virtual; do
17689 haveit=
17690 for x in $CXXFLAGS; do
17691
17692 acl_save_prefix="$prefix"
17693 prefix="$acl_final_prefix"
17694 acl_save_exec_prefix="$exec_prefix"
17695 exec_prefix="$acl_final_exec_prefix"
17696 eval x=\"$x\"
17697 exec_prefix="$acl_save_exec_prefix"
17698 prefix="$acl_save_prefix"
17699
17700 if test "X$x" = "X$element"; then
17701 haveit=yes
17702 break
17703 fi
17704 done
17705 if test -z "$haveit"; then
17706 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17707 fi
17708 done
17709
17710
17711 else
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17713 $as_echo "no" >&6; }
17714 fi
17715
17716 ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722
17723
17724 ac_ext=mm
17725 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17726 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17729
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17731 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17732
17733 cy_save=$OBJCXXFLAGS
17734
17735 for element in -Wno-overloaded-virtual; do
17736 haveit=
17737 for x in $OBJCXXFLAGS; do
17738
17739 acl_save_prefix="$prefix"
17740 prefix="$acl_final_prefix"
17741 acl_save_exec_prefix="$exec_prefix"
17742 exec_prefix="$acl_final_exec_prefix"
17743 eval x=\"$x\"
17744 exec_prefix="$acl_save_exec_prefix"
17745 prefix="$acl_save_prefix"
17746
17747 if test "X$x" = "X$element"; then
17748 haveit=yes
17749 break
17750 fi
17751 done
17752 if test -z "$haveit"; then
17753 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17754 fi
17755 done
17756
17757
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17760
17761 _ACEOF
17762 if ac_fn_objcxx_try_compile "$LINENO"; then :
17763 cy_good=1
17764 else
17765 cy_good=0
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768
17769 OBJCXXFLAGS=$cy_save
17770 if test "x$cy_good" = x1; then :
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17772 $as_echo "yes" >&6; }
17773
17774 for element in -Wno-overloaded-virtual; do
17775 haveit=
17776 for x in $OBJCXXFLAGS; do
17777
17778 acl_save_prefix="$prefix"
17779 prefix="$acl_final_prefix"
17780 acl_save_exec_prefix="$exec_prefix"
17781 exec_prefix="$acl_final_exec_prefix"
17782 eval x=\"$x\"
17783 exec_prefix="$acl_save_exec_prefix"
17784 prefix="$acl_save_prefix"
17785
17786 if test "X$x" = "X$element"; then
17787 haveit=yes
17788 break
17789 fi
17790 done
17791 if test -z "$haveit"; then
17792 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17793 fi
17794 done
17795
17796
17797 else
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799 $as_echo "no" >&6; }
17800 fi
17801
17802 ac_ext=cpp
17803 ac_cpp='$CXXCPP $CPPFLAGS'
17804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17807
17808
17809
17810
17811
17812 ac_ext=c
17813 ac_cpp='$CPP $CPPFLAGS'
17814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17817
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17819 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17820
17821 cy_save=$CFLAGS
17822
17823 for element in -Wno-parentheses; do
17824 haveit=
17825 for x in $CFLAGS; do
17826
17827 acl_save_prefix="$prefix"
17828 prefix="$acl_final_prefix"
17829 acl_save_exec_prefix="$exec_prefix"
17830 exec_prefix="$acl_final_exec_prefix"
17831 eval x=\"$x\"
17832 exec_prefix="$acl_save_exec_prefix"
17833 prefix="$acl_save_prefix"
17834
17835 if test "X$x" = "X$element"; then
17836 haveit=yes
17837 break
17838 fi
17839 done
17840 if test -z "$haveit"; then
17841 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17842 fi
17843 done
17844
17845
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17848
17849 _ACEOF
17850 if ac_fn_c_try_compile "$LINENO"; then :
17851 cy_good=1
17852 else
17853 cy_good=0
17854 fi
17855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17856
17857 CFLAGS=$cy_save
17858 if test "x$cy_good" = x1; then :
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17860 $as_echo "yes" >&6; }
17861
17862 for element in -Wno-parentheses; do
17863 haveit=
17864 for x in $CFLAGS; do
17865
17866 acl_save_prefix="$prefix"
17867 prefix="$acl_final_prefix"
17868 acl_save_exec_prefix="$exec_prefix"
17869 exec_prefix="$acl_final_exec_prefix"
17870 eval x=\"$x\"
17871 exec_prefix="$acl_save_exec_prefix"
17872 prefix="$acl_save_prefix"
17873
17874 if test "X$x" = "X$element"; then
17875 haveit=yes
17876 break
17877 fi
17878 done
17879 if test -z "$haveit"; then
17880 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17881 fi
17882 done
17883
17884
17885 else
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17888 fi
17889
17890 ac_ext=cpp
17891 ac_cpp='$CXXCPP $CPPFLAGS'
17892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17895
17896
17897
17898 ac_ext=cpp
17899 ac_cpp='$CXXCPP $CPPFLAGS'
17900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17903
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17905 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17906
17907 cy_save=$CXXFLAGS
17908
17909 for element in -Wno-parentheses; do
17910 haveit=
17911 for x in $CXXFLAGS; do
17912
17913 acl_save_prefix="$prefix"
17914 prefix="$acl_final_prefix"
17915 acl_save_exec_prefix="$exec_prefix"
17916 exec_prefix="$acl_final_exec_prefix"
17917 eval x=\"$x\"
17918 exec_prefix="$acl_save_exec_prefix"
17919 prefix="$acl_save_prefix"
17920
17921 if test "X$x" = "X$element"; then
17922 haveit=yes
17923 break
17924 fi
17925 done
17926 if test -z "$haveit"; then
17927 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17928 fi
17929 done
17930
17931
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934
17935 _ACEOF
17936 if ac_fn_cxx_try_compile "$LINENO"; then :
17937 cy_good=1
17938 else
17939 cy_good=0
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942
17943 CXXFLAGS=$cy_save
17944 if test "x$cy_good" = x1; then :
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17946 $as_echo "yes" >&6; }
17947
17948 for element in -Wno-parentheses; do
17949 haveit=
17950 for x in $CXXFLAGS; do
17951
17952 acl_save_prefix="$prefix"
17953 prefix="$acl_final_prefix"
17954 acl_save_exec_prefix="$exec_prefix"
17955 exec_prefix="$acl_final_exec_prefix"
17956 eval x=\"$x\"
17957 exec_prefix="$acl_save_exec_prefix"
17958 prefix="$acl_save_prefix"
17959
17960 if test "X$x" = "X$element"; then
17961 haveit=yes
17962 break
17963 fi
17964 done
17965 if test -z "$haveit"; then
17966 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17967 fi
17968 done
17969
17970
17971 else
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17974 fi
17975
17976 ac_ext=cpp
17977 ac_cpp='$CXXCPP $CPPFLAGS'
17978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17981
17982
17983
17984 ac_ext=mm
17985 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17986 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17987 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17988 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17989
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17991 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
17992
17993 cy_save=$OBJCXXFLAGS
17994
17995 for element in -Wno-parentheses; do
17996 haveit=
17997 for x in $OBJCXXFLAGS; do
17998
17999 acl_save_prefix="$prefix"
18000 prefix="$acl_final_prefix"
18001 acl_save_exec_prefix="$exec_prefix"
18002 exec_prefix="$acl_final_exec_prefix"
18003 eval x=\"$x\"
18004 exec_prefix="$acl_save_exec_prefix"
18005 prefix="$acl_save_prefix"
18006
18007 if test "X$x" = "X$element"; then
18008 haveit=yes
18009 break
18010 fi
18011 done
18012 if test -z "$haveit"; then
18013 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18014 fi
18015 done
18016
18017
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020
18021 _ACEOF
18022 if ac_fn_objcxx_try_compile "$LINENO"; then :
18023 cy_good=1
18024 else
18025 cy_good=0
18026 fi
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028
18029 OBJCXXFLAGS=$cy_save
18030 if test "x$cy_good" = x1; then :
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 $as_echo "yes" >&6; }
18033
18034 for element in -Wno-parentheses; do
18035 haveit=
18036 for x in $OBJCXXFLAGS; do
18037
18038 acl_save_prefix="$prefix"
18039 prefix="$acl_final_prefix"
18040 acl_save_exec_prefix="$exec_prefix"
18041 exec_prefix="$acl_final_exec_prefix"
18042 eval x=\"$x\"
18043 exec_prefix="$acl_save_exec_prefix"
18044 prefix="$acl_save_prefix"
18045
18046 if test "X$x" = "X$element"; then
18047 haveit=yes
18048 break
18049 fi
18050 done
18051 if test -z "$haveit"; then
18052 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18053 fi
18054 done
18055
18056
18057 else
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18059 $as_echo "no" >&6; }
18060 fi
18061
18062 ac_ext=cpp
18063 ac_cpp='$CXXCPP $CPPFLAGS'
18064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18067
18068
18069
18070
18071
18072 ac_ext=c
18073 ac_cpp='$CPP $CPPFLAGS'
18074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18079 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18080
18081 cy_save=$CFLAGS
18082
18083 for element in -Wno-unneeded-internal-declaration; do
18084 haveit=
18085 for x in $CFLAGS; do
18086
18087 acl_save_prefix="$prefix"
18088 prefix="$acl_final_prefix"
18089 acl_save_exec_prefix="$exec_prefix"
18090 exec_prefix="$acl_final_exec_prefix"
18091 eval x=\"$x\"
18092 exec_prefix="$acl_save_exec_prefix"
18093 prefix="$acl_save_prefix"
18094
18095 if test "X$x" = "X$element"; then
18096 haveit=yes
18097 break
18098 fi
18099 done
18100 if test -z "$haveit"; then
18101 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18102 fi
18103 done
18104
18105
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18108
18109 _ACEOF
18110 if ac_fn_c_try_compile "$LINENO"; then :
18111 cy_good=1
18112 else
18113 cy_good=0
18114 fi
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116
18117 CFLAGS=$cy_save
18118 if test "x$cy_good" = x1; then :
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18120 $as_echo "yes" >&6; }
18121
18122 for element in -Wno-unneeded-internal-declaration; do
18123 haveit=
18124 for x in $CFLAGS; do
18125
18126 acl_save_prefix="$prefix"
18127 prefix="$acl_final_prefix"
18128 acl_save_exec_prefix="$exec_prefix"
18129 exec_prefix="$acl_final_exec_prefix"
18130 eval x=\"$x\"
18131 exec_prefix="$acl_save_exec_prefix"
18132 prefix="$acl_save_prefix"
18133
18134 if test "X$x" = "X$element"; then
18135 haveit=yes
18136 break
18137 fi
18138 done
18139 if test -z "$haveit"; then
18140 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18141 fi
18142 done
18143
18144
18145 else
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18148 fi
18149
18150 ac_ext=cpp
18151 ac_cpp='$CXXCPP $CPPFLAGS'
18152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18155
18156
18157
18158 ac_ext=cpp
18159 ac_cpp='$CXXCPP $CPPFLAGS'
18160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18163
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18165 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18166
18167 cy_save=$CXXFLAGS
18168
18169 for element in -Wno-unneeded-internal-declaration; do
18170 haveit=
18171 for x in $CXXFLAGS; do
18172
18173 acl_save_prefix="$prefix"
18174 prefix="$acl_final_prefix"
18175 acl_save_exec_prefix="$exec_prefix"
18176 exec_prefix="$acl_final_exec_prefix"
18177 eval x=\"$x\"
18178 exec_prefix="$acl_save_exec_prefix"
18179 prefix="$acl_save_prefix"
18180
18181 if test "X$x" = "X$element"; then
18182 haveit=yes
18183 break
18184 fi
18185 done
18186 if test -z "$haveit"; then
18187 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18188 fi
18189 done
18190
18191
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194
18195 _ACEOF
18196 if ac_fn_cxx_try_compile "$LINENO"; then :
18197 cy_good=1
18198 else
18199 cy_good=0
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202
18203 CXXFLAGS=$cy_save
18204 if test "x$cy_good" = x1; then :
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18206 $as_echo "yes" >&6; }
18207
18208 for element in -Wno-unneeded-internal-declaration; do
18209 haveit=
18210 for x in $CXXFLAGS; do
18211
18212 acl_save_prefix="$prefix"
18213 prefix="$acl_final_prefix"
18214 acl_save_exec_prefix="$exec_prefix"
18215 exec_prefix="$acl_final_exec_prefix"
18216 eval x=\"$x\"
18217 exec_prefix="$acl_save_exec_prefix"
18218 prefix="$acl_save_prefix"
18219
18220 if test "X$x" = "X$element"; then
18221 haveit=yes
18222 break
18223 fi
18224 done
18225 if test -z "$haveit"; then
18226 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18227 fi
18228 done
18229
18230
18231 else
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18234 fi
18235
18236 ac_ext=cpp
18237 ac_cpp='$CXXCPP $CPPFLAGS'
18238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18241
18242
18243
18244 ac_ext=mm
18245 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18246 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18249
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18251 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18252
18253 cy_save=$OBJCXXFLAGS
18254
18255 for element in -Wno-unneeded-internal-declaration; do
18256 haveit=
18257 for x in $OBJCXXFLAGS; do
18258
18259 acl_save_prefix="$prefix"
18260 prefix="$acl_final_prefix"
18261 acl_save_exec_prefix="$exec_prefix"
18262 exec_prefix="$acl_final_exec_prefix"
18263 eval x=\"$x\"
18264 exec_prefix="$acl_save_exec_prefix"
18265 prefix="$acl_save_prefix"
18266
18267 if test "X$x" = "X$element"; then
18268 haveit=yes
18269 break
18270 fi
18271 done
18272 if test -z "$haveit"; then
18273 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18274 fi
18275 done
18276
18277
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280
18281 _ACEOF
18282 if ac_fn_objcxx_try_compile "$LINENO"; then :
18283 cy_good=1
18284 else
18285 cy_good=0
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288
18289 OBJCXXFLAGS=$cy_save
18290 if test "x$cy_good" = x1; then :
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18292 $as_echo "yes" >&6; }
18293
18294 for element in -Wno-unneeded-internal-declaration; do
18295 haveit=
18296 for x in $OBJCXXFLAGS; do
18297
18298 acl_save_prefix="$prefix"
18299 prefix="$acl_final_prefix"
18300 acl_save_exec_prefix="$exec_prefix"
18301 exec_prefix="$acl_final_exec_prefix"
18302 eval x=\"$x\"
18303 exec_prefix="$acl_save_exec_prefix"
18304 prefix="$acl_save_prefix"
18305
18306 if test "X$x" = "X$element"; then
18307 haveit=yes
18308 break
18309 fi
18310 done
18311 if test -z "$haveit"; then
18312 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18313 fi
18314 done
18315
18316
18317 else
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18319 $as_echo "no" >&6; }
18320 fi
18321
18322 ac_ext=cpp
18323 ac_cpp='$CXXCPP $CPPFLAGS'
18324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18327
18328
18329
18330
18331
18332
18333 for cy_arch in ppc ppc64 i386 x86_64 armv6; do
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18335 $as_echo_n "checking for -arch $cy_arch... " >&6; }
18336
18337 cy_save=$CXXFLAGS
18338
18339 for element in "-arch $cy_arch"; do
18340 haveit=
18341 for x in $CXXFLAGS; do
18342
18343 acl_save_prefix="$prefix"
18344 prefix="$acl_final_prefix"
18345 acl_save_exec_prefix="$exec_prefix"
18346 exec_prefix="$acl_final_exec_prefix"
18347 eval x=\"$x\"
18348 exec_prefix="$acl_save_exec_prefix"
18349 prefix="$acl_save_prefix"
18350
18351 if test "X$x" = "X$element"; then
18352 haveit=yes
18353 break
18354 fi
18355 done
18356 if test -z "$haveit"; then
18357 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18358 fi
18359 done
18360
18361
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364
18365 int
18366 main ()
18367 {
18368
18369 ;
18370 return 0;
18371 }
18372 _ACEOF
18373 if ac_fn_cxx_try_link "$LINENO"; then :
18374 cy_good=1
18375 else
18376 cy_good=0
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18380
18381 CXXFLAGS=$cy_save
18382 if test "x$cy_good" = x1; then :
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18384 $as_echo "yes" >&6; }
18385
18386 for element in "-arch $cy_arch"; do
18387 haveit=
18388 for x in $CY_ARCH; do
18389
18390 acl_save_prefix="$prefix"
18391 prefix="$acl_final_prefix"
18392 acl_save_exec_prefix="$exec_prefix"
18393 exec_prefix="$acl_final_exec_prefix"
18394 eval x=\"$x\"
18395 exec_prefix="$acl_save_exec_prefix"
18396 prefix="$acl_save_prefix"
18397
18398 if test "X$x" = "X$element"; then
18399 haveit=yes
18400 break
18401 fi
18402 done
18403 if test -z "$haveit"; then
18404 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18405 fi
18406 done
18407
18408
18409 else
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18411 $as_echo "no" >&6; }
18412 fi
18413
18414 done
18415
18416
18417
18418
18419
18420
18421 # Check whether --enable-javascript was given.
18422 if test "${enable_javascript+set}" = set; then :
18423 enableval=$enable_javascript;
18424 case $enableval in #(
18425 yes) :
18426
18427
18428
18429
18430 cy_save=$LIBS
18431 LIBS=
18432
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18434 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18435 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18436 $as_echo_n "(cached) " >&6
18437 else
18438
18439 ac_check_framework_save_LIBS=$LIBS
18440 LIBS="-framework JavaScriptCore $LIBS"
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18443
18444 #include <JavaScriptCore/JSBase.h>
18445
18446 int
18447 main ()
18448 {
18449
18450 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18451
18452 ;
18453 return 0;
18454 }
18455 _ACEOF
18456 if ac_fn_cxx_try_link "$LINENO"; then :
18457
18458 ac_cv_framework_JavaScriptCore=yes
18459
18460 else
18461 ac_cv_framework_JavaScriptCore=no
18462 fi
18463 rm -f core conftest.err conftest.$ac_objext \
18464 conftest$ac_exeext conftest.$ac_ext
18465 LIBS=$ac_check_framework_save_LIBS
18466
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18469 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18470 if test $ac_cv_framework_JavaScriptCore = yes; then :
18471
18472
18473 for element in "-framework JavaScriptCore"; do
18474 haveit=
18475 for x in $LIBS; do
18476
18477 acl_save_prefix="$prefix"
18478 prefix="$acl_final_prefix"
18479 acl_save_exec_prefix="$exec_prefix"
18480 exec_prefix="$acl_final_exec_prefix"
18481 eval x=\"$x\"
18482 exec_prefix="$acl_save_exec_prefix"
18483 prefix="$acl_save_prefix"
18484
18485 if test "X$x" = "X$element"; then
18486 haveit=yes
18487 break
18488 fi
18489 done
18490 if test -z "$haveit"; then
18491 LIBS="${LIBS}${LIBS:+ }$element"
18492 fi
18493 done
18494
18495
18496 CY_EXECUTE=1
18497
18498
18499
18500 else
18501
18502 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18503
18504 pkg_failed=no
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18506 $as_echo_n "checking for WEBKIT... " >&6; }
18507
18508 if test -n "$WEBKIT_CFLAGS"; then
18509 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18510 elif test -n "$PKG_CONFIG"; then
18511 if test -n "$PKG_CONFIG" && \
18512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18513 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18514 ac_status=$?
18515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18516 test $ac_status = 0; }; then
18517 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18518 else
18519 pkg_failed=yes
18520 fi
18521 else
18522 pkg_failed=untried
18523 fi
18524 if test -n "$WEBKIT_LIBS"; then
18525 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18526 elif test -n "$PKG_CONFIG"; then
18527 if test -n "$PKG_CONFIG" && \
18528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18529 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18530 ac_status=$?
18531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18532 test $ac_status = 0; }; then
18533 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18534 else
18535 pkg_failed=yes
18536 fi
18537 else
18538 pkg_failed=untried
18539 fi
18540
18541
18542
18543 if test $pkg_failed = yes; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18545 $as_echo "no" >&6; }
18546
18547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18548 _pkg_short_errors_supported=yes
18549 else
18550 _pkg_short_errors_supported=no
18551 fi
18552 if test $_pkg_short_errors_supported = yes; then
18553 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18554 else
18555 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18556 fi
18557 # Put the nasty error message in config.log where it belongs
18558 echo "$WEBKIT_PKG_ERRORS" >&5
18559
18560 :
18561 elif test $pkg_failed = untried; then
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18563 $as_echo "no" >&6; }
18564 :
18565 else
18566 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18567 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18569 $as_echo "yes" >&6; }
18570
18571 CY_EXECUTE=1
18572
18573
18574 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18575 haveit=
18576 for x in $CPPFLAGS; do
18577
18578 acl_save_prefix="$prefix"
18579 prefix="$acl_final_prefix"
18580 acl_save_exec_prefix="$exec_prefix"
18581 exec_prefix="$acl_final_exec_prefix"
18582 eval x=\"$x\"
18583 exec_prefix="$acl_save_exec_prefix"
18584 prefix="$acl_save_prefix"
18585
18586 if test "X$x" = "X$element"; then
18587 haveit=yes
18588 break
18589 fi
18590 done
18591 if test -z "$haveit"; then
18592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18593 fi
18594 done
18595
18596
18597 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18598 haveit=
18599 for x in $LIBS; do
18600
18601 acl_save_prefix="$prefix"
18602 prefix="$acl_final_prefix"
18603 acl_save_exec_prefix="$exec_prefix"
18604 exec_prefix="$acl_final_exec_prefix"
18605 eval x=\"$x\"
18606 exec_prefix="$acl_save_exec_prefix"
18607 prefix="$acl_save_prefix"
18608
18609 if test "X$x" = "X$element"; then
18610 haveit=yes
18611 break
18612 fi
18613 done
18614 if test -z "$haveit"; then
18615 LIBS="${LIBS}${LIBS:+ }$element"
18616 fi
18617 done
18618
18619
18620 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18621 done
18622
18623 fi
18624 LTJAVASCRIPTCORE=$LIBS
18625 LIBS=$cy_save
18626
18627
18628 ;; #(
18629 no) :
18630
18631 CY_EXECUTE=0
18632 ;; #(
18633 JavaScriptCore) :
18634
18635
18636
18637 cy_save=$LIBS
18638 LIBS=
18639
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18641 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18642 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18643 $as_echo_n "(cached) " >&6
18644 else
18645
18646 ac_check_framework_save_LIBS=$LIBS
18647 LIBS="-framework JavaScriptCore $LIBS"
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650
18651 #include <JavaScriptCore/JSBase.h>
18652
18653 int
18654 main ()
18655 {
18656
18657 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18658
18659 ;
18660 return 0;
18661 }
18662 _ACEOF
18663 if ac_fn_cxx_try_link "$LINENO"; then :
18664
18665 ac_cv_framework_JavaScriptCore=yes
18666
18667 else
18668 ac_cv_framework_JavaScriptCore=no
18669 fi
18670 rm -f core conftest.err conftest.$ac_objext \
18671 conftest$ac_exeext conftest.$ac_ext
18672 LIBS=$ac_check_framework_save_LIBS
18673
18674 fi
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18676 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18677 if test $ac_cv_framework_JavaScriptCore = yes; then :
18678
18679
18680 for element in "-framework JavaScriptCore"; do
18681 haveit=
18682 for x in $LIBS; do
18683
18684 acl_save_prefix="$prefix"
18685 prefix="$acl_final_prefix"
18686 acl_save_exec_prefix="$exec_prefix"
18687 exec_prefix="$acl_final_exec_prefix"
18688 eval x=\"$x\"
18689 exec_prefix="$acl_save_exec_prefix"
18690 prefix="$acl_save_prefix"
18691
18692 if test "X$x" = "X$element"; then
18693 haveit=yes
18694 break
18695 fi
18696 done
18697 if test -z "$haveit"; then
18698 LIBS="${LIBS}${LIBS:+ }$element"
18699 fi
18700 done
18701
18702
18703 CY_EXECUTE=1
18704
18705
18706
18707 else
18708
18709 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18710
18711 pkg_failed=no
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18713 $as_echo_n "checking for WEBKIT... " >&6; }
18714
18715 if test -n "$WEBKIT_CFLAGS"; then
18716 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18717 elif test -n "$PKG_CONFIG"; then
18718 if test -n "$PKG_CONFIG" && \
18719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18720 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18721 ac_status=$?
18722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18723 test $ac_status = 0; }; then
18724 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18725 else
18726 pkg_failed=yes
18727 fi
18728 else
18729 pkg_failed=untried
18730 fi
18731 if test -n "$WEBKIT_LIBS"; then
18732 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18733 elif test -n "$PKG_CONFIG"; then
18734 if test -n "$PKG_CONFIG" && \
18735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18736 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18737 ac_status=$?
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; then
18740 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18741 else
18742 pkg_failed=yes
18743 fi
18744 else
18745 pkg_failed=untried
18746 fi
18747
18748
18749
18750 if test $pkg_failed = yes; then
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753
18754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18755 _pkg_short_errors_supported=yes
18756 else
18757 _pkg_short_errors_supported=no
18758 fi
18759 if test $_pkg_short_errors_supported = yes; then
18760 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18761 else
18762 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18763 fi
18764 # Put the nasty error message in config.log where it belongs
18765 echo "$WEBKIT_PKG_ERRORS" >&5
18766
18767 :
18768 elif test $pkg_failed = untried; then
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18771 :
18772 else
18773 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18774 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18776 $as_echo "yes" >&6; }
18777
18778 CY_EXECUTE=1
18779
18780
18781 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18782 haveit=
18783 for x in $CPPFLAGS; do
18784
18785 acl_save_prefix="$prefix"
18786 prefix="$acl_final_prefix"
18787 acl_save_exec_prefix="$exec_prefix"
18788 exec_prefix="$acl_final_exec_prefix"
18789 eval x=\"$x\"
18790 exec_prefix="$acl_save_exec_prefix"
18791 prefix="$acl_save_prefix"
18792
18793 if test "X$x" = "X$element"; then
18794 haveit=yes
18795 break
18796 fi
18797 done
18798 if test -z "$haveit"; then
18799 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18800 fi
18801 done
18802
18803
18804 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18805 haveit=
18806 for x in $LIBS; do
18807
18808 acl_save_prefix="$prefix"
18809 prefix="$acl_final_prefix"
18810 acl_save_exec_prefix="$exec_prefix"
18811 exec_prefix="$acl_final_exec_prefix"
18812 eval x=\"$x\"
18813 exec_prefix="$acl_save_exec_prefix"
18814 prefix="$acl_save_prefix"
18815
18816 if test "X$x" = "X$element"; then
18817 haveit=yes
18818 break
18819 fi
18820 done
18821 if test -z "$haveit"; then
18822 LIBS="${LIBS}${LIBS:+ }$element"
18823 fi
18824 done
18825
18826
18827 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18828 done
18829
18830 fi
18831 LTJAVASCRIPTCORE=$LIBS
18832 LIBS=$cy_save
18833
18834
18835 ;; #(
18836 *) :
18837 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18838 esac
18839
18840 else
18841
18842
18843
18844 cy_save=$LIBS
18845 LIBS=
18846
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18848 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18849 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18850 $as_echo_n "(cached) " >&6
18851 else
18852
18853 ac_check_framework_save_LIBS=$LIBS
18854 LIBS="-framework JavaScriptCore $LIBS"
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857
18858 #include <JavaScriptCore/JSBase.h>
18859
18860 int
18861 main ()
18862 {
18863
18864 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18865
18866 ;
18867 return 0;
18868 }
18869 _ACEOF
18870 if ac_fn_cxx_try_link "$LINENO"; then :
18871
18872 ac_cv_framework_JavaScriptCore=yes
18873
18874 else
18875 ac_cv_framework_JavaScriptCore=no
18876 fi
18877 rm -f core conftest.err conftest.$ac_objext \
18878 conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_check_framework_save_LIBS
18880
18881 fi
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18883 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18884 if test $ac_cv_framework_JavaScriptCore = yes; then :
18885
18886
18887 for element in "-framework JavaScriptCore"; do
18888 haveit=
18889 for x in $LIBS; do
18890
18891 acl_save_prefix="$prefix"
18892 prefix="$acl_final_prefix"
18893 acl_save_exec_prefix="$exec_prefix"
18894 exec_prefix="$acl_final_exec_prefix"
18895 eval x=\"$x\"
18896 exec_prefix="$acl_save_exec_prefix"
18897 prefix="$acl_save_prefix"
18898
18899 if test "X$x" = "X$element"; then
18900 haveit=yes
18901 break
18902 fi
18903 done
18904 if test -z "$haveit"; then
18905 LIBS="${LIBS}${LIBS:+ }$element"
18906 fi
18907 done
18908
18909
18910 CY_EXECUTE=1
18911
18912
18913
18914 else
18915
18916 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18917
18918 pkg_failed=no
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18920 $as_echo_n "checking for WEBKIT... " >&6; }
18921
18922 if test -n "$WEBKIT_CFLAGS"; then
18923 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18924 elif test -n "$PKG_CONFIG"; then
18925 if test -n "$PKG_CONFIG" && \
18926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18927 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18928 ac_status=$?
18929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18930 test $ac_status = 0; }; then
18931 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18932 else
18933 pkg_failed=yes
18934 fi
18935 else
18936 pkg_failed=untried
18937 fi
18938 if test -n "$WEBKIT_LIBS"; then
18939 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18940 elif test -n "$PKG_CONFIG"; then
18941 if test -n "$PKG_CONFIG" && \
18942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18943 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18944 ac_status=$?
18945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18946 test $ac_status = 0; }; then
18947 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18948 else
18949 pkg_failed=yes
18950 fi
18951 else
18952 pkg_failed=untried
18953 fi
18954
18955
18956
18957 if test $pkg_failed = yes; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 $as_echo "no" >&6; }
18960
18961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18962 _pkg_short_errors_supported=yes
18963 else
18964 _pkg_short_errors_supported=no
18965 fi
18966 if test $_pkg_short_errors_supported = yes; then
18967 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18968 else
18969 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18970 fi
18971 # Put the nasty error message in config.log where it belongs
18972 echo "$WEBKIT_PKG_ERRORS" >&5
18973
18974 :
18975 elif test $pkg_failed = untried; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 :
18979 else
18980 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18981 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18983 $as_echo "yes" >&6; }
18984
18985 CY_EXECUTE=1
18986
18987
18988 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18989 haveit=
18990 for x in $CPPFLAGS; do
18991
18992 acl_save_prefix="$prefix"
18993 prefix="$acl_final_prefix"
18994 acl_save_exec_prefix="$exec_prefix"
18995 exec_prefix="$acl_final_exec_prefix"
18996 eval x=\"$x\"
18997 exec_prefix="$acl_save_exec_prefix"
18998 prefix="$acl_save_prefix"
18999
19000 if test "X$x" = "X$element"; then
19001 haveit=yes
19002 break
19003 fi
19004 done
19005 if test -z "$haveit"; then
19006 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19007 fi
19008 done
19009
19010
19011 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19012 haveit=
19013 for x in $LIBS; do
19014
19015 acl_save_prefix="$prefix"
19016 prefix="$acl_final_prefix"
19017 acl_save_exec_prefix="$exec_prefix"
19018 exec_prefix="$acl_final_exec_prefix"
19019 eval x=\"$x\"
19020 exec_prefix="$acl_save_exec_prefix"
19021 prefix="$acl_save_prefix"
19022
19023 if test "X$x" = "X$element"; then
19024 haveit=yes
19025 break
19026 fi
19027 done
19028 if test -z "$haveit"; then
19029 LIBS="${LIBS}${LIBS:+ }$element"
19030 fi
19031 done
19032
19033
19034 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19035 done
19036
19037 fi
19038 LTJAVASCRIPTCORE=$LIBS
19039 LIBS=$cy_save
19040
19041
19042
19043 fi
19044
19045
19046 # Check whether --enable-console was given.
19047 if test "${enable_console+set}" = set; then :
19048 enableval=$enable_console;
19049 fi
19050
19051 if test "x$enable_console" != "xno"; then
19052 CY_CONSOLE_TRUE=
19053 CY_CONSOLE_FALSE='#'
19054 else
19055 CY_CONSOLE_TRUE='#'
19056 CY_CONSOLE_FALSE=
19057 fi
19058
19059
19060 if test -z "$CY_CONSOLE_TRUE"; then :
19061
19062 if test "x$LTLIBAPR" != x; then :
19063
19064
19065
19066 else
19067
19068
19069 apr_found="no"
19070
19071 if test "$target_os" = "os2-emx"; then
19072 # Scripts don't pass test -x on OS/2
19073 TEST_X="test -f"
19074 else
19075 TEST_X="test -x"
19076 fi
19077
19078 acceptable_majors="1"
19079
19080 apr_temp_acceptable_apr_config=""
19081 for apr_temp_major in $acceptable_majors
19082 do
19083 case $apr_temp_major in
19084 0)
19085 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19086 ;;
19087 *)
19088 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19089 ;;
19090 esac
19091 done
19092
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19094 $as_echo_n "checking for APR... " >&6; }
19095
19096 # Check whether --with-apr was given.
19097 if test "${with_apr+set}" = set; then :
19098 withval=$with_apr;
19099 if test "$withval" = "no" || test "$withval" = "yes"; then
19100 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19101 fi
19102
19103 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19104 do
19105 for lookdir in "$withval/bin" "$withval"
19106 do
19107 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19108 apr_config="$lookdir/$apr_temp_apr_config_file"
19109
19110 apr_found="yes"
19111 break 2
19112 fi
19113 done
19114 done
19115
19116 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19117 apr_config="$withval"
19118 apr_found="yes"
19119 fi
19120
19121 if test "$apr_found" != "yes"; then
19122 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
19123 fi
19124
19125 else
19126
19127 if test -n "1" && test "1" = "1"; then
19128 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19129 do
19130 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19131 apr_config="$apr_temp_apr_config_file"
19132
19133 apr_found="yes"
19134 break
19135 else
19136 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19137 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19138 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19139
19140 apr_found="yes"
19141 break 2
19142 fi
19143 done
19144 fi
19145 done
19146 fi
19147 if test "$apr_found" = "no" && test -d ""; then
19148 apr_temp_abs_srcdir="`cd && pwd`"
19149 apr_found="reconfig"
19150 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19151 case $apr_bundled_major in
19152 "")
19153 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19154 ;;
19155 0)
19156 apr_temp_apr_config_file="apr-config"
19157 ;;
19158 *)
19159 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19160 ;;
19161 esac
19162 if test -n ""; then
19163 apr_config="/$apr_temp_apr_config_file"
19164 else
19165 apr_config="/$apr_temp_apr_config_file"
19166 fi
19167 fi
19168
19169 fi
19170
19171
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19173 $as_echo "$apr_found" >&6; }
19174
19175 case $apr_found in #(
19176 yes) :
19177
19178
19179 for element in `$apr_config --includes`; do
19180 haveit=
19181 for x in $CPPFLAGS; do
19182
19183 acl_save_prefix="$prefix"
19184 prefix="$acl_final_prefix"
19185 acl_save_exec_prefix="$exec_prefix"
19186 exec_prefix="$acl_final_exec_prefix"
19187 eval x=\"$x\"
19188 exec_prefix="$acl_save_exec_prefix"
19189 prefix="$acl_save_prefix"
19190
19191 if test "X$x" = "X$element"; then
19192 haveit=yes
19193 break
19194 fi
19195 done
19196 if test -z "$haveit"; then
19197 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19198 fi
19199 done
19200
19201
19202 for element in `$apr_config --link-libtool`; do
19203 haveit=
19204 for x in $LTLIBAPR; do
19205
19206 acl_save_prefix="$prefix"
19207 prefix="$acl_final_prefix"
19208 acl_save_exec_prefix="$exec_prefix"
19209 exec_prefix="$acl_final_exec_prefix"
19210 eval x=\"$x\"
19211 exec_prefix="$acl_save_exec_prefix"
19212 prefix="$acl_save_prefix"
19213
19214 if test "X$x" = "X$element"; then
19215 haveit=yes
19216 break
19217 fi
19218 done
19219 if test -z "$haveit"; then
19220 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
19221 fi
19222 done
19223
19224
19225 ;; #(
19226 *) :
19227
19228 as_fn_error $? "missing \"libapr\"" "$LINENO" 5
19229 ;;
19230 esac
19231 fi
19232
19233 fi
19234
19235
19236
19237 if test "x$CY_EXECUTE" = x1; then
19238 CY_EXECUTE_TRUE=
19239 CY_EXECUTE_FALSE='#'
19240 else
19241 CY_EXECUTE_TRUE='#'
19242 CY_EXECUTE_FALSE=
19243 fi
19244
19245
19246
19247 case $CY_EXECUTE in #(
19248 1) :
19249
19250 for ac_header in ffi.h ffi/ffi.h
19251 do :
19252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19255 cat >>confdefs.h <<_ACEOF
19256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19257 _ACEOF
19258 break
19259 fi
19260
19261 done
19262
19263
19264
19265 cy_save=$LIBS
19266 LIBS=
19267 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19268
19269
19270 LIBFFI_CFLAGS
19271 C compiler flags for LIBFFI, overriding pkg-config
19272 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
19273
19274 pkg_failed=no
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19276 $as_echo_n "checking for LIBFFI... " >&6; }
19277
19278 if test -n "$LIBFFI_CFLAGS"; then
19279 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19280 elif test -n "$PKG_CONFIG"; then
19281 if test -n "$PKG_CONFIG" && \
19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19283 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19284 ac_status=$?
19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19286 test $ac_status = 0; }; then
19287 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19288 else
19289 pkg_failed=yes
19290 fi
19291 else
19292 pkg_failed=untried
19293 fi
19294 if test -n "$LIBFFI_LIBS"; then
19295 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19296 elif test -n "$PKG_CONFIG"; then
19297 if test -n "$PKG_CONFIG" && \
19298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19299 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19300 ac_status=$?
19301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19302 test $ac_status = 0; }; then
19303 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19304 else
19305 pkg_failed=yes
19306 fi
19307 else
19308 pkg_failed=untried
19309 fi
19310
19311
19312
19313 if test $pkg_failed = yes; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315 $as_echo "no" >&6; }
19316
19317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19318 _pkg_short_errors_supported=yes
19319 else
19320 _pkg_short_errors_supported=no
19321 fi
19322 if test $_pkg_short_errors_supported = yes; then
19323 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19324 else
19325 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19326 fi
19327 # Put the nasty error message in config.log where it belongs
19328 echo "$LIBFFI_PKG_ERRORS" >&5
19329
19330 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19331 elif test $pkg_failed = untried; then
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333 $as_echo "no" >&6; }
19334 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19335 else
19336 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19337 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19340
19341
19342 for element in `$PKG_CONFIG --cflags libffi`; do
19343 haveit=
19344 for x in $CPPFLAGS; do
19345
19346 acl_save_prefix="$prefix"
19347 prefix="$acl_final_prefix"
19348 acl_save_exec_prefix="$exec_prefix"
19349 exec_prefix="$acl_final_exec_prefix"
19350 eval x=\"$x\"
19351 exec_prefix="$acl_save_exec_prefix"
19352 prefix="$acl_save_prefix"
19353
19354 if test "X$x" = "X$element"; then
19355 haveit=yes
19356 break
19357 fi
19358 done
19359 if test -z "$haveit"; then
19360 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19361 fi
19362 done
19363
19364
19365 for element in `$PKG_CONFIG --libs libffi`; do
19366 haveit=
19367 for x in $LIBS; do
19368
19369 acl_save_prefix="$prefix"
19370 prefix="$acl_final_prefix"
19371 acl_save_exec_prefix="$exec_prefix"
19372 exec_prefix="$acl_final_exec_prefix"
19373 eval x=\"$x\"
19374 exec_prefix="$acl_save_exec_prefix"
19375 prefix="$acl_save_prefix"
19376
19377 if test "X$x" = "X$element"; then
19378 haveit=yes
19379 break
19380 fi
19381 done
19382 if test -z "$haveit"; then
19383 LIBS="${LIBS}${LIBS:+ }$element"
19384 fi
19385 done
19386
19387
19388 fi
19389
19390 else
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19393 $as_echo_n "checking for library containing ffi_call... " >&6; }
19394 if ${ac_cv_search_ffi_call+:} false; then :
19395 $as_echo_n "(cached) " >&6
19396 else
19397 ac_func_search_save_LIBS=$LIBS
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19400
19401 /* Override any GCC internal prototype to avoid an error.
19402 Use char because int might match the return type of a GCC
19403 builtin and then its argument prototype would still apply. */
19404 #ifdef __cplusplus
19405 extern "C"
19406 #endif
19407 char ffi_call ();
19408 int
19409 main ()
19410 {
19411 return ffi_call ();
19412 ;
19413 return 0;
19414 }
19415 _ACEOF
19416 for ac_lib in '' ffi; do
19417 if test -z "$ac_lib"; then
19418 ac_res="none required"
19419 else
19420 ac_res=-l$ac_lib
19421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19422 fi
19423 if ac_fn_cxx_try_link "$LINENO"; then :
19424 ac_cv_search_ffi_call=$ac_res
19425 fi
19426 rm -f core conftest.err conftest.$ac_objext \
19427 conftest$ac_exeext
19428 if ${ac_cv_search_ffi_call+:} false; then :
19429 break
19430 fi
19431 done
19432 if ${ac_cv_search_ffi_call+:} false; then :
19433
19434 else
19435 ac_cv_search_ffi_call=no
19436 fi
19437 rm conftest.$ac_ext
19438 LIBS=$ac_func_search_save_LIBS
19439 fi
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19441 $as_echo "$ac_cv_search_ffi_call" >&6; }
19442 ac_res=$ac_cv_search_ffi_call
19443 if test "$ac_res" != no; then :
19444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19445
19446 fi
19447
19448 case $ac_cv_search_ffi_call in #(
19449 no) :
19450
19451
19452 pkg_failed=no
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19454 $as_echo_n "checking for LIBFFI... " >&6; }
19455
19456 if test -n "$LIBFFI_CFLAGS"; then
19457 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19458 elif test -n "$PKG_CONFIG"; then
19459 if test -n "$PKG_CONFIG" && \
19460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19461 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19462 ac_status=$?
19463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19464 test $ac_status = 0; }; then
19465 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19466 else
19467 pkg_failed=yes
19468 fi
19469 else
19470 pkg_failed=untried
19471 fi
19472 if test -n "$LIBFFI_LIBS"; then
19473 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19474 elif test -n "$PKG_CONFIG"; then
19475 if test -n "$PKG_CONFIG" && \
19476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19477 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19478 ac_status=$?
19479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19480 test $ac_status = 0; }; then
19481 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19482 else
19483 pkg_failed=yes
19484 fi
19485 else
19486 pkg_failed=untried
19487 fi
19488
19489
19490
19491 if test $pkg_failed = yes; then
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493 $as_echo "no" >&6; }
19494
19495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19496 _pkg_short_errors_supported=yes
19497 else
19498 _pkg_short_errors_supported=no
19499 fi
19500 if test $_pkg_short_errors_supported = yes; then
19501 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19502 else
19503 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19504 fi
19505 # Put the nasty error message in config.log where it belongs
19506 echo "$LIBFFI_PKG_ERRORS" >&5
19507
19508 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19509 elif test $pkg_failed = untried; then
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19511 $as_echo "no" >&6; }
19512 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19513 else
19514 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19515 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19517 $as_echo "yes" >&6; }
19518
19519
19520 for element in `$PKG_CONFIG --cflags libffi`; do
19521 haveit=
19522 for x in $CPPFLAGS; do
19523
19524 acl_save_prefix="$prefix"
19525 prefix="$acl_final_prefix"
19526 acl_save_exec_prefix="$exec_prefix"
19527 exec_prefix="$acl_final_exec_prefix"
19528 eval x=\"$x\"
19529 exec_prefix="$acl_save_exec_prefix"
19530 prefix="$acl_save_prefix"
19531
19532 if test "X$x" = "X$element"; then
19533 haveit=yes
19534 break
19535 fi
19536 done
19537 if test -z "$haveit"; then
19538 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19539 fi
19540 done
19541
19542
19543 for element in `$PKG_CONFIG --libs libffi`; do
19544 haveit=
19545 for x in $LIBS; do
19546
19547 acl_save_prefix="$prefix"
19548 prefix="$acl_final_prefix"
19549 acl_save_exec_prefix="$exec_prefix"
19550 exec_prefix="$acl_final_exec_prefix"
19551 eval x=\"$x\"
19552 exec_prefix="$acl_save_exec_prefix"
19553 prefix="$acl_save_prefix"
19554
19555 if test "X$x" = "X$element"; then
19556 haveit=yes
19557 break
19558 fi
19559 done
19560 if test -z "$haveit"; then
19561 LIBS="${LIBS}${LIBS:+ }$element"
19562 fi
19563 done
19564
19565
19566 fi ;; #(
19567 *) :
19568 ;;
19569 esac
19570
19571 fi
19572 LTLIBFFI=$LIBS
19573 LIBS=$cy_save
19574
19575
19576
19577 ac_ext=mm
19578 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19579 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19582
19583
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19585 $as_echo_n "checking if we really have Objective C++... " >&6; }
19586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19587 /* end confdefs.h. */
19588
19589 _ACEOF
19590 if ac_fn_objcxx_try_compile "$LINENO"; then :
19591
19592 CY_OBJECTIVEC=1
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19594 $as_echo "yes" >&6; }
19595
19596 else
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19598 $as_echo "no" >&6; }
19599 fi
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19601
19602 if test "x$CY_OBJECTIVEC" = x1; then :
19603
19604
19605 cy_save=$LIBS
19606 LIBS=
19607
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19609 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19610 if ${ac_cv_framework_CoreFoundation+:} false; then :
19611 $as_echo_n "(cached) " >&6
19612 else
19613
19614 ac_check_framework_save_LIBS=$LIBS
19615 LIBS="-framework CoreFoundation $LIBS"
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618
19619 #include <CoreFoundation/CFBase.h>
19620
19621 int
19622 main ()
19623 {
19624 CFAllocatorGetDefault();
19625 ;
19626 return 0;
19627 }
19628 _ACEOF
19629 if ac_fn_objcxx_try_link "$LINENO"; then :
19630
19631 ac_cv_framework_CoreFoundation=yes
19632
19633 else
19634 ac_cv_framework_CoreFoundation=no
19635 fi
19636 rm -f core conftest.err conftest.$ac_objext \
19637 conftest$ac_exeext conftest.$ac_ext
19638 LIBS=$ac_check_framework_save_LIBS
19639
19640 fi
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19642 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19643 if test $ac_cv_framework_CoreFoundation = yes; then :
19644
19645
19646 for element in "-framework CoreFoundation"; do
19647 haveit=
19648 for x in $LIBS; do
19649
19650 acl_save_prefix="$prefix"
19651 prefix="$acl_final_prefix"
19652 acl_save_exec_prefix="$exec_prefix"
19653 exec_prefix="$acl_final_exec_prefix"
19654 eval x=\"$x\"
19655 exec_prefix="$acl_save_exec_prefix"
19656 prefix="$acl_save_prefix"
19657
19658 if test "X$x" = "X$element"; then
19659 haveit=yes
19660 break
19661 fi
19662 done
19663 if test -z "$haveit"; then
19664 LIBS="${LIBS}${LIBS:+ }$element"
19665 fi
19666 done
19667
19668
19669
19670
19671
19672
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19674 $as_echo_n "checking for framework Foundation... " >&6; }
19675 if ${ac_cv_framework_Foundation+:} false; then :
19676 $as_echo_n "(cached) " >&6
19677 else
19678
19679 ac_check_framework_save_LIBS=$LIBS
19680 LIBS="-framework Foundation $LIBS"
19681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19683
19684 #include <Foundation/NSObject.h>
19685
19686 int
19687 main ()
19688 {
19689 [[NSObject alloc] init];
19690 ;
19691 return 0;
19692 }
19693 _ACEOF
19694 if ac_fn_objcxx_try_link "$LINENO"; then :
19695
19696 ac_cv_framework_Foundation=yes
19697
19698 else
19699 ac_cv_framework_Foundation=no
19700 fi
19701 rm -f core conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19703 LIBS=$ac_check_framework_save_LIBS
19704
19705 fi
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19707 $as_echo "$ac_cv_framework_Foundation" >&6; }
19708 if test $ac_cv_framework_Foundation = yes; then :
19709
19710
19711 for element in "-framework Foundation"; do
19712 haveit=
19713 for x in $LIBS; do
19714
19715 acl_save_prefix="$prefix"
19716 prefix="$acl_final_prefix"
19717 acl_save_exec_prefix="$exec_prefix"
19718 exec_prefix="$acl_final_exec_prefix"
19719 eval x=\"$x\"
19720 exec_prefix="$acl_save_exec_prefix"
19721 prefix="$acl_save_prefix"
19722
19723 if test "X$x" = "X$element"; then
19724 haveit=yes
19725 break
19726 fi
19727 done
19728 if test -z "$haveit"; then
19729 LIBS="${LIBS}${LIBS:+ }$element"
19730 fi
19731 done
19732
19733 cat >>confdefs.h <<_ACEOF
19734 #define HAVE_FRAMEWORK_FOUNDATION 1
19735 _ACEOF
19736
19737
19738 fi
19739
19740
19741 else
19742
19743
19744 for ac_prog in gnustep-config
19745 do
19746 # Extract the first word of "$ac_prog", so it can be a program name with args.
19747 set dummy $ac_prog; ac_word=$2
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19749 $as_echo_n "checking for $ac_word... " >&6; }
19750 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19751 $as_echo_n "(cached) " >&6
19752 else
19753 if test -n "$GNUSTEP_CONFIG"; then
19754 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19755 else
19756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19757 for as_dir in $PATH
19758 do
19759 IFS=$as_save_IFS
19760 test -z "$as_dir" && as_dir=.
19761 for ac_exec_ext in '' $ac_executable_extensions; do
19762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19763 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19765 break 2
19766 fi
19767 done
19768 done
19769 IFS=$as_save_IFS
19770
19771 fi
19772 fi
19773 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19774 if test -n "$GNUSTEP_CONFIG"; then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19776 $as_echo "$GNUSTEP_CONFIG" >&6; }
19777 else
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19779 $as_echo "no" >&6; }
19780 fi
19781
19782
19783 test -n "$GNUSTEP_CONFIG" && break
19784 done
19785
19786
19787 if test "x$GNUSTEP_CONFIG" != x; then :
19788
19789
19790
19791 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19792 haveit=
19793 for x in $OBJCXXFLAGS; do
19794
19795 acl_save_prefix="$prefix"
19796 prefix="$acl_final_prefix"
19797 acl_save_exec_prefix="$exec_prefix"
19798 exec_prefix="$acl_final_exec_prefix"
19799 eval x=\"$x\"
19800 exec_prefix="$acl_save_exec_prefix"
19801 prefix="$acl_save_prefix"
19802
19803 if test "X$x" = "X$element"; then
19804 haveit=yes
19805 break
19806 fi
19807 done
19808 if test -z "$haveit"; then
19809 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19810 fi
19811 done
19812
19813
19814 for element in `$GNUSTEP_CONFIG --base-libs`; do
19815 haveit=
19816 for x in $LIBS; do
19817
19818 acl_save_prefix="$prefix"
19819 prefix="$acl_final_prefix"
19820 acl_save_exec_prefix="$exec_prefix"
19821 exec_prefix="$acl_final_exec_prefix"
19822 eval x=\"$x\"
19823 exec_prefix="$acl_save_exec_prefix"
19824 prefix="$acl_save_prefix"
19825
19826 if test "X$x" = "X$element"; then
19827 haveit=yes
19828 break
19829 fi
19830 done
19831 if test -z "$haveit"; then
19832 LIBS="${LIBS}${LIBS:+ }$element"
19833 fi
19834 done
19835
19836
19837 else
19838 CY_OBJECTIVEC=0
19839
19840 fi
19841
19842 fi
19843 LTOBJECTIVEC=$LIBS
19844 LIBS=$cy_save
19845
19846
19847
19848 fi
19849
19850 ac_ext=cpp
19851 ac_cpp='$CXXCPP $CPPFLAGS'
19852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19855
19856 ;; #(
19857 *) :
19858 ;;
19859 esac
19860
19861 if test "x$CY_OBJECTIVEC" = x1; then
19862 CY_OBJECTIVEC_TRUE=
19863 CY_OBJECTIVEC_FALSE='#'
19864 else
19865 CY_OBJECTIVEC_TRUE='#'
19866 CY_OBJECTIVEC_FALSE=
19867 fi
19868
19869
19870
19871 cy_save=$LIBS
19872 LIBS=
19873
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19875 $as_echo_n "checking for a readline compatible library... " >&6; }
19876 if ${ax_cv_lib_readline+:} false; then :
19877 $as_echo_n "(cached) " >&6
19878 else
19879
19880 ORIG_LIBS="$LIBS"
19881 for readline_lib in readline edit editline; do
19882 for termcap_lib in "" termcap curses ncurses; do
19883 if test -z "$termcap_lib"; then
19884 TRY_LIB="-l$readline_lib"
19885 else
19886 TRY_LIB="-l$readline_lib -l$termcap_lib"
19887 fi
19888 LIBS="$ORIG_LIBS $TRY_LIB"
19889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19891
19892 /* Override any GCC internal prototype to avoid an error.
19893 Use char because int might match the return type of a GCC
19894 builtin and then its argument prototype would still apply. */
19895 #ifdef __cplusplus
19896 extern "C"
19897 #endif
19898 char readline ();
19899 int
19900 main ()
19901 {
19902 return readline ();
19903 ;
19904 return 0;
19905 }
19906 _ACEOF
19907 if ac_fn_cxx_try_link "$LINENO"; then :
19908 ax_cv_lib_readline="$TRY_LIB"
19909 fi
19910 rm -f core conftest.err conftest.$ac_objext \
19911 conftest$ac_exeext conftest.$ac_ext
19912 if test -n "$ax_cv_lib_readline"; then
19913 break
19914 fi
19915 done
19916 if test -n "$ax_cv_lib_readline"; then
19917 break
19918 fi
19919 done
19920 if test -z "$ax_cv_lib_readline"; then
19921 ax_cv_lib_readline="no"
19922 fi
19923 LIBS="$ORIG_LIBS"
19924
19925 fi
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19927 $as_echo "$ax_cv_lib_readline" >&6; }
19928
19929 if test "$ax_cv_lib_readline" != "no"; then
19930 LIBS="$LIBS $ax_cv_lib_readline"
19931
19932 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19933
19934 for ac_header in readline.h readline/readline.h
19935 do :
19936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19937 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19939 cat >>confdefs.h <<_ACEOF
19940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19941 _ACEOF
19942
19943 fi
19944
19945 done
19946
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19948 $as_echo_n "checking whether readline supports history... " >&6; }
19949 if ${ax_cv_lib_readline_history+:} false; then :
19950 $as_echo_n "(cached) " >&6
19951 else
19952
19953 ax_cv_lib_readline_history="no"
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19956
19957 /* Override any GCC internal prototype to avoid an error.
19958 Use char because int might match the return type of a GCC
19959 builtin and then its argument prototype would still apply. */
19960 #ifdef __cplusplus
19961 extern "C"
19962 #endif
19963 char add_history ();
19964 int
19965 main ()
19966 {
19967 return add_history ();
19968 ;
19969 return 0;
19970 }
19971 _ACEOF
19972 if ac_fn_cxx_try_link "$LINENO"; then :
19973 ax_cv_lib_readline_history="yes"
19974 fi
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977
19978 fi
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19980 $as_echo "$ax_cv_lib_readline_history" >&6; }
19981 if test "$ax_cv_lib_readline_history" = "yes"; then
19982
19983 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
19984
19985 for ac_header in history.h readline/history.h
19986 do :
19987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19989 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19990 cat >>confdefs.h <<_ACEOF
19991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19992 _ACEOF
19993
19994 fi
19995
19996 done
19997
19998 fi
19999 fi
20000
20001 LTLIBREADLINE=$LIBS
20002 LIBS=$cy_save
20003
20004
20005 case $ax_cv_lib_readline in #(
20006 no) :
20007 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20008 *) :
20009 ;;
20010 esac
20011
20012
20013 cy_save=$LIBS
20014 LIBS=
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20016 $as_echo_n "checking for library containing cur_term... " >&6; }
20017 if ${ac_cv_search_cur_term+:} false; then :
20018 $as_echo_n "(cached) " >&6
20019 else
20020 ac_func_search_save_LIBS=$LIBS
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20023
20024 /* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20027 #ifdef __cplusplus
20028 extern "C"
20029 #endif
20030 char cur_term ();
20031 int
20032 main ()
20033 {
20034 return cur_term ();
20035 ;
20036 return 0;
20037 }
20038 _ACEOF
20039 for ac_lib in '' termcap ncurses; do
20040 if test -z "$ac_lib"; then
20041 ac_res="none required"
20042 else
20043 ac_res=-l$ac_lib
20044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20045 fi
20046 if ac_fn_cxx_try_link "$LINENO"; then :
20047 ac_cv_search_cur_term=$ac_res
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext
20051 if ${ac_cv_search_cur_term+:} false; then :
20052 break
20053 fi
20054 done
20055 if ${ac_cv_search_cur_term+:} false; then :
20056
20057 else
20058 ac_cv_search_cur_term=no
20059 fi
20060 rm conftest.$ac_ext
20061 LIBS=$ac_func_search_save_LIBS
20062 fi
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20064 $as_echo "$ac_cv_search_cur_term" >&6; }
20065 ac_res=$ac_cv_search_cur_term
20066 if test "$ac_res" != no; then :
20067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20068
20069 fi
20070
20071 LTLIBTERMCAP=$LIBS
20072 LIBS=$cy_save
20073
20074
20075
20076
20077 SO=$acl_shlibext
20078
20079
20080 if test "x$CY_EXECUTE" = x1; then :
20081
20082 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20083 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20084
20085 if test -n "$ac_tool_prefix"; then
20086 for ac_prog in lipo
20087 do
20088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20091 $as_echo_n "checking for $ac_word... " >&6; }
20092 if ${ac_cv_prog__LIPO+:} false; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095 if test -n "$_LIPO"; then
20096 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20097 else
20098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20099 for as_dir in $PATH
20100 do
20101 IFS=$as_save_IFS
20102 test -z "$as_dir" && as_dir=.
20103 for ac_exec_ext in '' $ac_executable_extensions; do
20104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20105 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20107 break 2
20108 fi
20109 done
20110 done
20111 IFS=$as_save_IFS
20112
20113 fi
20114 fi
20115 _LIPO=$ac_cv_prog__LIPO
20116 if test -n "$_LIPO"; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20118 $as_echo "$_LIPO" >&6; }
20119 else
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20121 $as_echo "no" >&6; }
20122 fi
20123
20124
20125 test -n "$_LIPO" && break
20126 done
20127 fi
20128 if test -z "$_LIPO"; then
20129 ac_ct__LIPO=$_LIPO
20130 for ac_prog in lipo
20131 do
20132 # Extract the first word of "$ac_prog", so it can be a program name with args.
20133 set dummy $ac_prog; ac_word=$2
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20135 $as_echo_n "checking for $ac_word... " >&6; }
20136 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20137 $as_echo_n "(cached) " >&6
20138 else
20139 if test -n "$ac_ct__LIPO"; then
20140 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20141 else
20142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20143 for as_dir in $PATH
20144 do
20145 IFS=$as_save_IFS
20146 test -z "$as_dir" && as_dir=.
20147 for ac_exec_ext in '' $ac_executable_extensions; do
20148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20149 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20151 break 2
20152 fi
20153 done
20154 done
20155 IFS=$as_save_IFS
20156
20157 fi
20158 fi
20159 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20160 if test -n "$ac_ct__LIPO"; then
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20162 $as_echo "$ac_ct__LIPO" >&6; }
20163 else
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165 $as_echo "no" >&6; }
20166 fi
20167
20168
20169 test -n "$ac_ct__LIPO" && break
20170 done
20171
20172 if test "x$ac_ct__LIPO" = x; then
20173 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
20174 else
20175 case $cross_compiling:$ac_tool_warned in
20176 yes:)
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20179 ac_tool_warned=yes ;;
20180 esac
20181 _LIPO=$ac_ct__LIPO
20182 fi
20183 fi
20184
20185 if test -n "$ac_tool_prefix"; then
20186 for ac_prog in nm
20187 do
20188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20191 $as_echo_n "checking for $ac_word... " >&6; }
20192 if ${ac_cv_prog__NM+:} false; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 if test -n "$_NM"; then
20196 ac_cv_prog__NM="$_NM" # Let the user override the test.
20197 else
20198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20199 for as_dir in $PATH
20200 do
20201 IFS=$as_save_IFS
20202 test -z "$as_dir" && as_dir=.
20203 for ac_exec_ext in '' $ac_executable_extensions; do
20204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20205 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20207 break 2
20208 fi
20209 done
20210 done
20211 IFS=$as_save_IFS
20212
20213 fi
20214 fi
20215 _NM=$ac_cv_prog__NM
20216 if test -n "$_NM"; then
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20218 $as_echo "$_NM" >&6; }
20219 else
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20221 $as_echo "no" >&6; }
20222 fi
20223
20224
20225 test -n "$_NM" && break
20226 done
20227 fi
20228 if test -z "$_NM"; then
20229 ac_ct__NM=$_NM
20230 for ac_prog in nm
20231 do
20232 # Extract the first word of "$ac_prog", so it can be a program name with args.
20233 set dummy $ac_prog; ac_word=$2
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20235 $as_echo_n "checking for $ac_word... " >&6; }
20236 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20237 $as_echo_n "(cached) " >&6
20238 else
20239 if test -n "$ac_ct__NM"; then
20240 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20241 else
20242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20243 for as_dir in $PATH
20244 do
20245 IFS=$as_save_IFS
20246 test -z "$as_dir" && as_dir=.
20247 for ac_exec_ext in '' $ac_executable_extensions; do
20248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20249 ac_cv_prog_ac_ct__NM="$ac_prog"
20250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20251 break 2
20252 fi
20253 done
20254 done
20255 IFS=$as_save_IFS
20256
20257 fi
20258 fi
20259 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20260 if test -n "$ac_ct__NM"; then
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20262 $as_echo "$ac_ct__NM" >&6; }
20263 else
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20265 $as_echo "no" >&6; }
20266 fi
20267
20268
20269 test -n "$ac_ct__NM" && break
20270 done
20271
20272 if test "x$ac_ct__NM" = x; then
20273 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
20274 else
20275 case $cross_compiling:$ac_tool_warned in
20276 yes:)
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20279 ac_tool_warned=yes ;;
20280 esac
20281 _NM=$ac_ct__NM
20282 fi
20283 fi
20284
20285 if test -n "$ac_tool_prefix"; then
20286 for ac_prog in otool
20287 do
20288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20291 $as_echo_n "checking for $ac_word... " >&6; }
20292 if ${ac_cv_prog__OTOOL+:} false; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 if test -n "$_OTOOL"; then
20296 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20297 else
20298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20299 for as_dir in $PATH
20300 do
20301 IFS=$as_save_IFS
20302 test -z "$as_dir" && as_dir=.
20303 for ac_exec_ext in '' $ac_executable_extensions; do
20304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20305 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20307 break 2
20308 fi
20309 done
20310 done
20311 IFS=$as_save_IFS
20312
20313 fi
20314 fi
20315 _OTOOL=$ac_cv_prog__OTOOL
20316 if test -n "$_OTOOL"; then
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20318 $as_echo "$_OTOOL" >&6; }
20319 else
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20321 $as_echo "no" >&6; }
20322 fi
20323
20324
20325 test -n "$_OTOOL" && break
20326 done
20327 fi
20328 if test -z "$_OTOOL"; then
20329 ac_ct__OTOOL=$_OTOOL
20330 for ac_prog in otool
20331 do
20332 # Extract the first word of "$ac_prog", so it can be a program name with args.
20333 set dummy $ac_prog; ac_word=$2
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20335 $as_echo_n "checking for $ac_word... " >&6; }
20336 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20337 $as_echo_n "(cached) " >&6
20338 else
20339 if test -n "$ac_ct__OTOOL"; then
20340 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20341 else
20342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20343 for as_dir in $PATH
20344 do
20345 IFS=$as_save_IFS
20346 test -z "$as_dir" && as_dir=.
20347 for ac_exec_ext in '' $ac_executable_extensions; do
20348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20349 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20351 break 2
20352 fi
20353 done
20354 done
20355 IFS=$as_save_IFS
20356
20357 fi
20358 fi
20359 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20360 if test -n "$ac_ct__OTOOL"; then
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20362 $as_echo "$ac_ct__OTOOL" >&6; }
20363 else
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20365 $as_echo "no" >&6; }
20366 fi
20367
20368
20369 test -n "$ac_ct__OTOOL" && break
20370 done
20371
20372 if test "x$ac_ct__OTOOL" = x; then
20373 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
20374 else
20375 case $cross_compiling:$ac_tool_warned in
20376 yes:)
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20379 ac_tool_warned=yes ;;
20380 esac
20381 _OTOOL=$ac_ct__OTOOL
20382 fi
20383 fi
20384
20385 CY_ATTACH_GROUP=procmod
20386
20387 CY_MACH=1
20388
20389 fi
20390
20391
20392 fi
20393 if test "x$CY_MACH" = x1; then
20394 CY_MACH_TRUE=
20395 CY_MACH_FALSE='#'
20396 else
20397 CY_MACH_TRUE='#'
20398 CY_MACH_FALSE=
20399 fi
20400
20401
20402 ac_config_files="$ac_config_files Makefile"
20403
20404 cat >confcache <<\_ACEOF
20405 # This file is a shell script that caches the results of configure
20406 # tests run on this system so they can be shared between configure
20407 # scripts and configure runs, see configure's option --config-cache.
20408 # It is not useful on other systems. If it contains results you don't
20409 # want to keep, you may remove or edit it.
20410 #
20411 # config.status only pays attention to the cache file if you give it
20412 # the --recheck option to rerun configure.
20413 #
20414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20416 # following values.
20417
20418 _ACEOF
20419
20420 # The following way of writing the cache mishandles newlines in values,
20421 # but we know of no workaround that is simple, portable, and efficient.
20422 # So, we kill variables containing newlines.
20423 # Ultrix sh set writes to stderr and can't be redirected directly,
20424 # and sets the high bit in the cache file unless we assign to the vars.
20425 (
20426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20427 eval ac_val=\$$ac_var
20428 case $ac_val in #(
20429 *${as_nl}*)
20430 case $ac_var in #(
20431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20433 esac
20434 case $ac_var in #(
20435 _ | IFS | as_nl) ;; #(
20436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20437 *) { eval $ac_var=; unset $ac_var;} ;;
20438 esac ;;
20439 esac
20440 done
20441
20442 (set) 2>&1 |
20443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20444 *${as_nl}ac_space=\ *)
20445 # `set' does not quote correctly, so add quotes: double-quote
20446 # substitution turns \\\\ into \\, and sed turns \\ into \.
20447 sed -n \
20448 "s/'/'\\\\''/g;
20449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20450 ;; #(
20451 *)
20452 # `set' quotes correctly as required by POSIX, so do not add quotes.
20453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20454 ;;
20455 esac |
20456 sort
20457 ) |
20458 sed '
20459 /^ac_cv_env_/b end
20460 t clear
20461 :clear
20462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20463 t end
20464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20465 :end' >>confcache
20466 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20467 if test -w "$cache_file"; then
20468 if test "x$cache_file" != "x/dev/null"; then
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20470 $as_echo "$as_me: updating cache $cache_file" >&6;}
20471 if test ! -f "$cache_file" || test -h "$cache_file"; then
20472 cat confcache >"$cache_file"
20473 else
20474 case $cache_file in #(
20475 */* | ?:*)
20476 mv -f confcache "$cache_file"$$ &&
20477 mv -f "$cache_file"$$ "$cache_file" ;; #(
20478 *)
20479 mv -f confcache "$cache_file" ;;
20480 esac
20481 fi
20482 fi
20483 else
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20485 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20486 fi
20487 fi
20488 rm -f confcache
20489
20490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20491 # Let make expand exec_prefix.
20492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20493
20494 DEFS=-DHAVE_CONFIG_H
20495
20496 ac_libobjs=
20497 ac_ltlibobjs=
20498 U=
20499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20500 # 1. Remove the extension, and $U if already installed.
20501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20504 # will be set to the directory where LIBOBJS objects are built.
20505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20507 done
20508 LIBOBJS=$ac_libobjs
20509
20510 LTLIBOBJS=$ac_ltlibobjs
20511
20512
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20514 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20515 if test -n "$am_sleep_pid"; then
20516 # Hide warnings about reused PIDs.
20517 wait $am_sleep_pid 2>/dev/null
20518 fi
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20520 $as_echo "done" >&6; }
20521 if test -n "$EXEEXT"; then
20522 am__EXEEXT_TRUE=
20523 am__EXEEXT_FALSE='#'
20524 else
20525 am__EXEEXT_TRUE='#'
20526 am__EXEEXT_FALSE=
20527 fi
20528
20529 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20530 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20532 fi
20533 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20534 as_fn_error $? "conditional \"AMDEP\" was never defined.
20535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20536 fi
20537 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20538 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20540 fi
20541 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20542 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20544 fi
20545 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20546 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20548 fi
20549 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20550 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
20551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20552 fi
20553 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20554 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20556 fi
20557 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20558 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20560 fi
20561 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20562 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20564 fi
20565
20566 : "${CONFIG_STATUS=./config.status}"
20567 ac_write_fail=0
20568 ac_clean_files_save=$ac_clean_files
20569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20572 as_write_fail=0
20573 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20574 #! $SHELL
20575 # Generated by $as_me.
20576 # Run this file to recreate the current configuration.
20577 # Compiler output produced by configure, useful for debugging
20578 # configure, is in config.log if it exists.
20579
20580 debug=false
20581 ac_cs_recheck=false
20582 ac_cs_silent=false
20583
20584 SHELL=\${CONFIG_SHELL-$SHELL}
20585 export SHELL
20586 _ASEOF
20587 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20588 ## -------------------- ##
20589 ## M4sh Initialization. ##
20590 ## -------------------- ##
20591
20592 # Be more Bourne compatible
20593 DUALCASE=1; export DUALCASE # for MKS sh
20594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20595 emulate sh
20596 NULLCMD=:
20597 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20598 # is contrary to our usage. Disable this feature.
20599 alias -g '${1+"$@"}'='"$@"'
20600 setopt NO_GLOB_SUBST
20601 else
20602 case `(set -o) 2>/dev/null` in #(
20603 *posix*) :
20604 set -o posix ;; #(
20605 *) :
20606 ;;
20607 esac
20608 fi
20609
20610
20611 as_nl='
20612 '
20613 export as_nl
20614 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20615 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20618 # Prefer a ksh shell builtin over an external printf program on Solaris,
20619 # but without wasting forks for bash or zsh.
20620 if test -z "$BASH_VERSION$ZSH_VERSION" \
20621 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20622 as_echo='print -r --'
20623 as_echo_n='print -rn --'
20624 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20625 as_echo='printf %s\n'
20626 as_echo_n='printf %s'
20627 else
20628 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20629 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20630 as_echo_n='/usr/ucb/echo -n'
20631 else
20632 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20633 as_echo_n_body='eval
20634 arg=$1;
20635 case $arg in #(
20636 *"$as_nl"*)
20637 expr "X$arg" : "X\\(.*\\)$as_nl";
20638 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20639 esac;
20640 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20641 '
20642 export as_echo_n_body
20643 as_echo_n='sh -c $as_echo_n_body as_echo'
20644 fi
20645 export as_echo_body
20646 as_echo='sh -c $as_echo_body as_echo'
20647 fi
20648
20649 # The user is always right.
20650 if test "${PATH_SEPARATOR+set}" != set; then
20651 PATH_SEPARATOR=:
20652 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20653 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20654 PATH_SEPARATOR=';'
20655 }
20656 fi
20657
20658
20659 # IFS
20660 # We need space, tab and new line, in precisely that order. Quoting is
20661 # there to prevent editors from complaining about space-tab.
20662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20663 # splitting by setting IFS to empty value.)
20664 IFS=" "" $as_nl"
20665
20666 # Find who we are. Look in the path if we contain no directory separator.
20667 as_myself=
20668 case $0 in #((
20669 *[\\/]* ) as_myself=$0 ;;
20670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671 for as_dir in $PATH
20672 do
20673 IFS=$as_save_IFS
20674 test -z "$as_dir" && as_dir=.
20675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20676 done
20677 IFS=$as_save_IFS
20678
20679 ;;
20680 esac
20681 # We did not find ourselves, most probably we were run as `sh COMMAND'
20682 # in which case we are not to be found in the path.
20683 if test "x$as_myself" = x; then
20684 as_myself=$0
20685 fi
20686 if test ! -f "$as_myself"; then
20687 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20688 exit 1
20689 fi
20690
20691 # Unset variables that we do not need and which cause bugs (e.g. in
20692 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20693 # suppresses any "Segmentation fault" message there. '((' could
20694 # trigger a bug in pdksh 5.2.14.
20695 for as_var in BASH_ENV ENV MAIL MAILPATH
20696 do eval test x\${$as_var+set} = xset \
20697 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20698 done
20699 PS1='$ '
20700 PS2='> '
20701 PS4='+ '
20702
20703 # NLS nuisances.
20704 LC_ALL=C
20705 export LC_ALL
20706 LANGUAGE=C
20707 export LANGUAGE
20708
20709 # CDPATH.
20710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20711
20712
20713 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20714 # ----------------------------------------
20715 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20716 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20717 # script with STATUS, using 1 if that was 0.
20718 as_fn_error ()
20719 {
20720 as_status=$1; test $as_status -eq 0 && as_status=1
20721 if test "$4"; then
20722 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20723 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20724 fi
20725 $as_echo "$as_me: error: $2" >&2
20726 as_fn_exit $as_status
20727 } # as_fn_error
20728
20729
20730 # as_fn_set_status STATUS
20731 # -----------------------
20732 # Set $? to STATUS, without forking.
20733 as_fn_set_status ()
20734 {
20735 return $1
20736 } # as_fn_set_status
20737
20738 # as_fn_exit STATUS
20739 # -----------------
20740 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20741 as_fn_exit ()
20742 {
20743 set +e
20744 as_fn_set_status $1
20745 exit $1
20746 } # as_fn_exit
20747
20748 # as_fn_unset VAR
20749 # ---------------
20750 # Portably unset VAR.
20751 as_fn_unset ()
20752 {
20753 { eval $1=; unset $1;}
20754 }
20755 as_unset=as_fn_unset
20756 # as_fn_append VAR VALUE
20757 # ----------------------
20758 # Append the text in VALUE to the end of the definition contained in VAR. Take
20759 # advantage of any shell optimizations that allow amortized linear growth over
20760 # repeated appends, instead of the typical quadratic growth present in naive
20761 # implementations.
20762 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20763 eval 'as_fn_append ()
20764 {
20765 eval $1+=\$2
20766 }'
20767 else
20768 as_fn_append ()
20769 {
20770 eval $1=\$$1\$2
20771 }
20772 fi # as_fn_append
20773
20774 # as_fn_arith ARG...
20775 # ------------------
20776 # Perform arithmetic evaluation on the ARGs, and store the result in the
20777 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20778 # must be portable across $(()) and expr.
20779 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20780 eval 'as_fn_arith ()
20781 {
20782 as_val=$(( $* ))
20783 }'
20784 else
20785 as_fn_arith ()
20786 {
20787 as_val=`expr "$@" || test $? -eq 1`
20788 }
20789 fi # as_fn_arith
20790
20791
20792 if expr a : '\(a\)' >/dev/null 2>&1 &&
20793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20794 as_expr=expr
20795 else
20796 as_expr=false
20797 fi
20798
20799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20800 as_basename=basename
20801 else
20802 as_basename=false
20803 fi
20804
20805 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20806 as_dirname=dirname
20807 else
20808 as_dirname=false
20809 fi
20810
20811 as_me=`$as_basename -- "$0" ||
20812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20813 X"$0" : 'X\(//\)$' \| \
20814 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20815 $as_echo X/"$0" |
20816 sed '/^.*\/\([^/][^/]*\)\/*$/{
20817 s//\1/
20818 q
20819 }
20820 /^X\/\(\/\/\)$/{
20821 s//\1/
20822 q
20823 }
20824 /^X\/\(\/\).*/{
20825 s//\1/
20826 q
20827 }
20828 s/.*/./; q'`
20829
20830 # Avoid depending upon Character Ranges.
20831 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20832 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20833 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20834 as_cr_digits='0123456789'
20835 as_cr_alnum=$as_cr_Letters$as_cr_digits
20836
20837 ECHO_C= ECHO_N= ECHO_T=
20838 case `echo -n x` in #(((((
20839 -n*)
20840 case `echo 'xy\c'` in
20841 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20842 xy) ECHO_C='\c';;
20843 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20844 ECHO_T=' ';;
20845 esac;;
20846 *)
20847 ECHO_N='-n';;
20848 esac
20849
20850 rm -f conf$$ conf$$.exe conf$$.file
20851 if test -d conf$$.dir; then
20852 rm -f conf$$.dir/conf$$.file
20853 else
20854 rm -f conf$$.dir
20855 mkdir conf$$.dir 2>/dev/null
20856 fi
20857 if (echo >conf$$.file) 2>/dev/null; then
20858 if ln -s conf$$.file conf$$ 2>/dev/null; then
20859 as_ln_s='ln -s'
20860 # ... but there are two gotchas:
20861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20863 # In both cases, we have to default to `cp -pR'.
20864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20865 as_ln_s='cp -pR'
20866 elif ln conf$$.file conf$$ 2>/dev/null; then
20867 as_ln_s=ln
20868 else
20869 as_ln_s='cp -pR'
20870 fi
20871 else
20872 as_ln_s='cp -pR'
20873 fi
20874 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20875 rmdir conf$$.dir 2>/dev/null
20876
20877
20878 # as_fn_mkdir_p
20879 # -------------
20880 # Create "$as_dir" as a directory, including parents if necessary.
20881 as_fn_mkdir_p ()
20882 {
20883
20884 case $as_dir in #(
20885 -*) as_dir=./$as_dir;;
20886 esac
20887 test -d "$as_dir" || eval $as_mkdir_p || {
20888 as_dirs=
20889 while :; do
20890 case $as_dir in #(
20891 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20892 *) as_qdir=$as_dir;;
20893 esac
20894 as_dirs="'$as_qdir' $as_dirs"
20895 as_dir=`$as_dirname -- "$as_dir" ||
20896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20897 X"$as_dir" : 'X\(//\)[^/]' \| \
20898 X"$as_dir" : 'X\(//\)$' \| \
20899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20900 $as_echo X"$as_dir" |
20901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20902 s//\1/
20903 q
20904 }
20905 /^X\(\/\/\)[^/].*/{
20906 s//\1/
20907 q
20908 }
20909 /^X\(\/\/\)$/{
20910 s//\1/
20911 q
20912 }
20913 /^X\(\/\).*/{
20914 s//\1/
20915 q
20916 }
20917 s/.*/./; q'`
20918 test -d "$as_dir" && break
20919 done
20920 test -z "$as_dirs" || eval "mkdir $as_dirs"
20921 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20922
20923
20924 } # as_fn_mkdir_p
20925 if mkdir -p . 2>/dev/null; then
20926 as_mkdir_p='mkdir -p "$as_dir"'
20927 else
20928 test -d ./-p && rmdir ./-p
20929 as_mkdir_p=false
20930 fi
20931
20932
20933 # as_fn_executable_p FILE
20934 # -----------------------
20935 # Test if FILE is an executable regular file.
20936 as_fn_executable_p ()
20937 {
20938 test -f "$1" && test -x "$1"
20939 } # as_fn_executable_p
20940 as_test_x='test -x'
20941 as_executable_p=as_fn_executable_p
20942
20943 # Sed expression to map a string onto a valid CPP name.
20944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20945
20946 # Sed expression to map a string onto a valid variable name.
20947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20948
20949
20950 exec 6>&1
20951 ## ----------------------------------- ##
20952 ## Main body of $CONFIG_STATUS script. ##
20953 ## ----------------------------------- ##
20954 _ASEOF
20955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20956
20957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20958 # Save the log message, to keep $0 and so on meaningful, and to
20959 # report actual input values of CONFIG_FILES etc. instead of their
20960 # values after options handling.
20961 ac_log="
20962 This file was extended by Cycript $as_me 0.9, which was
20963 generated by GNU Autoconf 2.69. Invocation command line was
20964
20965 CONFIG_FILES = $CONFIG_FILES
20966 CONFIG_HEADERS = $CONFIG_HEADERS
20967 CONFIG_LINKS = $CONFIG_LINKS
20968 CONFIG_COMMANDS = $CONFIG_COMMANDS
20969 $ $0 $@
20970
20971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20972 "
20973
20974 _ACEOF
20975
20976 case $ac_config_files in *"
20977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20978 esac
20979
20980 case $ac_config_headers in *"
20981 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20982 esac
20983
20984
20985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20986 # Files that config.status was made for.
20987 config_files="$ac_config_files"
20988 config_headers="$ac_config_headers"
20989 config_commands="$ac_config_commands"
20990
20991 _ACEOF
20992
20993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20994 ac_cs_usage="\
20995 \`$as_me' instantiates files and other configuration actions
20996 from templates according to the current configuration. Unless the files
20997 and actions are specified as TAGs, all are instantiated by default.
20998
20999 Usage: $0 [OPTION]... [TAG]...
21000
21001 -h, --help print this help, then exit
21002 -V, --version print version number and configuration settings, then exit
21003 --config print configuration, then exit
21004 -q, --quiet, --silent
21005 do not print progress messages
21006 -d, --debug don't remove temporary files
21007 --recheck update $as_me by reconfiguring in the same conditions
21008 --file=FILE[:TEMPLATE]
21009 instantiate the configuration file FILE
21010 --header=FILE[:TEMPLATE]
21011 instantiate the configuration header FILE
21012
21013 Configuration files:
21014 $config_files
21015
21016 Configuration headers:
21017 $config_headers
21018
21019 Configuration commands:
21020 $config_commands
21021
21022 Report bugs to <saurik@saurik.com>.
21023 Cycript home page: <http://www.cycript.org/>."
21024
21025 _ACEOF
21026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21027 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21028 ac_cs_version="\\
21029 Cycript config.status 0.9
21030 configured by $0, generated by GNU Autoconf 2.69,
21031 with options \\"\$ac_cs_config\\"
21032
21033 Copyright (C) 2012 Free Software Foundation, Inc.
21034 This config.status script is free software; the Free Software Foundation
21035 gives unlimited permission to copy, distribute and modify it."
21036
21037 ac_pwd='$ac_pwd'
21038 srcdir='$srcdir'
21039 INSTALL='$INSTALL'
21040 MKDIR_P='$MKDIR_P'
21041 AWK='$AWK'
21042 test -n "\$AWK" || AWK=awk
21043 _ACEOF
21044
21045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21046 # The default lists apply if the user does not specify any file.
21047 ac_need_defaults=:
21048 while test $# != 0
21049 do
21050 case $1 in
21051 --*=?*)
21052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21053 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21054 ac_shift=:
21055 ;;
21056 --*=)
21057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21058 ac_optarg=
21059 ac_shift=:
21060 ;;
21061 *)
21062 ac_option=$1
21063 ac_optarg=$2
21064 ac_shift=shift
21065 ;;
21066 esac
21067
21068 case $ac_option in
21069 # Handling of the options.
21070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21071 ac_cs_recheck=: ;;
21072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21073 $as_echo "$ac_cs_version"; exit ;;
21074 --config | --confi | --conf | --con | --co | --c )
21075 $as_echo "$ac_cs_config"; exit ;;
21076 --debug | --debu | --deb | --de | --d | -d )
21077 debug=: ;;
21078 --file | --fil | --fi | --f )
21079 $ac_shift
21080 case $ac_optarg in
21081 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21082 '') as_fn_error $? "missing file argument" ;;
21083 esac
21084 as_fn_append CONFIG_FILES " '$ac_optarg'"
21085 ac_need_defaults=false;;
21086 --header | --heade | --head | --hea )
21087 $ac_shift
21088 case $ac_optarg in
21089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21090 esac
21091 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21092 ac_need_defaults=false;;
21093 --he | --h)
21094 # Conflict between --help and --header
21095 as_fn_error $? "ambiguous option: \`$1'
21096 Try \`$0 --help' for more information.";;
21097 --help | --hel | -h )
21098 $as_echo "$ac_cs_usage"; exit ;;
21099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21100 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21101 ac_cs_silent=: ;;
21102
21103 # This is an error.
21104 -*) as_fn_error $? "unrecognized option: \`$1'
21105 Try \`$0 --help' for more information." ;;
21106
21107 *) as_fn_append ac_config_targets " $1"
21108 ac_need_defaults=false ;;
21109
21110 esac
21111 shift
21112 done
21113
21114 ac_configure_extra_args=
21115
21116 if $ac_cs_silent; then
21117 exec 6>/dev/null
21118 ac_configure_extra_args="$ac_configure_extra_args --silent"
21119 fi
21120
21121 _ACEOF
21122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21123 if \$ac_cs_recheck; then
21124 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21125 shift
21126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21127 CONFIG_SHELL='$SHELL'
21128 export CONFIG_SHELL
21129 exec "\$@"
21130 fi
21131
21132 _ACEOF
21133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21134 exec 5>>config.log
21135 {
21136 echo
21137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21138 ## Running $as_me. ##
21139 _ASBOX
21140 $as_echo "$ac_log"
21141 } >&5
21142
21143 _ACEOF
21144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21145 #
21146 # INIT-COMMANDS
21147 #
21148 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21149
21150
21151 # The HP-UX ksh and POSIX shell print the target directory to stdout
21152 # if CDPATH is set.
21153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21154
21155 sed_quote_subst='$sed_quote_subst'
21156 double_quote_subst='$double_quote_subst'
21157 delay_variable_subst='$delay_variable_subst'
21158 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21159 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21160 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21161 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21162 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21163 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21164 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21165 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21166 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21167 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21168 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21169 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21170 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21171 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21172 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21173 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21174 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21175 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21176 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21177 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21178 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21179 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21180 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21181 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21182 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21183 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21184 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21185 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21186 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21187 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21188 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21189 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21190 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21191 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21192 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21193 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21194 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21195 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21196 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21197 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21198 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21199 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21200 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21201 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21202 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21203 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21204 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21205 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21206 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21207 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21208 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21209 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21210 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21211 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21212 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21213 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21214 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"`'
21215 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21216 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21217 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21218 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21219 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21220 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21221 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21222 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21223 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21224 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21225 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21226 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21227 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21228 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21229 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21230 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21231 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21232 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21233 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21234 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21235 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21236 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21237 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21238 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21239 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21240 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21241 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21242 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21243 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21244 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21245 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21246 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21247 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21248 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21249 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21250 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21251 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21252 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21253 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21254 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21255 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21256 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21257 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21258 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21259 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21260 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21261 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21262 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21263 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21264 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21265 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21266 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21267 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21268 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21269 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21270 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21271 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21272 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21273 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21274 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21275 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21276 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21277 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21278 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21279 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21280 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21281 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21282 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21283 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21284 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21285 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21286 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21287 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21288 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21289 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21290 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21291 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21292 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21293 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21294 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21295 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21296 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21297 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21298 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21299 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21300 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21301 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21302 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21303 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21304 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21305 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21306 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21307 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21308 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21309 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21310 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21311 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21312 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21313 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21314 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21315 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21316 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21317 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21318 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21319 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21320 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21321 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21322 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21323 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21324 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21325 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21326 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21327 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21328 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21329 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21330 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21331 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21332 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21333 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21334 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21335 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21336 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21337 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21338 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21339 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21340 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21341 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21342
21343 LTCC='$LTCC'
21344 LTCFLAGS='$LTCFLAGS'
21345 compiler='$compiler_DEFAULT'
21346
21347 # A function that is used when there is no print builtin or printf.
21348 func_fallback_echo ()
21349 {
21350 eval 'cat <<_LTECHO_EOF
21351 \$1
21352 _LTECHO_EOF'
21353 }
21354
21355 # Quote evaled strings.
21356 for var in SHELL \
21357 ECHO \
21358 PATH_SEPARATOR \
21359 SED \
21360 GREP \
21361 EGREP \
21362 FGREP \
21363 LD \
21364 NM \
21365 LN_S \
21366 lt_SP2NL \
21367 lt_NL2SP \
21368 reload_flag \
21369 OBJDUMP \
21370 deplibs_check_method \
21371 file_magic_cmd \
21372 file_magic_glob \
21373 want_nocaseglob \
21374 DLLTOOL \
21375 sharedlib_from_linklib_cmd \
21376 AR \
21377 AR_FLAGS \
21378 archiver_list_spec \
21379 STRIP \
21380 RANLIB \
21381 CC \
21382 CFLAGS \
21383 compiler \
21384 lt_cv_sys_global_symbol_pipe \
21385 lt_cv_sys_global_symbol_to_cdecl \
21386 lt_cv_sys_global_symbol_to_c_name_address \
21387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21388 nm_file_list_spec \
21389 lt_prog_compiler_no_builtin_flag \
21390 lt_prog_compiler_pic \
21391 lt_prog_compiler_wl \
21392 lt_prog_compiler_static \
21393 lt_cv_prog_compiler_c_o \
21394 need_locks \
21395 MANIFEST_TOOL \
21396 DSYMUTIL \
21397 NMEDIT \
21398 LIPO \
21399 OTOOL \
21400 OTOOL64 \
21401 shrext_cmds \
21402 export_dynamic_flag_spec \
21403 whole_archive_flag_spec \
21404 compiler_needs_object \
21405 with_gnu_ld \
21406 allow_undefined_flag \
21407 no_undefined_flag \
21408 hardcode_libdir_flag_spec \
21409 hardcode_libdir_separator \
21410 exclude_expsyms \
21411 include_expsyms \
21412 file_list_spec \
21413 variables_saved_for_relink \
21414 libname_spec \
21415 library_names_spec \
21416 soname_spec \
21417 install_override_mode \
21418 finish_eval \
21419 old_striplib \
21420 striplib \
21421 compiler_lib_search_dirs \
21422 predep_objects \
21423 postdep_objects \
21424 predeps \
21425 postdeps \
21426 compiler_lib_search_path \
21427 LD_CXX \
21428 reload_flag_CXX \
21429 compiler_CXX \
21430 lt_prog_compiler_no_builtin_flag_CXX \
21431 lt_prog_compiler_pic_CXX \
21432 lt_prog_compiler_wl_CXX \
21433 lt_prog_compiler_static_CXX \
21434 lt_cv_prog_compiler_c_o_CXX \
21435 export_dynamic_flag_spec_CXX \
21436 whole_archive_flag_spec_CXX \
21437 compiler_needs_object_CXX \
21438 with_gnu_ld_CXX \
21439 allow_undefined_flag_CXX \
21440 no_undefined_flag_CXX \
21441 hardcode_libdir_flag_spec_CXX \
21442 hardcode_libdir_separator_CXX \
21443 exclude_expsyms_CXX \
21444 include_expsyms_CXX \
21445 file_list_spec_CXX \
21446 compiler_lib_search_dirs_CXX \
21447 predep_objects_CXX \
21448 postdep_objects_CXX \
21449 predeps_CXX \
21450 postdeps_CXX \
21451 compiler_lib_search_path_CXX; do
21452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21453 *[\\\\\\\`\\"\\\$]*)
21454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21455 ;;
21456 *)
21457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21458 ;;
21459 esac
21460 done
21461
21462 # Double-quote double-evaled strings.
21463 for var in reload_cmds \
21464 old_postinstall_cmds \
21465 old_postuninstall_cmds \
21466 old_archive_cmds \
21467 extract_expsyms_cmds \
21468 old_archive_from_new_cmds \
21469 old_archive_from_expsyms_cmds \
21470 archive_cmds \
21471 archive_expsym_cmds \
21472 module_cmds \
21473 module_expsym_cmds \
21474 export_symbols_cmds \
21475 prelink_cmds \
21476 postlink_cmds \
21477 postinstall_cmds \
21478 postuninstall_cmds \
21479 finish_cmds \
21480 sys_lib_search_path_spec \
21481 sys_lib_dlsearch_path_spec \
21482 reload_cmds_CXX \
21483 old_archive_cmds_CXX \
21484 old_archive_from_new_cmds_CXX \
21485 old_archive_from_expsyms_cmds_CXX \
21486 archive_cmds_CXX \
21487 archive_expsym_cmds_CXX \
21488 module_cmds_CXX \
21489 module_expsym_cmds_CXX \
21490 export_symbols_cmds_CXX \
21491 prelink_cmds_CXX \
21492 postlink_cmds_CXX; do
21493 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21494 *[\\\\\\\`\\"\\\$]*)
21495 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21496 ;;
21497 *)
21498 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21499 ;;
21500 esac
21501 done
21502
21503 ac_aux_dir='$ac_aux_dir'
21504 xsi_shell='$xsi_shell'
21505 lt_shell_append='$lt_shell_append'
21506
21507 # See if we are running on zsh, and set the options which allow our
21508 # commands through without removal of \ escapes INIT.
21509 if test -n "\${ZSH_VERSION+set}" ; then
21510 setopt NO_GLOB_SUBST
21511 fi
21512
21513
21514 PACKAGE='$PACKAGE'
21515 VERSION='$VERSION'
21516 TIMESTAMP='$TIMESTAMP'
21517 RM='$RM'
21518 ofile='$ofile'
21519
21520
21521
21522
21523
21524
21525 _ACEOF
21526
21527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21528
21529 # Handling of arguments.
21530 for ac_config_target in $ac_config_targets
21531 do
21532 case $ac_config_target in
21533 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21534 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21535 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21537
21538 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21539 esac
21540 done
21541
21542
21543 # If the user did not use the arguments to specify the items to instantiate,
21544 # then the envvar interface is used. Set only those that are not.
21545 # We use the long form for the default assignment because of an extremely
21546 # bizarre bug on SunOS 4.1.3.
21547 if $ac_need_defaults; then
21548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21551 fi
21552
21553 # Have a temporary directory for convenience. Make it in the build tree
21554 # simply because there is no reason against having it here, and in addition,
21555 # creating and moving files from /tmp can sometimes cause problems.
21556 # Hook for its removal unless debugging.
21557 # Note that there is a small window in which the directory will not be cleaned:
21558 # after its creation but before its name has been assigned to `$tmp'.
21559 $debug ||
21560 {
21561 tmp= ac_tmp=
21562 trap 'exit_status=$?
21563 : "${ac_tmp:=$tmp}"
21564 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21565 ' 0
21566 trap 'as_fn_exit 1' 1 2 13 15
21567 }
21568 # Create a (secure) tmp directory for tmp files.
21569
21570 {
21571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21572 test -d "$tmp"
21573 } ||
21574 {
21575 tmp=./conf$$-$RANDOM
21576 (umask 077 && mkdir "$tmp")
21577 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21578 ac_tmp=$tmp
21579
21580 # Set up the scripts for CONFIG_FILES section.
21581 # No need to generate them if there are no CONFIG_FILES.
21582 # This happens for instance with `./config.status config.h'.
21583 if test -n "$CONFIG_FILES"; then
21584
21585
21586 ac_cr=`echo X | tr X '\015'`
21587 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21588 # But we know of no other shell where ac_cr would be empty at this
21589 # point, so we can use a bashism as a fallback.
21590 if test "x$ac_cr" = x; then
21591 eval ac_cr=\$\'\\r\'
21592 fi
21593 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21594 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21595 ac_cs_awk_cr='\\r'
21596 else
21597 ac_cs_awk_cr=$ac_cr
21598 fi
21599
21600 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21601 _ACEOF
21602
21603
21604 {
21605 echo "cat >conf$$subs.awk <<_ACEOF" &&
21606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21607 echo "_ACEOF"
21608 } >conf$$subs.sh ||
21609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21610 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21611 ac_delim='%!_!# '
21612 for ac_last_try in false false false false false :; do
21613 . ./conf$$subs.sh ||
21614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21615
21616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21617 if test $ac_delim_n = $ac_delim_num; then
21618 break
21619 elif $ac_last_try; then
21620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21621 else
21622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21623 fi
21624 done
21625 rm -f conf$$subs.sh
21626
21627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21628 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21629 _ACEOF
21630 sed -n '
21631 h
21632 s/^/S["/; s/!.*/"]=/
21633 p
21634 g
21635 s/^[^!]*!//
21636 :repl
21637 t repl
21638 s/'"$ac_delim"'$//
21639 t delim
21640 :nl
21641 h
21642 s/\(.\{148\}\)..*/\1/
21643 t more1
21644 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21645 p
21646 n
21647 b repl
21648 :more1
21649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21650 p
21651 g
21652 s/.\{148\}//
21653 t nl
21654 :delim
21655 h
21656 s/\(.\{148\}\)..*/\1/
21657 t more2
21658 s/["\\]/\\&/g; s/^/"/; s/$/"/
21659 p
21660 b
21661 :more2
21662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21663 p
21664 g
21665 s/.\{148\}//
21666 t delim
21667 ' <conf$$subs.awk | sed '
21668 /^[^""]/{
21669 N
21670 s/\n//
21671 }
21672 ' >>$CONFIG_STATUS || ac_write_fail=1
21673 rm -f conf$$subs.awk
21674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21675 _ACAWK
21676 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21677 for (key in S) S_is_set[key] = 1
21678 FS = "\a"
21679
21680 }
21681 {
21682 line = $ 0
21683 nfields = split(line, field, "@")
21684 substed = 0
21685 len = length(field[1])
21686 for (i = 2; i < nfields; i++) {
21687 key = field[i]
21688 keylen = length(key)
21689 if (S_is_set[key]) {
21690 value = S[key]
21691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21692 len += length(value) + length(field[++i])
21693 substed = 1
21694 } else
21695 len += 1 + keylen
21696 }
21697
21698 print line
21699 }
21700
21701 _ACAWK
21702 _ACEOF
21703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21704 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21706 else
21707 cat
21708 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21710 _ACEOF
21711
21712 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21713 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21714 # trailing colons and then remove the whole line if VPATH becomes empty
21715 # (actually we leave an empty line to preserve line numbers).
21716 if test "x$srcdir" = x.; then
21717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21718 h
21719 s///
21720 s/^/:/
21721 s/[ ]*$/:/
21722 s/:\$(srcdir):/:/g
21723 s/:\${srcdir}:/:/g
21724 s/:@srcdir@:/:/g
21725 s/^:*//
21726 s/:*$//
21727 x
21728 s/\(=[ ]*\).*/\1/
21729 G
21730 s/\n//
21731 s/^[^=]*=[ ]*$//
21732 }'
21733 fi
21734
21735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21736 fi # test -n "$CONFIG_FILES"
21737
21738 # Set up the scripts for CONFIG_HEADERS section.
21739 # No need to generate them if there are no CONFIG_HEADERS.
21740 # This happens for instance with `./config.status Makefile'.
21741 if test -n "$CONFIG_HEADERS"; then
21742 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21743 BEGIN {
21744 _ACEOF
21745
21746 # Transform confdefs.h into an awk script `defines.awk', embedded as
21747 # here-document in config.status, that substitutes the proper values into
21748 # config.h.in to produce config.h.
21749
21750 # Create a delimiter string that does not exist in confdefs.h, to ease
21751 # handling of long lines.
21752 ac_delim='%!_!# '
21753 for ac_last_try in false false :; do
21754 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21755 if test -z "$ac_tt"; then
21756 break
21757 elif $ac_last_try; then
21758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21759 else
21760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21761 fi
21762 done
21763
21764 # For the awk script, D is an array of macro values keyed by name,
21765 # likewise P contains macro parameters if any. Preserve backslash
21766 # newline sequences.
21767
21768 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21769 sed -n '
21770 s/.\{148\}/&'"$ac_delim"'/g
21771 t rset
21772 :rset
21773 s/^[ ]*#[ ]*define[ ][ ]*/ /
21774 t def
21775 d
21776 :def
21777 s/\\$//
21778 t bsnl
21779 s/["\\]/\\&/g
21780 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21781 D["\1"]=" \3"/p
21782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21783 d
21784 :bsnl
21785 s/["\\]/\\&/g
21786 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21787 D["\1"]=" \3\\\\\\n"\\/p
21788 t cont
21789 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21790 t cont
21791 d
21792 :cont
21793 n
21794 s/.\{148\}/&'"$ac_delim"'/g
21795 t clear
21796 :clear
21797 s/\\$//
21798 t bsnlc
21799 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21800 d
21801 :bsnlc
21802 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21803 b cont
21804 ' <confdefs.h | sed '
21805 s/'"$ac_delim"'/"\\\
21806 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21807
21808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21809 for (key in D) D_is_set[key] = 1
21810 FS = "\a"
21811 }
21812 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21813 line = \$ 0
21814 split(line, arg, " ")
21815 if (arg[1] == "#") {
21816 defundef = arg[2]
21817 mac1 = arg[3]
21818 } else {
21819 defundef = substr(arg[1], 2)
21820 mac1 = arg[2]
21821 }
21822 split(mac1, mac2, "(") #)
21823 macro = mac2[1]
21824 prefix = substr(line, 1, index(line, defundef) - 1)
21825 if (D_is_set[macro]) {
21826 # Preserve the white space surrounding the "#".
21827 print prefix "define", macro P[macro] D[macro]
21828 next
21829 } else {
21830 # Replace #undef with comments. This is necessary, for example,
21831 # in the case of _POSIX_SOURCE, which is predefined and required
21832 # on some systems where configure will not decide to define it.
21833 if (defundef == "undef") {
21834 print "/*", prefix defundef, macro, "*/"
21835 next
21836 }
21837 }
21838 }
21839 { print }
21840 _ACAWK
21841 _ACEOF
21842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21844 fi # test -n "$CONFIG_HEADERS"
21845
21846
21847 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21848 shift
21849 for ac_tag
21850 do
21851 case $ac_tag in
21852 :[FHLC]) ac_mode=$ac_tag; continue;;
21853 esac
21854 case $ac_mode$ac_tag in
21855 :[FHL]*:*);;
21856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21857 :[FH]-) ac_tag=-:-;;
21858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21859 esac
21860 ac_save_IFS=$IFS
21861 IFS=:
21862 set x $ac_tag
21863 IFS=$ac_save_IFS
21864 shift
21865 ac_file=$1
21866 shift
21867
21868 case $ac_mode in
21869 :L) ac_source=$1;;
21870 :[FH])
21871 ac_file_inputs=
21872 for ac_f
21873 do
21874 case $ac_f in
21875 -) ac_f="$ac_tmp/stdin";;
21876 *) # Look for the file first in the build tree, then in the source tree
21877 # (if the path is not absolute). The absolute path cannot be DOS-style,
21878 # because $ac_f cannot contain `:'.
21879 test -f "$ac_f" ||
21880 case $ac_f in
21881 [\\/$]*) false;;
21882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21883 esac ||
21884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21885 esac
21886 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21887 as_fn_append ac_file_inputs " '$ac_f'"
21888 done
21889
21890 # Let's still pretend it is `configure' which instantiates (i.e., don't
21891 # use $as_me), people would be surprised to read:
21892 # /* config.h. Generated by config.status. */
21893 configure_input='Generated from '`
21894 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21895 `' by configure.'
21896 if test x"$ac_file" != x-; then
21897 configure_input="$ac_file. $configure_input"
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21899 $as_echo "$as_me: creating $ac_file" >&6;}
21900 fi
21901 # Neutralize special characters interpreted by sed in replacement strings.
21902 case $configure_input in #(
21903 *\&* | *\|* | *\\* )
21904 ac_sed_conf_input=`$as_echo "$configure_input" |
21905 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21906 *) ac_sed_conf_input=$configure_input;;
21907 esac
21908
21909 case $ac_tag in
21910 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21912 esac
21913 ;;
21914 esac
21915
21916 ac_dir=`$as_dirname -- "$ac_file" ||
21917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21918 X"$ac_file" : 'X\(//\)[^/]' \| \
21919 X"$ac_file" : 'X\(//\)$' \| \
21920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21921 $as_echo X"$ac_file" |
21922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21923 s//\1/
21924 q
21925 }
21926 /^X\(\/\/\)[^/].*/{
21927 s//\1/
21928 q
21929 }
21930 /^X\(\/\/\)$/{
21931 s//\1/
21932 q
21933 }
21934 /^X\(\/\).*/{
21935 s//\1/
21936 q
21937 }
21938 s/.*/./; q'`
21939 as_dir="$ac_dir"; as_fn_mkdir_p
21940 ac_builddir=.
21941
21942 case "$ac_dir" in
21943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21944 *)
21945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21946 # A ".." for each directory in $ac_dir_suffix.
21947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21948 case $ac_top_builddir_sub in
21949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21951 esac ;;
21952 esac
21953 ac_abs_top_builddir=$ac_pwd
21954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21955 # for backward compatibility:
21956 ac_top_builddir=$ac_top_build_prefix
21957
21958 case $srcdir in
21959 .) # We are building in place.
21960 ac_srcdir=.
21961 ac_top_srcdir=$ac_top_builddir_sub
21962 ac_abs_top_srcdir=$ac_pwd ;;
21963 [\\/]* | ?:[\\/]* ) # Absolute name.
21964 ac_srcdir=$srcdir$ac_dir_suffix;
21965 ac_top_srcdir=$srcdir
21966 ac_abs_top_srcdir=$srcdir ;;
21967 *) # Relative name.
21968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21969 ac_top_srcdir=$ac_top_build_prefix$srcdir
21970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21971 esac
21972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21973
21974
21975 case $ac_mode in
21976 :F)
21977 #
21978 # CONFIG_FILE
21979 #
21980
21981 case $INSTALL in
21982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21984 esac
21985 ac_MKDIR_P=$MKDIR_P
21986 case $MKDIR_P in
21987 [\\/$]* | ?:[\\/]* ) ;;
21988 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21989 esac
21990 _ACEOF
21991
21992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21993 # If the template does not know about datarootdir, expand it.
21994 # FIXME: This hack should be removed a few years after 2.60.
21995 ac_datarootdir_hack=; ac_datarootdir_seen=
21996 ac_sed_dataroot='
21997 /datarootdir/ {
21998 p
21999 q
22000 }
22001 /@datadir@/p
22002 /@docdir@/p
22003 /@infodir@/p
22004 /@localedir@/p
22005 /@mandir@/p'
22006 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22007 *datarootdir*) ac_datarootdir_seen=yes;;
22008 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22010 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22011 _ACEOF
22012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22013 ac_datarootdir_hack='
22014 s&@datadir@&$datadir&g
22015 s&@docdir@&$docdir&g
22016 s&@infodir@&$infodir&g
22017 s&@localedir@&$localedir&g
22018 s&@mandir@&$mandir&g
22019 s&\\\${datarootdir}&$datarootdir&g' ;;
22020 esac
22021 _ACEOF
22022
22023 # Neutralize VPATH when `$srcdir' = `.'.
22024 # Shell code in configure.ac might set extrasub.
22025 # FIXME: do we really want to maintain this feature?
22026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22027 ac_sed_extra="$ac_vpsub
22028 $extrasub
22029 _ACEOF
22030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22031 :t
22032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22033 s|@configure_input@|$ac_sed_conf_input|;t t
22034 s&@top_builddir@&$ac_top_builddir_sub&;t t
22035 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22036 s&@srcdir@&$ac_srcdir&;t t
22037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22038 s&@top_srcdir@&$ac_top_srcdir&;t t
22039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22040 s&@builddir@&$ac_builddir&;t t
22041 s&@abs_builddir@&$ac_abs_builddir&;t t
22042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22043 s&@INSTALL@&$ac_INSTALL&;t t
22044 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22045 $ac_datarootdir_hack
22046 "
22047 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22049
22050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22053 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22055 which seems to be undefined. Please make sure it is defined" >&5
22056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22057 which seems to be undefined. Please make sure it is defined" >&2;}
22058
22059 rm -f "$ac_tmp/stdin"
22060 case $ac_file in
22061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22063 esac \
22064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22065 ;;
22066 :H)
22067 #
22068 # CONFIG_HEADER
22069 #
22070 if test x"$ac_file" != x-; then
22071 {
22072 $as_echo "/* $configure_input */" \
22073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22074 } >"$ac_tmp/config.h" \
22075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22078 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22079 else
22080 rm -f "$ac_file"
22081 mv "$ac_tmp/config.h" "$ac_file" \
22082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22083 fi
22084 else
22085 $as_echo "/* $configure_input */" \
22086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22087 || as_fn_error $? "could not create -" "$LINENO" 5
22088 fi
22089 # Compute "$ac_file"'s index in $config_headers.
22090 _am_arg="$ac_file"
22091 _am_stamp_count=1
22092 for _am_header in $config_headers :; do
22093 case $_am_header in
22094 $_am_arg | $_am_arg:* )
22095 break ;;
22096 * )
22097 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22098 esac
22099 done
22100 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22101 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22102 X"$_am_arg" : 'X\(//\)[^/]' \| \
22103 X"$_am_arg" : 'X\(//\)$' \| \
22104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22105 $as_echo X"$_am_arg" |
22106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22107 s//\1/
22108 q
22109 }
22110 /^X\(\/\/\)[^/].*/{
22111 s//\1/
22112 q
22113 }
22114 /^X\(\/\/\)$/{
22115 s//\1/
22116 q
22117 }
22118 /^X\(\/\).*/{
22119 s//\1/
22120 q
22121 }
22122 s/.*/./; q'`/stamp-h$_am_stamp_count
22123 ;;
22124
22125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22126 $as_echo "$as_me: executing $ac_file commands" >&6;}
22127 ;;
22128 esac
22129
22130
22131 case $ac_file$ac_mode in
22132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22133 # Older Autoconf quotes --file arguments for eval, but not when files
22134 # are listed without --file. Let's play safe and only enable the eval
22135 # if we detect the quoting.
22136 case $CONFIG_FILES in
22137 *\'*) eval set x "$CONFIG_FILES" ;;
22138 *) set x $CONFIG_FILES ;;
22139 esac
22140 shift
22141 for mf
22142 do
22143 # Strip MF so we end up with the name of the file.
22144 mf=`echo "$mf" | sed -e 's/:.*$//'`
22145 # Check whether this is an Automake generated Makefile or not.
22146 # We used to match only the files named 'Makefile.in', but
22147 # some people rename them; so instead we look at the file content.
22148 # Grep'ing the first line is not enough: some people post-process
22149 # each Makefile.in and add a new line on top of each file to say so.
22150 # Grep'ing the whole file is not good either: AIX grep has a line
22151 # limit of 2048, but all sed's we know have understand at least 4000.
22152 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22153 dirpart=`$as_dirname -- "$mf" ||
22154 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22155 X"$mf" : 'X\(//\)[^/]' \| \
22156 X"$mf" : 'X\(//\)$' \| \
22157 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22158 $as_echo X"$mf" |
22159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22160 s//\1/
22161 q
22162 }
22163 /^X\(\/\/\)[^/].*/{
22164 s//\1/
22165 q
22166 }
22167 /^X\(\/\/\)$/{
22168 s//\1/
22169 q
22170 }
22171 /^X\(\/\).*/{
22172 s//\1/
22173 q
22174 }
22175 s/.*/./; q'`
22176 else
22177 continue
22178 fi
22179 # Extract the definition of DEPDIR, am__include, and am__quote
22180 # from the Makefile without running 'make'.
22181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22182 test -z "$DEPDIR" && continue
22183 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22184 test -z "$am__include" && continue
22185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22186 # Find all dependency output files, they are included files with
22187 # $(DEPDIR) in their names. We invoke sed twice because it is the
22188 # simplest approach to changing $(DEPDIR) to its actual value in the
22189 # expansion.
22190 for file in `sed -n "
22191 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22192 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22193 # Make sure the directory exists.
22194 test -f "$dirpart/$file" && continue
22195 fdir=`$as_dirname -- "$file" ||
22196 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22197 X"$file" : 'X\(//\)[^/]' \| \
22198 X"$file" : 'X\(//\)$' \| \
22199 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22200 $as_echo X"$file" |
22201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22202 s//\1/
22203 q
22204 }
22205 /^X\(\/\/\)[^/].*/{
22206 s//\1/
22207 q
22208 }
22209 /^X\(\/\/\)$/{
22210 s//\1/
22211 q
22212 }
22213 /^X\(\/\).*/{
22214 s//\1/
22215 q
22216 }
22217 s/.*/./; q'`
22218 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22219 # echo "creating $dirpart/$file"
22220 echo '# dummy' > "$dirpart/$file"
22221 done
22222 done
22223 }
22224 ;;
22225 "libtool":C)
22226
22227 # See if we are running on zsh, and set the options which allow our
22228 # commands through without removal of \ escapes.
22229 if test -n "${ZSH_VERSION+set}" ; then
22230 setopt NO_GLOB_SUBST
22231 fi
22232
22233 cfgfile="${ofile}T"
22234 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22235 $RM "$cfgfile"
22236
22237 cat <<_LT_EOF >> "$cfgfile"
22238 #! $SHELL
22239
22240 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22241 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22242 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22243 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22244 #
22245 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22246 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22247 # Foundation, Inc.
22248 # Written by Gordon Matzigkeit, 1996
22249 #
22250 # This file is part of GNU Libtool.
22251 #
22252 # GNU Libtool is free software; you can redistribute it and/or
22253 # modify it under the terms of the GNU General Public License as
22254 # published by the Free Software Foundation; either version 2 of
22255 # the License, or (at your option) any later version.
22256 #
22257 # As a special exception to the GNU General Public License,
22258 # if you distribute this file as part of a program or library that
22259 # is built using GNU Libtool, you may include this file under the
22260 # same distribution terms that you use for the rest of that program.
22261 #
22262 # GNU Libtool is distributed in the hope that it will be useful,
22263 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22264 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22265 # GNU General Public License for more details.
22266 #
22267 # You should have received a copy of the GNU General Public License
22268 # along with GNU Libtool; see the file COPYING. If not, a copy
22269 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22270 # obtained by writing to the Free Software Foundation, Inc.,
22271 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22272
22273
22274 # The names of the tagged configurations supported by this script.
22275 available_tags="CXX "
22276
22277 # ### BEGIN LIBTOOL CONFIG
22278
22279 # Which release of libtool.m4 was used?
22280 macro_version=$macro_version
22281 macro_revision=$macro_revision
22282
22283 # Whether or not to build static libraries.
22284 build_old_libs=$enable_static
22285
22286 # Whether or not to build shared libraries.
22287 build_libtool_libs=$enable_shared
22288
22289 # What type of objects to build.
22290 pic_mode=$pic_mode
22291
22292 # Whether or not to optimize for fast installation.
22293 fast_install=$enable_fast_install
22294
22295 # Shell to use when invoking shell scripts.
22296 SHELL=$lt_SHELL
22297
22298 # An echo program that protects backslashes.
22299 ECHO=$lt_ECHO
22300
22301 # The PATH separator for the build system.
22302 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22303
22304 # The host system.
22305 host_alias=$host_alias
22306 host=$host
22307 host_os=$host_os
22308
22309 # The build system.
22310 build_alias=$build_alias
22311 build=$build
22312 build_os=$build_os
22313
22314 # A sed program that does not truncate output.
22315 SED=$lt_SED
22316
22317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22318 Xsed="\$SED -e 1s/^X//"
22319
22320 # A grep program that handles long lines.
22321 GREP=$lt_GREP
22322
22323 # An ERE matcher.
22324 EGREP=$lt_EGREP
22325
22326 # A literal string matcher.
22327 FGREP=$lt_FGREP
22328
22329 # A BSD- or MS-compatible name lister.
22330 NM=$lt_NM
22331
22332 # Whether we need soft or hard links.
22333 LN_S=$lt_LN_S
22334
22335 # What is the maximum length of a command?
22336 max_cmd_len=$max_cmd_len
22337
22338 # Object file suffix (normally "o").
22339 objext=$ac_objext
22340
22341 # Executable file suffix (normally "").
22342 exeext=$exeext
22343
22344 # whether the shell understands "unset".
22345 lt_unset=$lt_unset
22346
22347 # turn spaces into newlines.
22348 SP2NL=$lt_lt_SP2NL
22349
22350 # turn newlines into spaces.
22351 NL2SP=$lt_lt_NL2SP
22352
22353 # convert \$build file names to \$host format.
22354 to_host_file_cmd=$lt_cv_to_host_file_cmd
22355
22356 # convert \$build files to toolchain format.
22357 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22358
22359 # An object symbol dumper.
22360 OBJDUMP=$lt_OBJDUMP
22361
22362 # Method to check whether dependent libraries are shared objects.
22363 deplibs_check_method=$lt_deplibs_check_method
22364
22365 # Command to use when deplibs_check_method = "file_magic".
22366 file_magic_cmd=$lt_file_magic_cmd
22367
22368 # How to find potential files when deplibs_check_method = "file_magic".
22369 file_magic_glob=$lt_file_magic_glob
22370
22371 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22372 want_nocaseglob=$lt_want_nocaseglob
22373
22374 # DLL creation program.
22375 DLLTOOL=$lt_DLLTOOL
22376
22377 # Command to associate shared and link libraries.
22378 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22379
22380 # The archiver.
22381 AR=$lt_AR
22382
22383 # Flags to create an archive.
22384 AR_FLAGS=$lt_AR_FLAGS
22385
22386 # How to feed a file listing to the archiver.
22387 archiver_list_spec=$lt_archiver_list_spec
22388
22389 # A symbol stripping program.
22390 STRIP=$lt_STRIP
22391
22392 # Commands used to install an old-style archive.
22393 RANLIB=$lt_RANLIB
22394 old_postinstall_cmds=$lt_old_postinstall_cmds
22395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22396
22397 # Whether to use a lock for old archive extraction.
22398 lock_old_archive_extraction=$lock_old_archive_extraction
22399
22400 # A C compiler.
22401 LTCC=$lt_CC
22402
22403 # LTCC compiler flags.
22404 LTCFLAGS=$lt_CFLAGS
22405
22406 # Take the output of nm and produce a listing of raw symbols and C names.
22407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22408
22409 # Transform the output of nm in a proper C declaration.
22410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22411
22412 # Transform the output of nm in a C name address pair.
22413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22414
22415 # Transform the output of nm in a C name address pair when lib prefix is needed.
22416 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22417
22418 # Specify filename containing input files for \$NM.
22419 nm_file_list_spec=$lt_nm_file_list_spec
22420
22421 # The root where to search for dependent libraries,and in which our libraries should be installed.
22422 lt_sysroot=$lt_sysroot
22423
22424 # The name of the directory that contains temporary libtool files.
22425 objdir=$objdir
22426
22427 # Used to examine libraries when file_magic_cmd begins with "file".
22428 MAGIC_CMD=$MAGIC_CMD
22429
22430 # Must we lock files when doing compilation?
22431 need_locks=$lt_need_locks
22432
22433 # Manifest tool.
22434 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22435
22436 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22437 DSYMUTIL=$lt_DSYMUTIL
22438
22439 # Tool to change global to local symbols on Mac OS X.
22440 NMEDIT=$lt_NMEDIT
22441
22442 # Tool to manipulate fat objects and archives on Mac OS X.
22443 LIPO=$lt_LIPO
22444
22445 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22446 OTOOL=$lt_OTOOL
22447
22448 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22449 OTOOL64=$lt_OTOOL64
22450
22451 # Old archive suffix (normally "a").
22452 libext=$libext
22453
22454 # Shared library suffix (normally ".so").
22455 shrext_cmds=$lt_shrext_cmds
22456
22457 # The commands to extract the exported symbol list from a shared archive.
22458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22459
22460 # Variables whose values should be saved in libtool wrapper scripts and
22461 # restored at link time.
22462 variables_saved_for_relink=$lt_variables_saved_for_relink
22463
22464 # Do we need the "lib" prefix for modules?
22465 need_lib_prefix=$need_lib_prefix
22466
22467 # Do we need a version for libraries?
22468 need_version=$need_version
22469
22470 # Library versioning type.
22471 version_type=$version_type
22472
22473 # Shared library runtime path variable.
22474 runpath_var=$runpath_var
22475
22476 # Shared library path variable.
22477 shlibpath_var=$shlibpath_var
22478
22479 # Is shlibpath searched before the hard-coded library search path?
22480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22481
22482 # Format of library name prefix.
22483 libname_spec=$lt_libname_spec
22484
22485 # List of archive names. First name is the real one, the rest are links.
22486 # The last name is the one that the linker finds with -lNAME
22487 library_names_spec=$lt_library_names_spec
22488
22489 # The coded name of the library, if different from the real name.
22490 soname_spec=$lt_soname_spec
22491
22492 # Permission mode override for installation of shared libraries.
22493 install_override_mode=$lt_install_override_mode
22494
22495 # Command to use after installation of a shared archive.
22496 postinstall_cmds=$lt_postinstall_cmds
22497
22498 # Command to use after uninstallation of a shared archive.
22499 postuninstall_cmds=$lt_postuninstall_cmds
22500
22501 # Commands used to finish a libtool library installation in a directory.
22502 finish_cmds=$lt_finish_cmds
22503
22504 # As "finish_cmds", except a single script fragment to be evaled but
22505 # not shown.
22506 finish_eval=$lt_finish_eval
22507
22508 # Whether we should hardcode library paths into libraries.
22509 hardcode_into_libs=$hardcode_into_libs
22510
22511 # Compile-time system search path for libraries.
22512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22513
22514 # Run-time system search path for libraries.
22515 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22516
22517 # Whether dlopen is supported.
22518 dlopen_support=$enable_dlopen
22519
22520 # Whether dlopen of programs is supported.
22521 dlopen_self=$enable_dlopen_self
22522
22523 # Whether dlopen of statically linked programs is supported.
22524 dlopen_self_static=$enable_dlopen_self_static
22525
22526 # Commands to strip libraries.
22527 old_striplib=$lt_old_striplib
22528 striplib=$lt_striplib
22529
22530
22531 # The linker used to build libraries.
22532 LD=$lt_LD
22533
22534 # How to create reloadable object files.
22535 reload_flag=$lt_reload_flag
22536 reload_cmds=$lt_reload_cmds
22537
22538 # Commands used to build an old-style archive.
22539 old_archive_cmds=$lt_old_archive_cmds
22540
22541 # A language specific compiler.
22542 CC=$lt_compiler
22543
22544 # Is the compiler the GNU compiler?
22545 with_gcc=$GCC
22546
22547 # Compiler flag to turn off builtin functions.
22548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22549
22550 # Additional compiler flags for building library objects.
22551 pic_flag=$lt_lt_prog_compiler_pic
22552
22553 # How to pass a linker flag through the compiler.
22554 wl=$lt_lt_prog_compiler_wl
22555
22556 # Compiler flag to prevent dynamic linking.
22557 link_static_flag=$lt_lt_prog_compiler_static
22558
22559 # Does compiler simultaneously support -c and -o options?
22560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22561
22562 # Whether or not to add -lc for building shared libraries.
22563 build_libtool_need_lc=$archive_cmds_need_lc
22564
22565 # Whether or not to disallow shared libs when runtime libs are static.
22566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22567
22568 # Compiler flag to allow reflexive dlopens.
22569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22570
22571 # Compiler flag to generate shared objects directly from archives.
22572 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22573
22574 # Whether the compiler copes with passing no objects directly.
22575 compiler_needs_object=$lt_compiler_needs_object
22576
22577 # Create an old-style archive from a shared archive.
22578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22579
22580 # Create a temporary old-style archive to link instead of a shared archive.
22581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22582
22583 # Commands used to build a shared archive.
22584 archive_cmds=$lt_archive_cmds
22585 archive_expsym_cmds=$lt_archive_expsym_cmds
22586
22587 # Commands used to build a loadable module if different from building
22588 # a shared archive.
22589 module_cmds=$lt_module_cmds
22590 module_expsym_cmds=$lt_module_expsym_cmds
22591
22592 # Whether we are building with GNU ld or not.
22593 with_gnu_ld=$lt_with_gnu_ld
22594
22595 # Flag that allows shared libraries with undefined symbols to be built.
22596 allow_undefined_flag=$lt_allow_undefined_flag
22597
22598 # Flag that enforces no undefined symbols.
22599 no_undefined_flag=$lt_no_undefined_flag
22600
22601 # Flag to hardcode \$libdir into a binary during linking.
22602 # This must work even if \$libdir does not exist
22603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22604
22605 # Whether we need a single "-rpath" flag with a separated argument.
22606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22607
22608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22609 # DIR into the resulting binary.
22610 hardcode_direct=$hardcode_direct
22611
22612 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22613 # DIR into the resulting binary and the resulting library dependency is
22614 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22615 # library is relocated.
22616 hardcode_direct_absolute=$hardcode_direct_absolute
22617
22618 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22619 # into the resulting binary.
22620 hardcode_minus_L=$hardcode_minus_L
22621
22622 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22623 # into the resulting binary.
22624 hardcode_shlibpath_var=$hardcode_shlibpath_var
22625
22626 # Set to "yes" if building a shared library automatically hardcodes DIR
22627 # into the library and all subsequent libraries and executables linked
22628 # against it.
22629 hardcode_automatic=$hardcode_automatic
22630
22631 # Set to yes if linker adds runtime paths of dependent libraries
22632 # to runtime path list.
22633 inherit_rpath=$inherit_rpath
22634
22635 # Whether libtool must link a program against all its dependency libraries.
22636 link_all_deplibs=$link_all_deplibs
22637
22638 # Set to "yes" if exported symbols are required.
22639 always_export_symbols=$always_export_symbols
22640
22641 # The commands to list exported symbols.
22642 export_symbols_cmds=$lt_export_symbols_cmds
22643
22644 # Symbols that should not be listed in the preloaded symbols.
22645 exclude_expsyms=$lt_exclude_expsyms
22646
22647 # Symbols that must always be exported.
22648 include_expsyms=$lt_include_expsyms
22649
22650 # Commands necessary for linking programs (against libraries) with templates.
22651 prelink_cmds=$lt_prelink_cmds
22652
22653 # Commands necessary for finishing linking programs.
22654 postlink_cmds=$lt_postlink_cmds
22655
22656 # Specify filename containing input files.
22657 file_list_spec=$lt_file_list_spec
22658
22659 # How to hardcode a shared library path into an executable.
22660 hardcode_action=$hardcode_action
22661
22662 # The directories searched by this compiler when creating a shared library.
22663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22664
22665 # Dependencies to place before and after the objects being linked to
22666 # create a shared library.
22667 predep_objects=$lt_predep_objects
22668 postdep_objects=$lt_postdep_objects
22669 predeps=$lt_predeps
22670 postdeps=$lt_postdeps
22671
22672 # The library search path used internally by the compiler when linking
22673 # a shared library.
22674 compiler_lib_search_path=$lt_compiler_lib_search_path
22675
22676 # ### END LIBTOOL CONFIG
22677
22678 _LT_EOF
22679
22680 case $host_os in
22681 aix3*)
22682 cat <<\_LT_EOF >> "$cfgfile"
22683 # AIX sometimes has problems with the GCC collect2 program. For some
22684 # reason, if we set the COLLECT_NAMES environment variable, the problems
22685 # vanish in a puff of smoke.
22686 if test "X${COLLECT_NAMES+set}" != Xset; then
22687 COLLECT_NAMES=
22688 export COLLECT_NAMES
22689 fi
22690 _LT_EOF
22691 ;;
22692 esac
22693
22694
22695 ltmain="$ac_aux_dir/ltmain.sh"
22696
22697
22698 # We use sed instead of cat because bash on DJGPP gets confused if
22699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22700 # text mode, it properly converts lines to CR/LF. This bash problem
22701 # is reportedly fixed, but why not run on old versions too?
22702 sed '$q' "$ltmain" >> "$cfgfile" \
22703 || (rm -f "$cfgfile"; exit 1)
22704
22705 if test x"$xsi_shell" = xyes; then
22706 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22707 func_dirname ()\
22708 {\
22709 \ case ${1} in\
22710 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22711 \ * ) func_dirname_result="${3}" ;;\
22712 \ esac\
22713 } # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
22720 func_basename ()\
22721 {\
22722 \ func_basename_result="${1##*/}"\
22723 } # Extended-shell func_basename 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_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22730 func_dirname_and_basename ()\
22731 {\
22732 \ case ${1} in\
22733 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22734 \ * ) func_dirname_result="${3}" ;;\
22735 \ esac\
22736 \ func_basename_result="${1##*/}"\
22737 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22738 && mv -f "$cfgfile.tmp" "$cfgfile" \
22739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22740 test 0 -eq $? || _lt_function_replace_fail=:
22741
22742
22743 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22744 func_stripname ()\
22745 {\
22746 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22747 \ # positional parameters, so assign one to ordinary parameter first.\
22748 \ func_stripname_result=${3}\
22749 \ func_stripname_result=${func_stripname_result#"${1}"}\
22750 \ func_stripname_result=${func_stripname_result%"${2}"}\
22751 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22752 && mv -f "$cfgfile.tmp" "$cfgfile" \
22753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22754 test 0 -eq $? || _lt_function_replace_fail=:
22755
22756
22757 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22758 func_split_long_opt ()\
22759 {\
22760 \ func_split_long_opt_name=${1%%=*}\
22761 \ func_split_long_opt_arg=${1#*=}\
22762 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22763 && mv -f "$cfgfile.tmp" "$cfgfile" \
22764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22765 test 0 -eq $? || _lt_function_replace_fail=:
22766
22767
22768 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22769 func_split_short_opt ()\
22770 {\
22771 \ func_split_short_opt_arg=${1#??}\
22772 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22773 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22774 && mv -f "$cfgfile.tmp" "$cfgfile" \
22775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22776 test 0 -eq $? || _lt_function_replace_fail=:
22777
22778
22779 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22780 func_lo2o ()\
22781 {\
22782 \ case ${1} in\
22783 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22784 \ *) func_lo2o_result=${1} ;;\
22785 \ esac\
22786 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22787 && mv -f "$cfgfile.tmp" "$cfgfile" \
22788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22789 test 0 -eq $? || _lt_function_replace_fail=:
22790
22791
22792 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22793 func_xform ()\
22794 {\
22795 func_xform_result=${1%.*}.lo\
22796 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22797 && mv -f "$cfgfile.tmp" "$cfgfile" \
22798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22799 test 0 -eq $? || _lt_function_replace_fail=:
22800
22801
22802 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22803 func_arith ()\
22804 {\
22805 func_arith_result=$(( $* ))\
22806 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22807 && mv -f "$cfgfile.tmp" "$cfgfile" \
22808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22809 test 0 -eq $? || _lt_function_replace_fail=:
22810
22811
22812 sed -e '/^func_len ()$/,/^} # func_len /c\
22813 func_len ()\
22814 {\
22815 func_len_result=${#1}\
22816 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22817 && mv -f "$cfgfile.tmp" "$cfgfile" \
22818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22819 test 0 -eq $? || _lt_function_replace_fail=:
22820
22821 fi
22822
22823 if test x"$lt_shell_append" = xyes; then
22824 sed -e '/^func_append ()$/,/^} # func_append /c\
22825 func_append ()\
22826 {\
22827 eval "${1}+=\\${2}"\
22828 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22829 && mv -f "$cfgfile.tmp" "$cfgfile" \
22830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22831 test 0 -eq $? || _lt_function_replace_fail=:
22832
22833
22834 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22835 func_append_quoted ()\
22836 {\
22837 \ func_quote_for_eval "${2}"\
22838 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22839 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22840 && mv -f "$cfgfile.tmp" "$cfgfile" \
22841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22842 test 0 -eq $? || _lt_function_replace_fail=:
22843
22844
22845 # Save a `func_append' function call where possible by direct use of '+='
22846 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22847 && mv -f "$cfgfile.tmp" "$cfgfile" \
22848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22849 test 0 -eq $? || _lt_function_replace_fail=:
22850 else
22851 # Save a `func_append' function call even when '+=' is not available
22852 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22853 && mv -f "$cfgfile.tmp" "$cfgfile" \
22854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22855 test 0 -eq $? || _lt_function_replace_fail=:
22856 fi
22857
22858 if test x"$_lt_function_replace_fail" = x":"; then
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22860 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22861 fi
22862
22863
22864 mv -f "$cfgfile" "$ofile" ||
22865 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22866 chmod +x "$ofile"
22867
22868
22869 cat <<_LT_EOF >> "$ofile"
22870
22871 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22872
22873 # The linker used to build libraries.
22874 LD=$lt_LD_CXX
22875
22876 # How to create reloadable object files.
22877 reload_flag=$lt_reload_flag_CXX
22878 reload_cmds=$lt_reload_cmds_CXX
22879
22880 # Commands used to build an old-style archive.
22881 old_archive_cmds=$lt_old_archive_cmds_CXX
22882
22883 # A language specific compiler.
22884 CC=$lt_compiler_CXX
22885
22886 # Is the compiler the GNU compiler?
22887 with_gcc=$GCC_CXX
22888
22889 # Compiler flag to turn off builtin functions.
22890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22891
22892 # Additional compiler flags for building library objects.
22893 pic_flag=$lt_lt_prog_compiler_pic_CXX
22894
22895 # How to pass a linker flag through the compiler.
22896 wl=$lt_lt_prog_compiler_wl_CXX
22897
22898 # Compiler flag to prevent dynamic linking.
22899 link_static_flag=$lt_lt_prog_compiler_static_CXX
22900
22901 # Does compiler simultaneously support -c and -o options?
22902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22903
22904 # Whether or not to add -lc for building shared libraries.
22905 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22906
22907 # Whether or not to disallow shared libs when runtime libs are static.
22908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22909
22910 # Compiler flag to allow reflexive dlopens.
22911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22912
22913 # Compiler flag to generate shared objects directly from archives.
22914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22915
22916 # Whether the compiler copes with passing no objects directly.
22917 compiler_needs_object=$lt_compiler_needs_object_CXX
22918
22919 # Create an old-style archive from a shared archive.
22920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22921
22922 # Create a temporary old-style archive to link instead of a shared archive.
22923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22924
22925 # Commands used to build a shared archive.
22926 archive_cmds=$lt_archive_cmds_CXX
22927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22928
22929 # Commands used to build a loadable module if different from building
22930 # a shared archive.
22931 module_cmds=$lt_module_cmds_CXX
22932 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22933
22934 # Whether we are building with GNU ld or not.
22935 with_gnu_ld=$lt_with_gnu_ld_CXX
22936
22937 # Flag that allows shared libraries with undefined symbols to be built.
22938 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22939
22940 # Flag that enforces no undefined symbols.
22941 no_undefined_flag=$lt_no_undefined_flag_CXX
22942
22943 # Flag to hardcode \$libdir into a binary during linking.
22944 # This must work even if \$libdir does not exist
22945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22946
22947 # Whether we need a single "-rpath" flag with a separated argument.
22948 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22949
22950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22951 # DIR into the resulting binary.
22952 hardcode_direct=$hardcode_direct_CXX
22953
22954 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22955 # DIR into the resulting binary and the resulting library dependency is
22956 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22957 # library is relocated.
22958 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22959
22960 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22961 # into the resulting binary.
22962 hardcode_minus_L=$hardcode_minus_L_CXX
22963
22964 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22965 # into the resulting binary.
22966 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22967
22968 # Set to "yes" if building a shared library automatically hardcodes DIR
22969 # into the library and all subsequent libraries and executables linked
22970 # against it.
22971 hardcode_automatic=$hardcode_automatic_CXX
22972
22973 # Set to yes if linker adds runtime paths of dependent libraries
22974 # to runtime path list.
22975 inherit_rpath=$inherit_rpath_CXX
22976
22977 # Whether libtool must link a program against all its dependency libraries.
22978 link_all_deplibs=$link_all_deplibs_CXX
22979
22980 # Set to "yes" if exported symbols are required.
22981 always_export_symbols=$always_export_symbols_CXX
22982
22983 # The commands to list exported symbols.
22984 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22985
22986 # Symbols that should not be listed in the preloaded symbols.
22987 exclude_expsyms=$lt_exclude_expsyms_CXX
22988
22989 # Symbols that must always be exported.
22990 include_expsyms=$lt_include_expsyms_CXX
22991
22992 # Commands necessary for linking programs (against libraries) with templates.
22993 prelink_cmds=$lt_prelink_cmds_CXX
22994
22995 # Commands necessary for finishing linking programs.
22996 postlink_cmds=$lt_postlink_cmds_CXX
22997
22998 # Specify filename containing input files.
22999 file_list_spec=$lt_file_list_spec_CXX
23000
23001 # How to hardcode a shared library path into an executable.
23002 hardcode_action=$hardcode_action_CXX
23003
23004 # The directories searched by this compiler when creating a shared library.
23005 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23006
23007 # Dependencies to place before and after the objects being linked to
23008 # create a shared library.
23009 predep_objects=$lt_predep_objects_CXX
23010 postdep_objects=$lt_postdep_objects_CXX
23011 predeps=$lt_predeps_CXX
23012 postdeps=$lt_postdeps_CXX
23013
23014 # The library search path used internally by the compiler when linking
23015 # a shared library.
23016 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23017
23018 # ### END LIBTOOL TAG CONFIG: CXX
23019 _LT_EOF
23020
23021 ;;
23022
23023 esac
23024 done # for ac_tag
23025
23026
23027 as_fn_exit 0
23028 _ACEOF
23029 ac_clean_files=$ac_clean_files_save
23030
23031 test $ac_write_fail = 0 ||
23032 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23033
23034
23035 # configure is writing to config.log, and then calls config.status.
23036 # config.status does its own redirection, appending to config.log.
23037 # Unfortunately, on DOS this fails, as config.log is still kept open
23038 # by configure, so config.status won't be able to write to it; its
23039 # output is simply discarded. So we exec the FD to /dev/null,
23040 # effectively closing config.log, so it can be properly (re)opened and
23041 # appended to by config.status. When coming back to configure, we
23042 # need to make the FD available again.
23043 if test "$no_create" != yes; then
23044 ac_cs_success=:
23045 ac_config_status_args=
23046 test "$silent" = yes &&
23047 ac_config_status_args="$ac_config_status_args --quiet"
23048 exec 5>/dev/null
23049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23050 exec 5>>config.log
23051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23052 # would make configure fail if this is the last instruction.
23053 $ac_cs_success || as_fn_exit 1
23054 fi
23055 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23057 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23058 fi
23059