]> git.saurik.com Git - cycript.git/blob - configure
Use pool.atexit to free Objective-C "list copies".
[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-2016 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 SO
642 LTFLAGS
643 LTLIBGCC
644 LTLIBTERMCAP
645 LTLIBREADLINE
646 CY_LIBCLANG
647 CY_ANDROID_FALSE
648 CY_ANDROID_TRUE
649 CY_ANDROID
650 CY_OBJECTIVEC_FALSE
651 CY_OBJECTIVEC_TRUE
652 CY_PYTHON_FALSE
653 CY_PYTHON_TRUE
654 CY_RUBY_FALSE
655 CY_RUBY_TRUE
656 CY_JAVA_FALSE
657 CY_JAVA_TRUE
658 LTOBJECTIVEC
659 GNUSTEP_CONFIG
660 CY_OBJECTIVEC
661 CY_PRELINK_FALSE
662 CY_PRELINK_TRUE
663 LTPYTHON
664 CY_PYTHON
665 LTRUBY
666 CY_RUBY
667 LIBRUBY21_LIBS
668 LIBRUBY21_CFLAGS
669 LTJAVA
670 CY_JAVA
671 LTLIBFFI
672 LIBFFI_LIBS
673 LIBFFI_CFLAGS
674 LTLIBSQLITE3
675 LTLIBUV
676 CY_SYSTEM
677 CY_EXECUTE_FALSE
678 CY_EXECUTE_TRUE
679 CY_ATTACH_FALSE
680 CY_ATTACH_TRUE
681 CY_CONSOLE_FALSE
682 CY_CONSOLE_TRUE
683 LTJAVASCRIPTCORE
684 WEBKIT_LIBS
685 WEBKIT_CFLAGS
686 CY_EXECUTE
687 PTHREAD_CFLAGS
688 PTHREAD_LIBS
689 PTHREAD_CC
690 ax_pthread_config
691 LFLAGS
692 GNUTAR
693 GPERF
694 FLEX
695 BISON
696 TIME
697 GIT
698 PKG_CONFIG_LIBDIR
699 PKG_CONFIG_PATH
700 PKG_CONFIG
701 HAVE_CXX11
702 LT_SYS_LIBRARY_PATH
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 RANLIB
710 DLLTOOL
711 OBJDUMP
712 LN_S
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 EGREP
719 GREP
720 SED
721 LIBTOOL
722 ac_ct_AR
723 AR
724 CXXCPPFLAGS_FOR_BUILD
725 CXXFLAGS_FOR_BUILD
726 CXXCPP_FOR_BUILD
727 ac_ct_CXX_FOR_BUILD
728 CXX_FOR_BUILD
729 CXXCPP
730 LDFLAGS_FOR_BUILD
731 CPPFLAGS_FOR_BUILD
732 CFLAGS_FOR_BUILD
733 BUILD_OBJEXT
734 BUILD_EXEEXT
735 CPP_FOR_BUILD
736 ac_ct_CC_FOR_BUILD
737 CC_FOR_BUILD
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 CPP
747 am__fastdepOBJCXX_FALSE
748 am__fastdepOBJCXX_TRUE
749 OBJCXXDEPMODE
750 ac_ct_OBJCXX
751 OBJCXXFLAGS
752 OBJCXX
753 am__fastdepCXX_FALSE
754 am__fastdepCXX_TRUE
755 CXXDEPMODE
756 ac_ct_CXX
757 CXXFLAGS
758 CXX
759 am__fastdepCC_FALSE
760 am__fastdepCC_TRUE
761 CCDEPMODE
762 am__nodep
763 AMDEPBACKSLASH
764 AMDEP_FALSE
765 AMDEP_TRUE
766 am__quote
767 am__include
768 DEPDIR
769 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 MAINT
777 MAINTAINER_MODE_FALSE
778 MAINTAINER_MODE_TRUE
779 AM_BACKSLASH
780 AM_DEFAULT_VERBOSITY
781 AM_DEFAULT_V
782 AM_V
783 am__untar
784 am__tar
785 AMTAR
786 am__leading_dot
787 SET_MAKE
788 AWK
789 mkdir_p
790 MKDIR_P
791 INSTALL_STRIP_PROGRAM
792 STRIP
793 install_sh
794 MAKEINFO
795 AUTOHEADER
796 AUTOMAKE
797 AUTOCONF
798 ACLOCAL
799 VERSION
800 PACKAGE
801 CYGPATH_W
802 am__isrc
803 INSTALL_DATA
804 INSTALL_SCRIPT
805 INSTALL_PROGRAM
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_URL
837 PACKAGE_BUGREPORT
838 PACKAGE_STRING
839 PACKAGE_VERSION
840 PACKAGE_TARNAME
841 PACKAGE_NAME
842 PATH_SEPARATOR
843 SHELL'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_silent_rules
848 enable_maintainer_mode
849 enable_dependency_tracking
850 enable_static
851 enable_shared
852 with_pic
853 enable_fast_install
854 with_aix_soname
855 with_gnu_ld
856 with_sysroot
857 enable_libtool_lock
858 enable_javascript
859 enable_console
860 enable_attach
861 with_python
862 with_libclang
863 '
864 ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 CXX
873 CXXFLAGS
874 CCC
875 OBJCXX
876 OBJCXXFLAGS
877 CPP
878 CXXCPP
879 LT_SYS_LIBRARY_PATH
880 PKG_CONFIG
881 PKG_CONFIG_PATH
882 PKG_CONFIG_LIBDIR
883 BISON
884 FLEX
885 GPERF
886 GNUTAR
887 LFLAGS
888 WEBKIT_CFLAGS
889 WEBKIT_LIBS
890 LIBFFI_CFLAGS
891 LIBFFI_LIBS
892 LIBRUBY21_CFLAGS
893 LIBRUBY21_LIBS
894 GNUSTEP_CONFIG'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
952 ac_prev=
953 continue
954 fi
955
956 case $ac_option in
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *=) ac_optarg= ;;
959 *) ac_optarg=yes ;;
960 esac
961
962 # Accept the important Cygnus configure options, so we can diagnose typos.
963
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
992
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1015
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1020
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1025
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1050
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1054
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1061
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1066
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1072
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1079
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1084
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1089
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1096
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1101
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1108
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1113
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1117
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1121
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1125
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1134
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1139
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1146
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1153
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1170
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1175
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1180
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1184
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1190
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1201
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1206
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1211
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1218
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1223
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1226
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1229
1230 -with-* | --with-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=\$ac_optarg ;;
1245
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
1261
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1265
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1272
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1279
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1282 ;;
1283
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1293
1294 *)
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300 ;;
1301
1302 esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1323 do
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of Cycript 0.9:";;
1506 esac
1507 cat <<\_ACEOF
1508
1509 Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-silent-rules less verbose build output (undo: "make V=1")
1514 --disable-silent-rules verbose build output (undo: "make V=0")
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
1518 --enable-dependency-tracking
1519 do not reject slow dependency extractors
1520 --disable-dependency-tracking
1521 speeds up one-time build
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --enable-javascript[=ENGINE]
1528 use a JavaScript runtime (currently the only
1529 available option for ENGINE is JavaScriptCore)
1530 [default=yes]
1531 --disable-console disable console
1532 --disable-attach disable attach
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1538 both]
1539 --with-aix-soname=aix|svr4|both
1540 shared library versioning (aka "SONAME") variant to
1541 provide on AIX, [default=aix].
1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1544 compiler's sysroot if not specified).
1545 --with-python support python (pass the path to python-config)
1546 --with-libclang build bridge definitions using this libclang
1547
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
1558 OBJCXX Objective C++ compiler command
1559 OBJCXXFLAGS Objective C++ compiler flags
1560 CPP C preprocessor
1561 CXXCPP C++ preprocessor
1562 LT_SYS_LIBRARY_PATH
1563 User-defined run-time library search path.
1564 PKG_CONFIG path to pkg-config utility
1565 PKG_CONFIG_PATH
1566 directories to add to pkg-config's search path
1567 PKG_CONFIG_LIBDIR
1568 path overriding pkg-config's built-in search path
1569 BISON GNU Project parser generator (yacc replacement)
1570 FLEX the fast lexical analyser generator
1571 GPERF perfect hash function generator
1572 GNUTAR a very sticky lump of files
1573 LFLAGS flex flags
1574 WEBKIT_CFLAGS
1575 C compiler flags for WEBKIT, overriding pkg-config
1576 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1577 LIBFFI_CFLAGS
1578 C compiler flags for LIBFFI, overriding pkg-config
1579 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1580 LIBRUBY21_CFLAGS
1581 C compiler flags for LIBRUBY21, overriding pkg-config
1582 LIBRUBY21_LIBS
1583 linker flags for LIBRUBY21, overriding pkg-config
1584 GNUSTEP_CONFIG
1585 prints information about the current gnustep installation
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to <saurik@saurik.com>.
1591 Cycript home page: <http://www.cycript.org/>.
1592 _ACEOF
1593 ac_status=$?
1594 fi
1595
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 Cycript configure 0.9
1655 generated by GNU Autoconf 2.69
1656
1657 Copyright (C) 2012 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660
1661 Copyright (C) 2009-2016 Jay Freeman (saurik)
1662 _ACEOF
1663 exit
1664 fi
1665
1666 ## ------------------------ ##
1667 ## Autoconf initialization. ##
1668 ## ------------------------ ##
1669
1670 # ac_fn_c_try_compile LINENO
1671 # --------------------------
1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_compile
1707
1708 # ac_fn_cxx_try_compile LINENO
1709 # ----------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_cxx_try_compile ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_cxx_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_cxx_try_compile
1745
1746 # ac_fn_objcxx_try_compile LINENO
1747 # -------------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_objcxx_try_compile ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_objcxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778 fi
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782 } # ac_fn_objcxx_try_compile
1783
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_cpp
1820
1821 # ac_fn_cxx_try_cpp LINENO
1822 # ------------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_cpp ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } > conftest.i && {
1843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_cxx_try_cpp
1857
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_link ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1878 fi
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 test -x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=1
1893 fi
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1901
1902 } # ac_fn_c_try_link
1903
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923 else
1924 eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_header_compile
1934
1935 # ac_fn_c_try_run LINENO
1936 # ----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938 # that executables *can* be run.
1939 ac_fn_c_try_run ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1960 ac_status=$?
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=$ac_status
1970 fi
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_c_try_run
1976
1977 # ac_fn_c_check_func LINENO FUNC VAR
1978 # ----------------------------------
1979 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1980 ac_fn_c_check_func ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1992 #define $2 innocuous_$2
1993
1994 /* System header to define __stub macros and hopefully few prototypes,
1995 which can conflict with char $2 (); below.
1996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997 <limits.h> exists even on freestanding compilers. */
1998
1999 #ifdef __STDC__
2000 # include <limits.h>
2001 #else
2002 # include <assert.h>
2003 #endif
2004
2005 #undef $2
2006
2007 /* Override any GCC internal prototype to avoid an error.
2008 Use char because int might match the return type of a GCC
2009 builtin and then its argument prototype would still apply. */
2010 #ifdef __cplusplus
2011 extern "C"
2012 #endif
2013 char $2 ();
2014 /* The GNU C library defines this for functions which it implements
2015 to always fail with ENOSYS. Some functions are actually named
2016 something starting with __ and the normal name is an alias. */
2017 #if defined __stub_$2 || defined __stub___$2
2018 choke me
2019 #endif
2020
2021 int
2022 main ()
2023 {
2024 return $2 ();
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_link "$LINENO"; then :
2030 eval "$3=yes"
2031 else
2032 eval "$3=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext \
2035 conftest$ac_exeext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_func
2043
2044 # ac_fn_cxx_try_link LINENO
2045 # -------------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_cxx_try_link ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext conftest$ac_exeext
2051 if { { ac_try="$ac_link"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest$ac_exeext && {
2070 test "$cross_compiling" = yes ||
2071 test -x conftest$ac_exeext
2072 }; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079 fi
2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082 # interfere with the next link command; also delete a directory that is
2083 # left behind by Apple's compiler. We do this before executing the actions.
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2087
2088 } # ac_fn_cxx_try_link
2089
2090 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2091 # ---------------------------------------------------------
2092 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093 # the include files in INCLUDES and setting the cache variable VAR
2094 # accordingly.
2095 ac_fn_cxx_check_header_mongrel ()
2096 {
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if eval \${$3+:} false; then :
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \${$3+:} false; then :
2102 $as_echo_n "(cached) " >&6
2103 fi
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 else
2108 # Is the header compilable?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110 $as_echo_n "checking $2 usability... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 $4
2114 #include <$2>
2115 _ACEOF
2116 if ac_fn_cxx_try_compile "$LINENO"; then :
2117 ac_header_compiler=yes
2118 else
2119 ac_header_compiler=no
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123 $as_echo "$ac_header_compiler" >&6; }
2124
2125 # Is the header present?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127 $as_echo_n "checking $2 presence... " >&6; }
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 #include <$2>
2131 _ACEOF
2132 if ac_fn_cxx_try_cpp "$LINENO"; then :
2133 ac_header_preproc=yes
2134 else
2135 ac_header_preproc=no
2136 fi
2137 rm -f conftest.err conftest.i conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139 $as_echo "$ac_header_preproc" >&6; }
2140
2141 # So? What about this header?
2142 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2143 yes:no: )
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148 ;;
2149 no:yes:* )
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2153 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2157 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2160 ( $as_echo "## -------------------------------- ##
2161 ## Report this to saurik@saurik.com ##
2162 ## -------------------------------- ##"
2163 ) | sed "s/^/$as_me: WARNING: /" >&2
2164 ;;
2165 esac
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 eval "$3=\$ac_header_compiler"
2172 fi
2173 eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 fi
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179 } # ac_fn_cxx_check_header_mongrel
2180
2181 # ac_fn_cxx_check_func LINENO FUNC VAR
2182 # ------------------------------------
2183 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2184 ac_fn_cxx_check_func ()
2185 {
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \${$3+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2194 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2196 #define $2 innocuous_$2
2197
2198 /* System header to define __stub macros and hopefully few prototypes,
2199 which can conflict with char $2 (); below.
2200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2201 <limits.h> exists even on freestanding compilers. */
2202
2203 #ifdef __STDC__
2204 # include <limits.h>
2205 #else
2206 # include <assert.h>
2207 #endif
2208
2209 #undef $2
2210
2211 /* Override any GCC internal prototype to avoid an error.
2212 Use char because int might match the return type of a GCC
2213 builtin and then its argument prototype would still apply. */
2214 #ifdef __cplusplus
2215 extern "C"
2216 #endif
2217 char $2 ();
2218 /* The GNU C library defines this for functions which it implements
2219 to always fail with ENOSYS. Some functions are actually named
2220 something starting with __ and the normal name is an alias. */
2221 #if defined __stub_$2 || defined __stub___$2
2222 choke me
2223 #endif
2224
2225 int
2226 main ()
2227 {
2228 return $2 ();
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_cxx_try_link "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext \
2239 conftest$ac_exeext conftest.$ac_ext
2240 fi
2241 eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245
2246 } # ac_fn_cxx_check_func
2247
2248 # ac_fn_objcxx_try_link LINENO
2249 # ----------------------------
2250 # Try to link conftest.$ac_ext, and return whether this succeeded.
2251 ac_fn_objcxx_try_link ()
2252 {
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 rm -f conftest.$ac_objext conftest$ac_exeext
2255 if { { ac_try="$ac_link"
2256 case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259 esac
2260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261 $as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_link") 2>conftest.err
2263 ac_status=$?
2264 if test -s conftest.err; then
2265 grep -v '^ *+' conftest.err >conftest.er1
2266 cat conftest.er1 >&5
2267 mv -f conftest.er1 conftest.err
2268 fi
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; } && {
2271 test -z "$ac_objcxx_werror_flag" ||
2272 test ! -s conftest.err
2273 } && test -s conftest$ac_exeext && {
2274 test "$cross_compiling" = yes ||
2275 test -x conftest$ac_exeext
2276 }; then :
2277 ac_retval=0
2278 else
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_retval=1
2283 fi
2284 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2285 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2286 # interfere with the next link command; also delete a directory that is
2287 # left behind by Apple's compiler. We do this before executing the actions.
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval
2291
2292 } # ac_fn_objcxx_try_link
2293 cat >config.log <<_ACEOF
2294 This file contains any messages produced by compilers while
2295 running configure, to aid debugging if configure makes a mistake.
2296
2297 It was created by Cycript $as_me 0.9, which was
2298 generated by GNU Autoconf 2.69. Invocation command line was
2299
2300 $ $0 $@
2301
2302 _ACEOF
2303 exec 5>>config.log
2304 {
2305 cat <<_ASUNAME
2306 ## --------- ##
2307 ## Platform. ##
2308 ## --------- ##
2309
2310 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315
2316 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2318
2319 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2320 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2321 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2323 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2324 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2325 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2326
2327 _ASUNAME
2328
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 $as_echo "PATH: $as_dir"
2335 done
2336 IFS=$as_save_IFS
2337
2338 } >&5
2339
2340 cat >&5 <<_ACEOF
2341
2342
2343 ## ----------- ##
2344 ## Core tests. ##
2345 ## ----------- ##
2346
2347 _ACEOF
2348
2349
2350 # Keep a trace of the command line.
2351 # Strip out --no-create and --no-recursion so they do not pile up.
2352 # Strip out --silent because we don't want to record it for future runs.
2353 # Also quote any args containing shell meta-characters.
2354 # Make two passes to allow for proper duplicate-argument suppression.
2355 ac_configure_args=
2356 ac_configure_args0=
2357 ac_configure_args1=
2358 ac_must_keep_next=false
2359 for ac_pass in 1 2
2360 do
2361 for ac_arg
2362 do
2363 case $ac_arg in
2364 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366 | -silent | --silent | --silen | --sile | --sil)
2367 continue ;;
2368 *\'*)
2369 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 esac
2371 case $ac_pass in
2372 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373 2)
2374 as_fn_append ac_configure_args1 " '$ac_arg'"
2375 if test $ac_must_keep_next = true; then
2376 ac_must_keep_next=false # Got value, back to normal.
2377 else
2378 case $ac_arg in
2379 *=* | --config-cache | -C | -disable-* | --disable-* \
2380 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382 | -with-* | --with-* | -without-* | --without-* | --x)
2383 case "$ac_configure_args0 " in
2384 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385 esac
2386 ;;
2387 -* ) ac_must_keep_next=true ;;
2388 esac
2389 fi
2390 as_fn_append ac_configure_args " '$ac_arg'"
2391 ;;
2392 esac
2393 done
2394 done
2395 { ac_configure_args0=; unset ac_configure_args0;}
2396 { ac_configure_args1=; unset ac_configure_args1;}
2397
2398 # When interrupted or exit'd, cleanup temporary files, and complete
2399 # config.log. We remove comments because anyway the quotes in there
2400 # would cause problems or look ugly.
2401 # WARNING: Use '\'' to represent an apostrophe within the trap.
2402 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403 trap 'exit_status=$?
2404 # Save into config.log some information that might help in debugging.
2405 {
2406 echo
2407
2408 $as_echo "## ---------------- ##
2409 ## Cache variables. ##
2410 ## ---------------- ##"
2411 echo
2412 # The following way of writing the cache mishandles newlines in values,
2413 (
2414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in #(
2417 *${as_nl}*)
2418 case $ac_var in #(
2419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421 esac
2422 case $ac_var in #(
2423 _ | IFS | as_nl) ;; #(
2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;;
2426 esac ;;
2427 esac
2428 done
2429 (set) 2>&1 |
2430 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431 *${as_nl}ac_space=\ *)
2432 sed -n \
2433 "s/'\''/'\''\\\\'\'''\''/g;
2434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435 ;; #(
2436 *)
2437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438 ;;
2439 esac |
2440 sort
2441 )
2442 echo
2443
2444 $as_echo "## ----------------- ##
2445 ## Output variables. ##
2446 ## ----------------- ##"
2447 echo
2448 for ac_var in $ac_subst_vars
2449 do
2450 eval ac_val=\$$ac_var
2451 case $ac_val in
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 esac
2454 $as_echo "$ac_var='\''$ac_val'\''"
2455 done | sort
2456 echo
2457
2458 if test -n "$ac_subst_files"; then
2459 $as_echo "## ------------------- ##
2460 ## File substitutions. ##
2461 ## ------------------- ##"
2462 echo
2463 for ac_var in $ac_subst_files
2464 do
2465 eval ac_val=\$$ac_var
2466 case $ac_val in
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 esac
2469 $as_echo "$ac_var='\''$ac_val'\''"
2470 done | sort
2471 echo
2472 fi
2473
2474 if test -s confdefs.h; then
2475 $as_echo "## ----------- ##
2476 ## confdefs.h. ##
2477 ## ----------- ##"
2478 echo
2479 cat confdefs.h
2480 echo
2481 fi
2482 test "$ac_signal" != 0 &&
2483 $as_echo "$as_me: caught signal $ac_signal"
2484 $as_echo "$as_me: exit $exit_status"
2485 } >&5
2486 rm -f core *.core core.conftest.* &&
2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488 exit $exit_status
2489 ' 0
2490 for ac_signal in 1 2 13 15; do
2491 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492 done
2493 ac_signal=0
2494
2495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2496 rm -f -r conftest* confdefs.h
2497
2498 $as_echo "/* confdefs.h */" > confdefs.h
2499
2500 # Predefined preprocessor variables.
2501
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_NAME "$PACKAGE_NAME"
2504 _ACEOF
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508 _ACEOF
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512 _ACEOF
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_STRING "$PACKAGE_STRING"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520 _ACEOF
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_URL "$PACKAGE_URL"
2524 _ACEOF
2525
2526
2527 # Let the site file select an alternate cache file if it wants to.
2528 # Prefer an explicitly selected file to automatically selected ones.
2529 ac_site_file1=NONE
2530 ac_site_file2=NONE
2531 if test -n "$CONFIG_SITE"; then
2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1=./$CONFIG_SITE;;
2535 */*) ac_site_file1=$CONFIG_SITE;;
2536 *) ac_site_file1=./$CONFIG_SITE;;
2537 esac
2538 elif test "x$prefix" != xNONE; then
2539 ac_site_file1=$prefix/share/config.site
2540 ac_site_file2=$prefix/etc/config.site
2541 else
2542 ac_site_file1=$ac_default_prefix/share/config.site
2543 ac_site_file2=$ac_default_prefix/etc/config.site
2544 fi
2545 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546 do
2547 test "x$ac_site_file" = xNONE && continue
2548 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551 sed 's/^/| /' "$ac_site_file" >&5
2552 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 as_fn_error $? "failed to load site script $ac_site_file
2556 See \`config.log' for more details" "$LINENO" 5; }
2557 fi
2558 done
2559
2560 if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files
2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
2566 case $cache_file in
2567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568 *) . "./$cache_file";;
2569 esac
2570 fi
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2574 >$cache_file
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626 done
2627 if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633 fi
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646
2647
2648 ac_aux_dir=
2649 for ac_dir in . "$srcdir"/.; do
2650 if test -f "$ac_dir/install-sh"; then
2651 ac_aux_dir=$ac_dir
2652 ac_install_sh="$ac_aux_dir/install-sh -c"
2653 break
2654 elif test -f "$ac_dir/install.sh"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/install.sh -c"
2657 break
2658 elif test -f "$ac_dir/shtool"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/shtool install -c"
2661 break
2662 fi
2663 done
2664 if test -z "$ac_aux_dir"; then
2665 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2666 fi
2667
2668 # These three variables are undocumented and unsupported,
2669 # and are intended to be withdrawn in a future Autoconf release.
2670 # They can cause serious problems if a builder's source tree is in a directory
2671 # whose full name contains unusual characters.
2672 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2673 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2674 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2675
2676
2677
2678 ac_config_headers="$ac_config_headers config.h"
2679
2680
2681 am__api_version='1.15'
2682
2683 # Find a good install program. We prefer a C program (faster),
2684 # so one script is as good as another. But avoid the broken or
2685 # incompatible versions:
2686 # SysV /etc/install, /usr/sbin/install
2687 # SunOS /usr/etc/install
2688 # IRIX /sbin/install
2689 # AIX /bin/install
2690 # AmigaOS /C/install, which installs bootblocks on floppy discs
2691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694 # OS/2's system install, which has a completely different semantic
2695 # ./install, which can be erroneously created by make from ./install.sh.
2696 # Reject install programs that cannot install multiple files.
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2699 if test -z "$INSTALL"; then
2700 if ${ac_cv_path_install+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 # Account for people who put trailing slashes in PATH elements.
2709 case $as_dir/ in #((
2710 ./ | .// | /[cC]/* | \
2711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2712 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2713 /usr/ucb/* ) ;;
2714 *)
2715 # OSF1 and SCO ODT 3.0 have their own names for install.
2716 # Don't use installbsd from OSF since it installs stuff as root
2717 # by default.
2718 for ac_prog in ginstall scoinst install; do
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2721 if test $ac_prog = install &&
2722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2723 # AIX install. It has an incompatible calling convention.
2724 :
2725 elif test $ac_prog = install &&
2726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # program-specific install script used by HP pwplus--don't use.
2728 :
2729 else
2730 rm -rf conftest.one conftest.two conftest.dir
2731 echo one > conftest.one
2732 echo two > conftest.two
2733 mkdir conftest.dir
2734 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2735 test -s conftest.one && test -s conftest.two &&
2736 test -s conftest.dir/conftest.one &&
2737 test -s conftest.dir/conftest.two
2738 then
2739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2740 break 3
2741 fi
2742 fi
2743 fi
2744 done
2745 done
2746 ;;
2747 esac
2748
2749 done
2750 IFS=$as_save_IFS
2751
2752 rm -rf conftest.one conftest.two conftest.dir
2753
2754 fi
2755 if test "${ac_cv_path_install+set}" = set; then
2756 INSTALL=$ac_cv_path_install
2757 else
2758 # As a last resort, use the slow shell script. Don't cache a
2759 # value for INSTALL within a source directory, because that will
2760 # break other packages using the cache if that directory is
2761 # removed, or if the value is a relative name.
2762 INSTALL=$ac_install_sh
2763 fi
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2766 $as_echo "$INSTALL" >&6; }
2767
2768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2769 # It thinks the first close brace ends the variable substitution.
2770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2771
2772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2773
2774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2775
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2777 $as_echo_n "checking whether build environment is sane... " >&6; }
2778 # Reject unsafe characters in $srcdir or the absolute working directory
2779 # name. Accept space and tab only in the latter.
2780 am_lf='
2781 '
2782 case `pwd` in
2783 *[\\\"\#\$\&\'\`$am_lf]*)
2784 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2785 esac
2786 case $srcdir in
2787 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2788 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2789 esac
2790
2791 # Do 'set' in a subshell so we don't clobber the current shell's
2792 # arguments. Must try -L first in case configure is actually a
2793 # symlink; some systems play weird games with the mod time of symlinks
2794 # (eg FreeBSD returns the mod time of the symlink's containing
2795 # directory).
2796 if (
2797 am_has_slept=no
2798 for am_try in 1 2; do
2799 echo "timestamp, slept: $am_has_slept" > conftest.file
2800 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2801 if test "$*" = "X"; then
2802 # -L didn't work.
2803 set X `ls -t "$srcdir/configure" conftest.file`
2804 fi
2805 if test "$*" != "X $srcdir/configure conftest.file" \
2806 && test "$*" != "X conftest.file $srcdir/configure"; then
2807
2808 # If neither matched, then we have a broken ls. This can happen
2809 # if, for instance, CONFIG_SHELL is bash and it inherits a
2810 # broken ls alias from the environment. This has actually
2811 # happened. Such a system could not be considered "sane".
2812 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2813 alias in your environment" "$LINENO" 5
2814 fi
2815 if test "$2" = conftest.file || test $am_try -eq 2; then
2816 break
2817 fi
2818 # Just in case.
2819 sleep 1
2820 am_has_slept=yes
2821 done
2822 test "$2" = conftest.file
2823 )
2824 then
2825 # Ok.
2826 :
2827 else
2828 as_fn_error $? "newly created file is older than distributed files!
2829 Check your system clock" "$LINENO" 5
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832 $as_echo "yes" >&6; }
2833 # If we didn't sleep, we still need to ensure time stamps of config.status and
2834 # generated files are strictly newer.
2835 am_sleep_pid=
2836 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2837 ( sleep 1 ) &
2838 am_sleep_pid=$!
2839 fi
2840
2841 rm -f conftest.file
2842
2843 test "$program_prefix" != NONE &&
2844 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2845 # Use a double $ so make ignores it.
2846 test "$program_suffix" != NONE &&
2847 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2848 # Double any \ or $.
2849 # By default was `s,x,x', remove it if useless.
2850 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2851 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2852
2853 # Expand $ac_aux_dir to an absolute path.
2854 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2855
2856 if test x"${MISSING+set}" != xset; then
2857 case $am_aux_dir in
2858 *\ * | *\ *)
2859 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2860 *)
2861 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2862 esac
2863 fi
2864 # Use eval to expand $SHELL
2865 if eval "$MISSING --is-lightweight"; then
2866 am_missing_run="$MISSING "
2867 else
2868 am_missing_run=
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2870 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2871 fi
2872
2873 if test x"${install_sh+set}" != xset; then
2874 case $am_aux_dir in
2875 *\ * | *\ *)
2876 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2877 *)
2878 install_sh="\${SHELL} $am_aux_dir/install-sh"
2879 esac
2880 fi
2881
2882 # Installed binaries are usually stripped using 'strip' when the user
2883 # run "make install-strip". However 'strip' might not be the right
2884 # tool to use in cross-compilation environments, therefore Automake
2885 # will honor the 'STRIP' environment variable to overrule this program.
2886 if test "$cross_compiling" != no; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}strip; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_STRIP+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$STRIP"; then
2896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 STRIP=$ac_cv_prog_STRIP
2916 if test -n "$STRIP"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918 $as_echo "$STRIP" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924
2925 fi
2926 if test -z "$ac_cv_prog_STRIP"; then
2927 ac_ct_STRIP=$STRIP
2928 # Extract the first word of "strip", so it can be a program name with args.
2929 set dummy strip; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_STRIP"; then
2936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_STRIP="strip"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956 if test -n "$ac_ct_STRIP"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958 $as_echo "$ac_ct_STRIP" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964 if test "x$ac_ct_STRIP" = x; then
2965 STRIP=":"
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973 STRIP=$ac_ct_STRIP
2974 fi
2975 else
2976 STRIP="$ac_cv_prog_STRIP"
2977 fi
2978
2979 fi
2980 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2983 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2984 if test -z "$MKDIR_P"; then
2985 if ${ac_cv_path_mkdir+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_prog in mkdir gmkdir; do
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2996 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997 'mkdir (GNU coreutils) '* | \
2998 'mkdir (coreutils) '* | \
2999 'mkdir (fileutils) '4.1*)
3000 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3001 break 3;;
3002 esac
3003 done
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009
3010 test -d ./--version && rmdir ./--version
3011 if test "${ac_cv_path_mkdir+set}" = set; then
3012 MKDIR_P="$ac_cv_path_mkdir -p"
3013 else
3014 # As a last resort, use the slow shell script. Don't cache a
3015 # value for MKDIR_P within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the value is a relative name.
3018 MKDIR_P="$ac_install_sh -d"
3019 fi
3020 fi
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022 $as_echo "$MKDIR_P" >&6; }
3023
3024 for ac_prog in gawk mawk nawk awk
3025 do
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_AWK+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_AWK="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 AWK=$ac_cv_prog_AWK
3054 if test -n "$AWK"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3056 $as_echo "$AWK" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063 test -n "$AWK" && break
3064 done
3065
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3067 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3068 set x ${MAKE-make}
3069 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3070 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 cat >conftest.make <<\_ACEOF
3074 SHELL = /bin/sh
3075 all:
3076 @echo '@@@%%%=$(MAKE)=@@@%%%'
3077 _ACEOF
3078 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3079 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3080 *@@@%%%=?*=@@@%%%*)
3081 eval ac_cv_prog_make_${ac_make}_set=yes;;
3082 *)
3083 eval ac_cv_prog_make_${ac_make}_set=no;;
3084 esac
3085 rm -f conftest.make
3086 fi
3087 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089 $as_echo "yes" >&6; }
3090 SET_MAKE=
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 SET_MAKE="MAKE=${MAKE-make}"
3095 fi
3096
3097 rm -rf .tst 2>/dev/null
3098 mkdir .tst 2>/dev/null
3099 if test -d .tst; then
3100 am__leading_dot=.
3101 else
3102 am__leading_dot=_
3103 fi
3104 rmdir .tst 2>/dev/null
3105
3106 # Check whether --enable-silent-rules was given.
3107 if test "${enable_silent_rules+set}" = set; then :
3108 enableval=$enable_silent_rules;
3109 fi
3110
3111 case $enable_silent_rules in # (((
3112 yes) AM_DEFAULT_VERBOSITY=0;;
3113 no) AM_DEFAULT_VERBOSITY=1;;
3114 *) AM_DEFAULT_VERBOSITY=1;;
3115 esac
3116 am_make=${MAKE-make}
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3119 if ${am_cv_make_support_nested_variables+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if $as_echo 'TRUE=$(BAR$(V))
3123 BAR0=false
3124 BAR1=true
3125 V=1
3126 am__doit:
3127 @$(TRUE)
3128 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3129 am_cv_make_support_nested_variables=yes
3130 else
3131 am_cv_make_support_nested_variables=no
3132 fi
3133 fi
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3136 if test $am_cv_make_support_nested_variables = yes; then
3137 AM_V='$(V)'
3138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3139 else
3140 AM_V=$AM_DEFAULT_VERBOSITY
3141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3142 fi
3143 AM_BACKSLASH='\'
3144
3145 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3147 # is not polluted with repeated "-I."
3148 am__isrc=' -I$(srcdir)'
3149 # test to see if srcdir already configured
3150 if test -f $srcdir/config.status; then
3151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3152 fi
3153 fi
3154
3155 # test whether we have cygpath
3156 if test -z "$CYGPATH_W"; then
3157 if (cygpath --version) >/dev/null 2>/dev/null; then
3158 CYGPATH_W='cygpath -w'
3159 else
3160 CYGPATH_W=echo
3161 fi
3162 fi
3163
3164
3165 # Define the identity of the package.
3166 PACKAGE='cycript'
3167 VERSION='0.9'
3168
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE "$PACKAGE"
3172 _ACEOF
3173
3174
3175 cat >>confdefs.h <<_ACEOF
3176 #define VERSION "$VERSION"
3177 _ACEOF
3178
3179 # Some tools Automake needs.
3180
3181 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3182
3183
3184 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3185
3186
3187 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3188
3189
3190 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3191
3192
3193 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3194
3195 # For better backward compatibility. To be removed once Automake 1.9.x
3196 # dies out for good. For more background, see:
3197 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3198 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3199 mkdir_p='$(MKDIR_P)'
3200
3201 # We need awk for the "check" target (and possibly the TAP driver). The
3202 # system "awk" is bad on some platforms.
3203 # Always define AMTAR for backward compatibility. Yes, it's still used
3204 # in the wild :-( We should find a proper way to deprecate it ...
3205 AMTAR='$${TAR-tar}'
3206
3207
3208 # We'll loop over all known methods to create a tar archive until one works.
3209 _am_tools='gnutar pax cpio none'
3210
3211 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3212
3213
3214
3215
3216
3217
3218 # POSIX will say in a future version that running "rm -f" with no argument
3219 # is OK; and we want to be able to make that assumption in our Makefile
3220 # recipes. So use an aggressive probe to check that the usage we want is
3221 # actually supported "in the wild" to an acceptable degree.
3222 # See automake bug#10828.
3223 # To make any issue more visible, cause the running configure to be aborted
3224 # by default if the 'rm' program in use doesn't match our expectations; the
3225 # user can still override this though.
3226 if rm -f && rm -fr && rm -rf; then : OK; else
3227 cat >&2 <<'END'
3228 Oops!
3229
3230 Your 'rm' program seems unable to run without file operands specified
3231 on the command line, even when the '-f' option is present. This is contrary
3232 to the behaviour of most rm programs out there, and not conforming with
3233 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3234
3235 Please tell bug-automake@gnu.org about your system, including the value
3236 of your $PATH and any error possibly output before this message. This
3237 can help us improve future automake versions.
3238
3239 END
3240 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3241 echo 'Configuration will proceed anyway, since you have set the' >&2
3242 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3243 echo >&2
3244 else
3245 cat >&2 <<'END'
3246 Aborting the configuration process, to ensure you take notice of the issue.
3247
3248 You can download and install GNU coreutils to get an 'rm' implementation
3249 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3250
3251 If you want to complete the configuration process using your problematic
3252 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3253 to "yes", and re-run configure.
3254
3255 END
3256 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3257 fi
3258 fi
3259
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3262 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3263 # Check whether --enable-maintainer-mode was given.
3264 if test "${enable_maintainer_mode+set}" = set; then :
3265 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3266 else
3267 USE_MAINTAINER_MODE=no
3268 fi
3269
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3271 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3272 if test $USE_MAINTAINER_MODE = yes; then
3273 MAINTAINER_MODE_TRUE=
3274 MAINTAINER_MODE_FALSE='#'
3275 else
3276 MAINTAINER_MODE_TRUE='#'
3277 MAINTAINER_MODE_FALSE=
3278 fi
3279
3280 MAINT=$MAINTAINER_MODE_TRUE
3281
3282
3283
3284 ac_ext=c
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$ac_cv_prog_CC"; then
3329 ac_ct_CC=$CC
3330 # Extract the first word of "gcc", so it can be a program name with args.
3331 set dummy gcc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test -n "$ac_ct_CC"; then
3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_ac_ct_CC="gcc"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351 done
3352 done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358 if test -n "$ac_ct_CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360 $as_echo "$ac_ct_CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366 if test "x$ac_ct_CC" = x; then
3367 CC=""
3368 else
3369 case $cross_compiling:$ac_tool_warned in
3370 yes:)
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375 CC=$ac_ct_CC
3376 fi
3377 else
3378 CC="$ac_cv_prog_CC"
3379 fi
3380
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}cc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_CC="${ac_tool_prefix}cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 fi
3421 fi
3422 if test -z "$CC"; then
3423 # Extract the first word of "cc", so it can be a program name with args.
3424 set dummy cc; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433 ac_prog_rejected=no
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3442 ac_prog_rejected=yes
3443 continue
3444 fi
3445 ac_cv_prog_CC="cc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 if test $ac_prog_rejected = yes; then
3454 # We found a bogon in the path, so make sure we never use it.
3455 set dummy $ac_cv_prog_CC
3456 shift
3457 if test $# != 0; then
3458 # We chose a different compiler from the bogus one.
3459 # However, it has the same basename, so the bogon will be chosen
3460 # first if we set CC to just the basename; use the full file name.
3461 shift
3462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3463 fi
3464 fi
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476
3477 fi
3478 if test -z "$CC"; then
3479 if test -n "$ac_tool_prefix"; then
3480 for ac_prog in cl.exe
3481 do
3482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3513 else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 fi
3517
3518
3519 test -n "$CC" && break
3520 done
3521 fi
3522 if test -z "$CC"; then
3523 ac_ct_CC=$CC
3524 for ac_prog in cl.exe
3525 do
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_ac_ct_CC="$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556 $as_echo "$ac_ct_CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 fi
3561
3562
3563 test -n "$ac_ct_CC" && break
3564 done
3565
3566 if test "x$ac_ct_CC" = x; then
3567 CC=""
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575 CC=$ac_ct_CC
3576 fi
3577 fi
3578
3579 fi
3580
3581
3582 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "no acceptable C compiler found in \$PATH
3585 See \`config.log' for more details" "$LINENO" 5; }
3586
3587 # Provide some information about the compiler.
3588 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3589 set X $ac_compile
3590 ac_compiler=$2
3591 for ac_option in --version -v -V -qversion; do
3592 { { ac_try="$ac_compiler $ac_option >&5"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3600 ac_status=$?
3601 if test -s conftest.err; then
3602 sed '10a\
3603 ... rest of stderr output deleted ...
3604 10q' conftest.err >conftest.er1
3605 cat conftest.er1 >&5
3606 fi
3607 rm -f conftest.er1 conftest.err
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }
3610 done
3611
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 ac_clean_files_save=$ac_clean_files
3624 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3625 # Try to create an executable without -o first, disregard a.out.
3626 # It will help us diagnose broken compilers, and finding out an intuition
3627 # of exeext.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629 $as_echo_n "checking whether the C compiler works... " >&6; }
3630 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3631
3632 # The possible output files:
3633 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3634
3635 ac_rmfiles=
3636 for ac_file in $ac_files
3637 do
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3641 esac
3642 done
3643 rm -f $ac_rmfiles
3644
3645 if { { ac_try="$ac_link_default"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link_default") 2>&5
3653 ac_status=$?
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; then :
3656 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3657 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3658 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3659 # so that the user can short-circuit this test for compilers unknown to
3660 # Autoconf.
3661 for ac_file in $ac_files ''
3662 do
3663 test -f "$ac_file" || continue
3664 case $ac_file in
3665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3666 ;;
3667 [ab].out )
3668 # We found the default executable, but exeext='' is most
3669 # certainly right.
3670 break;;
3671 *.* )
3672 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3673 then :; else
3674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3675 fi
3676 # We set ac_cv_exeext here because the later test for it is not
3677 # safe: cross compilers may not add the suffix if given an `-o'
3678 # argument, so we may need to know it at that point already.
3679 # Even if this section looks crufty: it has the advantage of
3680 # actually working.
3681 break;;
3682 * )
3683 break;;
3684 esac
3685 done
3686 test "$ac_cv_exeext" = no && ac_cv_exeext=
3687
3688 else
3689 ac_file=''
3690 fi
3691 if test -z "$ac_file"; then :
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error 77 "C compiler cannot create executables
3700 See \`config.log' for more details" "$LINENO" 5; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3706 $as_echo_n "checking for C compiler default output file name... " >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3708 $as_echo "$ac_file" >&6; }
3709 ac_exeext=$ac_cv_exeext
3710
3711 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3712 ac_clean_files=$ac_clean_files_save
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3714 $as_echo_n "checking for suffix of executables... " >&6; }
3715 if { { ac_try="$ac_link"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3727 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3728 # work properly (i.e., refer to `conftest.exe'), while it won't with
3729 # `rm'.
3730 for ac_file in conftest.exe conftest conftest.*; do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3735 break;;
3736 * ) break;;
3737 esac
3738 done
3739 else
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3743 See \`config.log' for more details" "$LINENO" 5; }
3744 fi
3745 rm -f conftest conftest$ac_cv_exeext
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3747 $as_echo "$ac_cv_exeext" >&6; }
3748
3749 rm -f conftest.$ac_ext
3750 EXEEXT=$ac_cv_exeext
3751 ac_exeext=$EXEEXT
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <stdio.h>
3755 int
3756 main ()
3757 {
3758 FILE *f = fopen ("conftest.out", "w");
3759 return ferror (f) || fclose (f) != 0;
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 ac_clean_files="$ac_clean_files conftest.out"
3766 # Check that the compiler produces executables we can run. If not, either
3767 # the compiler is broken, or we cross compile.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3769 $as_echo_n "checking whether we are cross compiling... " >&6; }
3770 if test "$cross_compiling" != yes; then
3771 { { ac_try="$ac_link"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3779 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3782 if { ac_try='./conftest$ac_cv_exeext'
3783 { { case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_try") 2>&5
3790 ac_status=$?
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }; }; then
3793 cross_compiling=no
3794 else
3795 if test "$cross_compiling" = maybe; then
3796 cross_compiling=yes
3797 else
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error $? "cannot run C compiled programs.
3801 If you meant to cross compile, use \`--host'.
3802 See \`config.log' for more details" "$LINENO" 5; }
3803 fi
3804 fi
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3807 $as_echo "$cross_compiling" >&6; }
3808
3809 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3810 ac_clean_files=$ac_clean_files_save
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812 $as_echo_n "checking for suffix of object files... " >&6; }
3813 if ${ac_cv_objext+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.o conftest.obj
3828 if { { ac_try="$ac_compile"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_compile") 2>&5
3836 ac_status=$?
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 for ac_file in conftest.o conftest.obj conftest.*; do
3840 test -f "$ac_file" || continue;
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3844 break;;
3845 esac
3846 done
3847 else
3848 $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot compute suffix of object files: cannot compile
3854 See \`config.log' for more details" "$LINENO" 5; }
3855 fi
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859 $as_echo "$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3861 ac_objext=$OBJEXT
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864 if ${ac_cv_c_compiler_gnu+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869
3870 int
3871 main ()
3872 {
3873 #ifndef __GNUC__
3874 choke me
3875 #endif
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_compiler_gnu=yes
3883 else
3884 ac_compiler_gnu=no
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3888
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3892 if test $ac_compiler_gnu = yes; then
3893 GCC=yes
3894 else
3895 GCC=
3896 fi
3897 ac_test_CFLAGS=${CFLAGS+set}
3898 ac_save_CFLAGS=$CFLAGS
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3901 if ${ac_cv_prog_cc_g+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 ac_save_c_werror_flag=$ac_c_werror_flag
3905 ac_c_werror_flag=yes
3906 ac_cv_prog_cc_g=no
3907 CFLAGS="-g"
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910
3911 int
3912 main ()
3913 {
3914
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_g=yes
3921 else
3922 CFLAGS=""
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935
3936 else
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3938 CFLAGS="-g"
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 int
3943 main ()
3944 {
3945
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_cv_prog_cc_g=yes
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961 $as_echo "$ac_cv_prog_cc_g" >&6; }
3962 if test "$ac_test_CFLAGS" = set; then
3963 CFLAGS=$ac_save_CFLAGS
3964 elif test $ac_cv_prog_cc_g = yes; then
3965 if test "$GCC" = yes; then
3966 CFLAGS="-g -O2"
3967 else
3968 CFLAGS="-g"
3969 fi
3970 else
3971 if test "$GCC" = yes; then
3972 CFLAGS="-O2"
3973 else
3974 CFLAGS=
3975 fi
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979 if ${ac_cv_prog_cc_c89+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 ac_cv_prog_cc_c89=no
3983 ac_save_CC=$CC
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #include <stdarg.h>
3987 #include <stdio.h>
3988 struct stat;
3989 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3990 struct buf { int x; };
3991 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3992 static char *e (p, i)
3993 char **p;
3994 int i;
3995 {
3996 return p[i];
3997 }
3998 static char *f (char * (*g) (char **, int), char **p, ...)
3999 {
4000 char *s;
4001 va_list v;
4002 va_start (v,p);
4003 s = g (p, va_arg (v,int));
4004 va_end (v);
4005 return s;
4006 }
4007
4008 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4009 function prototypes and stuff, but not '\xHH' hex character constants.
4010 These don't provoke an error unfortunately, instead are silently treated
4011 as 'x'. The following induces an error, until -std is added to get
4012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4013 array size at least. It's necessary to write '\x00'==0 to get something
4014 that's true only with -std. */
4015 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4016
4017 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4018 inside strings and character constants. */
4019 #define FOO(x) 'x'
4020 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4021
4022 int test (int i, double x);
4023 struct s1 {int (*f) (int a);};
4024 struct s2 {int (*f) (double a);};
4025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4026 int argc;
4027 char **argv;
4028 int
4029 main ()
4030 {
4031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4037 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4038 do
4039 CC="$ac_save_CC $ac_arg"
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_prog_cc_c89=$ac_arg
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext
4044 test "x$ac_cv_prog_cc_c89" != "xno" && break
4045 done
4046 rm -f conftest.$ac_ext
4047 CC=$ac_save_CC
4048
4049 fi
4050 # AC_CACHE_VAL
4051 case "x$ac_cv_prog_cc_c89" in
4052 x)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054 $as_echo "none needed" >&6; } ;;
4055 xno)
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057 $as_echo "unsupported" >&6; } ;;
4058 *)
4059 CC="$CC $ac_cv_prog_cc_c89"
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4061 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4062 esac
4063 if test "x$ac_cv_prog_cc_c89" != xno; then :
4064
4065 fi
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4079 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4080 if ${am_cv_prog_cc_c_o+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085
4086 int
4087 main ()
4088 {
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 # Make sure it works both with $CC and with simple cc.
4095 # Following AC_PROG_CC_C_O, we do the test twice because some
4096 # compilers refuse to overwrite an existing .o file with -o,
4097 # though they will create one.
4098 am_cv_prog_cc_c_o=yes
4099 for am_i in 1 2; do
4100 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4101 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } \
4105 && test -f conftest2.$ac_objext; then
4106 : OK
4107 else
4108 am_cv_prog_cc_c_o=no
4109 break
4110 fi
4111 done
4112 rm -f core conftest*
4113 unset am_i
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4116 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4117 if test "$am_cv_prog_cc_c_o" != yes; then
4118 # Losing compiler, so override with the script.
4119 # FIXME: It is wrong to rewrite CC.
4120 # But if we don't then we get into trouble of one sort or another.
4121 # A longer-term fix would be to have automake use am__CC in this case,
4122 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4123 CC="$am_aux_dir/compile $CC"
4124 fi
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131 DEPDIR="${am__leading_dot}deps"
4132
4133 ac_config_commands="$ac_config_commands depfiles"
4134
4135
4136 am_make=${MAKE-make}
4137 cat > confinc << 'END'
4138 am__doit:
4139 @echo this is the am__doit target
4140 .PHONY: am__doit
4141 END
4142 # If we don't find an include directive, just comment out the code.
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4144 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4145 am__include="#"
4146 am__quote=
4147 _am_result=none
4148 # First try GNU make style include.
4149 echo "include confinc" > confmf
4150 # Ignore all kinds of additional output from 'make'.
4151 case `$am_make -s -f confmf 2> /dev/null` in #(
4152 *the\ am__doit\ target*)
4153 am__include=include
4154 am__quote=
4155 _am_result=GNU
4156 ;;
4157 esac
4158 # Now try BSD make style include.
4159 if test "$am__include" = "#"; then
4160 echo '.include "confinc"' > confmf
4161 case `$am_make -s -f confmf 2> /dev/null` in #(
4162 *the\ am__doit\ target*)
4163 am__include=.include
4164 am__quote="\""
4165 _am_result=BSD
4166 ;;
4167 esac
4168 fi
4169
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4172 $as_echo "$_am_result" >&6; }
4173 rm -f confinc confmf
4174
4175 # Check whether --enable-dependency-tracking was given.
4176 if test "${enable_dependency_tracking+set}" = set; then :
4177 enableval=$enable_dependency_tracking;
4178 fi
4179
4180 if test "x$enable_dependency_tracking" != xno; then
4181 am_depcomp="$ac_aux_dir/depcomp"
4182 AMDEPBACKSLASH='\'
4183 am__nodep='_no'
4184 fi
4185 if test "x$enable_dependency_tracking" != xno; then
4186 AMDEP_TRUE=
4187 AMDEP_FALSE='#'
4188 else
4189 AMDEP_TRUE='#'
4190 AMDEP_FALSE=
4191 fi
4192
4193
4194
4195 depcc="$CC" am_compiler_list=
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203 # We make a subdir and do the tests there. Otherwise we can end up
4204 # making bogus files that we don't know about and never remove. For
4205 # instance it was reported that on HP-UX the gcc test will end up
4206 # making a dummy file named 'D' -- because '-MD' means "put the output
4207 # in D".
4208 rm -rf conftest.dir
4209 mkdir conftest.dir
4210 # Copy depcomp to subdir because otherwise we won't find it if we're
4211 # using a relative directory.
4212 cp "$am_depcomp" conftest.dir
4213 cd conftest.dir
4214 # We will build objects and dependencies in a subdirectory because
4215 # it helps to detect inapplicable dependency modes. For instance
4216 # both Tru64's cc and ICC support -MD to output dependencies as a
4217 # side effect of compilation, but ICC will put the dependencies in
4218 # the current directory while Tru64 will put them in the object
4219 # directory.
4220 mkdir sub
4221
4222 am_cv_CC_dependencies_compiler_type=none
4223 if test "$am_compiler_list" = ""; then
4224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4225 fi
4226 am__universal=false
4227 case " $depcc " in #(
4228 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4229 esac
4230
4231 for depmode in $am_compiler_list; do
4232 # Setup a source with many dependencies, because some compilers
4233 # like to wrap large dependency lists on column 80 (with \), and
4234 # we should not choose a depcomp mode which is confused by this.
4235 #
4236 # We need to recreate these files for each test, as the compiler may
4237 # overwrite some of them when testing with obscure command lines.
4238 # This happens at least with the AIX C compiler.
4239 : > sub/conftest.c
4240 for i in 1 2 3 4 5 6; do
4241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4242 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4243 # Solaris 10 /bin/sh.
4244 echo '/* dummy */' > sub/conftst$i.h
4245 done
4246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4247
4248 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4249 # mode. It turns out that the SunPro C++ compiler does not properly
4250 # handle '-M -o', and we need to detect this. Also, some Intel
4251 # versions had trouble with output in subdirs.
4252 am__obj=sub/conftest.${OBJEXT-o}
4253 am__minus_obj="-o $am__obj"
4254 case $depmode in
4255 gcc)
4256 # This depmode causes a compiler race in universal mode.
4257 test "$am__universal" = false || continue
4258 ;;
4259 nosideeffect)
4260 # After this tag, mechanisms are not by side-effect, so they'll
4261 # only be used when explicitly requested.
4262 if test "x$enable_dependency_tracking" = xyes; then
4263 continue
4264 else
4265 break
4266 fi
4267 ;;
4268 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4269 # This compiler won't grok '-c -o', but also, the minuso test has
4270 # not run yet. These depmodes are late enough in the game, and
4271 # so weak that their functioning should not be impacted.
4272 am__obj=conftest.${OBJEXT-o}
4273 am__minus_obj=
4274 ;;
4275 none) break ;;
4276 esac
4277 if depmode=$depmode \
4278 source=sub/conftest.c object=$am__obj \
4279 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4280 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4281 >/dev/null 2>conftest.err &&
4282 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4283 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4284 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4285 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4286 # icc doesn't choke on unknown options, it will just issue warnings
4287 # or remarks (even with -Werror). So we grep stderr for any message
4288 # that says an option was ignored or not supported.
4289 # When given -MP, icc 7.0 and 7.1 complain thusly:
4290 # icc: Command line warning: ignoring option '-M'; no argument required
4291 # The diagnosis changed in icc 8.0:
4292 # icc: Command line remark: option '-MP' not supported
4293 if (grep 'ignoring option' conftest.err ||
4294 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4295 am_cv_CC_dependencies_compiler_type=$depmode
4296 break
4297 fi
4298 fi
4299 done
4300
4301 cd ..
4302 rm -rf conftest.dir
4303 else
4304 am_cv_CC_dependencies_compiler_type=none
4305 fi
4306
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4310 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4311
4312 if
4313 test "x$enable_dependency_tracking" != xno \
4314 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4315 am__fastdepCC_TRUE=
4316 am__fastdepCC_FALSE='#'
4317 else
4318 am__fastdepCC_TRUE='#'
4319 am__fastdepCC_FALSE=
4320 fi
4321
4322
4323 ac_ext=cpp
4324 ac_cpp='$CXXCPP $CPPFLAGS'
4325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4328 if test -z "$CXX"; then
4329 if test -n "$CCC"; then
4330 CXX=$CCC
4331 else
4332 if test -n "$ac_tool_prefix"; then
4333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4334 do
4335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CXX+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$CXX"; then
4343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356 done
4357 done
4358 IFS=$as_save_IFS
4359
4360 fi
4361 fi
4362 CXX=$ac_cv_prog_CXX
4363 if test -n "$CXX"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4365 $as_echo "$CXX" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372 test -n "$CXX" && break
4373 done
4374 fi
4375 if test -z "$CXX"; then
4376 ac_ct_CXX=$CXX
4377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4378 do
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$ac_ct_CXX"; then
4387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_ac_ct_CXX="$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4407 if test -n "$ac_ct_CXX"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4409 $as_echo "$ac_ct_CXX" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416 test -n "$ac_ct_CXX" && break
4417 done
4418
4419 if test "x$ac_ct_CXX" = x; then
4420 CXX="g++"
4421 else
4422 case $cross_compiling:$ac_tool_warned in
4423 yes:)
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426 ac_tool_warned=yes ;;
4427 esac
4428 CXX=$ac_ct_CXX
4429 fi
4430 fi
4431
4432 fi
4433 fi
4434 # Provide some information about the compiler.
4435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4436 set X $ac_compile
4437 ac_compiler=$2
4438 for ac_option in --version -v -V -qversion; do
4439 { { ac_try="$ac_compiler $ac_option >&5"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4447 ac_status=$?
4448 if test -s conftest.err; then
4449 sed '10a\
4450 ... rest of stderr output deleted ...
4451 10q' conftest.err >conftest.er1
4452 cat conftest.er1 >&5
4453 fi
4454 rm -f conftest.er1 conftest.err
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }
4457 done
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4460 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4461 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466
4467 int
4468 main ()
4469 {
4470 #ifndef __GNUC__
4471 choke me
4472 #endif
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 if ac_fn_cxx_try_compile "$LINENO"; then :
4479 ac_compiler_gnu=yes
4480 else
4481 ac_compiler_gnu=no
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4485
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4488 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4489 if test $ac_compiler_gnu = yes; then
4490 GXX=yes
4491 else
4492 GXX=
4493 fi
4494 ac_test_CXXFLAGS=${CXXFLAGS+set}
4495 ac_save_CXXFLAGS=$CXXFLAGS
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4497 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4498 if ${ac_cv_prog_cxx_g+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4502 ac_cxx_werror_flag=yes
4503 ac_cv_prog_cxx_g=no
4504 CXXFLAGS="-g"
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507
4508 int
4509 main ()
4510 {
4511
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cv_prog_cxx_g=yes
4518 else
4519 CXXFLAGS=""
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522
4523 int
4524 main ()
4525 {
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532
4533 else
4534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4535 CXXFLAGS="-g"
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538
4539 int
4540 main ()
4541 {
4542
4543 ;
4544 return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_cxx_try_compile "$LINENO"; then :
4548 ac_cv_prog_cxx_g=yes
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4558 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4559 if test "$ac_test_CXXFLAGS" = set; then
4560 CXXFLAGS=$ac_save_CXXFLAGS
4561 elif test $ac_cv_prog_cxx_g = yes; then
4562 if test "$GXX" = yes; then
4563 CXXFLAGS="-g -O2"
4564 else
4565 CXXFLAGS="-g"
4566 fi
4567 else
4568 if test "$GXX" = yes; then
4569 CXXFLAGS="-O2"
4570 else
4571 CXXFLAGS=
4572 fi
4573 fi
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580 depcc="$CXX" am_compiler_list=
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4583 $as_echo_n "checking dependency style of $depcc... " >&6; }
4584 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4588 # We make a subdir and do the tests there. Otherwise we can end up
4589 # making bogus files that we don't know about and never remove. For
4590 # instance it was reported that on HP-UX the gcc test will end up
4591 # making a dummy file named 'D' -- because '-MD' means "put the output
4592 # in D".
4593 rm -rf conftest.dir
4594 mkdir conftest.dir
4595 # Copy depcomp to subdir because otherwise we won't find it if we're
4596 # using a relative directory.
4597 cp "$am_depcomp" conftest.dir
4598 cd conftest.dir
4599 # We will build objects and dependencies in a subdirectory because
4600 # it helps to detect inapplicable dependency modes. For instance
4601 # both Tru64's cc and ICC support -MD to output dependencies as a
4602 # side effect of compilation, but ICC will put the dependencies in
4603 # the current directory while Tru64 will put them in the object
4604 # directory.
4605 mkdir sub
4606
4607 am_cv_CXX_dependencies_compiler_type=none
4608 if test "$am_compiler_list" = ""; then
4609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4610 fi
4611 am__universal=false
4612 case " $depcc " in #(
4613 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4614 esac
4615
4616 for depmode in $am_compiler_list; do
4617 # Setup a source with many dependencies, because some compilers
4618 # like to wrap large dependency lists on column 80 (with \), and
4619 # we should not choose a depcomp mode which is confused by this.
4620 #
4621 # We need to recreate these files for each test, as the compiler may
4622 # overwrite some of them when testing with obscure command lines.
4623 # This happens at least with the AIX C compiler.
4624 : > sub/conftest.c
4625 for i in 1 2 3 4 5 6; do
4626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628 # Solaris 10 /bin/sh.
4629 echo '/* dummy */' > sub/conftst$i.h
4630 done
4631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4632
4633 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634 # mode. It turns out that the SunPro C++ compiler does not properly
4635 # handle '-M -o', and we need to detect this. Also, some Intel
4636 # versions had trouble with output in subdirs.
4637 am__obj=sub/conftest.${OBJEXT-o}
4638 am__minus_obj="-o $am__obj"
4639 case $depmode in
4640 gcc)
4641 # This depmode causes a compiler race in universal mode.
4642 test "$am__universal" = false || continue
4643 ;;
4644 nosideeffect)
4645 # After this tag, mechanisms are not by side-effect, so they'll
4646 # only be used when explicitly requested.
4647 if test "x$enable_dependency_tracking" = xyes; then
4648 continue
4649 else
4650 break
4651 fi
4652 ;;
4653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654 # This compiler won't grok '-c -o', but also, the minuso test has
4655 # not run yet. These depmodes are late enough in the game, and
4656 # so weak that their functioning should not be impacted.
4657 am__obj=conftest.${OBJEXT-o}
4658 am__minus_obj=
4659 ;;
4660 none) break ;;
4661 esac
4662 if depmode=$depmode \
4663 source=sub/conftest.c object=$am__obj \
4664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666 >/dev/null 2>conftest.err &&
4667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671 # icc doesn't choke on unknown options, it will just issue warnings
4672 # or remarks (even with -Werror). So we grep stderr for any message
4673 # that says an option was ignored or not supported.
4674 # When given -MP, icc 7.0 and 7.1 complain thusly:
4675 # icc: Command line warning: ignoring option '-M'; no argument required
4676 # The diagnosis changed in icc 8.0:
4677 # icc: Command line remark: option '-MP' not supported
4678 if (grep 'ignoring option' conftest.err ||
4679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4680 am_cv_CXX_dependencies_compiler_type=$depmode
4681 break
4682 fi
4683 fi
4684 done
4685
4686 cd ..
4687 rm -rf conftest.dir
4688 else
4689 am_cv_CXX_dependencies_compiler_type=none
4690 fi
4691
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4694 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4695 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4696
4697 if
4698 test "x$enable_dependency_tracking" != xno \
4699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4700 am__fastdepCXX_TRUE=
4701 am__fastdepCXX_FALSE='#'
4702 else
4703 am__fastdepCXX_TRUE='#'
4704 am__fastdepCXX_FALSE=
4705 fi
4706
4707
4708 ac_ext=mm
4709 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4710 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4713 if test -n "$ac_tool_prefix"; then
4714 for ac_prog in g++ objc++ objcxx c++ CXX
4715 do
4716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_OBJCXX+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$OBJCXX"; then
4724 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 OBJCXX=$ac_cv_prog_OBJCXX
4744 if test -n "$OBJCXX"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4746 $as_echo "$OBJCXX" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 test -n "$OBJCXX" && break
4754 done
4755 fi
4756 if test -z "$OBJCXX"; then
4757 ac_ct_OBJCXX=$OBJCXX
4758 for ac_prog in g++ objc++ objcxx c++ CXX
4759 do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$ac_ct_OBJCXX"; then
4768 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4788 if test -n "$ac_ct_OBJCXX"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4790 $as_echo "$ac_ct_OBJCXX" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796
4797 test -n "$ac_ct_OBJCXX" && break
4798 done
4799
4800 if test "x$ac_ct_OBJCXX" = x; then
4801 OBJCXX="g++"
4802 else
4803 case $cross_compiling:$ac_tool_warned in
4804 yes:)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4808 esac
4809 OBJCXX=$ac_ct_OBJCXX
4810 fi
4811 fi
4812
4813 # Provide some information about the compiler.
4814 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4815 set X $ac_compile
4816 ac_compiler=$2
4817 for ac_option in --version -v -V -qversion; do
4818 { { ac_try="$ac_compiler $ac_option >&5"
4819 case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4824 $as_echo "$ac_try_echo"; } >&5
4825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4826 ac_status=$?
4827 if test -s conftest.err; then
4828 sed '10a\
4829 ... rest of stderr output deleted ...
4830 10q' conftest.err >conftest.er1
4831 cat conftest.er1 >&5
4832 fi
4833 rm -f conftest.er1 conftest.err
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }
4836 done
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4839 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4840 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 int
4847 main ()
4848 {
4849 #ifndef __GNUC__
4850 choke me
4851 #endif
4852
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_objcxx_try_compile "$LINENO"; then :
4858 ac_compiler_gnu=yes
4859 else
4860 ac_compiler_gnu=no
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4864
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4867 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4868 if test $ac_compiler_gnu = yes; then
4869 GOBJCXX=yes
4870 else
4871 GOBJCXX=
4872 fi
4873 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4874 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4876 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4877 if ${ac_cv_prog_objcxx_g+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4881 ac_objcxx_werror_flag=yes
4882 ac_cv_prog_objcxx_g=no
4883 OBJCXXFLAGS="-g"
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886
4887 int
4888 main ()
4889 {
4890
4891 ;
4892 return 0;
4893 }
4894 _ACEOF
4895 if ac_fn_objcxx_try_compile "$LINENO"; then :
4896 ac_cv_prog_objcxx_g=yes
4897 else
4898 OBJCXXFLAGS=""
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901
4902 int
4903 main ()
4904 {
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_objcxx_try_compile "$LINENO"; then :
4911
4912 else
4913 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4914 OBJCXXFLAGS="-g"
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917
4918 int
4919 main ()
4920 {
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_objcxx_try_compile "$LINENO"; then :
4927 ac_cv_prog_objcxx_g=yes
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4937 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4938 if test "$ac_test_OBJCXXFLAGS" = set; then
4939 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4940 elif test $ac_cv_prog_objcxx_g = yes; then
4941 if test "$GOBJCXX" = yes; then
4942 OBJCXXFLAGS="-g -O2"
4943 else
4944 OBJCXXFLAGS="-g"
4945 fi
4946 else
4947 if test "$GOBJCXX" = yes; then
4948 OBJCXXFLAGS="-O2"
4949 else
4950 OBJCXXFLAGS=
4951 fi
4952 fi
4953 ac_ext=c
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962 $as_echo_n "checking dependency style of $depcc... " >&6; }
4963 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967 # We make a subdir and do the tests there. Otherwise we can end up
4968 # making bogus files that we don't know about and never remove. For
4969 # instance it was reported that on HP-UX the gcc test will end up
4970 # making a dummy file named 'D' -- because '-MD' means "put the output
4971 # in D".
4972 rm -rf conftest.dir
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4985
4986 am_cv_OBJCXX_dependencies_compiler_type=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989 fi
4990 am__universal=false
4991
4992
4993 for depmode in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4997 #
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5001 : > sub/conftest.c
5002 for i in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub/conftst$i.h
5007 done
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5009
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj=sub/conftest.${OBJEXT-o}
5015 am__minus_obj="-o $am__obj"
5016 case $depmode in
5017 gcc)
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false || continue
5020 ;;
5021 nosideeffect)
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes; then
5025 continue
5026 else
5027 break
5028 fi
5029 ;;
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj=conftest.${OBJEXT-o}
5035 am__minus_obj=
5036 ;;
5037 none) break ;;
5038 esac
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=$am__obj \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057 am_cv_OBJCXX_dependencies_compiler_type=$depmode
5058 break
5059 fi
5060 fi
5061 done
5062
5063 cd ..
5064 rm -rf conftest.dir
5065 else
5066 am_cv_OBJCXX_dependencies_compiler_type=none
5067 fi
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
5071 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
5072 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
5073
5074 if
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
5077 am__fastdepOBJCXX_TRUE=
5078 am__fastdepOBJCXX_FALSE='#'
5079 else
5080 am__fastdepOBJCXX_TRUE='#'
5081 am__fastdepOBJCXX_FALSE=
5082 fi
5083
5084
5085
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5092 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5093 # On Suns, sometimes $CPP names a directory.
5094 if test -n "$CPP" && test -d "$CPP"; then
5095 CPP=
5096 fi
5097 if test -z "$CPP"; then
5098 if ${ac_cv_prog_CPP+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CPP needs to be expanded
5102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5103 do
5104 ac_preproc_ok=false
5105 for ac_c_preproc_warn_flag in '' yes
5106 do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_c_try_cpp "$LINENO"; then :
5123
5124 else
5125 # Broken: fails on valid input.
5126 continue
5127 fi
5128 rm -f conftest.err conftest.i conftest.$ac_ext
5129
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_c_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144 rm -f conftest.err conftest.i conftest.$ac_ext
5145
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.i conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5151 fi
5152
5153 done
5154 ac_cv_prog_CPP=$CPP
5155
5156 fi
5157 CPP=$ac_cv_prog_CPP
5158 else
5159 ac_cv_prog_CPP=$CPP
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5162 $as_echo "$CPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_c_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_c_try_cpp "$LINENO"; then :
5182
5183 else
5184 # Broken: fails on valid input.
5185 continue
5186 fi
5187 rm -f conftest.err conftest.i conftest.$ac_ext
5188
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_c_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5202 fi
5203 rm -f conftest.err conftest.i conftest.$ac_ext
5204
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.i conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5209
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5214 See \`config.log' for more details" "$LINENO" 5; }
5215 fi
5216
5217 ac_ext=c
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223
5224 # Make sure we can run config.sub.
5225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5226 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5229 $as_echo_n "checking build system type... " >&6; }
5230 if ${ac_cv_build+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_build_alias=$build_alias
5234 test "x$ac_build_alias" = x &&
5235 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5236 test "x$ac_build_alias" = x &&
5237 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5238 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5239 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5240
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5243 $as_echo "$ac_cv_build" >&6; }
5244 case $ac_cv_build in
5245 *-*-*) ;;
5246 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5247 esac
5248 build=$ac_cv_build
5249 ac_save_IFS=$IFS; IFS='-'
5250 set x $ac_cv_build
5251 shift
5252 build_cpu=$1
5253 build_vendor=$2
5254 shift; shift
5255 # Remember, the first character of IFS is used to create $*,
5256 # except with old shells:
5257 build_os=$*
5258 IFS=$ac_save_IFS
5259 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5263 $as_echo_n "checking host system type... " >&6; }
5264 if ${ac_cv_host+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test "x$host_alias" = x; then
5268 ac_cv_host=$ac_cv_build
5269 else
5270 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5271 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5272 fi
5273
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5276 $as_echo "$ac_cv_host" >&6; }
5277 case $ac_cv_host in
5278 *-*-*) ;;
5279 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5280 esac
5281 host=$ac_cv_host
5282 ac_save_IFS=$IFS; IFS='-'
5283 set x $ac_cv_host
5284 shift
5285 host_cpu=$1
5286 host_vendor=$2
5287 shift; shift
5288 # Remember, the first character of IFS is used to create $*,
5289 # except with old shells:
5290 host_os=$*
5291 IFS=$ac_save_IFS
5292 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5293
5294
5295
5296
5297 save_cross_compiling=$cross_compiling
5298 save_ac_tool_prefix=$ac_tool_prefix
5299 cross_compiling=no
5300 ac_tool_prefix=
5301
5302 ac_ext=c
5303 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5304 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5305 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307 if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$CC_FOR_BUILD"; then
5316 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5336 if test -n "$CC_FOR_BUILD"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5338 $as_echo "$CC_FOR_BUILD" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345 fi
5346 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5347 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5348 # Extract the first word of "gcc", so it can be a program name with args.
5349 set dummy gcc; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$ac_ct_CC_FOR_BUILD"; then
5356 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369 done
5370 done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5376 if test -n "$ac_ct_CC_FOR_BUILD"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5378 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5385 CC_FOR_BUILD=""
5386 else
5387 case $cross_compiling:$ac_tool_warned in
5388 yes:)
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5390 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5391 ac_tool_warned=yes ;;
5392 esac
5393 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5394 fi
5395 else
5396 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5397 fi
5398
5399 if test -z "$CC_FOR_BUILD"; then
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}cc; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$CC_FOR_BUILD"; then
5409 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5429 if test -n "$CC_FOR_BUILD"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5431 $as_echo "$CC_FOR_BUILD" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 fi
5439 fi
5440 if test -z "$CC_FOR_BUILD"; then
5441 # Extract the first word of "cc", so it can be a program name with args.
5442 set dummy cc; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$CC_FOR_BUILD"; then
5449 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5450 else
5451 ac_prog_rejected=no
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5460 ac_prog_rejected=yes
5461 continue
5462 fi
5463 ac_cv_prog_CC_FOR_BUILD="cc"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 if test $ac_prog_rejected = yes; then
5472 # We found a bogon in the path, so make sure we never use it.
5473 set dummy $ac_cv_prog_CC_FOR_BUILD
5474 shift
5475 if test $# != 0; then
5476 # We chose a different compiler from the bogus one.
5477 # However, it has the same basename, so the bogon will be chosen
5478 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5479 shift
5480 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5481 fi
5482 fi
5483 fi
5484 fi
5485 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5486 if test -n "$CC_FOR_BUILD"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5488 $as_echo "$CC_FOR_BUILD" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493
5494
5495 fi
5496 if test -z "$CC_FOR_BUILD"; then
5497 if test -n "$ac_tool_prefix"; then
5498 for ac_prog in cl.exe
5499 do
5500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$CC_FOR_BUILD"; then
5508 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5528 if test -n "$CC_FOR_BUILD"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5530 $as_echo "$CC_FOR_BUILD" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536
5537 test -n "$CC_FOR_BUILD" && break
5538 done
5539 fi
5540 if test -z "$CC_FOR_BUILD"; then
5541 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5542 for ac_prog in cl.exe
5543 do
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_CC_FOR_BUILD"; then
5552 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5572 if test -n "$ac_ct_CC_FOR_BUILD"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5574 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581 test -n "$ac_ct_CC_FOR_BUILD" && break
5582 done
5583
5584 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5585 CC_FOR_BUILD=""
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5590 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5591 ac_tool_warned=yes ;;
5592 esac
5593 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5594 fi
5595 fi
5596
5597 fi
5598
5599
5600 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 as_fn_error $? "no acceptable C compiler found in \$PATH
5603 See \`config.log' for more details" "$LINENO" 5; }
5604
5605 # Provide some information about the compiler.
5606 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5607 set X $ac_build_compile
5608 ac_compiler=$2
5609 for ac_option in --version -v -V -qversion; do
5610 { { ac_try="$ac_compiler $ac_option >&5"
5611 case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5616 $as_echo "$ac_try_echo"; } >&5
5617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5618 ac_status=$?
5619 if test -s conftest.err; then
5620 sed '10a\
5621 ... rest of stderr output deleted ...
5622 10q' conftest.err >conftest.er1
5623 cat conftest.er1 >&5
5624 fi
5625 rm -f conftest.er1 conftest.err
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; }
5628 done
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5632 if ${ac_cv_c_compiler_gnu+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637
5638 int
5639 main ()
5640 {
5641 #ifndef __GNUC__
5642 choke me
5643 #endif
5644
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_compiler_gnu=yes
5651 else
5652 ac_compiler_gnu=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5656
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5660 if test $ac_compiler_gnu = yes; then
5661 GCC=yes
5662 else
5663 GCC=
5664 fi
5665 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5666 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5668 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5669 if ${ac_cv_build_prog_cc_g+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 ac_save_c_werror_flag=$ac_c_werror_flag
5673 ac_c_werror_flag=yes
5674 ac_cv_build_prog_cc_g=no
5675 CFLAGS_FOR_BUILD="-g"
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678
5679 int
5680 main ()
5681 {
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_build_prog_cc_g=yes
5689 else
5690 CFLAGS_FOR_BUILD=""
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693
5694 int
5695 main ()
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703
5704 else
5705 ac_c_werror_flag=$ac_save_c_werror_flag
5706 CFLAGS_FOR_BUILD="-g"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709
5710 int
5711 main ()
5712 {
5713
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 ac_cv_build_prog_cc_g=yes
5720 fi
5721 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5722 fi
5723 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5724 fi
5725 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5726 ac_c_werror_flag=$ac_save_c_werror_flag
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5729 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5730 if test "$ac_test_CFLAGS" = set; then
5731 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5732 elif test $ac_cv_build_prog_cc_g = yes; then
5733 if test "$GCC" = yes; then
5734 CFLAGS_FOR_BUILD="-g -O2"
5735 else
5736 CFLAGS_FOR_BUILD="-g"
5737 fi
5738 else
5739 if test "$GCC" = yes; then
5740 CFLAGS_FOR_BUILD="-O2"
5741 else
5742 CFLAGS_FOR_BUILD=
5743 fi
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5746 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5747 if ${ac_cv_prog_cc_c89+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 ac_cv_prog_cc_c89=no
5751 ac_save_CC=$CC_FOR_BUILD
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #include <stdarg.h>
5755 #include <stdio.h>
5756 struct stat;
5757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5758 struct buf { int x; };
5759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5760 static char *e (p, i)
5761 char **p;
5762 int i;
5763 {
5764 return p[i];
5765 }
5766 static char *f (char * (*g) (char **, int), char **p, ...)
5767 {
5768 char *s;
5769 va_list v;
5770 va_start (v,p);
5771 s = g (p, va_arg (v,int));
5772 va_end (v);
5773 return s;
5774 }
5775
5776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5777 function prototypes and stuff, but not '\xHH' hex character constants.
5778 These don't provoke an error unfortunately, instead are silently treated
5779 as 'x'. The following induces an error, until -std is added to get
5780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5781 array size at least. It's necessary to write '\x00'==0 to get something
5782 that's true only with -std. */
5783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5784
5785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5786 inside strings and character constants. */
5787 #define FOO(x) 'x'
5788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5789
5790 int test (int i, double x);
5791 struct s1 {int (*f) (int a);};
5792 struct s2 {int (*f) (double a);};
5793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5794 int argc;
5795 char **argv;
5796 int
5797 main ()
5798 {
5799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5806 do
5807 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 ac_cv_prog_cc_c89=$ac_arg
5810 fi
5811 rm -f core conftest.err conftest.$ac_build_objext
5812 test "x$ac_cv_prog_cc_c89" != "xno" && break
5813 done
5814 rm -f conftest.$ac_ext
5815 CC_FOR_BUILD=$ac_save_CC
5816
5817 fi
5818 # AC_CACHE_VAL
5819 case "x$ac_cv_prog_cc_c89" in
5820 x)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5822 $as_echo "none needed" >&6; } ;;
5823 xno)
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5825 $as_echo "unsupported" >&6; } ;;
5826 *)
5827 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5830 esac
5831 if test "x$ac_cv_prog_cc_c89" != xno; then :
5832
5833 fi
5834
5835 ac_ext=c
5836 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5837 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5838 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841 ac_ext=c
5842 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5843 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5844 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5847 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5848 if ${am_cv_prog_cc_c_o+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853
5854 int
5855 main ()
5856 {
5857
5858 ;
5859 return 0;
5860 }
5861 _ACEOF
5862 # Make sure it works both with $CC and with simple cc.
5863 # Following AC_PROG_CC_C_O, we do the test twice because some
5864 # compilers refuse to overwrite an existing .o file with -o,
5865 # though they will create one.
5866 am_cv_prog_cc_c_o=yes
5867 for am_i in 1 2; do
5868 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5869 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } \
5873 && test -f conftest2.$ac_build_objext; then
5874 : OK
5875 else
5876 am_cv_prog_cc_c_o=no
5877 break
5878 fi
5879 done
5880 rm -f core conftest*
5881 unset am_i
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5884 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5885 if test "$am_cv_prog_cc_c_o" != yes; then
5886 # Losing compiler, so override with the script.
5887 # FIXME: It is wrong to rewrite CC.
5888 # But if we don't then we get into trouble of one sort or another.
5889 # A longer-term fix would be to have automake use am__CC in this case,
5890 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5891 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5892 fi
5893 ac_ext=c
5894 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5895 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5896 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898
5899
5900 depcc="$CC_FOR_BUILD" am_compiler_list=
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5903 $as_echo_n "checking dependency style of $depcc... " >&6; }
5904 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5908 # We make a subdir and do the tests there. Otherwise we can end up
5909 # making bogus files that we don't know about and never remove. For
5910 # instance it was reported that on HP-UX the gcc test will end up
5911 # making a dummy file named 'D' -- because '-MD' means "put the output
5912 # in D".
5913 rm -rf conftest.dir
5914 mkdir conftest.dir
5915 # Copy depcomp to subdir because otherwise we won't find it if we're
5916 # using a relative directory.
5917 cp "$am_depcomp" conftest.dir
5918 cd conftest.dir
5919 # We will build objects and dependencies in a subdirectory because
5920 # it helps to detect inapplicable dependency modes. For instance
5921 # both Tru64's cc and ICC support -MD to output dependencies as a
5922 # side effect of compilation, but ICC will put the dependencies in
5923 # the current directory while Tru64 will put them in the object
5924 # directory.
5925 mkdir sub
5926
5927 am_cv_CC_dependencies_compiler_type=none
5928 if test "$am_compiler_list" = ""; then
5929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5930 fi
5931 am__universal=false
5932 case " $depcc " in #(
5933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5934 esac
5935
5936 for depmode in $am_compiler_list; do
5937 # Setup a source with many dependencies, because some compilers
5938 # like to wrap large dependency lists on column 80 (with \), and
5939 # we should not choose a depcomp mode which is confused by this.
5940 #
5941 # We need to recreate these files for each test, as the compiler may
5942 # overwrite some of them when testing with obscure command lines.
5943 # This happens at least with the AIX C compiler.
5944 : > sub/conftest.c
5945 for i in 1 2 3 4 5 6; do
5946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5947 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5948 # Solaris 10 /bin/sh.
5949 echo '/* dummy */' > sub/conftst$i.h
5950 done
5951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5952
5953 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5954 # mode. It turns out that the SunPro C++ compiler does not properly
5955 # handle '-M -o', and we need to detect this. Also, some Intel
5956 # versions had trouble with output in subdirs.
5957 am__obj=sub/conftest.${OBJEXT-o}
5958 am__minus_obj="-o $am__obj"
5959 case $depmode in
5960 gcc)
5961 # This depmode causes a compiler race in universal mode.
5962 test "$am__universal" = false || continue
5963 ;;
5964 nosideeffect)
5965 # After this tag, mechanisms are not by side-effect, so they'll
5966 # only be used when explicitly requested.
5967 if test "x$enable_dependency_tracking" = xyes; then
5968 continue
5969 else
5970 break
5971 fi
5972 ;;
5973 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5974 # This compiler won't grok '-c -o', but also, the minuso test has
5975 # not run yet. These depmodes are late enough in the game, and
5976 # so weak that their functioning should not be impacted.
5977 am__obj=conftest.${OBJEXT-o}
5978 am__minus_obj=
5979 ;;
5980 none) break ;;
5981 esac
5982 if depmode=$depmode \
5983 source=sub/conftest.c object=$am__obj \
5984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5986 >/dev/null 2>conftest.err &&
5987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5991 # icc doesn't choke on unknown options, it will just issue warnings
5992 # or remarks (even with -Werror). So we grep stderr for any message
5993 # that says an option was ignored or not supported.
5994 # When given -MP, icc 7.0 and 7.1 complain thusly:
5995 # icc: Command line warning: ignoring option '-M'; no argument required
5996 # The diagnosis changed in icc 8.0:
5997 # icc: Command line remark: option '-MP' not supported
5998 if (grep 'ignoring option' conftest.err ||
5999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6000 am_cv_CC_dependencies_compiler_type=$depmode
6001 break
6002 fi
6003 fi
6004 done
6005
6006 cd ..
6007 rm -rf conftest.dir
6008 else
6009 am_cv_CC_dependencies_compiler_type=none
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6014 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6015 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6016
6017 if
6018 test "x$enable_dependency_tracking" != xno \
6019 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6020 am__fastdepCC_TRUE=
6021 am__fastdepCC_FALSE='#'
6022 else
6023 am__fastdepCC_TRUE='#'
6024 am__fastdepCC_FALSE=
6025 fi
6026
6027
6028 ac_ext=c
6029 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6030 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6031 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6035 # On Suns, sometimes $CPP names a directory.
6036 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6037 CPP_FOR_BUILD=
6038 fi
6039 if test -z "$CPP_FOR_BUILD"; then
6040 if ${ac_cv_build_prog_CPP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 # Double quotes because CPP needs to be expanded
6044 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6045 do
6046 ac_preproc_ok=false
6047 for ac_c_preproc_warn_flag in '' yes
6048 do
6049 # Use a header file that comes with gcc, so configuring glibc
6050 # with a fresh cross-compiler works.
6051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052 # <limits.h> exists even on freestanding compilers.
6053 # On the NeXT, cc -E runs the code through the compiler's parser,
6054 # not just through cpp. "Syntax error" is here to catch this case.
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #ifdef __STDC__
6058 # include <limits.h>
6059 #else
6060 # include <assert.h>
6061 #endif
6062 Syntax error
6063 _ACEOF
6064 if ac_fn_c_try_cpp "$LINENO"; then :
6065
6066 else
6067 # Broken: fails on valid input.
6068 continue
6069 fi
6070 rm -f conftest.err conftest.i conftest.$ac_ext
6071
6072 # OK, works on sane cases. Now check whether nonexistent headers
6073 # can be detected and how.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <ac_nonexistent.h>
6077 _ACEOF
6078 if ac_fn_c_try_cpp "$LINENO"; then :
6079 # Broken: success on invalid input.
6080 continue
6081 else
6082 # Passes both tests.
6083 ac_preproc_ok=:
6084 break
6085 fi
6086 rm -f conftest.err conftest.i conftest.$ac_ext
6087
6088 done
6089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090 rm -f conftest.i conftest.err conftest.$ac_ext
6091 if $ac_preproc_ok; then :
6092 break
6093 fi
6094
6095 done
6096 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6097
6098 fi
6099 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6100 else
6101 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6104 $as_echo "$CPP_FOR_BUILD" >&6; }
6105 ac_preproc_ok=false
6106 for ac_c_preproc_warn_flag in '' yes
6107 do
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #ifdef __STDC__
6117 # include <limits.h>
6118 #else
6119 # include <assert.h>
6120 #endif
6121 Syntax error
6122 _ACEOF
6123 if ac_fn_c_try_cpp "$LINENO"; then :
6124
6125 else
6126 # Broken: fails on valid input.
6127 continue
6128 fi
6129 rm -f conftest.err conftest.i conftest.$ac_ext
6130
6131 # OK, works on sane cases. Now check whether nonexistent headers
6132 # can be detected and how.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <ac_nonexistent.h>
6136 _ACEOF
6137 if ac_fn_c_try_cpp "$LINENO"; then :
6138 # Broken: success on invalid input.
6139 continue
6140 else
6141 # Passes both tests.
6142 ac_preproc_ok=:
6143 break
6144 fi
6145 rm -f conftest.err conftest.i conftest.$ac_ext
6146
6147 done
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.i conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then :
6151
6152 else
6153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6155 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6156 See \`config.log' for more details" "$LINENO" 5; }
6157 fi
6158
6159 ac_ext=c
6160 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6161 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6162 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166
6167 ac_tool_prefix=$save_ac_tool_prefix
6168 cross_compiling=$save_cross_compiling
6169
6170
6171 BUILD_EXEEXT=$ac_build_exeext
6172 BUILD_OBJEXT=$ac_build_objext
6173
6174 ac_ext=cpp
6175 ac_cpp='$CXXCPP $CPPFLAGS'
6176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6180 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6181 if test -z "$CXXCPP"; then
6182 if ${ac_cv_prog_CXXCPP+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 # Double quotes because CXXCPP needs to be expanded
6186 for CXXCPP in "$CXX -E" "/lib/cpp"
6187 do
6188 ac_preproc_ok=false
6189 for ac_cxx_preproc_warn_flag in '' yes
6190 do
6191 # Use a header file that comes with gcc, so configuring glibc
6192 # with a fresh cross-compiler works.
6193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6194 # <limits.h> exists even on freestanding compilers.
6195 # On the NeXT, cc -E runs the code through the compiler's parser,
6196 # not just through cpp. "Syntax error" is here to catch this case.
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #ifdef __STDC__
6200 # include <limits.h>
6201 #else
6202 # include <assert.h>
6203 #endif
6204 Syntax error
6205 _ACEOF
6206 if ac_fn_cxx_try_cpp "$LINENO"; then :
6207
6208 else
6209 # Broken: fails on valid input.
6210 continue
6211 fi
6212 rm -f conftest.err conftest.i conftest.$ac_ext
6213
6214 # OK, works on sane cases. Now check whether nonexistent headers
6215 # can be detected and how.
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 #include <ac_nonexistent.h>
6219 _ACEOF
6220 if ac_fn_cxx_try_cpp "$LINENO"; then :
6221 # Broken: success on invalid input.
6222 continue
6223 else
6224 # Passes both tests.
6225 ac_preproc_ok=:
6226 break
6227 fi
6228 rm -f conftest.err conftest.i conftest.$ac_ext
6229
6230 done
6231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232 rm -f conftest.i conftest.err conftest.$ac_ext
6233 if $ac_preproc_ok; then :
6234 break
6235 fi
6236
6237 done
6238 ac_cv_prog_CXXCPP=$CXXCPP
6239
6240 fi
6241 CXXCPP=$ac_cv_prog_CXXCPP
6242 else
6243 ac_cv_prog_CXXCPP=$CXXCPP
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6246 $as_echo "$CXXCPP" >&6; }
6247 ac_preproc_ok=false
6248 for ac_cxx_preproc_warn_flag in '' yes
6249 do
6250 # Use a header file that comes with gcc, so configuring glibc
6251 # with a fresh cross-compiler works.
6252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 # <limits.h> exists even on freestanding compilers.
6254 # On the NeXT, cc -E runs the code through the compiler's parser,
6255 # not just through cpp. "Syntax error" is here to catch this case.
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 #ifdef __STDC__
6259 # include <limits.h>
6260 #else
6261 # include <assert.h>
6262 #endif
6263 Syntax error
6264 _ACEOF
6265 if ac_fn_cxx_try_cpp "$LINENO"; then :
6266
6267 else
6268 # Broken: fails on valid input.
6269 continue
6270 fi
6271 rm -f conftest.err conftest.i conftest.$ac_ext
6272
6273 # OK, works on sane cases. Now check whether nonexistent headers
6274 # can be detected and how.
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <ac_nonexistent.h>
6278 _ACEOF
6279 if ac_fn_cxx_try_cpp "$LINENO"; then :
6280 # Broken: success on invalid input.
6281 continue
6282 else
6283 # Passes both tests.
6284 ac_preproc_ok=:
6285 break
6286 fi
6287 rm -f conftest.err conftest.i conftest.$ac_ext
6288
6289 done
6290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6291 rm -f conftest.i conftest.err conftest.$ac_ext
6292 if $ac_preproc_ok; then :
6293
6294 else
6295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6298 See \`config.log' for more details" "$LINENO" 5; }
6299 fi
6300
6301 ac_ext=c
6302 ac_cpp='$CPP $CPPFLAGS'
6303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6306
6307
6308
6309 save_cross_compiling=$cross_compiling
6310 save_ac_tool_prefix=$ac_tool_prefix
6311 cross_compiling=no
6312 ac_tool_prefix=
6313
6314 ac_ext=cpp
6315 ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6316 ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6317 ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6319 if test -z "$CXX_FOR_BUILD"; then
6320 if test -n "$CCC"; then
6321 CXX_FOR_BUILD=$CCC
6322 else
6323 if test -n "$ac_tool_prefix"; then
6324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6325 do
6326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$CXX_FOR_BUILD"; then
6334 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6354 if test -n "$CXX_FOR_BUILD"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6356 $as_echo "$CXX_FOR_BUILD" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362
6363 test -n "$CXX_FOR_BUILD" && break
6364 done
6365 fi
6366 if test -z "$CXX_FOR_BUILD"; then
6367 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6369 do
6370 # Extract the first word of "$ac_prog", so it can be a program name with args.
6371 set dummy $ac_prog; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6378 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6398 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6400 $as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406
6407 test -n "$ac_ct_CXX_FOR_BUILD" && break
6408 done
6409
6410 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6411 CXX_FOR_BUILD="g++"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6417 ac_tool_warned=yes ;;
6418 esac
6419 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6420 fi
6421 fi
6422
6423 fi
6424 fi
6425 # Provide some information about the compiler.
6426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6427 set X $ac_build_compile
6428 ac_compiler=$2
6429 for ac_option in --version -v -V -qversion; do
6430 { { ac_try="$ac_compiler $ac_option >&5"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6436 $as_echo "$ac_try_echo"; } >&5
6437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6438 ac_status=$?
6439 if test -s conftest.err; then
6440 sed '10a\
6441 ... rest of stderr output deleted ...
6442 10q' conftest.err >conftest.er1
6443 cat conftest.er1 >&5
6444 fi
6445 rm -f conftest.er1 conftest.err
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6448 done
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6451 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6452 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457
6458 int
6459 main ()
6460 {
6461 #ifndef __GNUC__
6462 choke me
6463 #endif
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_cxx_try_compile "$LINENO"; then :
6470 ac_compiler_gnu=yes
6471 else
6472 ac_compiler_gnu=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6476
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6479 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6480 if test $ac_compiler_gnu = yes; then
6481 GXX=yes
6482 else
6483 GXX=
6484 fi
6485 ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6486 ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6488 $as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6489 if ${ac_cv_build_prog_cxx_g+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6493 ac_cxx_werror_flag=yes
6494 ac_cv_build_prog_cxx_g=no
6495 CXXFLAGS_FOR_BUILD="-g"
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498
6499 int
6500 main ()
6501 {
6502
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_cxx_try_compile "$LINENO"; then :
6508 ac_cv_build_prog_cxx_g=yes
6509 else
6510 CXXFLAGS_FOR_BUILD=""
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513
6514 int
6515 main ()
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6523
6524 else
6525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6526 CXXFLAGS_FOR_BUILD="-g"
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_cxx_try_compile "$LINENO"; then :
6539 ac_cv_build_prog_cxx_g=yes
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6549 $as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6550 if test "$ac_test_CXXFLAGS" = set; then
6551 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6552 elif test $ac_cv_build_prog_cxx_g = yes; then
6553 if test "$GXX" = yes; then
6554 CXXFLAGS_FOR_BUILD="-g -O2"
6555 else
6556 CXXFLAGS_FOR_BUILD="-g"
6557 fi
6558 else
6559 if test "$GXX" = yes; then
6560 CXXFLAGS_FOR_BUILD="-O2"
6561 else
6562 CXXFLAGS_FOR_BUILD=
6563 fi
6564 fi
6565 ac_ext=c
6566 ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6567 ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6568 ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
6571 depcc="$CXX_FOR_BUILD" am_compiler_list=
6572
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6574 $as_echo_n "checking dependency style of $depcc... " >&6; }
6575 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6579 # We make a subdir and do the tests there. Otherwise we can end up
6580 # making bogus files that we don't know about and never remove. For
6581 # instance it was reported that on HP-UX the gcc test will end up
6582 # making a dummy file named 'D' -- because '-MD' means "put the output
6583 # in D".
6584 rm -rf conftest.dir
6585 mkdir conftest.dir
6586 # Copy depcomp to subdir because otherwise we won't find it if we're
6587 # using a relative directory.
6588 cp "$am_depcomp" conftest.dir
6589 cd conftest.dir
6590 # We will build objects and dependencies in a subdirectory because
6591 # it helps to detect inapplicable dependency modes. For instance
6592 # both Tru64's cc and ICC support -MD to output dependencies as a
6593 # side effect of compilation, but ICC will put the dependencies in
6594 # the current directory while Tru64 will put them in the object
6595 # directory.
6596 mkdir sub
6597
6598 am_cv_CXX_dependencies_compiler_type=none
6599 if test "$am_compiler_list" = ""; then
6600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6601 fi
6602 am__universal=false
6603 case " $depcc " in #(
6604 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6605 esac
6606
6607 for depmode in $am_compiler_list; do
6608 # Setup a source with many dependencies, because some compilers
6609 # like to wrap large dependency lists on column 80 (with \), and
6610 # we should not choose a depcomp mode which is confused by this.
6611 #
6612 # We need to recreate these files for each test, as the compiler may
6613 # overwrite some of them when testing with obscure command lines.
6614 # This happens at least with the AIX C compiler.
6615 : > sub/conftest.c
6616 for i in 1 2 3 4 5 6; do
6617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6618 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6619 # Solaris 10 /bin/sh.
6620 echo '/* dummy */' > sub/conftst$i.h
6621 done
6622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6623
6624 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6625 # mode. It turns out that the SunPro C++ compiler does not properly
6626 # handle '-M -o', and we need to detect this. Also, some Intel
6627 # versions had trouble with output in subdirs.
6628 am__obj=sub/conftest.${OBJEXT-o}
6629 am__minus_obj="-o $am__obj"
6630 case $depmode in
6631 gcc)
6632 # This depmode causes a compiler race in universal mode.
6633 test "$am__universal" = false || continue
6634 ;;
6635 nosideeffect)
6636 # After this tag, mechanisms are not by side-effect, so they'll
6637 # only be used when explicitly requested.
6638 if test "x$enable_dependency_tracking" = xyes; then
6639 continue
6640 else
6641 break
6642 fi
6643 ;;
6644 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6645 # This compiler won't grok '-c -o', but also, the minuso test has
6646 # not run yet. These depmodes are late enough in the game, and
6647 # so weak that their functioning should not be impacted.
6648 am__obj=conftest.${OBJEXT-o}
6649 am__minus_obj=
6650 ;;
6651 none) break ;;
6652 esac
6653 if depmode=$depmode \
6654 source=sub/conftest.c object=$am__obj \
6655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6657 >/dev/null 2>conftest.err &&
6658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6662 # icc doesn't choke on unknown options, it will just issue warnings
6663 # or remarks (even with -Werror). So we grep stderr for any message
6664 # that says an option was ignored or not supported.
6665 # When given -MP, icc 7.0 and 7.1 complain thusly:
6666 # icc: Command line warning: ignoring option '-M'; no argument required
6667 # The diagnosis changed in icc 8.0:
6668 # icc: Command line remark: option '-MP' not supported
6669 if (grep 'ignoring option' conftest.err ||
6670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6671 am_cv_CXX_dependencies_compiler_type=$depmode
6672 break
6673 fi
6674 fi
6675 done
6676
6677 cd ..
6678 rm -rf conftest.dir
6679 else
6680 am_cv_CXX_dependencies_compiler_type=none
6681 fi
6682
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6685 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6686 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6687
6688 if
6689 test "x$enable_dependency_tracking" != xno \
6690 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6691 am__fastdepCXX_TRUE=
6692 am__fastdepCXX_FALSE='#'
6693 else
6694 am__fastdepCXX_TRUE='#'
6695 am__fastdepCXX_FALSE=
6696 fi
6697
6698
6699 ac_ext=cpp
6700 ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6701 ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6702 ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6705 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6706 if test -z "$CXXCPP_FOR_BUILD"; then
6707 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 # Double quotes because CXXCPP needs to be expanded
6711 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6712 do
6713 ac_preproc_ok=false
6714 for ac_cxx_preproc_warn_flag in '' yes
6715 do
6716 # Use a header file that comes with gcc, so configuring glibc
6717 # with a fresh cross-compiler works.
6718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719 # <limits.h> exists even on freestanding compilers.
6720 # On the NeXT, cc -E runs the code through the compiler's parser,
6721 # not just through cpp. "Syntax error" is here to catch this case.
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 #ifdef __STDC__
6725 # include <limits.h>
6726 #else
6727 # include <assert.h>
6728 #endif
6729 Syntax error
6730 _ACEOF
6731 if ac_fn_cxx_try_cpp "$LINENO"; then :
6732
6733 else
6734 # Broken: fails on valid input.
6735 continue
6736 fi
6737 rm -f conftest.err conftest.i conftest.$ac_ext
6738
6739 # OK, works on sane cases. Now check whether nonexistent headers
6740 # can be detected and how.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <ac_nonexistent.h>
6744 _ACEOF
6745 if ac_fn_cxx_try_cpp "$LINENO"; then :
6746 # Broken: success on invalid input.
6747 continue
6748 else
6749 # Passes both tests.
6750 ac_preproc_ok=:
6751 break
6752 fi
6753 rm -f conftest.err conftest.i conftest.$ac_ext
6754
6755 done
6756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6757 rm -f conftest.i conftest.err conftest.$ac_ext
6758 if $ac_preproc_ok; then :
6759 break
6760 fi
6761
6762 done
6763 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6764
6765 fi
6766 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6767 else
6768 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6771 $as_echo "$CXXCPP_FOR_BUILD" >&6; }
6772 ac_preproc_ok=false
6773 for ac_cxx_preproc_warn_flag in '' yes
6774 do
6775 # Use a header file that comes with gcc, so configuring glibc
6776 # with a fresh cross-compiler works.
6777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6778 # <limits.h> exists even on freestanding compilers.
6779 # On the NeXT, cc -E runs the code through the compiler's parser,
6780 # not just through cpp. "Syntax error" is here to catch this case.
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 #ifdef __STDC__
6784 # include <limits.h>
6785 #else
6786 # include <assert.h>
6787 #endif
6788 Syntax error
6789 _ACEOF
6790 if ac_fn_cxx_try_cpp "$LINENO"; then :
6791
6792 else
6793 # Broken: fails on valid input.
6794 continue
6795 fi
6796 rm -f conftest.err conftest.i conftest.$ac_ext
6797
6798 # OK, works on sane cases. Now check whether nonexistent headers
6799 # can be detected and how.
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 #include <ac_nonexistent.h>
6803 _ACEOF
6804 if ac_fn_cxx_try_cpp "$LINENO"; then :
6805 # Broken: success on invalid input.
6806 continue
6807 else
6808 # Passes both tests.
6809 ac_preproc_ok=:
6810 break
6811 fi
6812 rm -f conftest.err conftest.i conftest.$ac_ext
6813
6814 done
6815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6816 rm -f conftest.i conftest.err conftest.$ac_ext
6817 if $ac_preproc_ok; then :
6818
6819 else
6820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6822 as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6823 See \`config.log' for more details" "$LINENO" 5; }
6824 fi
6825
6826 ac_ext=c
6827 ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6828 ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6829 ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831
6832
6833 ac_tool_prefix=$save_ac_tool_prefix
6834 cross_compiling=$save_cross_compiling
6835
6836
6837
6838
6839
6840 if test -n "$ac_tool_prefix"; then
6841 for ac_prog in ar lib "link -lib"
6842 do
6843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_AR+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$AR"; then
6851 ac_cv_prog_AR="$AR" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 AR=$ac_cv_prog_AR
6871 if test -n "$AR"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6873 $as_echo "$AR" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879
6880 test -n "$AR" && break
6881 done
6882 fi
6883 if test -z "$AR"; then
6884 ac_ct_AR=$AR
6885 for ac_prog in ar lib "link -lib"
6886 do
6887 # Extract the first word of "$ac_prog", so it can be a program name with args.
6888 set dummy $ac_prog; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$ac_ct_AR"; then
6895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_ac_ct_AR="$ac_prog"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6915 if test -n "$ac_ct_AR"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6917 $as_echo "$ac_ct_AR" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 test -n "$ac_ct_AR" && break
6925 done
6926
6927 if test "x$ac_ct_AR" = x; then
6928 AR="false"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 AR=$ac_ct_AR
6937 fi
6938 fi
6939
6940 : ${AR=ar}
6941
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6943 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6944 if ${am_cv_ar_interface+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953 am_cv_ar_interface=ar
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 int some_variable = 0;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6961 (eval $am_ar_try) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }
6965 if test "$ac_status" -eq 0; then
6966 am_cv_ar_interface=ar
6967 else
6968 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6970 (eval $am_ar_try) 2>&5
6971 ac_status=$?
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; }
6974 if test "$ac_status" -eq 0; then
6975 am_cv_ar_interface=lib
6976 else
6977 am_cv_ar_interface=unknown
6978 fi
6979 fi
6980 rm -f conftest.lib libconftest.a
6981
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 ac_ext=c
6985 ac_cpp='$CPP $CPPFLAGS'
6986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6992 $as_echo "$am_cv_ar_interface" >&6; }
6993
6994 case $am_cv_ar_interface in
6995 ar)
6996 ;;
6997 lib)
6998 # Microsoft lib, so override with the ar-lib wrapper script.
6999 # FIXME: It is wrong to rewrite AR.
7000 # But if we don't then we get into trouble of one sort or another.
7001 # A longer-term fix would be to have automake use am__AR in this case,
7002 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7003 # similar.
7004 AR="$am_aux_dir/ar-lib $AR"
7005 ;;
7006 unknown)
7007 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7008 ;;
7009 esac
7010
7011
7012
7013 case `pwd` in
7014 *\ * | *\ *)
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7016 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7017 esac
7018
7019
7020
7021 macro_version='2.4.6'
7022 macro_revision='2.4.6'
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036 ltmain=$ac_aux_dir/ltmain.sh
7037
7038 # Backslashify metacharacters that are still active within
7039 # double-quoted strings.
7040 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7041
7042 # Same as above, but do not quote variable references.
7043 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7044
7045 # Sed substitution to delay expansion of an escaped shell variable in a
7046 # double_quote_subst'ed string.
7047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7048
7049 # Sed substitution to delay expansion of an escaped single quote.
7050 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7051
7052 # Sed substitution to avoid accidental globbing in evaled expressions
7053 no_glob_subst='s/\*/\\\*/g'
7054
7055 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7056 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7058
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7060 $as_echo_n "checking how to print strings... " >&6; }
7061 # Test print first, because it will be a builtin if present.
7062 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7064 ECHO='print -r --'
7065 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7066 ECHO='printf %s\n'
7067 else
7068 # Use this function as a fallback that always works.
7069 func_fallback_echo ()
7070 {
7071 eval 'cat <<_LTECHO_EOF
7072 $1
7073 _LTECHO_EOF'
7074 }
7075 ECHO='func_fallback_echo'
7076 fi
7077
7078 # func_echo_all arg...
7079 # Invoke $ECHO with all args, space-separated.
7080 func_echo_all ()
7081 {
7082 $ECHO ""
7083 }
7084
7085 case $ECHO in
7086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7087 $as_echo "printf" >&6; } ;;
7088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7089 $as_echo "print -r" >&6; } ;;
7090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7091 $as_echo "cat" >&6; } ;;
7092 esac
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7108 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7109 if ${ac_cv_path_SED+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7113 for ac_i in 1 2 3 4 5 6 7; do
7114 ac_script="$ac_script$as_nl$ac_script"
7115 done
7116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7117 { ac_script=; unset ac_script;}
7118 if test -z "$SED"; then
7119 ac_path_SED_found=false
7120 # Loop through the user's path and test for each of PROGNAME-LIST
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_prog in sed gsed; do
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7129 as_fn_executable_p "$ac_path_SED" || continue
7130 # Check for GNU ac_path_SED and select it if it is found.
7131 # Check for GNU $ac_path_SED
7132 case `"$ac_path_SED" --version 2>&1` in
7133 *GNU*)
7134 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7135 *)
7136 ac_count=0
7137 $as_echo_n 0123456789 >"conftest.in"
7138 while :
7139 do
7140 cat "conftest.in" "conftest.in" >"conftest.tmp"
7141 mv "conftest.tmp" "conftest.in"
7142 cp "conftest.in" "conftest.nl"
7143 $as_echo '' >> "conftest.nl"
7144 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7146 as_fn_arith $ac_count + 1 && ac_count=$as_val
7147 if test $ac_count -gt ${ac_path_SED_max-0}; then
7148 # Best one so far, save it but keep looking for a better one
7149 ac_cv_path_SED="$ac_path_SED"
7150 ac_path_SED_max=$ac_count
7151 fi
7152 # 10*(2^10) chars as input seems more than enough
7153 test $ac_count -gt 10 && break
7154 done
7155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7156 esac
7157
7158 $ac_path_SED_found && break 3
7159 done
7160 done
7161 done
7162 IFS=$as_save_IFS
7163 if test -z "$ac_cv_path_SED"; then
7164 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7165 fi
7166 else
7167 ac_cv_path_SED=$SED
7168 fi
7169
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7172 $as_echo "$ac_cv_path_SED" >&6; }
7173 SED="$ac_cv_path_SED"
7174 rm -f conftest.sed
7175
7176 test -z "$SED" && SED=sed
7177 Xsed="$SED -e 1s/^X//"
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7190 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7191 if ${ac_cv_path_GREP+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 if test -z "$GREP"; then
7195 ac_path_GREP_found=false
7196 # Loop through the user's path and test for each of PROGNAME-LIST
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7199 do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_prog in grep ggrep; do
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7205 as_fn_executable_p "$ac_path_GREP" || continue
7206 # Check for GNU ac_path_GREP and select it if it is found.
7207 # Check for GNU $ac_path_GREP
7208 case `"$ac_path_GREP" --version 2>&1` in
7209 *GNU*)
7210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7211 *)
7212 ac_count=0
7213 $as_echo_n 0123456789 >"conftest.in"
7214 while :
7215 do
7216 cat "conftest.in" "conftest.in" >"conftest.tmp"
7217 mv "conftest.tmp" "conftest.in"
7218 cp "conftest.in" "conftest.nl"
7219 $as_echo 'GREP' >> "conftest.nl"
7220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7222 as_fn_arith $ac_count + 1 && ac_count=$as_val
7223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7224 # Best one so far, save it but keep looking for a better one
7225 ac_cv_path_GREP="$ac_path_GREP"
7226 ac_path_GREP_max=$ac_count
7227 fi
7228 # 10*(2^10) chars as input seems more than enough
7229 test $ac_count -gt 10 && break
7230 done
7231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7232 esac
7233
7234 $ac_path_GREP_found && break 3
7235 done
7236 done
7237 done
7238 IFS=$as_save_IFS
7239 if test -z "$ac_cv_path_GREP"; then
7240 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7241 fi
7242 else
7243 ac_cv_path_GREP=$GREP
7244 fi
7245
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7248 $as_echo "$ac_cv_path_GREP" >&6; }
7249 GREP="$ac_cv_path_GREP"
7250
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7253 $as_echo_n "checking for egrep... " >&6; }
7254 if ${ac_cv_path_EGREP+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7258 then ac_cv_path_EGREP="$GREP -E"
7259 else
7260 if test -z "$EGREP"; then
7261 ac_path_EGREP_found=false
7262 # Loop through the user's path and test for each of PROGNAME-LIST
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7265 do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_prog in egrep; do
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7271 as_fn_executable_p "$ac_path_EGREP" || continue
7272 # Check for GNU ac_path_EGREP and select it if it is found.
7273 # Check for GNU $ac_path_EGREP
7274 case `"$ac_path_EGREP" --version 2>&1` in
7275 *GNU*)
7276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7277 *)
7278 ac_count=0
7279 $as_echo_n 0123456789 >"conftest.in"
7280 while :
7281 do
7282 cat "conftest.in" "conftest.in" >"conftest.tmp"
7283 mv "conftest.tmp" "conftest.in"
7284 cp "conftest.in" "conftest.nl"
7285 $as_echo 'EGREP' >> "conftest.nl"
7286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7288 as_fn_arith $ac_count + 1 && ac_count=$as_val
7289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7290 # Best one so far, save it but keep looking for a better one
7291 ac_cv_path_EGREP="$ac_path_EGREP"
7292 ac_path_EGREP_max=$ac_count
7293 fi
7294 # 10*(2^10) chars as input seems more than enough
7295 test $ac_count -gt 10 && break
7296 done
7297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7298 esac
7299
7300 $ac_path_EGREP_found && break 3
7301 done
7302 done
7303 done
7304 IFS=$as_save_IFS
7305 if test -z "$ac_cv_path_EGREP"; then
7306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7307 fi
7308 else
7309 ac_cv_path_EGREP=$EGREP
7310 fi
7311
7312 fi
7313 fi
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7315 $as_echo "$ac_cv_path_EGREP" >&6; }
7316 EGREP="$ac_cv_path_EGREP"
7317
7318
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7320 $as_echo_n "checking for fgrep... " >&6; }
7321 if ${ac_cv_path_FGREP+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7325 then ac_cv_path_FGREP="$GREP -F"
7326 else
7327 if test -z "$FGREP"; then
7328 ac_path_FGREP_found=false
7329 # Loop through the user's path and test for each of PROGNAME-LIST
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_prog in fgrep; do
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7338 as_fn_executable_p "$ac_path_FGREP" || continue
7339 # Check for GNU ac_path_FGREP and select it if it is found.
7340 # Check for GNU $ac_path_FGREP
7341 case `"$ac_path_FGREP" --version 2>&1` in
7342 *GNU*)
7343 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7344 *)
7345 ac_count=0
7346 $as_echo_n 0123456789 >"conftest.in"
7347 while :
7348 do
7349 cat "conftest.in" "conftest.in" >"conftest.tmp"
7350 mv "conftest.tmp" "conftest.in"
7351 cp "conftest.in" "conftest.nl"
7352 $as_echo 'FGREP' >> "conftest.nl"
7353 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7355 as_fn_arith $ac_count + 1 && ac_count=$as_val
7356 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7357 # Best one so far, save it but keep looking for a better one
7358 ac_cv_path_FGREP="$ac_path_FGREP"
7359 ac_path_FGREP_max=$ac_count
7360 fi
7361 # 10*(2^10) chars as input seems more than enough
7362 test $ac_count -gt 10 && break
7363 done
7364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7365 esac
7366
7367 $ac_path_FGREP_found && break 3
7368 done
7369 done
7370 done
7371 IFS=$as_save_IFS
7372 if test -z "$ac_cv_path_FGREP"; then
7373 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7374 fi
7375 else
7376 ac_cv_path_FGREP=$FGREP
7377 fi
7378
7379 fi
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7382 $as_echo "$ac_cv_path_FGREP" >&6; }
7383 FGREP="$ac_cv_path_FGREP"
7384
7385
7386 test -z "$GREP" && GREP=grep
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406 # Check whether --with-gnu-ld was given.
7407 if test "${with_gnu_ld+set}" = set; then :
7408 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7409 else
7410 with_gnu_ld=no
7411 fi
7412
7413 ac_prog=ld
7414 if test yes = "$GCC"; then
7415 # Check if gcc -print-prog-name=ld gives a path.
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7417 $as_echo_n "checking for ld used by $CC... " >&6; }
7418 case $host in
7419 *-*-mingw*)
7420 # gcc leaves a trailing carriage return, which upsets mingw
7421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7422 *)
7423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7424 esac
7425 case $ac_prog in
7426 # Accept absolute paths.
7427 [\\/]* | ?:[\\/]*)
7428 re_direlt='/[^/][^/]*/\.\./'
7429 # Canonicalize the pathname of ld
7430 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7431 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7432 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7433 done
7434 test -z "$LD" && LD=$ac_prog
7435 ;;
7436 "")
7437 # If it fails, then pretend we aren't using GCC.
7438 ac_prog=ld
7439 ;;
7440 *)
7441 # If it is relative, then search for the first ld in PATH.
7442 with_gnu_ld=unknown
7443 ;;
7444 esac
7445 elif test yes = "$with_gnu_ld"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7447 $as_echo_n "checking for GNU ld... " >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7450 $as_echo_n "checking for non-GNU ld... " >&6; }
7451 fi
7452 if ${lt_cv_path_LD+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -z "$LD"; then
7456 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7457 for ac_dir in $PATH; do
7458 IFS=$lt_save_ifs
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7461 lt_cv_path_LD=$ac_dir/$ac_prog
7462 # Check to see if the program is GNU ld. I'd rather use --version,
7463 # but apparently some variants of GNU ld only accept -v.
7464 # Break only if it was the GNU/non-GNU ld that we prefer.
7465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7466 *GNU* | *'with BFD'*)
7467 test no != "$with_gnu_ld" && break
7468 ;;
7469 *)
7470 test yes != "$with_gnu_ld" && break
7471 ;;
7472 esac
7473 fi
7474 done
7475 IFS=$lt_save_ifs
7476 else
7477 lt_cv_path_LD=$LD # Let the user override the test with a path.
7478 fi
7479 fi
7480
7481 LD=$lt_cv_path_LD
7482 if test -n "$LD"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7484 $as_echo "$LD" >&6; }
7485 else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7491 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7492 if ${lt_cv_prog_gnu_ld+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7496 case `$LD -v 2>&1 </dev/null` in
7497 *GNU* | *'with BFD'*)
7498 lt_cv_prog_gnu_ld=yes
7499 ;;
7500 *)
7501 lt_cv_prog_gnu_ld=no
7502 ;;
7503 esac
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7506 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7507 with_gnu_ld=$lt_cv_prog_gnu_ld
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7518 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7519 if ${lt_cv_path_NM+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$NM"; then
7523 # Let the user override the test.
7524 lt_cv_path_NM=$NM
7525 else
7526 lt_nm_to_check=${ac_tool_prefix}nm
7527 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7528 lt_nm_to_check="$lt_nm_to_check nm"
7529 fi
7530 for lt_tmp_nm in $lt_nm_to_check; do
7531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7532 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7533 IFS=$lt_save_ifs
7534 test -z "$ac_dir" && ac_dir=.
7535 tmp_nm=$ac_dir/$lt_tmp_nm
7536 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7537 # Check to see if the nm accepts a BSD-compat flag.
7538 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7539 # nm: unknown option "B" ignored
7540 # Tru64's nm complains that /dev/null is an invalid object file
7541 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7542 case $build_os in
7543 mingw*) lt_bad_file=conftest.nm/nofile ;;
7544 *) lt_bad_file=/dev/null ;;
7545 esac
7546 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7547 *$lt_bad_file* | *'Invalid file or object type'*)
7548 lt_cv_path_NM="$tmp_nm -B"
7549 break 2
7550 ;;
7551 *)
7552 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7553 */dev/null*)
7554 lt_cv_path_NM="$tmp_nm -p"
7555 break 2
7556 ;;
7557 *)
7558 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7559 continue # so that we can try to find one that supports BSD flags
7560 ;;
7561 esac
7562 ;;
7563 esac
7564 fi
7565 done
7566 IFS=$lt_save_ifs
7567 done
7568 : ${lt_cv_path_NM=no}
7569 fi
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7572 $as_echo "$lt_cv_path_NM" >&6; }
7573 if test no != "$lt_cv_path_NM"; then
7574 NM=$lt_cv_path_NM
7575 else
7576 # Didn't find any BSD compatible name lister, look for dumpbin.
7577 if test -n "$DUMPBIN"; then :
7578 # Let the user override the test.
7579 else
7580 if test -n "$ac_tool_prefix"; then
7581 for ac_prog in dumpbin "link -dump"
7582 do
7583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_DUMPBIN+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 if test -n "$DUMPBIN"; then
7591 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 DUMPBIN=$ac_cv_prog_DUMPBIN
7611 if test -n "$DUMPBIN"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7613 $as_echo "$DUMPBIN" >&6; }
7614 else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620 test -n "$DUMPBIN" && break
7621 done
7622 fi
7623 if test -z "$DUMPBIN"; then
7624 ac_ct_DUMPBIN=$DUMPBIN
7625 for ac_prog in dumpbin "link -dump"
7626 do
7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
7628 set dummy $ac_prog; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$ac_ct_DUMPBIN"; then
7635 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7655 if test -n "$ac_ct_DUMPBIN"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7657 $as_echo "$ac_ct_DUMPBIN" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663
7664 test -n "$ac_ct_DUMPBIN" && break
7665 done
7666
7667 if test "x$ac_ct_DUMPBIN" = x; then
7668 DUMPBIN=":"
7669 else
7670 case $cross_compiling:$ac_tool_warned in
7671 yes:)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7675 esac
7676 DUMPBIN=$ac_ct_DUMPBIN
7677 fi
7678 fi
7679
7680 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7681 *COFF*)
7682 DUMPBIN="$DUMPBIN -symbols -headers"
7683 ;;
7684 *)
7685 DUMPBIN=:
7686 ;;
7687 esac
7688 fi
7689
7690 if test : != "$DUMPBIN"; then
7691 NM=$DUMPBIN
7692 fi
7693 fi
7694 test -z "$NM" && NM=nm
7695
7696
7697
7698
7699
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7702 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7703 if ${lt_cv_nm_interface+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 lt_cv_nm_interface="BSD nm"
7707 echo "int some_variable = 0;" > conftest.$ac_ext
7708 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7709 (eval "$ac_compile" 2>conftest.err)
7710 cat conftest.err >&5
7711 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7713 cat conftest.err >&5
7714 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7715 cat conftest.out >&5
7716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7717 lt_cv_nm_interface="MS dumpbin"
7718 fi
7719 rm -rf conftest*
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7722 $as_echo "$lt_cv_nm_interface" >&6; }
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7725 $as_echo_n "checking whether ln -s works... " >&6; }
7726 LN_S=$as_ln_s
7727 if test "$LN_S" = "ln -s"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7729 $as_echo "yes" >&6; }
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7732 $as_echo "no, using $LN_S" >&6; }
7733 fi
7734
7735 # find the maximum length of command line arguments
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7737 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7738 if ${lt_cv_sys_max_cmd_len+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 i=0
7742 teststring=ABCD
7743
7744 case $build_os in
7745 msdosdjgpp*)
7746 # On DJGPP, this test can blow up pretty badly due to problems in libc
7747 # (any single argument exceeding 2000 bytes causes a buffer overrun
7748 # during glob expansion). Even if it were fixed, the result of this
7749 # check would be larger than it should be.
7750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7751 ;;
7752
7753 gnu*)
7754 # Under GNU Hurd, this test is not required because there is
7755 # no limit to the length of command line arguments.
7756 # Libtool will interpret -1 as no limit whatsoever
7757 lt_cv_sys_max_cmd_len=-1;
7758 ;;
7759
7760 cygwin* | mingw* | cegcc*)
7761 # On Win9x/ME, this test blows up -- it succeeds, but takes
7762 # about 5 minutes as the teststring grows exponentially.
7763 # Worse, since 9x/ME are not pre-emptively multitasking,
7764 # you end up with a "frozen" computer, even though with patience
7765 # the test eventually succeeds (with a max line length of 256k).
7766 # Instead, let's just punt: use the minimum linelength reported by
7767 # all of the supported platforms: 8192 (on NT/2K/XP).
7768 lt_cv_sys_max_cmd_len=8192;
7769 ;;
7770
7771 mint*)
7772 # On MiNT this can take a long time and run out of memory.
7773 lt_cv_sys_max_cmd_len=8192;
7774 ;;
7775
7776 amigaos*)
7777 # On AmigaOS with pdksh, this test takes hours, literally.
7778 # So we just punt and use a minimum line length of 8192.
7779 lt_cv_sys_max_cmd_len=8192;
7780 ;;
7781
7782 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7783 # This has been around since 386BSD, at least. Likely further.
7784 if test -x /sbin/sysctl; then
7785 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7786 elif test -x /usr/sbin/sysctl; then
7787 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7788 else
7789 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7790 fi
7791 # And add a safety zone
7792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7794 ;;
7795
7796 interix*)
7797 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7798 lt_cv_sys_max_cmd_len=196608
7799 ;;
7800
7801 os2*)
7802 # The test takes a long time on OS/2.
7803 lt_cv_sys_max_cmd_len=8192
7804 ;;
7805
7806 osf*)
7807 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7808 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7809 # nice to cause kernel panics so lets avoid the loop below.
7810 # First set a reasonable default.
7811 lt_cv_sys_max_cmd_len=16384
7812 #
7813 if test -x /sbin/sysconfig; then
7814 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7815 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7816 esac
7817 fi
7818 ;;
7819 sco3.2v5*)
7820 lt_cv_sys_max_cmd_len=102400
7821 ;;
7822 sysv5* | sco5v6* | sysv4.2uw2*)
7823 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7824 if test -n "$kargmax"; then
7825 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7826 else
7827 lt_cv_sys_max_cmd_len=32768
7828 fi
7829 ;;
7830 *)
7831 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7832 if test -n "$lt_cv_sys_max_cmd_len" && \
7833 test undefined != "$lt_cv_sys_max_cmd_len"; then
7834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7836 else
7837 # Make teststring a little bigger before we do anything with it.
7838 # a 1K string should be a reasonable start.
7839 for i in 1 2 3 4 5 6 7 8; do
7840 teststring=$teststring$teststring
7841 done
7842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7843 # If test is not a shell built-in, we'll probably end up computing a
7844 # maximum length that is only half of the actual maximum length, but
7845 # we can't tell.
7846 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7847 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7848 test 17 != "$i" # 1/2 MB should be enough
7849 do
7850 i=`expr $i + 1`
7851 teststring=$teststring$teststring
7852 done
7853 # Only check the string length outside the loop.
7854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7855 teststring=
7856 # Add a significant safety factor because C++ compilers can tack on
7857 # massive amounts of additional arguments before passing them to the
7858 # linker. It appears as though 1/2 is a usable value.
7859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7860 fi
7861 ;;
7862 esac
7863
7864 fi
7865
7866 if test -n "$lt_cv_sys_max_cmd_len"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7868 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7871 $as_echo "none" >&6; }
7872 fi
7873 max_cmd_len=$lt_cv_sys_max_cmd_len
7874
7875
7876
7877
7878
7879
7880 : ${CP="cp -f"}
7881 : ${MV="mv -f"}
7882 : ${RM="rm -f"}
7883
7884 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7885 lt_unset=unset
7886 else
7887 lt_unset=false
7888 fi
7889
7890
7891
7892
7893
7894 # test EBCDIC or ASCII
7895 case `echo X|tr X '\101'` in
7896 A) # ASCII based system
7897 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7898 lt_SP2NL='tr \040 \012'
7899 lt_NL2SP='tr \015\012 \040\040'
7900 ;;
7901 *) # EBCDIC based system
7902 lt_SP2NL='tr \100 \n'
7903 lt_NL2SP='tr \r\n \100\100'
7904 ;;
7905 esac
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7916 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7917 if ${lt_cv_to_host_file_cmd+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 case $host in
7921 *-*-mingw* )
7922 case $build in
7923 *-*-mingw* ) # actually msys
7924 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7925 ;;
7926 *-*-cygwin* )
7927 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7928 ;;
7929 * ) # otherwise, assume *nix
7930 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7931 ;;
7932 esac
7933 ;;
7934 *-*-cygwin* )
7935 case $build in
7936 *-*-mingw* ) # actually msys
7937 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7938 ;;
7939 *-*-cygwin* )
7940 lt_cv_to_host_file_cmd=func_convert_file_noop
7941 ;;
7942 * ) # otherwise, assume *nix
7943 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7944 ;;
7945 esac
7946 ;;
7947 * ) # unhandled hosts (and "normal" native builds)
7948 lt_cv_to_host_file_cmd=func_convert_file_noop
7949 ;;
7950 esac
7951
7952 fi
7953
7954 to_host_file_cmd=$lt_cv_to_host_file_cmd
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7956 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7957
7958
7959
7960
7961
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7963 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7964 if ${lt_cv_to_tool_file_cmd+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 #assume ordinary cross tools, or native build.
7968 lt_cv_to_tool_file_cmd=func_convert_file_noop
7969 case $host in
7970 *-*-mingw* )
7971 case $build in
7972 *-*-mingw* ) # actually msys
7973 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7974 ;;
7975 esac
7976 ;;
7977 esac
7978
7979 fi
7980
7981 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7983 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7984
7985
7986
7987
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7990 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7991 if ${lt_cv_ld_reload_flag+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 lt_cv_ld_reload_flag='-r'
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7997 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7998 reload_flag=$lt_cv_ld_reload_flag
7999 case $reload_flag in
8000 "" | " "*) ;;
8001 *) reload_flag=" $reload_flag" ;;
8002 esac
8003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8004 case $host_os in
8005 cygwin* | mingw* | pw32* | cegcc*)
8006 if test yes != "$GCC"; then
8007 reload_cmds=false
8008 fi
8009 ;;
8010 darwin*)
8011 if test yes = "$GCC"; then
8012 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8013 else
8014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8015 fi
8016 ;;
8017 esac
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 if test -n "$ac_tool_prefix"; then
8028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_prog_OBJDUMP+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$OBJDUMP"; then
8036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 OBJDUMP=$ac_cv_prog_OBJDUMP
8056 if test -n "$OBJDUMP"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8058 $as_echo "$OBJDUMP" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065 fi
8066 if test -z "$ac_cv_prog_OBJDUMP"; then
8067 ac_ct_OBJDUMP=$OBJDUMP
8068 # Extract the first word of "objdump", so it can be a program name with args.
8069 set dummy objdump; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 if test -n "$ac_ct_OBJDUMP"; then
8076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089 done
8090 done
8091 IFS=$as_save_IFS
8092
8093 fi
8094 fi
8095 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8096 if test -n "$ac_ct_OBJDUMP"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8098 $as_echo "$ac_ct_OBJDUMP" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103
8104 if test "x$ac_ct_OBJDUMP" = x; then
8105 OBJDUMP="false"
8106 else
8107 case $cross_compiling:$ac_tool_warned in
8108 yes:)
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111 ac_tool_warned=yes ;;
8112 esac
8113 OBJDUMP=$ac_ct_OBJDUMP
8114 fi
8115 else
8116 OBJDUMP="$ac_cv_prog_OBJDUMP"
8117 fi
8118
8119 test -z "$OBJDUMP" && OBJDUMP=objdump
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8130 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8131 if ${lt_cv_deplibs_check_method+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 lt_cv_file_magic_cmd='$MAGIC_CMD'
8135 lt_cv_file_magic_test_file=
8136 lt_cv_deplibs_check_method='unknown'
8137 # Need to set the preceding variable on all platforms that support
8138 # interlibrary dependencies.
8139 # 'none' -- dependencies not supported.
8140 # 'unknown' -- same as none, but documents that we really don't know.
8141 # 'pass_all' -- all dependencies passed with no checks.
8142 # 'test_compile' -- check by making test program.
8143 # 'file_magic [[regex]]' -- check by looking for files in library path
8144 # that responds to the $file_magic_cmd with a given extended regex.
8145 # If you have 'file' or equivalent on your system and you're not sure
8146 # whether 'pass_all' will *always* work, you probably want this one.
8147
8148 case $host_os in
8149 aix[4-9]*)
8150 lt_cv_deplibs_check_method=pass_all
8151 ;;
8152
8153 beos*)
8154 lt_cv_deplibs_check_method=pass_all
8155 ;;
8156
8157 bsdi[45]*)
8158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8159 lt_cv_file_magic_cmd='/usr/bin/file -L'
8160 lt_cv_file_magic_test_file=/shlib/libc.so
8161 ;;
8162
8163 cygwin*)
8164 # func_win32_libid is a shell function defined in ltmain.sh
8165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8166 lt_cv_file_magic_cmd='func_win32_libid'
8167 ;;
8168
8169 mingw* | pw32*)
8170 # Base MSYS/MinGW do not provide the 'file' command needed by
8171 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8172 # unless we find 'file', for example because we are cross-compiling.
8173 if ( file / ) >/dev/null 2>&1; then
8174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8175 lt_cv_file_magic_cmd='func_win32_libid'
8176 else
8177 # Keep this pattern in sync with the one in func_win32_libid.
8178 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8179 lt_cv_file_magic_cmd='$OBJDUMP -f'
8180 fi
8181 ;;
8182
8183 cegcc*)
8184 # use the weaker test based on 'objdump'. See mingw*.
8185 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8186 lt_cv_file_magic_cmd='$OBJDUMP -f'
8187 ;;
8188
8189 darwin* | rhapsody*)
8190 lt_cv_deplibs_check_method=pass_all
8191 ;;
8192
8193 freebsd* | dragonfly*)
8194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8195 case $host_cpu in
8196 i*86 )
8197 # Not sure whether the presence of OpenBSD here was a mistake.
8198 # Let's accept both of them until this is cleared up.
8199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8200 lt_cv_file_magic_cmd=/usr/bin/file
8201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8202 ;;
8203 esac
8204 else
8205 lt_cv_deplibs_check_method=pass_all
8206 fi
8207 ;;
8208
8209 haiku*)
8210 lt_cv_deplibs_check_method=pass_all
8211 ;;
8212
8213 hpux10.20* | hpux11*)
8214 lt_cv_file_magic_cmd=/usr/bin/file
8215 case $host_cpu in
8216 ia64*)
8217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8219 ;;
8220 hppa*64*)
8221 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]'
8222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8223 ;;
8224 *)
8225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8226 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8227 ;;
8228 esac
8229 ;;
8230
8231 interix[3-9]*)
8232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8234 ;;
8235
8236 irix5* | irix6* | nonstopux*)
8237 case $LD in
8238 *-32|*"-32 ") libmagic=32-bit;;
8239 *-n32|*"-n32 ") libmagic=N32;;
8240 *-64|*"-64 ") libmagic=64-bit;;
8241 *) libmagic=never-match;;
8242 esac
8243 lt_cv_deplibs_check_method=pass_all
8244 ;;
8245
8246 # This must be glibc/ELF.
8247 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8248 lt_cv_deplibs_check_method=pass_all
8249 ;;
8250
8251 netbsd*)
8252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8254 else
8255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8256 fi
8257 ;;
8258
8259 newos6*)
8260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8261 lt_cv_file_magic_cmd=/usr/bin/file
8262 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8263 ;;
8264
8265 *nto* | *qnx*)
8266 lt_cv_deplibs_check_method=pass_all
8267 ;;
8268
8269 openbsd* | bitrig*)
8270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8272 else
8273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8274 fi
8275 ;;
8276
8277 osf3* | osf4* | osf5*)
8278 lt_cv_deplibs_check_method=pass_all
8279 ;;
8280
8281 rdos*)
8282 lt_cv_deplibs_check_method=pass_all
8283 ;;
8284
8285 solaris*)
8286 lt_cv_deplibs_check_method=pass_all
8287 ;;
8288
8289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8290 lt_cv_deplibs_check_method=pass_all
8291 ;;
8292
8293 sysv4 | sysv4.3*)
8294 case $host_vendor in
8295 motorola)
8296 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]'
8297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8298 ;;
8299 ncr)
8300 lt_cv_deplibs_check_method=pass_all
8301 ;;
8302 sequent)
8303 lt_cv_file_magic_cmd='/bin/file'
8304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8305 ;;
8306 sni)
8307 lt_cv_file_magic_cmd='/bin/file'
8308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8309 lt_cv_file_magic_test_file=/lib/libc.so
8310 ;;
8311 siemens)
8312 lt_cv_deplibs_check_method=pass_all
8313 ;;
8314 pc)
8315 lt_cv_deplibs_check_method=pass_all
8316 ;;
8317 esac
8318 ;;
8319
8320 tpf*)
8321 lt_cv_deplibs_check_method=pass_all
8322 ;;
8323 os2*)
8324 lt_cv_deplibs_check_method=pass_all
8325 ;;
8326 esac
8327
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8330 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8331
8332 file_magic_glob=
8333 want_nocaseglob=no
8334 if test "$build" = "$host"; then
8335 case $host_os in
8336 mingw* | pw32*)
8337 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8338 want_nocaseglob=yes
8339 else
8340 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8341 fi
8342 ;;
8343 esac
8344 fi
8345
8346 file_magic_cmd=$lt_cv_file_magic_cmd
8347 deplibs_check_method=$lt_cv_deplibs_check_method
8348 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371 if test -n "$ac_tool_prefix"; then
8372 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8373 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_DLLTOOL+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$DLLTOOL"; then
8380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 DLLTOOL=$ac_cv_prog_DLLTOOL
8400 if test -n "$DLLTOOL"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8402 $as_echo "$DLLTOOL" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409 fi
8410 if test -z "$ac_cv_prog_DLLTOOL"; then
8411 ac_ct_DLLTOOL=$DLLTOOL
8412 # Extract the first word of "dlltool", so it can be a program name with args.
8413 set dummy dlltool; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$ac_ct_DLLTOOL"; then
8420 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433 done
8434 done
8435 IFS=$as_save_IFS
8436
8437 fi
8438 fi
8439 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8440 if test -n "$ac_ct_DLLTOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8442 $as_echo "$ac_ct_DLLTOOL" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448 if test "x$ac_ct_DLLTOOL" = x; then
8449 DLLTOOL="false"
8450 else
8451 case $cross_compiling:$ac_tool_warned in
8452 yes:)
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 ac_tool_warned=yes ;;
8456 esac
8457 DLLTOOL=$ac_ct_DLLTOOL
8458 fi
8459 else
8460 DLLTOOL="$ac_cv_prog_DLLTOOL"
8461 fi
8462
8463 test -z "$DLLTOOL" && DLLTOOL=dlltool
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8475 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8476 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 lt_cv_sharedlib_from_linklib_cmd='unknown'
8480
8481 case $host_os in
8482 cygwin* | mingw* | pw32* | cegcc*)
8483 # two different shell functions defined in ltmain.sh;
8484 # decide which one to use based on capabilities of $DLLTOOL
8485 case `$DLLTOOL --help 2>&1` in
8486 *--identify-strict*)
8487 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8488 ;;
8489 *)
8490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8491 ;;
8492 esac
8493 ;;
8494 *)
8495 # fallback: assume linklib IS sharedlib
8496 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8497 ;;
8498 esac
8499
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8502 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8503 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8504 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8505
8506
8507
8508
8509
8510
8511
8512 if test -n "$ac_tool_prefix"; then
8513 for ac_prog in ar
8514 do
8515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_AR+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$AR"; then
8523 ac_cv_prog_AR="$AR" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 AR=$ac_cv_prog_AR
8543 if test -n "$AR"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8545 $as_echo "$AR" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552 test -n "$AR" && break
8553 done
8554 fi
8555 if test -z "$AR"; then
8556 ac_ct_AR=$AR
8557 for ac_prog in ar
8558 do
8559 # Extract the first word of "$ac_prog", so it can be a program name with args.
8560 set dummy $ac_prog; ac_word=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 if test -n "$ac_ct_AR"; then
8567 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8568 else
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8571 do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576 ac_cv_prog_ac_ct_AR="$ac_prog"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8579 fi
8580 done
8581 done
8582 IFS=$as_save_IFS
8583
8584 fi
8585 fi
8586 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8587 if test -n "$ac_ct_AR"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8589 $as_echo "$ac_ct_AR" >&6; }
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8593 fi
8594
8595
8596 test -n "$ac_ct_AR" && break
8597 done
8598
8599 if test "x$ac_ct_AR" = x; then
8600 AR="false"
8601 else
8602 case $cross_compiling:$ac_tool_warned in
8603 yes:)
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8606 ac_tool_warned=yes ;;
8607 esac
8608 AR=$ac_ct_AR
8609 fi
8610 fi
8611
8612 : ${AR=ar}
8613 : ${AR_FLAGS=cru}
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8626 $as_echo_n "checking for archiver @FILE support... " >&6; }
8627 if ${lt_cv_ar_at_file+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 lt_cv_ar_at_file=no
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633
8634 int
8635 main ()
8636 {
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"; then :
8643 echo conftest.$ac_objext > conftest.lst
8644 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8646 (eval $lt_ar_try) 2>&5
8647 ac_status=$?
8648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8649 test $ac_status = 0; }
8650 if test 0 -eq "$ac_status"; then
8651 # Ensure the archiver fails upon bogus file names.
8652 rm -f conftest.$ac_objext libconftest.a
8653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8654 (eval $lt_ar_try) 2>&5
8655 ac_status=$?
8656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8657 test $ac_status = 0; }
8658 if test 0 -ne "$ac_status"; then
8659 lt_cv_ar_at_file=@
8660 fi
8661 fi
8662 rm -f conftest.* libconftest.a
8663
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8669 $as_echo "$lt_cv_ar_at_file" >&6; }
8670
8671 if test no = "$lt_cv_ar_at_file"; then
8672 archiver_list_spec=
8673 else
8674 archiver_list_spec=$lt_cv_ar_at_file
8675 fi
8676
8677
8678
8679
8680
8681
8682
8683 if test -n "$ac_tool_prefix"; then
8684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8685 set dummy ${ac_tool_prefix}strip; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if ${ac_cv_prog_STRIP+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 if test -n "$STRIP"; then
8692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 STRIP=$ac_cv_prog_STRIP
8712 if test -n "$STRIP"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8714 $as_echo "$STRIP" >&6; }
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721 fi
8722 if test -z "$ac_cv_prog_STRIP"; then
8723 ac_ct_STRIP=$STRIP
8724 # Extract the first word of "strip", so it can be a program name with args.
8725 set dummy strip; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 if test -n "$ac_ct_STRIP"; then
8732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_ac_ct_STRIP="strip"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8744 fi
8745 done
8746 done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8752 if test -n "$ac_ct_STRIP"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8754 $as_echo "$ac_ct_STRIP" >&6; }
8755 else
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 fi
8759
8760 if test "x$ac_ct_STRIP" = x; then
8761 STRIP=":"
8762 else
8763 case $cross_compiling:$ac_tool_warned in
8764 yes:)
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8767 ac_tool_warned=yes ;;
8768 esac
8769 STRIP=$ac_ct_STRIP
8770 fi
8771 else
8772 STRIP="$ac_cv_prog_STRIP"
8773 fi
8774
8775 test -z "$STRIP" && STRIP=:
8776
8777
8778
8779
8780
8781
8782 if test -n "$ac_tool_prefix"; then
8783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if ${ac_cv_prog_RANLIB+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 if test -n "$RANLIB"; then
8791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8792 else
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804 done
8805 done
8806 IFS=$as_save_IFS
8807
8808 fi
8809 fi
8810 RANLIB=$ac_cv_prog_RANLIB
8811 if test -n "$RANLIB"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8813 $as_echo "$RANLIB" >&6; }
8814 else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817 fi
8818
8819
8820 fi
8821 if test -z "$ac_cv_prog_RANLIB"; then
8822 ac_ct_RANLIB=$RANLIB
8823 # Extract the first word of "ranlib", so it can be a program name with args.
8824 set dummy ranlib; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 if test -n "$ac_ct_RANLIB"; then
8831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840 ac_cv_prog_ac_ct_RANLIB="ranlib"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844 done
8845 done
8846 IFS=$as_save_IFS
8847
8848 fi
8849 fi
8850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8851 if test -n "$ac_ct_RANLIB"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8853 $as_echo "$ac_ct_RANLIB" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8858
8859 if test "x$ac_ct_RANLIB" = x; then
8860 RANLIB=":"
8861 else
8862 case $cross_compiling:$ac_tool_warned in
8863 yes:)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866 ac_tool_warned=yes ;;
8867 esac
8868 RANLIB=$ac_ct_RANLIB
8869 fi
8870 else
8871 RANLIB="$ac_cv_prog_RANLIB"
8872 fi
8873
8874 test -z "$RANLIB" && RANLIB=:
8875
8876
8877
8878
8879
8880
8881 # Determine commands to create old-style static archives.
8882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8883 old_postinstall_cmds='chmod 644 $oldlib'
8884 old_postuninstall_cmds=
8885
8886 if test -n "$RANLIB"; then
8887 case $host_os in
8888 bitrig* | openbsd*)
8889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8890 ;;
8891 *)
8892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8893 ;;
8894 esac
8895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8896 fi
8897
8898 case $host_os in
8899 darwin*)
8900 lock_old_archive_extraction=yes ;;
8901 *)
8902 lock_old_archive_extraction=no ;;
8903 esac
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943 # If no C compiler was specified, use CC.
8944 LTCC=${LTCC-"$CC"}
8945
8946 # If no C compiler flags were specified, use CFLAGS.
8947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8948
8949 # Allow CC to be a program name with arguments.
8950 compiler=$CC
8951
8952
8953 # Check for command to grab the raw symbol name followed by C symbol from nm.
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8955 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8956 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959
8960 # These are sane defaults that work on at least a few old systems.
8961 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8962
8963 # Character class describing NM global symbol codes.
8964 symcode='[BCDEGRST]'
8965
8966 # Regexp to match symbols that can be accessed directly from C.
8967 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8968
8969 # Define system-specific variables.
8970 case $host_os in
8971 aix*)
8972 symcode='[BCDT]'
8973 ;;
8974 cygwin* | mingw* | pw32* | cegcc*)
8975 symcode='[ABCDGISTW]'
8976 ;;
8977 hpux*)
8978 if test ia64 = "$host_cpu"; then
8979 symcode='[ABCDEGRST]'
8980 fi
8981 ;;
8982 irix* | nonstopux*)
8983 symcode='[BCDEGRST]'
8984 ;;
8985 osf*)
8986 symcode='[BCDEGQRST]'
8987 ;;
8988 solaris*)
8989 symcode='[BDRT]'
8990 ;;
8991 sco3.2v5*)
8992 symcode='[DT]'
8993 ;;
8994 sysv4.2uw2*)
8995 symcode='[DT]'
8996 ;;
8997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8998 symcode='[ABDT]'
8999 ;;
9000 sysv4)
9001 symcode='[DFNSTU]'
9002 ;;
9003 esac
9004
9005 # If we're using GNU nm, then use its standard symbol codes.
9006 case `$NM -V 2>&1` in
9007 *GNU* | *'with BFD'*)
9008 symcode='[ABCDGIRSTW]' ;;
9009 esac
9010
9011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9012 # Gets list of data symbols to import.
9013 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9014 # Adjust the below global symbol transforms to fixup imported variables.
9015 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9016 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9017 lt_c_name_lib_hook="\
9018 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9019 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9020 else
9021 # Disable hooks by default.
9022 lt_cv_sys_global_symbol_to_import=
9023 lt_cdecl_hook=
9024 lt_c_name_hook=
9025 lt_c_name_lib_hook=
9026 fi
9027
9028 # Transform an extracted symbol line into a proper C declaration.
9029 # Some systems (esp. on ia64) link data and code symbols differently,
9030 # so use this general approach.
9031 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9032 $lt_cdecl_hook\
9033 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9034 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9035
9036 # Transform an extracted symbol line into symbol name and symbol address
9037 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9038 $lt_c_name_hook\
9039 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9040 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9041
9042 # Transform an extracted symbol line into symbol name with lib prefix and
9043 # symbol address.
9044 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9045 $lt_c_name_lib_hook\
9046 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9047 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9048 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9049
9050 # Handle CRLF in mingw tool chain
9051 opt_cr=
9052 case $build_os in
9053 mingw*)
9054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9055 ;;
9056 esac
9057
9058 # Try without a prefix underscore, then with it.
9059 for ac_symprfx in "" "_"; do
9060
9061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9062 symxfrm="\\1 $ac_symprfx\\2 \\2"
9063
9064 # Write the raw and C identifiers.
9065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9066 # Fake it for dumpbin and say T for any non-static function,
9067 # D for any global variable and I for any imported variable.
9068 # Also find C++ and __fastcall symbols from MSVC++,
9069 # which start with @ or ?.
9070 lt_cv_sys_global_symbol_pipe="$AWK '"\
9071 " {last_section=section; section=\$ 3};"\
9072 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9073 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9074 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9075 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9076 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9077 " \$ 0!~/External *\|/{next};"\
9078 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9079 " {if(hide[section]) next};"\
9080 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9081 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9082 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9083 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9084 " ' prfx=^$ac_symprfx"
9085 else
9086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9087 fi
9088 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9089
9090 # Check to see that the pipe works correctly.
9091 pipe_works=no
9092
9093 rm -rf conftest*
9094 cat > conftest.$ac_ext <<_LT_EOF
9095 #ifdef __cplusplus
9096 extern "C" {
9097 #endif
9098 char nm_test_var;
9099 void nm_test_func(void);
9100 void nm_test_func(void){}
9101 #ifdef __cplusplus
9102 }
9103 #endif
9104 int main(){nm_test_var='a';nm_test_func();return(0);}
9105 _LT_EOF
9106
9107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9108 (eval $ac_compile) 2>&5
9109 ac_status=$?
9110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9111 test $ac_status = 0; }; then
9112 # Now try to grab the symbols.
9113 nlist=conftest.nm
9114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9115 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9116 ac_status=$?
9117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9118 test $ac_status = 0; } && test -s "$nlist"; then
9119 # Try sorting and uniquifying the output.
9120 if sort "$nlist" | uniq > "$nlist"T; then
9121 mv -f "$nlist"T "$nlist"
9122 else
9123 rm -f "$nlist"T
9124 fi
9125
9126 # Make sure that we snagged all the symbols we need.
9127 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9128 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9129 cat <<_LT_EOF > conftest.$ac_ext
9130 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9131 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9132 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9133 relocations are performed -- see ld's documentation on pseudo-relocs. */
9134 # define LT_DLSYM_CONST
9135 #elif defined __osf__
9136 /* This system does not cope well with relocations in const data. */
9137 # define LT_DLSYM_CONST
9138 #else
9139 # define LT_DLSYM_CONST const
9140 #endif
9141
9142 #ifdef __cplusplus
9143 extern "C" {
9144 #endif
9145
9146 _LT_EOF
9147 # Now generate the symbol file.
9148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9149
9150 cat <<_LT_EOF >> conftest.$ac_ext
9151
9152 /* The mapping between symbol names and symbols. */
9153 LT_DLSYM_CONST struct {
9154 const char *name;
9155 void *address;
9156 }
9157 lt__PROGRAM__LTX_preloaded_symbols[] =
9158 {
9159 { "@PROGRAM@", (void *) 0 },
9160 _LT_EOF
9161 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9162 cat <<\_LT_EOF >> conftest.$ac_ext
9163 {0, (void *) 0}
9164 };
9165
9166 /* This works around a problem in FreeBSD linker */
9167 #ifdef FREEBSD_WORKAROUND
9168 static const void *lt_preloaded_setup() {
9169 return lt__PROGRAM__LTX_preloaded_symbols;
9170 }
9171 #endif
9172
9173 #ifdef __cplusplus
9174 }
9175 #endif
9176 _LT_EOF
9177 # Now try linking the two files.
9178 mv conftest.$ac_objext conftstm.$ac_objext
9179 lt_globsym_save_LIBS=$LIBS
9180 lt_globsym_save_CFLAGS=$CFLAGS
9181 LIBS=conftstm.$ac_objext
9182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9184 (eval $ac_link) 2>&5
9185 ac_status=$?
9186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9187 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9188 pipe_works=yes
9189 fi
9190 LIBS=$lt_globsym_save_LIBS
9191 CFLAGS=$lt_globsym_save_CFLAGS
9192 else
9193 echo "cannot find nm_test_func in $nlist" >&5
9194 fi
9195 else
9196 echo "cannot find nm_test_var in $nlist" >&5
9197 fi
9198 else
9199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9200 fi
9201 else
9202 echo "$progname: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 fi
9205 rm -rf conftest* conftst*
9206
9207 # Do not use the global_symbol_pipe unless it works.
9208 if test yes = "$pipe_works"; then
9209 break
9210 else
9211 lt_cv_sys_global_symbol_pipe=
9212 fi
9213 done
9214
9215 fi
9216
9217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9218 lt_cv_sys_global_symbol_to_cdecl=
9219 fi
9220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9222 $as_echo "failed" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9225 $as_echo "ok" >&6; }
9226 fi
9227
9228 # Response file support.
9229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9230 nm_file_list_spec='@'
9231 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9232 nm_file_list_spec='@'
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9272 $as_echo_n "checking for sysroot... " >&6; }
9273
9274 # Check whether --with-sysroot was given.
9275 if test "${with_sysroot+set}" = set; then :
9276 withval=$with_sysroot;
9277 else
9278 with_sysroot=no
9279 fi
9280
9281
9282 lt_sysroot=
9283 case $with_sysroot in #(
9284 yes)
9285 if test yes = "$GCC"; then
9286 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9287 fi
9288 ;; #(
9289 /*)
9290 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9291 ;; #(
9292 no|'')
9293 ;; #(
9294 *)
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9296 $as_echo "$with_sysroot" >&6; }
9297 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9298 ;;
9299 esac
9300
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9302 $as_echo "${lt_sysroot:-no}" >&6; }
9303
9304
9305
9306
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9309 $as_echo_n "checking for a working dd... " >&6; }
9310 if ${ac_cv_path_lt_DD+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 printf 0123456789abcdef0123456789abcdef >conftest.i
9314 cat conftest.i conftest.i >conftest2.i
9315 : ${lt_DD:=$DD}
9316 if test -z "$lt_DD"; then
9317 ac_path_lt_DD_found=false
9318 # Loop through the user's path and test for each of PROGNAME-LIST
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9321 do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_prog in dd; do
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9327 as_fn_executable_p "$ac_path_lt_DD" || continue
9328 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9329 cmp -s conftest.i conftest.out \
9330 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9331 fi
9332 $ac_path_lt_DD_found && break 3
9333 done
9334 done
9335 done
9336 IFS=$as_save_IFS
9337 if test -z "$ac_cv_path_lt_DD"; then
9338 :
9339 fi
9340 else
9341 ac_cv_path_lt_DD=$lt_DD
9342 fi
9343
9344 rm -f conftest.i conftest2.i conftest.out
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9347 $as_echo "$ac_cv_path_lt_DD" >&6; }
9348
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9351 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9352 if ${lt_cv_truncate_bin+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 printf 0123456789abcdef0123456789abcdef >conftest.i
9356 cat conftest.i conftest.i >conftest2.i
9357 lt_cv_truncate_bin=
9358 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9359 cmp -s conftest.i conftest.out \
9360 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9361 fi
9362 rm -f conftest.i conftest2.i conftest.out
9363 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9364 fi
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9366 $as_echo "$lt_cv_truncate_bin" >&6; }
9367
9368
9369
9370
9371
9372
9373
9374 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9375 func_cc_basename ()
9376 {
9377 for cc_temp in $*""; do
9378 case $cc_temp in
9379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9381 \-*) ;;
9382 *) break;;
9383 esac
9384 done
9385 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9386 }
9387
9388 # Check whether --enable-libtool-lock was given.
9389 if test "${enable_libtool_lock+set}" = set; then :
9390 enableval=$enable_libtool_lock;
9391 fi
9392
9393 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9394
9395 # Some flags need to be propagated to the compiler or linker for good
9396 # libtool support.
9397 case $host in
9398 ia64-*-hpux*)
9399 # Find out what ABI is being produced by ac_compile, and set mode
9400 # options accordingly.
9401 echo 'int i;' > conftest.$ac_ext
9402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9403 (eval $ac_compile) 2>&5
9404 ac_status=$?
9405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9406 test $ac_status = 0; }; then
9407 case `/usr/bin/file conftest.$ac_objext` in
9408 *ELF-32*)
9409 HPUX_IA64_MODE=32
9410 ;;
9411 *ELF-64*)
9412 HPUX_IA64_MODE=64
9413 ;;
9414 esac
9415 fi
9416 rm -rf conftest*
9417 ;;
9418 *-*-irix6*)
9419 # Find out what ABI is being produced by ac_compile, and set linker
9420 # options accordingly.
9421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9423 (eval $ac_compile) 2>&5
9424 ac_status=$?
9425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9426 test $ac_status = 0; }; then
9427 if test yes = "$lt_cv_prog_gnu_ld"; then
9428 case `/usr/bin/file conftest.$ac_objext` in
9429 *32-bit*)
9430 LD="${LD-ld} -melf32bsmip"
9431 ;;
9432 *N32*)
9433 LD="${LD-ld} -melf32bmipn32"
9434 ;;
9435 *64-bit*)
9436 LD="${LD-ld} -melf64bmip"
9437 ;;
9438 esac
9439 else
9440 case `/usr/bin/file conftest.$ac_objext` in
9441 *32-bit*)
9442 LD="${LD-ld} -32"
9443 ;;
9444 *N32*)
9445 LD="${LD-ld} -n32"
9446 ;;
9447 *64-bit*)
9448 LD="${LD-ld} -64"
9449 ;;
9450 esac
9451 fi
9452 fi
9453 rm -rf conftest*
9454 ;;
9455
9456 mips64*-*linux*)
9457 # Find out what ABI is being produced by ac_compile, and set linker
9458 # options accordingly.
9459 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9461 (eval $ac_compile) 2>&5
9462 ac_status=$?
9463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }; then
9465 emul=elf
9466 case `/usr/bin/file conftest.$ac_objext` in
9467 *32-bit*)
9468 emul="${emul}32"
9469 ;;
9470 *64-bit*)
9471 emul="${emul}64"
9472 ;;
9473 esac
9474 case `/usr/bin/file conftest.$ac_objext` in
9475 *MSB*)
9476 emul="${emul}btsmip"
9477 ;;
9478 *LSB*)
9479 emul="${emul}ltsmip"
9480 ;;
9481 esac
9482 case `/usr/bin/file conftest.$ac_objext` in
9483 *N32*)
9484 emul="${emul}n32"
9485 ;;
9486 esac
9487 LD="${LD-ld} -m $emul"
9488 fi
9489 rm -rf conftest*
9490 ;;
9491
9492 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9493 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9494 # Find out what ABI is being produced by ac_compile, and set linker
9495 # options accordingly. Note that the listed cases only cover the
9496 # situations where additional linker options are needed (such as when
9497 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9498 # vice versa); the common cases where no linker options are needed do
9499 # not appear in the list.
9500 echo 'int i;' > conftest.$ac_ext
9501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9502 (eval $ac_compile) 2>&5
9503 ac_status=$?
9504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9505 test $ac_status = 0; }; then
9506 case `/usr/bin/file conftest.o` in
9507 *32-bit*)
9508 case $host in
9509 x86_64-*kfreebsd*-gnu)
9510 LD="${LD-ld} -m elf_i386_fbsd"
9511 ;;
9512 x86_64-*linux*)
9513 case `/usr/bin/file conftest.o` in
9514 *x86-64*)
9515 LD="${LD-ld} -m elf32_x86_64"
9516 ;;
9517 *)
9518 LD="${LD-ld} -m elf_i386"
9519 ;;
9520 esac
9521 ;;
9522 powerpc64le-*linux*)
9523 LD="${LD-ld} -m elf32lppclinux"
9524 ;;
9525 powerpc64-*linux*)
9526 LD="${LD-ld} -m elf32ppclinux"
9527 ;;
9528 s390x-*linux*)
9529 LD="${LD-ld} -m elf_s390"
9530 ;;
9531 sparc64-*linux*)
9532 LD="${LD-ld} -m elf32_sparc"
9533 ;;
9534 esac
9535 ;;
9536 *64-bit*)
9537 case $host in
9538 x86_64-*kfreebsd*-gnu)
9539 LD="${LD-ld} -m elf_x86_64_fbsd"
9540 ;;
9541 x86_64-*linux*)
9542 LD="${LD-ld} -m elf_x86_64"
9543 ;;
9544 powerpcle-*linux*)
9545 LD="${LD-ld} -m elf64lppc"
9546 ;;
9547 powerpc-*linux*)
9548 LD="${LD-ld} -m elf64ppc"
9549 ;;
9550 s390*-*linux*|s390*-*tpf*)
9551 LD="${LD-ld} -m elf64_s390"
9552 ;;
9553 sparc*-*linux*)
9554 LD="${LD-ld} -m elf64_sparc"
9555 ;;
9556 esac
9557 ;;
9558 esac
9559 fi
9560 rm -rf conftest*
9561 ;;
9562
9563 *-*-sco3.2v5*)
9564 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9565 SAVE_CFLAGS=$CFLAGS
9566 CFLAGS="$CFLAGS -belf"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9568 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9569 if ${lt_cv_cc_needs_belf+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 ac_ext=c
9573 ac_cpp='$CPP $CPPFLAGS'
9574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9577
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580
9581 int
9582 main ()
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 lt_cv_cc_needs_belf=yes
9591 else
9592 lt_cv_cc_needs_belf=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 ac_ext=c
9597 ac_cpp='$CPP $CPPFLAGS'
9598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9601
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9604 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9605 if test yes != "$lt_cv_cc_needs_belf"; then
9606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9607 CFLAGS=$SAVE_CFLAGS
9608 fi
9609 ;;
9610 *-*solaris*)
9611 # Find out what ABI is being produced by ac_compile, and set linker
9612 # options accordingly.
9613 echo 'int i;' > conftest.$ac_ext
9614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9615 (eval $ac_compile) 2>&5
9616 ac_status=$?
9617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9618 test $ac_status = 0; }; then
9619 case `/usr/bin/file conftest.o` in
9620 *64-bit*)
9621 case $lt_cv_prog_gnu_ld in
9622 yes*)
9623 case $host in
9624 i?86-*-solaris*|x86_64-*-solaris*)
9625 LD="${LD-ld} -m elf_x86_64"
9626 ;;
9627 sparc*-*-solaris*)
9628 LD="${LD-ld} -m elf64_sparc"
9629 ;;
9630 esac
9631 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9632 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9633 LD=${LD-ld}_sol2
9634 fi
9635 ;;
9636 *)
9637 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9638 LD="${LD-ld} -64"
9639 fi
9640 ;;
9641 esac
9642 ;;
9643 esac
9644 fi
9645 rm -rf conftest*
9646 ;;
9647 esac
9648
9649 need_locks=$enable_libtool_lock
9650
9651 if test -n "$ac_tool_prefix"; then
9652 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9653 set dummy ${ac_tool_prefix}mt; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 if test -n "$MANIFEST_TOOL"; then
9660 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9661 else
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9672 fi
9673 done
9674 done
9675 IFS=$as_save_IFS
9676
9677 fi
9678 fi
9679 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9680 if test -n "$MANIFEST_TOOL"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9682 $as_echo "$MANIFEST_TOOL" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9686 fi
9687
9688
9689 fi
9690 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9691 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9692 # Extract the first word of "mt", so it can be a program name with args.
9693 set dummy mt; ac_word=$2
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 if test -n "$ac_ct_MANIFEST_TOOL"; then
9700 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9701 else
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9704 do
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 break 2
9712 fi
9713 done
9714 done
9715 IFS=$as_save_IFS
9716
9717 fi
9718 fi
9719 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9720 if test -n "$ac_ct_MANIFEST_TOOL"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9722 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9726 fi
9727
9728 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9729 MANIFEST_TOOL=":"
9730 else
9731 case $cross_compiling:$ac_tool_warned in
9732 yes:)
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9735 ac_tool_warned=yes ;;
9736 esac
9737 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9738 fi
9739 else
9740 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9741 fi
9742
9743 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9745 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9746 if ${lt_cv_path_mainfest_tool+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 lt_cv_path_mainfest_tool=no
9750 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9751 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9752 cat conftest.err >&5
9753 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9754 lt_cv_path_mainfest_tool=yes
9755 fi
9756 rm -rf conftest*
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9759 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9760 if test yes != "$lt_cv_path_mainfest_tool"; then
9761 MANIFEST_TOOL=:
9762 fi
9763
9764
9765
9766
9767
9768
9769 case $host_os in
9770 rhapsody* | darwin*)
9771 if test -n "$ac_tool_prefix"; then
9772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 if test -n "$DSYMUTIL"; then
9780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9781 else
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9784 do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9792 fi
9793 done
9794 done
9795 IFS=$as_save_IFS
9796
9797 fi
9798 fi
9799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9800 if test -n "$DSYMUTIL"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9802 $as_echo "$DSYMUTIL" >&6; }
9803 else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9806 fi
9807
9808
9809 fi
9810 if test -z "$ac_cv_prog_DSYMUTIL"; then
9811 ac_ct_DSYMUTIL=$DSYMUTIL
9812 # Extract the first word of "dsymutil", so it can be a program name with args.
9813 set dummy dsymutil; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 if test -n "$ac_ct_DSYMUTIL"; then
9820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833 done
9834 done
9835 IFS=$as_save_IFS
9836
9837 fi
9838 fi
9839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9840 if test -n "$ac_ct_DSYMUTIL"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9846 fi
9847
9848 if test "x$ac_ct_DSYMUTIL" = x; then
9849 DSYMUTIL=":"
9850 else
9851 case $cross_compiling:$ac_tool_warned in
9852 yes:)
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9855 ac_tool_warned=yes ;;
9856 esac
9857 DSYMUTIL=$ac_ct_DSYMUTIL
9858 fi
9859 else
9860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9861 fi
9862
9863 if test -n "$ac_tool_prefix"; then
9864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_prog_NMEDIT+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 if test -n "$NMEDIT"; then
9872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9873 else
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in $PATH
9876 do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9884 fi
9885 done
9886 done
9887 IFS=$as_save_IFS
9888
9889 fi
9890 fi
9891 NMEDIT=$ac_cv_prog_NMEDIT
9892 if test -n "$NMEDIT"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9894 $as_echo "$NMEDIT" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9898 fi
9899
9900
9901 fi
9902 if test -z "$ac_cv_prog_NMEDIT"; then
9903 ac_ct_NMEDIT=$NMEDIT
9904 # Extract the first word of "nmedit", so it can be a program name with args.
9905 set dummy nmedit; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 if test -n "$ac_ct_NMEDIT"; then
9912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9916 do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925 done
9926 done
9927 IFS=$as_save_IFS
9928
9929 fi
9930 fi
9931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9932 if test -n "$ac_ct_NMEDIT"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9934 $as_echo "$ac_ct_NMEDIT" >&6; }
9935 else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9938 fi
9939
9940 if test "x$ac_ct_NMEDIT" = x; then
9941 NMEDIT=":"
9942 else
9943 case $cross_compiling:$ac_tool_warned in
9944 yes:)
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9947 ac_tool_warned=yes ;;
9948 esac
9949 NMEDIT=$ac_ct_NMEDIT
9950 fi
9951 else
9952 NMEDIT="$ac_cv_prog_NMEDIT"
9953 fi
9954
9955 if test -n "$ac_tool_prefix"; then
9956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_prog_LIPO+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 if test -n "$LIPO"; then
9964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9965 else
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $PATH
9968 do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977 done
9978 done
9979 IFS=$as_save_IFS
9980
9981 fi
9982 fi
9983 LIPO=$ac_cv_prog_LIPO
9984 if test -n "$LIPO"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9986 $as_echo "$LIPO" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9990 fi
9991
9992
9993 fi
9994 if test -z "$ac_cv_prog_LIPO"; then
9995 ac_ct_LIPO=$LIPO
9996 # Extract the first word of "lipo", so it can be a program name with args.
9997 set dummy lipo; ac_word=$2
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 $as_echo_n "checking for $ac_word... " >&6; }
10000 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 if test -n "$ac_ct_LIPO"; then
10004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10005 else
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013 ac_cv_prog_ac_ct_LIPO="lipo"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 fi
10022 fi
10023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10024 if test -n "$ac_ct_LIPO"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10026 $as_echo "$ac_ct_LIPO" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10030 fi
10031
10032 if test "x$ac_ct_LIPO" = x; then
10033 LIPO=":"
10034 else
10035 case $cross_compiling:$ac_tool_warned in
10036 yes:)
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10039 ac_tool_warned=yes ;;
10040 esac
10041 LIPO=$ac_ct_LIPO
10042 fi
10043 else
10044 LIPO="$ac_cv_prog_LIPO"
10045 fi
10046
10047 if test -n "$ac_tool_prefix"; then
10048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10049 set dummy ${ac_tool_prefix}otool; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_prog_OTOOL+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 if test -n "$OTOOL"; then
10056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069 done
10070 done
10071 IFS=$as_save_IFS
10072
10073 fi
10074 fi
10075 OTOOL=$ac_cv_prog_OTOOL
10076 if test -n "$OTOOL"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10078 $as_echo "$OTOOL" >&6; }
10079 else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10082 fi
10083
10084
10085 fi
10086 if test -z "$ac_cv_prog_OTOOL"; then
10087 ac_ct_OTOOL=$OTOOL
10088 # Extract the first word of "otool", so it can be a program name with args.
10089 set dummy otool; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 if test -n "$ac_ct_OTOOL"; then
10096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10097 else
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10100 do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105 ac_cv_prog_ac_ct_OTOOL="otool"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109 done
10110 done
10111 IFS=$as_save_IFS
10112
10113 fi
10114 fi
10115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10116 if test -n "$ac_ct_OTOOL"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10118 $as_echo "$ac_ct_OTOOL" >&6; }
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123
10124 if test "x$ac_ct_OTOOL" = x; then
10125 OTOOL=":"
10126 else
10127 case $cross_compiling:$ac_tool_warned in
10128 yes:)
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10131 ac_tool_warned=yes ;;
10132 esac
10133 OTOOL=$ac_ct_OTOOL
10134 fi
10135 else
10136 OTOOL="$ac_cv_prog_OTOOL"
10137 fi
10138
10139 if test -n "$ac_tool_prefix"; then
10140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if ${ac_cv_prog_OTOOL64+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 if test -n "$OTOOL64"; then
10148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10149 else
10150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10152 do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161 done
10162 done
10163 IFS=$as_save_IFS
10164
10165 fi
10166 fi
10167 OTOOL64=$ac_cv_prog_OTOOL64
10168 if test -n "$OTOOL64"; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10170 $as_echo "$OTOOL64" >&6; }
10171 else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10174 fi
10175
10176
10177 fi
10178 if test -z "$ac_cv_prog_OTOOL64"; then
10179 ac_ct_OTOOL64=$OTOOL64
10180 # Extract the first word of "otool64", so it can be a program name with args.
10181 set dummy otool64; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 if test -n "$ac_ct_OTOOL64"; then
10188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10189 else
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10192 do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_ac_ct_OTOOL64="otool64"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201 done
10202 done
10203 IFS=$as_save_IFS
10204
10205 fi
10206 fi
10207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10208 if test -n "$ac_ct_OTOOL64"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10210 $as_echo "$ac_ct_OTOOL64" >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215
10216 if test "x$ac_ct_OTOOL64" = x; then
10217 OTOOL64=":"
10218 else
10219 case $cross_compiling:$ac_tool_warned in
10220 yes:)
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223 ac_tool_warned=yes ;;
10224 esac
10225 OTOOL64=$ac_ct_OTOOL64
10226 fi
10227 else
10228 OTOOL64="$ac_cv_prog_OTOOL64"
10229 fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10258 $as_echo_n "checking for -single_module linker flag... " >&6; }
10259 if ${lt_cv_apple_cc_single_mod+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 lt_cv_apple_cc_single_mod=no
10263 if test -z "$LT_MULTI_MODULE"; then
10264 # By default we will add the -single_module flag. You can override
10265 # by either setting the environment variable LT_MULTI_MODULE
10266 # non-empty at configure time, or by adding -multi_module to the
10267 # link flags.
10268 rm -rf libconftest.dylib*
10269 echo "int foo(void){return 1;}" > conftest.c
10270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10271 -dynamiclib -Wl,-single_module conftest.c" >&5
10272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10274 _lt_result=$?
10275 # If there is a non-empty error log, and "single_module"
10276 # appears in it, assume the flag caused a linker warning
10277 if test -s conftest.err && $GREP single_module conftest.err; then
10278 cat conftest.err >&5
10279 # Otherwise, if the output was created with a 0 exit code from
10280 # the compiler, it worked.
10281 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10282 lt_cv_apple_cc_single_mod=yes
10283 else
10284 cat conftest.err >&5
10285 fi
10286 rm -rf libconftest.dylib*
10287 rm -f conftest.*
10288 fi
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10291 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10292
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10294 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10295 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 lt_cv_ld_exported_symbols_list=no
10299 save_LDFLAGS=$LDFLAGS
10300 echo "_main" > conftest.sym
10301 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304
10305 int
10306 main ()
10307 {
10308
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 lt_cv_ld_exported_symbols_list=yes
10315 else
10316 lt_cv_ld_exported_symbols_list=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LDFLAGS=$save_LDFLAGS
10321
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10324 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10327 $as_echo_n "checking for -force_load linker flag... " >&6; }
10328 if ${lt_cv_ld_force_load+:} false; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 lt_cv_ld_force_load=no
10332 cat > conftest.c << _LT_EOF
10333 int forced_loaded() { return 2;}
10334 _LT_EOF
10335 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10336 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10337 echo "$AR cru libconftest.a conftest.o" >&5
10338 $AR cru libconftest.a conftest.o 2>&5
10339 echo "$RANLIB libconftest.a" >&5
10340 $RANLIB libconftest.a 2>&5
10341 cat > conftest.c << _LT_EOF
10342 int main() { return 0;}
10343 _LT_EOF
10344 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10345 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10346 _lt_result=$?
10347 if test -s conftest.err && $GREP force_load conftest.err; then
10348 cat conftest.err >&5
10349 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10350 lt_cv_ld_force_load=yes
10351 else
10352 cat conftest.err >&5
10353 fi
10354 rm -f conftest.err libconftest.a conftest conftest.c
10355 rm -rf conftest.dSYM
10356
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10359 $as_echo "$lt_cv_ld_force_load" >&6; }
10360 case $host_os in
10361 rhapsody* | darwin1.[012])
10362 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10363 darwin1.*)
10364 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10365 darwin*) # darwin 5.x on
10366 # if running on 10.5 or later, the deployment target defaults
10367 # to the OS version, if on x86, and 10.4, the deployment
10368 # target defaults to 10.4. Don't you love it?
10369 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10370 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10371 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10372 10.[012][,.]*)
10373 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10374 10.*)
10375 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10376 esac
10377 ;;
10378 esac
10379 if test yes = "$lt_cv_apple_cc_single_mod"; then
10380 _lt_dar_single_mod='$single_module'
10381 fi
10382 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10383 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10384 else
10385 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10386 fi
10387 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10388 _lt_dsymutil='~$DSYMUTIL $lib || :'
10389 else
10390 _lt_dsymutil=
10391 fi
10392 ;;
10393 esac
10394
10395 # func_munge_path_list VARIABLE PATH
10396 # -----------------------------------
10397 # VARIABLE is name of variable containing _space_ separated list of
10398 # directories to be munged by the contents of PATH, which is string
10399 # having a format:
10400 # "DIR[:DIR]:"
10401 # string "DIR[ DIR]" will be prepended to VARIABLE
10402 # ":DIR[:DIR]"
10403 # string "DIR[ DIR]" will be appended to VARIABLE
10404 # "DIRP[:DIRP]::[DIRA:]DIRA"
10405 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10406 # "DIRA[ DIRA]" will be appended to VARIABLE
10407 # "DIR[:DIR]"
10408 # VARIABLE will be replaced by "DIR[ DIR]"
10409 func_munge_path_list ()
10410 {
10411 case x$2 in
10412 x)
10413 ;;
10414 *:)
10415 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10416 ;;
10417 x:*)
10418 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10419 ;;
10420 *::*)
10421 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10422 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10423 ;;
10424 *)
10425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10426 ;;
10427 esac
10428 }
10429
10430
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10432 $as_echo_n "checking for ANSI C header files... " >&6; }
10433 if ${ac_cv_header_stdc+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10438 #include <stdlib.h>
10439 #include <stdarg.h>
10440 #include <string.h>
10441 #include <float.h>
10442
10443 int
10444 main ()
10445 {
10446
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_compile "$LINENO"; then :
10452 ac_cv_header_stdc=yes
10453 else
10454 ac_cv_header_stdc=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457
10458 if test $ac_cv_header_stdc = yes; then
10459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 #include <string.h>
10463
10464 _ACEOF
10465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10466 $EGREP "memchr" >/dev/null 2>&1; then :
10467
10468 else
10469 ac_cv_header_stdc=no
10470 fi
10471 rm -f conftest*
10472
10473 fi
10474
10475 if test $ac_cv_header_stdc = yes; then
10476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 #include <stdlib.h>
10480
10481 _ACEOF
10482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10483 $EGREP "free" >/dev/null 2>&1; then :
10484
10485 else
10486 ac_cv_header_stdc=no
10487 fi
10488 rm -f conftest*
10489
10490 fi
10491
10492 if test $ac_cv_header_stdc = yes; then
10493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10494 if test "$cross_compiling" = yes; then :
10495 :
10496 else
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499 #include <ctype.h>
10500 #include <stdlib.h>
10501 #if ((' ' & 0x0FF) == 0x020)
10502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10504 #else
10505 # define ISLOWER(c) \
10506 (('a' <= (c) && (c) <= 'i') \
10507 || ('j' <= (c) && (c) <= 'r') \
10508 || ('s' <= (c) && (c) <= 'z'))
10509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10510 #endif
10511
10512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10513 int
10514 main ()
10515 {
10516 int i;
10517 for (i = 0; i < 256; i++)
10518 if (XOR (islower (i), ISLOWER (i))
10519 || toupper (i) != TOUPPER (i))
10520 return 2;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_run "$LINENO"; then :
10525
10526 else
10527 ac_cv_header_stdc=no
10528 fi
10529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10530 conftest.$ac_objext conftest.beam conftest.$ac_ext
10531 fi
10532
10533 fi
10534 fi
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10536 $as_echo "$ac_cv_header_stdc" >&6; }
10537 if test $ac_cv_header_stdc = yes; then
10538
10539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10540
10541 fi
10542
10543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10545 inttypes.h stdint.h unistd.h
10546 do :
10547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10549 "
10550 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10551 cat >>confdefs.h <<_ACEOF
10552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553 _ACEOF
10554
10555 fi
10556
10557 done
10558
10559
10560 for ac_header in dlfcn.h
10561 do :
10562 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10563 "
10564 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10565 cat >>confdefs.h <<_ACEOF
10566 #define HAVE_DLFCN_H 1
10567 _ACEOF
10568
10569 fi
10570
10571 done
10572
10573
10574
10575
10576 func_stripname_cnf ()
10577 {
10578 case $2 in
10579 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10580 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10581 esac
10582 } # func_stripname_cnf
10583
10584
10585
10586
10587
10588 # Set options
10589 # Check whether --enable-static was given.
10590 if test "${enable_static+set}" = set; then :
10591 enableval=$enable_static; p=${PACKAGE-default}
10592 case $enableval in
10593 yes) enable_static=yes ;;
10594 no) enable_static=no ;;
10595 *)
10596 enable_static=no
10597 # Look at the argument we got. We use all the common list separators.
10598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10599 for pkg in $enableval; do
10600 IFS=$lt_save_ifs
10601 if test "X$pkg" = "X$p"; then
10602 enable_static=yes
10603 fi
10604 done
10605 IFS=$lt_save_ifs
10606 ;;
10607 esac
10608 else
10609 enable_static=no
10610 fi
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621 enable_dlopen=no
10622
10623
10624 enable_win32_dll=no
10625
10626
10627 # Check whether --enable-shared was given.
10628 if test "${enable_shared+set}" = set; then :
10629 enableval=$enable_shared; p=${PACKAGE-default}
10630 case $enableval in
10631 yes) enable_shared=yes ;;
10632 no) enable_shared=no ;;
10633 *)
10634 enable_shared=no
10635 # Look at the argument we got. We use all the common list separators.
10636 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10637 for pkg in $enableval; do
10638 IFS=$lt_save_ifs
10639 if test "X$pkg" = "X$p"; then
10640 enable_shared=yes
10641 fi
10642 done
10643 IFS=$lt_save_ifs
10644 ;;
10645 esac
10646 else
10647 enable_shared=yes
10648 fi
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660 # Check whether --with-pic was given.
10661 if test "${with_pic+set}" = set; then :
10662 withval=$with_pic; lt_p=${PACKAGE-default}
10663 case $withval in
10664 yes|no) pic_mode=$withval ;;
10665 *)
10666 pic_mode=default
10667 # Look at the argument we got. We use all the common list separators.
10668 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10669 for lt_pkg in $withval; do
10670 IFS=$lt_save_ifs
10671 if test "X$lt_pkg" = "X$lt_p"; then
10672 pic_mode=yes
10673 fi
10674 done
10675 IFS=$lt_save_ifs
10676 ;;
10677 esac
10678 else
10679 pic_mode=default
10680 fi
10681
10682
10683
10684
10685
10686
10687
10688
10689 # Check whether --enable-fast-install was given.
10690 if test "${enable_fast_install+set}" = set; then :
10691 enableval=$enable_fast_install; p=${PACKAGE-default}
10692 case $enableval in
10693 yes) enable_fast_install=yes ;;
10694 no) enable_fast_install=no ;;
10695 *)
10696 enable_fast_install=no
10697 # Look at the argument we got. We use all the common list separators.
10698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10699 for pkg in $enableval; do
10700 IFS=$lt_save_ifs
10701 if test "X$pkg" = "X$p"; then
10702 enable_fast_install=yes
10703 fi
10704 done
10705 IFS=$lt_save_ifs
10706 ;;
10707 esac
10708 else
10709 enable_fast_install=yes
10710 fi
10711
10712
10713
10714
10715
10716
10717
10718
10719 shared_archive_member_spec=
10720 case $host,$enable_shared in
10721 power*-*-aix[5-9]*,yes)
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10723 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10724
10725 # Check whether --with-aix-soname was given.
10726 if test "${with_aix_soname+set}" = set; then :
10727 withval=$with_aix_soname; case $withval in
10728 aix|svr4|both)
10729 ;;
10730 *)
10731 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10732 ;;
10733 esac
10734 lt_cv_with_aix_soname=$with_aix_soname
10735 else
10736 if ${lt_cv_with_aix_soname+:} false; then :
10737 $as_echo_n "(cached) " >&6
10738 else
10739 lt_cv_with_aix_soname=aix
10740 fi
10741
10742 with_aix_soname=$lt_cv_with_aix_soname
10743 fi
10744
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10746 $as_echo "$with_aix_soname" >&6; }
10747 if test aix != "$with_aix_soname"; then
10748 # For the AIX way of multilib, we name the shared archive member
10749 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10750 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10751 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10752 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10753 if test 64 = "${OBJECT_MODE-32}"; then
10754 shared_archive_member_spec=shr_64
10755 else
10756 shared_archive_member_spec=shr
10757 fi
10758 fi
10759 ;;
10760 *)
10761 with_aix_soname=aix
10762 ;;
10763 esac
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774 # This can be used to rebuild libtool when needed
10775 LIBTOOL_DEPS=$ltmain
10776
10777 # Always use our own libtool.
10778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809 test -z "$LN_S" && LN_S="ln -s"
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 if test -n "${ZSH_VERSION+set}"; then
10825 setopt NO_GLOB_SUBST
10826 fi
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10829 $as_echo_n "checking for objdir... " >&6; }
10830 if ${lt_cv_objdir+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 rm -f .libs 2>/dev/null
10834 mkdir .libs 2>/dev/null
10835 if test -d .libs; then
10836 lt_cv_objdir=.libs
10837 else
10838 # MS-DOS does not allow filenames that begin with a dot.
10839 lt_cv_objdir=_libs
10840 fi
10841 rmdir .libs 2>/dev/null
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10844 $as_echo "$lt_cv_objdir" >&6; }
10845 objdir=$lt_cv_objdir
10846
10847
10848
10849
10850
10851 cat >>confdefs.h <<_ACEOF
10852 #define LT_OBJDIR "$lt_cv_objdir/"
10853 _ACEOF
10854
10855
10856
10857
10858 case $host_os in
10859 aix3*)
10860 # AIX sometimes has problems with the GCC collect2 program. For some
10861 # reason, if we set the COLLECT_NAMES environment variable, the problems
10862 # vanish in a puff of smoke.
10863 if test set != "${COLLECT_NAMES+set}"; then
10864 COLLECT_NAMES=
10865 export COLLECT_NAMES
10866 fi
10867 ;;
10868 esac
10869
10870 # Global variables:
10871 ofile=libtool
10872 can_build_shared=yes
10873
10874 # All known linkers require a '.a' archive for static linking (except MSVC,
10875 # which needs '.lib').
10876 libext=a
10877
10878 with_gnu_ld=$lt_cv_prog_gnu_ld
10879
10880 old_CC=$CC
10881 old_CFLAGS=$CFLAGS
10882
10883 # Set sane defaults for various variables
10884 test -z "$CC" && CC=cc
10885 test -z "$LTCC" && LTCC=$CC
10886 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10887 test -z "$LD" && LD=ld
10888 test -z "$ac_objext" && ac_objext=o
10889
10890 func_cc_basename $compiler
10891 cc_basename=$func_cc_basename_result
10892
10893
10894 # Only perform the check for file, if the check method requires it
10895 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10896 case $deplibs_check_method in
10897 file_magic*)
10898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10901 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 case $MAGIC_CMD in
10905 [\\/*] | ?:[\\/]*)
10906 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10907 ;;
10908 *)
10909 lt_save_MAGIC_CMD=$MAGIC_CMD
10910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10912 for ac_dir in $ac_dummy; do
10913 IFS=$lt_save_ifs
10914 test -z "$ac_dir" && ac_dir=.
10915 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10916 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10917 if test -n "$file_magic_test_file"; then
10918 case $deplibs_check_method in
10919 "file_magic "*)
10920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10921 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10923 $EGREP "$file_magic_regex" > /dev/null; then
10924 :
10925 else
10926 cat <<_LT_EOF 1>&2
10927
10928 *** Warning: the command libtool uses to detect shared libraries,
10929 *** $file_magic_cmd, produces output that libtool cannot recognize.
10930 *** The result is that libtool may fail to recognize shared libraries
10931 *** as such. This will affect the creation of libtool libraries that
10932 *** depend on shared libraries, but programs linked with such libtool
10933 *** libraries will work regardless of this problem. Nevertheless, you
10934 *** may want to report the problem to your system manager and/or to
10935 *** bug-libtool@gnu.org
10936
10937 _LT_EOF
10938 fi ;;
10939 esac
10940 fi
10941 break
10942 fi
10943 done
10944 IFS=$lt_save_ifs
10945 MAGIC_CMD=$lt_save_MAGIC_CMD
10946 ;;
10947 esac
10948 fi
10949
10950 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10951 if test -n "$MAGIC_CMD"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10953 $as_echo "$MAGIC_CMD" >&6; }
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10957 fi
10958
10959
10960
10961
10962
10963 if test -z "$lt_cv_path_MAGIC_CMD"; then
10964 if test -n "$ac_tool_prefix"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10966 $as_echo_n "checking for file... " >&6; }
10967 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 case $MAGIC_CMD in
10971 [\\/*] | ?:[\\/]*)
10972 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10973 ;;
10974 *)
10975 lt_save_MAGIC_CMD=$MAGIC_CMD
10976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10978 for ac_dir in $ac_dummy; do
10979 IFS=$lt_save_ifs
10980 test -z "$ac_dir" && ac_dir=.
10981 if test -f "$ac_dir/file"; then
10982 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10983 if test -n "$file_magic_test_file"; then
10984 case $deplibs_check_method in
10985 "file_magic "*)
10986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10987 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10989 $EGREP "$file_magic_regex" > /dev/null; then
10990 :
10991 else
10992 cat <<_LT_EOF 1>&2
10993
10994 *** Warning: the command libtool uses to detect shared libraries,
10995 *** $file_magic_cmd, produces output that libtool cannot recognize.
10996 *** The result is that libtool may fail to recognize shared libraries
10997 *** as such. This will affect the creation of libtool libraries that
10998 *** depend on shared libraries, but programs linked with such libtool
10999 *** libraries will work regardless of this problem. Nevertheless, you
11000 *** may want to report the problem to your system manager and/or to
11001 *** bug-libtool@gnu.org
11002
11003 _LT_EOF
11004 fi ;;
11005 esac
11006 fi
11007 break
11008 fi
11009 done
11010 IFS=$lt_save_ifs
11011 MAGIC_CMD=$lt_save_MAGIC_CMD
11012 ;;
11013 esac
11014 fi
11015
11016 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11017 if test -n "$MAGIC_CMD"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11019 $as_echo "$MAGIC_CMD" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11023 fi
11024
11025
11026 else
11027 MAGIC_CMD=:
11028 fi
11029 fi
11030
11031 fi
11032 ;;
11033 esac
11034
11035 # Use C for the default configuration in the libtool script
11036
11037 lt_save_CC=$CC
11038 ac_ext=c
11039 ac_cpp='$CPP $CPPFLAGS'
11040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11043
11044
11045 # Source file extension for C test sources.
11046 ac_ext=c
11047
11048 # Object file extension for compiled C test sources.
11049 objext=o
11050 objext=$objext
11051
11052 # Code to be used in simple compile tests
11053 lt_simple_compile_test_code="int some_variable = 0;"
11054
11055 # Code to be used in simple link tests
11056 lt_simple_link_test_code='int main(){return(0);}'
11057
11058
11059
11060
11061
11062
11063
11064 # If no C compiler was specified, use CC.
11065 LTCC=${LTCC-"$CC"}
11066
11067 # If no C compiler flags were specified, use CFLAGS.
11068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11069
11070 # Allow CC to be a program name with arguments.
11071 compiler=$CC
11072
11073 # Save the default compiler, since it gets overwritten when the other
11074 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11075 compiler_DEFAULT=$CC
11076
11077 # save warnings/boilerplate of simple test code
11078 ac_outfile=conftest.$ac_objext
11079 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11080 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11081 _lt_compiler_boilerplate=`cat conftest.err`
11082 $RM -r conftest*
11083
11084 ac_outfile=conftest.$ac_objext
11085 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11086 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11087 _lt_linker_boilerplate=`cat conftest.err`
11088 $RM -r conftest*
11089
11090
11091 ## CAVEAT EMPTOR:
11092 ## There is no encapsulation within the following macros, do not change
11093 ## the running order or otherwise move them around unless you know exactly
11094 ## what you are doing...
11095 if test -n "$compiler"; then
11096
11097 lt_prog_compiler_no_builtin_flag=
11098
11099 if test yes = "$GCC"; then
11100 case $cc_basename in
11101 nvcc*)
11102 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11103 *)
11104 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11105 esac
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11108 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11109 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 lt_cv_prog_compiler_rtti_exceptions=no
11113 ac_outfile=conftest.$ac_objext
11114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11115 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11116 # Insert the option either (1) after the last *FLAGS variable, or
11117 # (2) before a word containing "conftest.", or (3) at the end.
11118 # Note that $ac_compile itself does not contain backslashes and begins
11119 # with a dollar sign (not a hyphen), so the echo should work correctly.
11120 # The option is referenced via a variable to avoid confusing sed.
11121 lt_compile=`echo "$ac_compile" | $SED \
11122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11124 -e 's:$: $lt_compiler_flag:'`
11125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11126 (eval "$lt_compile" 2>conftest.err)
11127 ac_status=$?
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 if (exit $ac_status) && test -s "$ac_outfile"; then
11131 # The compiler can only warn and ignore the option if not recognized
11132 # So say no if there are warnings other than the usual output.
11133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11136 lt_cv_prog_compiler_rtti_exceptions=yes
11137 fi
11138 fi
11139 $RM -r conftest*
11140
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11143 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11144
11145 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11147 else
11148 :
11149 fi
11150
11151 fi
11152
11153
11154
11155
11156
11157
11158 lt_prog_compiler_wl=
11159 lt_prog_compiler_pic=
11160 lt_prog_compiler_static=
11161
11162
11163 if test yes = "$GCC"; then
11164 lt_prog_compiler_wl='-Wl,'
11165 lt_prog_compiler_static='-static'
11166
11167 case $host_os in
11168 aix*)
11169 # All AIX code is PIC.
11170 if test ia64 = "$host_cpu"; then
11171 # AIX 5 now supports IA64 processor
11172 lt_prog_compiler_static='-Bstatic'
11173 fi
11174 lt_prog_compiler_pic='-fPIC'
11175 ;;
11176
11177 amigaos*)
11178 case $host_cpu in
11179 powerpc)
11180 # see comment about AmigaOS4 .so support
11181 lt_prog_compiler_pic='-fPIC'
11182 ;;
11183 m68k)
11184 # FIXME: we need at least 68020 code to build shared libraries, but
11185 # adding the '-m68020' flag to GCC prevents building anything better,
11186 # like '-m68040'.
11187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11188 ;;
11189 esac
11190 ;;
11191
11192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11193 # PIC is the default for these OSes.
11194 ;;
11195
11196 mingw* | cygwin* | pw32* | os2* | cegcc*)
11197 # This hack is so that the source file can tell whether it is being
11198 # built for inclusion in a dll (and should export symbols for example).
11199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11200 # (--disable-auto-import) libraries
11201 lt_prog_compiler_pic='-DDLL_EXPORT'
11202 case $host_os in
11203 os2*)
11204 lt_prog_compiler_static='$wl-static'
11205 ;;
11206 esac
11207 ;;
11208
11209 darwin* | rhapsody*)
11210 # PIC is the default on this platform
11211 # Common symbols not allowed in MH_DYLIB files
11212 lt_prog_compiler_pic='-fno-common'
11213 ;;
11214
11215 haiku*)
11216 # PIC is the default for Haiku.
11217 # The "-static" flag exists, but is broken.
11218 lt_prog_compiler_static=
11219 ;;
11220
11221 hpux*)
11222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11224 # sets the default TLS model and affects inlining.
11225 case $host_cpu in
11226 hppa*64*)
11227 # +Z the default
11228 ;;
11229 *)
11230 lt_prog_compiler_pic='-fPIC'
11231 ;;
11232 esac
11233 ;;
11234
11235 interix[3-9]*)
11236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11237 # Instead, we relocate shared libraries at runtime.
11238 ;;
11239
11240 msdosdjgpp*)
11241 # Just because we use GCC doesn't mean we suddenly get shared libraries
11242 # on systems that don't support them.
11243 lt_prog_compiler_can_build_shared=no
11244 enable_shared=no
11245 ;;
11246
11247 *nto* | *qnx*)
11248 # QNX uses GNU C++, but need to define -shared option too, otherwise
11249 # it will coredump.
11250 lt_prog_compiler_pic='-fPIC -shared'
11251 ;;
11252
11253 sysv4*MP*)
11254 if test -d /usr/nec; then
11255 lt_prog_compiler_pic=-Kconform_pic
11256 fi
11257 ;;
11258
11259 *)
11260 lt_prog_compiler_pic='-fPIC'
11261 ;;
11262 esac
11263
11264 case $cc_basename in
11265 nvcc*) # Cuda Compiler Driver 2.2
11266 lt_prog_compiler_wl='-Xlinker '
11267 if test -n "$lt_prog_compiler_pic"; then
11268 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11269 fi
11270 ;;
11271 esac
11272 else
11273 # PORTME Check for flag to pass linker flags through the system compiler.
11274 case $host_os in
11275 aix*)
11276 lt_prog_compiler_wl='-Wl,'
11277 if test ia64 = "$host_cpu"; then
11278 # AIX 5 now supports IA64 processor
11279 lt_prog_compiler_static='-Bstatic'
11280 else
11281 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11282 fi
11283 ;;
11284
11285 darwin* | rhapsody*)
11286 # PIC is the default on this platform
11287 # Common symbols not allowed in MH_DYLIB files
11288 lt_prog_compiler_pic='-fno-common'
11289 case $cc_basename in
11290 nagfor*)
11291 # NAG Fortran compiler
11292 lt_prog_compiler_wl='-Wl,-Wl,,'
11293 lt_prog_compiler_pic='-PIC'
11294 lt_prog_compiler_static='-Bstatic'
11295 ;;
11296 esac
11297 ;;
11298
11299 mingw* | cygwin* | pw32* | os2* | cegcc*)
11300 # This hack is so that the source file can tell whether it is being
11301 # built for inclusion in a dll (and should export symbols for example).
11302 lt_prog_compiler_pic='-DDLL_EXPORT'
11303 case $host_os in
11304 os2*)
11305 lt_prog_compiler_static='$wl-static'
11306 ;;
11307 esac
11308 ;;
11309
11310 hpux9* | hpux10* | hpux11*)
11311 lt_prog_compiler_wl='-Wl,'
11312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11313 # not for PA HP-UX.
11314 case $host_cpu in
11315 hppa*64*|ia64*)
11316 # +Z the default
11317 ;;
11318 *)
11319 lt_prog_compiler_pic='+Z'
11320 ;;
11321 esac
11322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11323 lt_prog_compiler_static='$wl-a ${wl}archive'
11324 ;;
11325
11326 irix5* | irix6* | nonstopux*)
11327 lt_prog_compiler_wl='-Wl,'
11328 # PIC (with -KPIC) is the default.
11329 lt_prog_compiler_static='-non_shared'
11330 ;;
11331
11332 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11333 case $cc_basename in
11334 # old Intel for x86_64, which still supported -KPIC.
11335 ecc*)
11336 lt_prog_compiler_wl='-Wl,'
11337 lt_prog_compiler_pic='-KPIC'
11338 lt_prog_compiler_static='-static'
11339 ;;
11340 # icc used to be incompatible with GCC.
11341 # ICC 10 doesn't accept -KPIC any more.
11342 icc* | ifort*)
11343 lt_prog_compiler_wl='-Wl,'
11344 lt_prog_compiler_pic='-fPIC'
11345 lt_prog_compiler_static='-static'
11346 ;;
11347 # Lahey Fortran 8.1.
11348 lf95*)
11349 lt_prog_compiler_wl='-Wl,'
11350 lt_prog_compiler_pic='--shared'
11351 lt_prog_compiler_static='--static'
11352 ;;
11353 nagfor*)
11354 # NAG Fortran compiler
11355 lt_prog_compiler_wl='-Wl,-Wl,,'
11356 lt_prog_compiler_pic='-PIC'
11357 lt_prog_compiler_static='-Bstatic'
11358 ;;
11359 tcc*)
11360 # Fabrice Bellard et al's Tiny C Compiler
11361 lt_prog_compiler_wl='-Wl,'
11362 lt_prog_compiler_pic='-fPIC'
11363 lt_prog_compiler_static='-static'
11364 ;;
11365 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11366 # Portland Group compilers (*not* the Pentium gcc compiler,
11367 # which looks to be a dead project)
11368 lt_prog_compiler_wl='-Wl,'
11369 lt_prog_compiler_pic='-fpic'
11370 lt_prog_compiler_static='-Bstatic'
11371 ;;
11372 ccc*)
11373 lt_prog_compiler_wl='-Wl,'
11374 # All Alpha code is PIC.
11375 lt_prog_compiler_static='-non_shared'
11376 ;;
11377 xl* | bgxl* | bgf* | mpixl*)
11378 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11379 lt_prog_compiler_wl='-Wl,'
11380 lt_prog_compiler_pic='-qpic'
11381 lt_prog_compiler_static='-qstaticlink'
11382 ;;
11383 *)
11384 case `$CC -V 2>&1 | sed 5q` in
11385 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11386 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11387 lt_prog_compiler_pic='-KPIC'
11388 lt_prog_compiler_static='-Bstatic'
11389 lt_prog_compiler_wl=''
11390 ;;
11391 *Sun\ F* | *Sun*Fortran*)
11392 lt_prog_compiler_pic='-KPIC'
11393 lt_prog_compiler_static='-Bstatic'
11394 lt_prog_compiler_wl='-Qoption ld '
11395 ;;
11396 *Sun\ C*)
11397 # Sun C 5.9
11398 lt_prog_compiler_pic='-KPIC'
11399 lt_prog_compiler_static='-Bstatic'
11400 lt_prog_compiler_wl='-Wl,'
11401 ;;
11402 *Intel*\ [CF]*Compiler*)
11403 lt_prog_compiler_wl='-Wl,'
11404 lt_prog_compiler_pic='-fPIC'
11405 lt_prog_compiler_static='-static'
11406 ;;
11407 *Portland\ Group*)
11408 lt_prog_compiler_wl='-Wl,'
11409 lt_prog_compiler_pic='-fpic'
11410 lt_prog_compiler_static='-Bstatic'
11411 ;;
11412 esac
11413 ;;
11414 esac
11415 ;;
11416
11417 newsos6)
11418 lt_prog_compiler_pic='-KPIC'
11419 lt_prog_compiler_static='-Bstatic'
11420 ;;
11421
11422 *nto* | *qnx*)
11423 # QNX uses GNU C++, but need to define -shared option too, otherwise
11424 # it will coredump.
11425 lt_prog_compiler_pic='-fPIC -shared'
11426 ;;
11427
11428 osf3* | osf4* | osf5*)
11429 lt_prog_compiler_wl='-Wl,'
11430 # All OSF/1 code is PIC.
11431 lt_prog_compiler_static='-non_shared'
11432 ;;
11433
11434 rdos*)
11435 lt_prog_compiler_static='-non_shared'
11436 ;;
11437
11438 solaris*)
11439 lt_prog_compiler_pic='-KPIC'
11440 lt_prog_compiler_static='-Bstatic'
11441 case $cc_basename in
11442 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11443 lt_prog_compiler_wl='-Qoption ld ';;
11444 *)
11445 lt_prog_compiler_wl='-Wl,';;
11446 esac
11447 ;;
11448
11449 sunos4*)
11450 lt_prog_compiler_wl='-Qoption ld '
11451 lt_prog_compiler_pic='-PIC'
11452 lt_prog_compiler_static='-Bstatic'
11453 ;;
11454
11455 sysv4 | sysv4.2uw2* | sysv4.3*)
11456 lt_prog_compiler_wl='-Wl,'
11457 lt_prog_compiler_pic='-KPIC'
11458 lt_prog_compiler_static='-Bstatic'
11459 ;;
11460
11461 sysv4*MP*)
11462 if test -d /usr/nec; then
11463 lt_prog_compiler_pic='-Kconform_pic'
11464 lt_prog_compiler_static='-Bstatic'
11465 fi
11466 ;;
11467
11468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11469 lt_prog_compiler_wl='-Wl,'
11470 lt_prog_compiler_pic='-KPIC'
11471 lt_prog_compiler_static='-Bstatic'
11472 ;;
11473
11474 unicos*)
11475 lt_prog_compiler_wl='-Wl,'
11476 lt_prog_compiler_can_build_shared=no
11477 ;;
11478
11479 uts4*)
11480 lt_prog_compiler_pic='-pic'
11481 lt_prog_compiler_static='-Bstatic'
11482 ;;
11483
11484 *)
11485 lt_prog_compiler_can_build_shared=no
11486 ;;
11487 esac
11488 fi
11489
11490 case $host_os in
11491 # For platforms that do not support PIC, -DPIC is meaningless:
11492 *djgpp*)
11493 lt_prog_compiler_pic=
11494 ;;
11495 *)
11496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11497 ;;
11498 esac
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11501 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11502 if ${lt_cv_prog_compiler_pic+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11508 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11509 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11510
11511 #
11512 # Check to make sure the PIC flag actually works.
11513 #
11514 if test -n "$lt_prog_compiler_pic"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11516 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11517 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 lt_cv_prog_compiler_pic_works=no
11521 ac_outfile=conftest.$ac_objext
11522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11523 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11524 # Insert the option either (1) after the last *FLAGS variable, or
11525 # (2) before a word containing "conftest.", or (3) at the end.
11526 # Note that $ac_compile itself does not contain backslashes and begins
11527 # with a dollar sign (not a hyphen), so the echo should work correctly.
11528 # The option is referenced via a variable to avoid confusing sed.
11529 lt_compile=`echo "$ac_compile" | $SED \
11530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11532 -e 's:$: $lt_compiler_flag:'`
11533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11534 (eval "$lt_compile" 2>conftest.err)
11535 ac_status=$?
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 if (exit $ac_status) && test -s "$ac_outfile"; then
11539 # The compiler can only warn and ignore the option if not recognized
11540 # So say no if there are warnings other than the usual output.
11541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11544 lt_cv_prog_compiler_pic_works=yes
11545 fi
11546 fi
11547 $RM -r conftest*
11548
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11551 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11552
11553 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11554 case $lt_prog_compiler_pic in
11555 "" | " "*) ;;
11556 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11557 esac
11558 else
11559 lt_prog_compiler_pic=
11560 lt_prog_compiler_can_build_shared=no
11561 fi
11562
11563 fi
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575 #
11576 # Check to make sure the static flag actually works.
11577 #
11578 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11580 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11581 if ${lt_cv_prog_compiler_static_works+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 lt_cv_prog_compiler_static_works=no
11585 save_LDFLAGS=$LDFLAGS
11586 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11587 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11588 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11589 # The linker can only warn and ignore the option if not recognized
11590 # So say no if there are warnings
11591 if test -s conftest.err; then
11592 # Append any errors to the config.log.
11593 cat conftest.err 1>&5
11594 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11596 if diff conftest.exp conftest.er2 >/dev/null; then
11597 lt_cv_prog_compiler_static_works=yes
11598 fi
11599 else
11600 lt_cv_prog_compiler_static_works=yes
11601 fi
11602 fi
11603 $RM -r conftest*
11604 LDFLAGS=$save_LDFLAGS
11605
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11608 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11609
11610 if test yes = "$lt_cv_prog_compiler_static_works"; then
11611 :
11612 else
11613 lt_prog_compiler_static=
11614 fi
11615
11616
11617
11618
11619
11620
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11624 if ${lt_cv_prog_compiler_c_o+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 lt_cv_prog_compiler_c_o=no
11628 $RM -r conftest 2>/dev/null
11629 mkdir conftest
11630 cd conftest
11631 mkdir out
11632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11633
11634 lt_compiler_flag="-o out/conftest2.$ac_objext"
11635 # Insert the option either (1) after the last *FLAGS variable, or
11636 # (2) before a word containing "conftest.", or (3) at the end.
11637 # Note that $ac_compile itself does not contain backslashes and begins
11638 # with a dollar sign (not a hyphen), so the echo should work correctly.
11639 lt_compile=`echo "$ac_compile" | $SED \
11640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11642 -e 's:$: $lt_compiler_flag:'`
11643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11644 (eval "$lt_compile" 2>out/conftest.err)
11645 ac_status=$?
11646 cat out/conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11649 then
11650 # The compiler can only warn and ignore the option if not recognized
11651 # So say no if there are warnings
11652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11655 lt_cv_prog_compiler_c_o=yes
11656 fi
11657 fi
11658 chmod u+w . 2>&5
11659 $RM -r conftest*
11660 # SGI C++ compiler will create directory out/ii_files/ for
11661 # template instantiation
11662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11663 $RM out/* && rmdir out
11664 cd ..
11665 $RM -r conftest
11666 $RM -r conftest*
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11670 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11671
11672
11673
11674
11675
11676
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11679 if ${lt_cv_prog_compiler_c_o+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 lt_cv_prog_compiler_c_o=no
11683 $RM -r conftest 2>/dev/null
11684 mkdir conftest
11685 cd conftest
11686 mkdir out
11687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11688
11689 lt_compiler_flag="-o out/conftest2.$ac_objext"
11690 # Insert the option either (1) after the last *FLAGS variable, or
11691 # (2) before a word containing "conftest.", or (3) at the end.
11692 # Note that $ac_compile itself does not contain backslashes and begins
11693 # with a dollar sign (not a hyphen), so the echo should work correctly.
11694 lt_compile=`echo "$ac_compile" | $SED \
11695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11697 -e 's:$: $lt_compiler_flag:'`
11698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11699 (eval "$lt_compile" 2>out/conftest.err)
11700 ac_status=$?
11701 cat out/conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11704 then
11705 # The compiler can only warn and ignore the option if not recognized
11706 # So say no if there are warnings
11707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11710 lt_cv_prog_compiler_c_o=yes
11711 fi
11712 fi
11713 chmod u+w . 2>&5
11714 $RM -r conftest*
11715 # SGI C++ compiler will create directory out/ii_files/ for
11716 # template instantiation
11717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11718 $RM out/* && rmdir out
11719 cd ..
11720 $RM -r conftest
11721 $RM -r conftest*
11722
11723 fi
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11726
11727
11728
11729
11730 hard_links=nottested
11731 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11732 # do not overwrite the value of need_locks provided by the user
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11734 $as_echo_n "checking if we can lock with hard links... " >&6; }
11735 hard_links=yes
11736 $RM -r conftest*
11737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11738 touch conftest.a
11739 ln conftest.a conftest.b 2>&5 || hard_links=no
11740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11742 $as_echo "$hard_links" >&6; }
11743 if test no = "$hard_links"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11745 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11746 need_locks=warn
11747 fi
11748 else
11749 need_locks=no
11750 fi
11751
11752
11753
11754
11755
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11759
11760 runpath_var=
11761 allow_undefined_flag=
11762 always_export_symbols=no
11763 archive_cmds=
11764 archive_expsym_cmds=
11765 compiler_needs_object=no
11766 enable_shared_with_static_runtimes=no
11767 export_dynamic_flag_spec=
11768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11769 hardcode_automatic=no
11770 hardcode_direct=no
11771 hardcode_direct_absolute=no
11772 hardcode_libdir_flag_spec=
11773 hardcode_libdir_separator=
11774 hardcode_minus_L=no
11775 hardcode_shlibpath_var=unsupported
11776 inherit_rpath=no
11777 link_all_deplibs=unknown
11778 module_cmds=
11779 module_expsym_cmds=
11780 old_archive_from_new_cmds=
11781 old_archive_from_expsyms_cmds=
11782 thread_safe_flag_spec=
11783 whole_archive_flag_spec=
11784 # include_expsyms should be a list of space-separated symbols to be *always*
11785 # included in the symbol list
11786 include_expsyms=
11787 # exclude_expsyms can be an extended regexp of symbols to exclude
11788 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11789 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11790 # as well as any symbol that contains 'd'.
11791 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11793 # platforms (ab)use it in PIC code, but their linkers get confused if
11794 # the symbol is explicitly referenced. Since portable code cannot
11795 # rely on this symbol name, it's probably fine to never include it in
11796 # preloaded symbol tables.
11797 # Exclude shared library initialization/finalization symbols.
11798 extract_expsyms_cmds=
11799
11800 case $host_os in
11801 cygwin* | mingw* | pw32* | cegcc*)
11802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11803 # When not using gcc, we currently assume that we are using
11804 # Microsoft Visual C++.
11805 if test yes != "$GCC"; then
11806 with_gnu_ld=no
11807 fi
11808 ;;
11809 interix*)
11810 # we just hope/assume this is gcc and not c89 (= MSVC++)
11811 with_gnu_ld=yes
11812 ;;
11813 openbsd* | bitrig*)
11814 with_gnu_ld=no
11815 ;;
11816 esac
11817
11818 ld_shlibs=yes
11819
11820 # On some targets, GNU ld is compatible enough with the native linker
11821 # that we're better off using the native interface for both.
11822 lt_use_gnu_ld_interface=no
11823 if test yes = "$with_gnu_ld"; then
11824 case $host_os in
11825 aix*)
11826 # The AIX port of GNU ld has always aspired to compatibility
11827 # with the native linker. However, as the warning in the GNU ld
11828 # block says, versions before 2.19.5* couldn't really create working
11829 # shared libraries, regardless of the interface used.
11830 case `$LD -v 2>&1` in
11831 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11832 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11833 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11834 *)
11835 lt_use_gnu_ld_interface=yes
11836 ;;
11837 esac
11838 ;;
11839 *)
11840 lt_use_gnu_ld_interface=yes
11841 ;;
11842 esac
11843 fi
11844
11845 if test yes = "$lt_use_gnu_ld_interface"; then
11846 # If archive_cmds runs LD, not CC, wlarc should be empty
11847 wlarc='$wl'
11848
11849 # Set some defaults for GNU ld with shared library support. These
11850 # are reset later if shared libraries are not supported. Putting them
11851 # here allows them to be overridden if necessary.
11852 runpath_var=LD_RUN_PATH
11853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11854 export_dynamic_flag_spec='$wl--export-dynamic'
11855 # ancient GNU ld didn't support --whole-archive et. al.
11856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11857 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11858 else
11859 whole_archive_flag_spec=
11860 fi
11861 supports_anon_versioning=no
11862 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11863 *GNU\ gold*) supports_anon_versioning=yes ;;
11864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11867 *\ 2.11.*) ;; # other 2.11 versions
11868 *) supports_anon_versioning=yes ;;
11869 esac
11870
11871 # See if GNU ld supports shared libraries.
11872 case $host_os in
11873 aix[3-9]*)
11874 # On AIX/PPC, the GNU linker is very broken
11875 if test ia64 != "$host_cpu"; then
11876 ld_shlibs=no
11877 cat <<_LT_EOF 1>&2
11878
11879 *** Warning: the GNU linker, at least up to release 2.19, is reported
11880 *** to be unable to reliably create shared libraries on AIX.
11881 *** Therefore, libtool is disabling shared libraries support. If you
11882 *** really care for shared libraries, you may want to install binutils
11883 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11884 *** You will then need to restart the configuration process.
11885
11886 _LT_EOF
11887 fi
11888 ;;
11889
11890 amigaos*)
11891 case $host_cpu in
11892 powerpc)
11893 # see comment about AmigaOS4 .so support
11894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11895 archive_expsym_cmds=''
11896 ;;
11897 m68k)
11898 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)'
11899 hardcode_libdir_flag_spec='-L$libdir'
11900 hardcode_minus_L=yes
11901 ;;
11902 esac
11903 ;;
11904
11905 beos*)
11906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907 allow_undefined_flag=unsupported
11908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11909 # support --undefined. This deserves some investigation. FIXME
11910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11911 else
11912 ld_shlibs=no
11913 fi
11914 ;;
11915
11916 cygwin* | mingw* | pw32* | cegcc*)
11917 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11918 # as there is no search path for DLLs.
11919 hardcode_libdir_flag_spec='-L$libdir'
11920 export_dynamic_flag_spec='$wl--export-all-symbols'
11921 allow_undefined_flag=unsupported
11922 always_export_symbols=no
11923 enable_shared_with_static_runtimes=yes
11924 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'
11925 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11926
11927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11929 # If the export-symbols file already is a .def file, use it as
11930 # is; otherwise, prepend EXPORTS...
11931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11932 cp $export_symbols $output_objdir/$soname.def;
11933 else
11934 echo EXPORTS > $output_objdir/$soname.def;
11935 cat $export_symbols >> $output_objdir/$soname.def;
11936 fi~
11937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11938 else
11939 ld_shlibs=no
11940 fi
11941 ;;
11942
11943 haiku*)
11944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11945 link_all_deplibs=yes
11946 ;;
11947
11948 os2*)
11949 hardcode_libdir_flag_spec='-L$libdir'
11950 hardcode_minus_L=yes
11951 allow_undefined_flag=unsupported
11952 shrext_cmds=.dll
11953 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11956 $ECHO EXPORTS >> $output_objdir/$libname.def~
11957 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11959 emximp -o $lib $output_objdir/$libname.def'
11960 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11963 $ECHO EXPORTS >> $output_objdir/$libname.def~
11964 prefix_cmds="$SED"~
11965 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11966 prefix_cmds="$prefix_cmds -e 1d";
11967 fi~
11968 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11969 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11971 emximp -o $lib $output_objdir/$libname.def'
11972 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11973 enable_shared_with_static_runtimes=yes
11974 ;;
11975
11976 interix[3-9]*)
11977 hardcode_direct=no
11978 hardcode_shlibpath_var=no
11979 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11980 export_dynamic_flag_spec='$wl-E'
11981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11982 # Instead, shared libraries are loaded at an image base (0x10000000 by
11983 # default) and relocated if they conflict, which is a slow very memory
11984 # consuming and fragmenting process. To avoid this, we pick a random,
11985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11988 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'
11989 ;;
11990
11991 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11992 tmp_diet=no
11993 if test linux-dietlibc = "$host_os"; then
11994 case $cc_basename in
11995 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11996 esac
11997 fi
11998 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11999 && test no = "$tmp_diet"
12000 then
12001 tmp_addflag=' $pic_flag'
12002 tmp_sharedflag='-shared'
12003 case $cc_basename,$host_cpu in
12004 pgcc*) # Portland Group C compiler
12005 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'
12006 tmp_addflag=' $pic_flag'
12007 ;;
12008 pgf77* | pgf90* | pgf95* | pgfortran*)
12009 # Portland Group f77 and f90 compilers
12010 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'
12011 tmp_addflag=' $pic_flag -Mnomain' ;;
12012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12013 tmp_addflag=' -i_dynamic' ;;
12014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12015 tmp_addflag=' -i_dynamic -nofor_main' ;;
12016 ifc* | ifort*) # Intel Fortran compiler
12017 tmp_addflag=' -nofor_main' ;;
12018 lf95*) # Lahey Fortran 8.1
12019 whole_archive_flag_spec=
12020 tmp_sharedflag='--shared' ;;
12021 nagfor*) # NAGFOR 5.3
12022 tmp_sharedflag='-Wl,-shared' ;;
12023 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12024 tmp_sharedflag='-qmkshrobj'
12025 tmp_addflag= ;;
12026 nvcc*) # Cuda Compiler Driver 2.2
12027 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'
12028 compiler_needs_object=yes
12029 ;;
12030 esac
12031 case `$CC -V 2>&1 | sed 5q` in
12032 *Sun\ C*) # Sun C 5.9
12033 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'
12034 compiler_needs_object=yes
12035 tmp_sharedflag='-G' ;;
12036 *Sun\ F*) # Sun Fortran 8.3
12037 tmp_sharedflag='-G' ;;
12038 esac
12039 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12040
12041 if test yes = "$supports_anon_versioning"; then
12042 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12044 echo "local: *; };" >> $output_objdir/$libname.ver~
12045 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12046 fi
12047
12048 case $cc_basename in
12049 tcc*)
12050 export_dynamic_flag_spec='-rdynamic'
12051 ;;
12052 xlf* | bgf* | bgxlf* | mpixlf*)
12053 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12054 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12055 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12056 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12057 if test yes = "$supports_anon_versioning"; then
12058 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12060 echo "local: *; };" >> $output_objdir/$libname.ver~
12061 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12062 fi
12063 ;;
12064 esac
12065 else
12066 ld_shlibs=no
12067 fi
12068 ;;
12069
12070 netbsd*)
12071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12072 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12073 wlarc=
12074 else
12075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12076 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12077 fi
12078 ;;
12079
12080 solaris*)
12081 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12082 ld_shlibs=no
12083 cat <<_LT_EOF 1>&2
12084
12085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12086 *** create shared libraries on Solaris systems. Therefore, libtool
12087 *** is disabling shared libraries support. We urge you to upgrade GNU
12088 *** binutils to release 2.9.1 or newer. Another option is to modify
12089 *** your PATH or compiler configuration so that the native linker is
12090 *** used, and then restart.
12091
12092 _LT_EOF
12093 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12095 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12096 else
12097 ld_shlibs=no
12098 fi
12099 ;;
12100
12101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12102 case `$LD -v 2>&1` in
12103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12104 ld_shlibs=no
12105 cat <<_LT_EOF 1>&2
12106
12107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12108 *** reliably create shared libraries on SCO systems. Therefore, libtool
12109 *** is disabling shared libraries support. We urge you to upgrade GNU
12110 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12111 *** your PATH or compiler configuration so that the native linker is
12112 *** used, and then restart.
12113
12114 _LT_EOF
12115 ;;
12116 *)
12117 # For security reasons, it is highly recommended that you always
12118 # use absolute paths for naming shared libraries, and exclude the
12119 # DT_RUNPATH tag from executables and libraries. But doing so
12120 # requires that you compile everything twice, which is a pain.
12121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12125 else
12126 ld_shlibs=no
12127 fi
12128 ;;
12129 esac
12130 ;;
12131
12132 sunos4*)
12133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12134 wlarc=
12135 hardcode_direct=yes
12136 hardcode_shlibpath_var=no
12137 ;;
12138
12139 *)
12140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12142 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12143 else
12144 ld_shlibs=no
12145 fi
12146 ;;
12147 esac
12148
12149 if test no = "$ld_shlibs"; then
12150 runpath_var=
12151 hardcode_libdir_flag_spec=
12152 export_dynamic_flag_spec=
12153 whole_archive_flag_spec=
12154 fi
12155 else
12156 # PORTME fill in a description of your system's linker (not GNU ld)
12157 case $host_os in
12158 aix3*)
12159 allow_undefined_flag=unsupported
12160 always_export_symbols=yes
12161 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'
12162 # Note: this linker hardcodes the directories in LIBPATH if there
12163 # are no directories specified by -L.
12164 hardcode_minus_L=yes
12165 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12166 # Neither direct hardcoding nor static linking is supported with a
12167 # broken collect2.
12168 hardcode_direct=unsupported
12169 fi
12170 ;;
12171
12172 aix[4-9]*)
12173 if test ia64 = "$host_cpu"; then
12174 # On IA64, the linker does run time linking by default, so we don't
12175 # have to do anything special.
12176 aix_use_runtimelinking=no
12177 exp_sym_flag='-Bexport'
12178 no_entry_flag=
12179 else
12180 # If we're using GNU nm, then we don't want the "-C" option.
12181 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12182 # Without the "-l" option, or with the "-B" option, AIX nm treats
12183 # weak defined symbols like other global defined symbols, whereas
12184 # GNU nm marks them as "W".
12185 # While the 'weak' keyword is ignored in the Export File, we need
12186 # it in the Import File for the 'aix-soname' feature, so we have
12187 # to replace the "-B" option with "-P" for AIX nm.
12188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12189 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12190 else
12191 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12192 fi
12193 aix_use_runtimelinking=no
12194
12195 # Test if we are trying to use run time linking or normal
12196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12197 # have runtime linking enabled, and use it for executables.
12198 # For shared libraries, we enable/disable runtime linking
12199 # depending on the kind of the shared library created -
12200 # when "with_aix_soname,aix_use_runtimelinking" is:
12201 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12202 # "aix,yes" lib.so shared, rtl:yes, for executables
12203 # lib.a static archive
12204 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12205 # lib.a(lib.so.V) shared, rtl:no, for executables
12206 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12207 # lib.a(lib.so.V) shared, rtl:no
12208 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12209 # lib.a static archive
12210 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12211 for ld_flag in $LDFLAGS; do
12212 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12213 aix_use_runtimelinking=yes
12214 break
12215 fi
12216 done
12217 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12218 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12219 # so we don't have lib.a shared libs to link our executables.
12220 # We have to force runtime linking in this case.
12221 aix_use_runtimelinking=yes
12222 LDFLAGS="$LDFLAGS -Wl,-brtl"
12223 fi
12224 ;;
12225 esac
12226
12227 exp_sym_flag='-bexport'
12228 no_entry_flag='-bnoentry'
12229 fi
12230
12231 # When large executables or shared objects are built, AIX ld can
12232 # have problems creating the table of contents. If linking a library
12233 # or program results in "error TOC overflow" add -mminimal-toc to
12234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12236
12237 archive_cmds=''
12238 hardcode_direct=yes
12239 hardcode_direct_absolute=yes
12240 hardcode_libdir_separator=':'
12241 link_all_deplibs=yes
12242 file_list_spec='$wl-f,'
12243 case $with_aix_soname,$aix_use_runtimelinking in
12244 aix,*) ;; # traditional, no import file
12245 svr4,* | *,yes) # use import file
12246 # The Import File defines what to hardcode.
12247 hardcode_direct=no
12248 hardcode_direct_absolute=no
12249 ;;
12250 esac
12251
12252 if test yes = "$GCC"; then
12253 case $host_os in aix4.[012]|aix4.[012].*)
12254 # We only want to do this on AIX 4.2 and lower, the check
12255 # below for broken collect2 doesn't work under 4.3+
12256 collect2name=`$CC -print-prog-name=collect2`
12257 if test -f "$collect2name" &&
12258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12259 then
12260 # We have reworked collect2
12261 :
12262 else
12263 # We have old collect2
12264 hardcode_direct=unsupported
12265 # It fails to find uninstalled libraries when the uninstalled
12266 # path is not listed in the libpath. Setting hardcode_minus_L
12267 # to unsupported forces relinking
12268 hardcode_minus_L=yes
12269 hardcode_libdir_flag_spec='-L$libdir'
12270 hardcode_libdir_separator=
12271 fi
12272 ;;
12273 esac
12274 shared_flag='-shared'
12275 if test yes = "$aix_use_runtimelinking"; then
12276 shared_flag="$shared_flag "'$wl-G'
12277 fi
12278 # Need to ensure runtime linking is disabled for the traditional
12279 # shared library, or the linker may eventually find shared libraries
12280 # /with/ Import File - we do not want to mix them.
12281 shared_flag_aix='-shared'
12282 shared_flag_svr4='-shared $wl-G'
12283 else
12284 # not using gcc
12285 if test ia64 = "$host_cpu"; then
12286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12287 # chokes on -Wl,-G. The following line is correct:
12288 shared_flag='-G'
12289 else
12290 if test yes = "$aix_use_runtimelinking"; then
12291 shared_flag='$wl-G'
12292 else
12293 shared_flag='$wl-bM:SRE'
12294 fi
12295 shared_flag_aix='$wl-bM:SRE'
12296 shared_flag_svr4='$wl-G'
12297 fi
12298 fi
12299
12300 export_dynamic_flag_spec='$wl-bexpall'
12301 # It seems that -bexpall does not export symbols beginning with
12302 # underscore (_), so it is better to generate a list of symbols to export.
12303 always_export_symbols=yes
12304 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12305 # Warning - without using the other runtime loading flags (-brtl),
12306 # -berok will link without error, but may produce a broken library.
12307 allow_undefined_flag='-berok'
12308 # Determine the default libpath from the value encoded in an
12309 # empty executable.
12310 if test set = "${lt_cv_aix_libpath+set}"; then
12311 aix_libpath=$lt_cv_aix_libpath
12312 else
12313 if ${lt_cv_aix_libpath_+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318
12319 int
12320 main ()
12321 {
12322
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328
12329 lt_aix_libpath_sed='
12330 /Import File Strings/,/^$/ {
12331 /^0/ {
12332 s/^0 *\([^ ]*\) *$/\1/
12333 p
12334 }
12335 }'
12336 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337 # Check for a 64-bit object if we didn't find anything.
12338 if test -z "$lt_cv_aix_libpath_"; then
12339 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12340 fi
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 if test -z "$lt_cv_aix_libpath_"; then
12345 lt_cv_aix_libpath_=/usr/lib:/lib
12346 fi
12347
12348 fi
12349
12350 aix_libpath=$lt_cv_aix_libpath_
12351 fi
12352
12353 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12354 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12355 else
12356 if test ia64 = "$host_cpu"; then
12357 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12358 allow_undefined_flag="-z nodefs"
12359 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"
12360 else
12361 # Determine the default libpath from the value encoded in an
12362 # empty executable.
12363 if test set = "${lt_cv_aix_libpath+set}"; then
12364 aix_libpath=$lt_cv_aix_libpath
12365 else
12366 if ${lt_cv_aix_libpath_+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371
12372 int
12373 main ()
12374 {
12375
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381
12382 lt_aix_libpath_sed='
12383 /Import File Strings/,/^$/ {
12384 /^0/ {
12385 s/^0 *\([^ ]*\) *$/\1/
12386 p
12387 }
12388 }'
12389 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 # Check for a 64-bit object if we didn't find anything.
12391 if test -z "$lt_cv_aix_libpath_"; then
12392 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12393 fi
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 if test -z "$lt_cv_aix_libpath_"; then
12398 lt_cv_aix_libpath_=/usr/lib:/lib
12399 fi
12400
12401 fi
12402
12403 aix_libpath=$lt_cv_aix_libpath_
12404 fi
12405
12406 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12407 # Warning - without using the other run time loading flags,
12408 # -berok will link without error, but may produce a broken library.
12409 no_undefined_flag=' $wl-bernotok'
12410 allow_undefined_flag=' $wl-berok'
12411 if test yes = "$with_gnu_ld"; then
12412 # We only use this code for GNU lds that support --whole-archive.
12413 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12414 else
12415 # Exported symbols can be pulled into shared objects from archives
12416 whole_archive_flag_spec='$convenience'
12417 fi
12418 archive_cmds_need_lc=yes
12419 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12420 # -brtl affects multiple linker settings, -berok does not and is overridden later
12421 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12422 if test svr4 != "$with_aix_soname"; then
12423 # This is similar to how AIX traditionally builds its shared libraries.
12424 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12425 fi
12426 if test aix != "$with_aix_soname"; then
12427 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12428 else
12429 # used by -dlpreopen to get the symbols
12430 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12431 fi
12432 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12433 fi
12434 fi
12435 ;;
12436
12437 amigaos*)
12438 case $host_cpu in
12439 powerpc)
12440 # see comment about AmigaOS4 .so support
12441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12442 archive_expsym_cmds=''
12443 ;;
12444 m68k)
12445 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)'
12446 hardcode_libdir_flag_spec='-L$libdir'
12447 hardcode_minus_L=yes
12448 ;;
12449 esac
12450 ;;
12451
12452 bsdi[45]*)
12453 export_dynamic_flag_spec=-rdynamic
12454 ;;
12455
12456 cygwin* | mingw* | pw32* | cegcc*)
12457 # When not using gcc, we currently assume that we are using
12458 # Microsoft Visual C++.
12459 # hardcode_libdir_flag_spec is actually meaningless, as there is
12460 # no search path for DLLs.
12461 case $cc_basename in
12462 cl*)
12463 # Native MSVC
12464 hardcode_libdir_flag_spec=' '
12465 allow_undefined_flag=unsupported
12466 always_export_symbols=yes
12467 file_list_spec='@'
12468 # Tell ltmain to make .lib files, not .a files.
12469 libext=lib
12470 # Tell ltmain to make .dll files, not .so files.
12471 shrext_cmds=.dll
12472 # FIXME: Setting linknames here is a bad hack.
12473 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12474 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12475 cp "$export_symbols" "$output_objdir/$soname.def";
12476 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12477 else
12478 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12479 fi~
12480 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12481 linknames='
12482 # The linker will not automatically build a static lib if we build a DLL.
12483 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12484 enable_shared_with_static_runtimes=yes
12485 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12487 # Don't use ranlib
12488 old_postinstall_cmds='chmod 644 $oldlib'
12489 postlink_cmds='lt_outputfile="@OUTPUT@"~
12490 lt_tool_outputfile="@TOOL_OUTPUT@"~
12491 case $lt_outputfile in
12492 *.exe|*.EXE) ;;
12493 *)
12494 lt_outputfile=$lt_outputfile.exe
12495 lt_tool_outputfile=$lt_tool_outputfile.exe
12496 ;;
12497 esac~
12498 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12499 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12500 $RM "$lt_outputfile.manifest";
12501 fi'
12502 ;;
12503 *)
12504 # Assume MSVC wrapper
12505 hardcode_libdir_flag_spec=' '
12506 allow_undefined_flag=unsupported
12507 # Tell ltmain to make .lib files, not .a files.
12508 libext=lib
12509 # Tell ltmain to make .dll files, not .so files.
12510 shrext_cmds=.dll
12511 # FIXME: Setting linknames here is a bad hack.
12512 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12513 # The linker will automatically build a .lib file if we build a DLL.
12514 old_archive_from_new_cmds='true'
12515 # FIXME: Should let the user specify the lib program.
12516 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12517 enable_shared_with_static_runtimes=yes
12518 ;;
12519 esac
12520 ;;
12521
12522 darwin* | rhapsody*)
12523
12524
12525 archive_cmds_need_lc=no
12526 hardcode_direct=no
12527 hardcode_automatic=yes
12528 hardcode_shlibpath_var=unsupported
12529 if test yes = "$lt_cv_ld_force_load"; then
12530 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\"`'
12531
12532 else
12533 whole_archive_flag_spec=''
12534 fi
12535 link_all_deplibs=yes
12536 allow_undefined_flag=$_lt_dar_allow_undefined
12537 case $cc_basename in
12538 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12539 *) _lt_dar_can_shared=$GCC ;;
12540 esac
12541 if test yes = "$_lt_dar_can_shared"; then
12542 output_verbose_link_cmd=func_echo_all
12543 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12544 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12545 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"
12546 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"
12547
12548 else
12549 ld_shlibs=no
12550 fi
12551
12552 ;;
12553
12554 dgux*)
12555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12556 hardcode_libdir_flag_spec='-L$libdir'
12557 hardcode_shlibpath_var=no
12558 ;;
12559
12560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12561 # support. Future versions do this automatically, but an explicit c++rt0.o
12562 # does not break anything, and helps significantly (at the cost of a little
12563 # extra space).
12564 freebsd2.2*)
12565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12566 hardcode_libdir_flag_spec='-R$libdir'
12567 hardcode_direct=yes
12568 hardcode_shlibpath_var=no
12569 ;;
12570
12571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12572 freebsd2.*)
12573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12574 hardcode_direct=yes
12575 hardcode_minus_L=yes
12576 hardcode_shlibpath_var=no
12577 ;;
12578
12579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12580 freebsd* | dragonfly*)
12581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12582 hardcode_libdir_flag_spec='-R$libdir'
12583 hardcode_direct=yes
12584 hardcode_shlibpath_var=no
12585 ;;
12586
12587 hpux9*)
12588 if test yes = "$GCC"; then
12589 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12590 else
12591 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12592 fi
12593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12594 hardcode_libdir_separator=:
12595 hardcode_direct=yes
12596
12597 # hardcode_minus_L: Not really in the search PATH,
12598 # but as the default location of the library.
12599 hardcode_minus_L=yes
12600 export_dynamic_flag_spec='$wl-E'
12601 ;;
12602
12603 hpux10*)
12604 if test yes,no = "$GCC,$with_gnu_ld"; then
12605 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12606 else
12607 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12608 fi
12609 if test no = "$with_gnu_ld"; then
12610 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12611 hardcode_libdir_separator=:
12612 hardcode_direct=yes
12613 hardcode_direct_absolute=yes
12614 export_dynamic_flag_spec='$wl-E'
12615 # hardcode_minus_L: Not really in the search PATH,
12616 # but as the default location of the library.
12617 hardcode_minus_L=yes
12618 fi
12619 ;;
12620
12621 hpux11*)
12622 if test yes,no = "$GCC,$with_gnu_ld"; then
12623 case $host_cpu in
12624 hppa*64*)
12625 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12626 ;;
12627 ia64*)
12628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12629 ;;
12630 *)
12631 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12632 ;;
12633 esac
12634 else
12635 case $host_cpu in
12636 hppa*64*)
12637 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12638 ;;
12639 ia64*)
12640 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12641 ;;
12642 *)
12643
12644 # Older versions of the 11.00 compiler do not understand -b yet
12645 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12647 $as_echo_n "checking if $CC understands -b... " >&6; }
12648 if ${lt_cv_prog_compiler__b+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 lt_cv_prog_compiler__b=no
12652 save_LDFLAGS=$LDFLAGS
12653 LDFLAGS="$LDFLAGS -b"
12654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12656 # The linker can only warn and ignore the option if not recognized
12657 # So say no if there are warnings
12658 if test -s conftest.err; then
12659 # Append any errors to the config.log.
12660 cat conftest.err 1>&5
12661 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12663 if diff conftest.exp conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler__b=yes
12665 fi
12666 else
12667 lt_cv_prog_compiler__b=yes
12668 fi
12669 fi
12670 $RM -r conftest*
12671 LDFLAGS=$save_LDFLAGS
12672
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12675 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12676
12677 if test yes = "$lt_cv_prog_compiler__b"; then
12678 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12679 else
12680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12681 fi
12682
12683 ;;
12684 esac
12685 fi
12686 if test no = "$with_gnu_ld"; then
12687 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12688 hardcode_libdir_separator=:
12689
12690 case $host_cpu in
12691 hppa*64*|ia64*)
12692 hardcode_direct=no
12693 hardcode_shlibpath_var=no
12694 ;;
12695 *)
12696 hardcode_direct=yes
12697 hardcode_direct_absolute=yes
12698 export_dynamic_flag_spec='$wl-E'
12699
12700 # hardcode_minus_L: Not really in the search PATH,
12701 # but as the default location of the library.
12702 hardcode_minus_L=yes
12703 ;;
12704 esac
12705 fi
12706 ;;
12707
12708 irix5* | irix6* | nonstopux*)
12709 if test yes = "$GCC"; then
12710 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'
12711 # Try to use the -exported_symbol ld option, if it does not
12712 # work, assume that -exports_file does not work either and
12713 # implicitly export all symbols.
12714 # This should be the same for all languages, so no per-tag cache variable.
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12716 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12717 if ${lt_cv_irix_exported_symbol+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 save_LDFLAGS=$LDFLAGS
12721 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 int foo (void) { return 0; }
12725 _ACEOF
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 lt_cv_irix_exported_symbol=yes
12728 else
12729 lt_cv_irix_exported_symbol=no
12730 fi
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LDFLAGS=$save_LDFLAGS
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12736 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12737 if test yes = "$lt_cv_irix_exported_symbol"; then
12738 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'
12739 fi
12740 else
12741 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'
12742 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'
12743 fi
12744 archive_cmds_need_lc='no'
12745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12746 hardcode_libdir_separator=:
12747 inherit_rpath=yes
12748 link_all_deplibs=yes
12749 ;;
12750
12751 linux*)
12752 case $cc_basename in
12753 tcc*)
12754 # Fabrice Bellard et al's Tiny C Compiler
12755 ld_shlibs=yes
12756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757 ;;
12758 esac
12759 ;;
12760
12761 netbsd*)
12762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12764 else
12765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12766 fi
12767 hardcode_libdir_flag_spec='-R$libdir'
12768 hardcode_direct=yes
12769 hardcode_shlibpath_var=no
12770 ;;
12771
12772 newsos6)
12773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_direct=yes
12775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12776 hardcode_libdir_separator=:
12777 hardcode_shlibpath_var=no
12778 ;;
12779
12780 *nto* | *qnx*)
12781 ;;
12782
12783 openbsd* | bitrig*)
12784 if test -f /usr/libexec/ld.so; then
12785 hardcode_direct=yes
12786 hardcode_shlibpath_var=no
12787 hardcode_direct_absolute=yes
12788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12791 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12792 export_dynamic_flag_spec='$wl-E'
12793 else
12794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12796 fi
12797 else
12798 ld_shlibs=no
12799 fi
12800 ;;
12801
12802 os2*)
12803 hardcode_libdir_flag_spec='-L$libdir'
12804 hardcode_minus_L=yes
12805 allow_undefined_flag=unsupported
12806 shrext_cmds=.dll
12807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12810 $ECHO EXPORTS >> $output_objdir/$libname.def~
12811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12813 emximp -o $lib $output_objdir/$libname.def'
12814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12817 $ECHO EXPORTS >> $output_objdir/$libname.def~
12818 prefix_cmds="$SED"~
12819 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12820 prefix_cmds="$prefix_cmds -e 1d";
12821 fi~
12822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12825 emximp -o $lib $output_objdir/$libname.def'
12826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12827 enable_shared_with_static_runtimes=yes
12828 ;;
12829
12830 osf3*)
12831 if test yes = "$GCC"; then
12832 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12833 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'
12834 else
12835 allow_undefined_flag=' -expect_unresolved \*'
12836 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'
12837 fi
12838 archive_cmds_need_lc='no'
12839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12840 hardcode_libdir_separator=:
12841 ;;
12842
12843 osf4* | osf5*) # as osf3* with the addition of -msym flag
12844 if test yes = "$GCC"; then
12845 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12846 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'
12847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12848 else
12849 allow_undefined_flag=' -expect_unresolved \*'
12850 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'
12851 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~
12852 $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'
12853
12854 # Both c and cxx compiler support -rpath directly
12855 hardcode_libdir_flag_spec='-rpath $libdir'
12856 fi
12857 archive_cmds_need_lc='no'
12858 hardcode_libdir_separator=:
12859 ;;
12860
12861 solaris*)
12862 no_undefined_flag=' -z defs'
12863 if test yes = "$GCC"; then
12864 wlarc='$wl'
12865 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12867 $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'
12868 else
12869 case `$CC -V 2>&1` in
12870 *"Compilers 5.0"*)
12871 wlarc=''
12872 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12874 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12875 ;;
12876 *)
12877 wlarc='$wl'
12878 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12880 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12881 ;;
12882 esac
12883 fi
12884 hardcode_libdir_flag_spec='-R$libdir'
12885 hardcode_shlibpath_var=no
12886 case $host_os in
12887 solaris2.[0-5] | solaris2.[0-5].*) ;;
12888 *)
12889 # The compiler driver will combine and reorder linker options,
12890 # but understands '-z linker_flag'. GCC discards it without '$wl',
12891 # but is careful enough not to reorder.
12892 # Supported since Solaris 2.6 (maybe 2.5.1?)
12893 if test yes = "$GCC"; then
12894 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12895 else
12896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12897 fi
12898 ;;
12899 esac
12900 link_all_deplibs=yes
12901 ;;
12902
12903 sunos4*)
12904 if test sequent = "$host_vendor"; then
12905 # Use $CC to link under sequent, because it throws in some extra .o
12906 # files that make .init and .fini sections work.
12907 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12908 else
12909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12910 fi
12911 hardcode_libdir_flag_spec='-L$libdir'
12912 hardcode_direct=yes
12913 hardcode_minus_L=yes
12914 hardcode_shlibpath_var=no
12915 ;;
12916
12917 sysv4)
12918 case $host_vendor in
12919 sni)
12920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12921 hardcode_direct=yes # is this really true???
12922 ;;
12923 siemens)
12924 ## LD is ld it makes a PLAMLIB
12925 ## CC just makes a GrossModule.
12926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12927 reload_cmds='$CC -r -o $output$reload_objs'
12928 hardcode_direct=no
12929 ;;
12930 motorola)
12931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12933 ;;
12934 esac
12935 runpath_var='LD_RUN_PATH'
12936 hardcode_shlibpath_var=no
12937 ;;
12938
12939 sysv4.3*)
12940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_shlibpath_var=no
12942 export_dynamic_flag_spec='-Bexport'
12943 ;;
12944
12945 sysv4*MP*)
12946 if test -d /usr/nec; then
12947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 hardcode_shlibpath_var=no
12949 runpath_var=LD_RUN_PATH
12950 hardcode_runpath_var=yes
12951 ld_shlibs=yes
12952 fi
12953 ;;
12954
12955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12956 no_undefined_flag='$wl-z,text'
12957 archive_cmds_need_lc=no
12958 hardcode_shlibpath_var=no
12959 runpath_var='LD_RUN_PATH'
12960
12961 if test yes = "$GCC"; then
12962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964 else
12965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12967 fi
12968 ;;
12969
12970 sysv5* | sco3.2v5* | sco5v6*)
12971 # Note: We CANNOT use -z defs as we might desire, because we do not
12972 # link with -lc, and that would cause any symbols used from libc to
12973 # always be unresolved, which means just about no library would
12974 # ever link correctly. If we're not using GNU ld we use -z text
12975 # though, which does catch some bad symbols but isn't as heavy-handed
12976 # as -z defs.
12977 no_undefined_flag='$wl-z,text'
12978 allow_undefined_flag='$wl-z,nodefs'
12979 archive_cmds_need_lc=no
12980 hardcode_shlibpath_var=no
12981 hardcode_libdir_flag_spec='$wl-R,$libdir'
12982 hardcode_libdir_separator=':'
12983 link_all_deplibs=yes
12984 export_dynamic_flag_spec='$wl-Bexport'
12985 runpath_var='LD_RUN_PATH'
12986
12987 if test yes = "$GCC"; then
12988 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 else
12991 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12993 fi
12994 ;;
12995
12996 uts4*)
12997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12998 hardcode_libdir_flag_spec='-L$libdir'
12999 hardcode_shlibpath_var=no
13000 ;;
13001
13002 *)
13003 ld_shlibs=no
13004 ;;
13005 esac
13006
13007 if test sni = "$host_vendor"; then
13008 case $host in
13009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13010 export_dynamic_flag_spec='$wl-Blargedynsym'
13011 ;;
13012 esac
13013 fi
13014 fi
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13017 $as_echo "$ld_shlibs" >&6; }
13018 test no = "$ld_shlibs" && can_build_shared=no
13019
13020 with_gnu_ld=$with_gnu_ld
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036 #
13037 # Do we need to explicitly link libc?
13038 #
13039 case "x$archive_cmds_need_lc" in
13040 x|xyes)
13041 # Assume -lc should be added
13042 archive_cmds_need_lc=yes
13043
13044 if test yes,yes = "$GCC,$enable_shared"; then
13045 case $archive_cmds in
13046 *'~'*)
13047 # FIXME: we may have to deal with multi-command sequences.
13048 ;;
13049 '$CC '*)
13050 # Test whether the compiler implicitly links with -lc since on some
13051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13052 # to ld, don't add -lc before -lgcc.
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13054 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13055 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 $RM -r conftest*
13059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13060
13061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13062 (eval $ac_compile) 2>&5
13063 ac_status=$?
13064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065 test $ac_status = 0; } 2>conftest.err; then
13066 soname=conftest
13067 lib=conftest
13068 libobjs=conftest.$ac_objext
13069 deplibs=
13070 wl=$lt_prog_compiler_wl
13071 pic_flag=$lt_prog_compiler_pic
13072 compiler_flags=-v
13073 linker_flags=-v
13074 verstring=
13075 output_objdir=.
13076 libname=conftest
13077 lt_save_allow_undefined_flag=$allow_undefined_flag
13078 allow_undefined_flag=
13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13080 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13081 ac_status=$?
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }
13084 then
13085 lt_cv_archive_cmds_need_lc=no
13086 else
13087 lt_cv_archive_cmds_need_lc=yes
13088 fi
13089 allow_undefined_flag=$lt_save_allow_undefined_flag
13090 else
13091 cat conftest.err 1>&5
13092 fi
13093 $RM -r conftest*
13094
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13097 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13098 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13099 ;;
13100 esac
13101 fi
13102 ;;
13103 esac
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13257 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13258
13259 if test yes = "$GCC"; then
13260 case $host_os in
13261 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13262 *) lt_awk_arg='/^libraries:/' ;;
13263 esac
13264 case $host_os in
13265 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13266 *) lt_sed_strip_eq='s|=/|/|g' ;;
13267 esac
13268 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13269 case $lt_search_path_spec in
13270 *\;*)
13271 # if the path contains ";" then we assume it to be the separator
13272 # otherwise default to the standard path separator (i.e. ":") - it is
13273 # assumed that no part of a normal pathname contains ";" but that should
13274 # okay in the real world where ";" in dirpaths is itself problematic.
13275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13276 ;;
13277 *)
13278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13279 ;;
13280 esac
13281 # Ok, now we have the path, separated by spaces, we can step through it
13282 # and add multilib dir if necessary...
13283 lt_tmp_lt_search_path_spec=
13284 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13285 # ...but if some path component already ends with the multilib dir we assume
13286 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13287 case "$lt_multi_os_dir; $lt_search_path_spec " in
13288 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13289 lt_multi_os_dir=
13290 ;;
13291 esac
13292 for lt_sys_path in $lt_search_path_spec; do
13293 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13295 elif test -n "$lt_multi_os_dir"; then
13296 test -d "$lt_sys_path" && \
13297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13298 fi
13299 done
13300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13301 BEGIN {RS = " "; FS = "/|\n";} {
13302 lt_foo = "";
13303 lt_count = 0;
13304 for (lt_i = NF; lt_i > 0; lt_i--) {
13305 if ($lt_i != "" && $lt_i != ".") {
13306 if ($lt_i == "..") {
13307 lt_count++;
13308 } else {
13309 if (lt_count == 0) {
13310 lt_foo = "/" $lt_i lt_foo;
13311 } else {
13312 lt_count--;
13313 }
13314 }
13315 }
13316 }
13317 if (lt_foo != "") { lt_freq[lt_foo]++; }
13318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13319 }'`
13320 # AWK program above erroneously prepends '/' to C:/dos/paths
13321 # for these hosts.
13322 case $host_os in
13323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13324 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13325 esac
13326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13327 else
13328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13329 fi
13330 library_names_spec=
13331 libname_spec='lib$name'
13332 soname_spec=
13333 shrext_cmds=.so
13334 postinstall_cmds=
13335 postuninstall_cmds=
13336 finish_cmds=
13337 finish_eval=
13338 shlibpath_var=
13339 shlibpath_overrides_runpath=unknown
13340 version_type=none
13341 dynamic_linker="$host_os ld.so"
13342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13343 need_lib_prefix=unknown
13344 hardcode_into_libs=no
13345
13346 # when you set need_version to no, make sure it does not cause -set_version
13347 # flags to be left without arguments
13348 need_version=unknown
13349
13350
13351
13352 case $host_os in
13353 aix3*)
13354 version_type=linux # correct to gnu/linux during the next big refactor
13355 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13356 shlibpath_var=LIBPATH
13357
13358 # AIX 3 has no versioning support, so we append a major version to the name.
13359 soname_spec='$libname$release$shared_ext$major'
13360 ;;
13361
13362 aix[4-9]*)
13363 version_type=linux # correct to gnu/linux during the next big refactor
13364 need_lib_prefix=no
13365 need_version=no
13366 hardcode_into_libs=yes
13367 if test ia64 = "$host_cpu"; then
13368 # AIX 5 supports IA64
13369 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13370 shlibpath_var=LD_LIBRARY_PATH
13371 else
13372 # With GCC up to 2.95.x, collect2 would create an import file
13373 # for dependence libraries. The import file would start with
13374 # the line '#! .'. This would cause the generated library to
13375 # depend on '.', always an invalid library. This was fixed in
13376 # development snapshots of GCC prior to 3.0.
13377 case $host_os in
13378 aix4 | aix4.[01] | aix4.[01].*)
13379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13380 echo ' yes '
13381 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13382 :
13383 else
13384 can_build_shared=no
13385 fi
13386 ;;
13387 esac
13388 # Using Import Files as archive members, it is possible to support
13389 # filename-based versioning of shared library archives on AIX. While
13390 # this would work for both with and without runtime linking, it will
13391 # prevent static linking of such archives. So we do filename-based
13392 # shared library versioning with .so extension only, which is used
13393 # when both runtime linking and shared linking is enabled.
13394 # Unfortunately, runtime linking may impact performance, so we do
13395 # not want this to be the default eventually. Also, we use the
13396 # versioned .so libs for executables only if there is the -brtl
13397 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13398 # To allow for filename-based versioning support, we need to create
13399 # libNAME.so.V as an archive file, containing:
13400 # *) an Import File, referring to the versioned filename of the
13401 # archive as well as the shared archive member, telling the
13402 # bitwidth (32 or 64) of that shared object, and providing the
13403 # list of exported symbols of that shared object, eventually
13404 # decorated with the 'weak' keyword
13405 # *) the shared object with the F_LOADONLY flag set, to really avoid
13406 # it being seen by the linker.
13407 # At run time we better use the real file rather than another symlink,
13408 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13409
13410 case $with_aix_soname,$aix_use_runtimelinking in
13411 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13412 # soname into executable. Probably we can add versioning support to
13413 # collect2, so additional links can be useful in future.
13414 aix,yes) # traditional libtool
13415 dynamic_linker='AIX unversionable lib.so'
13416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13417 # instead of lib<name>.a to let people know that these are not
13418 # typical AIX shared libraries.
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 ;;
13421 aix,no) # traditional AIX only
13422 dynamic_linker='AIX lib.a(lib.so.V)'
13423 # We preserve .a as extension for shared libraries through AIX4.2
13424 # and later when we are not doing run time linking.
13425 library_names_spec='$libname$release.a $libname.a'
13426 soname_spec='$libname$release$shared_ext$major'
13427 ;;
13428 svr4,*) # full svr4 only
13429 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13430 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13431 # We do not specify a path in Import Files, so LIBPATH fires.
13432 shlibpath_overrides_runpath=yes
13433 ;;
13434 *,yes) # both, prefer svr4
13435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13437 # unpreferred sharedlib libNAME.a needs extra handling
13438 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13439 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13440 # We do not specify a path in Import Files, so LIBPATH fires.
13441 shlibpath_overrides_runpath=yes
13442 ;;
13443 *,no) # both, prefer aix
13444 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13445 library_names_spec='$libname$release.a $libname.a'
13446 soname_spec='$libname$release$shared_ext$major'
13447 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13448 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13449 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13450 ;;
13451 esac
13452 shlibpath_var=LIBPATH
13453 fi
13454 ;;
13455
13456 amigaos*)
13457 case $host_cpu in
13458 powerpc)
13459 # Since July 2007 AmigaOS4 officially supports .so libraries.
13460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13462 ;;
13463 m68k)
13464 library_names_spec='$libname.ixlibrary $libname.a'
13465 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13466 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13467 ;;
13468 esac
13469 ;;
13470
13471 beos*)
13472 library_names_spec='$libname$shared_ext'
13473 dynamic_linker="$host_os ld.so"
13474 shlibpath_var=LIBRARY_PATH
13475 ;;
13476
13477 bsdi[45]*)
13478 version_type=linux # correct to gnu/linux during the next big refactor
13479 need_version=no
13480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13481 soname_spec='$libname$release$shared_ext$major'
13482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13486 # the default ld.so.conf also contains /usr/contrib/lib and
13487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13488 # libtool to hard-code these into programs
13489 ;;
13490
13491 cygwin* | mingw* | pw32* | cegcc*)
13492 version_type=windows
13493 shrext_cmds=.dll
13494 need_version=no
13495 need_lib_prefix=no
13496
13497 case $GCC,$cc_basename in
13498 yes,*)
13499 # gcc
13500 library_names_spec='$libname.dll.a'
13501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13502 postinstall_cmds='base_file=`basename \$file`~
13503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13504 dldir=$destdir/`dirname \$dlpath`~
13505 test -d \$dldir || mkdir -p \$dldir~
13506 $install_prog $dir/$dlname \$dldir/$dlname~
13507 chmod a+x \$dldir/$dlname~
13508 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13509 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13510 fi'
13511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13512 dlpath=$dir/\$dldll~
13513 $RM \$dlpath'
13514 shlibpath_overrides_runpath=yes
13515
13516 case $host_os in
13517 cygwin*)
13518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13519 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13520
13521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13522 ;;
13523 mingw* | cegcc*)
13524 # MinGW DLLs use traditional 'lib' prefix
13525 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13526 ;;
13527 pw32*)
13528 # pw32 DLLs use 'pw' prefix rather than 'lib'
13529 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13530 ;;
13531 esac
13532 dynamic_linker='Win32 ld.exe'
13533 ;;
13534
13535 *,cl*)
13536 # Native MSVC
13537 libname_spec='$name'
13538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13539 library_names_spec='$libname.dll.lib'
13540
13541 case $build_os in
13542 mingw*)
13543 sys_lib_search_path_spec=
13544 lt_save_ifs=$IFS
13545 IFS=';'
13546 for lt_path in $LIB
13547 do
13548 IFS=$lt_save_ifs
13549 # Let DOS variable expansion print the short 8.3 style file name.
13550 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13551 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13552 done
13553 IFS=$lt_save_ifs
13554 # Convert to MSYS style.
13555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13556 ;;
13557 cygwin*)
13558 # Convert to unix form, then to dos form, then back to unix form
13559 # but this time dos style (no spaces!) so that the unix form looks
13560 # like /cygdrive/c/PROGRA~1:/cygdr...
13561 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13562 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13563 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13564 ;;
13565 *)
13566 sys_lib_search_path_spec=$LIB
13567 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13568 # It is most probably a Windows format PATH.
13569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13570 else
13571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13572 fi
13573 # FIXME: find the short name or the path components, as spaces are
13574 # common. (e.g. "Program Files" -> "PROGRA~1")
13575 ;;
13576 esac
13577
13578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13579 postinstall_cmds='base_file=`basename \$file`~
13580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13581 dldir=$destdir/`dirname \$dlpath`~
13582 test -d \$dldir || mkdir -p \$dldir~
13583 $install_prog $dir/$dlname \$dldir/$dlname'
13584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13585 dlpath=$dir/\$dldll~
13586 $RM \$dlpath'
13587 shlibpath_overrides_runpath=yes
13588 dynamic_linker='Win32 link.exe'
13589 ;;
13590
13591 *)
13592 # Assume MSVC wrapper
13593 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13594 dynamic_linker='Win32 ld.exe'
13595 ;;
13596 esac
13597 # FIXME: first we should search . and the directory the executable is in
13598 shlibpath_var=PATH
13599 ;;
13600
13601 darwin* | rhapsody*)
13602 dynamic_linker="$host_os dyld"
13603 version_type=darwin
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13607 soname_spec='$libname$release$major$shared_ext'
13608 shlibpath_overrides_runpath=yes
13609 shlibpath_var=DYLD_LIBRARY_PATH
13610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13611
13612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13614 ;;
13615
13616 dgux*)
13617 version_type=linux # correct to gnu/linux during the next big refactor
13618 need_lib_prefix=no
13619 need_version=no
13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13621 soname_spec='$libname$release$shared_ext$major'
13622 shlibpath_var=LD_LIBRARY_PATH
13623 ;;
13624
13625 freebsd* | dragonfly*)
13626 # DragonFly does not have aout. When/if they implement a new
13627 # versioning mechanism, adjust this.
13628 if test -x /usr/bin/objformat; then
13629 objformat=`/usr/bin/objformat`
13630 else
13631 case $host_os in
13632 freebsd[23].*) objformat=aout ;;
13633 *) objformat=elf ;;
13634 esac
13635 fi
13636 version_type=freebsd-$objformat
13637 case $version_type in
13638 freebsd-elf*)
13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13640 soname_spec='$libname$release$shared_ext$major'
13641 need_version=no
13642 need_lib_prefix=no
13643 ;;
13644 freebsd-*)
13645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13646 need_version=yes
13647 ;;
13648 esac
13649 shlibpath_var=LD_LIBRARY_PATH
13650 case $host_os in
13651 freebsd2.*)
13652 shlibpath_overrides_runpath=yes
13653 ;;
13654 freebsd3.[01]* | freebsdelf3.[01]*)
13655 shlibpath_overrides_runpath=yes
13656 hardcode_into_libs=yes
13657 ;;
13658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13660 shlibpath_overrides_runpath=no
13661 hardcode_into_libs=yes
13662 ;;
13663 *) # from 4.6 on, and DragonFly
13664 shlibpath_overrides_runpath=yes
13665 hardcode_into_libs=yes
13666 ;;
13667 esac
13668 ;;
13669
13670 haiku*)
13671 version_type=linux # correct to gnu/linux during the next big refactor
13672 need_lib_prefix=no
13673 need_version=no
13674 dynamic_linker="$host_os runtime_loader"
13675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13676 soname_spec='$libname$release$shared_ext$major'
13677 shlibpath_var=LIBRARY_PATH
13678 shlibpath_overrides_runpath=no
13679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13680 hardcode_into_libs=yes
13681 ;;
13682
13683 hpux9* | hpux10* | hpux11*)
13684 # Give a soname corresponding to the major version so that dld.sl refuses to
13685 # link against other versions.
13686 version_type=sunos
13687 need_lib_prefix=no
13688 need_version=no
13689 case $host_cpu in
13690 ia64*)
13691 shrext_cmds='.so'
13692 hardcode_into_libs=yes
13693 dynamic_linker="$host_os dld.so"
13694 shlibpath_var=LD_LIBRARY_PATH
13695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13697 soname_spec='$libname$release$shared_ext$major'
13698 if test 32 = "$HPUX_IA64_MODE"; then
13699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13700 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13701 else
13702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13703 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13704 fi
13705 ;;
13706 hppa*64*)
13707 shrext_cmds='.sl'
13708 hardcode_into_libs=yes
13709 dynamic_linker="$host_os dld.sl"
13710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13713 soname_spec='$libname$release$shared_ext$major'
13714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13716 ;;
13717 *)
13718 shrext_cmds='.sl'
13719 dynamic_linker="$host_os dld.sl"
13720 shlibpath_var=SHLIB_PATH
13721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13723 soname_spec='$libname$release$shared_ext$major'
13724 ;;
13725 esac
13726 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13727 postinstall_cmds='chmod 555 $lib'
13728 # or fails outright, so override atomically:
13729 install_override_mode=555
13730 ;;
13731
13732 interix[3-9]*)
13733 version_type=linux # correct to gnu/linux during the next big refactor
13734 need_lib_prefix=no
13735 need_version=no
13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13737 soname_spec='$libname$release$shared_ext$major'
13738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=no
13741 hardcode_into_libs=yes
13742 ;;
13743
13744 irix5* | irix6* | nonstopux*)
13745 case $host_os in
13746 nonstopux*) version_type=nonstopux ;;
13747 *)
13748 if test yes = "$lt_cv_prog_gnu_ld"; then
13749 version_type=linux # correct to gnu/linux during the next big refactor
13750 else
13751 version_type=irix
13752 fi ;;
13753 esac
13754 need_lib_prefix=no
13755 need_version=no
13756 soname_spec='$libname$release$shared_ext$major'
13757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13758 case $host_os in
13759 irix5* | nonstopux*)
13760 libsuff= shlibsuff=
13761 ;;
13762 *)
13763 case $LD in # libtool.m4 will add one of these switches to LD
13764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13765 libsuff= shlibsuff= libmagic=32-bit;;
13766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13767 libsuff=32 shlibsuff=N32 libmagic=N32;;
13768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13770 *) libsuff= shlibsuff= libmagic=never-match;;
13771 esac
13772 ;;
13773 esac
13774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13775 shlibpath_overrides_runpath=no
13776 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13777 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13778 hardcode_into_libs=yes
13779 ;;
13780
13781 # No shared lib support for Linux oldld, aout, or coff.
13782 linux*oldld* | linux*aout* | linux*coff*)
13783 dynamic_linker=no
13784 ;;
13785
13786 linux*android*)
13787 version_type=none # Android doesn't support versioned libraries.
13788 need_lib_prefix=no
13789 need_version=no
13790 library_names_spec='$libname$release$shared_ext'
13791 soname_spec='$libname$release$shared_ext'
13792 finish_cmds=
13793 shlibpath_var=LD_LIBRARY_PATH
13794 shlibpath_overrides_runpath=yes
13795
13796 # This implies no fast_install, which is unacceptable.
13797 # Some rework will be needed to allow for fast_install
13798 # before this can be enabled.
13799 hardcode_into_libs=yes
13800
13801 dynamic_linker='Android linker'
13802 # Don't embed -rpath directories since the linker doesn't support them.
13803 hardcode_libdir_flag_spec='-L$libdir'
13804 ;;
13805
13806 # This must be glibc/ELF.
13807 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13808 version_type=linux # correct to gnu/linux during the next big refactor
13809 need_lib_prefix=no
13810 need_version=no
13811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13812 soname_spec='$libname$release$shared_ext$major'
13813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13814 shlibpath_var=LD_LIBRARY_PATH
13815 shlibpath_overrides_runpath=no
13816
13817 # Some binutils ld are patched to set DT_RUNPATH
13818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 lt_cv_shlibpath_overrides_runpath=no
13822 save_LDFLAGS=$LDFLAGS
13823 save_libdir=$libdir
13824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828
13829 int
13830 main ()
13831 {
13832
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13839 lt_cv_shlibpath_overrides_runpath=yes
13840 fi
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 LDFLAGS=$save_LDFLAGS
13845 libdir=$save_libdir
13846
13847 fi
13848
13849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13850
13851 # This implies no fast_install, which is unacceptable.
13852 # Some rework will be needed to allow for fast_install
13853 # before this can be enabled.
13854 hardcode_into_libs=yes
13855
13856 # Ideally, we could use ldconfig to report *all* directores which are
13857 # searched for libraries, however this is still not possible. Aside from not
13858 # being certain /sbin/ldconfig is available, command
13859 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13860 # even though it is searched at run-time. Try to do the best guess by
13861 # appending ld.so.conf contents (and includes) to the search path.
13862 if test -f /etc/ld.so.conf; then
13863 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' ' '`
13864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13865 fi
13866
13867 # We used to test for /lib/ld.so.1 and disable shared libraries on
13868 # powerpc, because MkLinux only supported shared libraries with the
13869 # GNU dynamic linker. Since this was broken with cross compilers,
13870 # most powerpc-linux boxes support dynamic linking these days and
13871 # people can always --disable-shared, the test was removed, and we
13872 # assume the GNU/Linux dynamic linker is in use.
13873 dynamic_linker='GNU/Linux ld.so'
13874 ;;
13875
13876 netbsd*)
13877 version_type=sunos
13878 need_lib_prefix=no
13879 need_version=no
13880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13883 dynamic_linker='NetBSD (a.out) ld.so'
13884 else
13885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13886 soname_spec='$libname$release$shared_ext$major'
13887 dynamic_linker='NetBSD ld.elf_so'
13888 fi
13889 shlibpath_var=LD_LIBRARY_PATH
13890 shlibpath_overrides_runpath=yes
13891 hardcode_into_libs=yes
13892 ;;
13893
13894 newsos6)
13895 version_type=linux # correct to gnu/linux during the next big refactor
13896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13897 shlibpath_var=LD_LIBRARY_PATH
13898 shlibpath_overrides_runpath=yes
13899 ;;
13900
13901 *nto* | *qnx*)
13902 version_type=qnx
13903 need_lib_prefix=no
13904 need_version=no
13905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13906 soname_spec='$libname$release$shared_ext$major'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=no
13909 hardcode_into_libs=yes
13910 dynamic_linker='ldqnx.so'
13911 ;;
13912
13913 openbsd* | bitrig*)
13914 version_type=sunos
13915 sys_lib_dlsearch_path_spec=/usr/lib
13916 need_lib_prefix=no
13917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13918 need_version=no
13919 else
13920 need_version=yes
13921 fi
13922 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13924 shlibpath_var=LD_LIBRARY_PATH
13925 shlibpath_overrides_runpath=yes
13926 ;;
13927
13928 os2*)
13929 libname_spec='$name'
13930 version_type=windows
13931 shrext_cmds=.dll
13932 need_version=no
13933 need_lib_prefix=no
13934 # OS/2 can only load a DLL with a base name of 8 characters or less.
13935 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13936 v=$($ECHO $release$versuffix | tr -d .-);
13937 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13938 $ECHO $n$v`$shared_ext'
13939 library_names_spec='${libname}_dll.$libext'
13940 dynamic_linker='OS/2 ld.exe'
13941 shlibpath_var=BEGINLIBPATH
13942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13944 postinstall_cmds='base_file=`basename \$file`~
13945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13946 dldir=$destdir/`dirname \$dlpath`~
13947 test -d \$dldir || mkdir -p \$dldir~
13948 $install_prog $dir/$dlname \$dldir/$dlname~
13949 chmod a+x \$dldir/$dlname~
13950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13952 fi'
13953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13954 dlpath=$dir/\$dldll~
13955 $RM \$dlpath'
13956 ;;
13957
13958 osf3* | osf4* | osf5*)
13959 version_type=osf
13960 need_lib_prefix=no
13961 need_version=no
13962 soname_spec='$libname$release$shared_ext$major'
13963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13967 ;;
13968
13969 rdos*)
13970 dynamic_linker=no
13971 ;;
13972
13973 solaris*)
13974 version_type=linux # correct to gnu/linux during the next big refactor
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13978 soname_spec='$libname$release$shared_ext$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 hardcode_into_libs=yes
13982 # ldd complains unless libraries are executable
13983 postinstall_cmds='chmod +x $lib'
13984 ;;
13985
13986 sunos4*)
13987 version_type=sunos
13988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes
13992 if test yes = "$with_gnu_ld"; then
13993 need_lib_prefix=no
13994 fi
13995 need_version=yes
13996 ;;
13997
13998 sysv4 | sysv4.3*)
13999 version_type=linux # correct to gnu/linux during the next big refactor
14000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14001 soname_spec='$libname$release$shared_ext$major'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 case $host_vendor in
14004 sni)
14005 shlibpath_overrides_runpath=no
14006 need_lib_prefix=no
14007 runpath_var=LD_RUN_PATH
14008 ;;
14009 siemens)
14010 need_lib_prefix=no
14011 ;;
14012 motorola)
14013 need_lib_prefix=no
14014 need_version=no
14015 shlibpath_overrides_runpath=no
14016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14017 ;;
14018 esac
14019 ;;
14020
14021 sysv4*MP*)
14022 if test -d /usr/nec; then
14023 version_type=linux # correct to gnu/linux during the next big refactor
14024 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14025 soname_spec='$libname$shared_ext.$major'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 fi
14028 ;;
14029
14030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14031 version_type=sco
14032 need_lib_prefix=no
14033 need_version=no
14034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14035 soname_spec='$libname$release$shared_ext$major'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=yes
14038 hardcode_into_libs=yes
14039 if test yes = "$with_gnu_ld"; then
14040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14041 else
14042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14043 case $host_os in
14044 sco3.2v5*)
14045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14046 ;;
14047 esac
14048 fi
14049 sys_lib_dlsearch_path_spec='/usr/lib'
14050 ;;
14051
14052 tpf*)
14053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14054 version_type=linux # correct to gnu/linux during the next big refactor
14055 need_lib_prefix=no
14056 need_version=no
14057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 shlibpath_overrides_runpath=no
14060 hardcode_into_libs=yes
14061 ;;
14062
14063 uts4*)
14064 version_type=linux # correct to gnu/linux during the next big refactor
14065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14066 soname_spec='$libname$release$shared_ext$major'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 ;;
14069
14070 *)
14071 dynamic_linker=no
14072 ;;
14073 esac
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14075 $as_echo "$dynamic_linker" >&6; }
14076 test no = "$dynamic_linker" && can_build_shared=no
14077
14078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14079 if test yes = "$GCC"; then
14080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14081 fi
14082
14083 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14084 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14085 fi
14086
14087 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14088 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14089 fi
14090
14091 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14092 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14093
14094 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14095 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14096
14097 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14098 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14198 hardcode_action=
14199 if test -n "$hardcode_libdir_flag_spec" ||
14200 test -n "$runpath_var" ||
14201 test yes = "$hardcode_automatic"; then
14202
14203 # We can hardcode non-existent directories.
14204 if test no != "$hardcode_direct" &&
14205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14206 # have to relink, otherwise we might link with an installed library
14207 # when we should be linking with a yet-to-be-installed one
14208 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14209 test no != "$hardcode_minus_L"; then
14210 # Linking always hardcodes the temporary library directory.
14211 hardcode_action=relink
14212 else
14213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14214 hardcode_action=immediate
14215 fi
14216 else
14217 # We cannot hardcode anything, or else we can only hardcode existing
14218 # directories.
14219 hardcode_action=unsupported
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14222 $as_echo "$hardcode_action" >&6; }
14223
14224 if test relink = "$hardcode_action" ||
14225 test yes = "$inherit_rpath"; then
14226 # Fast installation is not supported
14227 enable_fast_install=no
14228 elif test yes = "$shlibpath_overrides_runpath" ||
14229 test no = "$enable_shared"; then
14230 # Fast installation is not necessary
14231 enable_fast_install=needless
14232 fi
14233
14234
14235
14236
14237
14238
14239 if test yes != "$enable_dlopen"; then
14240 enable_dlopen=unknown
14241 enable_dlopen_self=unknown
14242 enable_dlopen_self_static=unknown
14243 else
14244 lt_cv_dlopen=no
14245 lt_cv_dlopen_libs=
14246
14247 case $host_os in
14248 beos*)
14249 lt_cv_dlopen=load_add_on
14250 lt_cv_dlopen_libs=
14251 lt_cv_dlopen_self=yes
14252 ;;
14253
14254 mingw* | pw32* | cegcc*)
14255 lt_cv_dlopen=LoadLibrary
14256 lt_cv_dlopen_libs=
14257 ;;
14258
14259 cygwin*)
14260 lt_cv_dlopen=dlopen
14261 lt_cv_dlopen_libs=
14262 ;;
14263
14264 darwin*)
14265 # if libdl is installed we need to link against it
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14268 if ${ac_cv_lib_dl_dlopen+:} false; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 ac_check_lib_save_LIBS=$LIBS
14272 LIBS="-ldl $LIBS"
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 char dlopen ();
14283 int
14284 main ()
14285 {
14286 return dlopen ();
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_link "$LINENO"; then :
14292 ac_cv_lib_dl_dlopen=yes
14293 else
14294 ac_cv_lib_dl_dlopen=no
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14299 fi
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14301 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14302 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14304 else
14305
14306 lt_cv_dlopen=dyld
14307 lt_cv_dlopen_libs=
14308 lt_cv_dlopen_self=yes
14309
14310 fi
14311
14312 ;;
14313
14314 tpf*)
14315 # Don't try to run any link tests for TPF. We know it's impossible
14316 # because TPF is a cross-compiler, and we know how we open DSOs.
14317 lt_cv_dlopen=dlopen
14318 lt_cv_dlopen_libs=
14319 lt_cv_dlopen_self=no
14320 ;;
14321
14322 *)
14323 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14324 if test "x$ac_cv_func_shl_load" = xyes; then :
14325 lt_cv_dlopen=shl_load
14326 else
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14328 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14329 if ${ac_cv_lib_dld_shl_load+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-ldld $LIBS"
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336
14337 /* Override any GCC internal prototype to avoid an error.
14338 Use char because int might match the return type of a GCC
14339 builtin and then its argument prototype would still apply. */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 char shl_load ();
14344 int
14345 main ()
14346 {
14347 return shl_load ();
14348 ;
14349 return 0;
14350 }
14351 _ACEOF
14352 if ac_fn_c_try_link "$LINENO"; then :
14353 ac_cv_lib_dld_shl_load=yes
14354 else
14355 ac_cv_lib_dld_shl_load=no
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14359 LIBS=$ac_check_lib_save_LIBS
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14362 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14363 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14364 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14365 else
14366 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14367 if test "x$ac_cv_func_dlopen" = xyes; then :
14368 lt_cv_dlopen=dlopen
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14371 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14372 if ${ac_cv_lib_dl_dlopen+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-ldl $LIBS"
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14383 #ifdef __cplusplus
14384 extern "C"
14385 #endif
14386 char dlopen ();
14387 int
14388 main ()
14389 {
14390 return dlopen ();
14391 ;
14392 return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_link "$LINENO"; then :
14396 ac_cv_lib_dl_dlopen=yes
14397 else
14398 ac_cv_lib_dl_dlopen=no
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14402 LIBS=$ac_check_lib_save_LIBS
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14405 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14406 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14411 if ${ac_cv_lib_svld_dlopen+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-lsvld $LIBS"
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418
14419 /* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 char dlopen ();
14426 int
14427 main ()
14428 {
14429 return dlopen ();
14430 ;
14431 return 0;
14432 }
14433 _ACEOF
14434 if ac_fn_c_try_link "$LINENO"; then :
14435 ac_cv_lib_svld_dlopen=yes
14436 else
14437 ac_cv_lib_svld_dlopen=no
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14446 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14449 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14450 if ${ac_cv_lib_dld_dld_link+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-ldld $LIBS"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char dld_link ();
14465 int
14466 main ()
14467 {
14468 return dld_link ();
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_dld_dld_link=yes
14475 else
14476 ac_cv_lib_dld_dld_link=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14483 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14484 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14485 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14486 fi
14487
14488
14489 fi
14490
14491
14492 fi
14493
14494
14495 fi
14496
14497
14498 fi
14499
14500
14501 fi
14502
14503 ;;
14504 esac
14505
14506 if test no = "$lt_cv_dlopen"; then
14507 enable_dlopen=no
14508 else
14509 enable_dlopen=yes
14510 fi
14511
14512 case $lt_cv_dlopen in
14513 dlopen)
14514 save_CPPFLAGS=$CPPFLAGS
14515 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14516
14517 save_LDFLAGS=$LDFLAGS
14518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14519
14520 save_LIBS=$LIBS
14521 LIBS="$lt_cv_dlopen_libs $LIBS"
14522
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14524 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14525 if ${lt_cv_dlopen_self+:} false; then :
14526 $as_echo_n "(cached) " >&6
14527 else
14528 if test yes = "$cross_compiling"; then :
14529 lt_cv_dlopen_self=cross
14530 else
14531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14532 lt_status=$lt_dlunknown
14533 cat > conftest.$ac_ext <<_LT_EOF
14534 #line $LINENO "configure"
14535 #include "confdefs.h"
14536
14537 #if HAVE_DLFCN_H
14538 #include <dlfcn.h>
14539 #endif
14540
14541 #include <stdio.h>
14542
14543 #ifdef RTLD_GLOBAL
14544 # define LT_DLGLOBAL RTLD_GLOBAL
14545 #else
14546 # ifdef DL_GLOBAL
14547 # define LT_DLGLOBAL DL_GLOBAL
14548 # else
14549 # define LT_DLGLOBAL 0
14550 # endif
14551 #endif
14552
14553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14554 find out it does not work in some platform. */
14555 #ifndef LT_DLLAZY_OR_NOW
14556 # ifdef RTLD_LAZY
14557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14558 # else
14559 # ifdef DL_LAZY
14560 # define LT_DLLAZY_OR_NOW DL_LAZY
14561 # else
14562 # ifdef RTLD_NOW
14563 # define LT_DLLAZY_OR_NOW RTLD_NOW
14564 # else
14565 # ifdef DL_NOW
14566 # define LT_DLLAZY_OR_NOW DL_NOW
14567 # else
14568 # define LT_DLLAZY_OR_NOW 0
14569 # endif
14570 # endif
14571 # endif
14572 # endif
14573 #endif
14574
14575 /* When -fvisibility=hidden is used, assume the code has been annotated
14576 correspondingly for the symbols needed. */
14577 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14578 int fnord () __attribute__((visibility("default")));
14579 #endif
14580
14581 int fnord () { return 42; }
14582 int main ()
14583 {
14584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14585 int status = $lt_dlunknown;
14586
14587 if (self)
14588 {
14589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14590 else
14591 {
14592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14593 else puts (dlerror ());
14594 }
14595 /* dlclose (self); */
14596 }
14597 else
14598 puts (dlerror ());
14599
14600 return status;
14601 }
14602 _LT_EOF
14603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14604 (eval $ac_link) 2>&5
14605 ac_status=$?
14606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14607 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14608 (./conftest; exit; ) >&5 2>/dev/null
14609 lt_status=$?
14610 case x$lt_status in
14611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14614 esac
14615 else :
14616 # compilation failed
14617 lt_cv_dlopen_self=no
14618 fi
14619 fi
14620 rm -fr conftest*
14621
14622
14623 fi
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14625 $as_echo "$lt_cv_dlopen_self" >&6; }
14626
14627 if test yes = "$lt_cv_dlopen_self"; then
14628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14631 if ${lt_cv_dlopen_self_static+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 if test yes = "$cross_compiling"; then :
14635 lt_cv_dlopen_self_static=cross
14636 else
14637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14638 lt_status=$lt_dlunknown
14639 cat > conftest.$ac_ext <<_LT_EOF
14640 #line $LINENO "configure"
14641 #include "confdefs.h"
14642
14643 #if HAVE_DLFCN_H
14644 #include <dlfcn.h>
14645 #endif
14646
14647 #include <stdio.h>
14648
14649 #ifdef RTLD_GLOBAL
14650 # define LT_DLGLOBAL RTLD_GLOBAL
14651 #else
14652 # ifdef DL_GLOBAL
14653 # define LT_DLGLOBAL DL_GLOBAL
14654 # else
14655 # define LT_DLGLOBAL 0
14656 # endif
14657 #endif
14658
14659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14660 find out it does not work in some platform. */
14661 #ifndef LT_DLLAZY_OR_NOW
14662 # ifdef RTLD_LAZY
14663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14664 # else
14665 # ifdef DL_LAZY
14666 # define LT_DLLAZY_OR_NOW DL_LAZY
14667 # else
14668 # ifdef RTLD_NOW
14669 # define LT_DLLAZY_OR_NOW RTLD_NOW
14670 # else
14671 # ifdef DL_NOW
14672 # define LT_DLLAZY_OR_NOW DL_NOW
14673 # else
14674 # define LT_DLLAZY_OR_NOW 0
14675 # endif
14676 # endif
14677 # endif
14678 # endif
14679 #endif
14680
14681 /* When -fvisibility=hidden is used, assume the code has been annotated
14682 correspondingly for the symbols needed. */
14683 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14684 int fnord () __attribute__((visibility("default")));
14685 #endif
14686
14687 int fnord () { return 42; }
14688 int main ()
14689 {
14690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14691 int status = $lt_dlunknown;
14692
14693 if (self)
14694 {
14695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14696 else
14697 {
14698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14699 else puts (dlerror ());
14700 }
14701 /* dlclose (self); */
14702 }
14703 else
14704 puts (dlerror ());
14705
14706 return status;
14707 }
14708 _LT_EOF
14709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14710 (eval $ac_link) 2>&5
14711 ac_status=$?
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14714 (./conftest; exit; ) >&5 2>/dev/null
14715 lt_status=$?
14716 case x$lt_status in
14717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14719 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14720 esac
14721 else :
14722 # compilation failed
14723 lt_cv_dlopen_self_static=no
14724 fi
14725 fi
14726 rm -fr conftest*
14727
14728
14729 fi
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14732 fi
14733
14734 CPPFLAGS=$save_CPPFLAGS
14735 LDFLAGS=$save_LDFLAGS
14736 LIBS=$save_LIBS
14737 ;;
14738 esac
14739
14740 case $lt_cv_dlopen_self in
14741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14742 *) enable_dlopen_self=unknown ;;
14743 esac
14744
14745 case $lt_cv_dlopen_self_static in
14746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14747 *) enable_dlopen_self_static=unknown ;;
14748 esac
14749 fi
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767 striplib=
14768 old_striplib=
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14770 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14771 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14775 $as_echo "yes" >&6; }
14776 else
14777 # FIXME - insert some real tests, host_os isn't really good enough
14778 case $host_os in
14779 darwin*)
14780 if test -n "$STRIP"; then
14781 striplib="$STRIP -x"
14782 old_striplib="$STRIP -S"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14784 $as_echo "yes" >&6; }
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14788 fi
14789 ;;
14790 *)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792 $as_echo "no" >&6; }
14793 ;;
14794 esac
14795 fi
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808 # Report what library types will actually be built
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14810 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14812 $as_echo "$can_build_shared" >&6; }
14813
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14815 $as_echo_n "checking whether to build shared libraries... " >&6; }
14816 test no = "$can_build_shared" && enable_shared=no
14817
14818 # On AIX, shared libraries and static libraries use the same namespace, and
14819 # are all built from PIC.
14820 case $host_os in
14821 aix3*)
14822 test yes = "$enable_shared" && enable_static=no
14823 if test -n "$RANLIB"; then
14824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14825 postinstall_cmds='$RANLIB $lib'
14826 fi
14827 ;;
14828
14829 aix[4-9]*)
14830 if test ia64 != "$host_cpu"; then
14831 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14832 yes,aix,yes) ;; # shared object as lib.so file only
14833 yes,svr4,*) ;; # shared object as lib.so archive member only
14834 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14835 esac
14836 fi
14837 ;;
14838 esac
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14840 $as_echo "$enable_shared" >&6; }
14841
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14843 $as_echo_n "checking whether to build static libraries... " >&6; }
14844 # Make sure either enable_shared or enable_static is yes.
14845 test yes = "$enable_shared" || enable_static=yes
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14847 $as_echo "$enable_static" >&6; }
14848
14849
14850
14851
14852 fi
14853 ac_ext=c
14854 ac_cpp='$CPP $CPPFLAGS'
14855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14858
14859 CC=$lt_save_CC
14860
14861 if test -n "$CXX" && ( test no != "$CXX" &&
14862 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14863 (test g++ != "$CXX"))); then
14864 ac_ext=cpp
14865 ac_cpp='$CXXCPP $CPPFLAGS'
14866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14870 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14871 if test -z "$CXXCPP"; then
14872 if ${ac_cv_prog_CXXCPP+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 # Double quotes because CXXCPP needs to be expanded
14876 for CXXCPP in "$CXX -E" "/lib/cpp"
14877 do
14878 ac_preproc_ok=false
14879 for ac_cxx_preproc_warn_flag in '' yes
14880 do
14881 # Use a header file that comes with gcc, so configuring glibc
14882 # with a fresh cross-compiler works.
14883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 # <limits.h> exists even on freestanding compilers.
14885 # On the NeXT, cc -E runs the code through the compiler's parser,
14886 # not just through cpp. "Syntax error" is here to catch this case.
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 #ifdef __STDC__
14890 # include <limits.h>
14891 #else
14892 # include <assert.h>
14893 #endif
14894 Syntax error
14895 _ACEOF
14896 if ac_fn_cxx_try_cpp "$LINENO"; then :
14897
14898 else
14899 # Broken: fails on valid input.
14900 continue
14901 fi
14902 rm -f conftest.err conftest.i conftest.$ac_ext
14903
14904 # OK, works on sane cases. Now check whether nonexistent headers
14905 # can be detected and how.
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <ac_nonexistent.h>
14909 _ACEOF
14910 if ac_fn_cxx_try_cpp "$LINENO"; then :
14911 # Broken: success on invalid input.
14912 continue
14913 else
14914 # Passes both tests.
14915 ac_preproc_ok=:
14916 break
14917 fi
14918 rm -f conftest.err conftest.i conftest.$ac_ext
14919
14920 done
14921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14922 rm -f conftest.i conftest.err conftest.$ac_ext
14923 if $ac_preproc_ok; then :
14924 break
14925 fi
14926
14927 done
14928 ac_cv_prog_CXXCPP=$CXXCPP
14929
14930 fi
14931 CXXCPP=$ac_cv_prog_CXXCPP
14932 else
14933 ac_cv_prog_CXXCPP=$CXXCPP
14934 fi
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14936 $as_echo "$CXXCPP" >&6; }
14937 ac_preproc_ok=false
14938 for ac_cxx_preproc_warn_flag in '' yes
14939 do
14940 # Use a header file that comes with gcc, so configuring glibc
14941 # with a fresh cross-compiler works.
14942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14943 # <limits.h> exists even on freestanding compilers.
14944 # On the NeXT, cc -E runs the code through the compiler's parser,
14945 # not just through cpp. "Syntax error" is here to catch this case.
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14948 #ifdef __STDC__
14949 # include <limits.h>
14950 #else
14951 # include <assert.h>
14952 #endif
14953 Syntax error
14954 _ACEOF
14955 if ac_fn_cxx_try_cpp "$LINENO"; then :
14956
14957 else
14958 # Broken: fails on valid input.
14959 continue
14960 fi
14961 rm -f conftest.err conftest.i conftest.$ac_ext
14962
14963 # OK, works on sane cases. Now check whether nonexistent headers
14964 # can be detected and how.
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #include <ac_nonexistent.h>
14968 _ACEOF
14969 if ac_fn_cxx_try_cpp "$LINENO"; then :
14970 # Broken: success on invalid input.
14971 continue
14972 else
14973 # Passes both tests.
14974 ac_preproc_ok=:
14975 break
14976 fi
14977 rm -f conftest.err conftest.i conftest.$ac_ext
14978
14979 done
14980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14981 rm -f conftest.i conftest.err conftest.$ac_ext
14982 if $ac_preproc_ok; then :
14983
14984 else
14985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14987 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14988 See \`config.log' for more details" "$LINENO" 5; }
14989 fi
14990
14991 ac_ext=c
14992 ac_cpp='$CPP $CPPFLAGS'
14993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996
14997 else
14998 _lt_caught_CXX_error=yes
14999 fi
15000
15001 ac_ext=cpp
15002 ac_cpp='$CXXCPP $CPPFLAGS'
15003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15006
15007 archive_cmds_need_lc_CXX=no
15008 allow_undefined_flag_CXX=
15009 always_export_symbols_CXX=no
15010 archive_expsym_cmds_CXX=
15011 compiler_needs_object_CXX=no
15012 export_dynamic_flag_spec_CXX=
15013 hardcode_direct_CXX=no
15014 hardcode_direct_absolute_CXX=no
15015 hardcode_libdir_flag_spec_CXX=
15016 hardcode_libdir_separator_CXX=
15017 hardcode_minus_L_CXX=no
15018 hardcode_shlibpath_var_CXX=unsupported
15019 hardcode_automatic_CXX=no
15020 inherit_rpath_CXX=no
15021 module_cmds_CXX=
15022 module_expsym_cmds_CXX=
15023 link_all_deplibs_CXX=unknown
15024 old_archive_cmds_CXX=$old_archive_cmds
15025 reload_flag_CXX=$reload_flag
15026 reload_cmds_CXX=$reload_cmds
15027 no_undefined_flag_CXX=
15028 whole_archive_flag_spec_CXX=
15029 enable_shared_with_static_runtimes_CXX=no
15030
15031 # Source file extension for C++ test sources.
15032 ac_ext=cpp
15033
15034 # Object file extension for compiled C++ test sources.
15035 objext=o
15036 objext_CXX=$objext
15037
15038 # No sense in running all these tests if we already determined that
15039 # the CXX compiler isn't working. Some variables (like enable_shared)
15040 # are currently assumed to apply to all compilers on this platform,
15041 # and will be corrupted by setting them based on a non-working compiler.
15042 if test yes != "$_lt_caught_CXX_error"; then
15043 # Code to be used in simple compile tests
15044 lt_simple_compile_test_code="int some_variable = 0;"
15045
15046 # Code to be used in simple link tests
15047 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15048
15049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15050
15051
15052
15053
15054
15055
15056 # If no C compiler was specified, use CC.
15057 LTCC=${LTCC-"$CC"}
15058
15059 # If no C compiler flags were specified, use CFLAGS.
15060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15061
15062 # Allow CC to be a program name with arguments.
15063 compiler=$CC
15064
15065
15066 # save warnings/boilerplate of simple test code
15067 ac_outfile=conftest.$ac_objext
15068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15070 _lt_compiler_boilerplate=`cat conftest.err`
15071 $RM -r conftest*
15072
15073 ac_outfile=conftest.$ac_objext
15074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15076 _lt_linker_boilerplate=`cat conftest.err`
15077 $RM -r conftest*
15078
15079
15080 # Allow CC to be a program name with arguments.
15081 lt_save_CC=$CC
15082 lt_save_CFLAGS=$CFLAGS
15083 lt_save_LD=$LD
15084 lt_save_GCC=$GCC
15085 GCC=$GXX
15086 lt_save_with_gnu_ld=$with_gnu_ld
15087 lt_save_path_LD=$lt_cv_path_LD
15088 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15090 else
15091 $as_unset lt_cv_prog_gnu_ld
15092 fi
15093 if test -n "${lt_cv_path_LDCXX+set}"; then
15094 lt_cv_path_LD=$lt_cv_path_LDCXX
15095 else
15096 $as_unset lt_cv_path_LD
15097 fi
15098 test -z "${LDCXX+set}" || LD=$LDCXX
15099 CC=${CXX-"c++"}
15100 CFLAGS=$CXXFLAGS
15101 compiler=$CC
15102 compiler_CXX=$CC
15103 func_cc_basename $compiler
15104 cc_basename=$func_cc_basename_result
15105
15106
15107 if test -n "$compiler"; then
15108 # We don't want -fno-exception when compiling C++ code, so set the
15109 # no_builtin_flag separately
15110 if test yes = "$GXX"; then
15111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15112 else
15113 lt_prog_compiler_no_builtin_flag_CXX=
15114 fi
15115
15116 if test yes = "$GXX"; then
15117 # Set up default GNU C++ configuration
15118
15119
15120
15121 # Check whether --with-gnu-ld was given.
15122 if test "${with_gnu_ld+set}" = set; then :
15123 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15124 else
15125 with_gnu_ld=no
15126 fi
15127
15128 ac_prog=ld
15129 if test yes = "$GCC"; then
15130 # Check if gcc -print-prog-name=ld gives a path.
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15132 $as_echo_n "checking for ld used by $CC... " >&6; }
15133 case $host in
15134 *-*-mingw*)
15135 # gcc leaves a trailing carriage return, which upsets mingw
15136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15137 *)
15138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15139 esac
15140 case $ac_prog in
15141 # Accept absolute paths.
15142 [\\/]* | ?:[\\/]*)
15143 re_direlt='/[^/][^/]*/\.\./'
15144 # Canonicalize the pathname of ld
15145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15148 done
15149 test -z "$LD" && LD=$ac_prog
15150 ;;
15151 "")
15152 # If it fails, then pretend we aren't using GCC.
15153 ac_prog=ld
15154 ;;
15155 *)
15156 # If it is relative, then search for the first ld in PATH.
15157 with_gnu_ld=unknown
15158 ;;
15159 esac
15160 elif test yes = "$with_gnu_ld"; then
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15162 $as_echo_n "checking for GNU ld... " >&6; }
15163 else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15165 $as_echo_n "checking for non-GNU ld... " >&6; }
15166 fi
15167 if ${lt_cv_path_LD+:} false; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 if test -z "$LD"; then
15171 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15172 for ac_dir in $PATH; do
15173 IFS=$lt_save_ifs
15174 test -z "$ac_dir" && ac_dir=.
15175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15176 lt_cv_path_LD=$ac_dir/$ac_prog
15177 # Check to see if the program is GNU ld. I'd rather use --version,
15178 # but apparently some variants of GNU ld only accept -v.
15179 # Break only if it was the GNU/non-GNU ld that we prefer.
15180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15181 *GNU* | *'with BFD'*)
15182 test no != "$with_gnu_ld" && break
15183 ;;
15184 *)
15185 test yes != "$with_gnu_ld" && break
15186 ;;
15187 esac
15188 fi
15189 done
15190 IFS=$lt_save_ifs
15191 else
15192 lt_cv_path_LD=$LD # Let the user override the test with a path.
15193 fi
15194 fi
15195
15196 LD=$lt_cv_path_LD
15197 if test -n "$LD"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15199 $as_echo "$LD" >&6; }
15200 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 $as_echo "no" >&6; }
15203 fi
15204 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15207 if ${lt_cv_prog_gnu_ld+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15211 case `$LD -v 2>&1 </dev/null` in
15212 *GNU* | *'with BFD'*)
15213 lt_cv_prog_gnu_ld=yes
15214 ;;
15215 *)
15216 lt_cv_prog_gnu_ld=no
15217 ;;
15218 esac
15219 fi
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15222 with_gnu_ld=$lt_cv_prog_gnu_ld
15223
15224
15225
15226
15227
15228
15229
15230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15231 # archiving commands below assume that GNU ld is being used.
15232 if test yes = "$with_gnu_ld"; then
15233 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15234 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'
15235
15236 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15237 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15238
15239 # If archive_cmds runs LD, not CC, wlarc should be empty
15240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15241 # investigate it a little bit more. (MM)
15242 wlarc='$wl'
15243
15244 # ancient GNU ld didn't support --whole-archive et. al.
15245 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15246 $GREP 'no-whole-archive' > /dev/null; then
15247 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15248 else
15249 whole_archive_flag_spec_CXX=
15250 fi
15251 else
15252 with_gnu_ld=no
15253 wlarc=
15254
15255 # A generic and very simple default shared library creation
15256 # command for GNU C++ for the case where it uses the native
15257 # linker, instead of GNU ld. If possible, this setting should
15258 # overridden to take advantage of the native linker features on
15259 # the platform it is being used on.
15260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15261 fi
15262
15263 # Commands to make compiler produce verbose output that lists
15264 # what "hidden" libraries, object files and flags are used when
15265 # linking a shared library.
15266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15267
15268 else
15269 GXX=no
15270 with_gnu_ld=no
15271 wlarc=
15272 fi
15273
15274 # PORTME: fill in a description of your system's C++ link characteristics
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15276 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15277 ld_shlibs_CXX=yes
15278 case $host_os in
15279 aix3*)
15280 # FIXME: insert proper C++ library support
15281 ld_shlibs_CXX=no
15282 ;;
15283 aix[4-9]*)
15284 if test ia64 = "$host_cpu"; then
15285 # On IA64, the linker does run time linking by default, so we don't
15286 # have to do anything special.
15287 aix_use_runtimelinking=no
15288 exp_sym_flag='-Bexport'
15289 no_entry_flag=
15290 else
15291 aix_use_runtimelinking=no
15292
15293 # Test if we are trying to use run time linking or normal
15294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15295 # have runtime linking enabled, and use it for executables.
15296 # For shared libraries, we enable/disable runtime linking
15297 # depending on the kind of the shared library created -
15298 # when "with_aix_soname,aix_use_runtimelinking" is:
15299 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15300 # "aix,yes" lib.so shared, rtl:yes, for executables
15301 # lib.a static archive
15302 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15303 # lib.a(lib.so.V) shared, rtl:no, for executables
15304 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15305 # lib.a(lib.so.V) shared, rtl:no
15306 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15307 # lib.a static archive
15308 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15309 for ld_flag in $LDFLAGS; do
15310 case $ld_flag in
15311 *-brtl*)
15312 aix_use_runtimelinking=yes
15313 break
15314 ;;
15315 esac
15316 done
15317 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15318 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15319 # so we don't have lib.a shared libs to link our executables.
15320 # We have to force runtime linking in this case.
15321 aix_use_runtimelinking=yes
15322 LDFLAGS="$LDFLAGS -Wl,-brtl"
15323 fi
15324 ;;
15325 esac
15326
15327 exp_sym_flag='-bexport'
15328 no_entry_flag='-bnoentry'
15329 fi
15330
15331 # When large executables or shared objects are built, AIX ld can
15332 # have problems creating the table of contents. If linking a library
15333 # or program results in "error TOC overflow" add -mminimal-toc to
15334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15336
15337 archive_cmds_CXX=''
15338 hardcode_direct_CXX=yes
15339 hardcode_direct_absolute_CXX=yes
15340 hardcode_libdir_separator_CXX=':'
15341 link_all_deplibs_CXX=yes
15342 file_list_spec_CXX='$wl-f,'
15343 case $with_aix_soname,$aix_use_runtimelinking in
15344 aix,*) ;; # no import file
15345 svr4,* | *,yes) # use import file
15346 # The Import File defines what to hardcode.
15347 hardcode_direct_CXX=no
15348 hardcode_direct_absolute_CXX=no
15349 ;;
15350 esac
15351
15352 if test yes = "$GXX"; then
15353 case $host_os in aix4.[012]|aix4.[012].*)
15354 # We only want to do this on AIX 4.2 and lower, the check
15355 # below for broken collect2 doesn't work under 4.3+
15356 collect2name=`$CC -print-prog-name=collect2`
15357 if test -f "$collect2name" &&
15358 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15359 then
15360 # We have reworked collect2
15361 :
15362 else
15363 # We have old collect2
15364 hardcode_direct_CXX=unsupported
15365 # It fails to find uninstalled libraries when the uninstalled
15366 # path is not listed in the libpath. Setting hardcode_minus_L
15367 # to unsupported forces relinking
15368 hardcode_minus_L_CXX=yes
15369 hardcode_libdir_flag_spec_CXX='-L$libdir'
15370 hardcode_libdir_separator_CXX=
15371 fi
15372 esac
15373 shared_flag='-shared'
15374 if test yes = "$aix_use_runtimelinking"; then
15375 shared_flag=$shared_flag' $wl-G'
15376 fi
15377 # Need to ensure runtime linking is disabled for the traditional
15378 # shared library, or the linker may eventually find shared libraries
15379 # /with/ Import File - we do not want to mix them.
15380 shared_flag_aix='-shared'
15381 shared_flag_svr4='-shared $wl-G'
15382 else
15383 # not using gcc
15384 if test ia64 = "$host_cpu"; then
15385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15386 # chokes on -Wl,-G. The following line is correct:
15387 shared_flag='-G'
15388 else
15389 if test yes = "$aix_use_runtimelinking"; then
15390 shared_flag='$wl-G'
15391 else
15392 shared_flag='$wl-bM:SRE'
15393 fi
15394 shared_flag_aix='$wl-bM:SRE'
15395 shared_flag_svr4='$wl-G'
15396 fi
15397 fi
15398
15399 export_dynamic_flag_spec_CXX='$wl-bexpall'
15400 # It seems that -bexpall does not export symbols beginning with
15401 # underscore (_), so it is better to generate a list of symbols to
15402 # export.
15403 always_export_symbols_CXX=yes
15404 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15405 # Warning - without using the other runtime loading flags (-brtl),
15406 # -berok will link without error, but may produce a broken library.
15407 # The "-G" linker flag allows undefined symbols.
15408 no_undefined_flag_CXX='-bernotok'
15409 # Determine the default libpath from the value encoded in an empty
15410 # executable.
15411 if test set = "${lt_cv_aix_libpath+set}"; then
15412 aix_libpath=$lt_cv_aix_libpath
15413 else
15414 if ${lt_cv_aix_libpath__CXX+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15419
15420 int
15421 main ()
15422 {
15423
15424 ;
15425 return 0;
15426 }
15427 _ACEOF
15428 if ac_fn_cxx_try_link "$LINENO"; then :
15429
15430 lt_aix_libpath_sed='
15431 /Import File Strings/,/^$/ {
15432 /^0/ {
15433 s/^0 *\([^ ]*\) *$/\1/
15434 p
15435 }
15436 }'
15437 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15438 # Check for a 64-bit object if we didn't find anything.
15439 if test -z "$lt_cv_aix_libpath__CXX"; then
15440 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15441 fi
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445 if test -z "$lt_cv_aix_libpath__CXX"; then
15446 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15447 fi
15448
15449 fi
15450
15451 aix_libpath=$lt_cv_aix_libpath__CXX
15452 fi
15453
15454 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15455
15456 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15457 else
15458 if test ia64 = "$host_cpu"; then
15459 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15460 allow_undefined_flag_CXX="-z nodefs"
15461 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"
15462 else
15463 # Determine the default libpath from the value encoded in an
15464 # empty executable.
15465 if test set = "${lt_cv_aix_libpath+set}"; then
15466 aix_libpath=$lt_cv_aix_libpath
15467 else
15468 if ${lt_cv_aix_libpath__CXX+:} false; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15473
15474 int
15475 main ()
15476 {
15477
15478 ;
15479 return 0;
15480 }
15481 _ACEOF
15482 if ac_fn_cxx_try_link "$LINENO"; then :
15483
15484 lt_aix_libpath_sed='
15485 /Import File Strings/,/^$/ {
15486 /^0/ {
15487 s/^0 *\([^ ]*\) *$/\1/
15488 p
15489 }
15490 }'
15491 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15492 # Check for a 64-bit object if we didn't find anything.
15493 if test -z "$lt_cv_aix_libpath__CXX"; then
15494 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15495 fi
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 if test -z "$lt_cv_aix_libpath__CXX"; then
15500 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15501 fi
15502
15503 fi
15504
15505 aix_libpath=$lt_cv_aix_libpath__CXX
15506 fi
15507
15508 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15509 # Warning - without using the other run time loading flags,
15510 # -berok will link without error, but may produce a broken library.
15511 no_undefined_flag_CXX=' $wl-bernotok'
15512 allow_undefined_flag_CXX=' $wl-berok'
15513 if test yes = "$with_gnu_ld"; then
15514 # We only use this code for GNU lds that support --whole-archive.
15515 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15516 else
15517 # Exported symbols can be pulled into shared objects from archives
15518 whole_archive_flag_spec_CXX='$convenience'
15519 fi
15520 archive_cmds_need_lc_CXX=yes
15521 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15522 # -brtl affects multiple linker settings, -berok does not and is overridden later
15523 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15524 if test svr4 != "$with_aix_soname"; then
15525 # This is similar to how AIX traditionally builds its shared
15526 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15527 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15528 fi
15529 if test aix != "$with_aix_soname"; then
15530 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15531 else
15532 # used by -dlpreopen to get the symbols
15533 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15534 fi
15535 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15536 fi
15537 fi
15538 ;;
15539
15540 beos*)
15541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15542 allow_undefined_flag_CXX=unsupported
15543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15544 # support --undefined. This deserves some investigation. FIXME
15545 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15546 else
15547 ld_shlibs_CXX=no
15548 fi
15549 ;;
15550
15551 chorus*)
15552 case $cc_basename in
15553 *)
15554 # FIXME: insert proper C++ library support
15555 ld_shlibs_CXX=no
15556 ;;
15557 esac
15558 ;;
15559
15560 cygwin* | mingw* | pw32* | cegcc*)
15561 case $GXX,$cc_basename in
15562 ,cl* | no,cl*)
15563 # Native MSVC
15564 # hardcode_libdir_flag_spec is actually meaningless, as there is
15565 # no search path for DLLs.
15566 hardcode_libdir_flag_spec_CXX=' '
15567 allow_undefined_flag_CXX=unsupported
15568 always_export_symbols_CXX=yes
15569 file_list_spec_CXX='@'
15570 # Tell ltmain to make .lib files, not .a files.
15571 libext=lib
15572 # Tell ltmain to make .dll files, not .so files.
15573 shrext_cmds=.dll
15574 # FIXME: Setting linknames here is a bad hack.
15575 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15576 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15577 cp "$export_symbols" "$output_objdir/$soname.def";
15578 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15579 else
15580 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15581 fi~
15582 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15583 linknames='
15584 # The linker will not automatically build a static lib if we build a DLL.
15585 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15586 enable_shared_with_static_runtimes_CXX=yes
15587 # Don't use ranlib
15588 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15589 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15590 lt_tool_outputfile="@TOOL_OUTPUT@"~
15591 case $lt_outputfile in
15592 *.exe|*.EXE) ;;
15593 *)
15594 lt_outputfile=$lt_outputfile.exe
15595 lt_tool_outputfile=$lt_tool_outputfile.exe
15596 ;;
15597 esac~
15598 func_to_tool_file "$lt_outputfile"~
15599 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15600 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15601 $RM "$lt_outputfile.manifest";
15602 fi'
15603 ;;
15604 *)
15605 # g++
15606 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15607 # as there is no search path for DLLs.
15608 hardcode_libdir_flag_spec_CXX='-L$libdir'
15609 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15610 allow_undefined_flag_CXX=unsupported
15611 always_export_symbols_CXX=no
15612 enable_shared_with_static_runtimes_CXX=yes
15613
15614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15615 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'
15616 # If the export-symbols file already is a .def file, use it as
15617 # is; otherwise, prepend EXPORTS...
15618 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15619 cp $export_symbols $output_objdir/$soname.def;
15620 else
15621 echo EXPORTS > $output_objdir/$soname.def;
15622 cat $export_symbols >> $output_objdir/$soname.def;
15623 fi~
15624 $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'
15625 else
15626 ld_shlibs_CXX=no
15627 fi
15628 ;;
15629 esac
15630 ;;
15631 darwin* | rhapsody*)
15632
15633
15634 archive_cmds_need_lc_CXX=no
15635 hardcode_direct_CXX=no
15636 hardcode_automatic_CXX=yes
15637 hardcode_shlibpath_var_CXX=unsupported
15638 if test yes = "$lt_cv_ld_force_load"; then
15639 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\"`'
15640
15641 else
15642 whole_archive_flag_spec_CXX=''
15643 fi
15644 link_all_deplibs_CXX=yes
15645 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15646 case $cc_basename in
15647 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15648 *) _lt_dar_can_shared=$GCC ;;
15649 esac
15650 if test yes = "$_lt_dar_can_shared"; then
15651 output_verbose_link_cmd=func_echo_all
15652 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"
15653 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15654 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"
15655 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"
15656 if test yes != "$lt_cv_apple_cc_single_mod"; then
15657 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"
15658 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"
15659 fi
15660
15661 else
15662 ld_shlibs_CXX=no
15663 fi
15664
15665 ;;
15666
15667 os2*)
15668 hardcode_libdir_flag_spec_CXX='-L$libdir'
15669 hardcode_minus_L_CXX=yes
15670 allow_undefined_flag_CXX=unsupported
15671 shrext_cmds=.dll
15672 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15673 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15674 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15675 $ECHO EXPORTS >> $output_objdir/$libname.def~
15676 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15678 emximp -o $lib $output_objdir/$libname.def'
15679 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15682 $ECHO EXPORTS >> $output_objdir/$libname.def~
15683 prefix_cmds="$SED"~
15684 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15685 prefix_cmds="$prefix_cmds -e 1d";
15686 fi~
15687 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15688 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15690 emximp -o $lib $output_objdir/$libname.def'
15691 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15692 enable_shared_with_static_runtimes_CXX=yes
15693 ;;
15694
15695 dgux*)
15696 case $cc_basename in
15697 ec++*)
15698 # FIXME: insert proper C++ library support
15699 ld_shlibs_CXX=no
15700 ;;
15701 ghcx*)
15702 # Green Hills C++ Compiler
15703 # FIXME: insert proper C++ library support
15704 ld_shlibs_CXX=no
15705 ;;
15706 *)
15707 # FIXME: insert proper C++ library support
15708 ld_shlibs_CXX=no
15709 ;;
15710 esac
15711 ;;
15712
15713 freebsd2.*)
15714 # C++ shared libraries reported to be fairly broken before
15715 # switch to ELF
15716 ld_shlibs_CXX=no
15717 ;;
15718
15719 freebsd-elf*)
15720 archive_cmds_need_lc_CXX=no
15721 ;;
15722
15723 freebsd* | dragonfly*)
15724 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15725 # conventions
15726 ld_shlibs_CXX=yes
15727 ;;
15728
15729 haiku*)
15730 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15731 link_all_deplibs_CXX=yes
15732 ;;
15733
15734 hpux9*)
15735 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15736 hardcode_libdir_separator_CXX=:
15737 export_dynamic_flag_spec_CXX='$wl-E'
15738 hardcode_direct_CXX=yes
15739 hardcode_minus_L_CXX=yes # Not in the search PATH,
15740 # but as the default
15741 # location of the library.
15742
15743 case $cc_basename in
15744 CC*)
15745 # FIXME: insert proper C++ library support
15746 ld_shlibs_CXX=no
15747 ;;
15748 aCC*)
15749 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15750 # Commands to make compiler produce verbose output that lists
15751 # what "hidden" libraries, object files and flags are used when
15752 # linking a shared library.
15753 #
15754 # There doesn't appear to be a way to prevent this compiler from
15755 # explicitly linking system object files so we need to strip them
15756 # from the output so that they don't get included in the library
15757 # dependencies.
15758 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"'
15759 ;;
15760 *)
15761 if test yes = "$GXX"; then
15762 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15763 else
15764 # FIXME: insert proper C++ library support
15765 ld_shlibs_CXX=no
15766 fi
15767 ;;
15768 esac
15769 ;;
15770
15771 hpux10*|hpux11*)
15772 if test no = "$with_gnu_ld"; then
15773 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15774 hardcode_libdir_separator_CXX=:
15775
15776 case $host_cpu in
15777 hppa*64*|ia64*)
15778 ;;
15779 *)
15780 export_dynamic_flag_spec_CXX='$wl-E'
15781 ;;
15782 esac
15783 fi
15784 case $host_cpu in
15785 hppa*64*|ia64*)
15786 hardcode_direct_CXX=no
15787 hardcode_shlibpath_var_CXX=no
15788 ;;
15789 *)
15790 hardcode_direct_CXX=yes
15791 hardcode_direct_absolute_CXX=yes
15792 hardcode_minus_L_CXX=yes # Not in the search PATH,
15793 # but as the default
15794 # location of the library.
15795 ;;
15796 esac
15797
15798 case $cc_basename in
15799 CC*)
15800 # FIXME: insert proper C++ library support
15801 ld_shlibs_CXX=no
15802 ;;
15803 aCC*)
15804 case $host_cpu in
15805 hppa*64*)
15806 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15807 ;;
15808 ia64*)
15809 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15810 ;;
15811 *)
15812 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15813 ;;
15814 esac
15815 # Commands to make compiler produce verbose output that lists
15816 # what "hidden" libraries, object files and flags are used when
15817 # linking a shared library.
15818 #
15819 # There doesn't appear to be a way to prevent this compiler from
15820 # explicitly linking system object files so we need to strip them
15821 # from the output so that they don't get included in the library
15822 # dependencies.
15823 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"'
15824 ;;
15825 *)
15826 if test yes = "$GXX"; then
15827 if test no = "$with_gnu_ld"; then
15828 case $host_cpu in
15829 hppa*64*)
15830 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15831 ;;
15832 ia64*)
15833 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15834 ;;
15835 *)
15836 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'
15837 ;;
15838 esac
15839 fi
15840 else
15841 # FIXME: insert proper C++ library support
15842 ld_shlibs_CXX=no
15843 fi
15844 ;;
15845 esac
15846 ;;
15847
15848 interix[3-9]*)
15849 hardcode_direct_CXX=no
15850 hardcode_shlibpath_var_CXX=no
15851 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15852 export_dynamic_flag_spec_CXX='$wl-E'
15853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15854 # Instead, shared libraries are loaded at an image base (0x10000000 by
15855 # default) and relocated if they conflict, which is a slow very memory
15856 # consuming and fragmenting process. To avoid this, we pick a random,
15857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15859 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'
15860 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'
15861 ;;
15862 irix5* | irix6*)
15863 case $cc_basename in
15864 CC*)
15865 # SGI C++
15866 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'
15867
15868 # Archives containing C++ object files must be created using
15869 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15870 # necessary to make sure instantiated templates are included
15871 # in the archive.
15872 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15873 ;;
15874 *)
15875 if test yes = "$GXX"; then
15876 if test no = "$with_gnu_ld"; then
15877 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'
15878 else
15879 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'
15880 fi
15881 fi
15882 link_all_deplibs_CXX=yes
15883 ;;
15884 esac
15885 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15886 hardcode_libdir_separator_CXX=:
15887 inherit_rpath_CXX=yes
15888 ;;
15889
15890 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15891 case $cc_basename in
15892 KCC*)
15893 # Kuck and Associates, Inc. (KAI) C++ Compiler
15894
15895 # KCC will only create a shared library if the output file
15896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15897 # to its proper name (with version) after linking.
15898 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'
15899 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'
15900 # Commands to make compiler produce verbose output that lists
15901 # what "hidden" libraries, object files and flags are used when
15902 # linking a shared library.
15903 #
15904 # There doesn't appear to be a way to prevent this compiler from
15905 # explicitly linking system object files so we need to strip them
15906 # from the output so that they don't get included in the library
15907 # dependencies.
15908 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"'
15909
15910 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15911 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15912
15913 # Archives containing C++ object files must be created using
15914 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15915 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15916 ;;
15917 icpc* | ecpc* )
15918 # Intel C++
15919 with_gnu_ld=yes
15920 # version 8.0 and above of icpc choke on multiply defined symbols
15921 # if we add $predep_objects and $postdep_objects, however 7.1 and
15922 # earlier do not add the objects themselves.
15923 case `$CC -V 2>&1` in
15924 *"Version 7."*)
15925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15926 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'
15927 ;;
15928 *) # Version 8.0 or newer
15929 tmp_idyn=
15930 case $host_cpu in
15931 ia64*) tmp_idyn=' -i_dynamic';;
15932 esac
15933 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15934 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'
15935 ;;
15936 esac
15937 archive_cmds_need_lc_CXX=no
15938 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15939 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15940 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15941 ;;
15942 pgCC* | pgcpp*)
15943 # Portland Group C++ compiler
15944 case `$CC -V` in
15945 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15946 prelink_cmds_CXX='tpldir=Template.dir~
15947 rm -rf $tpldir~
15948 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15949 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15950 old_archive_cmds_CXX='tpldir=Template.dir~
15951 rm -rf $tpldir~
15952 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15953 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15954 $RANLIB $oldlib'
15955 archive_cmds_CXX='tpldir=Template.dir~
15956 rm -rf $tpldir~
15957 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15958 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15959 archive_expsym_cmds_CXX='tpldir=Template.dir~
15960 rm -rf $tpldir~
15961 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15962 $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'
15963 ;;
15964 *) # Version 6 and above use weak symbols
15965 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15966 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'
15967 ;;
15968 esac
15969
15970 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15971 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15972 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'
15973 ;;
15974 cxx*)
15975 # Compaq C++
15976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15977 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'
15978
15979 runpath_var=LD_RUN_PATH
15980 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15981 hardcode_libdir_separator_CXX=:
15982
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15986 #
15987 # There doesn't appear to be a way to prevent this compiler from
15988 # explicitly linking system object files so we need to strip them
15989 # from the output so that they don't get included in the library
15990 # dependencies.
15991 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'
15992 ;;
15993 xl* | mpixl* | bgxl*)
15994 # IBM XL 8.0 on PPC, with GNU ld
15995 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15996 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15997 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15998 if test yes = "$supports_anon_versioning"; then
15999 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16001 echo "local: *; };" >> $output_objdir/$libname.ver~
16002 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16003 fi
16004 ;;
16005 *)
16006 case `$CC -V 2>&1 | sed 5q` in
16007 *Sun\ C*)
16008 # Sun C++ 5.9
16009 no_undefined_flag_CXX=' -zdefs'
16010 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16011 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'
16012 hardcode_libdir_flag_spec_CXX='-R$libdir'
16013 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'
16014 compiler_needs_object_CXX=yes
16015
16016 # Not sure whether something based on
16017 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16018 # would be better.
16019 output_verbose_link_cmd='func_echo_all'
16020
16021 # Archives containing C++ object files must be created using
16022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16023 # necessary to make sure instantiated templates are included
16024 # in the archive.
16025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16026 ;;
16027 esac
16028 ;;
16029 esac
16030 ;;
16031
16032 lynxos*)
16033 # FIXME: insert proper C++ library support
16034 ld_shlibs_CXX=no
16035 ;;
16036
16037 m88k*)
16038 # FIXME: insert proper C++ library support
16039 ld_shlibs_CXX=no
16040 ;;
16041
16042 mvs*)
16043 case $cc_basename in
16044 cxx*)
16045 # FIXME: insert proper C++ library support
16046 ld_shlibs_CXX=no
16047 ;;
16048 *)
16049 # FIXME: insert proper C++ library support
16050 ld_shlibs_CXX=no
16051 ;;
16052 esac
16053 ;;
16054
16055 netbsd*)
16056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16057 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16058 wlarc=
16059 hardcode_libdir_flag_spec_CXX='-R$libdir'
16060 hardcode_direct_CXX=yes
16061 hardcode_shlibpath_var_CXX=no
16062 fi
16063 # Workaround some broken pre-1.5 toolchains
16064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16065 ;;
16066
16067 *nto* | *qnx*)
16068 ld_shlibs_CXX=yes
16069 ;;
16070
16071 openbsd* | bitrig*)
16072 if test -f /usr/libexec/ld.so; then
16073 hardcode_direct_CXX=yes
16074 hardcode_shlibpath_var_CXX=no
16075 hardcode_direct_absolute_CXX=yes
16076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16077 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16079 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16080 export_dynamic_flag_spec_CXX='$wl-E'
16081 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16082 fi
16083 output_verbose_link_cmd=func_echo_all
16084 else
16085 ld_shlibs_CXX=no
16086 fi
16087 ;;
16088
16089 osf3* | osf4* | osf5*)
16090 case $cc_basename in
16091 KCC*)
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
16093
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
16097 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'
16098
16099 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16100 hardcode_libdir_separator_CXX=:
16101
16102 # Archives containing C++ object files must be created using
16103 # the KAI C++ compiler.
16104 case $host in
16105 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16106 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16107 esac
16108 ;;
16109 RCC*)
16110 # Rational C++ 2.4.1
16111 # FIXME: insert proper C++ library support
16112 ld_shlibs_CXX=no
16113 ;;
16114 cxx*)
16115 case $host in
16116 osf3*)
16117 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16118 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'
16119 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16120 ;;
16121 *)
16122 allow_undefined_flag_CXX=' -expect_unresolved \*'
16123 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'
16124 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16125 echo "-hidden">> $lib.exp~
16126 $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~
16127 $RM $lib.exp'
16128 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16129 ;;
16130 esac
16131
16132 hardcode_libdir_separator_CXX=:
16133
16134 # Commands to make compiler produce verbose output that lists
16135 # what "hidden" libraries, object files and flags are used when
16136 # linking a shared library.
16137 #
16138 # There doesn't appear to be a way to prevent this compiler from
16139 # explicitly linking system object files so we need to strip them
16140 # from the output so that they don't get included in the library
16141 # dependencies.
16142 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"'
16143 ;;
16144 *)
16145 if test yes,no = "$GXX,$with_gnu_ld"; then
16146 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16147 case $host in
16148 osf3*)
16149 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'
16150 ;;
16151 *)
16152 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'
16153 ;;
16154 esac
16155
16156 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16157 hardcode_libdir_separator_CXX=:
16158
16159 # Commands to make compiler produce verbose output that lists
16160 # what "hidden" libraries, object files and flags are used when
16161 # linking a shared library.
16162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16163
16164 else
16165 # FIXME: insert proper C++ library support
16166 ld_shlibs_CXX=no
16167 fi
16168 ;;
16169 esac
16170 ;;
16171
16172 psos*)
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 ;;
16176
16177 sunos4*)
16178 case $cc_basename in
16179 CC*)
16180 # Sun C++ 4.x
16181 # FIXME: insert proper C++ library support
16182 ld_shlibs_CXX=no
16183 ;;
16184 lcc*)
16185 # Lucid
16186 # FIXME: insert proper C++ library support
16187 ld_shlibs_CXX=no
16188 ;;
16189 *)
16190 # FIXME: insert proper C++ library support
16191 ld_shlibs_CXX=no
16192 ;;
16193 esac
16194 ;;
16195
16196 solaris*)
16197 case $cc_basename in
16198 CC* | sunCC*)
16199 # Sun C++ 4.2, 5.x and Centerline C++
16200 archive_cmds_need_lc_CXX=yes
16201 no_undefined_flag_CXX=' -zdefs'
16202 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16203 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16204 $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'
16205
16206 hardcode_libdir_flag_spec_CXX='-R$libdir'
16207 hardcode_shlibpath_var_CXX=no
16208 case $host_os in
16209 solaris2.[0-5] | solaris2.[0-5].*) ;;
16210 *)
16211 # The compiler driver will combine and reorder linker options,
16212 # but understands '-z linker_flag'.
16213 # Supported since Solaris 2.6 (maybe 2.5.1?)
16214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16215 ;;
16216 esac
16217 link_all_deplibs_CXX=yes
16218
16219 output_verbose_link_cmd='func_echo_all'
16220
16221 # Archives containing C++ object files must be created using
16222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16223 # necessary to make sure instantiated templates are included
16224 # in the archive.
16225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16226 ;;
16227 gcx*)
16228 # Green Hills C++ Compiler
16229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16230
16231 # The C++ compiler must be used to create the archive.
16232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16233 ;;
16234 *)
16235 # GNU C++ compiler with Solaris linker
16236 if test yes,no = "$GXX,$with_gnu_ld"; then
16237 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16238 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16239 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16241 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16242
16243 # Commands to make compiler produce verbose output that lists
16244 # what "hidden" libraries, object files and flags are used when
16245 # linking a shared library.
16246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16247 else
16248 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16249 # platform.
16250 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16252 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16253
16254 # Commands to make compiler produce verbose output that lists
16255 # what "hidden" libraries, object files and flags are used when
16256 # linking a shared library.
16257 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16258 fi
16259
16260 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16261 case $host_os in
16262 solaris2.[0-5] | solaris2.[0-5].*) ;;
16263 *)
16264 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16265 ;;
16266 esac
16267 fi
16268 ;;
16269 esac
16270 ;;
16271
16272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16273 no_undefined_flag_CXX='$wl-z,text'
16274 archive_cmds_need_lc_CXX=no
16275 hardcode_shlibpath_var_CXX=no
16276 runpath_var='LD_RUN_PATH'
16277
16278 case $cc_basename in
16279 CC*)
16280 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16281 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 ;;
16283 *)
16284 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16286 ;;
16287 esac
16288 ;;
16289
16290 sysv5* | sco3.2v5* | sco5v6*)
16291 # Note: We CANNOT use -z defs as we might desire, because we do not
16292 # link with -lc, and that would cause any symbols used from libc to
16293 # always be unresolved, which means just about no library would
16294 # ever link correctly. If we're not using GNU ld we use -z text
16295 # though, which does catch some bad symbols but isn't as heavy-handed
16296 # as -z defs.
16297 no_undefined_flag_CXX='$wl-z,text'
16298 allow_undefined_flag_CXX='$wl-z,nodefs'
16299 archive_cmds_need_lc_CXX=no
16300 hardcode_shlibpath_var_CXX=no
16301 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16302 hardcode_libdir_separator_CXX=':'
16303 link_all_deplibs_CXX=yes
16304 export_dynamic_flag_spec_CXX='$wl-Bexport'
16305 runpath_var='LD_RUN_PATH'
16306
16307 case $cc_basename in
16308 CC*)
16309 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16310 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16311 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16312 '"$old_archive_cmds_CXX"
16313 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16314 '"$reload_cmds_CXX"
16315 ;;
16316 *)
16317 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16319 ;;
16320 esac
16321 ;;
16322
16323 tandem*)
16324 case $cc_basename in
16325 NCC*)
16326 # NonStop-UX NCC 3.20
16327 # FIXME: insert proper C++ library support
16328 ld_shlibs_CXX=no
16329 ;;
16330 *)
16331 # FIXME: insert proper C++ library support
16332 ld_shlibs_CXX=no
16333 ;;
16334 esac
16335 ;;
16336
16337 vxworks*)
16338 # FIXME: insert proper C++ library support
16339 ld_shlibs_CXX=no
16340 ;;
16341
16342 *)
16343 # FIXME: insert proper C++ library support
16344 ld_shlibs_CXX=no
16345 ;;
16346 esac
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16349 $as_echo "$ld_shlibs_CXX" >&6; }
16350 test no = "$ld_shlibs_CXX" && can_build_shared=no
16351
16352 GCC_CXX=$GXX
16353 LD_CXX=$LD
16354
16355 ## CAVEAT EMPTOR:
16356 ## There is no encapsulation within the following macros, do not change
16357 ## the running order or otherwise move them around unless you know exactly
16358 ## what you are doing...
16359 # Dependencies to place before and after the object being linked:
16360 predep_objects_CXX=
16361 postdep_objects_CXX=
16362 predeps_CXX=
16363 postdeps_CXX=
16364 compiler_lib_search_path_CXX=
16365
16366 cat > conftest.$ac_ext <<_LT_EOF
16367 class Foo
16368 {
16369 public:
16370 Foo (void) { a = 0; }
16371 private:
16372 int a;
16373 };
16374 _LT_EOF
16375
16376
16377 _lt_libdeps_save_CFLAGS=$CFLAGS
16378 case "$CC $CFLAGS " in #(
16379 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16380 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16381 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16382 esac
16383
16384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16385 (eval $ac_compile) 2>&5
16386 ac_status=$?
16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388 test $ac_status = 0; }; then
16389 # Parse the compiler output and extract the necessary
16390 # objects, libraries and library flags.
16391
16392 # Sentinel used to keep track of whether or not we are before
16393 # the conftest object file.
16394 pre_test_object_deps_done=no
16395
16396 for p in `eval "$output_verbose_link_cmd"`; do
16397 case $prev$p in
16398
16399 -L* | -R* | -l*)
16400 # Some compilers place space between "-{L,R}" and the path.
16401 # Remove the space.
16402 if test x-L = "$p" ||
16403 test x-R = "$p"; then
16404 prev=$p
16405 continue
16406 fi
16407
16408 # Expand the sysroot to ease extracting the directories later.
16409 if test -z "$prev"; then
16410 case $p in
16411 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16412 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16413 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16414 esac
16415 fi
16416 case $p in
16417 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16418 esac
16419 if test no = "$pre_test_object_deps_done"; then
16420 case $prev in
16421 -L | -R)
16422 # Internal compiler library paths should come after those
16423 # provided the user. The postdeps already come after the
16424 # user supplied libs so there is no need to process them.
16425 if test -z "$compiler_lib_search_path_CXX"; then
16426 compiler_lib_search_path_CXX=$prev$p
16427 else
16428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16429 fi
16430 ;;
16431 # The "-l" case would never come before the object being
16432 # linked, so don't bother handling this case.
16433 esac
16434 else
16435 if test -z "$postdeps_CXX"; then
16436 postdeps_CXX=$prev$p
16437 else
16438 postdeps_CXX="${postdeps_CXX} $prev$p"
16439 fi
16440 fi
16441 prev=
16442 ;;
16443
16444 *.lto.$objext) ;; # Ignore GCC LTO objects
16445 *.$objext)
16446 # This assumes that the test object file only shows up
16447 # once in the compiler output.
16448 if test "$p" = "conftest.$objext"; then
16449 pre_test_object_deps_done=yes
16450 continue
16451 fi
16452
16453 if test no = "$pre_test_object_deps_done"; then
16454 if test -z "$predep_objects_CXX"; then
16455 predep_objects_CXX=$p
16456 else
16457 predep_objects_CXX="$predep_objects_CXX $p"
16458 fi
16459 else
16460 if test -z "$postdep_objects_CXX"; then
16461 postdep_objects_CXX=$p
16462 else
16463 postdep_objects_CXX="$postdep_objects_CXX $p"
16464 fi
16465 fi
16466 ;;
16467
16468 *) ;; # Ignore the rest.
16469
16470 esac
16471 done
16472
16473 # Clean up.
16474 rm -f a.out a.exe
16475 else
16476 echo "libtool.m4: error: problem compiling CXX test program"
16477 fi
16478
16479 $RM -f confest.$objext
16480 CFLAGS=$_lt_libdeps_save_CFLAGS
16481
16482 # PORTME: override above test on systems where it is broken
16483 case $host_os in
16484 interix[3-9]*)
16485 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16486 # hack all around it, let's just trust "g++" to DTRT.
16487 predep_objects_CXX=
16488 postdep_objects_CXX=
16489 postdeps_CXX=
16490 ;;
16491 esac
16492
16493
16494 case " $postdeps_CXX " in
16495 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16496 esac
16497 compiler_lib_search_dirs_CXX=
16498 if test -n "${compiler_lib_search_path_CXX}"; then
16499 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16500 fi
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532 lt_prog_compiler_wl_CXX=
16533 lt_prog_compiler_pic_CXX=
16534 lt_prog_compiler_static_CXX=
16535
16536
16537 # C++ specific cases for pic, static, wl, etc.
16538 if test yes = "$GXX"; then
16539 lt_prog_compiler_wl_CXX='-Wl,'
16540 lt_prog_compiler_static_CXX='-static'
16541
16542 case $host_os in
16543 aix*)
16544 # All AIX code is PIC.
16545 if test ia64 = "$host_cpu"; then
16546 # AIX 5 now supports IA64 processor
16547 lt_prog_compiler_static_CXX='-Bstatic'
16548 fi
16549 lt_prog_compiler_pic_CXX='-fPIC'
16550 ;;
16551
16552 amigaos*)
16553 case $host_cpu in
16554 powerpc)
16555 # see comment about AmigaOS4 .so support
16556 lt_prog_compiler_pic_CXX='-fPIC'
16557 ;;
16558 m68k)
16559 # FIXME: we need at least 68020 code to build shared libraries, but
16560 # adding the '-m68020' flag to GCC prevents building anything better,
16561 # like '-m68040'.
16562 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16563 ;;
16564 esac
16565 ;;
16566
16567 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16568 # PIC is the default for these OSes.
16569 ;;
16570 mingw* | cygwin* | os2* | pw32* | cegcc*)
16571 # This hack is so that the source file can tell whether it is being
16572 # built for inclusion in a dll (and should export symbols for example).
16573 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16574 # (--disable-auto-import) libraries
16575 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16576 case $host_os in
16577 os2*)
16578 lt_prog_compiler_static_CXX='$wl-static'
16579 ;;
16580 esac
16581 ;;
16582 darwin* | rhapsody*)
16583 # PIC is the default on this platform
16584 # Common symbols not allowed in MH_DYLIB files
16585 lt_prog_compiler_pic_CXX='-fno-common'
16586 ;;
16587 *djgpp*)
16588 # DJGPP does not support shared libraries at all
16589 lt_prog_compiler_pic_CXX=
16590 ;;
16591 haiku*)
16592 # PIC is the default for Haiku.
16593 # The "-static" flag exists, but is broken.
16594 lt_prog_compiler_static_CXX=
16595 ;;
16596 interix[3-9]*)
16597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16598 # Instead, we relocate shared libraries at runtime.
16599 ;;
16600 sysv4*MP*)
16601 if test -d /usr/nec; then
16602 lt_prog_compiler_pic_CXX=-Kconform_pic
16603 fi
16604 ;;
16605 hpux*)
16606 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16607 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16608 # sets the default TLS model and affects inlining.
16609 case $host_cpu in
16610 hppa*64*)
16611 ;;
16612 *)
16613 lt_prog_compiler_pic_CXX='-fPIC'
16614 ;;
16615 esac
16616 ;;
16617 *qnx* | *nto*)
16618 # QNX uses GNU C++, but need to define -shared option too, otherwise
16619 # it will coredump.
16620 lt_prog_compiler_pic_CXX='-fPIC -shared'
16621 ;;
16622 *)
16623 lt_prog_compiler_pic_CXX='-fPIC'
16624 ;;
16625 esac
16626 else
16627 case $host_os in
16628 aix[4-9]*)
16629 # All AIX code is PIC.
16630 if test ia64 = "$host_cpu"; then
16631 # AIX 5 now supports IA64 processor
16632 lt_prog_compiler_static_CXX='-Bstatic'
16633 else
16634 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16635 fi
16636 ;;
16637 chorus*)
16638 case $cc_basename in
16639 cxch68*)
16640 # Green Hills C++ Compiler
16641 # _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"
16642 ;;
16643 esac
16644 ;;
16645 mingw* | cygwin* | os2* | pw32* | cegcc*)
16646 # This hack is so that the source file can tell whether it is being
16647 # built for inclusion in a dll (and should export symbols for example).
16648 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16649 ;;
16650 dgux*)
16651 case $cc_basename in
16652 ec++*)
16653 lt_prog_compiler_pic_CXX='-KPIC'
16654 ;;
16655 ghcx*)
16656 # Green Hills C++ Compiler
16657 lt_prog_compiler_pic_CXX='-pic'
16658 ;;
16659 *)
16660 ;;
16661 esac
16662 ;;
16663 freebsd* | dragonfly*)
16664 # FreeBSD uses GNU C++
16665 ;;
16666 hpux9* | hpux10* | hpux11*)
16667 case $cc_basename in
16668 CC*)
16669 lt_prog_compiler_wl_CXX='-Wl,'
16670 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16671 if test ia64 != "$host_cpu"; then
16672 lt_prog_compiler_pic_CXX='+Z'
16673 fi
16674 ;;
16675 aCC*)
16676 lt_prog_compiler_wl_CXX='-Wl,'
16677 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16678 case $host_cpu in
16679 hppa*64*|ia64*)
16680 # +Z the default
16681 ;;
16682 *)
16683 lt_prog_compiler_pic_CXX='+Z'
16684 ;;
16685 esac
16686 ;;
16687 *)
16688 ;;
16689 esac
16690 ;;
16691 interix*)
16692 # This is c89, which is MS Visual C++ (no shared libs)
16693 # Anyone wants to do a port?
16694 ;;
16695 irix5* | irix6* | nonstopux*)
16696 case $cc_basename in
16697 CC*)
16698 lt_prog_compiler_wl_CXX='-Wl,'
16699 lt_prog_compiler_static_CXX='-non_shared'
16700 # CC pic flag -KPIC is the default.
16701 ;;
16702 *)
16703 ;;
16704 esac
16705 ;;
16706 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16707 case $cc_basename in
16708 KCC*)
16709 # KAI C++ Compiler
16710 lt_prog_compiler_wl_CXX='--backend -Wl,'
16711 lt_prog_compiler_pic_CXX='-fPIC'
16712 ;;
16713 ecpc* )
16714 # old Intel C++ for x86_64, which still supported -KPIC.
16715 lt_prog_compiler_wl_CXX='-Wl,'
16716 lt_prog_compiler_pic_CXX='-KPIC'
16717 lt_prog_compiler_static_CXX='-static'
16718 ;;
16719 icpc* )
16720 # Intel C++, used to be incompatible with GCC.
16721 # ICC 10 doesn't accept -KPIC any more.
16722 lt_prog_compiler_wl_CXX='-Wl,'
16723 lt_prog_compiler_pic_CXX='-fPIC'
16724 lt_prog_compiler_static_CXX='-static'
16725 ;;
16726 pgCC* | pgcpp*)
16727 # Portland Group C++ compiler
16728 lt_prog_compiler_wl_CXX='-Wl,'
16729 lt_prog_compiler_pic_CXX='-fpic'
16730 lt_prog_compiler_static_CXX='-Bstatic'
16731 ;;
16732 cxx*)
16733 # Compaq C++
16734 # Make sure the PIC flag is empty. It appears that all Alpha
16735 # Linux and Compaq Tru64 Unix objects are PIC.
16736 lt_prog_compiler_pic_CXX=
16737 lt_prog_compiler_static_CXX='-non_shared'
16738 ;;
16739 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16740 # IBM XL 8.0, 9.0 on PPC and BlueGene
16741 lt_prog_compiler_wl_CXX='-Wl,'
16742 lt_prog_compiler_pic_CXX='-qpic'
16743 lt_prog_compiler_static_CXX='-qstaticlink'
16744 ;;
16745 *)
16746 case `$CC -V 2>&1 | sed 5q` in
16747 *Sun\ C*)
16748 # Sun C++ 5.9
16749 lt_prog_compiler_pic_CXX='-KPIC'
16750 lt_prog_compiler_static_CXX='-Bstatic'
16751 lt_prog_compiler_wl_CXX='-Qoption ld '
16752 ;;
16753 esac
16754 ;;
16755 esac
16756 ;;
16757 lynxos*)
16758 ;;
16759 m88k*)
16760 ;;
16761 mvs*)
16762 case $cc_basename in
16763 cxx*)
16764 lt_prog_compiler_pic_CXX='-W c,exportall'
16765 ;;
16766 *)
16767 ;;
16768 esac
16769 ;;
16770 netbsd*)
16771 ;;
16772 *qnx* | *nto*)
16773 # QNX uses GNU C++, but need to define -shared option too, otherwise
16774 # it will coredump.
16775 lt_prog_compiler_pic_CXX='-fPIC -shared'
16776 ;;
16777 osf3* | osf4* | osf5*)
16778 case $cc_basename in
16779 KCC*)
16780 lt_prog_compiler_wl_CXX='--backend -Wl,'
16781 ;;
16782 RCC*)
16783 # Rational C++ 2.4.1
16784 lt_prog_compiler_pic_CXX='-pic'
16785 ;;
16786 cxx*)
16787 # Digital/Compaq C++
16788 lt_prog_compiler_wl_CXX='-Wl,'
16789 # Make sure the PIC flag is empty. It appears that all Alpha
16790 # Linux and Compaq Tru64 Unix objects are PIC.
16791 lt_prog_compiler_pic_CXX=
16792 lt_prog_compiler_static_CXX='-non_shared'
16793 ;;
16794 *)
16795 ;;
16796 esac
16797 ;;
16798 psos*)
16799 ;;
16800 solaris*)
16801 case $cc_basename in
16802 CC* | sunCC*)
16803 # Sun C++ 4.2, 5.x and Centerline C++
16804 lt_prog_compiler_pic_CXX='-KPIC'
16805 lt_prog_compiler_static_CXX='-Bstatic'
16806 lt_prog_compiler_wl_CXX='-Qoption ld '
16807 ;;
16808 gcx*)
16809 # Green Hills C++ Compiler
16810 lt_prog_compiler_pic_CXX='-PIC'
16811 ;;
16812 *)
16813 ;;
16814 esac
16815 ;;
16816 sunos4*)
16817 case $cc_basename in
16818 CC*)
16819 # Sun C++ 4.x
16820 lt_prog_compiler_pic_CXX='-pic'
16821 lt_prog_compiler_static_CXX='-Bstatic'
16822 ;;
16823 lcc*)
16824 # Lucid
16825 lt_prog_compiler_pic_CXX='-pic'
16826 ;;
16827 *)
16828 ;;
16829 esac
16830 ;;
16831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16832 case $cc_basename in
16833 CC*)
16834 lt_prog_compiler_wl_CXX='-Wl,'
16835 lt_prog_compiler_pic_CXX='-KPIC'
16836 lt_prog_compiler_static_CXX='-Bstatic'
16837 ;;
16838 esac
16839 ;;
16840 tandem*)
16841 case $cc_basename in
16842 NCC*)
16843 # NonStop-UX NCC 3.20
16844 lt_prog_compiler_pic_CXX='-KPIC'
16845 ;;
16846 *)
16847 ;;
16848 esac
16849 ;;
16850 vxworks*)
16851 ;;
16852 *)
16853 lt_prog_compiler_can_build_shared_CXX=no
16854 ;;
16855 esac
16856 fi
16857
16858 case $host_os in
16859 # For platforms that do not support PIC, -DPIC is meaningless:
16860 *djgpp*)
16861 lt_prog_compiler_pic_CXX=
16862 ;;
16863 *)
16864 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16865 ;;
16866 esac
16867
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16869 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16870 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16876 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16877 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16878
16879 #
16880 # Check to make sure the PIC flag actually works.
16881 #
16882 if test -n "$lt_prog_compiler_pic_CXX"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16884 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16885 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16886 $as_echo_n "(cached) " >&6
16887 else
16888 lt_cv_prog_compiler_pic_works_CXX=no
16889 ac_outfile=conftest.$ac_objext
16890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16891 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16892 # Insert the option either (1) after the last *FLAGS variable, or
16893 # (2) before a word containing "conftest.", or (3) at the end.
16894 # Note that $ac_compile itself does not contain backslashes and begins
16895 # with a dollar sign (not a hyphen), so the echo should work correctly.
16896 # The option is referenced via a variable to avoid confusing sed.
16897 lt_compile=`echo "$ac_compile" | $SED \
16898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900 -e 's:$: $lt_compiler_flag:'`
16901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16902 (eval "$lt_compile" 2>conftest.err)
16903 ac_status=$?
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 if (exit $ac_status) && test -s "$ac_outfile"; then
16907 # The compiler can only warn and ignore the option if not recognized
16908 # So say no if there are warnings other than the usual output.
16909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912 lt_cv_prog_compiler_pic_works_CXX=yes
16913 fi
16914 fi
16915 $RM -r conftest*
16916
16917 fi
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16919 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16920
16921 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16922 case $lt_prog_compiler_pic_CXX in
16923 "" | " "*) ;;
16924 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16925 esac
16926 else
16927 lt_prog_compiler_pic_CXX=
16928 lt_prog_compiler_can_build_shared_CXX=no
16929 fi
16930
16931 fi
16932
16933
16934
16935
16936
16937 #
16938 # Check to make sure the static flag actually works.
16939 #
16940 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16942 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16943 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16944 $as_echo_n "(cached) " >&6
16945 else
16946 lt_cv_prog_compiler_static_works_CXX=no
16947 save_LDFLAGS=$LDFLAGS
16948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16951 # The linker can only warn and ignore the option if not recognized
16952 # So say no if there are warnings
16953 if test -s conftest.err; then
16954 # Append any errors to the config.log.
16955 cat conftest.err 1>&5
16956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16958 if diff conftest.exp conftest.er2 >/dev/null; then
16959 lt_cv_prog_compiler_static_works_CXX=yes
16960 fi
16961 else
16962 lt_cv_prog_compiler_static_works_CXX=yes
16963 fi
16964 fi
16965 $RM -r conftest*
16966 LDFLAGS=$save_LDFLAGS
16967
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16970 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16971
16972 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16973 :
16974 else
16975 lt_prog_compiler_static_CXX=
16976 fi
16977
16978
16979
16980
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16983 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16984 $as_echo_n "(cached) " >&6
16985 else
16986 lt_cv_prog_compiler_c_o_CXX=no
16987 $RM -r conftest 2>/dev/null
16988 mkdir conftest
16989 cd conftest
16990 mkdir out
16991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16992
16993 lt_compiler_flag="-o out/conftest2.$ac_objext"
16994 # Insert the option either (1) after the last *FLAGS variable, or
16995 # (2) before a word containing "conftest.", or (3) at the end.
16996 # Note that $ac_compile itself does not contain backslashes and begins
16997 # with a dollar sign (not a hyphen), so the echo should work correctly.
16998 lt_compile=`echo "$ac_compile" | $SED \
16999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17001 -e 's:$: $lt_compiler_flag:'`
17002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17003 (eval "$lt_compile" 2>out/conftest.err)
17004 ac_status=$?
17005 cat out/conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17008 then
17009 # The compiler can only warn and ignore the option if not recognized
17010 # So say no if there are warnings
17011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17014 lt_cv_prog_compiler_c_o_CXX=yes
17015 fi
17016 fi
17017 chmod u+w . 2>&5
17018 $RM -r conftest*
17019 # SGI C++ compiler will create directory out/ii_files/ for
17020 # template instantiation
17021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17022 $RM out/* && rmdir out
17023 cd ..
17024 $RM -r conftest
17025 $RM -r conftest*
17026
17027 fi
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17029 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17030
17031
17032
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17035 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17036 $as_echo_n "(cached) " >&6
17037 else
17038 lt_cv_prog_compiler_c_o_CXX=no
17039 $RM -r conftest 2>/dev/null
17040 mkdir conftest
17041 cd conftest
17042 mkdir out
17043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17044
17045 lt_compiler_flag="-o out/conftest2.$ac_objext"
17046 # Insert the option either (1) after the last *FLAGS variable, or
17047 # (2) before a word containing "conftest.", or (3) at the end.
17048 # Note that $ac_compile itself does not contain backslashes and begins
17049 # with a dollar sign (not a hyphen), so the echo should work correctly.
17050 lt_compile=`echo "$ac_compile" | $SED \
17051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17053 -e 's:$: $lt_compiler_flag:'`
17054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17055 (eval "$lt_compile" 2>out/conftest.err)
17056 ac_status=$?
17057 cat out/conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17060 then
17061 # The compiler can only warn and ignore the option if not recognized
17062 # So say no if there are warnings
17063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17066 lt_cv_prog_compiler_c_o_CXX=yes
17067 fi
17068 fi
17069 chmod u+w . 2>&5
17070 $RM -r conftest*
17071 # SGI C++ compiler will create directory out/ii_files/ for
17072 # template instantiation
17073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17074 $RM out/* && rmdir out
17075 cd ..
17076 $RM -r conftest
17077 $RM -r conftest*
17078
17079 fi
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17081 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17082
17083
17084
17085
17086 hard_links=nottested
17087 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17088 # do not overwrite the value of need_locks provided by the user
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17090 $as_echo_n "checking if we can lock with hard links... " >&6; }
17091 hard_links=yes
17092 $RM -r conftest*
17093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17094 touch conftest.a
17095 ln conftest.a conftest.b 2>&5 || hard_links=no
17096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17098 $as_echo "$hard_links" >&6; }
17099 if test no = "$hard_links"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17101 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17102 need_locks=warn
17103 fi
17104 else
17105 need_locks=no
17106 fi
17107
17108
17109
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17111 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17112
17113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17114 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17115 case $host_os in
17116 aix[4-9]*)
17117 # If we're using GNU nm, then we don't want the "-C" option.
17118 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17119 # Without the "-l" option, or with the "-B" option, AIX nm treats
17120 # weak defined symbols like other global defined symbols, whereas
17121 # GNU nm marks them as "W".
17122 # While the 'weak' keyword is ignored in the Export File, we need
17123 # it in the Import File for the 'aix-soname' feature, so we have
17124 # to replace the "-B" option with "-P" for AIX nm.
17125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17126 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17127 else
17128 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17129 fi
17130 ;;
17131 pw32*)
17132 export_symbols_cmds_CXX=$ltdll_cmds
17133 ;;
17134 cygwin* | mingw* | cegcc*)
17135 case $cc_basename in
17136 cl*)
17137 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17138 ;;
17139 *)
17140 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'
17141 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17142 ;;
17143 esac
17144 ;;
17145 *)
17146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17147 ;;
17148 esac
17149
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17151 $as_echo "$ld_shlibs_CXX" >&6; }
17152 test no = "$ld_shlibs_CXX" && can_build_shared=no
17153
17154 with_gnu_ld_CXX=$with_gnu_ld
17155
17156
17157
17158
17159
17160
17161 #
17162 # Do we need to explicitly link libc?
17163 #
17164 case "x$archive_cmds_need_lc_CXX" in
17165 x|xyes)
17166 # Assume -lc should be added
17167 archive_cmds_need_lc_CXX=yes
17168
17169 if test yes,yes = "$GCC,$enable_shared"; then
17170 case $archive_cmds_CXX in
17171 *'~'*)
17172 # FIXME: we may have to deal with multi-command sequences.
17173 ;;
17174 '$CC '*)
17175 # Test whether the compiler implicitly links with -lc since on some
17176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17177 # to ld, don't add -lc before -lgcc.
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17180 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17181 $as_echo_n "(cached) " >&6
17182 else
17183 $RM -r conftest*
17184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17185
17186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17187 (eval $ac_compile) 2>&5
17188 ac_status=$?
17189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17190 test $ac_status = 0; } 2>conftest.err; then
17191 soname=conftest
17192 lib=conftest
17193 libobjs=conftest.$ac_objext
17194 deplibs=
17195 wl=$lt_prog_compiler_wl_CXX
17196 pic_flag=$lt_prog_compiler_pic_CXX
17197 compiler_flags=-v
17198 linker_flags=-v
17199 verstring=
17200 output_objdir=.
17201 libname=conftest
17202 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17203 allow_undefined_flag_CXX=
17204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17205 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17206 ac_status=$?
17207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208 test $ac_status = 0; }
17209 then
17210 lt_cv_archive_cmds_need_lc_CXX=no
17211 else
17212 lt_cv_archive_cmds_need_lc_CXX=yes
17213 fi
17214 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17215 else
17216 cat conftest.err 1>&5
17217 fi
17218 $RM -r conftest*
17219
17220 fi
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17222 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17223 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17224 ;;
17225 esac
17226 fi
17227 ;;
17228 esac
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17293
17294 library_names_spec=
17295 libname_spec='lib$name'
17296 soname_spec=
17297 shrext_cmds=.so
17298 postinstall_cmds=
17299 postuninstall_cmds=
17300 finish_cmds=
17301 finish_eval=
17302 shlibpath_var=
17303 shlibpath_overrides_runpath=unknown
17304 version_type=none
17305 dynamic_linker="$host_os ld.so"
17306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17307 need_lib_prefix=unknown
17308 hardcode_into_libs=no
17309
17310 # when you set need_version to no, make sure it does not cause -set_version
17311 # flags to be left without arguments
17312 need_version=unknown
17313
17314
17315
17316 case $host_os in
17317 aix3*)
17318 version_type=linux # correct to gnu/linux during the next big refactor
17319 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17320 shlibpath_var=LIBPATH
17321
17322 # AIX 3 has no versioning support, so we append a major version to the name.
17323 soname_spec='$libname$release$shared_ext$major'
17324 ;;
17325
17326 aix[4-9]*)
17327 version_type=linux # correct to gnu/linux during the next big refactor
17328 need_lib_prefix=no
17329 need_version=no
17330 hardcode_into_libs=yes
17331 if test ia64 = "$host_cpu"; then
17332 # AIX 5 supports IA64
17333 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 else
17336 # With GCC up to 2.95.x, collect2 would create an import file
17337 # for dependence libraries. The import file would start with
17338 # the line '#! .'. This would cause the generated library to
17339 # depend on '.', always an invalid library. This was fixed in
17340 # development snapshots of GCC prior to 3.0.
17341 case $host_os in
17342 aix4 | aix4.[01] | aix4.[01].*)
17343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17344 echo ' yes '
17345 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17346 :
17347 else
17348 can_build_shared=no
17349 fi
17350 ;;
17351 esac
17352 # Using Import Files as archive members, it is possible to support
17353 # filename-based versioning of shared library archives on AIX. While
17354 # this would work for both with and without runtime linking, it will
17355 # prevent static linking of such archives. So we do filename-based
17356 # shared library versioning with .so extension only, which is used
17357 # when both runtime linking and shared linking is enabled.
17358 # Unfortunately, runtime linking may impact performance, so we do
17359 # not want this to be the default eventually. Also, we use the
17360 # versioned .so libs for executables only if there is the -brtl
17361 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17362 # To allow for filename-based versioning support, we need to create
17363 # libNAME.so.V as an archive file, containing:
17364 # *) an Import File, referring to the versioned filename of the
17365 # archive as well as the shared archive member, telling the
17366 # bitwidth (32 or 64) of that shared object, and providing the
17367 # list of exported symbols of that shared object, eventually
17368 # decorated with the 'weak' keyword
17369 # *) the shared object with the F_LOADONLY flag set, to really avoid
17370 # it being seen by the linker.
17371 # At run time we better use the real file rather than another symlink,
17372 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17373
17374 case $with_aix_soname,$aix_use_runtimelinking in
17375 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17376 # soname into executable. Probably we can add versioning support to
17377 # collect2, so additional links can be useful in future.
17378 aix,yes) # traditional libtool
17379 dynamic_linker='AIX unversionable lib.so'
17380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17381 # instead of lib<name>.a to let people know that these are not
17382 # typical AIX shared libraries.
17383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17384 ;;
17385 aix,no) # traditional AIX only
17386 dynamic_linker='AIX lib.a(lib.so.V)'
17387 # We preserve .a as extension for shared libraries through AIX4.2
17388 # and later when we are not doing run time linking.
17389 library_names_spec='$libname$release.a $libname.a'
17390 soname_spec='$libname$release$shared_ext$major'
17391 ;;
17392 svr4,*) # full svr4 only
17393 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17394 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17395 # We do not specify a path in Import Files, so LIBPATH fires.
17396 shlibpath_overrides_runpath=yes
17397 ;;
17398 *,yes) # both, prefer svr4
17399 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17400 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17401 # unpreferred sharedlib libNAME.a needs extra handling
17402 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17403 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17404 # We do not specify a path in Import Files, so LIBPATH fires.
17405 shlibpath_overrides_runpath=yes
17406 ;;
17407 *,no) # both, prefer aix
17408 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17409 library_names_spec='$libname$release.a $libname.a'
17410 soname_spec='$libname$release$shared_ext$major'
17411 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17412 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17413 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17414 ;;
17415 esac
17416 shlibpath_var=LIBPATH
17417 fi
17418 ;;
17419
17420 amigaos*)
17421 case $host_cpu in
17422 powerpc)
17423 # Since July 2007 AmigaOS4 officially supports .so libraries.
17424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17426 ;;
17427 m68k)
17428 library_names_spec='$libname.ixlibrary $libname.a'
17429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17430 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17431 ;;
17432 esac
17433 ;;
17434
17435 beos*)
17436 library_names_spec='$libname$shared_ext'
17437 dynamic_linker="$host_os ld.so"
17438 shlibpath_var=LIBRARY_PATH
17439 ;;
17440
17441 bsdi[45]*)
17442 version_type=linux # correct to gnu/linux during the next big refactor
17443 need_version=no
17444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17445 soname_spec='$libname$release$shared_ext$major'
17446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17450 # the default ld.so.conf also contains /usr/contrib/lib and
17451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17452 # libtool to hard-code these into programs
17453 ;;
17454
17455 cygwin* | mingw* | pw32* | cegcc*)
17456 version_type=windows
17457 shrext_cmds=.dll
17458 need_version=no
17459 need_lib_prefix=no
17460
17461 case $GCC,$cc_basename in
17462 yes,*)
17463 # gcc
17464 library_names_spec='$libname.dll.a'
17465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17466 postinstall_cmds='base_file=`basename \$file`~
17467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17468 dldir=$destdir/`dirname \$dlpath`~
17469 test -d \$dldir || mkdir -p \$dldir~
17470 $install_prog $dir/$dlname \$dldir/$dlname~
17471 chmod a+x \$dldir/$dlname~
17472 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17473 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17474 fi'
17475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17476 dlpath=$dir/\$dldll~
17477 $RM \$dlpath'
17478 shlibpath_overrides_runpath=yes
17479
17480 case $host_os in
17481 cygwin*)
17482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17483 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17484
17485 ;;
17486 mingw* | cegcc*)
17487 # MinGW DLLs use traditional 'lib' prefix
17488 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17489 ;;
17490 pw32*)
17491 # pw32 DLLs use 'pw' prefix rather than 'lib'
17492 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17493 ;;
17494 esac
17495 dynamic_linker='Win32 ld.exe'
17496 ;;
17497
17498 *,cl*)
17499 # Native MSVC
17500 libname_spec='$name'
17501 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17502 library_names_spec='$libname.dll.lib'
17503
17504 case $build_os in
17505 mingw*)
17506 sys_lib_search_path_spec=
17507 lt_save_ifs=$IFS
17508 IFS=';'
17509 for lt_path in $LIB
17510 do
17511 IFS=$lt_save_ifs
17512 # Let DOS variable expansion print the short 8.3 style file name.
17513 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17514 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17515 done
17516 IFS=$lt_save_ifs
17517 # Convert to MSYS style.
17518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17519 ;;
17520 cygwin*)
17521 # Convert to unix form, then to dos form, then back to unix form
17522 # but this time dos style (no spaces!) so that the unix form looks
17523 # like /cygdrive/c/PROGRA~1:/cygdr...
17524 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17525 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17526 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17527 ;;
17528 *)
17529 sys_lib_search_path_spec=$LIB
17530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17531 # It is most probably a Windows format PATH.
17532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17533 else
17534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17535 fi
17536 # FIXME: find the short name or the path components, as spaces are
17537 # common. (e.g. "Program Files" -> "PROGRA~1")
17538 ;;
17539 esac
17540
17541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17542 postinstall_cmds='base_file=`basename \$file`~
17543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17544 dldir=$destdir/`dirname \$dlpath`~
17545 test -d \$dldir || mkdir -p \$dldir~
17546 $install_prog $dir/$dlname \$dldir/$dlname'
17547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17548 dlpath=$dir/\$dldll~
17549 $RM \$dlpath'
17550 shlibpath_overrides_runpath=yes
17551 dynamic_linker='Win32 link.exe'
17552 ;;
17553
17554 *)
17555 # Assume MSVC wrapper
17556 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17557 dynamic_linker='Win32 ld.exe'
17558 ;;
17559 esac
17560 # FIXME: first we should search . and the directory the executable is in
17561 shlibpath_var=PATH
17562 ;;
17563
17564 darwin* | rhapsody*)
17565 dynamic_linker="$host_os dyld"
17566 version_type=darwin
17567 need_lib_prefix=no
17568 need_version=no
17569 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17570 soname_spec='$libname$release$major$shared_ext'
17571 shlibpath_overrides_runpath=yes
17572 shlibpath_var=DYLD_LIBRARY_PATH
17573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17574
17575 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17576 ;;
17577
17578 dgux*)
17579 version_type=linux # correct to gnu/linux during the next big refactor
17580 need_lib_prefix=no
17581 need_version=no
17582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17583 soname_spec='$libname$release$shared_ext$major'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 ;;
17586
17587 freebsd* | dragonfly*)
17588 # DragonFly does not have aout. When/if they implement a new
17589 # versioning mechanism, adjust this.
17590 if test -x /usr/bin/objformat; then
17591 objformat=`/usr/bin/objformat`
17592 else
17593 case $host_os in
17594 freebsd[23].*) objformat=aout ;;
17595 *) objformat=elf ;;
17596 esac
17597 fi
17598 version_type=freebsd-$objformat
17599 case $version_type in
17600 freebsd-elf*)
17601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17602 soname_spec='$libname$release$shared_ext$major'
17603 need_version=no
17604 need_lib_prefix=no
17605 ;;
17606 freebsd-*)
17607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17608 need_version=yes
17609 ;;
17610 esac
17611 shlibpath_var=LD_LIBRARY_PATH
17612 case $host_os in
17613 freebsd2.*)
17614 shlibpath_overrides_runpath=yes
17615 ;;
17616 freebsd3.[01]* | freebsdelf3.[01]*)
17617 shlibpath_overrides_runpath=yes
17618 hardcode_into_libs=yes
17619 ;;
17620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17622 shlibpath_overrides_runpath=no
17623 hardcode_into_libs=yes
17624 ;;
17625 *) # from 4.6 on, and DragonFly
17626 shlibpath_overrides_runpath=yes
17627 hardcode_into_libs=yes
17628 ;;
17629 esac
17630 ;;
17631
17632 haiku*)
17633 version_type=linux # correct to gnu/linux during the next big refactor
17634 need_lib_prefix=no
17635 need_version=no
17636 dynamic_linker="$host_os runtime_loader"
17637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17638 soname_spec='$libname$release$shared_ext$major'
17639 shlibpath_var=LIBRARY_PATH
17640 shlibpath_overrides_runpath=no
17641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17642 hardcode_into_libs=yes
17643 ;;
17644
17645 hpux9* | hpux10* | hpux11*)
17646 # Give a soname corresponding to the major version so that dld.sl refuses to
17647 # link against other versions.
17648 version_type=sunos
17649 need_lib_prefix=no
17650 need_version=no
17651 case $host_cpu in
17652 ia64*)
17653 shrext_cmds='.so'
17654 hardcode_into_libs=yes
17655 dynamic_linker="$host_os dld.so"
17656 shlibpath_var=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17659 soname_spec='$libname$release$shared_ext$major'
17660 if test 32 = "$HPUX_IA64_MODE"; then
17661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17662 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17663 else
17664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17665 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17666 fi
17667 ;;
17668 hppa*64*)
17669 shrext_cmds='.sl'
17670 hardcode_into_libs=yes
17671 dynamic_linker="$host_os dld.sl"
17672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17675 soname_spec='$libname$release$shared_ext$major'
17676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17678 ;;
17679 *)
17680 shrext_cmds='.sl'
17681 dynamic_linker="$host_os dld.sl"
17682 shlibpath_var=SHLIB_PATH
17683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17685 soname_spec='$libname$release$shared_ext$major'
17686 ;;
17687 esac
17688 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17689 postinstall_cmds='chmod 555 $lib'
17690 # or fails outright, so override atomically:
17691 install_override_mode=555
17692 ;;
17693
17694 interix[3-9]*)
17695 version_type=linux # correct to gnu/linux during the next big refactor
17696 need_lib_prefix=no
17697 need_version=no
17698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17699 soname_spec='$libname$release$shared_ext$major'
17700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=no
17703 hardcode_into_libs=yes
17704 ;;
17705
17706 irix5* | irix6* | nonstopux*)
17707 case $host_os in
17708 nonstopux*) version_type=nonstopux ;;
17709 *)
17710 if test yes = "$lt_cv_prog_gnu_ld"; then
17711 version_type=linux # correct to gnu/linux during the next big refactor
17712 else
17713 version_type=irix
17714 fi ;;
17715 esac
17716 need_lib_prefix=no
17717 need_version=no
17718 soname_spec='$libname$release$shared_ext$major'
17719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17720 case $host_os in
17721 irix5* | nonstopux*)
17722 libsuff= shlibsuff=
17723 ;;
17724 *)
17725 case $LD in # libtool.m4 will add one of these switches to LD
17726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17727 libsuff= shlibsuff= libmagic=32-bit;;
17728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17729 libsuff=32 shlibsuff=N32 libmagic=N32;;
17730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17732 *) libsuff= shlibsuff= libmagic=never-match;;
17733 esac
17734 ;;
17735 esac
17736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17737 shlibpath_overrides_runpath=no
17738 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17739 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17740 hardcode_into_libs=yes
17741 ;;
17742
17743 # No shared lib support for Linux oldld, aout, or coff.
17744 linux*oldld* | linux*aout* | linux*coff*)
17745 dynamic_linker=no
17746 ;;
17747
17748 linux*android*)
17749 version_type=none # Android doesn't support versioned libraries.
17750 need_lib_prefix=no
17751 need_version=no
17752 library_names_spec='$libname$release$shared_ext'
17753 soname_spec='$libname$release$shared_ext'
17754 finish_cmds=
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=yes
17757
17758 # This implies no fast_install, which is unacceptable.
17759 # Some rework will be needed to allow for fast_install
17760 # before this can be enabled.
17761 hardcode_into_libs=yes
17762
17763 dynamic_linker='Android linker'
17764 # Don't embed -rpath directories since the linker doesn't support them.
17765 hardcode_libdir_flag_spec_CXX='-L$libdir'
17766 ;;
17767
17768 # This must be glibc/ELF.
17769 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17770 version_type=linux # correct to gnu/linux during the next big refactor
17771 need_lib_prefix=no
17772 need_version=no
17773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17774 soname_spec='$libname$release$shared_ext$major'
17775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath=no
17778
17779 # Some binutils ld are patched to set DT_RUNPATH
17780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17781 $as_echo_n "(cached) " >&6
17782 else
17783 lt_cv_shlibpath_overrides_runpath=no
17784 save_LDFLAGS=$LDFLAGS
17785 save_libdir=$libdir
17786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789 /* end confdefs.h. */
17790
17791 int
17792 main ()
17793 {
17794
17795 ;
17796 return 0;
17797 }
17798 _ACEOF
17799 if ac_fn_cxx_try_link "$LINENO"; then :
17800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17801 lt_cv_shlibpath_overrides_runpath=yes
17802 fi
17803 fi
17804 rm -f core conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext conftest.$ac_ext
17806 LDFLAGS=$save_LDFLAGS
17807 libdir=$save_libdir
17808
17809 fi
17810
17811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17812
17813 # This implies no fast_install, which is unacceptable.
17814 # Some rework will be needed to allow for fast_install
17815 # before this can be enabled.
17816 hardcode_into_libs=yes
17817
17818 # Ideally, we could use ldconfig to report *all* directores which are
17819 # searched for libraries, however this is still not possible. Aside from not
17820 # being certain /sbin/ldconfig is available, command
17821 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17822 # even though it is searched at run-time. Try to do the best guess by
17823 # appending ld.so.conf contents (and includes) to the search path.
17824 if test -f /etc/ld.so.conf; then
17825 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' ' '`
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17827 fi
17828
17829 # We used to test for /lib/ld.so.1 and disable shared libraries on
17830 # powerpc, because MkLinux only supported shared libraries with the
17831 # GNU dynamic linker. Since this was broken with cross compilers,
17832 # most powerpc-linux boxes support dynamic linking these days and
17833 # people can always --disable-shared, the test was removed, and we
17834 # assume the GNU/Linux dynamic linker is in use.
17835 dynamic_linker='GNU/Linux ld.so'
17836 ;;
17837
17838 netbsd*)
17839 version_type=sunos
17840 need_lib_prefix=no
17841 need_version=no
17842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17843 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17845 dynamic_linker='NetBSD (a.out) ld.so'
17846 else
17847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17848 soname_spec='$libname$release$shared_ext$major'
17849 dynamic_linker='NetBSD ld.elf_so'
17850 fi
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=yes
17853 hardcode_into_libs=yes
17854 ;;
17855
17856 newsos6)
17857 version_type=linux # correct to gnu/linux during the next big refactor
17858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 shlibpath_overrides_runpath=yes
17861 ;;
17862
17863 *nto* | *qnx*)
17864 version_type=qnx
17865 need_lib_prefix=no
17866 need_version=no
17867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17868 soname_spec='$libname$release$shared_ext$major'
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=no
17871 hardcode_into_libs=yes
17872 dynamic_linker='ldqnx.so'
17873 ;;
17874
17875 openbsd* | bitrig*)
17876 version_type=sunos
17877 sys_lib_dlsearch_path_spec=/usr/lib
17878 need_lib_prefix=no
17879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17880 need_version=no
17881 else
17882 need_version=yes
17883 fi
17884 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=yes
17888 ;;
17889
17890 os2*)
17891 libname_spec='$name'
17892 version_type=windows
17893 shrext_cmds=.dll
17894 need_version=no
17895 need_lib_prefix=no
17896 # OS/2 can only load a DLL with a base name of 8 characters or less.
17897 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17898 v=$($ECHO $release$versuffix | tr -d .-);
17899 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17900 $ECHO $n$v`$shared_ext'
17901 library_names_spec='${libname}_dll.$libext'
17902 dynamic_linker='OS/2 ld.exe'
17903 shlibpath_var=BEGINLIBPATH
17904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17906 postinstall_cmds='base_file=`basename \$file`~
17907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17908 dldir=$destdir/`dirname \$dlpath`~
17909 test -d \$dldir || mkdir -p \$dldir~
17910 $install_prog $dir/$dlname \$dldir/$dlname~
17911 chmod a+x \$dldir/$dlname~
17912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17913 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17914 fi'
17915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17916 dlpath=$dir/\$dldll~
17917 $RM \$dlpath'
17918 ;;
17919
17920 osf3* | osf4* | osf5*)
17921 version_type=osf
17922 need_lib_prefix=no
17923 need_version=no
17924 soname_spec='$libname$release$shared_ext$major'
17925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17926 shlibpath_var=LD_LIBRARY_PATH
17927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17929 ;;
17930
17931 rdos*)
17932 dynamic_linker=no
17933 ;;
17934
17935 solaris*)
17936 version_type=linux # correct to gnu/linux during the next big refactor
17937 need_lib_prefix=no
17938 need_version=no
17939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17940 soname_spec='$libname$release$shared_ext$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath=yes
17943 hardcode_into_libs=yes
17944 # ldd complains unless libraries are executable
17945 postinstall_cmds='chmod +x $lib'
17946 ;;
17947
17948 sunos4*)
17949 version_type=sunos
17950 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17952 shlibpath_var=LD_LIBRARY_PATH
17953 shlibpath_overrides_runpath=yes
17954 if test yes = "$with_gnu_ld"; then
17955 need_lib_prefix=no
17956 fi
17957 need_version=yes
17958 ;;
17959
17960 sysv4 | sysv4.3*)
17961 version_type=linux # correct to gnu/linux during the next big refactor
17962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17963 soname_spec='$libname$release$shared_ext$major'
17964 shlibpath_var=LD_LIBRARY_PATH
17965 case $host_vendor in
17966 sni)
17967 shlibpath_overrides_runpath=no
17968 need_lib_prefix=no
17969 runpath_var=LD_RUN_PATH
17970 ;;
17971 siemens)
17972 need_lib_prefix=no
17973 ;;
17974 motorola)
17975 need_lib_prefix=no
17976 need_version=no
17977 shlibpath_overrides_runpath=no
17978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17979 ;;
17980 esac
17981 ;;
17982
17983 sysv4*MP*)
17984 if test -d /usr/nec; then
17985 version_type=linux # correct to gnu/linux during the next big refactor
17986 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17987 soname_spec='$libname$shared_ext.$major'
17988 shlibpath_var=LD_LIBRARY_PATH
17989 fi
17990 ;;
17991
17992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17993 version_type=sco
17994 need_lib_prefix=no
17995 need_version=no
17996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17997 soname_spec='$libname$release$shared_ext$major'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath=yes
18000 hardcode_into_libs=yes
18001 if test yes = "$with_gnu_ld"; then
18002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18003 else
18004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18005 case $host_os in
18006 sco3.2v5*)
18007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18008 ;;
18009 esac
18010 fi
18011 sys_lib_dlsearch_path_spec='/usr/lib'
18012 ;;
18013
18014 tpf*)
18015 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18016 version_type=linux # correct to gnu/linux during the next big refactor
18017 need_lib_prefix=no
18018 need_version=no
18019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=no
18022 hardcode_into_libs=yes
18023 ;;
18024
18025 uts4*)
18026 version_type=linux # correct to gnu/linux during the next big refactor
18027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18028 soname_spec='$libname$release$shared_ext$major'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 ;;
18031
18032 *)
18033 dynamic_linker=no
18034 ;;
18035 esac
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18037 $as_echo "$dynamic_linker" >&6; }
18038 test no = "$dynamic_linker" && can_build_shared=no
18039
18040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18041 if test yes = "$GCC"; then
18042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18043 fi
18044
18045 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18046 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18047 fi
18048
18049 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18050 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18051 fi
18052
18053 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18054 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18055
18056 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18057 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18058
18059 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18060 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18102 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18103 hardcode_action_CXX=
18104 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18105 test -n "$runpath_var_CXX" ||
18106 test yes = "$hardcode_automatic_CXX"; then
18107
18108 # We can hardcode non-existent directories.
18109 if test no != "$hardcode_direct_CXX" &&
18110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18111 # have to relink, otherwise we might link with an installed library
18112 # when we should be linking with a yet-to-be-installed one
18113 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18114 test no != "$hardcode_minus_L_CXX"; then
18115 # Linking always hardcodes the temporary library directory.
18116 hardcode_action_CXX=relink
18117 else
18118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18119 hardcode_action_CXX=immediate
18120 fi
18121 else
18122 # We cannot hardcode anything, or else we can only hardcode existing
18123 # directories.
18124 hardcode_action_CXX=unsupported
18125 fi
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18127 $as_echo "$hardcode_action_CXX" >&6; }
18128
18129 if test relink = "$hardcode_action_CXX" ||
18130 test yes = "$inherit_rpath_CXX"; then
18131 # Fast installation is not supported
18132 enable_fast_install=no
18133 elif test yes = "$shlibpath_overrides_runpath" ||
18134 test no = "$enable_shared"; then
18135 # Fast installation is not necessary
18136 enable_fast_install=needless
18137 fi
18138
18139
18140
18141
18142
18143
18144
18145 fi # test -n "$compiler"
18146
18147 CC=$lt_save_CC
18148 CFLAGS=$lt_save_CFLAGS
18149 LDCXX=$LD
18150 LD=$lt_save_LD
18151 GCC=$lt_save_GCC
18152 with_gnu_ld=$lt_save_with_gnu_ld
18153 lt_cv_path_LDCXX=$lt_cv_path_LD
18154 lt_cv_path_LD=$lt_save_path_LD
18155 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18156 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18157 fi # test yes != "$_lt_caught_CXX_error"
18158
18159 ac_ext=c
18160 ac_cpp='$CPP $CPPFLAGS'
18161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179 ac_config_commands="$ac_config_commands libtool"
18180
18181
18182
18183
18184 # Only expand once:
18185
18186
18187
18188 ac_ext=cpp
18189 ac_cpp='$CXXCPP $CPPFLAGS'
18190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18193
18194
18195 ax_cxx_compile_cxx11_required=true
18196 ac_ext=cpp
18197 ac_cpp='$CXXCPP $CPPFLAGS'
18198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18201 ac_success=no
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18203 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18204 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209
18210 template <typename T>
18211 struct check
18212 {
18213 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18214 };
18215
18216 struct Base {
18217 virtual void f() {}
18218 };
18219 struct Child : public Base {
18220 virtual void f() override {}
18221 };
18222
18223 typedef check<check<bool>> right_angle_brackets;
18224
18225 int a;
18226 decltype(a) b;
18227
18228 typedef check<int> check_type;
18229 check_type c;
18230 check_type&& cr = static_cast<check_type&&>(c);
18231
18232 auto d = a;
18233 auto l = [](){};
18234
18235 _ACEOF
18236 if ac_fn_cxx_try_compile "$LINENO"; then :
18237 ax_cv_cxx_compile_cxx11=yes
18238 else
18239 ax_cv_cxx_compile_cxx11=no
18240 fi
18241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18242 fi
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18244 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18245 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18246 ac_success=yes
18247 fi
18248
18249 if test x$ac_success = xno; then
18250 for switch in -std=gnu++11 -std=gnu++0x; do
18251 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18253 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18254 if eval \${$cachevar+:} false; then :
18255 $as_echo_n "(cached) " >&6
18256 else
18257 ac_save_CXXFLAGS="$CXXFLAGS"
18258 CXXFLAGS="$CXXFLAGS $switch"
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261
18262 template <typename T>
18263 struct check
18264 {
18265 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18266 };
18267
18268 struct Base {
18269 virtual void f() {}
18270 };
18271 struct Child : public Base {
18272 virtual void f() override {}
18273 };
18274
18275 typedef check<check<bool>> right_angle_brackets;
18276
18277 int a;
18278 decltype(a) b;
18279
18280 typedef check<int> check_type;
18281 check_type c;
18282 check_type&& cr = static_cast<check_type&&>(c);
18283
18284 auto d = a;
18285 auto l = [](){};
18286
18287 _ACEOF
18288 if ac_fn_cxx_try_compile "$LINENO"; then :
18289 eval $cachevar=yes
18290 else
18291 eval $cachevar=no
18292 fi
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 CXXFLAGS="$ac_save_CXXFLAGS"
18295 fi
18296 eval ac_res=\$$cachevar
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18298 $as_echo "$ac_res" >&6; }
18299 if eval test x\$$cachevar = xyes; then
18300 CXXFLAGS="$CXXFLAGS $switch"
18301 ac_success=yes
18302 break
18303 fi
18304 done
18305 fi
18306
18307
18308 ac_ext=cpp
18309 ac_cpp='$CXXCPP $CPPFLAGS'
18310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313
18314 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18315 if test x$ac_success = xno; then
18316 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18317 fi
18318 else
18319 if test x$ac_success = xno; then
18320 HAVE_CXX11=0
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18322 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18323 else
18324 HAVE_CXX11=1
18325
18326 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18327
18328 fi
18329
18330
18331 fi
18332
18333 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18334
18335
18336
18337
18338
18339
18340
18341
18342 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18343 if test -n "$ac_tool_prefix"; then
18344 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18345 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18347 $as_echo_n "checking for $ac_word... " >&6; }
18348 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18349 $as_echo_n "(cached) " >&6
18350 else
18351 case $PKG_CONFIG in
18352 [\\/]* | ?:[\\/]*)
18353 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18354 ;;
18355 *)
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357 for as_dir in $PATH
18358 do
18359 IFS=$as_save_IFS
18360 test -z "$as_dir" && as_dir=.
18361 for ac_exec_ext in '' $ac_executable_extensions; do
18362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18365 break 2
18366 fi
18367 done
18368 done
18369 IFS=$as_save_IFS
18370
18371 ;;
18372 esac
18373 fi
18374 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18375 if test -n "$PKG_CONFIG"; then
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18377 $as_echo "$PKG_CONFIG" >&6; }
18378 else
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 fi
18382
18383
18384 fi
18385 if test -z "$ac_cv_path_PKG_CONFIG"; then
18386 ac_pt_PKG_CONFIG=$PKG_CONFIG
18387 # Extract the first word of "pkg-config", so it can be a program name with args.
18388 set dummy pkg-config; ac_word=$2
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18390 $as_echo_n "checking for $ac_word... " >&6; }
18391 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18392 $as_echo_n "(cached) " >&6
18393 else
18394 case $ac_pt_PKG_CONFIG in
18395 [\\/]* | ?:[\\/]*)
18396 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18397 ;;
18398 *)
18399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18400 for as_dir in $PATH
18401 do
18402 IFS=$as_save_IFS
18403 test -z "$as_dir" && as_dir=.
18404 for ac_exec_ext in '' $ac_executable_extensions; do
18405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18406 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18408 break 2
18409 fi
18410 done
18411 done
18412 IFS=$as_save_IFS
18413
18414 ;;
18415 esac
18416 fi
18417 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18418 if test -n "$ac_pt_PKG_CONFIG"; then
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18420 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18421 else
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18424 fi
18425
18426 if test "x$ac_pt_PKG_CONFIG" = x; then
18427 PKG_CONFIG=""
18428 else
18429 case $cross_compiling:$ac_tool_warned in
18430 yes:)
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18433 ac_tool_warned=yes ;;
18434 esac
18435 PKG_CONFIG=$ac_pt_PKG_CONFIG
18436 fi
18437 else
18438 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18439 fi
18440
18441 fi
18442 if test -n "$PKG_CONFIG"; then
18443 _pkg_min_version=0.22
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18445 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18446 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18448 $as_echo "yes" >&6; }
18449 else
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451 $as_echo "no" >&6; }
18452 PKG_CONFIG=""
18453 fi
18454 fi
18455
18456 # Extract the first word of "git", so it can be a program name with args.
18457 set dummy git; ac_word=$2
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18459 $as_echo_n "checking for $ac_word... " >&6; }
18460 if ${ac_cv_path_GIT+:} false; then :
18461 $as_echo_n "(cached) " >&6
18462 else
18463 case $GIT in
18464 [\\/]* | ?:[\\/]*)
18465 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18466 ;;
18467 *)
18468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469 for as_dir in $PATH
18470 do
18471 IFS=$as_save_IFS
18472 test -z "$as_dir" && as_dir=.
18473 for ac_exec_ext in '' $ac_executable_extensions; do
18474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18475 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18477 break 2
18478 fi
18479 done
18480 done
18481 IFS=$as_save_IFS
18482
18483 ;;
18484 esac
18485 fi
18486 GIT=$ac_cv_path_GIT
18487 if test -n "$GIT"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18489 $as_echo "$GIT" >&6; }
18490 else
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18493 fi
18494
18495
18496 # Extract the first word of "time", so it can be a program name with args.
18497 set dummy time; ac_word=$2
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18499 $as_echo_n "checking for $ac_word... " >&6; }
18500 if ${ac_cv_path_TIME+:} false; then :
18501 $as_echo_n "(cached) " >&6
18502 else
18503 case $TIME in
18504 [\\/]* | ?:[\\/]*)
18505 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18506 ;;
18507 *)
18508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509 for as_dir in $PATH
18510 do
18511 IFS=$as_save_IFS
18512 test -z "$as_dir" && as_dir=.
18513 for ac_exec_ext in '' $ac_executable_extensions; do
18514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18515 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18517 break 2
18518 fi
18519 done
18520 done
18521 IFS=$as_save_IFS
18522
18523 ;;
18524 esac
18525 fi
18526 TIME=$ac_cv_path_TIME
18527 if test -n "$TIME"; then
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18529 $as_echo "$TIME" >&6; }
18530 else
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18532 $as_echo "no" >&6; }
18533 fi
18534
18535
18536
18537
18538
18539
18540
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18542 $as_echo_n "checking for bison >= 3.0... " >&6; }
18543 if test -z "$BISON"; then
18544 ac_path_BISON_found=false
18545 # Loop through the user's path and test for each of PROGNAME-LIST
18546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18547 for as_dir in $PATH
18548 do
18549 IFS=$as_save_IFS
18550 test -z "$as_dir" && as_dir=.
18551 for ac_prog in bison; do
18552 for ac_exec_ext in '' $ac_executable_extensions; do
18553 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18554 as_fn_executable_p "$ac_path_BISON" || continue
18555 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18556 if ${version:+false} :; then :
18557
18558 else
18559 as_awk_strverscmp='
18560 # Use only awk features that work with 7th edition Unix awk (1978).
18561 # My, what an old awk you have, Mr. Solaris!
18562 END {
18563 while (length(v1) && length(v2)) {
18564 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18565 # Normally this is a single character, but if v1 and v2 contain digits,
18566 # compare them as integers and fractions as strverscmp does.
18567 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18568 # Split v1 and v2 into their leading digit string components d1 and d2,
18569 # and advance v1 and v2 past the leading digit strings.
18570 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18571 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18572 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18573 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18574 if (d1 ~ /^0/) {
18575 if (d2 ~ /^0/) {
18576 # Compare two fractions.
18577 while (d1 ~ /^0/ && d2 ~ /^0/) {
18578 d1 = substr(d1, 2); len1--
18579 d2 = substr(d2, 2); len2--
18580 }
18581 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18582 # The two components differ in length, and the common prefix
18583 # contains only leading zeros. Consider the longer to be less.
18584 d1 = -len1
18585 d2 = -len2
18586 } else {
18587 # Otherwise, compare as strings.
18588 d1 = "x" d1
18589 d2 = "x" d2
18590 }
18591 } else {
18592 # A fraction is less than an integer.
18593 exit 1
18594 }
18595 } else {
18596 if (d2 ~ /^0/) {
18597 # An integer is greater than a fraction.
18598 exit 2
18599 } else {
18600 # Compare two integers.
18601 d1 += 0
18602 d2 += 0
18603 }
18604 }
18605 } else {
18606 # The normal case, without worrying about digits.
18607 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18608 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18609 }
18610 if (d1 < d2) exit 1
18611 if (d1 > d2) exit 2
18612 }
18613 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18614 # which mishandles some comparisons of empty strings to integers.
18615 if (length(v2)) exit 1
18616 if (length(v1)) exit 2
18617 }
18618 '
18619 as_arg_v1=$version
18620 as_arg_v2=3.0
18621 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18622 case $? in #(
18623 1) :
18624 ;; #(
18625 0) :
18626 ac_cv_path_BISON=$ac_path_BISON ;; #(
18627 2) :
18628 ac_cv_path_BISON=$ac_path_BISON ;; #(
18629 *) :
18630 ;;
18631 esac
18632 fi
18633
18634 $ac_path_BISON_found && break 3
18635 done
18636 done
18637 done
18638 IFS=$as_save_IFS
18639 if test -z "$ac_cv_path_BISON"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18641 $as_echo "no" >&6; }
18642 fi
18643 else
18644 ac_cv_path_BISON=$BISON
18645 fi
18646
18647
18648 if true; then :
18649
18650 BISON=$ac_cv_path_BISON
18651
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18653 $as_echo "$BISON" >&6; }
18654
18655 else
18656 if true; then :
18657
18658 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
18659
18660 else
18661
18662 BISON=:
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666
18667 fi
18668 fi
18669
18670
18671
18672
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18674 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
18675 if test -z "$FLEX"; then
18676 ac_path_FLEX_found=false
18677 # Loop through the user's path and test for each of PROGNAME-LIST
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18680 do
18681 IFS=$as_save_IFS
18682 test -z "$as_dir" && as_dir=.
18683 for ac_prog in flex; do
18684 for ac_exec_ext in '' $ac_executable_extensions; do
18685 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18686 as_fn_executable_p "$ac_path_FLEX" || continue
18687 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18688 if ${version:+false} :; then :
18689
18690 else
18691 as_arg_v1=$version
18692 as_arg_v2=2.5.33
18693 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18694 case $? in #(
18695 1) :
18696 ;; #(
18697 0) :
18698 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18699 2) :
18700 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18701 *) :
18702 ;;
18703 esac
18704 fi
18705
18706 $ac_path_FLEX_found && break 3
18707 done
18708 done
18709 done
18710 IFS=$as_save_IFS
18711 if test -z "$ac_cv_path_FLEX"; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18713 $as_echo "no" >&6; }
18714 fi
18715 else
18716 ac_cv_path_FLEX=$FLEX
18717 fi
18718
18719
18720 if true; then :
18721
18722 FLEX=$ac_cv_path_FLEX
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18725 $as_echo "$FLEX" >&6; }
18726
18727 else
18728 if true; then :
18729
18730 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
18731
18732 else
18733
18734 FLEX=:
18735
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 $as_echo "no" >&6; }
18738
18739 fi
18740 fi
18741
18742
18743
18744
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18746 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18747 if test -z "$GPERF"; then
18748 ac_path_GPERF_found=false
18749 # Loop through the user's path and test for each of PROGNAME-LIST
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18752 do
18753 IFS=$as_save_IFS
18754 test -z "$as_dir" && as_dir=.
18755 for ac_prog in gperf; do
18756 for ac_exec_ext in '' $ac_executable_extensions; do
18757 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18758 as_fn_executable_p "$ac_path_GPERF" || continue
18759 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18760 if ${version:+false} :; then :
18761
18762 else
18763 as_arg_v1=$version
18764 as_arg_v2=3.0.3
18765 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18766 case $? in #(
18767 1) :
18768 ;; #(
18769 0) :
18770 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18771 2) :
18772 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18773 *) :
18774 ;;
18775 esac
18776 fi
18777
18778 $ac_path_GPERF_found && break 3
18779 done
18780 done
18781 done
18782 IFS=$as_save_IFS
18783 if test -z "$ac_cv_path_GPERF"; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18786 fi
18787 else
18788 ac_cv_path_GPERF=$GPERF
18789 fi
18790
18791
18792 if true; then :
18793
18794 GPERF=$ac_cv_path_GPERF
18795
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18797 $as_echo "$GPERF" >&6; }
18798
18799 else
18800 if true; then :
18801
18802 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18803
18804 else
18805
18806 GPERF=:
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18809 $as_echo "no" >&6; }
18810
18811 fi
18812 fi
18813
18814
18815
18816
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18818 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18819 if test -z "$GNUTAR"; then
18820 ac_path_GNUTAR_found=false
18821 # Loop through the user's path and test for each of PROGNAME-LIST
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18824 do
18825 IFS=$as_save_IFS
18826 test -z "$as_dir" && as_dir=.
18827 for ac_prog in tar gtar gnutar; do
18828 for ac_exec_ext in '' $ac_executable_extensions; do
18829 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18830 as_fn_executable_p "$ac_path_GNUTAR" || continue
18831 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18832 if ${version:+false} :; then :
18833
18834 else
18835 as_arg_v1=$version
18836 as_arg_v2=1.19
18837 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18838 case $? in #(
18839 1) :
18840 ;; #(
18841 0) :
18842 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18843 2) :
18844 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18845 *) :
18846 ;;
18847 esac
18848 fi
18849
18850 $ac_path_GNUTAR_found && break 3
18851 done
18852 done
18853 done
18854 IFS=$as_save_IFS
18855 if test -z "$ac_cv_path_GNUTAR"; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858 fi
18859 else
18860 ac_cv_path_GNUTAR=$GNUTAR
18861 fi
18862
18863
18864 if true; then :
18865
18866 GNUTAR=$ac_cv_path_GNUTAR
18867
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18869 $as_echo "$GNUTAR" >&6; }
18870
18871 else
18872 if true; then :
18873
18874 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
18875
18876 else
18877
18878 GNUTAR=:
18879
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18881 $as_echo "no" >&6; }
18882
18883 fi
18884 fi
18885
18886
18887
18888
18889
18890
18891
18892 if test "x$LFLAGS" = x; then :
18893 LFLAGS="--full --ecs"
18894 fi
18895
18896
18897
18898
18899
18900 ac_ext=c
18901 ac_cpp='$CPP $CPPFLAGS'
18902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18905
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18907 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18908 if ${ac_cv_cflags_warn_all+:} false; then :
18909 $as_echo_n "(cached) " >&6
18910 else
18911 ac_cv_cflags_warn_all="no, unknown"
18912 ac_save_CFLAGS="$CFLAGS"
18913 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" #
18914 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 int
18919 main ()
18920 {
18921
18922 ;
18923 return 0;
18924 }
18925 _ACEOF
18926 if ac_fn_c_try_compile "$LINENO"; then :
18927 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18928 fi
18929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18930 done
18931 CFLAGS="$ac_save_CFLAGS"
18932
18933 fi
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18935 $as_echo "$ac_cv_cflags_warn_all" >&6; }
18936
18937
18938 case ".$ac_cv_cflags_warn_all" in
18939 .ok|.ok,*) ;;
18940 .|.no|.no,*) ;;
18941 *) if ${CFLAGS+:} false; then :
18942 case " $CFLAGS " in
18943 *" $ac_cv_cflags_warn_all "*)
18944 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18945 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18946 ac_status=$?
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; }
18949 ;;
18950 *)
18951 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18952 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18953 ac_status=$?
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }
18956 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18957 ;;
18958 esac
18959 else
18960 CFLAGS="$ac_cv_cflags_warn_all"
18961 fi
18962 ;;
18963 esac
18964
18965 ac_ext=cpp
18966 ac_cpp='$CXXCPP $CPPFLAGS'
18967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18970
18971
18972 ac_ext=cpp
18973 ac_cpp='$CXXCPP $CPPFLAGS'
18974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18977
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18979 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18980 if ${ac_cv_cxxflags_warn_all+:} false; then :
18981 $as_echo_n "(cached) " >&6
18982 else
18983 ac_cv_cxxflags_warn_all="no, unknown"
18984 ac_save_CXXFLAGS="$CXXFLAGS"
18985 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" #
18986 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18989
18990 int
18991 main ()
18992 {
18993
18994 ;
18995 return 0;
18996 }
18997 _ACEOF
18998 if ac_fn_cxx_try_compile "$LINENO"; then :
18999 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19000 fi
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19002 done
19003 CXXFLAGS="$ac_save_CXXFLAGS"
19004
19005 fi
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19007 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19008
19009
19010 case ".$ac_cv_cxxflags_warn_all" in
19011 .ok|.ok,*) ;;
19012 .|.no|.no,*) ;;
19013 *) if ${CXXFLAGS+:} false; then :
19014 case " $CXXFLAGS " in
19015 *" $ac_cv_cxxflags_warn_all "*)
19016 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19017 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19018 ac_status=$?
19019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020 test $ac_status = 0; }
19021 ;;
19022 *)
19023 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19024 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19025 ac_status=$?
19026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19027 test $ac_status = 0; }
19028 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19029 ;;
19030 esac
19031 else
19032 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19033 fi
19034 ;;
19035 esac
19036
19037 ac_ext=cpp
19038 ac_cpp='$CXXCPP $CPPFLAGS'
19039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19042
19043
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
19045 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
19046 if ${ac_cv_cxxflags_warn_all+:} false; then :
19047 $as_echo_n "(cached) " >&6
19048 else
19049 ac_cv_cxxflags_warn_all="no, unknown"
19050 ac_save_CXXFLAGS="$CXXFLAGS"
19051 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" #
19052 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19055
19056 int
19057 main ()
19058 {
19059
19060 ;
19061 return 0;
19062 }
19063 _ACEOF
19064 if ac_fn_cxx_try_compile "$LINENO"; then :
19065 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19066 fi
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068 done
19069 CXXFLAGS="$ac_save_CXXFLAGS"
19070
19071 fi
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19073 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19074
19075
19076 case ".$ac_cv_cxxflags_warn_all" in
19077 .ok|.ok,*) ;;
19078 .|.no|.no,*) ;;
19079 *) if ${CXXFLAGS+:} false; then :
19080 case " $CXXFLAGS " in
19081 *" $ac_cv_cxxflags_warn_all "*)
19082 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19083 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19084 ac_status=$?
19085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19086 test $ac_status = 0; }
19087 ;;
19088 *)
19089 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19090 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19091 ac_status=$?
19092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093 test $ac_status = 0; }
19094 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19095 ;;
19096 esac
19097 else
19098 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19099 fi
19100 ;;
19101 esac
19102
19103
19104
19105
19106
19107 ac_ext=c
19108 ac_cpp='$CPP $CPPFLAGS'
19109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19112
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19114 $as_echo_n "checking for cc -Werror... " >&6; }
19115
19116 cy_save=$CFLAGS
19117
19118 for element in -Werror; do
19119 haveit=
19120 for x in $CFLAGS; do
19121
19122 acl_save_prefix="$prefix"
19123 prefix="$acl_final_prefix"
19124 acl_save_exec_prefix="$exec_prefix"
19125 exec_prefix="$acl_final_exec_prefix"
19126 eval x=\"$x\"
19127 exec_prefix="$acl_save_exec_prefix"
19128 prefix="$acl_save_prefix"
19129
19130 if test "X$x" = "X$element"; then
19131 haveit=yes
19132 break
19133 fi
19134 done
19135 if test -z "$haveit"; then
19136 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19137 fi
19138 done
19139
19140
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19143
19144 _ACEOF
19145 if ac_fn_c_try_compile "$LINENO"; then :
19146 cy_good=1
19147 else
19148 cy_good=0
19149 fi
19150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19151
19152 CFLAGS=$cy_save
19153 if test "x$cy_good" = x1; then :
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19155 $as_echo "yes" >&6; }
19156
19157 for element in -Werror; do
19158 haveit=
19159 for x in $CFLAGS; do
19160
19161 acl_save_prefix="$prefix"
19162 prefix="$acl_final_prefix"
19163 acl_save_exec_prefix="$exec_prefix"
19164 exec_prefix="$acl_final_exec_prefix"
19165 eval x=\"$x\"
19166 exec_prefix="$acl_save_exec_prefix"
19167 prefix="$acl_save_prefix"
19168
19169 if test "X$x" = "X$element"; then
19170 haveit=yes
19171 break
19172 fi
19173 done
19174 if test -z "$haveit"; then
19175 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19176 fi
19177 done
19178
19179
19180 else
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 $as_echo "no" >&6; }
19183 fi
19184
19185 ac_ext=cpp
19186 ac_cpp='$CXXCPP $CPPFLAGS'
19187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19190
19191
19192
19193 ac_ext=cpp
19194 ac_cpp='$CXXCPP $CPPFLAGS'
19195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19198
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19200 $as_echo_n "checking for c++ -Werror... " >&6; }
19201
19202 cy_save=$CXXFLAGS
19203
19204 for element in -Werror; do
19205 haveit=
19206 for x in $CXXFLAGS; do
19207
19208 acl_save_prefix="$prefix"
19209 prefix="$acl_final_prefix"
19210 acl_save_exec_prefix="$exec_prefix"
19211 exec_prefix="$acl_final_exec_prefix"
19212 eval x=\"$x\"
19213 exec_prefix="$acl_save_exec_prefix"
19214 prefix="$acl_save_prefix"
19215
19216 if test "X$x" = "X$element"; then
19217 haveit=yes
19218 break
19219 fi
19220 done
19221 if test -z "$haveit"; then
19222 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19223 fi
19224 done
19225
19226
19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h. */
19229
19230 _ACEOF
19231 if ac_fn_cxx_try_compile "$LINENO"; then :
19232 cy_good=1
19233 else
19234 cy_good=0
19235 fi
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237
19238 CXXFLAGS=$cy_save
19239 if test "x$cy_good" = x1; then :
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241 $as_echo "yes" >&6; }
19242
19243 for element in -Werror; do
19244 haveit=
19245 for x in $CXXFLAGS; do
19246
19247 acl_save_prefix="$prefix"
19248 prefix="$acl_final_prefix"
19249 acl_save_exec_prefix="$exec_prefix"
19250 exec_prefix="$acl_final_exec_prefix"
19251 eval x=\"$x\"
19252 exec_prefix="$acl_save_exec_prefix"
19253 prefix="$acl_save_prefix"
19254
19255 if test "X$x" = "X$element"; then
19256 haveit=yes
19257 break
19258 fi
19259 done
19260 if test -z "$haveit"; then
19261 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19262 fi
19263 done
19264
19265
19266 else
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19268 $as_echo "no" >&6; }
19269 fi
19270
19271 ac_ext=cpp
19272 ac_cpp='$CXXCPP $CPPFLAGS'
19273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19276
19277
19278
19279 ac_ext=mm
19280 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19281 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19284
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19286 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
19287
19288 cy_save=$OBJCXXFLAGS
19289
19290 for element in -Werror; do
19291 haveit=
19292 for x in $OBJCXXFLAGS; do
19293
19294 acl_save_prefix="$prefix"
19295 prefix="$acl_final_prefix"
19296 acl_save_exec_prefix="$exec_prefix"
19297 exec_prefix="$acl_final_exec_prefix"
19298 eval x=\"$x\"
19299 exec_prefix="$acl_save_exec_prefix"
19300 prefix="$acl_save_prefix"
19301
19302 if test "X$x" = "X$element"; then
19303 haveit=yes
19304 break
19305 fi
19306 done
19307 if test -z "$haveit"; then
19308 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19309 fi
19310 done
19311
19312
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19315
19316 _ACEOF
19317 if ac_fn_objcxx_try_compile "$LINENO"; then :
19318 cy_good=1
19319 else
19320 cy_good=0
19321 fi
19322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323
19324 OBJCXXFLAGS=$cy_save
19325 if test "x$cy_good" = x1; then :
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327 $as_echo "yes" >&6; }
19328
19329 for element in -Werror; do
19330 haveit=
19331 for x in $OBJCXXFLAGS; do
19332
19333 acl_save_prefix="$prefix"
19334 prefix="$acl_final_prefix"
19335 acl_save_exec_prefix="$exec_prefix"
19336 exec_prefix="$acl_final_exec_prefix"
19337 eval x=\"$x\"
19338 exec_prefix="$acl_save_exec_prefix"
19339 prefix="$acl_save_prefix"
19340
19341 if test "X$x" = "X$element"; then
19342 haveit=yes
19343 break
19344 fi
19345 done
19346 if test -z "$haveit"; then
19347 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19348 fi
19349 done
19350
19351
19352 else
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19354 $as_echo "no" >&6; }
19355 fi
19356
19357 ac_ext=cpp
19358 ac_cpp='$CXXCPP $CPPFLAGS'
19359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19362
19363
19364
19365
19366
19367
19368 ac_ext=c
19369 ac_cpp='$CPP $CPPFLAGS'
19370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19373
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19375 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
19376
19377 cy_save=$CFLAGS
19378
19379 for element in -Wno-deprecated-declarations; do
19380 haveit=
19381 for x in $CFLAGS; do
19382
19383 acl_save_prefix="$prefix"
19384 prefix="$acl_final_prefix"
19385 acl_save_exec_prefix="$exec_prefix"
19386 exec_prefix="$acl_final_exec_prefix"
19387 eval x=\"$x\"
19388 exec_prefix="$acl_save_exec_prefix"
19389 prefix="$acl_save_prefix"
19390
19391 if test "X$x" = "X$element"; then
19392 haveit=yes
19393 break
19394 fi
19395 done
19396 if test -z "$haveit"; then
19397 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19398 fi
19399 done
19400
19401
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19404
19405 _ACEOF
19406 if ac_fn_c_try_compile "$LINENO"; then :
19407 cy_good=1
19408 else
19409 cy_good=0
19410 fi
19411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19412
19413 CFLAGS=$cy_save
19414 if test "x$cy_good" = x1; then :
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416 $as_echo "yes" >&6; }
19417
19418 for element in -Wno-deprecated-declarations; do
19419 haveit=
19420 for x in $CFLAGS; do
19421
19422 acl_save_prefix="$prefix"
19423 prefix="$acl_final_prefix"
19424 acl_save_exec_prefix="$exec_prefix"
19425 exec_prefix="$acl_final_exec_prefix"
19426 eval x=\"$x\"
19427 exec_prefix="$acl_save_exec_prefix"
19428 prefix="$acl_save_prefix"
19429
19430 if test "X$x" = "X$element"; then
19431 haveit=yes
19432 break
19433 fi
19434 done
19435 if test -z "$haveit"; then
19436 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19437 fi
19438 done
19439
19440
19441 else
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19443 $as_echo "no" >&6; }
19444 fi
19445
19446 ac_ext=cpp
19447 ac_cpp='$CXXCPP $CPPFLAGS'
19448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19451
19452
19453
19454 ac_ext=cpp
19455 ac_cpp='$CXXCPP $CPPFLAGS'
19456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19459
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19461 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
19462
19463 cy_save=$CXXFLAGS
19464
19465 for element in -Wno-deprecated-declarations; do
19466 haveit=
19467 for x in $CXXFLAGS; do
19468
19469 acl_save_prefix="$prefix"
19470 prefix="$acl_final_prefix"
19471 acl_save_exec_prefix="$exec_prefix"
19472 exec_prefix="$acl_final_exec_prefix"
19473 eval x=\"$x\"
19474 exec_prefix="$acl_save_exec_prefix"
19475 prefix="$acl_save_prefix"
19476
19477 if test "X$x" = "X$element"; then
19478 haveit=yes
19479 break
19480 fi
19481 done
19482 if test -z "$haveit"; then
19483 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19484 fi
19485 done
19486
19487
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19490
19491 _ACEOF
19492 if ac_fn_cxx_try_compile "$LINENO"; then :
19493 cy_good=1
19494 else
19495 cy_good=0
19496 fi
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498
19499 CXXFLAGS=$cy_save
19500 if test "x$cy_good" = x1; then :
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19502 $as_echo "yes" >&6; }
19503
19504 for element in -Wno-deprecated-declarations; do
19505 haveit=
19506 for x in $CXXFLAGS; do
19507
19508 acl_save_prefix="$prefix"
19509 prefix="$acl_final_prefix"
19510 acl_save_exec_prefix="$exec_prefix"
19511 exec_prefix="$acl_final_exec_prefix"
19512 eval x=\"$x\"
19513 exec_prefix="$acl_save_exec_prefix"
19514 prefix="$acl_save_prefix"
19515
19516 if test "X$x" = "X$element"; then
19517 haveit=yes
19518 break
19519 fi
19520 done
19521 if test -z "$haveit"; then
19522 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19523 fi
19524 done
19525
19526
19527 else
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529 $as_echo "no" >&6; }
19530 fi
19531
19532 ac_ext=cpp
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19537
19538
19539
19540 ac_ext=mm
19541 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19542 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19545
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19547 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
19548
19549 cy_save=$OBJCXXFLAGS
19550
19551 for element in -Wno-deprecated-declarations; do
19552 haveit=
19553 for x in $OBJCXXFLAGS; do
19554
19555 acl_save_prefix="$prefix"
19556 prefix="$acl_final_prefix"
19557 acl_save_exec_prefix="$exec_prefix"
19558 exec_prefix="$acl_final_exec_prefix"
19559 eval x=\"$x\"
19560 exec_prefix="$acl_save_exec_prefix"
19561 prefix="$acl_save_prefix"
19562
19563 if test "X$x" = "X$element"; then
19564 haveit=yes
19565 break
19566 fi
19567 done
19568 if test -z "$haveit"; then
19569 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19570 fi
19571 done
19572
19573
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576
19577 _ACEOF
19578 if ac_fn_objcxx_try_compile "$LINENO"; then :
19579 cy_good=1
19580 else
19581 cy_good=0
19582 fi
19583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584
19585 OBJCXXFLAGS=$cy_save
19586 if test "x$cy_good" = x1; then :
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588 $as_echo "yes" >&6; }
19589
19590 for element in -Wno-deprecated-declarations; do
19591 haveit=
19592 for x in $OBJCXXFLAGS; do
19593
19594 acl_save_prefix="$prefix"
19595 prefix="$acl_final_prefix"
19596 acl_save_exec_prefix="$exec_prefix"
19597 exec_prefix="$acl_final_exec_prefix"
19598 eval x=\"$x\"
19599 exec_prefix="$acl_save_exec_prefix"
19600 prefix="$acl_save_prefix"
19601
19602 if test "X$x" = "X$element"; then
19603 haveit=yes
19604 break
19605 fi
19606 done
19607 if test -z "$haveit"; then
19608 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19609 fi
19610 done
19611
19612
19613 else
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615 $as_echo "no" >&6; }
19616 fi
19617
19618 ac_ext=cpp
19619 ac_cpp='$CXXCPP $CPPFLAGS'
19620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19623
19624
19625
19626
19627
19628
19629 ac_ext=c
19630 ac_cpp='$CPP $CPPFLAGS'
19631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19636 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
19637
19638 cy_save=$CFLAGS
19639
19640 for element in -Wno-dangling-else; do
19641 haveit=
19642 for x in $CFLAGS; do
19643
19644 acl_save_prefix="$prefix"
19645 prefix="$acl_final_prefix"
19646 acl_save_exec_prefix="$exec_prefix"
19647 exec_prefix="$acl_final_exec_prefix"
19648 eval x=\"$x\"
19649 exec_prefix="$acl_save_exec_prefix"
19650 prefix="$acl_save_prefix"
19651
19652 if test "X$x" = "X$element"; then
19653 haveit=yes
19654 break
19655 fi
19656 done
19657 if test -z "$haveit"; then
19658 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19659 fi
19660 done
19661
19662
19663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19665
19666 _ACEOF
19667 if ac_fn_c_try_compile "$LINENO"; then :
19668 cy_good=1
19669 else
19670 cy_good=0
19671 fi
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673
19674 CFLAGS=$cy_save
19675 if test "x$cy_good" = x1; then :
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19677 $as_echo "yes" >&6; }
19678
19679 for element in -Wno-dangling-else; do
19680 haveit=
19681 for x in $CFLAGS; do
19682
19683 acl_save_prefix="$prefix"
19684 prefix="$acl_final_prefix"
19685 acl_save_exec_prefix="$exec_prefix"
19686 exec_prefix="$acl_final_exec_prefix"
19687 eval x=\"$x\"
19688 exec_prefix="$acl_save_exec_prefix"
19689 prefix="$acl_save_prefix"
19690
19691 if test "X$x" = "X$element"; then
19692 haveit=yes
19693 break
19694 fi
19695 done
19696 if test -z "$haveit"; then
19697 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19698 fi
19699 done
19700
19701
19702 else
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19704 $as_echo "no" >&6; }
19705 fi
19706
19707 ac_ext=cpp
19708 ac_cpp='$CXXCPP $CPPFLAGS'
19709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19712
19713
19714
19715 ac_ext=cpp
19716 ac_cpp='$CXXCPP $CPPFLAGS'
19717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19720
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19722 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
19723
19724 cy_save=$CXXFLAGS
19725
19726 for element in -Wno-dangling-else; do
19727 haveit=
19728 for x in $CXXFLAGS; do
19729
19730 acl_save_prefix="$prefix"
19731 prefix="$acl_final_prefix"
19732 acl_save_exec_prefix="$exec_prefix"
19733 exec_prefix="$acl_final_exec_prefix"
19734 eval x=\"$x\"
19735 exec_prefix="$acl_save_exec_prefix"
19736 prefix="$acl_save_prefix"
19737
19738 if test "X$x" = "X$element"; then
19739 haveit=yes
19740 break
19741 fi
19742 done
19743 if test -z "$haveit"; then
19744 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19745 fi
19746 done
19747
19748
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h. */
19751
19752 _ACEOF
19753 if ac_fn_cxx_try_compile "$LINENO"; then :
19754 cy_good=1
19755 else
19756 cy_good=0
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759
19760 CXXFLAGS=$cy_save
19761 if test "x$cy_good" = x1; then :
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19763 $as_echo "yes" >&6; }
19764
19765 for element in -Wno-dangling-else; do
19766 haveit=
19767 for x in $CXXFLAGS; do
19768
19769 acl_save_prefix="$prefix"
19770 prefix="$acl_final_prefix"
19771 acl_save_exec_prefix="$exec_prefix"
19772 exec_prefix="$acl_final_exec_prefix"
19773 eval x=\"$x\"
19774 exec_prefix="$acl_save_exec_prefix"
19775 prefix="$acl_save_prefix"
19776
19777 if test "X$x" = "X$element"; then
19778 haveit=yes
19779 break
19780 fi
19781 done
19782 if test -z "$haveit"; then
19783 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19784 fi
19785 done
19786
19787
19788 else
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19790 $as_echo "no" >&6; }
19791 fi
19792
19793 ac_ext=cpp
19794 ac_cpp='$CXXCPP $CPPFLAGS'
19795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19798
19799
19800
19801 ac_ext=mm
19802 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19803 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19806
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19808 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
19809
19810 cy_save=$OBJCXXFLAGS
19811
19812 for element in -Wno-dangling-else; do
19813 haveit=
19814 for x in $OBJCXXFLAGS; do
19815
19816 acl_save_prefix="$prefix"
19817 prefix="$acl_final_prefix"
19818 acl_save_exec_prefix="$exec_prefix"
19819 exec_prefix="$acl_final_exec_prefix"
19820 eval x=\"$x\"
19821 exec_prefix="$acl_save_exec_prefix"
19822 prefix="$acl_save_prefix"
19823
19824 if test "X$x" = "X$element"; then
19825 haveit=yes
19826 break
19827 fi
19828 done
19829 if test -z "$haveit"; then
19830 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19831 fi
19832 done
19833
19834
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19837
19838 _ACEOF
19839 if ac_fn_objcxx_try_compile "$LINENO"; then :
19840 cy_good=1
19841 else
19842 cy_good=0
19843 fi
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845
19846 OBJCXXFLAGS=$cy_save
19847 if test "x$cy_good" = x1; then :
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19849 $as_echo "yes" >&6; }
19850
19851 for element in -Wno-dangling-else; do
19852 haveit=
19853 for x in $OBJCXXFLAGS; do
19854
19855 acl_save_prefix="$prefix"
19856 prefix="$acl_final_prefix"
19857 acl_save_exec_prefix="$exec_prefix"
19858 exec_prefix="$acl_final_exec_prefix"
19859 eval x=\"$x\"
19860 exec_prefix="$acl_save_exec_prefix"
19861 prefix="$acl_save_prefix"
19862
19863 if test "X$x" = "X$element"; then
19864 haveit=yes
19865 break
19866 fi
19867 done
19868 if test -z "$haveit"; then
19869 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19870 fi
19871 done
19872
19873
19874 else
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19876 $as_echo "no" >&6; }
19877 fi
19878
19879 ac_ext=cpp
19880 ac_cpp='$CXXCPP $CPPFLAGS'
19881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19884
19885
19886
19887
19888
19889 ac_ext=c
19890 ac_cpp='$CPP $CPPFLAGS'
19891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19894
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19896 $as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19897
19898 cy_save=$CFLAGS
19899
19900 for element in -Wno-empty-body; do
19901 haveit=
19902 for x in $CFLAGS; do
19903
19904 acl_save_prefix="$prefix"
19905 prefix="$acl_final_prefix"
19906 acl_save_exec_prefix="$exec_prefix"
19907 exec_prefix="$acl_final_exec_prefix"
19908 eval x=\"$x\"
19909 exec_prefix="$acl_save_exec_prefix"
19910 prefix="$acl_save_prefix"
19911
19912 if test "X$x" = "X$element"; then
19913 haveit=yes
19914 break
19915 fi
19916 done
19917 if test -z "$haveit"; then
19918 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19919 fi
19920 done
19921
19922
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925
19926 _ACEOF
19927 if ac_fn_c_try_compile "$LINENO"; then :
19928 cy_good=1
19929 else
19930 cy_good=0
19931 fi
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933
19934 CFLAGS=$cy_save
19935 if test "x$cy_good" = x1; then :
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19937 $as_echo "yes" >&6; }
19938
19939 for element in -Wno-empty-body; do
19940 haveit=
19941 for x in $CFLAGS; do
19942
19943 acl_save_prefix="$prefix"
19944 prefix="$acl_final_prefix"
19945 acl_save_exec_prefix="$exec_prefix"
19946 exec_prefix="$acl_final_exec_prefix"
19947 eval x=\"$x\"
19948 exec_prefix="$acl_save_exec_prefix"
19949 prefix="$acl_save_prefix"
19950
19951 if test "X$x" = "X$element"; then
19952 haveit=yes
19953 break
19954 fi
19955 done
19956 if test -z "$haveit"; then
19957 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19958 fi
19959 done
19960
19961
19962 else
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 $as_echo "no" >&6; }
19965 fi
19966
19967 ac_ext=cpp
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19972
19973
19974
19975 ac_ext=cpp
19976 ac_cpp='$CXXCPP $CPPFLAGS'
19977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19980
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19982 $as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19983
19984 cy_save=$CXXFLAGS
19985
19986 for element in -Wno-empty-body; do
19987 haveit=
19988 for x in $CXXFLAGS; do
19989
19990 acl_save_prefix="$prefix"
19991 prefix="$acl_final_prefix"
19992 acl_save_exec_prefix="$exec_prefix"
19993 exec_prefix="$acl_final_exec_prefix"
19994 eval x=\"$x\"
19995 exec_prefix="$acl_save_exec_prefix"
19996 prefix="$acl_save_prefix"
19997
19998 if test "X$x" = "X$element"; then
19999 haveit=yes
20000 break
20001 fi
20002 done
20003 if test -z "$haveit"; then
20004 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20005 fi
20006 done
20007
20008
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20011
20012 _ACEOF
20013 if ac_fn_cxx_try_compile "$LINENO"; then :
20014 cy_good=1
20015 else
20016 cy_good=0
20017 fi
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019
20020 CXXFLAGS=$cy_save
20021 if test "x$cy_good" = x1; then :
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20023 $as_echo "yes" >&6; }
20024
20025 for element in -Wno-empty-body; do
20026 haveit=
20027 for x in $CXXFLAGS; do
20028
20029 acl_save_prefix="$prefix"
20030 prefix="$acl_final_prefix"
20031 acl_save_exec_prefix="$exec_prefix"
20032 exec_prefix="$acl_final_exec_prefix"
20033 eval x=\"$x\"
20034 exec_prefix="$acl_save_exec_prefix"
20035 prefix="$acl_save_prefix"
20036
20037 if test "X$x" = "X$element"; then
20038 haveit=yes
20039 break
20040 fi
20041 done
20042 if test -z "$haveit"; then
20043 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20044 fi
20045 done
20046
20047
20048 else
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20050 $as_echo "no" >&6; }
20051 fi
20052
20053 ac_ext=cpp
20054 ac_cpp='$CXXCPP $CPPFLAGS'
20055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20058
20059
20060
20061 ac_ext=mm
20062 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20063 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
20068 $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
20069
20070 cy_save=$OBJCXXFLAGS
20071
20072 for element in -Wno-empty-body; do
20073 haveit=
20074 for x in $OBJCXXFLAGS; do
20075
20076 acl_save_prefix="$prefix"
20077 prefix="$acl_final_prefix"
20078 acl_save_exec_prefix="$exec_prefix"
20079 exec_prefix="$acl_final_exec_prefix"
20080 eval x=\"$x\"
20081 exec_prefix="$acl_save_exec_prefix"
20082 prefix="$acl_save_prefix"
20083
20084 if test "X$x" = "X$element"; then
20085 haveit=yes
20086 break
20087 fi
20088 done
20089 if test -z "$haveit"; then
20090 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20091 fi
20092 done
20093
20094
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h. */
20097
20098 _ACEOF
20099 if ac_fn_objcxx_try_compile "$LINENO"; then :
20100 cy_good=1
20101 else
20102 cy_good=0
20103 fi
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105
20106 OBJCXXFLAGS=$cy_save
20107 if test "x$cy_good" = x1; then :
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20109 $as_echo "yes" >&6; }
20110
20111 for element in -Wno-empty-body; do
20112 haveit=
20113 for x in $OBJCXXFLAGS; do
20114
20115 acl_save_prefix="$prefix"
20116 prefix="$acl_final_prefix"
20117 acl_save_exec_prefix="$exec_prefix"
20118 exec_prefix="$acl_final_exec_prefix"
20119 eval x=\"$x\"
20120 exec_prefix="$acl_save_exec_prefix"
20121 prefix="$acl_save_prefix"
20122
20123 if test "X$x" = "X$element"; then
20124 haveit=yes
20125 break
20126 fi
20127 done
20128 if test -z "$haveit"; then
20129 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20130 fi
20131 done
20132
20133
20134 else
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20136 $as_echo "no" >&6; }
20137 fi
20138
20139 ac_ext=cpp
20140 ac_cpp='$CXXCPP $CPPFLAGS'
20141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20144
20145
20146
20147
20148
20149 ac_ext=c
20150 ac_cpp='$CPP $CPPFLAGS'
20151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20156 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
20157
20158 cy_save=$CFLAGS
20159
20160 for element in -Wno-overloaded-virtual; do
20161 haveit=
20162 for x in $CFLAGS; do
20163
20164 acl_save_prefix="$prefix"
20165 prefix="$acl_final_prefix"
20166 acl_save_exec_prefix="$exec_prefix"
20167 exec_prefix="$acl_final_exec_prefix"
20168 eval x=\"$x\"
20169 exec_prefix="$acl_save_exec_prefix"
20170 prefix="$acl_save_prefix"
20171
20172 if test "X$x" = "X$element"; then
20173 haveit=yes
20174 break
20175 fi
20176 done
20177 if test -z "$haveit"; then
20178 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20179 fi
20180 done
20181
20182
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20185
20186 _ACEOF
20187 if ac_fn_c_try_compile "$LINENO"; then :
20188 cy_good=1
20189 else
20190 cy_good=0
20191 fi
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193
20194 CFLAGS=$cy_save
20195 if test "x$cy_good" = x1; then :
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20197 $as_echo "yes" >&6; }
20198
20199 for element in -Wno-overloaded-virtual; do
20200 haveit=
20201 for x in $CFLAGS; do
20202
20203 acl_save_prefix="$prefix"
20204 prefix="$acl_final_prefix"
20205 acl_save_exec_prefix="$exec_prefix"
20206 exec_prefix="$acl_final_exec_prefix"
20207 eval x=\"$x\"
20208 exec_prefix="$acl_save_exec_prefix"
20209 prefix="$acl_save_prefix"
20210
20211 if test "X$x" = "X$element"; then
20212 haveit=yes
20213 break
20214 fi
20215 done
20216 if test -z "$haveit"; then
20217 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20218 fi
20219 done
20220
20221
20222 else
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20224 $as_echo "no" >&6; }
20225 fi
20226
20227 ac_ext=cpp
20228 ac_cpp='$CXXCPP $CPPFLAGS'
20229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232
20233
20234
20235 ac_ext=cpp
20236 ac_cpp='$CXXCPP $CPPFLAGS'
20237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20240
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20242 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
20243
20244 cy_save=$CXXFLAGS
20245
20246 for element in -Wno-overloaded-virtual; do
20247 haveit=
20248 for x in $CXXFLAGS; do
20249
20250 acl_save_prefix="$prefix"
20251 prefix="$acl_final_prefix"
20252 acl_save_exec_prefix="$exec_prefix"
20253 exec_prefix="$acl_final_exec_prefix"
20254 eval x=\"$x\"
20255 exec_prefix="$acl_save_exec_prefix"
20256 prefix="$acl_save_prefix"
20257
20258 if test "X$x" = "X$element"; then
20259 haveit=yes
20260 break
20261 fi
20262 done
20263 if test -z "$haveit"; then
20264 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20265 fi
20266 done
20267
20268
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20271
20272 _ACEOF
20273 if ac_fn_cxx_try_compile "$LINENO"; then :
20274 cy_good=1
20275 else
20276 cy_good=0
20277 fi
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279
20280 CXXFLAGS=$cy_save
20281 if test "x$cy_good" = x1; then :
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20283 $as_echo "yes" >&6; }
20284
20285 for element in -Wno-overloaded-virtual; do
20286 haveit=
20287 for x in $CXXFLAGS; do
20288
20289 acl_save_prefix="$prefix"
20290 prefix="$acl_final_prefix"
20291 acl_save_exec_prefix="$exec_prefix"
20292 exec_prefix="$acl_final_exec_prefix"
20293 eval x=\"$x\"
20294 exec_prefix="$acl_save_exec_prefix"
20295 prefix="$acl_save_prefix"
20296
20297 if test "X$x" = "X$element"; then
20298 haveit=yes
20299 break
20300 fi
20301 done
20302 if test -z "$haveit"; then
20303 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20304 fi
20305 done
20306
20307
20308 else
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20310 $as_echo "no" >&6; }
20311 fi
20312
20313 ac_ext=cpp
20314 ac_cpp='$CXXCPP $CPPFLAGS'
20315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20318
20319
20320
20321 ac_ext=mm
20322 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20323 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20326
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20328 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
20329
20330 cy_save=$OBJCXXFLAGS
20331
20332 for element in -Wno-overloaded-virtual; do
20333 haveit=
20334 for x in $OBJCXXFLAGS; do
20335
20336 acl_save_prefix="$prefix"
20337 prefix="$acl_final_prefix"
20338 acl_save_exec_prefix="$exec_prefix"
20339 exec_prefix="$acl_final_exec_prefix"
20340 eval x=\"$x\"
20341 exec_prefix="$acl_save_exec_prefix"
20342 prefix="$acl_save_prefix"
20343
20344 if test "X$x" = "X$element"; then
20345 haveit=yes
20346 break
20347 fi
20348 done
20349 if test -z "$haveit"; then
20350 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20351 fi
20352 done
20353
20354
20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356 /* end confdefs.h. */
20357
20358 _ACEOF
20359 if ac_fn_objcxx_try_compile "$LINENO"; then :
20360 cy_good=1
20361 else
20362 cy_good=0
20363 fi
20364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365
20366 OBJCXXFLAGS=$cy_save
20367 if test "x$cy_good" = x1; then :
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369 $as_echo "yes" >&6; }
20370
20371 for element in -Wno-overloaded-virtual; do
20372 haveit=
20373 for x in $OBJCXXFLAGS; do
20374
20375 acl_save_prefix="$prefix"
20376 prefix="$acl_final_prefix"
20377 acl_save_exec_prefix="$exec_prefix"
20378 exec_prefix="$acl_final_exec_prefix"
20379 eval x=\"$x\"
20380 exec_prefix="$acl_save_exec_prefix"
20381 prefix="$acl_save_prefix"
20382
20383 if test "X$x" = "X$element"; then
20384 haveit=yes
20385 break
20386 fi
20387 done
20388 if test -z "$haveit"; then
20389 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20390 fi
20391 done
20392
20393
20394 else
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396 $as_echo "no" >&6; }
20397 fi
20398
20399 ac_ext=cpp
20400 ac_cpp='$CXXCPP $CPPFLAGS'
20401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20404
20405
20406
20407
20408
20409 ac_ext=c
20410 ac_cpp='$CPP $CPPFLAGS'
20411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20416 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
20417
20418 cy_save=$CFLAGS
20419
20420 for element in -Wno-parentheses; do
20421 haveit=
20422 for x in $CFLAGS; do
20423
20424 acl_save_prefix="$prefix"
20425 prefix="$acl_final_prefix"
20426 acl_save_exec_prefix="$exec_prefix"
20427 exec_prefix="$acl_final_exec_prefix"
20428 eval x=\"$x\"
20429 exec_prefix="$acl_save_exec_prefix"
20430 prefix="$acl_save_prefix"
20431
20432 if test "X$x" = "X$element"; then
20433 haveit=yes
20434 break
20435 fi
20436 done
20437 if test -z "$haveit"; then
20438 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20439 fi
20440 done
20441
20442
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20445
20446 _ACEOF
20447 if ac_fn_c_try_compile "$LINENO"; then :
20448 cy_good=1
20449 else
20450 cy_good=0
20451 fi
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453
20454 CFLAGS=$cy_save
20455 if test "x$cy_good" = x1; then :
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20457 $as_echo "yes" >&6; }
20458
20459 for element in -Wno-parentheses; do
20460 haveit=
20461 for x in $CFLAGS; do
20462
20463 acl_save_prefix="$prefix"
20464 prefix="$acl_final_prefix"
20465 acl_save_exec_prefix="$exec_prefix"
20466 exec_prefix="$acl_final_exec_prefix"
20467 eval x=\"$x\"
20468 exec_prefix="$acl_save_exec_prefix"
20469 prefix="$acl_save_prefix"
20470
20471 if test "X$x" = "X$element"; then
20472 haveit=yes
20473 break
20474 fi
20475 done
20476 if test -z "$haveit"; then
20477 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20478 fi
20479 done
20480
20481
20482 else
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20484 $as_echo "no" >&6; }
20485 fi
20486
20487 ac_ext=cpp
20488 ac_cpp='$CXXCPP $CPPFLAGS'
20489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20492
20493
20494
20495 ac_ext=cpp
20496 ac_cpp='$CXXCPP $CPPFLAGS'
20497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20502 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
20503
20504 cy_save=$CXXFLAGS
20505
20506 for element in -Wno-parentheses; do
20507 haveit=
20508 for x in $CXXFLAGS; do
20509
20510 acl_save_prefix="$prefix"
20511 prefix="$acl_final_prefix"
20512 acl_save_exec_prefix="$exec_prefix"
20513 exec_prefix="$acl_final_exec_prefix"
20514 eval x=\"$x\"
20515 exec_prefix="$acl_save_exec_prefix"
20516 prefix="$acl_save_prefix"
20517
20518 if test "X$x" = "X$element"; then
20519 haveit=yes
20520 break
20521 fi
20522 done
20523 if test -z "$haveit"; then
20524 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20525 fi
20526 done
20527
20528
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531
20532 _ACEOF
20533 if ac_fn_cxx_try_compile "$LINENO"; then :
20534 cy_good=1
20535 else
20536 cy_good=0
20537 fi
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539
20540 CXXFLAGS=$cy_save
20541 if test "x$cy_good" = x1; then :
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543 $as_echo "yes" >&6; }
20544
20545 for element in -Wno-parentheses; do
20546 haveit=
20547 for x in $CXXFLAGS; do
20548
20549 acl_save_prefix="$prefix"
20550 prefix="$acl_final_prefix"
20551 acl_save_exec_prefix="$exec_prefix"
20552 exec_prefix="$acl_final_exec_prefix"
20553 eval x=\"$x\"
20554 exec_prefix="$acl_save_exec_prefix"
20555 prefix="$acl_save_prefix"
20556
20557 if test "X$x" = "X$element"; then
20558 haveit=yes
20559 break
20560 fi
20561 done
20562 if test -z "$haveit"; then
20563 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20564 fi
20565 done
20566
20567
20568 else
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20570 $as_echo "no" >&6; }
20571 fi
20572
20573 ac_ext=cpp
20574 ac_cpp='$CXXCPP $CPPFLAGS'
20575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20578
20579
20580
20581 ac_ext=mm
20582 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20583 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20586
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20588 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
20589
20590 cy_save=$OBJCXXFLAGS
20591
20592 for element in -Wno-parentheses; do
20593 haveit=
20594 for x in $OBJCXXFLAGS; do
20595
20596 acl_save_prefix="$prefix"
20597 prefix="$acl_final_prefix"
20598 acl_save_exec_prefix="$exec_prefix"
20599 exec_prefix="$acl_final_exec_prefix"
20600 eval x=\"$x\"
20601 exec_prefix="$acl_save_exec_prefix"
20602 prefix="$acl_save_prefix"
20603
20604 if test "X$x" = "X$element"; then
20605 haveit=yes
20606 break
20607 fi
20608 done
20609 if test -z "$haveit"; then
20610 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20611 fi
20612 done
20613
20614
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20617
20618 _ACEOF
20619 if ac_fn_objcxx_try_compile "$LINENO"; then :
20620 cy_good=1
20621 else
20622 cy_good=0
20623 fi
20624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625
20626 OBJCXXFLAGS=$cy_save
20627 if test "x$cy_good" = x1; then :
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20629 $as_echo "yes" >&6; }
20630
20631 for element in -Wno-parentheses; do
20632 haveit=
20633 for x in $OBJCXXFLAGS; do
20634
20635 acl_save_prefix="$prefix"
20636 prefix="$acl_final_prefix"
20637 acl_save_exec_prefix="$exec_prefix"
20638 exec_prefix="$acl_final_exec_prefix"
20639 eval x=\"$x\"
20640 exec_prefix="$acl_save_exec_prefix"
20641 prefix="$acl_save_prefix"
20642
20643 if test "X$x" = "X$element"; then
20644 haveit=yes
20645 break
20646 fi
20647 done
20648 if test -z "$haveit"; then
20649 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20650 fi
20651 done
20652
20653
20654 else
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656 $as_echo "no" >&6; }
20657 fi
20658
20659 ac_ext=cpp
20660 ac_cpp='$CXXCPP $CPPFLAGS'
20661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20664
20665
20666
20667
20668
20669 ac_ext=c
20670 ac_cpp='$CPP $CPPFLAGS'
20671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20676 $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20677
20678 cy_save=$CFLAGS
20679
20680 for element in -Wno-tautological-undefined-compare; do
20681 haveit=
20682 for x in $CFLAGS; do
20683
20684 acl_save_prefix="$prefix"
20685 prefix="$acl_final_prefix"
20686 acl_save_exec_prefix="$exec_prefix"
20687 exec_prefix="$acl_final_exec_prefix"
20688 eval x=\"$x\"
20689 exec_prefix="$acl_save_exec_prefix"
20690 prefix="$acl_save_prefix"
20691
20692 if test "X$x" = "X$element"; then
20693 haveit=yes
20694 break
20695 fi
20696 done
20697 if test -z "$haveit"; then
20698 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20699 fi
20700 done
20701
20702
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h. */
20705
20706 _ACEOF
20707 if ac_fn_c_try_compile "$LINENO"; then :
20708 cy_good=1
20709 else
20710 cy_good=0
20711 fi
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713
20714 CFLAGS=$cy_save
20715 if test "x$cy_good" = x1; then :
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20717 $as_echo "yes" >&6; }
20718
20719 for element in -Wno-tautological-undefined-compare; do
20720 haveit=
20721 for x in $CFLAGS; do
20722
20723 acl_save_prefix="$prefix"
20724 prefix="$acl_final_prefix"
20725 acl_save_exec_prefix="$exec_prefix"
20726 exec_prefix="$acl_final_exec_prefix"
20727 eval x=\"$x\"
20728 exec_prefix="$acl_save_exec_prefix"
20729 prefix="$acl_save_prefix"
20730
20731 if test "X$x" = "X$element"; then
20732 haveit=yes
20733 break
20734 fi
20735 done
20736 if test -z "$haveit"; then
20737 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20738 fi
20739 done
20740
20741
20742 else
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744 $as_echo "no" >&6; }
20745 fi
20746
20747 ac_ext=cpp
20748 ac_cpp='$CXXCPP $CPPFLAGS'
20749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20752
20753
20754
20755 ac_ext=cpp
20756 ac_cpp='$CXXCPP $CPPFLAGS'
20757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20762 $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20763
20764 cy_save=$CXXFLAGS
20765
20766 for element in -Wno-tautological-undefined-compare; do
20767 haveit=
20768 for x in $CXXFLAGS; do
20769
20770 acl_save_prefix="$prefix"
20771 prefix="$acl_final_prefix"
20772 acl_save_exec_prefix="$exec_prefix"
20773 exec_prefix="$acl_final_exec_prefix"
20774 eval x=\"$x\"
20775 exec_prefix="$acl_save_exec_prefix"
20776 prefix="$acl_save_prefix"
20777
20778 if test "X$x" = "X$element"; then
20779 haveit=yes
20780 break
20781 fi
20782 done
20783 if test -z "$haveit"; then
20784 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20785 fi
20786 done
20787
20788
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20791
20792 _ACEOF
20793 if ac_fn_cxx_try_compile "$LINENO"; then :
20794 cy_good=1
20795 else
20796 cy_good=0
20797 fi
20798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799
20800 CXXFLAGS=$cy_save
20801 if test "x$cy_good" = x1; then :
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20803 $as_echo "yes" >&6; }
20804
20805 for element in -Wno-tautological-undefined-compare; do
20806 haveit=
20807 for x in $CXXFLAGS; do
20808
20809 acl_save_prefix="$prefix"
20810 prefix="$acl_final_prefix"
20811 acl_save_exec_prefix="$exec_prefix"
20812 exec_prefix="$acl_final_exec_prefix"
20813 eval x=\"$x\"
20814 exec_prefix="$acl_save_exec_prefix"
20815 prefix="$acl_save_prefix"
20816
20817 if test "X$x" = "X$element"; then
20818 haveit=yes
20819 break
20820 fi
20821 done
20822 if test -z "$haveit"; then
20823 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20824 fi
20825 done
20826
20827
20828 else
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 $as_echo "no" >&6; }
20831 fi
20832
20833 ac_ext=cpp
20834 ac_cpp='$CXXCPP $CPPFLAGS'
20835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838
20839
20840
20841 ac_ext=mm
20842 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20843 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20846
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20848 $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20849
20850 cy_save=$OBJCXXFLAGS
20851
20852 for element in -Wno-tautological-undefined-compare; do
20853 haveit=
20854 for x in $OBJCXXFLAGS; do
20855
20856 acl_save_prefix="$prefix"
20857 prefix="$acl_final_prefix"
20858 acl_save_exec_prefix="$exec_prefix"
20859 exec_prefix="$acl_final_exec_prefix"
20860 eval x=\"$x\"
20861 exec_prefix="$acl_save_exec_prefix"
20862 prefix="$acl_save_prefix"
20863
20864 if test "X$x" = "X$element"; then
20865 haveit=yes
20866 break
20867 fi
20868 done
20869 if test -z "$haveit"; then
20870 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20871 fi
20872 done
20873
20874
20875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h. */
20877
20878 _ACEOF
20879 if ac_fn_objcxx_try_compile "$LINENO"; then :
20880 cy_good=1
20881 else
20882 cy_good=0
20883 fi
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885
20886 OBJCXXFLAGS=$cy_save
20887 if test "x$cy_good" = x1; then :
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20889 $as_echo "yes" >&6; }
20890
20891 for element in -Wno-tautological-undefined-compare; do
20892 haveit=
20893 for x in $OBJCXXFLAGS; do
20894
20895 acl_save_prefix="$prefix"
20896 prefix="$acl_final_prefix"
20897 acl_save_exec_prefix="$exec_prefix"
20898 exec_prefix="$acl_final_exec_prefix"
20899 eval x=\"$x\"
20900 exec_prefix="$acl_save_exec_prefix"
20901 prefix="$acl_save_prefix"
20902
20903 if test "X$x" = "X$element"; then
20904 haveit=yes
20905 break
20906 fi
20907 done
20908 if test -z "$haveit"; then
20909 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20910 fi
20911 done
20912
20913
20914 else
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20916 $as_echo "no" >&6; }
20917 fi
20918
20919 ac_ext=cpp
20920 ac_cpp='$CXXCPP $CPPFLAGS'
20921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20924
20925
20926
20927
20928
20929 ac_ext=c
20930 ac_cpp='$CPP $CPPFLAGS'
20931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20936 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20937
20938 cy_save=$CFLAGS
20939
20940 for element in -Wno-unneeded-internal-declaration; do
20941 haveit=
20942 for x in $CFLAGS; do
20943
20944 acl_save_prefix="$prefix"
20945 prefix="$acl_final_prefix"
20946 acl_save_exec_prefix="$exec_prefix"
20947 exec_prefix="$acl_final_exec_prefix"
20948 eval x=\"$x\"
20949 exec_prefix="$acl_save_exec_prefix"
20950 prefix="$acl_save_prefix"
20951
20952 if test "X$x" = "X$element"; then
20953 haveit=yes
20954 break
20955 fi
20956 done
20957 if test -z "$haveit"; then
20958 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20959 fi
20960 done
20961
20962
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20965
20966 _ACEOF
20967 if ac_fn_c_try_compile "$LINENO"; then :
20968 cy_good=1
20969 else
20970 cy_good=0
20971 fi
20972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973
20974 CFLAGS=$cy_save
20975 if test "x$cy_good" = x1; then :
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20977 $as_echo "yes" >&6; }
20978
20979 for element in -Wno-unneeded-internal-declaration; do
20980 haveit=
20981 for x in $CFLAGS; do
20982
20983 acl_save_prefix="$prefix"
20984 prefix="$acl_final_prefix"
20985 acl_save_exec_prefix="$exec_prefix"
20986 exec_prefix="$acl_final_exec_prefix"
20987 eval x=\"$x\"
20988 exec_prefix="$acl_save_exec_prefix"
20989 prefix="$acl_save_prefix"
20990
20991 if test "X$x" = "X$element"; then
20992 haveit=yes
20993 break
20994 fi
20995 done
20996 if test -z "$haveit"; then
20997 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20998 fi
20999 done
21000
21001
21002 else
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21004 $as_echo "no" >&6; }
21005 fi
21006
21007 ac_ext=cpp
21008 ac_cpp='$CXXCPP $CPPFLAGS'
21009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21012
21013
21014
21015 ac_ext=cpp
21016 ac_cpp='$CXXCPP $CPPFLAGS'
21017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21020
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
21022 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
21023
21024 cy_save=$CXXFLAGS
21025
21026 for element in -Wno-unneeded-internal-declaration; do
21027 haveit=
21028 for x in $CXXFLAGS; do
21029
21030 acl_save_prefix="$prefix"
21031 prefix="$acl_final_prefix"
21032 acl_save_exec_prefix="$exec_prefix"
21033 exec_prefix="$acl_final_exec_prefix"
21034 eval x=\"$x\"
21035 exec_prefix="$acl_save_exec_prefix"
21036 prefix="$acl_save_prefix"
21037
21038 if test "X$x" = "X$element"; then
21039 haveit=yes
21040 break
21041 fi
21042 done
21043 if test -z "$haveit"; then
21044 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21045 fi
21046 done
21047
21048
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h. */
21051
21052 _ACEOF
21053 if ac_fn_cxx_try_compile "$LINENO"; then :
21054 cy_good=1
21055 else
21056 cy_good=0
21057 fi
21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059
21060 CXXFLAGS=$cy_save
21061 if test "x$cy_good" = x1; then :
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21063 $as_echo "yes" >&6; }
21064
21065 for element in -Wno-unneeded-internal-declaration; do
21066 haveit=
21067 for x in $CXXFLAGS; do
21068
21069 acl_save_prefix="$prefix"
21070 prefix="$acl_final_prefix"
21071 acl_save_exec_prefix="$exec_prefix"
21072 exec_prefix="$acl_final_exec_prefix"
21073 eval x=\"$x\"
21074 exec_prefix="$acl_save_exec_prefix"
21075 prefix="$acl_save_prefix"
21076
21077 if test "X$x" = "X$element"; then
21078 haveit=yes
21079 break
21080 fi
21081 done
21082 if test -z "$haveit"; then
21083 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21084 fi
21085 done
21086
21087
21088 else
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090 $as_echo "no" >&6; }
21091 fi
21092
21093 ac_ext=cpp
21094 ac_cpp='$CXXCPP $CPPFLAGS'
21095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21098
21099
21100
21101 ac_ext=mm
21102 ac_cpp='$OBJCXXCPP $CPPFLAGS'
21103 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21106
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21108 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
21109
21110 cy_save=$OBJCXXFLAGS
21111
21112 for element in -Wno-unneeded-internal-declaration; do
21113 haveit=
21114 for x in $OBJCXXFLAGS; do
21115
21116 acl_save_prefix="$prefix"
21117 prefix="$acl_final_prefix"
21118 acl_save_exec_prefix="$exec_prefix"
21119 exec_prefix="$acl_final_exec_prefix"
21120 eval x=\"$x\"
21121 exec_prefix="$acl_save_exec_prefix"
21122 prefix="$acl_save_prefix"
21123
21124 if test "X$x" = "X$element"; then
21125 haveit=yes
21126 break
21127 fi
21128 done
21129 if test -z "$haveit"; then
21130 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21131 fi
21132 done
21133
21134
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h. */
21137
21138 _ACEOF
21139 if ac_fn_objcxx_try_compile "$LINENO"; then :
21140 cy_good=1
21141 else
21142 cy_good=0
21143 fi
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145
21146 OBJCXXFLAGS=$cy_save
21147 if test "x$cy_good" = x1; then :
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21149 $as_echo "yes" >&6; }
21150
21151 for element in -Wno-unneeded-internal-declaration; do
21152 haveit=
21153 for x in $OBJCXXFLAGS; do
21154
21155 acl_save_prefix="$prefix"
21156 prefix="$acl_final_prefix"
21157 acl_save_exec_prefix="$exec_prefix"
21158 exec_prefix="$acl_final_exec_prefix"
21159 eval x=\"$x\"
21160 exec_prefix="$acl_save_exec_prefix"
21161 prefix="$acl_save_prefix"
21162
21163 if test "X$x" = "X$element"; then
21164 haveit=yes
21165 break
21166 fi
21167 done
21168 if test -z "$haveit"; then
21169 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21170 fi
21171 done
21172
21173
21174 else
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21176 $as_echo "no" >&6; }
21177 fi
21178
21179 ac_ext=cpp
21180 ac_cpp='$CXXCPP $CPPFLAGS'
21181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184
21185
21186
21187
21188
21189
21190
21191 ac_ext=c
21192 ac_cpp='$CPP $CPPFLAGS'
21193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196
21197 ax_pthread_ok=no
21198
21199 # We used to check for pthread.h first, but this fails if pthread.h
21200 # requires special compiler flags (e.g. on Tru64 or Sequent).
21201 # It gets checked for in the link test anyway.
21202
21203 # First of all, check if the user has set any of the PTHREAD_LIBS,
21204 # etcetera environment variables, and if threads linking works using
21205 # them:
21206 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21207 save_CFLAGS="$CFLAGS"
21208 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21209 save_LIBS="$LIBS"
21210 LIBS="$PTHREAD_LIBS $LIBS"
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21212 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215
21216 /* Override any GCC internal prototype to avoid an error.
21217 Use char because int might match the return type of a GCC
21218 builtin and then its argument prototype would still apply. */
21219 #ifdef __cplusplus
21220 extern "C"
21221 #endif
21222 char pthread_join ();
21223 int
21224 main ()
21225 {
21226 return pthread_join ();
21227 ;
21228 return 0;
21229 }
21230 _ACEOF
21231 if ac_fn_c_try_link "$LINENO"; then :
21232 ax_pthread_ok=yes
21233 fi
21234 rm -f core conftest.err conftest.$ac_objext \
21235 conftest$ac_exeext conftest.$ac_ext
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21237 $as_echo "$ax_pthread_ok" >&6; }
21238 if test x"$ax_pthread_ok" = xno; then
21239 PTHREAD_LIBS=""
21240 PTHREAD_CFLAGS=""
21241 fi
21242 LIBS="$save_LIBS"
21243 CFLAGS="$save_CFLAGS"
21244 fi
21245
21246 # We must check for the threads library under a number of different
21247 # names; the ordering is very important because some systems
21248 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21249 # libraries is broken (non-POSIX).
21250
21251 # Create a list of thread flags to try. Items starting with a "-" are
21252 # C compiler flags, and other items are library names, except for "none"
21253 # which indicates that we try without any flags at all, and "pthread-config"
21254 # which is a program returning the flags for the Pth emulation library.
21255
21256 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
21257
21258 # The ordering *is* (sometimes) important. Some notes on the
21259 # individual items follow:
21260
21261 # pthreads: AIX (must check this before -lpthread)
21262 # none: in case threads are in libc; should be tried before -Kthread and
21263 # other compiler flags to prevent continual compiler warnings
21264 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21265 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21266 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21267 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
21268 # -pthreads: Solaris/gcc
21269 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21270 # doesn't hurt to check since this sometimes defines pthreads and
21271 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
21272 # is present but should not be used directly)
21273 # -mthreads: Mingw32/gcc, Lynx/gcc
21274 # pthread: Linux, etcetera
21275 # --thread-safe: KAI C++
21276 # pthread-config: use pthread-config program (for GNU Pth library)
21277
21278 case $host_os in
21279
21280 hpux*)
21281
21282 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21283 # multi-threading and also sets -lpthread."
21284
21285 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21286 ;;
21287
21288 openedition*)
21289
21290 # IBM z/OS requires a feature-test macro to be defined in order to
21291 # enable POSIX threads at all, so give the user a hint if this is
21292 # not set. (We don't define these ourselves, as they can affect
21293 # other portions of the system API in unpredictable ways.)
21294
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21297
21298 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21299 AX_PTHREAD_ZOS_MISSING
21300 # endif
21301
21302 _ACEOF
21303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21306 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21307 fi
21308 rm -f conftest*
21309
21310 ;;
21311
21312 solaris*)
21313
21314 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21315 # check that first. On some older versions, libc contains stubbed
21316 # (non-functional) versions of the pthreads routines, so link-based
21317 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21318 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21319 # a function called by this macro, so we could check for that, but
21320 # who knows whether they'll stub that too in a future libc.) So
21321 # we'll look for -pthreads and -lpthread shortly thereafter.
21322
21323 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
21324 ;;
21325 esac
21326
21327 # Older versions of Clang only give a warning instead of an error for an
21328 # unrecognized option, unless we specify -Werror. (We throw in some extra
21329 # Clang warning flags for good measure.)
21330
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21332 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21333 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21334 $as_echo_n "(cached) " >&6
21335 else
21336 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21337 save_CFLAGS="$CFLAGS"
21338 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21339 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21341 /* end confdefs.h. */
21342 int foo(void);
21343 int
21344 main ()
21345 {
21346 foo()
21347 ;
21348 return 0;
21349 }
21350 _ACEOF
21351 if ac_fn_c_try_compile "$LINENO"; then :
21352 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
21353 else
21354 ax_cv_PTHREAD_REJECT_UNKNOWN=no
21355 fi
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 CFLAGS="$save_CFLAGS"
21358
21359 fi
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21361 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21362 ax_pthread_extra_flags=
21363 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21364 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21365 fi
21366
21367 if test x"$ax_pthread_ok" = xno; then
21368 for flag in $ax_pthread_flags; do
21369
21370 case $flag in
21371 none)
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21373 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21374 ;;
21375
21376 -mt,pthread)
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21378 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21379 PTHREAD_CFLAGS="-mt"
21380 PTHREAD_LIBS="-lpthread"
21381 ;;
21382
21383 -*)
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21385 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21386 PTHREAD_CFLAGS="$flag"
21387 ;;
21388
21389 pthread-config)
21390 # Extract the first word of "pthread-config", so it can be a program name with args.
21391 set dummy pthread-config; ac_word=$2
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21393 $as_echo_n "checking for $ac_word... " >&6; }
21394 if ${ac_cv_prog_ax_pthread_config+:} false; then :
21395 $as_echo_n "(cached) " >&6
21396 else
21397 if test -n "$ax_pthread_config"; then
21398 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21399 else
21400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21401 for as_dir in $PATH
21402 do
21403 IFS=$as_save_IFS
21404 test -z "$as_dir" && as_dir=.
21405 for ac_exec_ext in '' $ac_executable_extensions; do
21406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21407 ac_cv_prog_ax_pthread_config="yes"
21408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21409 break 2
21410 fi
21411 done
21412 done
21413 IFS=$as_save_IFS
21414
21415 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21416 fi
21417 fi
21418 ax_pthread_config=$ac_cv_prog_ax_pthread_config
21419 if test -n "$ax_pthread_config"; then
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21421 $as_echo "$ax_pthread_config" >&6; }
21422 else
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21425 fi
21426
21427
21428 if test x"$ax_pthread_config" = xno; then continue; fi
21429 PTHREAD_CFLAGS="`pthread-config --cflags`"
21430 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21431 ;;
21432
21433 *)
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21435 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21436 PTHREAD_LIBS="-l$flag"
21437 ;;
21438 esac
21439
21440 save_LIBS="$LIBS"
21441 save_CFLAGS="$CFLAGS"
21442 LIBS="$PTHREAD_LIBS $LIBS"
21443 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21444
21445 # Check for various functions. We must include pthread.h,
21446 # since some functions may be macros. (On the Sequent, we
21447 # need a special flag -Kthread to make this header compile.)
21448 # We check for pthread_join because it is in -lpthread on IRIX
21449 # while pthread_create is in libc. We check for pthread_attr_init
21450 # due to DEC craziness with -lpthreads. We check for
21451 # pthread_cleanup_push because it is one of the few pthread
21452 # functions on Solaris that doesn't have a non-functional libc stub.
21453 # We try pthread_create on general principles.
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21456 #include <pthread.h>
21457 static void routine(void *a) { a = 0; }
21458 static void *start_routine(void *a) { return a; }
21459 int
21460 main ()
21461 {
21462 pthread_t th; pthread_attr_t attr;
21463 pthread_create(&th, 0, start_routine, 0);
21464 pthread_join(th, 0);
21465 pthread_attr_init(&attr);
21466 pthread_cleanup_push(routine, 0);
21467 pthread_cleanup_pop(0) /* ; */
21468 ;
21469 return 0;
21470 }
21471 _ACEOF
21472 if ac_fn_c_try_link "$LINENO"; then :
21473 ax_pthread_ok=yes
21474 fi
21475 rm -f core conftest.err conftest.$ac_objext \
21476 conftest$ac_exeext conftest.$ac_ext
21477
21478 LIBS="$save_LIBS"
21479 CFLAGS="$save_CFLAGS"
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21482 $as_echo "$ax_pthread_ok" >&6; }
21483 if test "x$ax_pthread_ok" = xyes; then
21484 break;
21485 fi
21486
21487 PTHREAD_LIBS=""
21488 PTHREAD_CFLAGS=""
21489 done
21490 fi
21491
21492 # Various other checks:
21493 if test "x$ax_pthread_ok" = xyes; then
21494 save_LIBS="$LIBS"
21495 LIBS="$PTHREAD_LIBS $LIBS"
21496 save_CFLAGS="$CFLAGS"
21497 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21498
21499 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21501 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21502 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21503 $as_echo_n "(cached) " >&6
21504 else
21505 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21506 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21508 /* end confdefs.h. */
21509 #include <pthread.h>
21510 int
21511 main ()
21512 {
21513 int attr = $attr; return attr /* ; */
21514 ;
21515 return 0;
21516 }
21517 _ACEOF
21518 if ac_fn_c_try_link "$LINENO"; then :
21519 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
21520 fi
21521 rm -f core conftest.err conftest.$ac_objext \
21522 conftest$ac_exeext conftest.$ac_ext
21523 done
21524
21525 fi
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21527 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21528 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21529 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
21530
21531 cat >>confdefs.h <<_ACEOF
21532 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
21533 _ACEOF
21534
21535 fi
21536
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21538 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21539 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21540 $as_echo_n "(cached) " >&6
21541 else
21542 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21543 ax_pthread_special_flags_added=no
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21546
21547 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21548 AX_PTHREAD_NEED_SPECIAL_FLAG
21549 # endif
21550
21551 _ACEOF
21552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21553 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21554 case $host_os in
21555 aix* | freebsd*)
21556 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21557 ;;
21558 darwin* | hpux* | osf* | solaris*)
21559 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21560 ;;
21561 esac
21562
21563 fi
21564 rm -f conftest*
21565
21566
21567 fi
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21569 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21570 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21571 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21572 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21573 ax_pthread_special_flags_added=yes
21574 fi
21575
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21577 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21578 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21579 $as_echo_n "(cached) " >&6
21580 else
21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 #include <pthread.h>
21584 int
21585 main ()
21586 {
21587 int i = PTHREAD_PRIO_INHERIT;
21588 ;
21589 return 0;
21590 }
21591 _ACEOF
21592 if ac_fn_c_try_link "$LINENO"; then :
21593 ax_cv_PTHREAD_PRIO_INHERIT=yes
21594 else
21595 ax_cv_PTHREAD_PRIO_INHERIT=no
21596 fi
21597 rm -f core conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext conftest.$ac_ext
21599
21600 fi
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21602 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21603 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21604
21605 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21606
21607 fi
21608
21609 LIBS="$save_LIBS"
21610 CFLAGS="$save_CFLAGS"
21611
21612 # More AIX lossage: compile with *_r variant
21613 if test "x$GCC" != xyes; then
21614 case $host_os in
21615 aix*)
21616 case "x/$CC" in #(
21617 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21618 #handle absolute path differently from PATH based program lookup
21619 case "x$CC" in #(
21620 x/*) :
21621 if as_fn_executable_p ${CC}_r; then :
21622 PTHREAD_CC="${CC}_r"
21623 fi ;; #(
21624 *) :
21625 for ac_prog in ${CC}_r
21626 do
21627 # Extract the first word of "$ac_prog", so it can be a program name with args.
21628 set dummy $ac_prog; ac_word=$2
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21630 $as_echo_n "checking for $ac_word... " >&6; }
21631 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 if test -n "$PTHREAD_CC"; then
21635 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21636 else
21637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638 for as_dir in $PATH
21639 do
21640 IFS=$as_save_IFS
21641 test -z "$as_dir" && as_dir=.
21642 for ac_exec_ext in '' $ac_executable_extensions; do
21643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21644 ac_cv_prog_PTHREAD_CC="$ac_prog"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21646 break 2
21647 fi
21648 done
21649 done
21650 IFS=$as_save_IFS
21651
21652 fi
21653 fi
21654 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21655 if test -n "$PTHREAD_CC"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21657 $as_echo "$PTHREAD_CC" >&6; }
21658 else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 $as_echo "no" >&6; }
21661 fi
21662
21663
21664 test -n "$PTHREAD_CC" && break
21665 done
21666 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21667 ;;
21668 esac ;; #(
21669 *) :
21670 ;;
21671 esac
21672 ;;
21673 esac
21674 fi
21675 fi
21676
21677 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21678
21679
21680
21681
21682
21683 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21684 if test x"$ax_pthread_ok" = xyes; then
21685
21686 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21687
21688 :
21689 else
21690 ax_pthread_ok=no
21691
21692 fi
21693 ac_ext=cpp
21694 ac_cpp='$CXXCPP $CPPFLAGS'
21695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707 # Check whether --enable-javascript was given.
21708 if test "${enable_javascript+set}" = set; then :
21709 enableval=$enable_javascript;
21710 case $enableval in #(
21711 yes) :
21712
21713
21714
21715
21716 cy_save=$LIBS
21717 LIBS=
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21719 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21720 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21721 $as_echo_n "(cached) " >&6
21722 else
21723 ac_func_search_save_LIBS=$LIBS
21724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21725 /* end confdefs.h. */
21726
21727 /* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21730 #ifdef __cplusplus
21731 extern "C"
21732 #endif
21733 char JSEvaluateScript ();
21734 int
21735 main ()
21736 {
21737 return JSEvaluateScript ();
21738 ;
21739 return 0;
21740 }
21741 _ACEOF
21742 for ac_lib in '' JavaScriptCore; do
21743 if test -z "$ac_lib"; then
21744 ac_res="none required"
21745 else
21746 ac_res=-l$ac_lib
21747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21748 fi
21749 if ac_fn_cxx_try_link "$LINENO"; then :
21750 ac_cv_search_JSEvaluateScript=$ac_res
21751 fi
21752 rm -f core conftest.err conftest.$ac_objext \
21753 conftest$ac_exeext
21754 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21755 break
21756 fi
21757 done
21758 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21759
21760 else
21761 ac_cv_search_JSEvaluateScript=no
21762 fi
21763 rm conftest.$ac_ext
21764 LIBS=$ac_func_search_save_LIBS
21765 fi
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21767 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21768 ac_res=$ac_cv_search_JSEvaluateScript
21769 if test "$ac_res" != no; then :
21770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21771
21772 CY_EXECUTE=1
21773
21774
21775 else
21776
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21778 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
21779 if ${ac_cv_framework_JavaScriptCore+:} false; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782
21783 ac_check_framework_save_LIBS=$LIBS
21784 LIBS="-framework JavaScriptCore $LIBS"
21785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h. */
21787
21788 #include <JavaScriptCore/JSBase.h>
21789
21790 int
21791 main ()
21792 {
21793
21794 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21795
21796 ;
21797 return 0;
21798 }
21799 _ACEOF
21800 if ac_fn_cxx_try_link "$LINENO"; then :
21801
21802 ac_cv_framework_JavaScriptCore=yes
21803
21804 else
21805 ac_cv_framework_JavaScriptCore=no
21806 fi
21807 rm -f core conftest.err conftest.$ac_objext \
21808 conftest$ac_exeext conftest.$ac_ext
21809 LIBS=$ac_check_framework_save_LIBS
21810
21811 fi
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21813 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21814 if test $ac_cv_framework_JavaScriptCore = yes; then :
21815
21816
21817 for element in "-framework JavaScriptCore"; do
21818 haveit=
21819 for x in $LIBS; do
21820
21821 acl_save_prefix="$prefix"
21822 prefix="$acl_final_prefix"
21823 acl_save_exec_prefix="$exec_prefix"
21824 exec_prefix="$acl_final_exec_prefix"
21825 eval x=\"$x\"
21826 exec_prefix="$acl_save_exec_prefix"
21827 prefix="$acl_save_prefix"
21828
21829 if test "X$x" = "X$element"; then
21830 haveit=yes
21831 break
21832 fi
21833 done
21834 if test -z "$haveit"; then
21835 LIBS="${LIBS}${LIBS:+ }$element"
21836 fi
21837 done
21838
21839
21840 CY_EXECUTE=1
21841
21842
21843
21844 else
21845
21846 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
21847
21848 pkg_failed=no
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
21850 $as_echo_n "checking for WEBKIT... " >&6; }
21851
21852 if test -n "$WEBKIT_CFLAGS"; then
21853 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21854 elif test -n "$PKG_CONFIG"; then
21855 if test -n "$PKG_CONFIG" && \
21856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21857 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21858 ac_status=$?
21859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21860 test $ac_status = 0; }; then
21861 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
21862 test "x$?" != "x0" && pkg_failed=yes
21863 else
21864 pkg_failed=yes
21865 fi
21866 else
21867 pkg_failed=untried
21868 fi
21869 if test -n "$WEBKIT_LIBS"; then
21870 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21871 elif test -n "$PKG_CONFIG"; then
21872 if test -n "$PKG_CONFIG" && \
21873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21874 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21875 ac_status=$?
21876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21877 test $ac_status = 0; }; then
21878 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
21879 test "x$?" != "x0" && pkg_failed=yes
21880 else
21881 pkg_failed=yes
21882 fi
21883 else
21884 pkg_failed=untried
21885 fi
21886
21887
21888
21889 if test $pkg_failed = yes; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21891 $as_echo "no" >&6; }
21892
21893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21894 _pkg_short_errors_supported=yes
21895 else
21896 _pkg_short_errors_supported=no
21897 fi
21898 if test $_pkg_short_errors_supported = yes; then
21899 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
21900 else
21901 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
21902 fi
21903 # Put the nasty error message in config.log where it belongs
21904 echo "$WEBKIT_PKG_ERRORS" >&5
21905
21906 :
21907 elif test $pkg_failed = untried; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909 $as_echo "no" >&6; }
21910 :
21911 else
21912 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21913 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21915 $as_echo "yes" >&6; }
21916
21917 CY_EXECUTE=1
21918
21919
21920 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21921 haveit=
21922 for x in $CPPFLAGS; do
21923
21924 acl_save_prefix="$prefix"
21925 prefix="$acl_final_prefix"
21926 acl_save_exec_prefix="$exec_prefix"
21927 exec_prefix="$acl_final_exec_prefix"
21928 eval x=\"$x\"
21929 exec_prefix="$acl_save_exec_prefix"
21930 prefix="$acl_save_prefix"
21931
21932 if test "X$x" = "X$element"; then
21933 haveit=yes
21934 break
21935 fi
21936 done
21937 if test -z "$haveit"; then
21938 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21939 fi
21940 done
21941
21942
21943 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
21944 haveit=
21945 for x in $LIBS; do
21946
21947 acl_save_prefix="$prefix"
21948 prefix="$acl_final_prefix"
21949 acl_save_exec_prefix="$exec_prefix"
21950 exec_prefix="$acl_final_exec_prefix"
21951 eval x=\"$x\"
21952 exec_prefix="$acl_save_exec_prefix"
21953 prefix="$acl_save_prefix"
21954
21955 if test "X$x" = "X$element"; then
21956 haveit=yes
21957 break
21958 fi
21959 done
21960 if test -z "$haveit"; then
21961 LIBS="${LIBS}${LIBS:+ }$element"
21962 fi
21963 done
21964
21965
21966 fi; if test "x$CY_EXECUTE" = x1; then break; fi
21967 done
21968
21969 fi
21970 fi
21971
21972 LTJAVASCRIPTCORE=$LIBS
21973 LIBS=$cy_save
21974
21975
21976 ;; #(
21977 no) :
21978
21979 CY_EXECUTE=0
21980 ;; #(
21981 JavaScriptCore) :
21982
21983
21984
21985 cy_save=$LIBS
21986 LIBS=
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21988 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21989 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21990 $as_echo_n "(cached) " >&6
21991 else
21992 ac_func_search_save_LIBS=$LIBS
21993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21994 /* end confdefs.h. */
21995
21996 /* Override any GCC internal prototype to avoid an error.
21997 Use char because int might match the return type of a GCC
21998 builtin and then its argument prototype would still apply. */
21999 #ifdef __cplusplus
22000 extern "C"
22001 #endif
22002 char JSEvaluateScript ();
22003 int
22004 main ()
22005 {
22006 return JSEvaluateScript ();
22007 ;
22008 return 0;
22009 }
22010 _ACEOF
22011 for ac_lib in '' JavaScriptCore; do
22012 if test -z "$ac_lib"; then
22013 ac_res="none required"
22014 else
22015 ac_res=-l$ac_lib
22016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22017 fi
22018 if ac_fn_cxx_try_link "$LINENO"; then :
22019 ac_cv_search_JSEvaluateScript=$ac_res
22020 fi
22021 rm -f core conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext
22023 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22024 break
22025 fi
22026 done
22027 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22028
22029 else
22030 ac_cv_search_JSEvaluateScript=no
22031 fi
22032 rm conftest.$ac_ext
22033 LIBS=$ac_func_search_save_LIBS
22034 fi
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22036 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22037 ac_res=$ac_cv_search_JSEvaluateScript
22038 if test "$ac_res" != no; then :
22039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22040
22041 CY_EXECUTE=1
22042
22043
22044 else
22045
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22047 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
22048 if ${ac_cv_framework_JavaScriptCore+:} false; then :
22049 $as_echo_n "(cached) " >&6
22050 else
22051
22052 ac_check_framework_save_LIBS=$LIBS
22053 LIBS="-framework JavaScriptCore $LIBS"
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h. */
22056
22057 #include <JavaScriptCore/JSBase.h>
22058
22059 int
22060 main ()
22061 {
22062
22063 JSEvaluateScript(0, 0, 0, 0, 0, 0);
22064
22065 ;
22066 return 0;
22067 }
22068 _ACEOF
22069 if ac_fn_cxx_try_link "$LINENO"; then :
22070
22071 ac_cv_framework_JavaScriptCore=yes
22072
22073 else
22074 ac_cv_framework_JavaScriptCore=no
22075 fi
22076 rm -f core conftest.err conftest.$ac_objext \
22077 conftest$ac_exeext conftest.$ac_ext
22078 LIBS=$ac_check_framework_save_LIBS
22079
22080 fi
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22082 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22083 if test $ac_cv_framework_JavaScriptCore = yes; then :
22084
22085
22086 for element in "-framework JavaScriptCore"; do
22087 haveit=
22088 for x in $LIBS; do
22089
22090 acl_save_prefix="$prefix"
22091 prefix="$acl_final_prefix"
22092 acl_save_exec_prefix="$exec_prefix"
22093 exec_prefix="$acl_final_exec_prefix"
22094 eval x=\"$x\"
22095 exec_prefix="$acl_save_exec_prefix"
22096 prefix="$acl_save_prefix"
22097
22098 if test "X$x" = "X$element"; then
22099 haveit=yes
22100 break
22101 fi
22102 done
22103 if test -z "$haveit"; then
22104 LIBS="${LIBS}${LIBS:+ }$element"
22105 fi
22106 done
22107
22108
22109 CY_EXECUTE=1
22110
22111
22112
22113 else
22114
22115 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
22116
22117 pkg_failed=no
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22119 $as_echo_n "checking for WEBKIT... " >&6; }
22120
22121 if test -n "$WEBKIT_CFLAGS"; then
22122 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22123 elif test -n "$PKG_CONFIG"; then
22124 if test -n "$PKG_CONFIG" && \
22125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22126 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22127 ac_status=$?
22128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129 test $ac_status = 0; }; then
22130 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
22131 test "x$?" != "x0" && pkg_failed=yes
22132 else
22133 pkg_failed=yes
22134 fi
22135 else
22136 pkg_failed=untried
22137 fi
22138 if test -n "$WEBKIT_LIBS"; then
22139 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22140 elif test -n "$PKG_CONFIG"; then
22141 if test -n "$PKG_CONFIG" && \
22142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22143 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22144 ac_status=$?
22145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22146 test $ac_status = 0; }; then
22147 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
22148 test "x$?" != "x0" && pkg_failed=yes
22149 else
22150 pkg_failed=yes
22151 fi
22152 else
22153 pkg_failed=untried
22154 fi
22155
22156
22157
22158 if test $pkg_failed = yes; then
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22160 $as_echo "no" >&6; }
22161
22162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22163 _pkg_short_errors_supported=yes
22164 else
22165 _pkg_short_errors_supported=no
22166 fi
22167 if test $_pkg_short_errors_supported = yes; then
22168 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22169 else
22170 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22171 fi
22172 # Put the nasty error message in config.log where it belongs
22173 echo "$WEBKIT_PKG_ERRORS" >&5
22174
22175 :
22176 elif test $pkg_failed = untried; then
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178 $as_echo "no" >&6; }
22179 :
22180 else
22181 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22182 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22184 $as_echo "yes" >&6; }
22185
22186 CY_EXECUTE=1
22187
22188
22189 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22190 haveit=
22191 for x in $CPPFLAGS; do
22192
22193 acl_save_prefix="$prefix"
22194 prefix="$acl_final_prefix"
22195 acl_save_exec_prefix="$exec_prefix"
22196 exec_prefix="$acl_final_exec_prefix"
22197 eval x=\"$x\"
22198 exec_prefix="$acl_save_exec_prefix"
22199 prefix="$acl_save_prefix"
22200
22201 if test "X$x" = "X$element"; then
22202 haveit=yes
22203 break
22204 fi
22205 done
22206 if test -z "$haveit"; then
22207 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22208 fi
22209 done
22210
22211
22212 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22213 haveit=
22214 for x in $LIBS; do
22215
22216 acl_save_prefix="$prefix"
22217 prefix="$acl_final_prefix"
22218 acl_save_exec_prefix="$exec_prefix"
22219 exec_prefix="$acl_final_exec_prefix"
22220 eval x=\"$x\"
22221 exec_prefix="$acl_save_exec_prefix"
22222 prefix="$acl_save_prefix"
22223
22224 if test "X$x" = "X$element"; then
22225 haveit=yes
22226 break
22227 fi
22228 done
22229 if test -z "$haveit"; then
22230 LIBS="${LIBS}${LIBS:+ }$element"
22231 fi
22232 done
22233
22234
22235 fi; if test "x$CY_EXECUTE" = x1; then break; fi
22236 done
22237
22238 fi
22239 fi
22240
22241 LTJAVASCRIPTCORE=$LIBS
22242 LIBS=$cy_save
22243
22244
22245 ;; #(
22246 *) :
22247 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22248 esac
22249
22250 else
22251
22252
22253
22254 cy_save=$LIBS
22255 LIBS=
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22257 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22258 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22259 $as_echo_n "(cached) " >&6
22260 else
22261 ac_func_search_save_LIBS=$LIBS
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22264
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char JSEvaluateScript ();
22272 int
22273 main ()
22274 {
22275 return JSEvaluateScript ();
22276 ;
22277 return 0;
22278 }
22279 _ACEOF
22280 for ac_lib in '' JavaScriptCore; do
22281 if test -z "$ac_lib"; then
22282 ac_res="none required"
22283 else
22284 ac_res=-l$ac_lib
22285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22286 fi
22287 if ac_fn_cxx_try_link "$LINENO"; then :
22288 ac_cv_search_JSEvaluateScript=$ac_res
22289 fi
22290 rm -f core conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext
22292 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22293 break
22294 fi
22295 done
22296 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22297
22298 else
22299 ac_cv_search_JSEvaluateScript=no
22300 fi
22301 rm conftest.$ac_ext
22302 LIBS=$ac_func_search_save_LIBS
22303 fi
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22305 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22306 ac_res=$ac_cv_search_JSEvaluateScript
22307 if test "$ac_res" != no; then :
22308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22309
22310 CY_EXECUTE=1
22311
22312
22313 else
22314
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22316 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
22317 if ${ac_cv_framework_JavaScriptCore+:} false; then :
22318 $as_echo_n "(cached) " >&6
22319 else
22320
22321 ac_check_framework_save_LIBS=$LIBS
22322 LIBS="-framework JavaScriptCore $LIBS"
22323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h. */
22325
22326 #include <JavaScriptCore/JSBase.h>
22327
22328 int
22329 main ()
22330 {
22331
22332 JSEvaluateScript(0, 0, 0, 0, 0, 0);
22333
22334 ;
22335 return 0;
22336 }
22337 _ACEOF
22338 if ac_fn_cxx_try_link "$LINENO"; then :
22339
22340 ac_cv_framework_JavaScriptCore=yes
22341
22342 else
22343 ac_cv_framework_JavaScriptCore=no
22344 fi
22345 rm -f core conftest.err conftest.$ac_objext \
22346 conftest$ac_exeext conftest.$ac_ext
22347 LIBS=$ac_check_framework_save_LIBS
22348
22349 fi
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22351 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22352 if test $ac_cv_framework_JavaScriptCore = yes; then :
22353
22354
22355 for element in "-framework JavaScriptCore"; do
22356 haveit=
22357 for x in $LIBS; do
22358
22359 acl_save_prefix="$prefix"
22360 prefix="$acl_final_prefix"
22361 acl_save_exec_prefix="$exec_prefix"
22362 exec_prefix="$acl_final_exec_prefix"
22363 eval x=\"$x\"
22364 exec_prefix="$acl_save_exec_prefix"
22365 prefix="$acl_save_prefix"
22366
22367 if test "X$x" = "X$element"; then
22368 haveit=yes
22369 break
22370 fi
22371 done
22372 if test -z "$haveit"; then
22373 LIBS="${LIBS}${LIBS:+ }$element"
22374 fi
22375 done
22376
22377
22378 CY_EXECUTE=1
22379
22380
22381
22382 else
22383
22384 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
22385
22386 pkg_failed=no
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22388 $as_echo_n "checking for WEBKIT... " >&6; }
22389
22390 if test -n "$WEBKIT_CFLAGS"; then
22391 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22392 elif test -n "$PKG_CONFIG"; then
22393 if test -n "$PKG_CONFIG" && \
22394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22395 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22396 ac_status=$?
22397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22398 test $ac_status = 0; }; then
22399 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
22400 test "x$?" != "x0" && pkg_failed=yes
22401 else
22402 pkg_failed=yes
22403 fi
22404 else
22405 pkg_failed=untried
22406 fi
22407 if test -n "$WEBKIT_LIBS"; then
22408 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22409 elif test -n "$PKG_CONFIG"; then
22410 if test -n "$PKG_CONFIG" && \
22411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22412 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22413 ac_status=$?
22414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22415 test $ac_status = 0; }; then
22416 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
22417 test "x$?" != "x0" && pkg_failed=yes
22418 else
22419 pkg_failed=yes
22420 fi
22421 else
22422 pkg_failed=untried
22423 fi
22424
22425
22426
22427 if test $pkg_failed = yes; then
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22429 $as_echo "no" >&6; }
22430
22431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22432 _pkg_short_errors_supported=yes
22433 else
22434 _pkg_short_errors_supported=no
22435 fi
22436 if test $_pkg_short_errors_supported = yes; then
22437 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22438 else
22439 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22440 fi
22441 # Put the nasty error message in config.log where it belongs
22442 echo "$WEBKIT_PKG_ERRORS" >&5
22443
22444 :
22445 elif test $pkg_failed = untried; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22447 $as_echo "no" >&6; }
22448 :
22449 else
22450 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22451 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22453 $as_echo "yes" >&6; }
22454
22455 CY_EXECUTE=1
22456
22457
22458 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22459 haveit=
22460 for x in $CPPFLAGS; do
22461
22462 acl_save_prefix="$prefix"
22463 prefix="$acl_final_prefix"
22464 acl_save_exec_prefix="$exec_prefix"
22465 exec_prefix="$acl_final_exec_prefix"
22466 eval x=\"$x\"
22467 exec_prefix="$acl_save_exec_prefix"
22468 prefix="$acl_save_prefix"
22469
22470 if test "X$x" = "X$element"; then
22471 haveit=yes
22472 break
22473 fi
22474 done
22475 if test -z "$haveit"; then
22476 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22477 fi
22478 done
22479
22480
22481 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22482 haveit=
22483 for x in $LIBS; do
22484
22485 acl_save_prefix="$prefix"
22486 prefix="$acl_final_prefix"
22487 acl_save_exec_prefix="$exec_prefix"
22488 exec_prefix="$acl_final_exec_prefix"
22489 eval x=\"$x\"
22490 exec_prefix="$acl_save_exec_prefix"
22491 prefix="$acl_save_prefix"
22492
22493 if test "X$x" = "X$element"; then
22494 haveit=yes
22495 break
22496 fi
22497 done
22498 if test -z "$haveit"; then
22499 LIBS="${LIBS}${LIBS:+ }$element"
22500 fi
22501 done
22502
22503
22504 fi; if test "x$CY_EXECUTE" = x1; then break; fi
22505 done
22506
22507 fi
22508 fi
22509
22510 LTJAVASCRIPTCORE=$LIBS
22511 LIBS=$cy_save
22512
22513
22514
22515 fi
22516
22517
22518 # Check whether --enable-console was given.
22519 if test "${enable_console+set}" = set; then :
22520 enableval=$enable_console;
22521 fi
22522
22523 if test "x$enable_console" != "xno"; then
22524 CY_CONSOLE_TRUE=
22525 CY_CONSOLE_FALSE='#'
22526 else
22527 CY_CONSOLE_TRUE='#'
22528 CY_CONSOLE_FALSE=
22529 fi
22530
22531
22532 # Check whether --enable-attach was given.
22533 if test "${enable_attach+set}" = set; then :
22534 enableval=$enable_attach;
22535 fi
22536
22537 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22538 CY_ATTACH_TRUE=
22539 CY_ATTACH_FALSE='#'
22540 else
22541 CY_ATTACH_TRUE='#'
22542 CY_ATTACH_FALSE=
22543 fi
22544
22545
22546
22547
22548 if test "x$CY_EXECUTE" = x1; then
22549 CY_EXECUTE_TRUE=
22550 CY_EXECUTE_FALSE='#'
22551 else
22552 CY_EXECUTE_TRUE='#'
22553 CY_EXECUTE_FALSE=
22554 fi
22555
22556
22557 if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22558
22559
22560
22561 case $CY_EXECUTE in #(
22562 1) :
22563
22564
22565 cy_save=$LIBS
22566 LIBS=
22567 for ac_header in uv.h
22568 do :
22569 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22570 if test "x$ac_cv_header_uv_h" = xyes; then :
22571 cat >>confdefs.h <<_ACEOF
22572 #define HAVE_UV_H 1
22573 _ACEOF
22574
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22576 $as_echo_n "checking for library containing uv_loop_init... " >&6; }
22577 if ${ac_cv_search_uv_loop_init+:} false; then :
22578 $as_echo_n "(cached) " >&6
22579 else
22580 ac_func_search_save_LIBS=$LIBS
22581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22582 /* end confdefs.h. */
22583
22584 /* Override any GCC internal prototype to avoid an error.
22585 Use char because int might match the return type of a GCC
22586 builtin and then its argument prototype would still apply. */
22587 #ifdef __cplusplus
22588 extern "C"
22589 #endif
22590 char uv_loop_init ();
22591 int
22592 main ()
22593 {
22594 return uv_loop_init ();
22595 ;
22596 return 0;
22597 }
22598 _ACEOF
22599 for ac_lib in '' uv; do
22600 if test -z "$ac_lib"; then
22601 ac_res="none required"
22602 else
22603 ac_res=-l$ac_lib
22604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22605 fi
22606 if ac_fn_cxx_try_link "$LINENO"; then :
22607 ac_cv_search_uv_loop_init=$ac_res
22608 fi
22609 rm -f core conftest.err conftest.$ac_objext \
22610 conftest$ac_exeext
22611 if ${ac_cv_search_uv_loop_init+:} false; then :
22612 break
22613 fi
22614 done
22615 if ${ac_cv_search_uv_loop_init+:} false; then :
22616
22617 else
22618 ac_cv_search_uv_loop_init=no
22619 fi
22620 rm conftest.$ac_ext
22621 LIBS=$ac_func_search_save_LIBS
22622 fi
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22624 $as_echo "$ac_cv_search_uv_loop_init" >&6; }
22625 ac_res=$ac_cv_search_uv_loop_init
22626 if test "$ac_res" != no; then :
22627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22628
22629 fi
22630
22631
22632 fi
22633
22634 done
22635
22636 LTLIBUV=$LIBS
22637 LIBS=$cy_save
22638
22639
22640
22641
22642 cy_save=$LIBS
22643 LIBS=
22644 for ac_header in sqlite3.h
22645 do :
22646 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22647 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22648 cat >>confdefs.h <<_ACEOF
22649 #define HAVE_SQLITE3_H 1
22650 _ACEOF
22651
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22653 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22654 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 ac_func_search_save_LIBS=$LIBS
22658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659 /* end confdefs.h. */
22660
22661 /* Override any GCC internal prototype to avoid an error.
22662 Use char because int might match the return type of a GCC
22663 builtin and then its argument prototype would still apply. */
22664 #ifdef __cplusplus
22665 extern "C"
22666 #endif
22667 char sqlite3_open_v2 ();
22668 int
22669 main ()
22670 {
22671 return sqlite3_open_v2 ();
22672 ;
22673 return 0;
22674 }
22675 _ACEOF
22676 for ac_lib in '' sqlite3 sqlite; do
22677 if test -z "$ac_lib"; then
22678 ac_res="none required"
22679 else
22680 ac_res=-l$ac_lib
22681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22682 fi
22683 if ac_fn_cxx_try_link "$LINENO"; then :
22684 ac_cv_search_sqlite3_open_v2=$ac_res
22685 fi
22686 rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext
22688 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22689 break
22690 fi
22691 done
22692 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22693
22694 else
22695 ac_cv_search_sqlite3_open_v2=no
22696 fi
22697 rm conftest.$ac_ext
22698 LIBS=$ac_func_search_save_LIBS
22699 fi
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22701 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22702 ac_res=$ac_cv_search_sqlite3_open_v2
22703 if test "$ac_res" != no; then :
22704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22705
22706 fi
22707
22708
22709 fi
22710
22711 done
22712
22713 LTLIBSQLITE3=$LIBS
22714 LIBS=$cy_save
22715
22716
22717
22718 for ac_header in ffi.h ffi/ffi.h
22719 do :
22720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22721 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22723 cat >>confdefs.h <<_ACEOF
22724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22725 _ACEOF
22726 break
22727 fi
22728
22729 done
22730
22731
22732
22733 cy_save=$LIBS
22734 LIBS=
22735 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
22736
22737
22738
22739 pkg_failed=no
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22741 $as_echo_n "checking for LIBFFI... " >&6; }
22742
22743 if test -n "$LIBFFI_CFLAGS"; then
22744 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
22745 elif test -n "$PKG_CONFIG"; then
22746 if test -n "$PKG_CONFIG" && \
22747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22748 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22749 ac_status=$?
22750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22751 test $ac_status = 0; }; then
22752 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
22753 test "x$?" != "x0" && pkg_failed=yes
22754 else
22755 pkg_failed=yes
22756 fi
22757 else
22758 pkg_failed=untried
22759 fi
22760 if test -n "$LIBFFI_LIBS"; then
22761 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
22762 elif test -n "$PKG_CONFIG"; then
22763 if test -n "$PKG_CONFIG" && \
22764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22765 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22766 ac_status=$?
22767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22768 test $ac_status = 0; }; then
22769 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
22770 test "x$?" != "x0" && pkg_failed=yes
22771 else
22772 pkg_failed=yes
22773 fi
22774 else
22775 pkg_failed=untried
22776 fi
22777
22778
22779
22780 if test $pkg_failed = yes; then
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782 $as_echo "no" >&6; }
22783
22784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22785 _pkg_short_errors_supported=yes
22786 else
22787 _pkg_short_errors_supported=no
22788 fi
22789 if test $_pkg_short_errors_supported = yes; then
22790 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
22791 else
22792 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
22793 fi
22794 # Put the nasty error message in config.log where it belongs
22795 echo "$LIBFFI_PKG_ERRORS" >&5
22796
22797 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22798 elif test $pkg_failed = untried; then
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22800 $as_echo "no" >&6; }
22801 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22802 else
22803 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22804 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22806 $as_echo "yes" >&6; }
22807
22808
22809 for element in `$PKG_CONFIG --cflags libffi`; do
22810 haveit=
22811 for x in $CPPFLAGS; do
22812
22813 acl_save_prefix="$prefix"
22814 prefix="$acl_final_prefix"
22815 acl_save_exec_prefix="$exec_prefix"
22816 exec_prefix="$acl_final_exec_prefix"
22817 eval x=\"$x\"
22818 exec_prefix="$acl_save_exec_prefix"
22819 prefix="$acl_save_prefix"
22820
22821 if test "X$x" = "X$element"; then
22822 haveit=yes
22823 break
22824 fi
22825 done
22826 if test -z "$haveit"; then
22827 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22828 fi
22829 done
22830
22831
22832 for element in `$PKG_CONFIG --libs libffi`; do
22833 haveit=
22834 for x in $LIBS; do
22835
22836 acl_save_prefix="$prefix"
22837 prefix="$acl_final_prefix"
22838 acl_save_exec_prefix="$exec_prefix"
22839 exec_prefix="$acl_final_exec_prefix"
22840 eval x=\"$x\"
22841 exec_prefix="$acl_save_exec_prefix"
22842 prefix="$acl_save_prefix"
22843
22844 if test "X$x" = "X$element"; then
22845 haveit=yes
22846 break
22847 fi
22848 done
22849 if test -z "$haveit"; then
22850 LIBS="${LIBS}${LIBS:+ }$element"
22851 fi
22852 done
22853
22854
22855 fi
22856
22857 else
22858
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22860 $as_echo_n "checking for library containing ffi_call... " >&6; }
22861 if ${ac_cv_search_ffi_call+:} false; then :
22862 $as_echo_n "(cached) " >&6
22863 else
22864 ac_func_search_save_LIBS=$LIBS
22865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h. */
22867
22868 /* Override any GCC internal prototype to avoid an error.
22869 Use char because int might match the return type of a GCC
22870 builtin and then its argument prototype would still apply. */
22871 #ifdef __cplusplus
22872 extern "C"
22873 #endif
22874 char ffi_call ();
22875 int
22876 main ()
22877 {
22878 return ffi_call ();
22879 ;
22880 return 0;
22881 }
22882 _ACEOF
22883 for ac_lib in '' ffi; do
22884 if test -z "$ac_lib"; then
22885 ac_res="none required"
22886 else
22887 ac_res=-l$ac_lib
22888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22889 fi
22890 if ac_fn_cxx_try_link "$LINENO"; then :
22891 ac_cv_search_ffi_call=$ac_res
22892 fi
22893 rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext
22895 if ${ac_cv_search_ffi_call+:} false; then :
22896 break
22897 fi
22898 done
22899 if ${ac_cv_search_ffi_call+:} false; then :
22900
22901 else
22902 ac_cv_search_ffi_call=no
22903 fi
22904 rm conftest.$ac_ext
22905 LIBS=$ac_func_search_save_LIBS
22906 fi
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22908 $as_echo "$ac_cv_search_ffi_call" >&6; }
22909 ac_res=$ac_cv_search_ffi_call
22910 if test "$ac_res" != no; then :
22911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22912
22913 fi
22914
22915 case $ac_cv_search_ffi_call in #(
22916 no) :
22917
22918
22919 pkg_failed=no
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22921 $as_echo_n "checking for LIBFFI... " >&6; }
22922
22923 if test -n "$LIBFFI_CFLAGS"; then
22924 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
22925 elif test -n "$PKG_CONFIG"; then
22926 if test -n "$PKG_CONFIG" && \
22927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22928 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22929 ac_status=$?
22930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22931 test $ac_status = 0; }; then
22932 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
22933 test "x$?" != "x0" && pkg_failed=yes
22934 else
22935 pkg_failed=yes
22936 fi
22937 else
22938 pkg_failed=untried
22939 fi
22940 if test -n "$LIBFFI_LIBS"; then
22941 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
22942 elif test -n "$PKG_CONFIG"; then
22943 if test -n "$PKG_CONFIG" && \
22944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22945 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22946 ac_status=$?
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; then
22949 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
22950 test "x$?" != "x0" && pkg_failed=yes
22951 else
22952 pkg_failed=yes
22953 fi
22954 else
22955 pkg_failed=untried
22956 fi
22957
22958
22959
22960 if test $pkg_failed = yes; then
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22962 $as_echo "no" >&6; }
22963
22964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22965 _pkg_short_errors_supported=yes
22966 else
22967 _pkg_short_errors_supported=no
22968 fi
22969 if test $_pkg_short_errors_supported = yes; then
22970 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
22971 else
22972 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
22973 fi
22974 # Put the nasty error message in config.log where it belongs
22975 echo "$LIBFFI_PKG_ERRORS" >&5
22976
22977 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22978 elif test $pkg_failed = untried; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980 $as_echo "no" >&6; }
22981 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22982 else
22983 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22984 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22986 $as_echo "yes" >&6; }
22987
22988
22989 for element in `$PKG_CONFIG --cflags libffi`; do
22990 haveit=
22991 for x in $CPPFLAGS; do
22992
22993 acl_save_prefix="$prefix"
22994 prefix="$acl_final_prefix"
22995 acl_save_exec_prefix="$exec_prefix"
22996 exec_prefix="$acl_final_exec_prefix"
22997 eval x=\"$x\"
22998 exec_prefix="$acl_save_exec_prefix"
22999 prefix="$acl_save_prefix"
23000
23001 if test "X$x" = "X$element"; then
23002 haveit=yes
23003 break
23004 fi
23005 done
23006 if test -z "$haveit"; then
23007 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23008 fi
23009 done
23010
23011
23012 for element in `$PKG_CONFIG --libs libffi`; do
23013 haveit=
23014 for x in $LIBS; do
23015
23016 acl_save_prefix="$prefix"
23017 prefix="$acl_final_prefix"
23018 acl_save_exec_prefix="$exec_prefix"
23019 exec_prefix="$acl_final_exec_prefix"
23020 eval x=\"$x\"
23021 exec_prefix="$acl_save_exec_prefix"
23022 prefix="$acl_save_prefix"
23023
23024 if test "X$x" = "X$element"; then
23025 haveit=yes
23026 break
23027 fi
23028 done
23029 if test -z "$haveit"; then
23030 LIBS="${LIBS}${LIBS:+ }$element"
23031 fi
23032 done
23033
23034
23035 fi ;; #(
23036 *) :
23037 ;;
23038 esac
23039 for ac_func in ffi_prep_cif_var
23040 do :
23041 ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var"
23042 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then :
23043 cat >>confdefs.h <<_ACEOF
23044 #define HAVE_FFI_PREP_CIF_VAR 1
23045 _ACEOF
23046
23047 fi
23048 done
23049
23050
23051 fi
23052 LTLIBFFI=$LIBS
23053 LIBS=$cy_save
23054
23055
23056
23057
23058 cy_save=$LIBS
23059 LIBS=
23060
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
23062 $as_echo_n "checking for framework JavaVM... " >&6; }
23063 if ${ac_cv_framework_JavaVM+:} false; then :
23064 $as_echo_n "(cached) " >&6
23065 else
23066
23067 ac_check_framework_save_LIBS=$LIBS
23068 LIBS="-framework JavaVM $LIBS"
23069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070 /* end confdefs.h. */
23071
23072 #include <JavaVM/jni.h>
23073
23074 int
23075 main ()
23076 {
23077 JNI_GetCreatedJavaVMs(NULL, 0, NULL);
23078 ;
23079 return 0;
23080 }
23081 _ACEOF
23082 if ac_fn_cxx_try_link "$LINENO"; then :
23083
23084 ac_cv_framework_JavaVM=yes
23085
23086 else
23087 ac_cv_framework_JavaVM=no
23088 fi
23089 rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23091 LIBS=$ac_check_framework_save_LIBS
23092
23093 fi
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
23095 $as_echo "$ac_cv_framework_JavaVM" >&6; }
23096 if test $ac_cv_framework_JavaVM = yes; then :
23097
23098
23099 for element in "-framework JavaVM"; do
23100 haveit=
23101 for x in $LIBS; do
23102
23103 acl_save_prefix="$prefix"
23104 prefix="$acl_final_prefix"
23105 acl_save_exec_prefix="$exec_prefix"
23106 exec_prefix="$acl_final_exec_prefix"
23107 eval x=\"$x\"
23108 exec_prefix="$acl_save_exec_prefix"
23109 prefix="$acl_save_prefix"
23110
23111 if test "X$x" = "X$element"; then
23112 haveit=yes
23113 break
23114 fi
23115 done
23116 if test -z "$haveit"; then
23117 LIBS="${LIBS}${LIBS:+ }$element"
23118 fi
23119 done
23120
23121
23122 CY_JAVA=1
23123
23124
23125
23126 else
23127 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
23128 if test "x$ac_cv_header_jni_h" = xyes; then :
23129
23130 CY_JAVA=1
23131
23132
23133 else
23134
23135 CY_JAVA=0
23136
23137
23138 fi
23139
23140
23141 fi
23142 LTJAVA=$LIBS
23143 LIBS=$cy_save
23144
23145
23146
23147
23148 cy_save=$LIBS
23149 LIBS=
23150
23151 pkg_failed=no
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRUBY21" >&5
23153 $as_echo_n "checking for LIBRUBY21... " >&6; }
23154
23155 if test -n "$LIBRUBY21_CFLAGS"; then
23156 pkg_cv_LIBRUBY21_CFLAGS="$LIBRUBY21_CFLAGS"
23157 elif test -n "$PKG_CONFIG"; then
23158 if test -n "$PKG_CONFIG" && \
23159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23160 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23161 ac_status=$?
23162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163 test $ac_status = 0; }; then
23164 pkg_cv_LIBRUBY21_CFLAGS=`$PKG_CONFIG --cflags "ruby-2.1" 2>/dev/null`
23165 test "x$?" != "x0" && pkg_failed=yes
23166 else
23167 pkg_failed=yes
23168 fi
23169 else
23170 pkg_failed=untried
23171 fi
23172 if test -n "$LIBRUBY21_LIBS"; then
23173 pkg_cv_LIBRUBY21_LIBS="$LIBRUBY21_LIBS"
23174 elif test -n "$PKG_CONFIG"; then
23175 if test -n "$PKG_CONFIG" && \
23176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23177 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23178 ac_status=$?
23179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180 test $ac_status = 0; }; then
23181 pkg_cv_LIBRUBY21_LIBS=`$PKG_CONFIG --libs "ruby-2.1" 2>/dev/null`
23182 test "x$?" != "x0" && pkg_failed=yes
23183 else
23184 pkg_failed=yes
23185 fi
23186 else
23187 pkg_failed=untried
23188 fi
23189
23190
23191
23192 if test $pkg_failed = yes; then
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194 $as_echo "no" >&6; }
23195
23196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23197 _pkg_short_errors_supported=yes
23198 else
23199 _pkg_short_errors_supported=no
23200 fi
23201 if test $_pkg_short_errors_supported = yes; then
23202 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby-2.1" 2>&1`
23203 else
23204 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby-2.1" 2>&1`
23205 fi
23206 # Put the nasty error message in config.log where it belongs
23207 echo "$LIBRUBY21_PKG_ERRORS" >&5
23208
23209
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23211 $as_echo_n "checking for framework Ruby... " >&6; }
23212 if ${ac_cv_framework_Ruby+:} false; then :
23213 $as_echo_n "(cached) " >&6
23214 else
23215
23216 ac_check_framework_save_LIBS=$LIBS
23217 LIBS="-framework Ruby $LIBS"
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219 /* end confdefs.h. */
23220
23221 #include <Ruby/ruby.h>
23222
23223 int
23224 main ()
23225 {
23226 ruby_init();
23227 ;
23228 return 0;
23229 }
23230 _ACEOF
23231 if ac_fn_cxx_try_link "$LINENO"; then :
23232
23233 ac_cv_framework_Ruby=yes
23234
23235 else
23236 ac_cv_framework_Ruby=no
23237 fi
23238 rm -f core conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_framework_save_LIBS
23241
23242 fi
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23244 $as_echo "$ac_cv_framework_Ruby" >&6; }
23245 if test $ac_cv_framework_Ruby = yes; then :
23246
23247
23248 for element in "-framework Ruby"; do
23249 haveit=
23250 for x in $LIBS; do
23251
23252 acl_save_prefix="$prefix"
23253 prefix="$acl_final_prefix"
23254 acl_save_exec_prefix="$exec_prefix"
23255 exec_prefix="$acl_final_exec_prefix"
23256 eval x=\"$x\"
23257 exec_prefix="$acl_save_exec_prefix"
23258 prefix="$acl_save_prefix"
23259
23260 if test "X$x" = "X$element"; then
23261 haveit=yes
23262 break
23263 fi
23264 done
23265 if test -z "$haveit"; then
23266 LIBS="${LIBS}${LIBS:+ }$element"
23267 fi
23268 done
23269
23270
23271 CY_RUBY=1
23272
23273
23274
23275 else
23276 for ac_header in ruby.h
23277 do :
23278 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23279 if test "x$ac_cv_header_ruby_h" = xyes; then :
23280 cat >>confdefs.h <<_ACEOF
23281 #define HAVE_RUBY_H 1
23282 _ACEOF
23283
23284 CY_RUBY=1
23285
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
23287 $as_echo_n "checking for library containing ruby_init... " >&6; }
23288 if ${ac_cv_search_ruby_init+:} false; then :
23289 $as_echo_n "(cached) " >&6
23290 else
23291 ac_func_search_save_LIBS=$LIBS
23292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23293 /* end confdefs.h. */
23294
23295 /* Override any GCC internal prototype to avoid an error.
23296 Use char because int might match the return type of a GCC
23297 builtin and then its argument prototype would still apply. */
23298 #ifdef __cplusplus
23299 extern "C"
23300 #endif
23301 char ruby_init ();
23302 int
23303 main ()
23304 {
23305 return ruby_init ();
23306 ;
23307 return 0;
23308 }
23309 _ACEOF
23310 for ac_lib in '' ruby; do
23311 if test -z "$ac_lib"; then
23312 ac_res="none required"
23313 else
23314 ac_res=-l$ac_lib
23315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23316 fi
23317 if ac_fn_cxx_try_link "$LINENO"; then :
23318 ac_cv_search_ruby_init=$ac_res
23319 fi
23320 rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext
23322 if ${ac_cv_search_ruby_init+:} false; then :
23323 break
23324 fi
23325 done
23326 if ${ac_cv_search_ruby_init+:} false; then :
23327
23328 else
23329 ac_cv_search_ruby_init=no
23330 fi
23331 rm conftest.$ac_ext
23332 LIBS=$ac_func_search_save_LIBS
23333 fi
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23335 $as_echo "$ac_cv_search_ruby_init" >&6; }
23336 ac_res=$ac_cv_search_ruby_init
23337 if test "$ac_res" != no; then :
23338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23339
23340
23341 fi
23342
23343
23344 else
23345
23346 CY_RUBY=0
23347
23348
23349 fi
23350
23351 done
23352
23353 fi
23354 elif test $pkg_failed = untried; then
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23356 $as_echo "no" >&6; }
23357
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23359 $as_echo_n "checking for framework Ruby... " >&6; }
23360 if ${ac_cv_framework_Ruby+:} false; then :
23361 $as_echo_n "(cached) " >&6
23362 else
23363
23364 ac_check_framework_save_LIBS=$LIBS
23365 LIBS="-framework Ruby $LIBS"
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23368
23369 #include <Ruby/ruby.h>
23370
23371 int
23372 main ()
23373 {
23374 ruby_init();
23375 ;
23376 return 0;
23377 }
23378 _ACEOF
23379 if ac_fn_cxx_try_link "$LINENO"; then :
23380
23381 ac_cv_framework_Ruby=yes
23382
23383 else
23384 ac_cv_framework_Ruby=no
23385 fi
23386 rm -f core conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
23388 LIBS=$ac_check_framework_save_LIBS
23389
23390 fi
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23392 $as_echo "$ac_cv_framework_Ruby" >&6; }
23393 if test $ac_cv_framework_Ruby = yes; then :
23394
23395
23396 for element in "-framework Ruby"; do
23397 haveit=
23398 for x in $LIBS; do
23399
23400 acl_save_prefix="$prefix"
23401 prefix="$acl_final_prefix"
23402 acl_save_exec_prefix="$exec_prefix"
23403 exec_prefix="$acl_final_exec_prefix"
23404 eval x=\"$x\"
23405 exec_prefix="$acl_save_exec_prefix"
23406 prefix="$acl_save_prefix"
23407
23408 if test "X$x" = "X$element"; then
23409 haveit=yes
23410 break
23411 fi
23412 done
23413 if test -z "$haveit"; then
23414 LIBS="${LIBS}${LIBS:+ }$element"
23415 fi
23416 done
23417
23418
23419 CY_RUBY=1
23420
23421
23422
23423 else
23424 for ac_header in ruby.h
23425 do :
23426 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23427 if test "x$ac_cv_header_ruby_h" = xyes; then :
23428 cat >>confdefs.h <<_ACEOF
23429 #define HAVE_RUBY_H 1
23430 _ACEOF
23431
23432 CY_RUBY=1
23433
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
23435 $as_echo_n "checking for library containing ruby_init... " >&6; }
23436 if ${ac_cv_search_ruby_init+:} false; then :
23437 $as_echo_n "(cached) " >&6
23438 else
23439 ac_func_search_save_LIBS=$LIBS
23440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23441 /* end confdefs.h. */
23442
23443 /* Override any GCC internal prototype to avoid an error.
23444 Use char because int might match the return type of a GCC
23445 builtin and then its argument prototype would still apply. */
23446 #ifdef __cplusplus
23447 extern "C"
23448 #endif
23449 char ruby_init ();
23450 int
23451 main ()
23452 {
23453 return ruby_init ();
23454 ;
23455 return 0;
23456 }
23457 _ACEOF
23458 for ac_lib in '' ruby; do
23459 if test -z "$ac_lib"; then
23460 ac_res="none required"
23461 else
23462 ac_res=-l$ac_lib
23463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23464 fi
23465 if ac_fn_cxx_try_link "$LINENO"; then :
23466 ac_cv_search_ruby_init=$ac_res
23467 fi
23468 rm -f core conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext
23470 if ${ac_cv_search_ruby_init+:} false; then :
23471 break
23472 fi
23473 done
23474 if ${ac_cv_search_ruby_init+:} false; then :
23475
23476 else
23477 ac_cv_search_ruby_init=no
23478 fi
23479 rm conftest.$ac_ext
23480 LIBS=$ac_func_search_save_LIBS
23481 fi
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23483 $as_echo "$ac_cv_search_ruby_init" >&6; }
23484 ac_res=$ac_cv_search_ruby_init
23485 if test "$ac_res" != no; then :
23486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23487
23488
23489 fi
23490
23491
23492 else
23493
23494 CY_RUBY=0
23495
23496
23497 fi
23498
23499 done
23500
23501 fi
23502 else
23503 LIBRUBY21_CFLAGS=$pkg_cv_LIBRUBY21_CFLAGS
23504 LIBRUBY21_LIBS=$pkg_cv_LIBRUBY21_LIBS
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23506 $as_echo "yes" >&6; }
23507
23508 CY_RUBY=1
23509
23510
23511 for element in `$PKG_CONFIG --cflags ruby-2.1`; do
23512 haveit=
23513 for x in $CPPFLAGS; do
23514
23515 acl_save_prefix="$prefix"
23516 prefix="$acl_final_prefix"
23517 acl_save_exec_prefix="$exec_prefix"
23518 exec_prefix="$acl_final_exec_prefix"
23519 eval x=\"$x\"
23520 exec_prefix="$acl_save_exec_prefix"
23521 prefix="$acl_save_prefix"
23522
23523 if test "X$x" = "X$element"; then
23524 haveit=yes
23525 break
23526 fi
23527 done
23528 if test -z "$haveit"; then
23529 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23530 fi
23531 done
23532
23533
23534 for element in `$PKG_CONFIG --libs ruby-2.1`; do
23535 haveit=
23536 for x in $LIBS; do
23537
23538 acl_save_prefix="$prefix"
23539 prefix="$acl_final_prefix"
23540 acl_save_exec_prefix="$exec_prefix"
23541 exec_prefix="$acl_final_exec_prefix"
23542 eval x=\"$x\"
23543 exec_prefix="$acl_save_exec_prefix"
23544 prefix="$acl_save_prefix"
23545
23546 if test "X$x" = "X$element"; then
23547 haveit=yes
23548 break
23549 fi
23550 done
23551 if test -z "$haveit"; then
23552 LIBS="${LIBS}${LIBS:+ }$element"
23553 fi
23554 done
23555
23556
23557 fi
23558 LTRUBY=$LIBS
23559 LIBS=$cy_save
23560
23561
23562
23563
23564 # Check whether --with-python was given.
23565 if test "${with_python+set}" = set; then :
23566 withval=$with_python;
23567 else
23568 with_python=no
23569 fi
23570
23571
23572 if test "x$with_python" != "xno"; then :
23573
23574 CY_PYTHON=1
23575
23576
23577 cy_save=$LIBS
23578 LIBS=
23579
23580
23581 for element in `$with_python --includes`; do
23582 haveit=
23583 for x in $CPPFLAGS; do
23584
23585 acl_save_prefix="$prefix"
23586 prefix="$acl_final_prefix"
23587 acl_save_exec_prefix="$exec_prefix"
23588 exec_prefix="$acl_final_exec_prefix"
23589 eval x=\"$x\"
23590 exec_prefix="$acl_save_exec_prefix"
23591 prefix="$acl_save_prefix"
23592
23593 if test "X$x" = "X$element"; then
23594 haveit=yes
23595 break
23596 fi
23597 done
23598 if test -z "$haveit"; then
23599 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23600 fi
23601 done
23602
23603
23604 for element in `$with_python --ldflags`; do
23605 haveit=
23606 for x in $LIBS; do
23607
23608 acl_save_prefix="$prefix"
23609 prefix="$acl_final_prefix"
23610 acl_save_exec_prefix="$exec_prefix"
23611 exec_prefix="$acl_final_exec_prefix"
23612 eval x=\"$x\"
23613 exec_prefix="$acl_save_exec_prefix"
23614 prefix="$acl_save_prefix"
23615
23616 if test "X$x" = "X$element"; then
23617 haveit=yes
23618 break
23619 fi
23620 done
23621 if test -z "$haveit"; then
23622 LIBS="${LIBS}${LIBS:+ }$element"
23623 fi
23624 done
23625
23626
23627 LTPYTHON=$LIBS
23628 LIBS=$cy_save
23629
23630
23631
23632 else
23633
23634 CY_PYTHON=0
23635
23636
23637 fi
23638
23639 if test "x$with_python" != "xno"; then
23640 CY_PRELINK_TRUE=
23641 CY_PRELINK_FALSE='#'
23642 else
23643 CY_PRELINK_TRUE='#'
23644 CY_PRELINK_FALSE=
23645 fi
23646
23647
23648 ac_ext=mm
23649 ac_cpp='$OBJCXXCPP $CPPFLAGS'
23650 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23653
23654
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23656 $as_echo_n "checking if we really have Objective C++... " >&6; }
23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h. */
23659
23660 _ACEOF
23661 if ac_fn_objcxx_try_compile "$LINENO"; then :
23662
23663 CY_OBJECTIVEC=1
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23665 $as_echo "yes" >&6; }
23666
23667 else
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23669 $as_echo "no" >&6; }
23670 fi
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23672
23673 if test "x$CY_OBJECTIVEC" = x1; then :
23674
23675
23676 cy_save=$LIBS
23677 LIBS=
23678
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23680 $as_echo_n "checking for framework CoreFoundation... " >&6; }
23681 if ${ac_cv_framework_CoreFoundation+:} false; then :
23682 $as_echo_n "(cached) " >&6
23683 else
23684
23685 ac_check_framework_save_LIBS=$LIBS
23686 LIBS="-framework CoreFoundation $LIBS"
23687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688 /* end confdefs.h. */
23689
23690 #include <CoreFoundation/CFBase.h>
23691
23692 int
23693 main ()
23694 {
23695 CFAllocatorGetDefault();
23696 ;
23697 return 0;
23698 }
23699 _ACEOF
23700 if ac_fn_objcxx_try_link "$LINENO"; then :
23701
23702 ac_cv_framework_CoreFoundation=yes
23703
23704 else
23705 ac_cv_framework_CoreFoundation=no
23706 fi
23707 rm -f core conftest.err conftest.$ac_objext \
23708 conftest$ac_exeext conftest.$ac_ext
23709 LIBS=$ac_check_framework_save_LIBS
23710
23711 fi
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23713 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23714 if test $ac_cv_framework_CoreFoundation = yes; then :
23715
23716
23717 for element in "-framework CoreFoundation"; do
23718 haveit=
23719 for x in $LIBS; do
23720
23721 acl_save_prefix="$prefix"
23722 prefix="$acl_final_prefix"
23723 acl_save_exec_prefix="$exec_prefix"
23724 exec_prefix="$acl_final_exec_prefix"
23725 eval x=\"$x\"
23726 exec_prefix="$acl_save_exec_prefix"
23727 prefix="$acl_save_prefix"
23728
23729 if test "X$x" = "X$element"; then
23730 haveit=yes
23731 break
23732 fi
23733 done
23734 if test -z "$haveit"; then
23735 LIBS="${LIBS}${LIBS:+ }$element"
23736 fi
23737 done
23738
23739
23740 CY_OBJECTIVEC=1
23741
23742
23743
23744
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23746 $as_echo_n "checking for framework Foundation... " >&6; }
23747 if ${ac_cv_framework_Foundation+:} false; then :
23748 $as_echo_n "(cached) " >&6
23749 else
23750
23751 ac_check_framework_save_LIBS=$LIBS
23752 LIBS="-framework Foundation $LIBS"
23753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23754 /* end confdefs.h. */
23755
23756 #include <Foundation/NSObject.h>
23757
23758 int
23759 main ()
23760 {
23761 [[NSObject alloc] init];
23762 ;
23763 return 0;
23764 }
23765 _ACEOF
23766 if ac_fn_objcxx_try_link "$LINENO"; then :
23767
23768 ac_cv_framework_Foundation=yes
23769
23770 else
23771 ac_cv_framework_Foundation=no
23772 fi
23773 rm -f core conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_framework_save_LIBS
23776
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23779 $as_echo "$ac_cv_framework_Foundation" >&6; }
23780 if test $ac_cv_framework_Foundation = yes; then :
23781
23782
23783 for element in "-framework Foundation"; do
23784 haveit=
23785 for x in $LIBS; do
23786
23787 acl_save_prefix="$prefix"
23788 prefix="$acl_final_prefix"
23789 acl_save_exec_prefix="$exec_prefix"
23790 exec_prefix="$acl_final_exec_prefix"
23791 eval x=\"$x\"
23792 exec_prefix="$acl_save_exec_prefix"
23793 prefix="$acl_save_prefix"
23794
23795 if test "X$x" = "X$element"; then
23796 haveit=yes
23797 break
23798 fi
23799 done
23800 if test -z "$haveit"; then
23801 LIBS="${LIBS}${LIBS:+ }$element"
23802 fi
23803 done
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_FRAMEWORK_FOUNDATION 1
23807 _ACEOF
23808
23809
23810 fi
23811
23812
23813 else
23814
23815
23816 for ac_prog in gnustep-config
23817 do
23818 # Extract the first word of "$ac_prog", so it can be a program name with args.
23819 set dummy $ac_prog; ac_word=$2
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23821 $as_echo_n "checking for $ac_word... " >&6; }
23822 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23823 $as_echo_n "(cached) " >&6
23824 else
23825 if test -n "$GNUSTEP_CONFIG"; then
23826 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
23827 else
23828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23829 for as_dir in $PATH
23830 do
23831 IFS=$as_save_IFS
23832 test -z "$as_dir" && as_dir=.
23833 for ac_exec_ext in '' $ac_executable_extensions; do
23834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23835 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23837 break 2
23838 fi
23839 done
23840 done
23841 IFS=$as_save_IFS
23842
23843 fi
23844 fi
23845 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23846 if test -n "$GNUSTEP_CONFIG"; then
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23848 $as_echo "$GNUSTEP_CONFIG" >&6; }
23849 else
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23851 $as_echo "no" >&6; }
23852 fi
23853
23854
23855 test -n "$GNUSTEP_CONFIG" && break
23856 done
23857
23858
23859 if test "x$GNUSTEP_CONFIG" != x; then :
23860
23861 CY_OBJECTIVEC=1
23862
23863
23864 for element in `$GNUSTEP_CONFIG --objc-flags`; do
23865 haveit=
23866 for x in $OBJCXXFLAGS; do
23867
23868 acl_save_prefix="$prefix"
23869 prefix="$acl_final_prefix"
23870 acl_save_exec_prefix="$exec_prefix"
23871 exec_prefix="$acl_final_exec_prefix"
23872 eval x=\"$x\"
23873 exec_prefix="$acl_save_exec_prefix"
23874 prefix="$acl_save_prefix"
23875
23876 if test "X$x" = "X$element"; then
23877 haveit=yes
23878 break
23879 fi
23880 done
23881 if test -z "$haveit"; then
23882 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23883 fi
23884 done
23885
23886
23887 for element in `$GNUSTEP_CONFIG --base-libs`; do
23888 haveit=
23889 for x in $LIBS; do
23890
23891 acl_save_prefix="$prefix"
23892 prefix="$acl_final_prefix"
23893 acl_save_exec_prefix="$exec_prefix"
23894 exec_prefix="$acl_final_exec_prefix"
23895 eval x=\"$x\"
23896 exec_prefix="$acl_save_exec_prefix"
23897 prefix="$acl_save_prefix"
23898
23899 if test "X$x" = "X$element"; then
23900 haveit=yes
23901 break
23902 fi
23903 done
23904 if test -z "$haveit"; then
23905 LIBS="${LIBS}${LIBS:+ }$element"
23906 fi
23907 done
23908
23909
23910 else
23911 CY_OBJECTIVEC=0
23912
23913 fi
23914
23915 fi
23916 LTOBJECTIVEC=$LIBS
23917 LIBS=$cy_save
23918
23919
23920
23921 else
23922
23923 CY_OBJECTIVEC=0
23924
23925
23926 fi
23927
23928 ac_ext=cpp
23929 ac_cpp='$CXXCPP $CPPFLAGS'
23930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23933
23934 ;; #(
23935 *) :
23936 ;;
23937 esac
23938
23939 if test "x$CY_JAVA" = x1; then
23940 CY_JAVA_TRUE=
23941 CY_JAVA_FALSE='#'
23942 else
23943 CY_JAVA_TRUE='#'
23944 CY_JAVA_FALSE=
23945 fi
23946
23947 if test "x$CY_RUBY" = x1; then
23948 CY_RUBY_TRUE=
23949 CY_RUBY_FALSE='#'
23950 else
23951 CY_RUBY_TRUE='#'
23952 CY_RUBY_FALSE=
23953 fi
23954
23955 if test "x$CY_PYTHON" = x1; then
23956 CY_PYTHON_TRUE=
23957 CY_PYTHON_FALSE='#'
23958 else
23959 CY_PYTHON_TRUE='#'
23960 CY_PYTHON_FALSE=
23961 fi
23962
23963 if test "x$CY_OBJECTIVEC" = x1; then
23964 CY_OBJECTIVEC_TRUE=
23965 CY_OBJECTIVEC_FALSE='#'
23966 else
23967 CY_OBJECTIVEC_TRUE='#'
23968 CY_OBJECTIVEC_FALSE=
23969 fi
23970
23971
23972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h. */
23974
23975 #ifndef __ANDROID__
23976 #error
23977 #endif
23978
23979 _ACEOF
23980 if ac_fn_cxx_try_compile "$LINENO"; then :
23981
23982 CY_ANDROID=1
23983
23984
23985 else
23986
23987 CY_ANDROID=0
23988
23989
23990 fi
23991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23992
23993 if test "x$CY_ANDROID" = x1; then
23994 CY_ANDROID_TRUE=
23995 CY_ANDROID_FALSE='#'
23996 else
23997 CY_ANDROID_TRUE='#'
23998 CY_ANDROID_FALSE=
23999 fi
24000
24001
24002
24003 # Check whether --with-libclang was given.
24004 if test "${with_libclang+set}" = set; then :
24005 withval=$with_libclang;
24006 else
24007 with_libclang=no
24008 fi
24009
24010
24011 if test "x$with_libclang" != "xno"; then :
24012
24013 CY_LIBCLANG="$with_libclang"
24014
24015 fi
24016 if test "x$with_libclang" != "xno"; then
24017 CY_PRELINK_TRUE=
24018 CY_PRELINK_FALSE='#'
24019 else
24020 CY_PRELINK_TRUE='#'
24021 CY_PRELINK_FALSE=
24022 fi
24023
24024
24025
24026 cy_save=$LIBS
24027 LIBS=
24028
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
24030 $as_echo_n "checking for a readline compatible library... " >&6; }
24031 if ${ax_cv_lib_readline+:} false; then :
24032 $as_echo_n "(cached) " >&6
24033 else
24034
24035 ORIG_LIBS="$LIBS"
24036 for readline_lib in readline edit editline; do
24037 for termcap_lib in "" termcap curses ncurses; do
24038 if test -z "$termcap_lib"; then
24039 TRY_LIB="-l$readline_lib"
24040 else
24041 TRY_LIB="-l$readline_lib -l$termcap_lib"
24042 fi
24043 LIBS="$ORIG_LIBS $TRY_LIB"
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24046
24047 /* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24050 #ifdef __cplusplus
24051 extern "C"
24052 #endif
24053 char readline ();
24054 int
24055 main ()
24056 {
24057 return readline ();
24058 ;
24059 return 0;
24060 }
24061 _ACEOF
24062 if ac_fn_cxx_try_link "$LINENO"; then :
24063 ax_cv_lib_readline="$TRY_LIB"
24064 fi
24065 rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
24067 if test -n "$ax_cv_lib_readline"; then
24068 break
24069 fi
24070 done
24071 if test -n "$ax_cv_lib_readline"; then
24072 break
24073 fi
24074 done
24075 if test -z "$ax_cv_lib_readline"; then
24076 ax_cv_lib_readline="no"
24077 fi
24078 LIBS="$ORIG_LIBS"
24079
24080 fi
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
24082 $as_echo "$ax_cv_lib_readline" >&6; }
24083
24084 if test "$ax_cv_lib_readline" != "no"; then
24085 LIBS="$LIBS $ax_cv_lib_readline"
24086
24087 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
24088
24089 for ac_header in readline.h readline/readline.h
24090 do :
24091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24092 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24094 cat >>confdefs.h <<_ACEOF
24095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24096 _ACEOF
24097
24098 fi
24099
24100 done
24101
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
24103 $as_echo_n "checking whether readline supports history... " >&6; }
24104 if ${ax_cv_lib_readline_history+:} false; then :
24105 $as_echo_n "(cached) " >&6
24106 else
24107
24108 ax_cv_lib_readline_history="no"
24109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24110 /* end confdefs.h. */
24111
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char add_history ();
24119 int
24120 main ()
24121 {
24122 return add_history ();
24123 ;
24124 return 0;
24125 }
24126 _ACEOF
24127 if ac_fn_cxx_try_link "$LINENO"; then :
24128 ax_cv_lib_readline_history="yes"
24129 fi
24130 rm -f core conftest.err conftest.$ac_objext \
24131 conftest$ac_exeext conftest.$ac_ext
24132
24133 fi
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
24135 $as_echo "$ax_cv_lib_readline_history" >&6; }
24136 if test "$ax_cv_lib_readline_history" = "yes"; then
24137
24138 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
24139
24140 for ac_header in history.h readline/history.h
24141 do :
24142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24143 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24145 cat >>confdefs.h <<_ACEOF
24146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24147 _ACEOF
24148
24149 fi
24150
24151 done
24152
24153 fi
24154 fi
24155
24156 LTLIBREADLINE=$LIBS
24157 LIBS=$cy_save
24158
24159
24160 case $ax_cv_lib_readline in #(
24161 no) :
24162 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
24163 *) :
24164 ;;
24165 esac
24166
24167
24168 cy_save=$LIBS
24169 LIBS=
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
24171 $as_echo_n "checking for library containing cur_term... " >&6; }
24172 if ${ac_cv_search_cur_term+:} false; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24175 ac_func_search_save_LIBS=$LIBS
24176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24177 /* end confdefs.h. */
24178
24179 /* Override any GCC internal prototype to avoid an error.
24180 Use char because int might match the return type of a GCC
24181 builtin and then its argument prototype would still apply. */
24182 #ifdef __cplusplus
24183 extern "C"
24184 #endif
24185 char cur_term ();
24186 int
24187 main ()
24188 {
24189 return cur_term ();
24190 ;
24191 return 0;
24192 }
24193 _ACEOF
24194 for ac_lib in '' termcap ncurses; do
24195 if test -z "$ac_lib"; then
24196 ac_res="none required"
24197 else
24198 ac_res=-l$ac_lib
24199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24200 fi
24201 if ac_fn_cxx_try_link "$LINENO"; then :
24202 ac_cv_search_cur_term=$ac_res
24203 fi
24204 rm -f core conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext
24206 if ${ac_cv_search_cur_term+:} false; then :
24207 break
24208 fi
24209 done
24210 if ${ac_cv_search_cur_term+:} false; then :
24211
24212 else
24213 ac_cv_search_cur_term=no
24214 fi
24215 rm conftest.$ac_ext
24216 LIBS=$ac_func_search_save_LIBS
24217 fi
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
24219 $as_echo "$ac_cv_search_cur_term" >&6; }
24220 ac_res=$ac_cv_search_cur_term
24221 if test "$ac_res" != no; then :
24222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24223
24224 fi
24225
24226 LTLIBTERMCAP=$LIBS
24227 LIBS=$cy_save
24228
24229
24230
24231
24232
24233
24234 SO=$acl_shlibext
24235
24236
24237 ac_config_files="$ac_config_files Makefile"
24238
24239 cat >confcache <<\_ACEOF
24240 # This file is a shell script that caches the results of configure
24241 # tests run on this system so they can be shared between configure
24242 # scripts and configure runs, see configure's option --config-cache.
24243 # It is not useful on other systems. If it contains results you don't
24244 # want to keep, you may remove or edit it.
24245 #
24246 # config.status only pays attention to the cache file if you give it
24247 # the --recheck option to rerun configure.
24248 #
24249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24251 # following values.
24252
24253 _ACEOF
24254
24255 # The following way of writing the cache mishandles newlines in values,
24256 # but we know of no workaround that is simple, portable, and efficient.
24257 # So, we kill variables containing newlines.
24258 # Ultrix sh set writes to stderr and can't be redirected directly,
24259 # and sets the high bit in the cache file unless we assign to the vars.
24260 (
24261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24262 eval ac_val=\$$ac_var
24263 case $ac_val in #(
24264 *${as_nl}*)
24265 case $ac_var in #(
24266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24268 esac
24269 case $ac_var in #(
24270 _ | IFS | as_nl) ;; #(
24271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24272 *) { eval $ac_var=; unset $ac_var;} ;;
24273 esac ;;
24274 esac
24275 done
24276
24277 (set) 2>&1 |
24278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24279 *${as_nl}ac_space=\ *)
24280 # `set' does not quote correctly, so add quotes: double-quote
24281 # substitution turns \\\\ into \\, and sed turns \\ into \.
24282 sed -n \
24283 "s/'/'\\\\''/g;
24284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24285 ;; #(
24286 *)
24287 # `set' quotes correctly as required by POSIX, so do not add quotes.
24288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24289 ;;
24290 esac |
24291 sort
24292 ) |
24293 sed '
24294 /^ac_cv_env_/b end
24295 t clear
24296 :clear
24297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24298 t end
24299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24300 :end' >>confcache
24301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24302 if test -w "$cache_file"; then
24303 if test "x$cache_file" != "x/dev/null"; then
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24305 $as_echo "$as_me: updating cache $cache_file" >&6;}
24306 if test ! -f "$cache_file" || test -h "$cache_file"; then
24307 cat confcache >"$cache_file"
24308 else
24309 case $cache_file in #(
24310 */* | ?:*)
24311 mv -f confcache "$cache_file"$$ &&
24312 mv -f "$cache_file"$$ "$cache_file" ;; #(
24313 *)
24314 mv -f confcache "$cache_file" ;;
24315 esac
24316 fi
24317 fi
24318 else
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24320 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24321 fi
24322 fi
24323 rm -f confcache
24324
24325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24326 # Let make expand exec_prefix.
24327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24328
24329 DEFS=-DHAVE_CONFIG_H
24330
24331 ac_libobjs=
24332 ac_ltlibobjs=
24333 U=
24334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24335 # 1. Remove the extension, and $U if already installed.
24336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24339 # will be set to the directory where LIBOBJS objects are built.
24340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24342 done
24343 LIBOBJS=$ac_libobjs
24344
24345 LTLIBOBJS=$ac_ltlibobjs
24346
24347
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24349 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24350 if test -n "$am_sleep_pid"; then
24351 # Hide warnings about reused PIDs.
24352 wait $am_sleep_pid 2>/dev/null
24353 fi
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24355 $as_echo "done" >&6; }
24356 if test -n "$EXEEXT"; then
24357 am__EXEEXT_TRUE=
24358 am__EXEEXT_FALSE='#'
24359 else
24360 am__EXEEXT_TRUE='#'
24361 am__EXEEXT_FALSE=
24362 fi
24363
24364 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24365 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24367 fi
24368 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24369 as_fn_error $? "conditional \"AMDEP\" was never defined.
24370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24371 fi
24372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24373 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24375 fi
24376 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24377 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24379 fi
24380 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
24381 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
24382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24383 fi
24384 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24385 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24387 fi
24388 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24389 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24391 fi
24392 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
24393 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
24394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24395 fi
24396 if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
24397 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
24398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24399 fi
24400 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
24401 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
24402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24403 fi
24404 if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24405 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24407 fi
24408 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
24409 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
24410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24411 fi
24412 if test -z "${CY_RUBY_TRUE}" && test -z "${CY_RUBY_FALSE}"; then
24413 as_fn_error $? "conditional \"CY_RUBY\" was never defined.
24414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24415 fi
24416 if test -z "${CY_PYTHON_TRUE}" && test -z "${CY_PYTHON_FALSE}"; then
24417 as_fn_error $? "conditional \"CY_PYTHON\" was never defined.
24418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24419 fi
24420 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
24421 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
24422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24423 fi
24424 if test -z "${CY_ANDROID_TRUE}" && test -z "${CY_ANDROID_FALSE}"; then
24425 as_fn_error $? "conditional \"CY_ANDROID\" was never defined.
24426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24427 fi
24428 if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24429 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24431 fi
24432
24433 : "${CONFIG_STATUS=./config.status}"
24434 ac_write_fail=0
24435 ac_clean_files_save=$ac_clean_files
24436 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24438 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24439 as_write_fail=0
24440 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24441 #! $SHELL
24442 # Generated by $as_me.
24443 # Run this file to recreate the current configuration.
24444 # Compiler output produced by configure, useful for debugging
24445 # configure, is in config.log if it exists.
24446
24447 debug=false
24448 ac_cs_recheck=false
24449 ac_cs_silent=false
24450
24451 SHELL=\${CONFIG_SHELL-$SHELL}
24452 export SHELL
24453 _ASEOF
24454 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24455 ## -------------------- ##
24456 ## M4sh Initialization. ##
24457 ## -------------------- ##
24458
24459 # Be more Bourne compatible
24460 DUALCASE=1; export DUALCASE # for MKS sh
24461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24462 emulate sh
24463 NULLCMD=:
24464 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24465 # is contrary to our usage. Disable this feature.
24466 alias -g '${1+"$@"}'='"$@"'
24467 setopt NO_GLOB_SUBST
24468 else
24469 case `(set -o) 2>/dev/null` in #(
24470 *posix*) :
24471 set -o posix ;; #(
24472 *) :
24473 ;;
24474 esac
24475 fi
24476
24477
24478 as_nl='
24479 '
24480 export as_nl
24481 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24482 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24485 # Prefer a ksh shell builtin over an external printf program on Solaris,
24486 # but without wasting forks for bash or zsh.
24487 if test -z "$BASH_VERSION$ZSH_VERSION" \
24488 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24489 as_echo='print -r --'
24490 as_echo_n='print -rn --'
24491 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24492 as_echo='printf %s\n'
24493 as_echo_n='printf %s'
24494 else
24495 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24496 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24497 as_echo_n='/usr/ucb/echo -n'
24498 else
24499 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24500 as_echo_n_body='eval
24501 arg=$1;
24502 case $arg in #(
24503 *"$as_nl"*)
24504 expr "X$arg" : "X\\(.*\\)$as_nl";
24505 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24506 esac;
24507 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24508 '
24509 export as_echo_n_body
24510 as_echo_n='sh -c $as_echo_n_body as_echo'
24511 fi
24512 export as_echo_body
24513 as_echo='sh -c $as_echo_body as_echo'
24514 fi
24515
24516 # The user is always right.
24517 if test "${PATH_SEPARATOR+set}" != set; then
24518 PATH_SEPARATOR=:
24519 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24520 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24521 PATH_SEPARATOR=';'
24522 }
24523 fi
24524
24525
24526 # IFS
24527 # We need space, tab and new line, in precisely that order. Quoting is
24528 # there to prevent editors from complaining about space-tab.
24529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24530 # splitting by setting IFS to empty value.)
24531 IFS=" "" $as_nl"
24532
24533 # Find who we are. Look in the path if we contain no directory separator.
24534 as_myself=
24535 case $0 in #((
24536 *[\\/]* ) as_myself=$0 ;;
24537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24538 for as_dir in $PATH
24539 do
24540 IFS=$as_save_IFS
24541 test -z "$as_dir" && as_dir=.
24542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24543 done
24544 IFS=$as_save_IFS
24545
24546 ;;
24547 esac
24548 # We did not find ourselves, most probably we were run as `sh COMMAND'
24549 # in which case we are not to be found in the path.
24550 if test "x$as_myself" = x; then
24551 as_myself=$0
24552 fi
24553 if test ! -f "$as_myself"; then
24554 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24555 exit 1
24556 fi
24557
24558 # Unset variables that we do not need and which cause bugs (e.g. in
24559 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24560 # suppresses any "Segmentation fault" message there. '((' could
24561 # trigger a bug in pdksh 5.2.14.
24562 for as_var in BASH_ENV ENV MAIL MAILPATH
24563 do eval test x\${$as_var+set} = xset \
24564 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24565 done
24566 PS1='$ '
24567 PS2='> '
24568 PS4='+ '
24569
24570 # NLS nuisances.
24571 LC_ALL=C
24572 export LC_ALL
24573 LANGUAGE=C
24574 export LANGUAGE
24575
24576 # CDPATH.
24577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24578
24579
24580 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24581 # ----------------------------------------
24582 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24583 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24584 # script with STATUS, using 1 if that was 0.
24585 as_fn_error ()
24586 {
24587 as_status=$1; test $as_status -eq 0 && as_status=1
24588 if test "$4"; then
24589 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24590 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24591 fi
24592 $as_echo "$as_me: error: $2" >&2
24593 as_fn_exit $as_status
24594 } # as_fn_error
24595
24596
24597 # as_fn_set_status STATUS
24598 # -----------------------
24599 # Set $? to STATUS, without forking.
24600 as_fn_set_status ()
24601 {
24602 return $1
24603 } # as_fn_set_status
24604
24605 # as_fn_exit STATUS
24606 # -----------------
24607 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24608 as_fn_exit ()
24609 {
24610 set +e
24611 as_fn_set_status $1
24612 exit $1
24613 } # as_fn_exit
24614
24615 # as_fn_unset VAR
24616 # ---------------
24617 # Portably unset VAR.
24618 as_fn_unset ()
24619 {
24620 { eval $1=; unset $1;}
24621 }
24622 as_unset=as_fn_unset
24623 # as_fn_append VAR VALUE
24624 # ----------------------
24625 # Append the text in VALUE to the end of the definition contained in VAR. Take
24626 # advantage of any shell optimizations that allow amortized linear growth over
24627 # repeated appends, instead of the typical quadratic growth present in naive
24628 # implementations.
24629 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24630 eval 'as_fn_append ()
24631 {
24632 eval $1+=\$2
24633 }'
24634 else
24635 as_fn_append ()
24636 {
24637 eval $1=\$$1\$2
24638 }
24639 fi # as_fn_append
24640
24641 # as_fn_arith ARG...
24642 # ------------------
24643 # Perform arithmetic evaluation on the ARGs, and store the result in the
24644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24645 # must be portable across $(()) and expr.
24646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24647 eval 'as_fn_arith ()
24648 {
24649 as_val=$(( $* ))
24650 }'
24651 else
24652 as_fn_arith ()
24653 {
24654 as_val=`expr "$@" || test $? -eq 1`
24655 }
24656 fi # as_fn_arith
24657
24658
24659 if expr a : '\(a\)' >/dev/null 2>&1 &&
24660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24661 as_expr=expr
24662 else
24663 as_expr=false
24664 fi
24665
24666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24667 as_basename=basename
24668 else
24669 as_basename=false
24670 fi
24671
24672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24673 as_dirname=dirname
24674 else
24675 as_dirname=false
24676 fi
24677
24678 as_me=`$as_basename -- "$0" ||
24679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24680 X"$0" : 'X\(//\)$' \| \
24681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24682 $as_echo X/"$0" |
24683 sed '/^.*\/\([^/][^/]*\)\/*$/{
24684 s//\1/
24685 q
24686 }
24687 /^X\/\(\/\/\)$/{
24688 s//\1/
24689 q
24690 }
24691 /^X\/\(\/\).*/{
24692 s//\1/
24693 q
24694 }
24695 s/.*/./; q'`
24696
24697 # Avoid depending upon Character Ranges.
24698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24701 as_cr_digits='0123456789'
24702 as_cr_alnum=$as_cr_Letters$as_cr_digits
24703
24704 ECHO_C= ECHO_N= ECHO_T=
24705 case `echo -n x` in #(((((
24706 -n*)
24707 case `echo 'xy\c'` in
24708 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24709 xy) ECHO_C='\c';;
24710 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24711 ECHO_T=' ';;
24712 esac;;
24713 *)
24714 ECHO_N='-n';;
24715 esac
24716
24717 rm -f conf$$ conf$$.exe conf$$.file
24718 if test -d conf$$.dir; then
24719 rm -f conf$$.dir/conf$$.file
24720 else
24721 rm -f conf$$.dir
24722 mkdir conf$$.dir 2>/dev/null
24723 fi
24724 if (echo >conf$$.file) 2>/dev/null; then
24725 if ln -s conf$$.file conf$$ 2>/dev/null; then
24726 as_ln_s='ln -s'
24727 # ... but there are two gotchas:
24728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24730 # In both cases, we have to default to `cp -pR'.
24731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24732 as_ln_s='cp -pR'
24733 elif ln conf$$.file conf$$ 2>/dev/null; then
24734 as_ln_s=ln
24735 else
24736 as_ln_s='cp -pR'
24737 fi
24738 else
24739 as_ln_s='cp -pR'
24740 fi
24741 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24742 rmdir conf$$.dir 2>/dev/null
24743
24744
24745 # as_fn_mkdir_p
24746 # -------------
24747 # Create "$as_dir" as a directory, including parents if necessary.
24748 as_fn_mkdir_p ()
24749 {
24750
24751 case $as_dir in #(
24752 -*) as_dir=./$as_dir;;
24753 esac
24754 test -d "$as_dir" || eval $as_mkdir_p || {
24755 as_dirs=
24756 while :; do
24757 case $as_dir in #(
24758 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24759 *) as_qdir=$as_dir;;
24760 esac
24761 as_dirs="'$as_qdir' $as_dirs"
24762 as_dir=`$as_dirname -- "$as_dir" ||
24763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24764 X"$as_dir" : 'X\(//\)[^/]' \| \
24765 X"$as_dir" : 'X\(//\)$' \| \
24766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24767 $as_echo X"$as_dir" |
24768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24769 s//\1/
24770 q
24771 }
24772 /^X\(\/\/\)[^/].*/{
24773 s//\1/
24774 q
24775 }
24776 /^X\(\/\/\)$/{
24777 s//\1/
24778 q
24779 }
24780 /^X\(\/\).*/{
24781 s//\1/
24782 q
24783 }
24784 s/.*/./; q'`
24785 test -d "$as_dir" && break
24786 done
24787 test -z "$as_dirs" || eval "mkdir $as_dirs"
24788 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24789
24790
24791 } # as_fn_mkdir_p
24792 if mkdir -p . 2>/dev/null; then
24793 as_mkdir_p='mkdir -p "$as_dir"'
24794 else
24795 test -d ./-p && rmdir ./-p
24796 as_mkdir_p=false
24797 fi
24798
24799
24800 # as_fn_executable_p FILE
24801 # -----------------------
24802 # Test if FILE is an executable regular file.
24803 as_fn_executable_p ()
24804 {
24805 test -f "$1" && test -x "$1"
24806 } # as_fn_executable_p
24807 as_test_x='test -x'
24808 as_executable_p=as_fn_executable_p
24809
24810 # Sed expression to map a string onto a valid CPP name.
24811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24812
24813 # Sed expression to map a string onto a valid variable name.
24814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24815
24816
24817 exec 6>&1
24818 ## ----------------------------------- ##
24819 ## Main body of $CONFIG_STATUS script. ##
24820 ## ----------------------------------- ##
24821 _ASEOF
24822 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24823
24824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24825 # Save the log message, to keep $0 and so on meaningful, and to
24826 # report actual input values of CONFIG_FILES etc. instead of their
24827 # values after options handling.
24828 ac_log="
24829 This file was extended by Cycript $as_me 0.9, which was
24830 generated by GNU Autoconf 2.69. Invocation command line was
24831
24832 CONFIG_FILES = $CONFIG_FILES
24833 CONFIG_HEADERS = $CONFIG_HEADERS
24834 CONFIG_LINKS = $CONFIG_LINKS
24835 CONFIG_COMMANDS = $CONFIG_COMMANDS
24836 $ $0 $@
24837
24838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24839 "
24840
24841 _ACEOF
24842
24843 case $ac_config_files in *"
24844 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24845 esac
24846
24847 case $ac_config_headers in *"
24848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24849 esac
24850
24851
24852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24853 # Files that config.status was made for.
24854 config_files="$ac_config_files"
24855 config_headers="$ac_config_headers"
24856 config_commands="$ac_config_commands"
24857
24858 _ACEOF
24859
24860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24861 ac_cs_usage="\
24862 \`$as_me' instantiates files and other configuration actions
24863 from templates according to the current configuration. Unless the files
24864 and actions are specified as TAGs, all are instantiated by default.
24865
24866 Usage: $0 [OPTION]... [TAG]...
24867
24868 -h, --help print this help, then exit
24869 -V, --version print version number and configuration settings, then exit
24870 --config print configuration, then exit
24871 -q, --quiet, --silent
24872 do not print progress messages
24873 -d, --debug don't remove temporary files
24874 --recheck update $as_me by reconfiguring in the same conditions
24875 --file=FILE[:TEMPLATE]
24876 instantiate the configuration file FILE
24877 --header=FILE[:TEMPLATE]
24878 instantiate the configuration header FILE
24879
24880 Configuration files:
24881 $config_files
24882
24883 Configuration headers:
24884 $config_headers
24885
24886 Configuration commands:
24887 $config_commands
24888
24889 Report bugs to <saurik@saurik.com>.
24890 Cycript home page: <http://www.cycript.org/>."
24891
24892 _ACEOF
24893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24894 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24895 ac_cs_version="\\
24896 Cycript config.status 0.9
24897 configured by $0, generated by GNU Autoconf 2.69,
24898 with options \\"\$ac_cs_config\\"
24899
24900 Copyright (C) 2012 Free Software Foundation, Inc.
24901 This config.status script is free software; the Free Software Foundation
24902 gives unlimited permission to copy, distribute and modify it."
24903
24904 ac_pwd='$ac_pwd'
24905 srcdir='$srcdir'
24906 INSTALL='$INSTALL'
24907 MKDIR_P='$MKDIR_P'
24908 AWK='$AWK'
24909 test -n "\$AWK" || AWK=awk
24910 _ACEOF
24911
24912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24913 # The default lists apply if the user does not specify any file.
24914 ac_need_defaults=:
24915 while test $# != 0
24916 do
24917 case $1 in
24918 --*=?*)
24919 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24920 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24921 ac_shift=:
24922 ;;
24923 --*=)
24924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24925 ac_optarg=
24926 ac_shift=:
24927 ;;
24928 *)
24929 ac_option=$1
24930 ac_optarg=$2
24931 ac_shift=shift
24932 ;;
24933 esac
24934
24935 case $ac_option in
24936 # Handling of the options.
24937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24938 ac_cs_recheck=: ;;
24939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24940 $as_echo "$ac_cs_version"; exit ;;
24941 --config | --confi | --conf | --con | --co | --c )
24942 $as_echo "$ac_cs_config"; exit ;;
24943 --debug | --debu | --deb | --de | --d | -d )
24944 debug=: ;;
24945 --file | --fil | --fi | --f )
24946 $ac_shift
24947 case $ac_optarg in
24948 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24949 '') as_fn_error $? "missing file argument" ;;
24950 esac
24951 as_fn_append CONFIG_FILES " '$ac_optarg'"
24952 ac_need_defaults=false;;
24953 --header | --heade | --head | --hea )
24954 $ac_shift
24955 case $ac_optarg in
24956 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24957 esac
24958 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24959 ac_need_defaults=false;;
24960 --he | --h)
24961 # Conflict between --help and --header
24962 as_fn_error $? "ambiguous option: \`$1'
24963 Try \`$0 --help' for more information.";;
24964 --help | --hel | -h )
24965 $as_echo "$ac_cs_usage"; exit ;;
24966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24967 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24968 ac_cs_silent=: ;;
24969
24970 # This is an error.
24971 -*) as_fn_error $? "unrecognized option: \`$1'
24972 Try \`$0 --help' for more information." ;;
24973
24974 *) as_fn_append ac_config_targets " $1"
24975 ac_need_defaults=false ;;
24976
24977 esac
24978 shift
24979 done
24980
24981 ac_configure_extra_args=
24982
24983 if $ac_cs_silent; then
24984 exec 6>/dev/null
24985 ac_configure_extra_args="$ac_configure_extra_args --silent"
24986 fi
24987
24988 _ACEOF
24989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24990 if \$ac_cs_recheck; then
24991 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24992 shift
24993 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24994 CONFIG_SHELL='$SHELL'
24995 export CONFIG_SHELL
24996 exec "\$@"
24997 fi
24998
24999 _ACEOF
25000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25001 exec 5>>config.log
25002 {
25003 echo
25004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25005 ## Running $as_me. ##
25006 _ASBOX
25007 $as_echo "$ac_log"
25008 } >&5
25009
25010 _ACEOF
25011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25012 #
25013 # INIT-COMMANDS
25014 #
25015 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25016
25017
25018 # The HP-UX ksh and POSIX shell print the target directory to stdout
25019 # if CDPATH is set.
25020 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25021
25022 sed_quote_subst='$sed_quote_subst'
25023 double_quote_subst='$double_quote_subst'
25024 delay_variable_subst='$delay_variable_subst'
25025 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25026 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25027 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25028 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25029 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25030 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25031 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25032 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25033 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25034 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25035 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25036 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25037 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25038 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25039 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25040 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25041 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25042 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25043 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25044 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25045 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25046 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25047 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25048 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25049 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25050 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25051 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25052 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25053 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25054 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25055 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25056 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25057 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25058 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25059 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25060 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25061 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25062 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25063 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25064 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25065 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25066 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25067 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25068 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25069 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25070 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25071 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25072 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25073 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25074 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25075 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25076 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25077 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25078 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25079 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25080 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25081 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25082 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25083 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"`'
25084 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25085 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25086 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25087 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25088 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25089 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25090 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25091 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25092 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25093 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25094 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25095 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25096 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25097 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25098 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25099 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25100 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25101 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25102 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25103 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25104 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25105 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25106 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25107 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25108 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25109 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25110 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25111 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25112 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25113 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25114 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25115 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25116 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25117 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25118 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25119 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25120 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25121 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25122 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25123 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25124 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25125 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25126 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25127 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25128 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25129 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25130 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25131 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25132 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25133 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25134 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25135 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25136 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25137 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25138 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25139 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25140 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25141 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25142 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25143 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25144 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25145 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25146 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25147 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25148 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25149 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25150 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25151 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25152 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25153 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25154 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25155 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25156 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25157 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25158 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25159 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25160 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25161 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25162 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25163 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25164 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25165 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25166 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25167 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25168 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25169 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25170 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25171 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25172 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25173 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25174 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25175 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25176 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25177 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25178 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25179 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25180 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25181 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25182 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25183 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25184 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25185 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25186 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25187 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25188 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25189 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25190 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25191 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25192 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25193 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25194 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25195 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25196 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25197 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25198 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25199 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25200 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25201 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25202 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25203 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25204 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25205 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25206 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25207 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25208 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25209 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25210 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25211 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25212 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25213 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25214
25215 LTCC='$LTCC'
25216 LTCFLAGS='$LTCFLAGS'
25217 compiler='$compiler_DEFAULT'
25218
25219 # A function that is used when there is no print builtin or printf.
25220 func_fallback_echo ()
25221 {
25222 eval 'cat <<_LTECHO_EOF
25223 \$1
25224 _LTECHO_EOF'
25225 }
25226
25227 # Quote evaled strings.
25228 for var in SHELL \
25229 ECHO \
25230 PATH_SEPARATOR \
25231 SED \
25232 GREP \
25233 EGREP \
25234 FGREP \
25235 LD \
25236 NM \
25237 LN_S \
25238 lt_SP2NL \
25239 lt_NL2SP \
25240 reload_flag \
25241 OBJDUMP \
25242 deplibs_check_method \
25243 file_magic_cmd \
25244 file_magic_glob \
25245 want_nocaseglob \
25246 DLLTOOL \
25247 sharedlib_from_linklib_cmd \
25248 AR \
25249 AR_FLAGS \
25250 archiver_list_spec \
25251 STRIP \
25252 RANLIB \
25253 CC \
25254 CFLAGS \
25255 compiler \
25256 lt_cv_sys_global_symbol_pipe \
25257 lt_cv_sys_global_symbol_to_cdecl \
25258 lt_cv_sys_global_symbol_to_import \
25259 lt_cv_sys_global_symbol_to_c_name_address \
25260 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25261 lt_cv_nm_interface \
25262 nm_file_list_spec \
25263 lt_cv_truncate_bin \
25264 lt_prog_compiler_no_builtin_flag \
25265 lt_prog_compiler_pic \
25266 lt_prog_compiler_wl \
25267 lt_prog_compiler_static \
25268 lt_cv_prog_compiler_c_o \
25269 need_locks \
25270 MANIFEST_TOOL \
25271 DSYMUTIL \
25272 NMEDIT \
25273 LIPO \
25274 OTOOL \
25275 OTOOL64 \
25276 shrext_cmds \
25277 export_dynamic_flag_spec \
25278 whole_archive_flag_spec \
25279 compiler_needs_object \
25280 with_gnu_ld \
25281 allow_undefined_flag \
25282 no_undefined_flag \
25283 hardcode_libdir_flag_spec \
25284 hardcode_libdir_separator \
25285 exclude_expsyms \
25286 include_expsyms \
25287 file_list_spec \
25288 variables_saved_for_relink \
25289 libname_spec \
25290 library_names_spec \
25291 soname_spec \
25292 install_override_mode \
25293 finish_eval \
25294 old_striplib \
25295 striplib \
25296 compiler_lib_search_dirs \
25297 predep_objects \
25298 postdep_objects \
25299 predeps \
25300 postdeps \
25301 compiler_lib_search_path \
25302 LD_CXX \
25303 reload_flag_CXX \
25304 compiler_CXX \
25305 lt_prog_compiler_no_builtin_flag_CXX \
25306 lt_prog_compiler_pic_CXX \
25307 lt_prog_compiler_wl_CXX \
25308 lt_prog_compiler_static_CXX \
25309 lt_cv_prog_compiler_c_o_CXX \
25310 export_dynamic_flag_spec_CXX \
25311 whole_archive_flag_spec_CXX \
25312 compiler_needs_object_CXX \
25313 with_gnu_ld_CXX \
25314 allow_undefined_flag_CXX \
25315 no_undefined_flag_CXX \
25316 hardcode_libdir_flag_spec_CXX \
25317 hardcode_libdir_separator_CXX \
25318 exclude_expsyms_CXX \
25319 include_expsyms_CXX \
25320 file_list_spec_CXX \
25321 compiler_lib_search_dirs_CXX \
25322 predep_objects_CXX \
25323 postdep_objects_CXX \
25324 predeps_CXX \
25325 postdeps_CXX \
25326 compiler_lib_search_path_CXX; do
25327 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25328 *[\\\\\\\`\\"\\\$]*)
25329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25330 ;;
25331 *)
25332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25333 ;;
25334 esac
25335 done
25336
25337 # Double-quote double-evaled strings.
25338 for var in reload_cmds \
25339 old_postinstall_cmds \
25340 old_postuninstall_cmds \
25341 old_archive_cmds \
25342 extract_expsyms_cmds \
25343 old_archive_from_new_cmds \
25344 old_archive_from_expsyms_cmds \
25345 archive_cmds \
25346 archive_expsym_cmds \
25347 module_cmds \
25348 module_expsym_cmds \
25349 export_symbols_cmds \
25350 prelink_cmds \
25351 postlink_cmds \
25352 postinstall_cmds \
25353 postuninstall_cmds \
25354 finish_cmds \
25355 sys_lib_search_path_spec \
25356 configure_time_dlsearch_path \
25357 configure_time_lt_sys_library_path \
25358 reload_cmds_CXX \
25359 old_archive_cmds_CXX \
25360 old_archive_from_new_cmds_CXX \
25361 old_archive_from_expsyms_cmds_CXX \
25362 archive_cmds_CXX \
25363 archive_expsym_cmds_CXX \
25364 module_cmds_CXX \
25365 module_expsym_cmds_CXX \
25366 export_symbols_cmds_CXX \
25367 prelink_cmds_CXX \
25368 postlink_cmds_CXX; do
25369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25370 *[\\\\\\\`\\"\\\$]*)
25371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25372 ;;
25373 *)
25374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25375 ;;
25376 esac
25377 done
25378
25379 ac_aux_dir='$ac_aux_dir'
25380
25381 # See if we are running on zsh, and set the options that allow our
25382 # commands through without removal of \ escapes INIT.
25383 if test -n "\${ZSH_VERSION+set}"; then
25384 setopt NO_GLOB_SUBST
25385 fi
25386
25387
25388 PACKAGE='$PACKAGE'
25389 VERSION='$VERSION'
25390 RM='$RM'
25391 ofile='$ofile'
25392
25393
25394
25395
25396
25397
25398 _ACEOF
25399
25400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25401
25402 # Handling of arguments.
25403 for ac_config_target in $ac_config_targets
25404 do
25405 case $ac_config_target in
25406 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25407 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25408 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25409 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25410
25411 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25412 esac
25413 done
25414
25415
25416 # If the user did not use the arguments to specify the items to instantiate,
25417 # then the envvar interface is used. Set only those that are not.
25418 # We use the long form for the default assignment because of an extremely
25419 # bizarre bug on SunOS 4.1.3.
25420 if $ac_need_defaults; then
25421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25424 fi
25425
25426 # Have a temporary directory for convenience. Make it in the build tree
25427 # simply because there is no reason against having it here, and in addition,
25428 # creating and moving files from /tmp can sometimes cause problems.
25429 # Hook for its removal unless debugging.
25430 # Note that there is a small window in which the directory will not be cleaned:
25431 # after its creation but before its name has been assigned to `$tmp'.
25432 $debug ||
25433 {
25434 tmp= ac_tmp=
25435 trap 'exit_status=$?
25436 : "${ac_tmp:=$tmp}"
25437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25438 ' 0
25439 trap 'as_fn_exit 1' 1 2 13 15
25440 }
25441 # Create a (secure) tmp directory for tmp files.
25442
25443 {
25444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25445 test -d "$tmp"
25446 } ||
25447 {
25448 tmp=./conf$$-$RANDOM
25449 (umask 077 && mkdir "$tmp")
25450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25451 ac_tmp=$tmp
25452
25453 # Set up the scripts for CONFIG_FILES section.
25454 # No need to generate them if there are no CONFIG_FILES.
25455 # This happens for instance with `./config.status config.h'.
25456 if test -n "$CONFIG_FILES"; then
25457
25458
25459 ac_cr=`echo X | tr X '\015'`
25460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25461 # But we know of no other shell where ac_cr would be empty at this
25462 # point, so we can use a bashism as a fallback.
25463 if test "x$ac_cr" = x; then
25464 eval ac_cr=\$\'\\r\'
25465 fi
25466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25468 ac_cs_awk_cr='\\r'
25469 else
25470 ac_cs_awk_cr=$ac_cr
25471 fi
25472
25473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25474 _ACEOF
25475
25476
25477 {
25478 echo "cat >conf$$subs.awk <<_ACEOF" &&
25479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25480 echo "_ACEOF"
25481 } >conf$$subs.sh ||
25482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25484 ac_delim='%!_!# '
25485 for ac_last_try in false false false false false :; do
25486 . ./conf$$subs.sh ||
25487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25488
25489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25490 if test $ac_delim_n = $ac_delim_num; then
25491 break
25492 elif $ac_last_try; then
25493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25494 else
25495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25496 fi
25497 done
25498 rm -f conf$$subs.sh
25499
25500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25502 _ACEOF
25503 sed -n '
25504 h
25505 s/^/S["/; s/!.*/"]=/
25506 p
25507 g
25508 s/^[^!]*!//
25509 :repl
25510 t repl
25511 s/'"$ac_delim"'$//
25512 t delim
25513 :nl
25514 h
25515 s/\(.\{148\}\)..*/\1/
25516 t more1
25517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25518 p
25519 n
25520 b repl
25521 :more1
25522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25523 p
25524 g
25525 s/.\{148\}//
25526 t nl
25527 :delim
25528 h
25529 s/\(.\{148\}\)..*/\1/
25530 t more2
25531 s/["\\]/\\&/g; s/^/"/; s/$/"/
25532 p
25533 b
25534 :more2
25535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25536 p
25537 g
25538 s/.\{148\}//
25539 t delim
25540 ' <conf$$subs.awk | sed '
25541 /^[^""]/{
25542 N
25543 s/\n//
25544 }
25545 ' >>$CONFIG_STATUS || ac_write_fail=1
25546 rm -f conf$$subs.awk
25547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25548 _ACAWK
25549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25550 for (key in S) S_is_set[key] = 1
25551 FS = "\a"
25552
25553 }
25554 {
25555 line = $ 0
25556 nfields = split(line, field, "@")
25557 substed = 0
25558 len = length(field[1])
25559 for (i = 2; i < nfields; i++) {
25560 key = field[i]
25561 keylen = length(key)
25562 if (S_is_set[key]) {
25563 value = S[key]
25564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25565 len += length(value) + length(field[++i])
25566 substed = 1
25567 } else
25568 len += 1 + keylen
25569 }
25570
25571 print line
25572 }
25573
25574 _ACAWK
25575 _ACEOF
25576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25579 else
25580 cat
25581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25583 _ACEOF
25584
25585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25587 # trailing colons and then remove the whole line if VPATH becomes empty
25588 # (actually we leave an empty line to preserve line numbers).
25589 if test "x$srcdir" = x.; then
25590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25591 h
25592 s///
25593 s/^/:/
25594 s/[ ]*$/:/
25595 s/:\$(srcdir):/:/g
25596 s/:\${srcdir}:/:/g
25597 s/:@srcdir@:/:/g
25598 s/^:*//
25599 s/:*$//
25600 x
25601 s/\(=[ ]*\).*/\1/
25602 G
25603 s/\n//
25604 s/^[^=]*=[ ]*$//
25605 }'
25606 fi
25607
25608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25609 fi # test -n "$CONFIG_FILES"
25610
25611 # Set up the scripts for CONFIG_HEADERS section.
25612 # No need to generate them if there are no CONFIG_HEADERS.
25613 # This happens for instance with `./config.status Makefile'.
25614 if test -n "$CONFIG_HEADERS"; then
25615 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25616 BEGIN {
25617 _ACEOF
25618
25619 # Transform confdefs.h into an awk script `defines.awk', embedded as
25620 # here-document in config.status, that substitutes the proper values into
25621 # config.h.in to produce config.h.
25622
25623 # Create a delimiter string that does not exist in confdefs.h, to ease
25624 # handling of long lines.
25625 ac_delim='%!_!# '
25626 for ac_last_try in false false :; do
25627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25628 if test -z "$ac_tt"; then
25629 break
25630 elif $ac_last_try; then
25631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25632 else
25633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25634 fi
25635 done
25636
25637 # For the awk script, D is an array of macro values keyed by name,
25638 # likewise P contains macro parameters if any. Preserve backslash
25639 # newline sequences.
25640
25641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25642 sed -n '
25643 s/.\{148\}/&'"$ac_delim"'/g
25644 t rset
25645 :rset
25646 s/^[ ]*#[ ]*define[ ][ ]*/ /
25647 t def
25648 d
25649 :def
25650 s/\\$//
25651 t bsnl
25652 s/["\\]/\\&/g
25653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25654 D["\1"]=" \3"/p
25655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25656 d
25657 :bsnl
25658 s/["\\]/\\&/g
25659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25660 D["\1"]=" \3\\\\\\n"\\/p
25661 t cont
25662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25663 t cont
25664 d
25665 :cont
25666 n
25667 s/.\{148\}/&'"$ac_delim"'/g
25668 t clear
25669 :clear
25670 s/\\$//
25671 t bsnlc
25672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25673 d
25674 :bsnlc
25675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25676 b cont
25677 ' <confdefs.h | sed '
25678 s/'"$ac_delim"'/"\\\
25679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25680
25681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25682 for (key in D) D_is_set[key] = 1
25683 FS = "\a"
25684 }
25685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25686 line = \$ 0
25687 split(line, arg, " ")
25688 if (arg[1] == "#") {
25689 defundef = arg[2]
25690 mac1 = arg[3]
25691 } else {
25692 defundef = substr(arg[1], 2)
25693 mac1 = arg[2]
25694 }
25695 split(mac1, mac2, "(") #)
25696 macro = mac2[1]
25697 prefix = substr(line, 1, index(line, defundef) - 1)
25698 if (D_is_set[macro]) {
25699 # Preserve the white space surrounding the "#".
25700 print prefix "define", macro P[macro] D[macro]
25701 next
25702 } else {
25703 # Replace #undef with comments. This is necessary, for example,
25704 # in the case of _POSIX_SOURCE, which is predefined and required
25705 # on some systems where configure will not decide to define it.
25706 if (defundef == "undef") {
25707 print "/*", prefix defundef, macro, "*/"
25708 next
25709 }
25710 }
25711 }
25712 { print }
25713 _ACAWK
25714 _ACEOF
25715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25717 fi # test -n "$CONFIG_HEADERS"
25718
25719
25720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25721 shift
25722 for ac_tag
25723 do
25724 case $ac_tag in
25725 :[FHLC]) ac_mode=$ac_tag; continue;;
25726 esac
25727 case $ac_mode$ac_tag in
25728 :[FHL]*:*);;
25729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25730 :[FH]-) ac_tag=-:-;;
25731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25732 esac
25733 ac_save_IFS=$IFS
25734 IFS=:
25735 set x $ac_tag
25736 IFS=$ac_save_IFS
25737 shift
25738 ac_file=$1
25739 shift
25740
25741 case $ac_mode in
25742 :L) ac_source=$1;;
25743 :[FH])
25744 ac_file_inputs=
25745 for ac_f
25746 do
25747 case $ac_f in
25748 -) ac_f="$ac_tmp/stdin";;
25749 *) # Look for the file first in the build tree, then in the source tree
25750 # (if the path is not absolute). The absolute path cannot be DOS-style,
25751 # because $ac_f cannot contain `:'.
25752 test -f "$ac_f" ||
25753 case $ac_f in
25754 [\\/$]*) false;;
25755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25756 esac ||
25757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25758 esac
25759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25760 as_fn_append ac_file_inputs " '$ac_f'"
25761 done
25762
25763 # Let's still pretend it is `configure' which instantiates (i.e., don't
25764 # use $as_me), people would be surprised to read:
25765 # /* config.h. Generated by config.status. */
25766 configure_input='Generated from '`
25767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25768 `' by configure.'
25769 if test x"$ac_file" != x-; then
25770 configure_input="$ac_file. $configure_input"
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25772 $as_echo "$as_me: creating $ac_file" >&6;}
25773 fi
25774 # Neutralize special characters interpreted by sed in replacement strings.
25775 case $configure_input in #(
25776 *\&* | *\|* | *\\* )
25777 ac_sed_conf_input=`$as_echo "$configure_input" |
25778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25779 *) ac_sed_conf_input=$configure_input;;
25780 esac
25781
25782 case $ac_tag in
25783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25785 esac
25786 ;;
25787 esac
25788
25789 ac_dir=`$as_dirname -- "$ac_file" ||
25790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25791 X"$ac_file" : 'X\(//\)[^/]' \| \
25792 X"$ac_file" : 'X\(//\)$' \| \
25793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25794 $as_echo X"$ac_file" |
25795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25796 s//\1/
25797 q
25798 }
25799 /^X\(\/\/\)[^/].*/{
25800 s//\1/
25801 q
25802 }
25803 /^X\(\/\/\)$/{
25804 s//\1/
25805 q
25806 }
25807 /^X\(\/\).*/{
25808 s//\1/
25809 q
25810 }
25811 s/.*/./; q'`
25812 as_dir="$ac_dir"; as_fn_mkdir_p
25813 ac_builddir=.
25814
25815 case "$ac_dir" in
25816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25817 *)
25818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25819 # A ".." for each directory in $ac_dir_suffix.
25820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25821 case $ac_top_builddir_sub in
25822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25824 esac ;;
25825 esac
25826 ac_abs_top_builddir=$ac_pwd
25827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25828 # for backward compatibility:
25829 ac_top_builddir=$ac_top_build_prefix
25830
25831 case $srcdir in
25832 .) # We are building in place.
25833 ac_srcdir=.
25834 ac_top_srcdir=$ac_top_builddir_sub
25835 ac_abs_top_srcdir=$ac_pwd ;;
25836 [\\/]* | ?:[\\/]* ) # Absolute name.
25837 ac_srcdir=$srcdir$ac_dir_suffix;
25838 ac_top_srcdir=$srcdir
25839 ac_abs_top_srcdir=$srcdir ;;
25840 *) # Relative name.
25841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25842 ac_top_srcdir=$ac_top_build_prefix$srcdir
25843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25844 esac
25845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25846
25847
25848 case $ac_mode in
25849 :F)
25850 #
25851 # CONFIG_FILE
25852 #
25853
25854 case $INSTALL in
25855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25857 esac
25858 ac_MKDIR_P=$MKDIR_P
25859 case $MKDIR_P in
25860 [\\/$]* | ?:[\\/]* ) ;;
25861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25862 esac
25863 _ACEOF
25864
25865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25866 # If the template does not know about datarootdir, expand it.
25867 # FIXME: This hack should be removed a few years after 2.60.
25868 ac_datarootdir_hack=; ac_datarootdir_seen=
25869 ac_sed_dataroot='
25870 /datarootdir/ {
25871 p
25872 q
25873 }
25874 /@datadir@/p
25875 /@docdir@/p
25876 /@infodir@/p
25877 /@localedir@/p
25878 /@mandir@/p'
25879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25880 *datarootdir*) ac_datarootdir_seen=yes;;
25881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25884 _ACEOF
25885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25886 ac_datarootdir_hack='
25887 s&@datadir@&$datadir&g
25888 s&@docdir@&$docdir&g
25889 s&@infodir@&$infodir&g
25890 s&@localedir@&$localedir&g
25891 s&@mandir@&$mandir&g
25892 s&\\\${datarootdir}&$datarootdir&g' ;;
25893 esac
25894 _ACEOF
25895
25896 # Neutralize VPATH when `$srcdir' = `.'.
25897 # Shell code in configure.ac might set extrasub.
25898 # FIXME: do we really want to maintain this feature?
25899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25900 ac_sed_extra="$ac_vpsub
25901 $extrasub
25902 _ACEOF
25903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25904 :t
25905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25906 s|@configure_input@|$ac_sed_conf_input|;t t
25907 s&@top_builddir@&$ac_top_builddir_sub&;t t
25908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25909 s&@srcdir@&$ac_srcdir&;t t
25910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25911 s&@top_srcdir@&$ac_top_srcdir&;t t
25912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25913 s&@builddir@&$ac_builddir&;t t
25914 s&@abs_builddir@&$ac_abs_builddir&;t t
25915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25916 s&@INSTALL@&$ac_INSTALL&;t t
25917 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25918 $ac_datarootdir_hack
25919 "
25920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25922
25923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25926 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25928 which seems to be undefined. Please make sure it is defined" >&5
25929 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25930 which seems to be undefined. Please make sure it is defined" >&2;}
25931
25932 rm -f "$ac_tmp/stdin"
25933 case $ac_file in
25934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25936 esac \
25937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25938 ;;
25939 :H)
25940 #
25941 # CONFIG_HEADER
25942 #
25943 if test x"$ac_file" != x-; then
25944 {
25945 $as_echo "/* $configure_input */" \
25946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25947 } >"$ac_tmp/config.h" \
25948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25951 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25952 else
25953 rm -f "$ac_file"
25954 mv "$ac_tmp/config.h" "$ac_file" \
25955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25956 fi
25957 else
25958 $as_echo "/* $configure_input */" \
25959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25960 || as_fn_error $? "could not create -" "$LINENO" 5
25961 fi
25962 # Compute "$ac_file"'s index in $config_headers.
25963 _am_arg="$ac_file"
25964 _am_stamp_count=1
25965 for _am_header in $config_headers :; do
25966 case $_am_header in
25967 $_am_arg | $_am_arg:* )
25968 break ;;
25969 * )
25970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25971 esac
25972 done
25973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25975 X"$_am_arg" : 'X\(//\)[^/]' \| \
25976 X"$_am_arg" : 'X\(//\)$' \| \
25977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25978 $as_echo X"$_am_arg" |
25979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25980 s//\1/
25981 q
25982 }
25983 /^X\(\/\/\)[^/].*/{
25984 s//\1/
25985 q
25986 }
25987 /^X\(\/\/\)$/{
25988 s//\1/
25989 q
25990 }
25991 /^X\(\/\).*/{
25992 s//\1/
25993 q
25994 }
25995 s/.*/./; q'`/stamp-h$_am_stamp_count
25996 ;;
25997
25998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25999 $as_echo "$as_me: executing $ac_file commands" >&6;}
26000 ;;
26001 esac
26002
26003
26004 case $ac_file$ac_mode in
26005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26006 # Older Autoconf quotes --file arguments for eval, but not when files
26007 # are listed without --file. Let's play safe and only enable the eval
26008 # if we detect the quoting.
26009 case $CONFIG_FILES in
26010 *\'*) eval set x "$CONFIG_FILES" ;;
26011 *) set x $CONFIG_FILES ;;
26012 esac
26013 shift
26014 for mf
26015 do
26016 # Strip MF so we end up with the name of the file.
26017 mf=`echo "$mf" | sed -e 's/:.*$//'`
26018 # Check whether this is an Automake generated Makefile or not.
26019 # We used to match only the files named 'Makefile.in', but
26020 # some people rename them; so instead we look at the file content.
26021 # Grep'ing the first line is not enough: some people post-process
26022 # each Makefile.in and add a new line on top of each file to say so.
26023 # Grep'ing the whole file is not good either: AIX grep has a line
26024 # limit of 2048, but all sed's we know have understand at least 4000.
26025 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26026 dirpart=`$as_dirname -- "$mf" ||
26027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26028 X"$mf" : 'X\(//\)[^/]' \| \
26029 X"$mf" : 'X\(//\)$' \| \
26030 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26031 $as_echo X"$mf" |
26032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26033 s//\1/
26034 q
26035 }
26036 /^X\(\/\/\)[^/].*/{
26037 s//\1/
26038 q
26039 }
26040 /^X\(\/\/\)$/{
26041 s//\1/
26042 q
26043 }
26044 /^X\(\/\).*/{
26045 s//\1/
26046 q
26047 }
26048 s/.*/./; q'`
26049 else
26050 continue
26051 fi
26052 # Extract the definition of DEPDIR, am__include, and am__quote
26053 # from the Makefile without running 'make'.
26054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26055 test -z "$DEPDIR" && continue
26056 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26057 test -z "$am__include" && continue
26058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26059 # Find all dependency output files, they are included files with
26060 # $(DEPDIR) in their names. We invoke sed twice because it is the
26061 # simplest approach to changing $(DEPDIR) to its actual value in the
26062 # expansion.
26063 for file in `sed -n "
26064 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26065 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26066 # Make sure the directory exists.
26067 test -f "$dirpart/$file" && continue
26068 fdir=`$as_dirname -- "$file" ||
26069 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26070 X"$file" : 'X\(//\)[^/]' \| \
26071 X"$file" : 'X\(//\)$' \| \
26072 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26073 $as_echo X"$file" |
26074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26075 s//\1/
26076 q
26077 }
26078 /^X\(\/\/\)[^/].*/{
26079 s//\1/
26080 q
26081 }
26082 /^X\(\/\/\)$/{
26083 s//\1/
26084 q
26085 }
26086 /^X\(\/\).*/{
26087 s//\1/
26088 q
26089 }
26090 s/.*/./; q'`
26091 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26092 # echo "creating $dirpart/$file"
26093 echo '# dummy' > "$dirpart/$file"
26094 done
26095 done
26096 }
26097 ;;
26098 "libtool":C)
26099
26100 # See if we are running on zsh, and set the options that allow our
26101 # commands through without removal of \ escapes.
26102 if test -n "${ZSH_VERSION+set}"; then
26103 setopt NO_GLOB_SUBST
26104 fi
26105
26106 cfgfile=${ofile}T
26107 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26108 $RM "$cfgfile"
26109
26110 cat <<_LT_EOF >> "$cfgfile"
26111 #! $SHELL
26112 # Generated automatically by $as_me ($PACKAGE) $VERSION
26113 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26114 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26115
26116 # Provide generalized library-building support services.
26117 # Written by Gordon Matzigkeit, 1996
26118
26119 # Copyright (C) 2014 Free Software Foundation, Inc.
26120 # This is free software; see the source for copying conditions. There is NO
26121 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26122
26123 # GNU Libtool is free software; you can redistribute it and/or modify
26124 # it under the terms of the GNU General Public License as published by
26125 # the Free Software Foundation; either version 2 of of the License, or
26126 # (at your option) any later version.
26127 #
26128 # As a special exception to the GNU General Public License, if you
26129 # distribute this file as part of a program or library that is built
26130 # using GNU Libtool, you may include this file under the same
26131 # distribution terms that you use for the rest of that program.
26132 #
26133 # GNU Libtool is distributed in the hope that it will be useful, but
26134 # WITHOUT ANY WARRANTY; without even the implied warranty of
26135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26136 # GNU General Public License for more details.
26137 #
26138 # You should have received a copy of the GNU General Public License
26139 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26140
26141
26142 # The names of the tagged configurations supported by this script.
26143 available_tags='CXX '
26144
26145 # Configured defaults for sys_lib_dlsearch_path munging.
26146 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26147
26148 # ### BEGIN LIBTOOL CONFIG
26149
26150 # Which release of libtool.m4 was used?
26151 macro_version=$macro_version
26152 macro_revision=$macro_revision
26153
26154 # Whether or not to build static libraries.
26155 build_old_libs=$enable_static
26156
26157 # Whether or not to build shared libraries.
26158 build_libtool_libs=$enable_shared
26159
26160 # What type of objects to build.
26161 pic_mode=$pic_mode
26162
26163 # Whether or not to optimize for fast installation.
26164 fast_install=$enable_fast_install
26165
26166 # Shared archive member basename,for filename based shared library versioning on AIX.
26167 shared_archive_member_spec=$shared_archive_member_spec
26168
26169 # Shell to use when invoking shell scripts.
26170 SHELL=$lt_SHELL
26171
26172 # An echo program that protects backslashes.
26173 ECHO=$lt_ECHO
26174
26175 # The PATH separator for the build system.
26176 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26177
26178 # The host system.
26179 host_alias=$host_alias
26180 host=$host
26181 host_os=$host_os
26182
26183 # The build system.
26184 build_alias=$build_alias
26185 build=$build
26186 build_os=$build_os
26187
26188 # A sed program that does not truncate output.
26189 SED=$lt_SED
26190
26191 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26192 Xsed="\$SED -e 1s/^X//"
26193
26194 # A grep program that handles long lines.
26195 GREP=$lt_GREP
26196
26197 # An ERE matcher.
26198 EGREP=$lt_EGREP
26199
26200 # A literal string matcher.
26201 FGREP=$lt_FGREP
26202
26203 # A BSD- or MS-compatible name lister.
26204 NM=$lt_NM
26205
26206 # Whether we need soft or hard links.
26207 LN_S=$lt_LN_S
26208
26209 # What is the maximum length of a command?
26210 max_cmd_len=$max_cmd_len
26211
26212 # Object file suffix (normally "o").
26213 objext=$ac_objext
26214
26215 # Executable file suffix (normally "").
26216 exeext=$exeext
26217
26218 # whether the shell understands "unset".
26219 lt_unset=$lt_unset
26220
26221 # turn spaces into newlines.
26222 SP2NL=$lt_lt_SP2NL
26223
26224 # turn newlines into spaces.
26225 NL2SP=$lt_lt_NL2SP
26226
26227 # convert \$build file names to \$host format.
26228 to_host_file_cmd=$lt_cv_to_host_file_cmd
26229
26230 # convert \$build files to toolchain format.
26231 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26232
26233 # An object symbol dumper.
26234 OBJDUMP=$lt_OBJDUMP
26235
26236 # Method to check whether dependent libraries are shared objects.
26237 deplibs_check_method=$lt_deplibs_check_method
26238
26239 # Command to use when deplibs_check_method = "file_magic".
26240 file_magic_cmd=$lt_file_magic_cmd
26241
26242 # How to find potential files when deplibs_check_method = "file_magic".
26243 file_magic_glob=$lt_file_magic_glob
26244
26245 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26246 want_nocaseglob=$lt_want_nocaseglob
26247
26248 # DLL creation program.
26249 DLLTOOL=$lt_DLLTOOL
26250
26251 # Command to associate shared and link libraries.
26252 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26253
26254 # The archiver.
26255 AR=$lt_AR
26256
26257 # Flags to create an archive.
26258 AR_FLAGS=$lt_AR_FLAGS
26259
26260 # How to feed a file listing to the archiver.
26261 archiver_list_spec=$lt_archiver_list_spec
26262
26263 # A symbol stripping program.
26264 STRIP=$lt_STRIP
26265
26266 # Commands used to install an old-style archive.
26267 RANLIB=$lt_RANLIB
26268 old_postinstall_cmds=$lt_old_postinstall_cmds
26269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26270
26271 # Whether to use a lock for old archive extraction.
26272 lock_old_archive_extraction=$lock_old_archive_extraction
26273
26274 # A C compiler.
26275 LTCC=$lt_CC
26276
26277 # LTCC compiler flags.
26278 LTCFLAGS=$lt_CFLAGS
26279
26280 # Take the output of nm and produce a listing of raw symbols and C names.
26281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26282
26283 # Transform the output of nm in a proper C declaration.
26284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26285
26286 # Transform the output of nm into a list of symbols to manually relocate.
26287 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26288
26289 # Transform the output of nm in a C name address pair.
26290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26291
26292 # Transform the output of nm in a C name address pair when lib prefix is needed.
26293 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26294
26295 # The name lister interface.
26296 nm_interface=$lt_lt_cv_nm_interface
26297
26298 # Specify filename containing input files for \$NM.
26299 nm_file_list_spec=$lt_nm_file_list_spec
26300
26301 # The root where to search for dependent libraries,and where our libraries should be installed.
26302 lt_sysroot=$lt_sysroot
26303
26304 # Command to truncate a binary pipe.
26305 lt_truncate_bin=$lt_lt_cv_truncate_bin
26306
26307 # The name of the directory that contains temporary libtool files.
26308 objdir=$objdir
26309
26310 # Used to examine libraries when file_magic_cmd begins with "file".
26311 MAGIC_CMD=$MAGIC_CMD
26312
26313 # Must we lock files when doing compilation?
26314 need_locks=$lt_need_locks
26315
26316 # Manifest tool.
26317 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26318
26319 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26320 DSYMUTIL=$lt_DSYMUTIL
26321
26322 # Tool to change global to local symbols on Mac OS X.
26323 NMEDIT=$lt_NMEDIT
26324
26325 # Tool to manipulate fat objects and archives on Mac OS X.
26326 LIPO=$lt_LIPO
26327
26328 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26329 OTOOL=$lt_OTOOL
26330
26331 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26332 OTOOL64=$lt_OTOOL64
26333
26334 # Old archive suffix (normally "a").
26335 libext=$libext
26336
26337 # Shared library suffix (normally ".so").
26338 shrext_cmds=$lt_shrext_cmds
26339
26340 # The commands to extract the exported symbol list from a shared archive.
26341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26342
26343 # Variables whose values should be saved in libtool wrapper scripts and
26344 # restored at link time.
26345 variables_saved_for_relink=$lt_variables_saved_for_relink
26346
26347 # Do we need the "lib" prefix for modules?
26348 need_lib_prefix=$need_lib_prefix
26349
26350 # Do we need a version for libraries?
26351 need_version=$need_version
26352
26353 # Library versioning type.
26354 version_type=$version_type
26355
26356 # Shared library runtime path variable.
26357 runpath_var=$runpath_var
26358
26359 # Shared library path variable.
26360 shlibpath_var=$shlibpath_var
26361
26362 # Is shlibpath searched before the hard-coded library search path?
26363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26364
26365 # Format of library name prefix.
26366 libname_spec=$lt_libname_spec
26367
26368 # List of archive names. First name is the real one, the rest are links.
26369 # The last name is the one that the linker finds with -lNAME
26370 library_names_spec=$lt_library_names_spec
26371
26372 # The coded name of the library, if different from the real name.
26373 soname_spec=$lt_soname_spec
26374
26375 # Permission mode override for installation of shared libraries.
26376 install_override_mode=$lt_install_override_mode
26377
26378 # Command to use after installation of a shared archive.
26379 postinstall_cmds=$lt_postinstall_cmds
26380
26381 # Command to use after uninstallation of a shared archive.
26382 postuninstall_cmds=$lt_postuninstall_cmds
26383
26384 # Commands used to finish a libtool library installation in a directory.
26385 finish_cmds=$lt_finish_cmds
26386
26387 # As "finish_cmds", except a single script fragment to be evaled but
26388 # not shown.
26389 finish_eval=$lt_finish_eval
26390
26391 # Whether we should hardcode library paths into libraries.
26392 hardcode_into_libs=$hardcode_into_libs
26393
26394 # Compile-time system search path for libraries.
26395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26396
26397 # Detected run-time system search path for libraries.
26398 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26399
26400 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26401 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26402
26403 # Whether dlopen is supported.
26404 dlopen_support=$enable_dlopen
26405
26406 # Whether dlopen of programs is supported.
26407 dlopen_self=$enable_dlopen_self
26408
26409 # Whether dlopen of statically linked programs is supported.
26410 dlopen_self_static=$enable_dlopen_self_static
26411
26412 # Commands to strip libraries.
26413 old_striplib=$lt_old_striplib
26414 striplib=$lt_striplib
26415
26416
26417 # The linker used to build libraries.
26418 LD=$lt_LD
26419
26420 # How to create reloadable object files.
26421 reload_flag=$lt_reload_flag
26422 reload_cmds=$lt_reload_cmds
26423
26424 # Commands used to build an old-style archive.
26425 old_archive_cmds=$lt_old_archive_cmds
26426
26427 # A language specific compiler.
26428 CC=$lt_compiler
26429
26430 # Is the compiler the GNU compiler?
26431 with_gcc=$GCC
26432
26433 # Compiler flag to turn off builtin functions.
26434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26435
26436 # Additional compiler flags for building library objects.
26437 pic_flag=$lt_lt_prog_compiler_pic
26438
26439 # How to pass a linker flag through the compiler.
26440 wl=$lt_lt_prog_compiler_wl
26441
26442 # Compiler flag to prevent dynamic linking.
26443 link_static_flag=$lt_lt_prog_compiler_static
26444
26445 # Does compiler simultaneously support -c and -o options?
26446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26447
26448 # Whether or not to add -lc for building shared libraries.
26449 build_libtool_need_lc=$archive_cmds_need_lc
26450
26451 # Whether or not to disallow shared libs when runtime libs are static.
26452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26453
26454 # Compiler flag to allow reflexive dlopens.
26455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26456
26457 # Compiler flag to generate shared objects directly from archives.
26458 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26459
26460 # Whether the compiler copes with passing no objects directly.
26461 compiler_needs_object=$lt_compiler_needs_object
26462
26463 # Create an old-style archive from a shared archive.
26464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26465
26466 # Create a temporary old-style archive to link instead of a shared archive.
26467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26468
26469 # Commands used to build a shared archive.
26470 archive_cmds=$lt_archive_cmds
26471 archive_expsym_cmds=$lt_archive_expsym_cmds
26472
26473 # Commands used to build a loadable module if different from building
26474 # a shared archive.
26475 module_cmds=$lt_module_cmds
26476 module_expsym_cmds=$lt_module_expsym_cmds
26477
26478 # Whether we are building with GNU ld or not.
26479 with_gnu_ld=$lt_with_gnu_ld
26480
26481 # Flag that allows shared libraries with undefined symbols to be built.
26482 allow_undefined_flag=$lt_allow_undefined_flag
26483
26484 # Flag that enforces no undefined symbols.
26485 no_undefined_flag=$lt_no_undefined_flag
26486
26487 # Flag to hardcode \$libdir into a binary during linking.
26488 # This must work even if \$libdir does not exist
26489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26490
26491 # Whether we need a single "-rpath" flag with a separated argument.
26492 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26493
26494 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26495 # DIR into the resulting binary.
26496 hardcode_direct=$hardcode_direct
26497
26498 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26499 # DIR into the resulting binary and the resulting library dependency is
26500 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26501 # library is relocated.
26502 hardcode_direct_absolute=$hardcode_direct_absolute
26503
26504 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26505 # into the resulting binary.
26506 hardcode_minus_L=$hardcode_minus_L
26507
26508 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26509 # into the resulting binary.
26510 hardcode_shlibpath_var=$hardcode_shlibpath_var
26511
26512 # Set to "yes" if building a shared library automatically hardcodes DIR
26513 # into the library and all subsequent libraries and executables linked
26514 # against it.
26515 hardcode_automatic=$hardcode_automatic
26516
26517 # Set to yes if linker adds runtime paths of dependent libraries
26518 # to runtime path list.
26519 inherit_rpath=$inherit_rpath
26520
26521 # Whether libtool must link a program against all its dependency libraries.
26522 link_all_deplibs=$link_all_deplibs
26523
26524 # Set to "yes" if exported symbols are required.
26525 always_export_symbols=$always_export_symbols
26526
26527 # The commands to list exported symbols.
26528 export_symbols_cmds=$lt_export_symbols_cmds
26529
26530 # Symbols that should not be listed in the preloaded symbols.
26531 exclude_expsyms=$lt_exclude_expsyms
26532
26533 # Symbols that must always be exported.
26534 include_expsyms=$lt_include_expsyms
26535
26536 # Commands necessary for linking programs (against libraries) with templates.
26537 prelink_cmds=$lt_prelink_cmds
26538
26539 # Commands necessary for finishing linking programs.
26540 postlink_cmds=$lt_postlink_cmds
26541
26542 # Specify filename containing input files.
26543 file_list_spec=$lt_file_list_spec
26544
26545 # How to hardcode a shared library path into an executable.
26546 hardcode_action=$hardcode_action
26547
26548 # The directories searched by this compiler when creating a shared library.
26549 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26550
26551 # Dependencies to place before and after the objects being linked to
26552 # create a shared library.
26553 predep_objects=$lt_predep_objects
26554 postdep_objects=$lt_postdep_objects
26555 predeps=$lt_predeps
26556 postdeps=$lt_postdeps
26557
26558 # The library search path used internally by the compiler when linking
26559 # a shared library.
26560 compiler_lib_search_path=$lt_compiler_lib_search_path
26561
26562 # ### END LIBTOOL CONFIG
26563
26564 _LT_EOF
26565
26566 cat <<'_LT_EOF' >> "$cfgfile"
26567
26568 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26569
26570 # func_munge_path_list VARIABLE PATH
26571 # -----------------------------------
26572 # VARIABLE is name of variable containing _space_ separated list of
26573 # directories to be munged by the contents of PATH, which is string
26574 # having a format:
26575 # "DIR[:DIR]:"
26576 # string "DIR[ DIR]" will be prepended to VARIABLE
26577 # ":DIR[:DIR]"
26578 # string "DIR[ DIR]" will be appended to VARIABLE
26579 # "DIRP[:DIRP]::[DIRA:]DIRA"
26580 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26581 # "DIRA[ DIRA]" will be appended to VARIABLE
26582 # "DIR[:DIR]"
26583 # VARIABLE will be replaced by "DIR[ DIR]"
26584 func_munge_path_list ()
26585 {
26586 case x$2 in
26587 x)
26588 ;;
26589 *:)
26590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26591 ;;
26592 x:*)
26593 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26594 ;;
26595 *::*)
26596 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26597 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26598 ;;
26599 *)
26600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26601 ;;
26602 esac
26603 }
26604
26605
26606 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26607 func_cc_basename ()
26608 {
26609 for cc_temp in $*""; do
26610 case $cc_temp in
26611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26613 \-*) ;;
26614 *) break;;
26615 esac
26616 done
26617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26618 }
26619
26620
26621 # ### END FUNCTIONS SHARED WITH CONFIGURE
26622
26623 _LT_EOF
26624
26625 case $host_os in
26626 aix3*)
26627 cat <<\_LT_EOF >> "$cfgfile"
26628 # AIX sometimes has problems with the GCC collect2 program. For some
26629 # reason, if we set the COLLECT_NAMES environment variable, the problems
26630 # vanish in a puff of smoke.
26631 if test set != "${COLLECT_NAMES+set}"; then
26632 COLLECT_NAMES=
26633 export COLLECT_NAMES
26634 fi
26635 _LT_EOF
26636 ;;
26637 esac
26638
26639
26640 ltmain=$ac_aux_dir/ltmain.sh
26641
26642
26643 # We use sed instead of cat because bash on DJGPP gets confused if
26644 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26645 # text mode, it properly converts lines to CR/LF. This bash problem
26646 # is reportedly fixed, but why not run on old versions too?
26647 sed '$q' "$ltmain" >> "$cfgfile" \
26648 || (rm -f "$cfgfile"; exit 1)
26649
26650 mv -f "$cfgfile" "$ofile" ||
26651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26652 chmod +x "$ofile"
26653
26654
26655 cat <<_LT_EOF >> "$ofile"
26656
26657 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26658
26659 # The linker used to build libraries.
26660 LD=$lt_LD_CXX
26661
26662 # How to create reloadable object files.
26663 reload_flag=$lt_reload_flag_CXX
26664 reload_cmds=$lt_reload_cmds_CXX
26665
26666 # Commands used to build an old-style archive.
26667 old_archive_cmds=$lt_old_archive_cmds_CXX
26668
26669 # A language specific compiler.
26670 CC=$lt_compiler_CXX
26671
26672 # Is the compiler the GNU compiler?
26673 with_gcc=$GCC_CXX
26674
26675 # Compiler flag to turn off builtin functions.
26676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26677
26678 # Additional compiler flags for building library objects.
26679 pic_flag=$lt_lt_prog_compiler_pic_CXX
26680
26681 # How to pass a linker flag through the compiler.
26682 wl=$lt_lt_prog_compiler_wl_CXX
26683
26684 # Compiler flag to prevent dynamic linking.
26685 link_static_flag=$lt_lt_prog_compiler_static_CXX
26686
26687 # Does compiler simultaneously support -c and -o options?
26688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26689
26690 # Whether or not to add -lc for building shared libraries.
26691 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26692
26693 # Whether or not to disallow shared libs when runtime libs are static.
26694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26695
26696 # Compiler flag to allow reflexive dlopens.
26697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26698
26699 # Compiler flag to generate shared objects directly from archives.
26700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26701
26702 # Whether the compiler copes with passing no objects directly.
26703 compiler_needs_object=$lt_compiler_needs_object_CXX
26704
26705 # Create an old-style archive from a shared archive.
26706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26707
26708 # Create a temporary old-style archive to link instead of a shared archive.
26709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26710
26711 # Commands used to build a shared archive.
26712 archive_cmds=$lt_archive_cmds_CXX
26713 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26714
26715 # Commands used to build a loadable module if different from building
26716 # a shared archive.
26717 module_cmds=$lt_module_cmds_CXX
26718 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26719
26720 # Whether we are building with GNU ld or not.
26721 with_gnu_ld=$lt_with_gnu_ld_CXX
26722
26723 # Flag that allows shared libraries with undefined symbols to be built.
26724 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26725
26726 # Flag that enforces no undefined symbols.
26727 no_undefined_flag=$lt_no_undefined_flag_CXX
26728
26729 # Flag to hardcode \$libdir into a binary during linking.
26730 # This must work even if \$libdir does not exist
26731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26732
26733 # Whether we need a single "-rpath" flag with a separated argument.
26734 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26735
26736 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26737 # DIR into the resulting binary.
26738 hardcode_direct=$hardcode_direct_CXX
26739
26740 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26741 # DIR into the resulting binary and the resulting library dependency is
26742 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26743 # library is relocated.
26744 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26745
26746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26747 # into the resulting binary.
26748 hardcode_minus_L=$hardcode_minus_L_CXX
26749
26750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26751 # into the resulting binary.
26752 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26753
26754 # Set to "yes" if building a shared library automatically hardcodes DIR
26755 # into the library and all subsequent libraries and executables linked
26756 # against it.
26757 hardcode_automatic=$hardcode_automatic_CXX
26758
26759 # Set to yes if linker adds runtime paths of dependent libraries
26760 # to runtime path list.
26761 inherit_rpath=$inherit_rpath_CXX
26762
26763 # Whether libtool must link a program against all its dependency libraries.
26764 link_all_deplibs=$link_all_deplibs_CXX
26765
26766 # Set to "yes" if exported symbols are required.
26767 always_export_symbols=$always_export_symbols_CXX
26768
26769 # The commands to list exported symbols.
26770 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26771
26772 # Symbols that should not be listed in the preloaded symbols.
26773 exclude_expsyms=$lt_exclude_expsyms_CXX
26774
26775 # Symbols that must always be exported.
26776 include_expsyms=$lt_include_expsyms_CXX
26777
26778 # Commands necessary for linking programs (against libraries) with templates.
26779 prelink_cmds=$lt_prelink_cmds_CXX
26780
26781 # Commands necessary for finishing linking programs.
26782 postlink_cmds=$lt_postlink_cmds_CXX
26783
26784 # Specify filename containing input files.
26785 file_list_spec=$lt_file_list_spec_CXX
26786
26787 # How to hardcode a shared library path into an executable.
26788 hardcode_action=$hardcode_action_CXX
26789
26790 # The directories searched by this compiler when creating a shared library.
26791 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26792
26793 # Dependencies to place before and after the objects being linked to
26794 # create a shared library.
26795 predep_objects=$lt_predep_objects_CXX
26796 postdep_objects=$lt_postdep_objects_CXX
26797 predeps=$lt_predeps_CXX
26798 postdeps=$lt_postdeps_CXX
26799
26800 # The library search path used internally by the compiler when linking
26801 # a shared library.
26802 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26803
26804 # ### END LIBTOOL TAG CONFIG: CXX
26805 _LT_EOF
26806
26807 ;;
26808
26809 esac
26810 done # for ac_tag
26811
26812
26813 as_fn_exit 0
26814 _ACEOF
26815 ac_clean_files=$ac_clean_files_save
26816
26817 test $ac_write_fail = 0 ||
26818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26819
26820
26821 # configure is writing to config.log, and then calls config.status.
26822 # config.status does its own redirection, appending to config.log.
26823 # Unfortunately, on DOS this fails, as config.log is still kept open
26824 # by configure, so config.status won't be able to write to it; its
26825 # output is simply discarded. So we exec the FD to /dev/null,
26826 # effectively closing config.log, so it can be properly (re)opened and
26827 # appended to by config.status. When coming back to configure, we
26828 # need to make the FD available again.
26829 if test "$no_create" != yes; then
26830 ac_cs_success=:
26831 ac_config_status_args=
26832 test "$silent" = yes &&
26833 ac_config_status_args="$ac_config_status_args --quiet"
26834 exec 5>/dev/null
26835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26836 exec 5>>config.log
26837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26838 # would make configure fail if this is the last instruction.
26839 $ac_cs_success || as_fn_exit 1
26840 fi
26841 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26843 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26844 fi
26845