]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/classpath/configure
Regenerate configure files for libtool.m4 change
[thirdparty/gcc.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Classpath 0.99.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
244 fi
245 exit 1
246 fi
247 fi
248 fi
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
254
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
262 {
263 { eval $1=; unset $1;}
264 }
265 as_unset=as_fn_unset
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272 return $1
273 } # as_fn_set_status
274
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
279 {
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
284
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
289 {
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343 else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348 fi # as_fn_append
349
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360 else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365 fi # as_fn_arith
366
367
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
374 {
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
383
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
389 fi
390
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
395 fi
396
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
401 fi
402
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
421
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
470 *)
471 ECHO_N='-n';;
472 esac
473
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
480 fi
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
494 fi
495 else
496 as_ln_s='cp -p'
497 fi
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
500
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506 fi
507
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528 fi
529 as_executable_p=$as_test_x
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='GNU Classpath'
561 PACKAGE_TARNAME='classpath'
562 PACKAGE_VERSION='0.99'
563 PACKAGE_STRING='GNU Classpath 0.99'
564 PACKAGE_BUGREPORT='classpath@gnu.org'
565 PACKAGE_URL='http://www.gnu.org/software/classpath/'
566
567 ac_unique_file="java/lang/System.java"
568 ac_default_prefix=/usr/local/classpath
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 CREATE_GMPBI_LIBRARY_FALSE
610 CREATE_GMPBI_LIBRARY_TRUE
611 WANT_NATIVE_BIG_INTEGER
612 DEFAULT_PREFS_PEER
613 ENABLE_LOCAL_SOCKETS_FALSE
614 ENABLE_LOCAL_SOCKETS_TRUE
615 PATH_TO_ESCHER
616 USE_ESCHER_FALSE
617 USE_ESCHER_TRUE
618 JAVAC_MEM_OPT
619 ac_ct_ANTLR
620 ANTLR
621 ANTLR_JAR
622 GCJ_JAVAC_FALSE
623 GCJ_JAVAC_TRUE
624 JAVAC_IS_GCJ
625 JAVAC
626 uudecode
627 JAVA
628 PATH_TO_GLIBJ_ZIP
629 USE_PREBUILT_GLIBJ_ZIP_FALSE
630 USE_PREBUILT_GLIBJ_ZIP_TRUE
631 REGEN_PARSERS_FALSE
632 REGEN_PARSERS_TRUE
633 JAY_SKELETON
634 JAY
635 CREATE_API_DOCS_FALSE
636 CREATE_API_DOCS_TRUE
637 GJDOC
638 TOOLSDIR
639 EXAMPLESDIR
640 BUILD_CLASS_FILES_FALSE
641 BUILD_CLASS_FILES_TRUE
642 INSTALL_CLASS_FILES_FALSE
643 INSTALL_CLASS_FILES_TRUE
644 INSTALL_GLIBJ_ZIP_FALSE
645 INSTALL_GLIBJ_ZIP_TRUE
646 WITH_JAR_FALSE
647 WITH_JAR_TRUE
648 JAR
649 ZIP
650 FIND
651 DATE
652 CP
653 MKDIR
654 REMOVE
655 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
656 ECJ_JAR
657 INIT_LOAD_LIBRARY
658 LIBDEBUG
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 vm_classes
663 CLASSPATH_INCLUDES
664 USER_JAVAH
665 GMP_LIBS
666 GMP_CFLAGS
667 PLUGIN_DIR
668 GLIB_LIBS
669 GLIB_CFLAGS
670 MOZILLA_LIBS
671 MOZILLA_CFLAGS
672 MOC
673 QT_LIBS
674 QT_CFLAGS
675 GSTREAMER_MIXER_PROVIDER
676 GSTREAMER_FILE_READER
677 GST_PLUGIN_LDFLAGS
678 GSTREAMER_PLUGINS_BASE_LIBS
679 GSTREAMER_PLUGINS_BASE_CFLAGS
680 GSTREAMER_BASE_LIBS
681 GSTREAMER_BASE_CFLAGS
682 GSTREAMER_LIBS
683 GSTREAMER_CFLAGS
684 GDK_LIBS
685 GDK_CFLAGS
686 GCONF_LIBS
687 GCONF_CFLAGS
688 XTEST_LIBS
689 CAIRO_LIBS
690 CAIRO_CFLAGS
691 PANGOFT2_LIBS
692 PANGOFT2_CFLAGS
693 FREETYPE2_LIBS
694 FREETYPE2_CFLAGS
695 GTK_LIBS
696 GTK_CFLAGS
697 X_EXTRA_LIBS
698 X_LIBS
699 X_PRE_LIBS
700 X_CFLAGS
701 XMKMF
702 XSLT_LIBS
703 XSLT_CFLAGS
704 XML_LIBS
705 XML_CFLAGS
706 PKG_CONFIG
707 ERROR_CFLAGS
708 STRICT_WARNING_CFLAGS
709 EXTRA_CFLAGS
710 WARNING_CFLAGS
711 LTLIBICONV
712 LIBICONV
713 LIBMAGIC
714 COLLECTIONS_PREFIX
715 PERL
716 CXXCPP
717 am__fastdepCXX_FALSE
718 am__fastdepCXX_TRUE
719 CXXDEPMODE
720 ac_ct_CXX
721 CXXFLAGS
722 CXX
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 RANLIB
729 AR
730 OBJDUMP
731 NM
732 ac_ct_DUMPBIN
733 DUMPBIN
734 LD
735 FGREP
736 SED
737 LIBTOOL
738 LN_S
739 CREATE_WRAPPERS_FALSE
740 CREATE_WRAPPERS_TRUE
741 CREATE_GJDOC_PARSER_FALSE
742 CREATE_GJDOC_PARSER_TRUE
743 CREATE_JNI_HEADERS_FALSE
744 CREATE_JNI_HEADERS_TRUE
745 glibjdir
746 nativeexeclibdir
747 toolexeclibdir
748 CREATE_GJDOC_FALSE
749 CREATE_GJDOC_TRUE
750 CREATE_PLUGIN_FALSE
751 CREATE_PLUGIN_TRUE
752 CREATE_QT_PEER_LIBRARIES_FALSE
753 CREATE_QT_PEER_LIBRARIES_TRUE
754 CREATE_GTK_PEER_LIBRARIES_FALSE
755 CREATE_GTK_PEER_LIBRARIES_TRUE
756 CREATE_DSSI_LIBRARIES_FALSE
757 CREATE_DSSI_LIBRARIES_TRUE
758 CREATE_ALSA_LIBRARIES_FALSE
759 CREATE_ALSA_LIBRARIES_TRUE
760 EGREP
761 GREP
762 CPP
763 am__fastdepCC_FALSE
764 am__fastdepCC_TRUE
765 CCDEPMODE
766 AMDEPBACKSLASH
767 AMDEP_FALSE
768 AMDEP_TRUE
769 am__quote
770 am__include
771 DEPDIR
772 OBJEXT
773 EXEEXT
774 ac_ct_CC
775 CPPFLAGS
776 LDFLAGS
777 CFLAGS
778 CC
779 CREATE_XMLJ_LIBRARY_FALSE
780 CREATE_XMLJ_LIBRARY_TRUE
781 default_toolkit
782 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
783 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
784 CREATE_GCONF_PEER_LIBRARIES_FALSE
785 CREATE_GCONF_PEER_LIBRARIES_TRUE
786 CREATE_CORE_JNI_LIBRARIES_FALSE
787 CREATE_CORE_JNI_LIBRARIES_TRUE
788 CREATE_JNI_LIBRARIES_FALSE
789 CREATE_JNI_LIBRARIES_TRUE
790 CREATE_COLLECTIONS_FALSE
791 CREATE_COLLECTIONS_TRUE
792 am__untar
793 am__tar
794 AMTAR
795 am__leading_dot
796 SET_MAKE
797 AWK
798 mkdir_p
799 MKDIR_P
800 INSTALL_STRIP_PROGRAM
801 STRIP
802 install_sh
803 MAKEINFO
804 AUTOHEADER
805 AUTOMAKE
806 AUTOCONF
807 ACLOCAL
808 VERSION
809 PACKAGE
810 CYGPATH_W
811 am__isrc
812 INSTALL_DATA
813 INSTALL_SCRIPT
814 INSTALL_PROGRAM
815 CLASSPATH_CONVENIENCE
816 CLASSPATH_MODULE
817 LIBVERSION
818 INSTALL_BINARIES_FALSE
819 INSTALL_BINARIES_TRUE
820 multi_basedir
821 GENINSRC_FALSE
822 GENINSRC_TRUE
823 JAVA_MAINTAINER_MODE_FALSE
824 JAVA_MAINTAINER_MODE_TRUE
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files=''
876 ac_user_opts='
877 enable_option_checking
878 enable_java_maintainer_mode
879 enable_generated_files_in_srcdir
880 enable_multilib
881 enable_collections
882 enable_jni
883 enable_core_jni
884 enable_default_preferences_peer
885 enable_gconf_peer
886 enable_gconf_peers
887 enable_gstreamer_peer
888 enable_gstreamer_peers
889 enable_Werror
890 enable_default_toolkit
891 enable_xmlj
892 enable_alsa
893 enable_dependency_tracking
894 enable_dssi
895 enable_gtk_peer
896 enable_gtk_peers
897 enable_qt_peer
898 enable_plugin
899 enable_gmp
900 enable_gjdoc
901 with_native_libdir
902 with_glibj_dir
903 with_antlr_jar
904 enable_regen_headers
905 enable_regen_gjdoc_parser
906 enable_tool_wrappers
907 enable_static
908 enable_shared
909 with_pic
910 enable_fast_install
911 with_gnu_ld
912 enable_libtool_lock
913 enable_rpath
914 with_libiconv_prefix
915 with_x
916 with_qt4dir
917 with_gmp
918 with_gmp_include
919 with_gmp_lib
920 with_javah
921 with_vm_classes
922 enable_maintainer_mode
923 enable_debug
924 enable_load_library
925 with_ecj_jar
926 enable_java_lang_system_explicit_initialization
927 with_jar
928 with_glibj
929 enable_examples
930 enable_tools
931 with_gjdoc
932 with_jay
933 enable_portable_native_sync
934 with_glibj_zip
935 with_escher
936 enable_local_sockets
937 '
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP
947 CXX
948 CXXFLAGS
949 CCC
950 CXXCPP
951 XMKMF'
952
953
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 ac_unrecognized_opts=
958 ac_unrecognized_sep=
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
975
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1011 fi
1012
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1017
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
1023
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1028
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1033
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1040
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1043
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1048
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1055
1056 -disable-* | --disable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1081
1082 -enable-* | --enable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100 | --exec | --exe | --ex)
1101 ac_prev=exec_prefix ;;
1102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104 | --exec=* | --exe=* | --ex=*)
1105 exec_prefix=$ac_optarg ;;
1106
1107 -gas | --gas | --ga | --g)
1108 # Obsolete; use --with-gas.
1109 with_gas=yes ;;
1110
1111 -help | --help | --hel | --he | -h)
1112 ac_init_help=long ;;
1113 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114 ac_init_help=recursive ;;
1115 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116 ac_init_help=short ;;
1117
1118 -host | --host | --hos | --ho)
1119 ac_prev=host_alias ;;
1120 -host=* | --host=* | --hos=* | --ho=*)
1121 host_alias=$ac_optarg ;;
1122
1123 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 ac_prev=htmldir ;;
1125 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 | --ht=*)
1127 htmldir=$ac_optarg ;;
1128
1129 -includedir | --includedir | --includedi | --included | --include \
1130 | --includ | --inclu | --incl | --inc)
1131 ac_prev=includedir ;;
1132 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133 | --includ=* | --inclu=* | --incl=* | --inc=*)
1134 includedir=$ac_optarg ;;
1135
1136 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 ac_prev=infodir ;;
1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139 infodir=$ac_optarg ;;
1140
1141 -libdir | --libdir | --libdi | --libd)
1142 ac_prev=libdir ;;
1143 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144 libdir=$ac_optarg ;;
1145
1146 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147 | --libexe | --libex | --libe)
1148 ac_prev=libexecdir ;;
1149 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150 | --libexe=* | --libex=* | --libe=*)
1151 libexecdir=$ac_optarg ;;
1152
1153 -localedir | --localedir | --localedi | --localed | --locale)
1154 ac_prev=localedir ;;
1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156 localedir=$ac_optarg ;;
1157
1158 -localstatedir | --localstatedir | --localstatedi | --localstated \
1159 | --localstate | --localstat | --localsta | --localst | --locals)
1160 ac_prev=localstatedir ;;
1161 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163 localstatedir=$ac_optarg ;;
1164
1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 ac_prev=mandir ;;
1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168 mandir=$ac_optarg ;;
1169
1170 -nfp | --nfp | --nf)
1171 # Obsolete; use --without-fp.
1172 with_fp=no ;;
1173
1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175 | --no-cr | --no-c | -n)
1176 no_create=yes ;;
1177
1178 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180 no_recursion=yes ;;
1181
1182 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184 | --oldin | --oldi | --old | --ol | --o)
1185 ac_prev=oldincludedir ;;
1186 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189 oldincludedir=$ac_optarg ;;
1190
1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 ac_prev=prefix ;;
1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194 prefix=$ac_optarg ;;
1195
1196 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197 | --program-pre | --program-pr | --program-p)
1198 ac_prev=program_prefix ;;
1199 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201 program_prefix=$ac_optarg ;;
1202
1203 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204 | --program-suf | --program-su | --program-s)
1205 ac_prev=program_suffix ;;
1206 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208 program_suffix=$ac_optarg ;;
1209
1210 -program-transform-name | --program-transform-name \
1211 | --program-transform-nam | --program-transform-na \
1212 | --program-transform-n | --program-transform- \
1213 | --program-transform | --program-transfor \
1214 | --program-transfo | --program-transf \
1215 | --program-trans | --program-tran \
1216 | --progr-tra | --program-tr | --program-t)
1217 ac_prev=program_transform_name ;;
1218 -program-transform-name=* | --program-transform-name=* \
1219 | --program-transform-nam=* | --program-transform-na=* \
1220 | --program-transform-n=* | --program-transform-=* \
1221 | --program-transform=* | --program-transfor=* \
1222 | --program-transfo=* | --program-transf=* \
1223 | --program-trans=* | --program-tran=* \
1224 | --progr-tra=* | --program-tr=* | --program-t=*)
1225 program_transform_name=$ac_optarg ;;
1226
1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 ac_prev=pdfdir ;;
1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230 pdfdir=$ac_optarg ;;
1231
1232 -psdir | --psdir | --psdi | --psd | --ps)
1233 ac_prev=psdir ;;
1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 psdir=$ac_optarg ;;
1236
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 silent=yes ;;
1240
1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242 ac_prev=sbindir ;;
1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244 | --sbi=* | --sb=*)
1245 sbindir=$ac_optarg ;;
1246
1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249 | --sharedst | --shareds | --shared | --share | --shar \
1250 | --sha | --sh)
1251 ac_prev=sharedstatedir ;;
1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255 | --sha=* | --sh=*)
1256 sharedstatedir=$ac_optarg ;;
1257
1258 -site | --site | --sit)
1259 ac_prev=site ;;
1260 -site=* | --site=* | --sit=*)
1261 site=$ac_optarg ;;
1262
1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 ac_prev=srcdir ;;
1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266 srcdir=$ac_optarg ;;
1267
1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269 | --syscon | --sysco | --sysc | --sys | --sy)
1270 ac_prev=sysconfdir ;;
1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273 sysconfdir=$ac_optarg ;;
1274
1275 -target | --target | --targe | --targ | --tar | --ta | --t)
1276 ac_prev=target_alias ;;
1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278 target_alias=$ac_optarg ;;
1279
1280 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 verbose=yes ;;
1282
1283 -version | --version | --versio | --versi | --vers | -V)
1284 ac_init_version=: ;;
1285
1286 -with-* | --with-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=\$ac_optarg ;;
1301
1302 -without-* | --without-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error "invalid package name: $ac_useropt"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1310 *"
1311 "with_$ac_useropt"
1312 "*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval with_$ac_useropt=no ;;
1317
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1321
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1328
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1335
1336 -*) as_fn_error "unrecognized option: \`$ac_option'
1337 Try \`$0 --help' for more information."
1338 ;;
1339
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 case $ac_envvar in #(
1344 '' | [0-9]* | *[!_$as_cr_alnum]* )
1345 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1346 esac
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1349
1350 *)
1351 # FIXME: should be removed in autoconf 3.0.
1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 ;;
1357
1358 esac
1359 done
1360
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 as_fn_error "missing argument to $ac_option"
1364 fi
1365
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1370 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 esac
1372 fi
1373
1374 # Check all directory arguments for consistency.
1375 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376 datadir sysconfdir sharedstatedir localstatedir includedir \
1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378 libdir localedir mandir
1379 do
1380 eval ac_val=\$$ac_var
1381 # Remove trailing slashes.
1382 case $ac_val in
1383 */ )
1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1385 eval $ac_var=\$ac_val;;
1386 esac
1387 # Be sure to have absolute directory names.
1388 case $ac_val in
1389 [\\/$]* | ?:[\\/]* ) continue;;
1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391 esac
1392 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1393 done
1394
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1398 build=$build_alias
1399 host=$host_alias
1400 target=$target_alias
1401
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404 if test "x$build_alias" = x; then
1405 cross_compiling=maybe
1406 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1407 If a cross compiler is detected then cross compile mode will be used." >&2
1408 elif test "x$build_alias" != "x$host_alias"; then
1409 cross_compiling=yes
1410 fi
1411 fi
1412
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415
1416 test "$silent" = yes && exec 6>/dev/null
1417
1418
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 as_fn_error "working directory cannot be determined"
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 as_fn_error "pwd does not report name of working directory"
1425
1426
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\).*/{
1450 s//\1/
1451 q
1452 }
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1457 fi
1458 else
1459 ac_srcdir_defaulted=no
1460 fi
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1464 fi
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1468 pwd)`
1469 # When building in place, set srcdir=.
1470 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 srcdir=.
1472 fi
1473 # Remove unnecessary trailing slashes from srcdir.
1474 # Double slashes in file names in object file debugging info
1475 # mess up M-x gdb in Emacs.
1476 case $srcdir in
1477 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 esac
1479 for ac_var in $ac_precious_vars; do
1480 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_env_${ac_var}_value=\$${ac_var}
1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484 done
1485
1486 #
1487 # Report the --help message.
1488 #
1489 if test "$ac_init_help" = "long"; then
1490 # Omit some internal or obsolete options to make the list less imposing.
1491 # This message is too long to be a string in the A/UX 3.1 sh.
1492 cat <<_ACEOF
1493 \`configure' configures GNU Classpath 0.99 to adapt to many kinds of systems.
1494
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1496
1497 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498 VAR=VALUE. See below for descriptions of some of the useful variables.
1499
1500 Defaults for the options are specified in brackets.
1501
1502 Configuration:
1503 -h, --help display this help and exit
1504 --help=short display options specific to this package
1505 --help=recursive display the short help of all the included packages
1506 -V, --version display version information and exit
1507 -q, --quiet, --silent do not print \`checking...' messages
1508 --cache-file=FILE cache test results in FILE [disabled]
1509 -C, --config-cache alias for \`--cache-file=config.cache'
1510 -n, --no-create do not create output files
1511 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512
1513 Installation directories:
1514 --prefix=PREFIX install architecture-independent files in PREFIX
1515 [$ac_default_prefix]
1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 [PREFIX]
1518
1519 By default, \`make install' will install all the files in
1520 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1521 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522 for instance \`--prefix=\$HOME'.
1523
1524 For better control, use the options below.
1525
1526 Fine tuning of the installation directories:
1527 --bindir=DIR user executables [EPREFIX/bin]
1528 --sbindir=DIR system admin executables [EPREFIX/sbin]
1529 --libexecdir=DIR program executables [EPREFIX/libexec]
1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1546 _ACEOF
1547
1548 cat <<\_ACEOF
1549
1550 Program names:
1551 --program-prefix=PREFIX prepend PREFIX to installed program names
1552 --program-suffix=SUFFIX append SUFFIX to installed program names
1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554
1555 X features:
1556 --x-includes=DIR X include files are in DIR
1557 --x-libraries=DIR X library files are in DIR
1558
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1564 fi
1565
1566 if test -n "$ac_init_help"; then
1567 case $ac_init_help in
1568 short | recursive ) echo "Configuration of GNU Classpath 0.99:";;
1569 esac
1570 cat <<\_ACEOF
1571
1572 Optional Features:
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-java-maintainer-mode
1577 allow rebuilding of .class and .h files
1578 --enable-generated-files-in-srcdir
1579 put copies of generated files in source dir
1580 intended for creating source tarballs for users
1581 without texinfo, perl, bison or flex.
1582 --enable-multilib build many library versions (default)
1583 --enable-collections create collections.jar default=no
1584 --enable-jni compile JNI source default=yes
1585 --enable-core-jni compile JNI sources for core default=yes
1586 --enable-default-preferences-peer[=peer type or class name]
1587 specify one of: "gconf" [default] for a GConf based
1588 backend, "file" for a file based one, "memory" for a
1589 transient one, or a fully qualified class name
1590 implementing java.util.prefs.PreferencesFactory
1591 --disable-gconf-peer compile GConf native peers (disabled by
1592 --disable-jni) default=yes
1593
1594 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1595 --disable-jni) default=no
1596 --enable-Werror whether to compile C code with -Werror which turns
1597 any compiler warning into a compilation failure
1598 default=no
1599 --enable-default-toolkit
1600 fully qualified class name of default AWT toolkit
1601 --enable-xmlj compile native libxml/xslt library default=no
1602 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1603 default=yes
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1607 default=yes
1608 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1609 default=yes
1610 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1611 default=no
1612 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1613 default=yes
1614 --enable-gmp compile native java.math.BigInteger library
1615 (disabled by --disable-gmp) default=yes
1616 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1617 default=yes
1618 --enable-regen-headers automatically regenerate JNI headers default=yes if
1619 headers don't exist
1620 --enable-regen-gjdoc-parser
1621 automatically regenerate the GJDoc parser
1622 default=yes if generated source doesn't exist
1623 --enable-tool-wrappers create tool wrapper binaries default=no
1624 --enable-static[=PKGS] build static libraries [default=no]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-maintainer-mode enable make rules and dependencies not useful
1631 (and sometimes confusing) to the casual installer
1632 --enable-debug enable runtime debugging code
1633 --enable-load-library enable to use JNI native methods default=yes
1634 --enable-java-lang-system-explicit-initialization
1635 will the VM explicitly invoke java.lang.System's
1636 static initialization methods default=no
1637 --enable-examples enable build of the examples default=yes
1638 --enable-tools enable build of the tools default=yes
1639 --enable-portable-native-sync
1640 synchronize VM threads portably
1641 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1642
1643 Optional Packages:
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-native-libdir sets the installation directory for native libraries
1647 default='${libdir}/${PACKAGE}'
1648 --with-glibj-dir sets the installation directory for glibj.zip
1649 default='${libdir}/${PACKAGE}'
1650 --with-antlr-jar=file Use ANTLR from the specified jar file
1651 --with-pic try to use only PIC/non-PIC objects [default=use
1652 both]
1653 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1654 --with-gnu-ld assume the C compiler uses GNU ld default=no
1655 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1656 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1657 --with-x use the X Window System
1658 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1659 systems use pkg-config.
1660 --with-gmp=PATH specify prefix directory for the installed GMP package.
1661 Equivalent to --with-gmp-include=PATH/include
1662 plus --with-gmp-lib=PATH/lib
1663 --with-gmp-include=PATH specify directory for installed GMP include files
1664 --with-gmp-lib=PATH specify directory for the installed GMP library
1665 --with-javah specify path or name of a javah-like program
1666 --with-vm-classes specify path to VM override source files
1667 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1668 Compiler
1669 --with-jar=PATH define to use a jar style tool
1670 --with-glibj define what to install (zip|flat|both|none|build)
1671 [default=zip]
1672 --with-gjdoc generate documentation using gjdoc (default is NO)
1673 --with-jay=DIR|PATH Regenerate the parsers with jay
1674 --with-glibj-zip=ABS.PATH
1675 use prebuilt glibj.zip class library
1676 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1677
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1686 CPP C preprocessor
1687 CXX C++ compiler command
1688 CXXFLAGS C++ compiler flags
1689 CXXCPP C++ preprocessor
1690 XMKMF Path to xmkmf, Makefile generator for X Window System
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to <classpath@gnu.org>.
1696 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1697 General help using GNU software: <http://www.gnu.org/gethelp/>.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 GNU Classpath configure 0.99
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_cpp ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_c_try_cpp
1848
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_header_mongrel ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 else
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1877 else
1878 ac_header_compiler=no
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1883
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1893 else
1894 ac_header_preproc=no
1895 fi
1896 rm -f conftest.err conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1899
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 yes:no: )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 ;;
1908 no:yes:* )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ( cat <<\_ASBOX
1920 ## -------------------------------- ##
1921 ## Report this to classpath@gnu.org ##
1922 ## -------------------------------- ##
1923 _ASBOX
1924 ) | sed "s/^/$as_me: WARNING: /" >&2
1925 ;;
1926 esac
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 eval "$3=\$ac_header_compiler"
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 fi
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940 } # ac_fn_c_check_header_mongrel
1941
1942 # ac_fn_c_try_run LINENO
1943 # ----------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945 # that executables *can* be run.
1946 ac_fn_c_try_run ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_try") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=$ac_status
1977 fi
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1981
1982 } # ac_fn_c_try_run
1983
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012
2013 } # ac_fn_c_check_header_compile
2014
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_c_try_link ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2030 ac_status=$?
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2035 fi
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 $as_test_x conftest$ac_exeext
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050 fi
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 return $ac_retval
2058
2059 } # ac_fn_c_try_link
2060
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 if test x$gcc_no_link = xyes; then
2073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2074 fi
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2079 #define $2 innocuous_$2
2080
2081 /* System header to define __stub macros and hopefully few prototypes,
2082 which can conflict with char $2 (); below.
2083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2084 <limits.h> exists even on freestanding compilers. */
2085
2086 #ifdef __STDC__
2087 # include <limits.h>
2088 #else
2089 # include <assert.h>
2090 #endif
2091
2092 #undef $2
2093
2094 /* Override any GCC internal prototype to avoid an error.
2095 Use char because int might match the return type of a GCC
2096 builtin and then its argument prototype would still apply. */
2097 #ifdef __cplusplus
2098 extern "C"
2099 #endif
2100 char $2 ();
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined __stub_$2 || defined __stub___$2
2105 choke me
2106 #endif
2107
2108 int
2109 main ()
2110 {
2111 return $2 ();
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_link "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128
2129 } # ac_fn_c_check_func
2130
2131 # ac_fn_cxx_try_compile LINENO
2132 # ----------------------------
2133 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_compile ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 rm -f conftest.$ac_objext
2138 if { { ac_try="$ac_compile"
2139 case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_compile") 2>conftest.err
2146 ac_status=$?
2147 if test -s conftest.err; then
2148 grep -v '^ *+' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
2150 mv -f conftest.er1 conftest.err
2151 fi
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } && {
2154 test -z "$ac_cxx_werror_flag" ||
2155 test ! -s conftest.err
2156 } && test -s conftest.$ac_objext; then :
2157 ac_retval=0
2158 else
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=1
2163 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2166
2167 } # ac_fn_cxx_try_compile
2168
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2173 {
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183 ac_status=$?
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2188 fi
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } >/dev/null && {
2191 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2193 }; then :
2194 ac_retval=0
2195 else
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 ac_retval=1
2200 fi
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 return $ac_retval
2203
2204 } # ac_fn_cxx_try_cpp
2205
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2226 fi
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_cxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 $as_test_x conftest$ac_exeext
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=1
2241 fi
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 return $ac_retval
2249
2250 } # ac_fn_cxx_try_link
2251
2252 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2253 # ----------------------------------------------------
2254 # Tries to find if the field MEMBER exists in type AGGR, after including
2255 # INCLUDES, setting cache variable VAR accordingly.
2256 ac_fn_c_check_member ()
2257 {
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2260 $as_echo_n "checking for $2.$3... " >&6; }
2261 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2263 else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $5
2267 int
2268 main ()
2269 {
2270 static $2 ac_aggr;
2271 if (ac_aggr.$3)
2272 return 0;
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 eval "$4=yes"
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $5
2283 int
2284 main ()
2285 {
2286 static $2 ac_aggr;
2287 if (sizeof ac_aggr.$3)
2288 return 0;
2289 ;
2290 return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 eval "$4=yes"
2295 else
2296 eval "$4=no"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 eval ac_res=\$$4
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306
2307 } # ac_fn_c_check_member
2308
2309 # ac_fn_c_check_decl LINENO SYMBOL VAR
2310 # ------------------------------------
2311 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2312 ac_fn_c_check_decl ()
2313 {
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 as_decl_name=`echo $2|sed 's/ *(.*//'`
2316 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2318 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2319 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $4
2325 int
2326 main ()
2327 {
2328 #ifndef $as_decl_name
2329 #ifdef __cplusplus
2330 (void) $as_decl_use;
2331 #else
2332 (void) $as_decl_name;
2333 #endif
2334 #endif
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$3=yes"
2342 else
2343 eval "$3=no"
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351
2352 } # ac_fn_c_check_decl
2353
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=no"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 $4
2370 int
2371 main ()
2372 {
2373 if (sizeof ($2))
2374 return 0;
2375 ;
2376 return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $4
2383 int
2384 main ()
2385 {
2386 if (sizeof (($2)))
2387 return 0;
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393
2394 else
2395 eval "$3=yes"
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 fi
2401 eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405
2406 } # ac_fn_c_check_type
2407
2408 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2409 # --------------------------------------------
2410 # Tries to find the compile-time value of EXPR in a program that includes
2411 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2412 # computed
2413 ac_fn_c_compute_int ()
2414 {
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 if test "$cross_compiling" = yes; then
2417 # Depending upon the size, compute the lo and hi bounds.
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $4
2421 int
2422 main ()
2423 {
2424 static int test_array [1 - 2 * !(($2) >= 0)];
2425 test_array [0] = 0
2426
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=0 ac_mid=0
2433 while :; do
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 $4
2437 int
2438 main ()
2439 {
2440 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2441 test_array [0] = 0
2442
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_c_try_compile "$LINENO"; then :
2448 ac_hi=$ac_mid; break
2449 else
2450 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2451 if test $ac_lo -le $ac_mid; then
2452 ac_lo= ac_hi=
2453 break
2454 fi
2455 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 done
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 $4
2463 int
2464 main ()
2465 {
2466 static int test_array [1 - 2 * !(($2) < 0)];
2467 test_array [0] = 0
2468
2469 ;
2470 return 0;
2471 }
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=-1 ac_mid=-1
2475 while :; do
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 $4
2479 int
2480 main ()
2481 {
2482 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2483 test_array [0] = 0
2484
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 if ac_fn_c_try_compile "$LINENO"; then :
2490 ac_lo=$ac_mid; break
2491 else
2492 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2493 if test $ac_mid -le $ac_hi; then
2494 ac_lo= ac_hi=
2495 break
2496 fi
2497 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2498 fi
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 done
2501 else
2502 ac_lo= ac_hi=
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 # Binary search between lo and hi bounds.
2508 while test "x$ac_lo" != "x$ac_hi"; do
2509 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2517 test_array [0] = 0
2518
2519 ;
2520 return 0;
2521 }
2522 _ACEOF
2523 if ac_fn_c_try_compile "$LINENO"; then :
2524 ac_hi=$ac_mid
2525 else
2526 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2527 fi
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 case $ac_lo in #((
2531 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2532 '') ac_retval=1 ;;
2533 esac
2534 else
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2537 $4
2538 static long int longval () { return $2; }
2539 static unsigned long int ulongval () { return $2; }
2540 #include <stdio.h>
2541 #include <stdlib.h>
2542 int
2543 main ()
2544 {
2545
2546 FILE *f = fopen ("conftest.val", "w");
2547 if (! f)
2548 return 1;
2549 if (($2) < 0)
2550 {
2551 long int i = longval ();
2552 if (i != ($2))
2553 return 1;
2554 fprintf (f, "%ld", i);
2555 }
2556 else
2557 {
2558 unsigned long int i = ulongval ();
2559 if (i != ($2))
2560 return 1;
2561 fprintf (f, "%lu", i);
2562 }
2563 /* Do not output a trailing newline, as this causes \r\n confusion
2564 on some platforms. */
2565 return ferror (f) || fclose (f) != 0;
2566
2567 ;
2568 return 0;
2569 }
2570 _ACEOF
2571 if ac_fn_c_try_run "$LINENO"; then :
2572 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2573 else
2574 ac_retval=1
2575 fi
2576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2577 conftest.$ac_objext conftest.beam conftest.$ac_ext
2578 rm -f conftest.val
2579
2580 fi
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 return $ac_retval
2583
2584 } # ac_fn_c_compute_int
2585 cat >config.log <<_ACEOF
2586 This file contains any messages produced by compilers while
2587 running configure, to aid debugging if configure makes a mistake.
2588
2589 It was created by GNU Classpath $as_me 0.99, which was
2590 generated by GNU Autoconf 2.64. Invocation command line was
2591
2592 $ $0 $@
2593
2594 _ACEOF
2595 exec 5>>config.log
2596 {
2597 cat <<_ASUNAME
2598 ## --------- ##
2599 ## Platform. ##
2600 ## --------- ##
2601
2602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2607
2608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2610
2611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2618
2619 _ASUNAME
2620
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 $as_echo "PATH: $as_dir"
2627 done
2628 IFS=$as_save_IFS
2629
2630 } >&5
2631
2632 cat >&5 <<_ACEOF
2633
2634
2635 ## ----------- ##
2636 ## Core tests. ##
2637 ## ----------- ##
2638
2639 _ACEOF
2640
2641
2642 # Keep a trace of the command line.
2643 # Strip out --no-create and --no-recursion so they do not pile up.
2644 # Strip out --silent because we don't want to record it for future runs.
2645 # Also quote any args containing shell meta-characters.
2646 # Make two passes to allow for proper duplicate-argument suppression.
2647 ac_configure_args=
2648 ac_configure_args0=
2649 ac_configure_args1=
2650 ac_must_keep_next=false
2651 for ac_pass in 1 2
2652 do
2653 for ac_arg
2654 do
2655 case $ac_arg in
2656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2658 | -silent | --silent | --silen | --sile | --sil)
2659 continue ;;
2660 *\'*)
2661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 esac
2663 case $ac_pass in
2664 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2665 2)
2666 as_fn_append ac_configure_args1 " '$ac_arg'"
2667 if test $ac_must_keep_next = true; then
2668 ac_must_keep_next=false # Got value, back to normal.
2669 else
2670 case $ac_arg in
2671 *=* | --config-cache | -C | -disable-* | --disable-* \
2672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2674 | -with-* | --with-* | -without-* | --without-* | --x)
2675 case "$ac_configure_args0 " in
2676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2677 esac
2678 ;;
2679 -* ) ac_must_keep_next=true ;;
2680 esac
2681 fi
2682 as_fn_append ac_configure_args " '$ac_arg'"
2683 ;;
2684 esac
2685 done
2686 done
2687 { ac_configure_args0=; unset ac_configure_args0;}
2688 { ac_configure_args1=; unset ac_configure_args1;}
2689
2690 # When interrupted or exit'd, cleanup temporary files, and complete
2691 # config.log. We remove comments because anyway the quotes in there
2692 # would cause problems or look ugly.
2693 # WARNING: Use '\'' to represent an apostrophe within the trap.
2694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2695 trap 'exit_status=$?
2696 # Save into config.log some information that might help in debugging.
2697 {
2698 echo
2699
2700 cat <<\_ASBOX
2701 ## ---------------- ##
2702 ## Cache variables. ##
2703 ## ---------------- ##
2704 _ASBOX
2705 echo
2706 # The following way of writing the cache mishandles newlines in values,
2707 (
2708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2709 eval ac_val=\$$ac_var
2710 case $ac_val in #(
2711 *${as_nl}*)
2712 case $ac_var in #(
2713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2715 esac
2716 case $ac_var in #(
2717 _ | IFS | as_nl) ;; #(
2718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2719 *) { eval $ac_var=; unset $ac_var;} ;;
2720 esac ;;
2721 esac
2722 done
2723 (set) 2>&1 |
2724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2725 *${as_nl}ac_space=\ *)
2726 sed -n \
2727 "s/'\''/'\''\\\\'\'''\''/g;
2728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2729 ;; #(
2730 *)
2731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2732 ;;
2733 esac |
2734 sort
2735 )
2736 echo
2737
2738 cat <<\_ASBOX
2739 ## ----------------- ##
2740 ## Output variables. ##
2741 ## ----------------- ##
2742 _ASBOX
2743 echo
2744 for ac_var in $ac_subst_vars
2745 do
2746 eval ac_val=\$$ac_var
2747 case $ac_val in
2748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2749 esac
2750 $as_echo "$ac_var='\''$ac_val'\''"
2751 done | sort
2752 echo
2753
2754 if test -n "$ac_subst_files"; then
2755 cat <<\_ASBOX
2756 ## ------------------- ##
2757 ## File substitutions. ##
2758 ## ------------------- ##
2759 _ASBOX
2760 echo
2761 for ac_var in $ac_subst_files
2762 do
2763 eval ac_val=\$$ac_var
2764 case $ac_val in
2765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2766 esac
2767 $as_echo "$ac_var='\''$ac_val'\''"
2768 done | sort
2769 echo
2770 fi
2771
2772 if test -s confdefs.h; then
2773 cat <<\_ASBOX
2774 ## ----------- ##
2775 ## confdefs.h. ##
2776 ## ----------- ##
2777 _ASBOX
2778 echo
2779 cat confdefs.h
2780 echo
2781 fi
2782 test "$ac_signal" != 0 &&
2783 $as_echo "$as_me: caught signal $ac_signal"
2784 $as_echo "$as_me: exit $exit_status"
2785 } >&5
2786 rm -f core *.core core.conftest.* &&
2787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2788 exit $exit_status
2789 ' 0
2790 for ac_signal in 1 2 13 15; do
2791 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2792 done
2793 ac_signal=0
2794
2795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2796 rm -f -r conftest* confdefs.h
2797
2798 $as_echo "/* confdefs.h */" > confdefs.h
2799
2800 # Predefined preprocessor variables.
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_NAME "$PACKAGE_NAME"
2804 _ACEOF
2805
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2808 _ACEOF
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2812 _ACEOF
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_STRING "$PACKAGE_STRING"
2816 _ACEOF
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2820 _ACEOF
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_URL "$PACKAGE_URL"
2824 _ACEOF
2825
2826
2827 # Let the site file select an alternate cache file if it wants to.
2828 # Prefer an explicitly selected file to automatically selected ones.
2829 ac_site_file1=NONE
2830 ac_site_file2=NONE
2831 if test -n "$CONFIG_SITE"; then
2832 ac_site_file1=$CONFIG_SITE
2833 elif test "x$prefix" != xNONE; then
2834 ac_site_file1=$prefix/share/config.site
2835 ac_site_file2=$prefix/etc/config.site
2836 else
2837 ac_site_file1=$ac_default_prefix/share/config.site
2838 ac_site_file2=$ac_default_prefix/etc/config.site
2839 fi
2840 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2841 do
2842 test "x$ac_site_file" = xNONE && continue
2843 if test -r "$ac_site_file"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2845 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2846 sed 's/^/| /' "$ac_site_file" >&5
2847 . "$ac_site_file"
2848 fi
2849 done
2850
2851 if test -r "$cache_file"; then
2852 # Some versions of bash will fail to source /dev/null (special
2853 # files actually), so we avoid doing that.
2854 if test -f "$cache_file"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2856 $as_echo "$as_me: loading cache $cache_file" >&6;}
2857 case $cache_file in
2858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2859 *) . "./$cache_file";;
2860 esac
2861 fi
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2864 $as_echo "$as_me: creating cache $cache_file" >&6;}
2865 >$cache_file
2866 fi
2867
2868 # Check that the precious variables saved in the cache have kept the same
2869 # value.
2870 ac_cache_corrupted=false
2871 for ac_var in $ac_precious_vars; do
2872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2873 eval ac_new_set=\$ac_env_${ac_var}_set
2874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2875 eval ac_new_val=\$ac_env_${ac_var}_value
2876 case $ac_old_set,$ac_new_set in
2877 set,)
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2879 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2880 ac_cache_corrupted=: ;;
2881 ,set)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2883 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2884 ac_cache_corrupted=: ;;
2885 ,);;
2886 *)
2887 if test "x$ac_old_val" != "x$ac_new_val"; then
2888 # differences in whitespace do not lead to failure.
2889 ac_old_val_w=`echo x $ac_old_val`
2890 ac_new_val_w=`echo x $ac_new_val`
2891 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2893 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2894 ac_cache_corrupted=:
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2897 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2898 eval $ac_var=\$ac_old_val
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2901 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2903 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2904 fi;;
2905 esac
2906 # Pass precious variables to config.status.
2907 if test "$ac_new_set" = set; then
2908 case $ac_new_val in
2909 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 *) ac_arg=$ac_var=$ac_new_val ;;
2911 esac
2912 case " $ac_configure_args " in
2913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2914 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2915 esac
2916 fi
2917 done
2918 if $ac_cache_corrupted; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2922 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2923 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2924 fi
2925 ## -------------------- ##
2926 ## Main body of script. ##
2927 ## -------------------- ##
2928
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935
2936
2937
2938
2939
2940
2941
2942 ac_aux_dir=
2943 for ac_dir in ../.. "$srcdir"/../..; do
2944 for ac_t in install-sh install.sh shtool; do
2945 if test -f "$ac_dir/$ac_t"; then
2946 ac_aux_dir=$ac_dir
2947 ac_install_sh="$ac_aux_dir/$ac_t -c"
2948 break 2
2949 fi
2950 done
2951 done
2952 if test -z "$ac_aux_dir"; then
2953 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2954 fi
2955
2956 # These three variables are undocumented and unsupported,
2957 # and are intended to be withdrawn in a future Autoconf release.
2958 # They can cause serious problems if a builder's source tree is in a directory
2959 # whose full name contains unusual characters.
2960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2963
2964
2965
2966 # Make sure we can run config.sub.
2967 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2968 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2969
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2971 $as_echo_n "checking build system type... " >&6; }
2972 if test "${ac_cv_build+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 ac_build_alias=$build_alias
2976 test "x$ac_build_alias" = x &&
2977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2978 test "x$ac_build_alias" = x &&
2979 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2981 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2982
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2985 $as_echo "$ac_cv_build" >&6; }
2986 case $ac_cv_build in
2987 *-*-*) ;;
2988 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2989 esac
2990 build=$ac_cv_build
2991 ac_save_IFS=$IFS; IFS='-'
2992 set x $ac_cv_build
2993 shift
2994 build_cpu=$1
2995 build_vendor=$2
2996 shift; shift
2997 # Remember, the first character of IFS is used to create $*,
2998 # except with old shells:
2999 build_os=$*
3000 IFS=$ac_save_IFS
3001 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3002
3003
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3005 $as_echo_n "checking host system type... " >&6; }
3006 if test "${ac_cv_host+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test "x$host_alias" = x; then
3010 ac_cv_host=$ac_cv_build
3011 else
3012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3014 fi
3015
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3018 $as_echo "$ac_cv_host" >&6; }
3019 case $ac_cv_host in
3020 *-*-*) ;;
3021 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3022 esac
3023 host=$ac_cv_host
3024 ac_save_IFS=$IFS; IFS='-'
3025 set x $ac_cv_host
3026 shift
3027 host_cpu=$1
3028 host_vendor=$2
3029 shift; shift
3030 # Remember, the first character of IFS is used to create $*,
3031 # except with old shells:
3032 host_os=$*
3033 IFS=$ac_save_IFS
3034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3035
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3038 $as_echo_n "checking target system type... " >&6; }
3039 if test "${ac_cv_target+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test "x$target_alias" = x; then
3043 ac_cv_target=$ac_cv_host
3044 else
3045 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3046 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3047 fi
3048
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3051 $as_echo "$ac_cv_target" >&6; }
3052 case $ac_cv_target in
3053 *-*-*) ;;
3054 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3055 esac
3056 target=$ac_cv_target
3057 ac_save_IFS=$IFS; IFS='-'
3058 set x $ac_cv_target
3059 shift
3060 target_cpu=$1
3061 target_vendor=$2
3062 shift; shift
3063 # Remember, the first character of IFS is used to create $*,
3064 # except with old shells:
3065 target_os=$*
3066 IFS=$ac_save_IFS
3067 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3068
3069
3070 # The aliases save the names the user supplied, while $host etc.
3071 # will get canonicalized.
3072 test -n "$target_alias" &&
3073 test "$program_prefix$program_suffix$program_transform_name" = \
3074 NONENONEs,x,x, &&
3075 program_prefix=${target_alias}-
3076
3077 # Check whether --enable-java-maintainer-mode was given.
3078 if test "${enable_java_maintainer_mode+set}" = set; then :
3079 enableval=$enable_java_maintainer_mode;
3080 fi
3081
3082 if test "$enable_java_maintainer_mode" = yes; then
3083 JAVA_MAINTAINER_MODE_TRUE=
3084 JAVA_MAINTAINER_MODE_FALSE='#'
3085 else
3086 JAVA_MAINTAINER_MODE_TRUE='#'
3087 JAVA_MAINTAINER_MODE_FALSE=
3088 fi
3089
3090
3091 # We would like to our source tree to be readonly. However when releases or
3092 # pre-releases are generated, the man pages need to be included as they are
3093 # converted from the texi files via perl which we don't require end users to
3094 # have installed.
3095 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3098 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3099 # Check whether --enable-generated-files-in-srcdir was given.
3100 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3101 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3102 else
3103 generated_files_in_srcdir=no
3104 fi
3105
3106
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3108 $as_echo "$generated_files_in_srcdir" >&6; }
3109 if test x$generated_files_in_srcdir = xyes; then
3110 GENINSRC_TRUE=
3111 GENINSRC_FALSE='#'
3112 else
3113 GENINSRC_TRUE='#'
3114 GENINSRC_FALSE=
3115 fi
3116
3117
3118 # Find the rest of the source tree framework.
3119 # Default to --enable-multilib
3120 # Check whether --enable-multilib was given.
3121 if test "${enable_multilib+set}" = set; then :
3122 enableval=$enable_multilib; case "$enableval" in
3123 yes) multilib=yes ;;
3124 no) multilib=no ;;
3125 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3126 esac
3127 else
3128 multilib=yes
3129 fi
3130
3131
3132 # We may get other options which we leave undocumented:
3133 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3134 # See config-ml.in if you want the gory details.
3135
3136 if test "$srcdir" = "."; then
3137 if test "$with_target_subdir" != "."; then
3138 multi_basedir="$srcdir/$with_multisrctop../../.."
3139 else
3140 multi_basedir="$srcdir/$with_multisrctop../.."
3141 fi
3142 else
3143 multi_basedir="$srcdir/../.."
3144 fi
3145
3146
3147 # Even if the default multilib is not a cross compilation,
3148 # it may be that some of the other multilibs are.
3149 if test $cross_compiling = no && test $multilib = yes \
3150 && test "x${with_multisubdir}" != x ; then
3151 cross_compiling=maybe
3152 fi
3153
3154 ac_config_commands="$ac_config_commands default-1"
3155
3156
3157 if test -z "${with_multisubdir}"; then
3158 INSTALL_BINARIES_TRUE=
3159 INSTALL_BINARIES_FALSE='#'
3160 else
3161 INSTALL_BINARIES_TRUE='#'
3162 INSTALL_BINARIES_FALSE=
3163 fi
3164
3165
3166 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3167
3168 LIBVERSION="0:0:0"
3169
3170 case "$host_os" in
3171 darwin*)
3172 cp_module=""
3173 ;;
3174 *)
3175 cp_module="-module"
3176 ;;
3177 esac
3178
3179 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3180
3181
3182 CLASSPATH_CONVENIENCE="-no-undefined"
3183
3184
3185
3186 am__api_version='1.11'
3187
3188 # Find a good install program. We prefer a C program (faster),
3189 # so one script is as good as another. But avoid the broken or
3190 # incompatible versions:
3191 # SysV /etc/install, /usr/sbin/install
3192 # SunOS /usr/etc/install
3193 # IRIX /sbin/install
3194 # AIX /bin/install
3195 # AmigaOS /C/install, which installs bootblocks on floppy discs
3196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3199 # OS/2's system install, which has a completely different semantic
3200 # ./install, which can be erroneously created by make from ./install.sh.
3201 # Reject install programs that cannot install multiple files.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3203 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3204 if test -z "$INSTALL"; then
3205 if test "${ac_cv_path_install+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 # Account for people who put trailing slashes in PATH elements.
3214 case $as_dir/ in #((
3215 ./ | .// | /[cC]/* | \
3216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3217 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3218 /usr/ucb/* ) ;;
3219 *)
3220 # OSF1 and SCO ODT 3.0 have their own names for install.
3221 # Don't use installbsd from OSF since it installs stuff as root
3222 # by default.
3223 for ac_prog in ginstall scoinst install; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3226 if test $ac_prog = install &&
3227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3228 # AIX install. It has an incompatible calling convention.
3229 :
3230 elif test $ac_prog = install &&
3231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3232 # program-specific install script used by HP pwplus--don't use.
3233 :
3234 else
3235 rm -rf conftest.one conftest.two conftest.dir
3236 echo one > conftest.one
3237 echo two > conftest.two
3238 mkdir conftest.dir
3239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3240 test -s conftest.one && test -s conftest.two &&
3241 test -s conftest.dir/conftest.one &&
3242 test -s conftest.dir/conftest.two
3243 then
3244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3245 break 3
3246 fi
3247 fi
3248 fi
3249 done
3250 done
3251 ;;
3252 esac
3253
3254 done
3255 IFS=$as_save_IFS
3256
3257 rm -rf conftest.one conftest.two conftest.dir
3258
3259 fi
3260 if test "${ac_cv_path_install+set}" = set; then
3261 INSTALL=$ac_cv_path_install
3262 else
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for INSTALL within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 INSTALL=$ac_install_sh
3268 fi
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3271 $as_echo "$INSTALL" >&6; }
3272
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3276
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3278
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3280
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3282 $as_echo_n "checking whether build environment is sane... " >&6; }
3283 # Just in case
3284 sleep 1
3285 echo timestamp > conftest.file
3286 # Reject unsafe characters in $srcdir or the absolute working directory
3287 # name. Accept space and tab only in the latter.
3288 am_lf='
3289 '
3290 case `pwd` in
3291 *[\\\"\#\$\&\'\`$am_lf]*)
3292 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3293 esac
3294 case $srcdir in
3295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3296 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3297 esac
3298
3299 # Do `set' in a subshell so we don't clobber the current shell's
3300 # arguments. Must try -L first in case configure is actually a
3301 # symlink; some systems play weird games with the mod time of symlinks
3302 # (eg FreeBSD returns the mod time of the symlink's containing
3303 # directory).
3304 if (
3305 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3306 if test "$*" = "X"; then
3307 # -L didn't work.
3308 set X `ls -t "$srcdir/configure" conftest.file`
3309 fi
3310 rm -f conftest.file
3311 if test "$*" != "X $srcdir/configure conftest.file" \
3312 && test "$*" != "X conftest.file $srcdir/configure"; then
3313
3314 # If neither matched, then we have a broken ls. This can happen
3315 # if, for instance, CONFIG_SHELL is bash and it inherits a
3316 # broken ls alias from the environment. This has actually
3317 # happened. Such a system could not be considered "sane".
3318 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3319 alias in your environment" "$LINENO" 5
3320 fi
3321
3322 test "$2" = conftest.file
3323 )
3324 then
3325 # Ok.
3326 :
3327 else
3328 as_fn_error "newly created file is older than distributed files!
3329 Check your system clock" "$LINENO" 5
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333 test "$program_prefix" != NONE &&
3334 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3335 # Use a double $ so make ignores it.
3336 test "$program_suffix" != NONE &&
3337 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3338 # Double any \ or $.
3339 # By default was `s,x,x', remove it if useless.
3340 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3341 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3342
3343 # expand $ac_aux_dir to an absolute path
3344 am_aux_dir=`cd $ac_aux_dir && pwd`
3345
3346 if test x"${MISSING+set}" != xset; then
3347 case $am_aux_dir in
3348 *\ * | *\ *)
3349 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3350 *)
3351 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3352 esac
3353 fi
3354 # Use eval to expand $SHELL
3355 if eval "$MISSING --run true"; then
3356 am_missing_run="$MISSING --run "
3357 else
3358 am_missing_run=
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3360 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3361 fi
3362
3363 if test x"${install_sh}" != xset; then
3364 case $am_aux_dir in
3365 *\ * | *\ *)
3366 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3367 *)
3368 install_sh="\${SHELL} $am_aux_dir/install-sh"
3369 esac
3370 fi
3371
3372 # Installed binaries are usually stripped using `strip' when the user
3373 # run `make install-strip'. However `strip' might not be the right
3374 # tool to use in cross-compilation environments, therefore Automake
3375 # will honor the `STRIP' environment variable to overrule this program.
3376 if test "$cross_compiling" != no; then
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}strip; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_STRIP+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$STRIP"; then
3386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 STRIP=$ac_cv_prog_STRIP
3406 if test -n "$STRIP"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3408 $as_echo "$STRIP" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415 fi
3416 if test -z "$ac_cv_prog_STRIP"; then
3417 ac_ct_STRIP=$STRIP
3418 # Extract the first word of "strip", so it can be a program name with args.
3419 set dummy strip; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$ac_ct_STRIP"; then
3426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_ac_ct_STRIP="strip"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3446 if test -n "$ac_ct_STRIP"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3448 $as_echo "$ac_ct_STRIP" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454 if test "x$ac_ct_STRIP" = x; then
3455 STRIP=":"
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 STRIP=$ac_ct_STRIP
3464 fi
3465 else
3466 STRIP="$ac_cv_prog_STRIP"
3467 fi
3468
3469 fi
3470 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3471
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3473 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3474 if test -z "$MKDIR_P"; then
3475 if test "${ac_cv_path_mkdir+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3480 do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_prog in mkdir gmkdir; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3486 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3487 'mkdir (GNU coreutils) '* | \
3488 'mkdir (coreutils) '* | \
3489 'mkdir (fileutils) '4.1*)
3490 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3491 break 3;;
3492 esac
3493 done
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499
3500 if test "${ac_cv_path_mkdir+set}" = set; then
3501 MKDIR_P="$ac_cv_path_mkdir -p"
3502 else
3503 # As a last resort, use the slow shell script. Don't cache a
3504 # value for MKDIR_P within a source directory, because that will
3505 # break other packages using the cache if that directory is
3506 # removed, or if the value is a relative name.
3507 test -d ./--version && rmdir ./--version
3508 MKDIR_P="$ac_install_sh -d"
3509 fi
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3512 $as_echo "$MKDIR_P" >&6; }
3513
3514 mkdir_p="$MKDIR_P"
3515 case $mkdir_p in
3516 [\\/$]* | ?:[\\/]*) ;;
3517 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3518 esac
3519
3520 for ac_prog in gawk mawk nawk awk
3521 do
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_AWK+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$AWK"; then
3530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_AWK="$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 fi
3548 fi
3549 AWK=$ac_cv_prog_AWK
3550 if test -n "$AWK"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3552 $as_echo "$AWK" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 fi
3557
3558
3559 test -n "$AWK" && break
3560 done
3561
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3563 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3564 set x ${MAKE-make}
3565 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3566 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 cat >conftest.make <<\_ACEOF
3570 SHELL = /bin/sh
3571 all:
3572 @echo '@@@%%%=$(MAKE)=@@@%%%'
3573 _ACEOF
3574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3576 *@@@%%%=?*=@@@%%%*)
3577 eval ac_cv_prog_make_${ac_make}_set=yes;;
3578 *)
3579 eval ac_cv_prog_make_${ac_make}_set=no;;
3580 esac
3581 rm -f conftest.make
3582 fi
3583 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 $as_echo "yes" >&6; }
3586 SET_MAKE=
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 SET_MAKE="MAKE=${MAKE-make}"
3591 fi
3592
3593 rm -rf .tst 2>/dev/null
3594 mkdir .tst 2>/dev/null
3595 if test -d .tst; then
3596 am__leading_dot=.
3597 else
3598 am__leading_dot=_
3599 fi
3600 rmdir .tst 2>/dev/null
3601
3602 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3604 # is not polluted with repeated "-I."
3605 am__isrc=' -I$(srcdir)'
3606 # test to see if srcdir already configured
3607 if test -f $srcdir/config.status; then
3608 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3609 fi
3610 fi
3611
3612 # test whether we have cygpath
3613 if test -z "$CYGPATH_W"; then
3614 if (cygpath --version) >/dev/null 2>/dev/null; then
3615 CYGPATH_W='cygpath -w'
3616 else
3617 CYGPATH_W=echo
3618 fi
3619 fi
3620
3621
3622 # Define the identity of the package.
3623 PACKAGE='classpath'
3624 VERSION='0.99'
3625
3626
3627 cat >>confdefs.h <<_ACEOF
3628 #define PACKAGE "$PACKAGE"
3629 _ACEOF
3630
3631
3632 cat >>confdefs.h <<_ACEOF
3633 #define VERSION "$VERSION"
3634 _ACEOF
3635
3636 # Some tools Automake needs.
3637
3638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3639
3640
3641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3642
3643
3644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3645
3646
3647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3648
3649
3650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3651
3652 # We need awk for the "check" target. The system "awk" is bad on
3653 # some platforms.
3654 # Always define AMTAR for backward compatibility.
3655
3656 AMTAR=${AMTAR-"${am_missing_run}tar"}
3657
3658
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3660 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3661 # Loop over all known methods to create a tar archive until one works.
3662 _am_tools='gnutar plaintar pax cpio none'
3663 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3664 # Do not fold the above two line into one, because Tru64 sh and
3665 # Solaris sh will not grok spaces in the rhs of `-'.
3666 for _am_tool in $_am_tools
3667 do
3668 case $_am_tool in
3669 gnutar)
3670 for _am_tar in tar gnutar gtar;
3671 do
3672 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3673 ($_am_tar --version) >&5 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && break
3677 done
3678 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3679 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3680 am__untar="$_am_tar -xf -"
3681 ;;
3682 plaintar)
3683 # Must skip GNU tar: if it does not support --format= it doesn't create
3684 # ustar tarball either.
3685 (tar --version) >/dev/null 2>&1 && continue
3686 am__tar='tar chf - "$$tardir"'
3687 am__tar_='tar chf - "$tardir"'
3688 am__untar='tar xf -'
3689 ;;
3690 pax)
3691 am__tar='pax -L -x ustar -w "$$tardir"'
3692 am__tar_='pax -L -x ustar -w "$tardir"'
3693 am__untar='pax -r'
3694 ;;
3695 cpio)
3696 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3697 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3698 am__untar='cpio -i -H ustar -d'
3699 ;;
3700 none)
3701 am__tar=false
3702 am__tar_=false
3703 am__untar=false
3704 ;;
3705 esac
3706
3707 # If the value was cached, stop now. We just wanted to have am__tar
3708 # and am__untar set.
3709 test -n "${am_cv_prog_tar_ustar}" && break
3710
3711 # tar/untar a dummy directory, and stop if the command works
3712 rm -rf conftest.dir
3713 mkdir conftest.dir
3714 echo GrepMe > conftest.dir/file
3715 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3716 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }
3720 rm -rf conftest.dir
3721 if test -s conftest.tar; then
3722 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3723 ($am__untar <conftest.tar) >&5 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }
3727 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3728 fi
3729 done
3730 rm -rf conftest.dir
3731
3732 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 am_cv_prog_tar_ustar=$_am_tool
3736 fi
3737
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3739 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3740
3741
3742
3743
3744
3745 ac_config_headers="$ac_config_headers include/config.h"
3746
3747
3748
3749
3750
3751 # Check whether --enable-collections was given.
3752 if test "${enable_collections+set}" = set; then :
3753 enableval=$enable_collections; case x"${enableval}" in
3754 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3755 xno) COMPILE_COLLECTIONS=no ;;
3756 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3757 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3758 esac
3759 else
3760 COMPILE_COLLECTIONS=no
3761 fi
3762
3763 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3764 CREATE_COLLECTIONS_TRUE=
3765 CREATE_COLLECTIONS_FALSE='#'
3766 else
3767 CREATE_COLLECTIONS_TRUE='#'
3768 CREATE_COLLECTIONS_FALSE=
3769 fi
3770
3771
3772 # Check whether --enable-jni was given.
3773 if test "${enable_jni+set}" = set; then :
3774 enableval=$enable_jni; case "${enableval}" in
3775 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3776 no) COMPILE_JNI=no ;;
3777 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3778 esac
3779 else
3780 COMPILE_JNI=yes
3781 fi
3782
3783 if test "x${COMPILE_JNI}" = xyes; then
3784 CREATE_JNI_LIBRARIES_TRUE=
3785 CREATE_JNI_LIBRARIES_FALSE='#'
3786 else
3787 CREATE_JNI_LIBRARIES_TRUE='#'
3788 CREATE_JNI_LIBRARIES_FALSE=
3789 fi
3790
3791
3792 # Check whether --enable-core-jni was given.
3793 if test "${enable_core_jni+set}" = set; then :
3794 enableval=$enable_core_jni; case "${enableval}" in
3795 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3796 no) COMPILE_CORE_JNI=no ;;
3797 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3798 esac
3799 else
3800 COMPILE_CORE_JNI=yes
3801 fi
3802
3803 if test "x${COMPILE_CORE_JNI}" = xyes; then
3804 CREATE_CORE_JNI_LIBRARIES_TRUE=
3805 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3806 else
3807 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3808 CREATE_CORE_JNI_LIBRARIES_FALSE=
3809 fi
3810
3811
3812 # Check whether --enable-default-preferences-peer was given.
3813 if test "${enable_default_preferences_peer+set}" = set; then :
3814 enableval=$enable_default_preferences_peer; case "${enableval}" in
3815 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3816 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3817 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3818 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3819 *) DEFAULT_PREFS_PEER=${enableval} ;;
3820 esac
3821 else
3822 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3823 fi
3824
3825
3826 # Check whether --enable-gconf-peer was given.
3827 if test "${enable_gconf_peer+set}" = set; then :
3828 enableval=$enable_gconf_peer; case "${enableval}" in
3829 yes) COMPILE_GCONF_PEER=yes ;;
3830 no) COMPILE_GCONF_PEER=no ;;
3831 *) COMPILE_GCONF_PEER=yes ;;
3832 esac
3833 else
3834 COMPILE_GCONF_PEER=yes
3835 fi
3836
3837 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3838 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3839 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3840 else
3841 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3842 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3843 fi
3844
3845
3846 # Check whether --enable-gconf-peers was given.
3847 if test "${enable_gconf_peers+set}" = set; then :
3848 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3849 fi
3850
3851
3852 # Check whether --enable-gstreamer-peer was given.
3853 if test "${enable_gstreamer_peer+set}" = set; then :
3854 enableval=$enable_gstreamer_peer; case "${enableval}" in
3855 yes) COMPILE_GSTREAMER_PEER=yes ;;
3856 no) COMPILE_GSTREAMER_PEER=no ;;
3857 *) COMPILE_GSTREAMER_PEER=default ;;
3858 esac
3859 else
3860 COMPILE_GSTREAMER_PEER=default
3861 fi
3862
3863 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3864 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3865 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3866 else
3867 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3868 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3869 fi
3870
3871
3872 # Check whether --enable-gstreamer-peers was given.
3873 if test "${enable_gstreamer_peers+set}" = set; then :
3874 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3875 fi
3876
3877
3878 # Check whether --enable-Werror was given.
3879 if test "${enable_Werror+set}" = set; then :
3880 enableval=$enable_Werror; case "${enableval}" in
3881 yes) ENABLE_WERROR=yes ;;
3882 no) ENABLE_WERROR=no ;;
3883 *) ENABLE_WERROR=default ;;
3884 esac
3885 else
3886 ENABLE_WERROR=default
3887 fi
3888
3889
3890 # Check whether --enable-default-toolkit was given.
3891 if test "${enable_default_toolkit+set}" = set; then :
3892 enableval=$enable_default_toolkit;
3893 fi
3894
3895 default_toolkit=$enable_default_toolkit
3896 if test "$default_toolkit" = ""; then
3897 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3898 fi
3899
3900
3901 # Check whether --enable-xmlj was given.
3902 if test "${enable_xmlj+set}" = set; then :
3903 enableval=$enable_xmlj; case "${enableval}" in
3904 yes) COMPILE_XMLJ=yes ;;
3905 no) COMPILE_XMLJ=no ;;
3906 *) COMPILE_XMLJ=no ;;
3907 esac
3908 else
3909 COMPILE_XMLJ=no
3910 fi
3911
3912 if test "x${COMPILE_XMLJ}" = xyes; then
3913 CREATE_XMLJ_LIBRARY_TRUE=
3914 CREATE_XMLJ_LIBRARY_FALSE='#'
3915 else
3916 CREATE_XMLJ_LIBRARY_TRUE='#'
3917 CREATE_XMLJ_LIBRARY_FALSE=
3918 fi
3919
3920
3921 DEPDIR="${am__leading_dot}deps"
3922
3923 ac_config_commands="$ac_config_commands depfiles"
3924
3925
3926 am_make=${MAKE-make}
3927 cat > confinc << 'END'
3928 am__doit:
3929 @echo this is the am__doit target
3930 .PHONY: am__doit
3931 END
3932 # If we don't find an include directive, just comment out the code.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3935 am__include="#"
3936 am__quote=
3937 _am_result=none
3938 # First try GNU make style include.
3939 echo "include confinc" > confmf
3940 # Ignore all kinds of additional output from `make'.
3941 case `$am_make -s -f confmf 2> /dev/null` in #(
3942 *the\ am__doit\ target*)
3943 am__include=include
3944 am__quote=
3945 _am_result=GNU
3946 ;;
3947 esac
3948 # Now try BSD make style include.
3949 if test "$am__include" = "#"; then
3950 echo '.include "confinc"' > confmf
3951 case `$am_make -s -f confmf 2> /dev/null` in #(
3952 *the\ am__doit\ target*)
3953 am__include=.include
3954 am__quote="\""
3955 _am_result=BSD
3956 ;;
3957 esac
3958 fi
3959
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962 $as_echo "$_am_result" >&6; }
3963 rm -f confinc confmf
3964
3965 # Check whether --enable-dependency-tracking was given.
3966 if test "${enable_dependency_tracking+set}" = set; then :
3967 enableval=$enable_dependency_tracking;
3968 fi
3969
3970 if test "x$enable_dependency_tracking" != xno; then
3971 am_depcomp="$ac_aux_dir/depcomp"
3972 AMDEPBACKSLASH='\'
3973 fi
3974 if test "x$enable_dependency_tracking" != xno; then
3975 AMDEP_TRUE=
3976 AMDEP_FALSE='#'
3977 else
3978 AMDEP_TRUE='#'
3979 AMDEP_FALSE=
3980 fi
3981
3982
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 CC=$ac_cv_prog_CC
4017 if test -n "$CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 $as_echo "$CC" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 fi
4024
4025
4026 fi
4027 if test -z "$ac_cv_prog_CC"; then
4028 ac_ct_CC=$CC
4029 # Extract the first word of "gcc", so it can be a program name with args.
4030 set dummy gcc; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_CC="gcc"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4057 if test -n "$ac_ct_CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4059 $as_echo "$ac_ct_CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065 if test "x$ac_ct_CC" = x; then
4066 CC=""
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 CC=$ac_ct_CC
4075 fi
4076 else
4077 CC="$ac_cv_prog_CC"
4078 fi
4079
4080 if test -z "$CC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}cc; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if test "${ac_cv_prog_CC+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4099 ac_cv_prog_CC="${ac_tool_prefix}cc"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103 done
4104 done
4105 IFS=$as_save_IFS
4106
4107 fi
4108 fi
4109 CC=$ac_cv_prog_CC
4110 if test -n "$CC"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4112 $as_echo "$CC" >&6; }
4113 else
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 fi
4117
4118
4119 fi
4120 fi
4121 if test -z "$CC"; then
4122 # Extract the first word of "cc", so it can be a program name with args.
4123 set dummy cc; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if test "${ac_cv_prog_CC+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 ac_prog_rejected=no
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4141 ac_prog_rejected=yes
4142 continue
4143 fi
4144 ac_cv_prog_CC="cc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 if test $ac_prog_rejected = yes; then
4153 # We found a bogon in the path, so make sure we never use it.
4154 set dummy $ac_cv_prog_CC
4155 shift
4156 if test $# != 0; then
4157 # We chose a different compiler from the bogus one.
4158 # However, it has the same basename, so the bogon will be chosen
4159 # first if we set CC to just the basename; use the full file name.
4160 shift
4161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4162 fi
4163 fi
4164 fi
4165 fi
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176 fi
4177 if test -z "$CC"; then
4178 if test -n "$ac_tool_prefix"; then
4179 for ac_prog in cl.exe
4180 do
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if test "${ac_cv_prog_CC+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 CC=$ac_cv_prog_CC
4209 if test -n "$CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211 $as_echo "$CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217
4218 test -n "$CC" && break
4219 done
4220 fi
4221 if test -z "$CC"; then
4222 ac_ct_CC=$CC
4223 for ac_prog in cl.exe
4224 do
4225 # Extract the first word of "$ac_prog", so it can be a program name with args.
4226 set dummy $ac_prog; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$ac_ct_CC"; then
4233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_CC="$ac_prog"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4253 if test -n "$ac_ct_CC"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4255 $as_echo "$ac_ct_CC" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260
4261
4262 test -n "$ac_ct_CC" && break
4263 done
4264
4265 if test "x$ac_ct_CC" = x; then
4266 CC=""
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 CC=$ac_ct_CC
4275 fi
4276 fi
4277
4278 fi
4279
4280
4281 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4283 as_fn_error "no acceptable C compiler found in \$PATH
4284 See \`config.log' for more details." "$LINENO" 5; }
4285
4286 # Provide some information about the compiler.
4287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4288 set X $ac_compile
4289 ac_compiler=$2
4290 for ac_option in --version -v -V -qversion; do
4291 { { ac_try="$ac_compiler $ac_option >&5"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4299 ac_status=$?
4300 if test -s conftest.err; then
4301 sed '10a\
4302 ... rest of stderr output deleted ...
4303 10q' conftest.err >conftest.er1
4304 cat conftest.er1 >&5
4305 rm -f conftest.er1 conftest.err
4306 fi
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }
4309 done
4310
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 int
4315 main ()
4316 {
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 # FIXME: Cleanup?
4323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4324 (eval $ac_link) 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; then :
4328 gcc_no_link=no
4329 else
4330 gcc_no_link=yes
4331 fi
4332 if test x$gcc_no_link = xyes; then
4333 # Setting cross_compile will disable run tests; it will
4334 # also disable AC_CHECK_FILE but that's generally
4335 # correct if we can't link.
4336 cross_compiling=yes
4337 EXEEXT=
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341
4342 int
4343 main ()
4344 {
4345
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 ac_clean_files_save=$ac_clean_files
4351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4352 # Try to create an executable without -o first, disregard a.out.
4353 # It will help us diagnose broken compilers, and finding out an intuition
4354 # of exeext.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4356 $as_echo_n "checking for C compiler default output file name... " >&6; }
4357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4358
4359 # The possible output files:
4360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4361
4362 ac_rmfiles=
4363 for ac_file in $ac_files
4364 do
4365 case $ac_file in
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4368 esac
4369 done
4370 rm -f $ac_rmfiles
4371
4372 if { { ac_try="$ac_link_default"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link_default") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
4383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4386 # so that the user can short-circuit this test for compilers unknown to
4387 # Autoconf.
4388 for ac_file in $ac_files ''
4389 do
4390 test -f "$ac_file" || continue
4391 case $ac_file in
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4393 ;;
4394 [ab].out )
4395 # We found the default executable, but exeext='' is most
4396 # certainly right.
4397 break;;
4398 *.* )
4399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4400 then :; else
4401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4402 fi
4403 # We set ac_cv_exeext here because the later test for it is not
4404 # safe: cross compilers may not add the suffix if given an `-o'
4405 # argument, so we may need to know it at that point already.
4406 # Even if this section looks crufty: it has the advantage of
4407 # actually working.
4408 break;;
4409 * )
4410 break;;
4411 esac
4412 done
4413 test "$ac_cv_exeext" = no && ac_cv_exeext=
4414
4415 else
4416 ac_file=''
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4419 $as_echo "$ac_file" >&6; }
4420 if test -z "$ac_file"; then :
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 { as_fn_set_status 77
4427 as_fn_error "C compiler cannot create executables
4428 See \`config.log' for more details." "$LINENO" 5; }; }
4429 fi
4430 ac_exeext=$ac_cv_exeext
4431
4432 # Check that the compiler produces executables we can run. If not, either
4433 # the compiler is broken, or we cross compile.
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4435 $as_echo_n "checking whether the C compiler works... " >&6; }
4436 # If not cross compiling, check that we can run a simple program.
4437 if test "$cross_compiling" != yes; then
4438 if { ac_try='./$ac_file'
4439 { { case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_try") 2>&5
4446 ac_status=$?
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }; }; then
4449 cross_compiling=no
4450 else
4451 if test "$cross_compiling" = maybe; then
4452 cross_compiling=yes
4453 else
4454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error "cannot run C compiled programs.
4457 If you meant to cross compile, use \`--host'.
4458 See \`config.log' for more details." "$LINENO" 5; }
4459 fi
4460 fi
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4463 $as_echo "yes" >&6; }
4464
4465 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4466 ac_clean_files=$ac_clean_files_save
4467 # Check that the compiler produces executables we can run. If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472 $as_echo "$cross_compiling" >&6; }
4473
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4475 $as_echo_n "checking for suffix of executables... " >&6; }
4476 if { { ac_try="$ac_link"
4477 case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 $as_echo "$ac_try_echo"; } >&5
4483 (eval "$ac_link") 2>&5
4484 ac_status=$?
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }; then :
4487 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4488 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4489 # work properly (i.e., refer to `conftest.exe'), while it won't with
4490 # `rm'.
4491 for ac_file in conftest.exe conftest conftest.*; do
4492 test -f "$ac_file" || continue
4493 case $ac_file in
4494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4496 break;;
4497 * ) break;;
4498 esac
4499 done
4500 else
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error "cannot compute suffix of executables: cannot compile and link
4504 See \`config.log' for more details." "$LINENO" 5; }
4505 fi
4506 rm -f conftest$ac_cv_exeext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4508 $as_echo "$ac_cv_exeext" >&6; }
4509
4510 rm -f conftest.$ac_ext
4511 EXEEXT=$ac_cv_exeext
4512 ac_exeext=$EXEEXT
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4515 $as_echo_n "checking for suffix of object files... " >&6; }
4516 if test "${ac_cv_objext+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521
4522 int
4523 main ()
4524 {
4525
4526 ;
4527 return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.o conftest.obj
4531 if { { ac_try="$ac_compile"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compile") 2>&5
4539 ac_status=$?
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }; then :
4542 for ac_file in conftest.o conftest.obj conftest.*; do
4543 test -f "$ac_file" || continue;
4544 case $ac_file in
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4547 break;;
4548 esac
4549 done
4550 else
4551 $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error "cannot compute suffix of object files: cannot compile
4557 See \`config.log' for more details." "$LINENO" 5; }
4558 fi
4559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4562 $as_echo "$ac_cv_objext" >&6; }
4563 OBJEXT=$ac_cv_objext
4564 ac_objext=$OBJEXT
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4567 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572
4573 int
4574 main ()
4575 {
4576 #ifndef __GNUC__
4577 choke me
4578 #endif
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_compiler_gnu=yes
4586 else
4587 ac_compiler_gnu=no
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4595 if test $ac_compiler_gnu = yes; then
4596 GCC=yes
4597 else
4598 GCC=
4599 fi
4600 ac_test_CFLAGS=${CFLAGS+set}
4601 ac_save_CFLAGS=$CFLAGS
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4604 if test "${ac_cv_prog_cc_g+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 ac_save_c_werror_flag=$ac_c_werror_flag
4608 ac_c_werror_flag=yes
4609 ac_cv_prog_cc_g=no
4610 CFLAGS="-g"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 int
4615 main ()
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 ac_cv_prog_cc_g=yes
4624 else
4625 CFLAGS=""
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628
4629 int
4630 main ()
4631 {
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638
4639 else
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4641 CFLAGS="-g"
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644
4645 int
4646 main ()
4647 {
4648
4649 ;
4650 return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"; then :
4654 ac_cv_prog_cc_g=yes
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4664 $as_echo "$ac_cv_prog_cc_g" >&6; }
4665 if test "$ac_test_CFLAGS" = set; then
4666 CFLAGS=$ac_save_CFLAGS
4667 elif test $ac_cv_prog_cc_g = yes; then
4668 if test "$GCC" = yes; then
4669 CFLAGS="-g -O2"
4670 else
4671 CFLAGS="-g"
4672 fi
4673 else
4674 if test "$GCC" = yes; then
4675 CFLAGS="-O2"
4676 else
4677 CFLAGS=
4678 fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4682 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 ac_cv_prog_cc_c89=no
4686 ac_save_CC=$CC
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <stdarg.h>
4690 #include <stdio.h>
4691 #include <sys/types.h>
4692 #include <sys/stat.h>
4693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4694 struct buf { int x; };
4695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4696 static char *e (p, i)
4697 char **p;
4698 int i;
4699 {
4700 return p[i];
4701 }
4702 static char *f (char * (*g) (char **, int), char **p, ...)
4703 {
4704 char *s;
4705 va_list v;
4706 va_start (v,p);
4707 s = g (p, va_arg (v,int));
4708 va_end (v);
4709 return s;
4710 }
4711
4712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4713 function prototypes and stuff, but not '\xHH' hex character constants.
4714 These don't provoke an error unfortunately, instead are silently treated
4715 as 'x'. The following induces an error, until -std is added to get
4716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4717 array size at least. It's necessary to write '\x00'==0 to get something
4718 that's true only with -std. */
4719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4720
4721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4722 inside strings and character constants. */
4723 #define FOO(x) 'x'
4724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4725
4726 int test (int i, double x);
4727 struct s1 {int (*f) (int a);};
4728 struct s2 {int (*f) (double a);};
4729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4730 int argc;
4731 char **argv;
4732 int
4733 main ()
4734 {
4735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4742 do
4743 CC="$ac_save_CC $ac_arg"
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 ac_cv_prog_cc_c89=$ac_arg
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext
4748 test "x$ac_cv_prog_cc_c89" != "xno" && break
4749 done
4750 rm -f conftest.$ac_ext
4751 CC=$ac_save_CC
4752
4753 fi
4754 # AC_CACHE_VAL
4755 case "x$ac_cv_prog_cc_c89" in
4756 x)
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4758 $as_echo "none needed" >&6; } ;;
4759 xno)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4761 $as_echo "unsupported" >&6; } ;;
4762 *)
4763 CC="$CC $ac_cv_prog_cc_c89"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4766 esac
4767 if test "x$ac_cv_prog_cc_c89" != xno; then :
4768
4769 fi
4770
4771 ac_ext=c
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776
4777 depcc="$CC" am_compiler_list=
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4780 $as_echo_n "checking dependency style of $depcc... " >&6; }
4781 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4785 # We make a subdir and do the tests there. Otherwise we can end up
4786 # making bogus files that we don't know about and never remove. For
4787 # instance it was reported that on HP-UX the gcc test will end up
4788 # making a dummy file named `D' -- because `-MD' means `put the output
4789 # in D'.
4790 mkdir conftest.dir
4791 # Copy depcomp to subdir because otherwise we won't find it if we're
4792 # using a relative directory.
4793 cp "$am_depcomp" conftest.dir
4794 cd conftest.dir
4795 # We will build objects and dependencies in a subdirectory because
4796 # it helps to detect inapplicable dependency modes. For instance
4797 # both Tru64's cc and ICC support -MD to output dependencies as a
4798 # side effect of compilation, but ICC will put the dependencies in
4799 # the current directory while Tru64 will put them in the object
4800 # directory.
4801 mkdir sub
4802
4803 am_cv_CC_dependencies_compiler_type=none
4804 if test "$am_compiler_list" = ""; then
4805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4806 fi
4807 am__universal=false
4808 case " $depcc " in #(
4809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4810 esac
4811
4812 for depmode in $am_compiler_list; do
4813 # Setup a source with many dependencies, because some compilers
4814 # like to wrap large dependency lists on column 80 (with \), and
4815 # we should not choose a depcomp mode which is confused by this.
4816 #
4817 # We need to recreate these files for each test, as the compiler may
4818 # overwrite some of them when testing with obscure command lines.
4819 # This happens at least with the AIX C compiler.
4820 : > sub/conftest.c
4821 for i in 1 2 3 4 5 6; do
4822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4824 # Solaris 8's {/usr,}/bin/sh.
4825 touch sub/conftst$i.h
4826 done
4827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4828
4829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4830 # mode. It turns out that the SunPro C++ compiler does not properly
4831 # handle `-M -o', and we need to detect this. Also, some Intel
4832 # versions had trouble with output in subdirs
4833 am__obj=sub/conftest.${OBJEXT-o}
4834 am__minus_obj="-o $am__obj"
4835 case $depmode in
4836 gcc)
4837 # This depmode causes a compiler race in universal mode.
4838 test "$am__universal" = false || continue
4839 ;;
4840 nosideeffect)
4841 # after this tag, mechanisms are not by side-effect, so they'll
4842 # only be used when explicitly requested
4843 if test "x$enable_dependency_tracking" = xyes; then
4844 continue
4845 else
4846 break
4847 fi
4848 ;;
4849 msvisualcpp | msvcmsys)
4850 # This compiler won't grok `-c -o', but also, the minuso test has
4851 # not run yet. These depmodes are late enough in the game, and
4852 # so weak that their functioning should not be impacted.
4853 am__obj=conftest.${OBJEXT-o}
4854 am__minus_obj=
4855 ;;
4856 none) break ;;
4857 esac
4858 if depmode=$depmode \
4859 source=sub/conftest.c object=$am__obj \
4860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4862 >/dev/null 2>conftest.err &&
4863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4867 # icc doesn't choke on unknown options, it will just issue warnings
4868 # or remarks (even with -Werror). So we grep stderr for any message
4869 # that says an option was ignored or not supported.
4870 # When given -MP, icc 7.0 and 7.1 complain thusly:
4871 # icc: Command line warning: ignoring option '-M'; no argument required
4872 # The diagnosis changed in icc 8.0:
4873 # icc: Command line remark: option '-MP' not supported
4874 if (grep 'ignoring option' conftest.err ||
4875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4876 am_cv_CC_dependencies_compiler_type=$depmode
4877 break
4878 fi
4879 fi
4880 done
4881
4882 cd ..
4883 rm -rf conftest.dir
4884 else
4885 am_cv_CC_dependencies_compiler_type=none
4886 fi
4887
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4892
4893 if
4894 test "x$enable_dependency_tracking" != xno \
4895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4896 am__fastdepCC_TRUE=
4897 am__fastdepCC_FALSE='#'
4898 else
4899 am__fastdepCC_TRUE='#'
4900 am__fastdepCC_FALSE=
4901 fi
4902
4903
4904
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4911 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4912 # On Suns, sometimes $CPP names a directory.
4913 if test -n "$CPP" && test -d "$CPP"; then
4914 CPP=
4915 fi
4916 if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4922 do
4923 ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4925 do
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939 Syntax error
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4942
4943 else
4944 # Broken: fails on valid input.
4945 continue
4946 fi
4947 rm -f conftest.err conftest.$ac_ext
4948
4949 # OK, works on sane cases. Now check whether nonexistent headers
4950 # can be detected and how.
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 #include <ac_nonexistent.h>
4954 _ACEOF
4955 if ac_fn_c_try_cpp "$LINENO"; then :
4956 # Broken: success on invalid input.
4957 continue
4958 else
4959 # Passes both tests.
4960 ac_preproc_ok=:
4961 break
4962 fi
4963 rm -f conftest.err conftest.$ac_ext
4964
4965 done
4966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967 rm -f conftest.err conftest.$ac_ext
4968 if $ac_preproc_ok; then :
4969 break
4970 fi
4971
4972 done
4973 ac_cv_prog_CPP=$CPP
4974
4975 fi
4976 CPP=$ac_cv_prog_CPP
4977 else
4978 ac_cv_prog_CPP=$CPP
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4981 $as_echo "$CPP" >&6; }
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4984 do
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998 Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001
5002 else
5003 # Broken: fails on valid input.
5004 continue
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5016 continue
5017 else
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5028
5029 else
5030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5032 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5033 See \`config.log' for more details." "$LINENO" 5; }
5034 fi
5035
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5045 if test "${ac_cv_path_GREP+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -z "$GREP"; then
5049 ac_path_GREP_found=false
5050 # Loop through the user's path and test for each of PROGNAME-LIST
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_prog in grep ggrep; do
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5059 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5060 # Check for GNU ac_path_GREP and select it if it is found.
5061 # Check for GNU $ac_path_GREP
5062 case `"$ac_path_GREP" --version 2>&1` in
5063 *GNU*)
5064 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5065 *)
5066 ac_count=0
5067 $as_echo_n 0123456789 >"conftest.in"
5068 while :
5069 do
5070 cat "conftest.in" "conftest.in" >"conftest.tmp"
5071 mv "conftest.tmp" "conftest.in"
5072 cp "conftest.in" "conftest.nl"
5073 $as_echo 'GREP' >> "conftest.nl"
5074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076 as_fn_arith $ac_count + 1 && ac_count=$as_val
5077 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5078 # Best one so far, save it but keep looking for a better one
5079 ac_cv_path_GREP="$ac_path_GREP"
5080 ac_path_GREP_max=$ac_count
5081 fi
5082 # 10*(2^10) chars as input seems more than enough
5083 test $ac_count -gt 10 && break
5084 done
5085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5086 esac
5087
5088 $ac_path_GREP_found && break 3
5089 done
5090 done
5091 done
5092 IFS=$as_save_IFS
5093 if test -z "$ac_cv_path_GREP"; then
5094 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5095 fi
5096 else
5097 ac_cv_path_GREP=$GREP
5098 fi
5099
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5102 $as_echo "$ac_cv_path_GREP" >&6; }
5103 GREP="$ac_cv_path_GREP"
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5107 $as_echo_n "checking for egrep... " >&6; }
5108 if test "${ac_cv_path_EGREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5112 then ac_cv_path_EGREP="$GREP -E"
5113 else
5114 if test -z "$EGREP"; then
5115 ac_path_EGREP_found=false
5116 # Loop through the user's path and test for each of PROGNAME-LIST
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_prog in egrep; do
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5125 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5126 # Check for GNU ac_path_EGREP and select it if it is found.
5127 # Check for GNU $ac_path_EGREP
5128 case `"$ac_path_EGREP" --version 2>&1` in
5129 *GNU*)
5130 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5131 *)
5132 ac_count=0
5133 $as_echo_n 0123456789 >"conftest.in"
5134 while :
5135 do
5136 cat "conftest.in" "conftest.in" >"conftest.tmp"
5137 mv "conftest.tmp" "conftest.in"
5138 cp "conftest.in" "conftest.nl"
5139 $as_echo 'EGREP' >> "conftest.nl"
5140 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5142 as_fn_arith $ac_count + 1 && ac_count=$as_val
5143 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5144 # Best one so far, save it but keep looking for a better one
5145 ac_cv_path_EGREP="$ac_path_EGREP"
5146 ac_path_EGREP_max=$ac_count
5147 fi
5148 # 10*(2^10) chars as input seems more than enough
5149 test $ac_count -gt 10 && break
5150 done
5151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5152 esac
5153
5154 $ac_path_EGREP_found && break 3
5155 done
5156 done
5157 done
5158 IFS=$as_save_IFS
5159 if test -z "$ac_cv_path_EGREP"; then
5160 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5161 fi
5162 else
5163 ac_cv_path_EGREP=$EGREP
5164 fi
5165
5166 fi
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5169 $as_echo "$ac_cv_path_EGREP" >&6; }
5170 EGREP="$ac_cv_path_EGREP"
5171
5172
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5174 $as_echo_n "checking for ANSI C header files... " >&6; }
5175 if test "${ac_cv_header_stdc+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <stdlib.h>
5181 #include <stdarg.h>
5182 #include <string.h>
5183 #include <float.h>
5184
5185 int
5186 main ()
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_cv_header_stdc=yes
5195 else
5196 ac_cv_header_stdc=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199
5200 if test $ac_cv_header_stdc = yes; then
5201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #include <string.h>
5205
5206 _ACEOF
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "memchr" >/dev/null 2>&1; then :
5209
5210 else
5211 ac_cv_header_stdc=no
5212 fi
5213 rm -f conftest*
5214
5215 fi
5216
5217 if test $ac_cv_header_stdc = yes; then
5218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <stdlib.h>
5222
5223 _ACEOF
5224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225 $EGREP "free" >/dev/null 2>&1; then :
5226
5227 else
5228 ac_cv_header_stdc=no
5229 fi
5230 rm -f conftest*
5231
5232 fi
5233
5234 if test $ac_cv_header_stdc = yes; then
5235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5236 if test "$cross_compiling" = yes; then :
5237 :
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241 #include <ctype.h>
5242 #include <stdlib.h>
5243 #if ((' ' & 0x0FF) == 0x020)
5244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5246 #else
5247 # define ISLOWER(c) \
5248 (('a' <= (c) && (c) <= 'i') \
5249 || ('j' <= (c) && (c) <= 'r') \
5250 || ('s' <= (c) && (c) <= 'z'))
5251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5252 #endif
5253
5254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5255 int
5256 main ()
5257 {
5258 int i;
5259 for (i = 0; i < 256; i++)
5260 if (XOR (islower (i), ISLOWER (i))
5261 || toupper (i) != TOUPPER (i))
5262 return 2;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_run "$LINENO"; then :
5267
5268 else
5269 ac_cv_header_stdc=no
5270 fi
5271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5272 conftest.$ac_objext conftest.beam conftest.$ac_ext
5273 fi
5274
5275 fi
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5278 $as_echo "$ac_cv_header_stdc" >&6; }
5279 if test $ac_cv_header_stdc = yes; then
5280
5281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5282
5283 fi
5284
5285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5287 inttypes.h stdint.h unistd.h
5288 do :
5289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5290 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5291 "
5292 eval as_val=\$$as_ac_Header
5293 if test "x$as_val" = x""yes; then :
5294 cat >>confdefs.h <<_ACEOF
5295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296 _ACEOF
5297
5298 fi
5299
5300 done
5301
5302
5303 # Check whether --enable-alsa was given.
5304 if test "${enable_alsa+set}" = set; then :
5305 enableval=$enable_alsa; case "${enableval}" in
5306 yes) COMPILE_ALSA=yes ;;
5307 no) COMPILE_ALSA=no ;;
5308 *) COMPILE_ALSA=yes ;;
5309 esac
5310 else
5311 for ac_header in alsa/asoundlib.h
5312 do :
5313 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5314 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_ALSA_ASOUNDLIB_H 1
5317 _ACEOF
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5319 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5320 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lasound $LIBS"
5325 if test x$gcc_no_link = xyes; then
5326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5327 fi
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330
5331 /* Override any GCC internal prototype to avoid an error.
5332 Use char because int might match the return type of a GCC
5333 builtin and then its argument prototype would still apply. */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 char snd_seq_open ();
5338 int
5339 main ()
5340 {
5341 return snd_seq_open ();
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 ac_cv_lib_asound_snd_seq_open=yes
5348 else
5349 ac_cv_lib_asound_snd_seq_open=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 LIBS=$ac_check_lib_save_LIBS
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5356 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5357 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5358 COMPILE_ALSA=yes
5359 else
5360 COMPILE_ALSA=no
5361 fi
5362
5363 else
5364 COMPILE_ALSA=no
5365 fi
5366
5367 done
5368
5369 fi
5370
5371 if test "x${COMPILE_ALSA}" = xyes; then
5372 CREATE_ALSA_LIBRARIES_TRUE=
5373 CREATE_ALSA_LIBRARIES_FALSE='#'
5374 else
5375 CREATE_ALSA_LIBRARIES_TRUE='#'
5376 CREATE_ALSA_LIBRARIES_FALSE=
5377 fi
5378
5379
5380 # Check whether --enable-dssi was given.
5381 if test "${enable_dssi+set}" = set; then :
5382 enableval=$enable_dssi; case "${enableval}" in
5383 yes) COMPILE_DSSI=yes ;;
5384 no) COMPILE_DSSI=no ;;
5385 *) COMPILE_DSSI=yes ;;
5386 esac
5387 else
5388 COMPILE_DSSI=no
5389 for ac_header in dssi.h
5390 do :
5391 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5392 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_DSSI_H 1
5395 _ACEOF
5396
5397 for ac_header in jack/jack.h
5398 do :
5399 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5400 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_JACK_JACK_H 1
5403 _ACEOF
5404 COMPILE_DSSI=yes
5405 fi
5406
5407 done
5408
5409 fi
5410
5411 done
5412
5413 fi
5414
5415 if test "x${COMPILE_DSSI}" = xyes; then
5416 CREATE_DSSI_LIBRARIES_TRUE=
5417 CREATE_DSSI_LIBRARIES_FALSE='#'
5418 else
5419 CREATE_DSSI_LIBRARIES_TRUE='#'
5420 CREATE_DSSI_LIBRARIES_FALSE=
5421 fi
5422
5423
5424 # Check whether --enable-gtk-peer was given.
5425 if test "${enable_gtk_peer+set}" = set; then :
5426 enableval=$enable_gtk_peer; case "${enableval}" in
5427 yes) COMPILE_GTK_PEER=yes ;;
5428 no) COMPILE_GTK_PEER=no ;;
5429 *) COMPILE_GTK_PEER=yes ;;
5430 esac
5431 else
5432 COMPILE_GTK_PEER=yes
5433 fi
5434
5435 if test "x${COMPILE_GTK_PEER}" = xyes; then
5436 CREATE_GTK_PEER_LIBRARIES_TRUE=
5437 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5438 else
5439 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5440 CREATE_GTK_PEER_LIBRARIES_FALSE=
5441 fi
5442
5443
5444 # Check whether --enable-gtk-peers was given.
5445 if test "${enable_gtk_peers+set}" = set; then :
5446 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5447 fi
5448
5449
5450 # Check whether --enable-qt-peer was given.
5451 if test "${enable_qt_peer+set}" = set; then :
5452 enableval=$enable_qt_peer; case "${enableval}" in
5453 yes) COMPILE_QT_PEER=yes ;;
5454 no) COMPILE_QT_PEER=no ;;
5455 *) COMPILE_QT_PEER=yes ;;
5456 esac
5457 else
5458 COMPILE_QT_PEER=no
5459 fi
5460
5461 if test "x${COMPILE_QT_PEER}" = xyes; then
5462 CREATE_QT_PEER_LIBRARIES_TRUE=
5463 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5464 else
5465 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5466 CREATE_QT_PEER_LIBRARIES_FALSE=
5467 fi
5468
5469
5470 # Check whether --enable-plugin was given.
5471 if test "${enable_plugin+set}" = set; then :
5472 enableval=$enable_plugin; case "${enableval}" in
5473 yes) COMPILE_PLUGIN=yes ;;
5474 no) COMPILE_PLUGIN=no ;;
5475 *) COMPILE_PLUGIN=yes ;;
5476 esac
5477 else
5478 COMPILE_PLUGIN=no
5479 fi
5480
5481 if test "x${COMPILE_PLUGIN}" = xyes; then
5482 CREATE_PLUGIN_TRUE=
5483 CREATE_PLUGIN_FALSE='#'
5484 else
5485 CREATE_PLUGIN_TRUE='#'
5486 CREATE_PLUGIN_FALSE=
5487 fi
5488
5489
5490 # Check whether --enable-gmp was given.
5491 if test "${enable_gmp+set}" = set; then :
5492 enableval=$enable_gmp; case "${enableval}" in
5493 yes|true) COMPILE_GMP=yes ;;
5494 no|false) COMPILE_GMP=no ;;
5495 *) COMPILE_GMP=yes ;;
5496 esac
5497 else
5498 COMPILE_GMP=yes
5499 fi
5500
5501
5502 # Check whether --enable-gjdoc was given.
5503 if test "${enable_gjdoc+set}" = set; then :
5504 enableval=$enable_gjdoc; case "${enableval}" in
5505 yes) COMPILE_GJDOC=yes ;;
5506 no) COMPILE_GJDOC=no ;;
5507 *) COMPILE_GJDOC=yes ;;
5508 esac
5509 else
5510 COMPILE_GJDOC=yes
5511 fi
5512
5513 if test "x${COMPILE_GJDOC}" = xyes; then
5514 CREATE_GJDOC_TRUE=
5515 CREATE_GJDOC_FALSE='#'
5516 else
5517 CREATE_GJDOC_TRUE='#'
5518 CREATE_GJDOC_FALSE=
5519 fi
5520
5521
5522
5523 multi_os_directory=`$CC -print-multi-os-directory`
5524 case $multi_os_directory in
5525 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5526 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5527 esac
5528
5529
5530
5531
5532 # Check whether --with-native-libdir was given.
5533 if test "${with_native_libdir+set}" = set; then :
5534 withval=$with_native_libdir;
5535 nativeexeclibdir=${withval}
5536
5537 else
5538
5539 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5540
5541 fi
5542
5543
5544
5545
5546
5547 # Check whether --with-glibj-dir was given.
5548 if test "${with_glibj_dir+set}" = set; then :
5549 withval=$with_glibj_dir;
5550 glibjdir=${withval}
5551
5552 else
5553
5554 glibjdir='${datadir}/${PACKAGE}'
5555
5556 fi
5557
5558
5559
5560
5561
5562 # Check whether --with-antlr-jar was given.
5563 if test "${with_antlr_jar+set}" = set; then :
5564 withval=$with_antlr_jar;
5565 ANTLR_JAR=$withval
5566
5567 else
5568
5569 ANTLR_JAR="$ANTLR_JAR"
5570
5571 fi
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5575 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5576 # Check whether --enable-regen-headers was given.
5577 if test "${enable_regen_headers+set}" = set; then :
5578 enableval=$enable_regen_headers; case "${enableval}" in
5579 yes) REGENERATE_JNI_HEADERS=yes ;;
5580 no) REGENERATE_JNI_HEADERS=no ;;
5581 *) REGENERATE_JNI_HEADERS=yes ;;
5582 esac
5583 else
5584 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5585 REGENERATE_JNI_HEADERS=no ;
5586 else
5587 REGENERATE_JNI_HEADERS=yes ;
5588 fi
5589 fi
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5592 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5593 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5594 CREATE_JNI_HEADERS_TRUE=
5595 CREATE_JNI_HEADERS_FALSE='#'
5596 else
5597 CREATE_JNI_HEADERS_TRUE='#'
5598 CREATE_JNI_HEADERS_FALSE=
5599 fi
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5603 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5604 # Check whether --enable-regen-gjdoc-parser was given.
5605 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5606 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5607 yes) REGENERATE_GJDOC_PARSER=yes ;;
5608 no) REGENERATE_GJDOC_PARSER=no ;;
5609 *) REGENERATE_GJDOC_PARSER=yes ;;
5610 esac
5611 else
5612 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5613 REGENERATE_GJDOC_PARSER=no ;
5614 else
5615 REGENERATE_GJDOC_PARSER=yes ;
5616 fi
5617 fi
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5620 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5621 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5622 CREATE_GJDOC_PARSER_TRUE=
5623 CREATE_GJDOC_PARSER_FALSE='#'
5624 else
5625 CREATE_GJDOC_PARSER_TRUE='#'
5626 CREATE_GJDOC_PARSER_FALSE=
5627 fi
5628
5629
5630 # Check whether --enable-tool-wrappers was given.
5631 if test "${enable_tool_wrappers+set}" = set; then :
5632 enableval=$enable_tool_wrappers; case x"${enableval}" in
5633 xyes)
5634 COMPILE_WRAPPERS=yes;
5635 for ac_header in ltdl.h
5636 do :
5637 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5638 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5639 cat >>confdefs.h <<_ACEOF
5640 #define HAVE_LTDL_H 1
5641 _ACEOF
5642
5643 else
5644 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5645 fi
5646
5647 done
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5650 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5651 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lltdl $LIBS"
5656 if test x$gcc_no_link = xyes; then
5657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5658 fi
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661
5662 /* Override any GCC internal prototype to avoid an error.
5663 Use char because int might match the return type of a GCC
5664 builtin and then its argument prototype would still apply. */
5665 #ifdef __cplusplus
5666 extern "C"
5667 #endif
5668 char lt_dlopen ();
5669 int
5670 main ()
5671 {
5672 return lt_dlopen ();
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_link "$LINENO"; then :
5678 ac_cv_lib_ltdl_lt_dlopen=yes
5679 else
5680 ac_cv_lib_ltdl_lt_dlopen=no
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5687 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5688 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5689 cat >>confdefs.h <<_ACEOF
5690 #define HAVE_LIBLTDL 1
5691 _ACEOF
5692
5693 LIBS="-lltdl $LIBS"
5694
5695 else
5696 as_fn_error "cannot find libltdl" "$LINENO" 5
5697 fi
5698
5699 ;;
5700 xno) COMPILE_WRAPPERS=no ;;
5701 x) COMPILE_WRAPPERS=yes ;;
5702 *) COMPILE_WRAPPERS=yes ;;
5703 esac
5704 else
5705 COMPILE_WRAPPERS=no
5706 fi
5707
5708 if test "x${COMPILE_WRAPPERS}" = xyes; then
5709 CREATE_WRAPPERS_TRUE=
5710 CREATE_WRAPPERS_FALSE='#'
5711 else
5712 CREATE_WRAPPERS_TRUE='#'
5713 CREATE_WRAPPERS_FALSE=
5714 fi
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5718 $as_echo_n "checking whether ln -s works... " >&6; }
5719 LN_S=$as_ln_s
5720 if test "$LN_S" = "ln -s"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722 $as_echo "yes" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5725 $as_echo "no, using $LN_S" >&6; }
5726 fi
5727
5728
5729
5730
5731 # Check whether --enable-static was given.
5732 if test "${enable_static+set}" = set; then :
5733 enableval=$enable_static; p=${PACKAGE-default}
5734 case $enableval in
5735 yes) enable_static=yes ;;
5736 no) enable_static=no ;;
5737 *)
5738 enable_static=no
5739 # Look at the argument we got. We use all the common list separators.
5740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5741 for pkg in $enableval; do
5742 IFS="$lt_save_ifs"
5743 if test "X$pkg" = "X$p"; then
5744 enable_static=yes
5745 fi
5746 done
5747 IFS="$lt_save_ifs"
5748 ;;
5749 esac
5750 else
5751 enable_static=no
5752 fi
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 case `pwd` in
5763 *\ * | *\ *)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5766 esac
5767
5768
5769
5770 macro_version='2.2.7a'
5771 macro_revision='1.3134'
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 ltmain="$ac_aux_dir/ltmain.sh"
5786
5787 # Backslashify metacharacters that are still active within
5788 # double-quoted strings.
5789 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5790
5791 # Same as above, but do not quote variable references.
5792 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5793
5794 # Sed substitution to delay expansion of an escaped shell variable in a
5795 # double_quote_subst'ed string.
5796 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5797
5798 # Sed substitution to delay expansion of an escaped single quote.
5799 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5800
5801 # Sed substitution to avoid accidental globbing in evaled expressions
5802 no_glob_subst='s/\*/\\\*/g'
5803
5804 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5807
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5809 $as_echo_n "checking how to print strings... " >&6; }
5810 # Test print first, because it will be a builtin if present.
5811 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5812 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5813 ECHO='print -r --'
5814 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5815 ECHO='printf %s\n'
5816 else
5817 # Use this function as a fallback that always works.
5818 func_fallback_echo ()
5819 {
5820 eval 'cat <<_LTECHO_EOF
5821 $1
5822 _LTECHO_EOF'
5823 }
5824 ECHO='func_fallback_echo'
5825 fi
5826
5827 # func_echo_all arg...
5828 # Invoke $ECHO with all args, space-separated.
5829 func_echo_all ()
5830 {
5831 $ECHO ""
5832 }
5833
5834 case "$ECHO" in
5835 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5836 $as_echo "printf" >&6; } ;;
5837 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5838 $as_echo "print -r" >&6; } ;;
5839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5840 $as_echo "cat" >&6; } ;;
5841 esac
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5857 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5858 if test "${ac_cv_path_SED+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5862 for ac_i in 1 2 3 4 5 6 7; do
5863 ac_script="$ac_script$as_nl$ac_script"
5864 done
5865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5866 { ac_script=; unset ac_script;}
5867 if test -z "$SED"; then
5868 ac_path_SED_found=false
5869 # Loop through the user's path and test for each of PROGNAME-LIST
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_prog in sed gsed; do
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5878 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5879 # Check for GNU ac_path_SED and select it if it is found.
5880 # Check for GNU $ac_path_SED
5881 case `"$ac_path_SED" --version 2>&1` in
5882 *GNU*)
5883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5884 *)
5885 ac_count=0
5886 $as_echo_n 0123456789 >"conftest.in"
5887 while :
5888 do
5889 cat "conftest.in" "conftest.in" >"conftest.tmp"
5890 mv "conftest.tmp" "conftest.in"
5891 cp "conftest.in" "conftest.nl"
5892 $as_echo '' >> "conftest.nl"
5893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5895 as_fn_arith $ac_count + 1 && ac_count=$as_val
5896 if test $ac_count -gt ${ac_path_SED_max-0}; then
5897 # Best one so far, save it but keep looking for a better one
5898 ac_cv_path_SED="$ac_path_SED"
5899 ac_path_SED_max=$ac_count
5900 fi
5901 # 10*(2^10) chars as input seems more than enough
5902 test $ac_count -gt 10 && break
5903 done
5904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5905 esac
5906
5907 $ac_path_SED_found && break 3
5908 done
5909 done
5910 done
5911 IFS=$as_save_IFS
5912 if test -z "$ac_cv_path_SED"; then
5913 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5914 fi
5915 else
5916 ac_cv_path_SED=$SED
5917 fi
5918
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5921 $as_echo "$ac_cv_path_SED" >&6; }
5922 SED="$ac_cv_path_SED"
5923 rm -f conftest.sed
5924
5925 test -z "$SED" && SED=sed
5926 Xsed="$SED -e 1s/^X//"
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5939 $as_echo_n "checking for fgrep... " >&6; }
5940 if test "${ac_cv_path_FGREP+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5944 then ac_cv_path_FGREP="$GREP -F"
5945 else
5946 if test -z "$FGREP"; then
5947 ac_path_FGREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_prog in fgrep; do
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5958 # Check for GNU ac_path_FGREP and select it if it is found.
5959 # Check for GNU $ac_path_FGREP
5960 case `"$ac_path_FGREP" --version 2>&1` in
5961 *GNU*)
5962 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5963 *)
5964 ac_count=0
5965 $as_echo_n 0123456789 >"conftest.in"
5966 while :
5967 do
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'FGREP' >> "conftest.nl"
5972 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val
5975 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_FGREP="$ac_path_FGREP"
5978 ac_path_FGREP_max=$ac_count
5979 fi
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5982 done
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984 esac
5985
5986 $ac_path_FGREP_found && break 3
5987 done
5988 done
5989 done
5990 IFS=$as_save_IFS
5991 if test -z "$ac_cv_path_FGREP"; then
5992 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5993 fi
5994 else
5995 ac_cv_path_FGREP=$FGREP
5996 fi
5997
5998 fi
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6001 $as_echo "$ac_cv_path_FGREP" >&6; }
6002 FGREP="$ac_cv_path_FGREP"
6003
6004
6005 test -z "$GREP" && GREP=grep
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 # Check whether --with-gnu-ld was given.
6026 if test "${with_gnu_ld+set}" = set; then :
6027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6028 else
6029 with_gnu_ld=no
6030 fi
6031
6032 ac_prog=ld
6033 if test "$GCC" = yes; then
6034 # Check if gcc -print-prog-name=ld gives a path.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6036 $as_echo_n "checking for ld used by $CC... " >&6; }
6037 case $host in
6038 *-*-mingw*)
6039 # gcc leaves a trailing carriage return which upsets mingw
6040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6041 *)
6042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6043 esac
6044 case $ac_prog in
6045 # Accept absolute paths.
6046 [\\/]* | ?:[\\/]*)
6047 re_direlt='/[^/][^/]*/\.\./'
6048 # Canonicalize the pathname of ld
6049 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6050 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6051 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6052 done
6053 test -z "$LD" && LD="$ac_prog"
6054 ;;
6055 "")
6056 # If it fails, then pretend we aren't using GCC.
6057 ac_prog=ld
6058 ;;
6059 *)
6060 # If it is relative, then search for the first ld in PATH.
6061 with_gnu_ld=unknown
6062 ;;
6063 esac
6064 elif test "$with_gnu_ld" = yes; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6066 $as_echo_n "checking for GNU ld... " >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6069 $as_echo_n "checking for non-GNU ld... " >&6; }
6070 fi
6071 if test "${lt_cv_path_LD+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -z "$LD"; then
6075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6076 for ac_dir in $PATH; do
6077 IFS="$lt_save_ifs"
6078 test -z "$ac_dir" && ac_dir=.
6079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6080 lt_cv_path_LD="$ac_dir/$ac_prog"
6081 # Check to see if the program is GNU ld. I'd rather use --version,
6082 # but apparently some variants of GNU ld only accept -v.
6083 # Break only if it was the GNU/non-GNU ld that we prefer.
6084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6085 *GNU* | *'with BFD'*)
6086 test "$with_gnu_ld" != no && break
6087 ;;
6088 *)
6089 test "$with_gnu_ld" != yes && break
6090 ;;
6091 esac
6092 fi
6093 done
6094 IFS="$lt_save_ifs"
6095 else
6096 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6097 fi
6098 fi
6099
6100 LD="$lt_cv_path_LD"
6101 if test -n "$LD"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6103 $as_echo "$LD" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6111 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6115 case `$LD -v 2>&1 </dev/null` in
6116 *GNU* | *'with BFD'*)
6117 lt_cv_prog_gnu_ld=yes
6118 ;;
6119 *)
6120 lt_cv_prog_gnu_ld=no
6121 ;;
6122 esac
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6126 with_gnu_ld=$lt_cv_prog_gnu_ld
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6137 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6138 if test "${lt_cv_path_NM+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$NM"; then
6142 # Let the user override the test.
6143 lt_cv_path_NM="$NM"
6144 else
6145 lt_nm_to_check="${ac_tool_prefix}nm"
6146 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6147 lt_nm_to_check="$lt_nm_to_check nm"
6148 fi
6149 for lt_tmp_nm in $lt_nm_to_check; do
6150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6151 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6152 IFS="$lt_save_ifs"
6153 test -z "$ac_dir" && ac_dir=.
6154 tmp_nm="$ac_dir/$lt_tmp_nm"
6155 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6156 # Check to see if the nm accepts a BSD-compat flag.
6157 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6158 # nm: unknown option "B" ignored
6159 # Tru64's nm complains that /dev/null is an invalid object file
6160 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6161 */dev/null* | *'Invalid file or object type'*)
6162 lt_cv_path_NM="$tmp_nm -B"
6163 break
6164 ;;
6165 *)
6166 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6167 */dev/null*)
6168 lt_cv_path_NM="$tmp_nm -p"
6169 break
6170 ;;
6171 *)
6172 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6173 continue # so that we can try to find one that supports BSD flags
6174 ;;
6175 esac
6176 ;;
6177 esac
6178 fi
6179 done
6180 IFS="$lt_save_ifs"
6181 done
6182 : ${lt_cv_path_NM=no}
6183 fi
6184 fi
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6186 $as_echo "$lt_cv_path_NM" >&6; }
6187 if test "$lt_cv_path_NM" != "no"; then
6188 NM="$lt_cv_path_NM"
6189 else
6190 # Didn't find any BSD compatible name lister, look for dumpbin.
6191 if test -n "$DUMPBIN"; then :
6192 # Let the user override the test.
6193 else
6194 if test -n "$ac_tool_prefix"; then
6195 for ac_prog in dumpbin "link -dump"
6196 do
6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if test -n "$DUMPBIN"; then
6205 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 DUMPBIN=$ac_cv_prog_DUMPBIN
6225 if test -n "$DUMPBIN"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6227 $as_echo "$DUMPBIN" >&6; }
6228 else
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6231 fi
6232
6233
6234 test -n "$DUMPBIN" && break
6235 done
6236 fi
6237 if test -z "$DUMPBIN"; then
6238 ac_ct_DUMPBIN=$DUMPBIN
6239 for ac_prog in dumpbin "link -dump"
6240 do
6241 # Extract the first word of "$ac_prog", so it can be a program name with args.
6242 set dummy $ac_prog; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -n "$ac_ct_DUMPBIN"; then
6249 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6269 if test -n "$ac_ct_DUMPBIN"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6271 $as_echo "$ac_ct_DUMPBIN" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277
6278 test -n "$ac_ct_DUMPBIN" && break
6279 done
6280
6281 if test "x$ac_ct_DUMPBIN" = x; then
6282 DUMPBIN=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 DUMPBIN=$ac_ct_DUMPBIN
6291 fi
6292 fi
6293
6294 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6295 *COFF*)
6296 DUMPBIN="$DUMPBIN -symbols"
6297 ;;
6298 *)
6299 DUMPBIN=:
6300 ;;
6301 esac
6302 fi
6303
6304 if test "$DUMPBIN" != ":"; then
6305 NM="$DUMPBIN"
6306 fi
6307 fi
6308 test -z "$NM" && NM=nm
6309
6310
6311
6312
6313
6314
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6316 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6317 if test "${lt_cv_nm_interface+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 lt_cv_nm_interface="BSD nm"
6321 echo "int some_variable = 0;" > conftest.$ac_ext
6322 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6323 (eval "$ac_compile" 2>conftest.err)
6324 cat conftest.err >&5
6325 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6326 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6327 cat conftest.err >&5
6328 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6329 cat conftest.out >&5
6330 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6331 lt_cv_nm_interface="MS dumpbin"
6332 fi
6333 rm -f conftest*
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6336 $as_echo "$lt_cv_nm_interface" >&6; }
6337
6338 # find the maximum length of command line arguments
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6340 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6341 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 i=0
6345 teststring="ABCD"
6346
6347 case $build_os in
6348 msdosdjgpp*)
6349 # On DJGPP, this test can blow up pretty badly due to problems in libc
6350 # (any single argument exceeding 2000 bytes causes a buffer overrun
6351 # during glob expansion). Even if it were fixed, the result of this
6352 # check would be larger than it should be.
6353 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6354 ;;
6355
6356 gnu*)
6357 # Under GNU Hurd, this test is not required because there is
6358 # no limit to the length of command line arguments.
6359 # Libtool will interpret -1 as no limit whatsoever
6360 lt_cv_sys_max_cmd_len=-1;
6361 ;;
6362
6363 cygwin* | mingw* | cegcc*)
6364 # On Win9x/ME, this test blows up -- it succeeds, but takes
6365 # about 5 minutes as the teststring grows exponentially.
6366 # Worse, since 9x/ME are not pre-emptively multitasking,
6367 # you end up with a "frozen" computer, even though with patience
6368 # the test eventually succeeds (with a max line length of 256k).
6369 # Instead, let's just punt: use the minimum linelength reported by
6370 # all of the supported platforms: 8192 (on NT/2K/XP).
6371 lt_cv_sys_max_cmd_len=8192;
6372 ;;
6373
6374 mint*)
6375 # On MiNT this can take a long time and run out of memory.
6376 lt_cv_sys_max_cmd_len=8192;
6377 ;;
6378
6379 amigaos*)
6380 # On AmigaOS with pdksh, this test takes hours, literally.
6381 # So we just punt and use a minimum line length of 8192.
6382 lt_cv_sys_max_cmd_len=8192;
6383 ;;
6384
6385 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6386 # This has been around since 386BSD, at least. Likely further.
6387 if test -x /sbin/sysctl; then
6388 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6389 elif test -x /usr/sbin/sysctl; then
6390 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6391 else
6392 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6393 fi
6394 # And add a safety zone
6395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6397 ;;
6398
6399 interix*)
6400 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6401 lt_cv_sys_max_cmd_len=196608
6402 ;;
6403
6404 osf*)
6405 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6406 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6407 # nice to cause kernel panics so lets avoid the loop below.
6408 # First set a reasonable default.
6409 lt_cv_sys_max_cmd_len=16384
6410 #
6411 if test -x /sbin/sysconfig; then
6412 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6413 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6414 esac
6415 fi
6416 ;;
6417 sco3.2v5*)
6418 lt_cv_sys_max_cmd_len=102400
6419 ;;
6420 sysv5* | sco5v6* | sysv4.2uw2*)
6421 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6422 if test -n "$kargmax"; then
6423 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6424 else
6425 lt_cv_sys_max_cmd_len=32768
6426 fi
6427 ;;
6428 *)
6429 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6430 if test -n "$lt_cv_sys_max_cmd_len"; then
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6433 else
6434 # Make teststring a little bigger before we do anything with it.
6435 # a 1K string should be a reasonable start.
6436 for i in 1 2 3 4 5 6 7 8 ; do
6437 teststring=$teststring$teststring
6438 done
6439 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6440 # If test is not a shell built-in, we'll probably end up computing a
6441 # maximum length that is only half of the actual maximum length, but
6442 # we can't tell.
6443 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6444 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6445 test $i != 17 # 1/2 MB should be enough
6446 do
6447 i=`expr $i + 1`
6448 teststring=$teststring$teststring
6449 done
6450 # Only check the string length outside the loop.
6451 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6452 teststring=
6453 # Add a significant safety factor because C++ compilers can tack on
6454 # massive amounts of additional arguments before passing them to the
6455 # linker. It appears as though 1/2 is a usable value.
6456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6457 fi
6458 ;;
6459 esac
6460
6461 fi
6462
6463 if test -n $lt_cv_sys_max_cmd_len ; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6465 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6466 else
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6468 $as_echo "none" >&6; }
6469 fi
6470 max_cmd_len=$lt_cv_sys_max_cmd_len
6471
6472
6473
6474
6475
6476
6477 : ${CP="cp -f"}
6478 : ${MV="mv -f"}
6479 : ${RM="rm -f"}
6480
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6482 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6483 # Try some XSI features
6484 xsi_shell=no
6485 ( _lt_dummy="a/b/c"
6486 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6487 = c,a/b,, \
6488 && eval 'test $(( 1 + 1 )) -eq 2 \
6489 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6490 && xsi_shell=yes
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6492 $as_echo "$xsi_shell" >&6; }
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6496 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6497 lt_shell_append=no
6498 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6499 >/dev/null 2>&1 \
6500 && lt_shell_append=yes
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6502 $as_echo "$lt_shell_append" >&6; }
6503
6504
6505 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6506 lt_unset=unset
6507 else
6508 lt_unset=false
6509 fi
6510
6511
6512
6513
6514
6515 # test EBCDIC or ASCII
6516 case `echo X|tr X '\101'` in
6517 A) # ASCII based system
6518 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6519 lt_SP2NL='tr \040 \012'
6520 lt_NL2SP='tr \015\012 \040\040'
6521 ;;
6522 *) # EBCDIC based system
6523 lt_SP2NL='tr \100 \n'
6524 lt_NL2SP='tr \r\n \100\100'
6525 ;;
6526 esac
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6537 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6538 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 lt_cv_ld_reload_flag='-r'
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6544 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6545 reload_flag=$lt_cv_ld_reload_flag
6546 case $reload_flag in
6547 "" | " "*) ;;
6548 *) reload_flag=" $reload_flag" ;;
6549 esac
6550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6551 case $host_os in
6552 darwin*)
6553 if test "$GCC" = yes; then
6554 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6555 else
6556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6557 fi
6558 ;;
6559 esac
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$OBJDUMP"; then
6578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 OBJDUMP=$ac_cv_prog_OBJDUMP
6598 if test -n "$OBJDUMP"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6600 $as_echo "$OBJDUMP" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606
6607 fi
6608 if test -z "$ac_cv_prog_OBJDUMP"; then
6609 ac_ct_OBJDUMP=$OBJDUMP
6610 # Extract the first word of "objdump", so it can be a program name with args.
6611 set dummy objdump; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$ac_ct_OBJDUMP"; then
6618 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6638 if test -n "$ac_ct_OBJDUMP"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6640 $as_echo "$ac_ct_OBJDUMP" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646 if test "x$ac_ct_OBJDUMP" = x; then
6647 OBJDUMP="false"
6648 else
6649 case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653 ac_tool_warned=yes ;;
6654 esac
6655 OBJDUMP=$ac_ct_OBJDUMP
6656 fi
6657 else
6658 OBJDUMP="$ac_cv_prog_OBJDUMP"
6659 fi
6660
6661 test -z "$OBJDUMP" && OBJDUMP=objdump
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6672 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6673 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 lt_cv_file_magic_cmd='$MAGIC_CMD'
6677 lt_cv_file_magic_test_file=
6678 lt_cv_deplibs_check_method='unknown'
6679 # Need to set the preceding variable on all platforms that support
6680 # interlibrary dependencies.
6681 # 'none' -- dependencies not supported.
6682 # `unknown' -- same as none, but documents that we really don't know.
6683 # 'pass_all' -- all dependencies passed with no checks.
6684 # 'test_compile' -- check by making test program.
6685 # 'file_magic [[regex]]' -- check by looking for files in library path
6686 # which responds to the $file_magic_cmd with a given extended regex.
6687 # If you have `file' or equivalent on your system and you're not sure
6688 # whether `pass_all' will *always* work, you probably want this one.
6689
6690 case $host_os in
6691 aix[4-9]*)
6692 lt_cv_deplibs_check_method=pass_all
6693 ;;
6694
6695 beos*)
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
6699 bsdi[45]*)
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6701 lt_cv_file_magic_cmd='/usr/bin/file -L'
6702 lt_cv_file_magic_test_file=/shlib/libc.so
6703 ;;
6704
6705 cygwin*)
6706 # func_win32_libid is a shell function defined in ltmain.sh
6707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6708 lt_cv_file_magic_cmd='func_win32_libid'
6709 ;;
6710
6711 mingw* | pw32*)
6712 # Base MSYS/MinGW do not provide the 'file' command needed by
6713 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6714 # unless we find 'file', for example because we are cross-compiling.
6715 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6716 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6718 lt_cv_file_magic_cmd='func_win32_libid'
6719 else
6720 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6721 lt_cv_file_magic_cmd='$OBJDUMP -f'
6722 fi
6723 ;;
6724
6725 cegcc*)
6726 # use the weaker test based on 'objdump'. See mingw*.
6727 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6728 lt_cv_file_magic_cmd='$OBJDUMP -f'
6729 ;;
6730
6731 darwin* | rhapsody*)
6732 lt_cv_deplibs_check_method=pass_all
6733 ;;
6734
6735 freebsd* | dragonfly*)
6736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6737 case $host_cpu in
6738 i*86 )
6739 # Not sure whether the presence of OpenBSD here was a mistake.
6740 # Let's accept both of them until this is cleared up.
6741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6742 lt_cv_file_magic_cmd=/usr/bin/file
6743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6744 ;;
6745 esac
6746 else
6747 lt_cv_deplibs_check_method=pass_all
6748 fi
6749 ;;
6750
6751 gnu*)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754
6755 haiku*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758
6759 hpux10.20* | hpux11*)
6760 lt_cv_file_magic_cmd=/usr/bin/file
6761 case $host_cpu in
6762 ia64*)
6763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6764 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6765 ;;
6766 hppa*64*)
6767 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]'
6768 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6769 ;;
6770 *)
6771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6772 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6773 ;;
6774 esac
6775 ;;
6776
6777 interix[3-9]*)
6778 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6780 ;;
6781
6782 irix5* | irix6* | nonstopux*)
6783 case $LD in
6784 *-32|*"-32 ") libmagic=32-bit;;
6785 *-n32|*"-n32 ") libmagic=N32;;
6786 *-64|*"-64 ") libmagic=64-bit;;
6787 *) libmagic=never-match;;
6788 esac
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791
6792 # This must be Linux ELF.
6793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6794 lt_cv_deplibs_check_method=pass_all
6795 ;;
6796
6797 netbsd*)
6798 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6800 else
6801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6802 fi
6803 ;;
6804
6805 newos6*)
6806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6807 lt_cv_file_magic_cmd=/usr/bin/file
6808 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6809 ;;
6810
6811 *nto* | *qnx*)
6812 lt_cv_deplibs_check_method=pass_all
6813 ;;
6814
6815 openbsd*)
6816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6818 else
6819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6820 fi
6821 ;;
6822
6823 osf3* | osf4* | osf5*)
6824 lt_cv_deplibs_check_method=pass_all
6825 ;;
6826
6827 rdos*)
6828 lt_cv_deplibs_check_method=pass_all
6829 ;;
6830
6831 solaris*)
6832 lt_cv_deplibs_check_method=pass_all
6833 ;;
6834
6835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6836 lt_cv_deplibs_check_method=pass_all
6837 ;;
6838
6839 sysv4 | sysv4.3*)
6840 case $host_vendor in
6841 motorola)
6842 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]'
6843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6844 ;;
6845 ncr)
6846 lt_cv_deplibs_check_method=pass_all
6847 ;;
6848 sequent)
6849 lt_cv_file_magic_cmd='/bin/file'
6850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6851 ;;
6852 sni)
6853 lt_cv_file_magic_cmd='/bin/file'
6854 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6855 lt_cv_file_magic_test_file=/lib/libc.so
6856 ;;
6857 siemens)
6858 lt_cv_deplibs_check_method=pass_all
6859 ;;
6860 pc)
6861 lt_cv_deplibs_check_method=pass_all
6862 ;;
6863 esac
6864 ;;
6865
6866 tpf*)
6867 lt_cv_deplibs_check_method=pass_all
6868 ;;
6869 esac
6870
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6873 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6874 file_magic_cmd=$lt_cv_file_magic_cmd
6875 deplibs_check_method=$lt_cv_deplibs_check_method
6876 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}ar; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_AR+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$AR"; then
6898 ac_cv_prog_AR="$AR" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_AR="${ac_tool_prefix}ar"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 AR=$ac_cv_prog_AR
6918 if test -n "$AR"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6920 $as_echo "$AR" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926
6927 fi
6928 if test -z "$ac_cv_prog_AR"; then
6929 ac_ct_AR=$AR
6930 # Extract the first word of "ar", so it can be a program name with args.
6931 set dummy ar; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_AR"; then
6938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_prog_ac_ct_AR="ar"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6958 if test -n "$ac_ct_AR"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6960 $as_echo "$ac_ct_AR" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966 if test "x$ac_ct_AR" = x; then
6967 AR="false"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 AR=$ac_ct_AR
6976 fi
6977 else
6978 AR="$ac_cv_prog_AR"
6979 fi
6980
6981 test -z "$AR" && AR=ar
6982 test -z "$AR_FLAGS" && AR_FLAGS=cru
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}strip; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_STRIP+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$STRIP"; then
7003 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 STRIP=$ac_cv_prog_STRIP
7023 if test -n "$STRIP"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7025 $as_echo "$STRIP" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 fi
7033 if test -z "$ac_cv_prog_STRIP"; then
7034 ac_ct_STRIP=$STRIP
7035 # Extract the first word of "strip", so it can be a program name with args.
7036 set dummy strip; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$ac_ct_STRIP"; then
7043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_prog_ac_ct_STRIP="strip"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7063 if test -n "$ac_ct_STRIP"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7065 $as_echo "$ac_ct_STRIP" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071 if test "x$ac_ct_STRIP" = x; then
7072 STRIP=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 STRIP=$ac_ct_STRIP
7081 fi
7082 else
7083 STRIP="$ac_cv_prog_STRIP"
7084 fi
7085
7086 test -z "$STRIP" && STRIP=:
7087
7088
7089
7090
7091
7092
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7124 $as_echo "$RANLIB" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7164 $as_echo "$ac_ct_RANLIB" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_RANLIB" = x; then
7171 RANLIB=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 RANLIB=$ac_ct_RANLIB
7180 fi
7181 else
7182 RANLIB="$ac_cv_prog_RANLIB"
7183 fi
7184
7185 test -z "$RANLIB" && RANLIB=:
7186
7187
7188
7189
7190
7191
7192 # Determine commands to create old-style static archives.
7193 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7194 old_postinstall_cmds='chmod 644 $oldlib'
7195 old_postuninstall_cmds=
7196
7197 if test -n "$RANLIB"; then
7198 case $host_os in
7199 openbsd*)
7200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7201 ;;
7202 *)
7203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7204 ;;
7205 esac
7206 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7207 fi
7208
7209 case $host_os in
7210 darwin*)
7211 lock_old_archive_extraction=yes ;;
7212 *)
7213 lock_old_archive_extraction=no ;;
7214 esac
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254 # If no C compiler was specified, use CC.
7255 LTCC=${LTCC-"$CC"}
7256
7257 # If no C compiler flags were specified, use CFLAGS.
7258 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7259
7260 # Allow CC to be a program name with arguments.
7261 compiler=$CC
7262
7263
7264 # Check for command to grab the raw symbol name followed by C symbol from nm.
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7266 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7267 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270
7271 # These are sane defaults that work on at least a few old systems.
7272 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7273
7274 # Character class describing NM global symbol codes.
7275 symcode='[BCDEGRST]'
7276
7277 # Regexp to match symbols that can be accessed directly from C.
7278 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7279
7280 # Define system-specific variables.
7281 case $host_os in
7282 aix*)
7283 symcode='[BCDT]'
7284 ;;
7285 cygwin* | mingw* | pw32* | cegcc*)
7286 symcode='[ABCDGISTW]'
7287 ;;
7288 hpux*)
7289 if test "$host_cpu" = ia64; then
7290 symcode='[ABCDEGRST]'
7291 fi
7292 ;;
7293 irix* | nonstopux*)
7294 symcode='[BCDEGRST]'
7295 ;;
7296 osf*)
7297 symcode='[BCDEGQRST]'
7298 ;;
7299 solaris*)
7300 symcode='[BDRT]'
7301 ;;
7302 sco3.2v5*)
7303 symcode='[DT]'
7304 ;;
7305 sysv4.2uw2*)
7306 symcode='[DT]'
7307 ;;
7308 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7309 symcode='[ABDT]'
7310 ;;
7311 sysv4)
7312 symcode='[DFNSTU]'
7313 ;;
7314 esac
7315
7316 # If we're using GNU nm, then use its standard symbol codes.
7317 case `$NM -V 2>&1` in
7318 *GNU* | *'with BFD'*)
7319 symcode='[ABCDGIRSTW]' ;;
7320 esac
7321
7322 # Transform an extracted symbol line into a proper C declaration.
7323 # Some systems (esp. on ia64) link data and code symbols differently,
7324 # so use this general approach.
7325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7326
7327 # Transform an extracted symbol line into symbol name and symbol address
7328 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7329 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7330
7331 # Handle CRLF in mingw tool chain
7332 opt_cr=
7333 case $build_os in
7334 mingw*)
7335 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7336 ;;
7337 esac
7338
7339 # Try without a prefix underscore, then with it.
7340 for ac_symprfx in "" "_"; do
7341
7342 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7343 symxfrm="\\1 $ac_symprfx\\2 \\2"
7344
7345 # Write the raw and C identifiers.
7346 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7347 # Fake it for dumpbin and say T for any non-static function
7348 # and D for any global variable.
7349 # Also find C++ and __fastcall symbols from MSVC++,
7350 # which start with @ or ?.
7351 lt_cv_sys_global_symbol_pipe="$AWK '"\
7352 " {last_section=section; section=\$ 3};"\
7353 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7354 " \$ 0!~/External *\|/{next};"\
7355 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7356 " {if(hide[section]) next};"\
7357 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7358 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7359 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7360 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7361 " ' prfx=^$ac_symprfx"
7362 else
7363 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7364 fi
7365
7366 # Check to see that the pipe works correctly.
7367 pipe_works=no
7368
7369 rm -f conftest*
7370 cat > conftest.$ac_ext <<_LT_EOF
7371 #ifdef __cplusplus
7372 extern "C" {
7373 #endif
7374 char nm_test_var;
7375 void nm_test_func(void);
7376 void nm_test_func(void){}
7377 #ifdef __cplusplus
7378 }
7379 #endif
7380 int main(){nm_test_var='a';nm_test_func();return(0);}
7381 _LT_EOF
7382
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 # Now try to grab the symbols.
7389 nlist=conftest.nm
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7391 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7392 ac_status=$?
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; } && test -s "$nlist"; then
7395 # Try sorting and uniquifying the output.
7396 if sort "$nlist" | uniq > "$nlist"T; then
7397 mv -f "$nlist"T "$nlist"
7398 else
7399 rm -f "$nlist"T
7400 fi
7401
7402 # Make sure that we snagged all the symbols we need.
7403 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7404 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7405 cat <<_LT_EOF > conftest.$ac_ext
7406 #ifdef __cplusplus
7407 extern "C" {
7408 #endif
7409
7410 _LT_EOF
7411 # Now generate the symbol file.
7412 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7413
7414 cat <<_LT_EOF >> conftest.$ac_ext
7415
7416 /* The mapping between symbol names and symbols. */
7417 const struct {
7418 const char *name;
7419 void *address;
7420 }
7421 lt__PROGRAM__LTX_preloaded_symbols[] =
7422 {
7423 { "@PROGRAM@", (void *) 0 },
7424 _LT_EOF
7425 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7426 cat <<\_LT_EOF >> conftest.$ac_ext
7427 {0, (void *) 0}
7428 };
7429
7430 /* This works around a problem in FreeBSD linker */
7431 #ifdef FREEBSD_WORKAROUND
7432 static const void *lt_preloaded_setup() {
7433 return lt__PROGRAM__LTX_preloaded_symbols;
7434 }
7435 #endif
7436
7437 #ifdef __cplusplus
7438 }
7439 #endif
7440 _LT_EOF
7441 # Now try linking the two files.
7442 mv conftest.$ac_objext conftstm.$ac_objext
7443 lt_save_LIBS="$LIBS"
7444 lt_save_CFLAGS="$CFLAGS"
7445 LIBS="conftstm.$ac_objext"
7446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7448 (eval $ac_link) 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7452 pipe_works=yes
7453 fi
7454 LIBS="$lt_save_LIBS"
7455 CFLAGS="$lt_save_CFLAGS"
7456 else
7457 echo "cannot find nm_test_func in $nlist" >&5
7458 fi
7459 else
7460 echo "cannot find nm_test_var in $nlist" >&5
7461 fi
7462 else
7463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7464 fi
7465 else
7466 echo "$progname: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7468 fi
7469 rm -rf conftest* conftst*
7470
7471 # Do not use the global_symbol_pipe unless it works.
7472 if test "$pipe_works" = yes; then
7473 break
7474 else
7475 lt_cv_sys_global_symbol_pipe=
7476 fi
7477 done
7478
7479 fi
7480
7481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7482 lt_cv_sys_global_symbol_to_cdecl=
7483 fi
7484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7486 $as_echo "failed" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7489 $as_echo "ok" >&6; }
7490 fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 # Check whether --enable-libtool-lock was given.
7514 if test "${enable_libtool_lock+set}" = set; then :
7515 enableval=$enable_libtool_lock;
7516 fi
7517
7518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7519
7520 # Some flags need to be propagated to the compiler or linker for good
7521 # libtool support.
7522 case $host in
7523 ia64-*-hpux*)
7524 # Find out which ABI we are using.
7525 echo 'int i;' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7528 ac_status=$?
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *ELF-32*)
7533 HPUX_IA64_MODE="32"
7534 ;;
7535 *ELF-64*)
7536 HPUX_IA64_MODE="64"
7537 ;;
7538 esac
7539 fi
7540 rm -rf conftest*
7541 ;;
7542 *-*-irix6*)
7543 # Find out which ABI we are using.
7544 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546 (eval $ac_compile) 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 if test "$lt_cv_prog_gnu_ld" = yes; then
7551 case `/usr/bin/file conftest.$ac_objext` in
7552 *32-bit*)
7553 LD="${LD-ld} -melf32bsmip"
7554 ;;
7555 *N32*)
7556 LD="${LD-ld} -melf32bmipn32"
7557 ;;
7558 *64-bit*)
7559 LD="${LD-ld} -melf64bmip"
7560 ;;
7561 esac
7562 else
7563 case `/usr/bin/file conftest.$ac_objext` in
7564 *32-bit*)
7565 LD="${LD-ld} -32"
7566 ;;
7567 *N32*)
7568 LD="${LD-ld} -n32"
7569 ;;
7570 *64-bit*)
7571 LD="${LD-ld} -64"
7572 ;;
7573 esac
7574 fi
7575 fi
7576 rm -rf conftest*
7577 ;;
7578
7579 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7580 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7581 # Find out which ABI we are using.
7582 echo 'int i;' > conftest.$ac_ext
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7584 (eval $ac_compile) 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 case `/usr/bin/file conftest.o` in
7589 *32-bit*)
7590 case $host in
7591 x86_64-*kfreebsd*-gnu)
7592 LD="${LD-ld} -m elf_i386_fbsd"
7593 ;;
7594 x86_64-*linux*)
7595 case `/usr/bin/file conftest.o` in
7596 *x86-64*)
7597 LD="${LD-ld} -m elf32_x86_64"
7598 ;;
7599 *)
7600 LD="${LD-ld} -m elf_i386"
7601 ;;
7602 esac
7603 ;;
7604 ppc64-*linux*|powerpc64-*linux*)
7605 LD="${LD-ld} -m elf32ppclinux"
7606 ;;
7607 s390x-*linux*)
7608 LD="${LD-ld} -m elf_s390"
7609 ;;
7610 sparc64-*linux*)
7611 LD="${LD-ld} -m elf32_sparc"
7612 ;;
7613 esac
7614 ;;
7615 *64-bit*)
7616 case $host in
7617 x86_64-*kfreebsd*-gnu)
7618 LD="${LD-ld} -m elf_x86_64_fbsd"
7619 ;;
7620 x86_64-*linux*)
7621 LD="${LD-ld} -m elf_x86_64"
7622 ;;
7623 ppc*-*linux*|powerpc*-*linux*)
7624 LD="${LD-ld} -m elf64ppc"
7625 ;;
7626 s390*-*linux*|s390*-*tpf*)
7627 LD="${LD-ld} -m elf64_s390"
7628 ;;
7629 sparc*-*linux*)
7630 LD="${LD-ld} -m elf64_sparc"
7631 ;;
7632 esac
7633 ;;
7634 esac
7635 fi
7636 rm -rf conftest*
7637 ;;
7638
7639 *-*-sco3.2v5*)
7640 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7641 SAVE_CFLAGS="$CFLAGS"
7642 CFLAGS="$CFLAGS -belf"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7644 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7645 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 ac_ext=c
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7653
7654 if test x$gcc_no_link = xyes; then
7655 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7656 fi
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659
7660 int
7661 main ()
7662 {
7663
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 if ac_fn_c_try_link "$LINENO"; then :
7669 lt_cv_cc_needs_belf=yes
7670 else
7671 lt_cv_cc_needs_belf=no
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext \
7674 conftest$ac_exeext conftest.$ac_ext
7675 ac_ext=c
7676 ac_cpp='$CPP $CPPFLAGS'
7677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7683 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7684 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7685 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7686 CFLAGS="$SAVE_CFLAGS"
7687 fi
7688 ;;
7689 sparc*-*solaris*)
7690 # Find out which ABI we are using.
7691 echo 'int i;' > conftest.$ac_ext
7692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693 (eval $ac_compile) 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }; then
7697 case `/usr/bin/file conftest.o` in
7698 *64-bit*)
7699 case $lt_cv_prog_gnu_ld in
7700 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7701 *)
7702 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7703 LD="${LD-ld} -64"
7704 fi
7705 ;;
7706 esac
7707 ;;
7708 esac
7709 fi
7710 rm -rf conftest*
7711 ;;
7712 esac
7713
7714 need_locks="$enable_libtool_lock"
7715
7716
7717 case $host_os in
7718 rhapsody* | darwin*)
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 if test -n "$DSYMUTIL"; then
7728 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7748 if test -n "$DSYMUTIL"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7750 $as_echo "$DSYMUTIL" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757 fi
7758 if test -z "$ac_cv_prog_DSYMUTIL"; then
7759 ac_ct_DSYMUTIL=$DSYMUTIL
7760 # Extract the first word of "dsymutil", so it can be a program name with args.
7761 set dummy dsymutil; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 if test -n "$ac_ct_DSYMUTIL"; then
7768 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7788 if test -n "$ac_ct_DSYMUTIL"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7790 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7791 else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796 if test "x$ac_ct_DSYMUTIL" = x; then
7797 DSYMUTIL=":"
7798 else
7799 case $cross_compiling:$ac_tool_warned in
7800 yes:)
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803 ac_tool_warned=yes ;;
7804 esac
7805 DSYMUTIL=$ac_ct_DSYMUTIL
7806 fi
7807 else
7808 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7809 fi
7810
7811 if test -n "$ac_tool_prefix"; then
7812 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 if test -n "$NMEDIT"; then
7820 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7832 fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 NMEDIT=$ac_cv_prog_NMEDIT
7840 if test -n "$NMEDIT"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7842 $as_echo "$NMEDIT" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849 fi
7850 if test -z "$ac_cv_prog_NMEDIT"; then
7851 ac_ct_NMEDIT=$NMEDIT
7852 # Extract the first word of "nmedit", so it can be a program name with args.
7853 set dummy nmedit; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$ac_ct_NMEDIT"; then
7860 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7880 if test -n "$ac_ct_NMEDIT"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7882 $as_echo "$ac_ct_NMEDIT" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888 if test "x$ac_ct_NMEDIT" = x; then
7889 NMEDIT=":"
7890 else
7891 case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897 NMEDIT=$ac_ct_NMEDIT
7898 fi
7899 else
7900 NMEDIT="$ac_cv_prog_NMEDIT"
7901 fi
7902
7903 if test -n "$ac_tool_prefix"; then
7904 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_LIPO+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 if test -n "$LIPO"; then
7912 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7924 fi
7925 done
7926 done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 LIPO=$ac_cv_prog_LIPO
7932 if test -n "$LIPO"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7934 $as_echo "$LIPO" >&6; }
7935 else
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941 fi
7942 if test -z "$ac_cv_prog_LIPO"; then
7943 ac_ct_LIPO=$LIPO
7944 # Extract the first word of "lipo", so it can be a program name with args.
7945 set dummy lipo; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 if test -n "$ac_ct_LIPO"; then
7952 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_prog_ac_ct_LIPO="lipo"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7972 if test -n "$ac_ct_LIPO"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7974 $as_echo "$ac_ct_LIPO" >&6; }
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980 if test "x$ac_ct_LIPO" = x; then
7981 LIPO=":"
7982 else
7983 case $cross_compiling:$ac_tool_warned in
7984 yes:)
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987 ac_tool_warned=yes ;;
7988 esac
7989 LIPO=$ac_ct_LIPO
7990 fi
7991 else
7992 LIPO="$ac_cv_prog_LIPO"
7993 fi
7994
7995 if test -n "$ac_tool_prefix"; then
7996 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7997 set dummy ${ac_tool_prefix}otool; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 if test -n "$OTOOL"; then
8004 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021 fi
8022 fi
8023 OTOOL=$ac_cv_prog_OTOOL
8024 if test -n "$OTOOL"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8026 $as_echo "$OTOOL" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033 fi
8034 if test -z "$ac_cv_prog_OTOOL"; then
8035 ac_ct_OTOOL=$OTOOL
8036 # Extract the first word of "otool", so it can be a program name with args.
8037 set dummy otool; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 if test -n "$ac_ct_OTOOL"; then
8044 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_prog_ac_ct_OTOOL="otool"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057 done
8058 done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8064 if test -n "$ac_ct_OTOOL"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8066 $as_echo "$ac_ct_OTOOL" >&6; }
8067 else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072 if test "x$ac_ct_OTOOL" = x; then
8073 OTOOL=":"
8074 else
8075 case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081 OTOOL=$ac_ct_OTOOL
8082 fi
8083 else
8084 OTOOL="$ac_cv_prog_OTOOL"
8085 fi
8086
8087 if test -n "$ac_tool_prefix"; then
8088 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8089 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$OTOOL64"; then
8096 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113 fi
8114 fi
8115 OTOOL64=$ac_cv_prog_OTOOL64
8116 if test -n "$OTOOL64"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8118 $as_echo "$OTOOL64" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8123
8124
8125 fi
8126 if test -z "$ac_cv_prog_OTOOL64"; then
8127 ac_ct_OTOOL64=$OTOOL64
8128 # Extract the first word of "otool64", so it can be a program name with args.
8129 set dummy otool64; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 if test -n "$ac_ct_OTOOL64"; then
8136 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_ac_ct_OTOOL64="otool64"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149 done
8150 done
8151 IFS=$as_save_IFS
8152
8153 fi
8154 fi
8155 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8156 if test -n "$ac_ct_OTOOL64"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8158 $as_echo "$ac_ct_OTOOL64" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 fi
8163
8164 if test "x$ac_ct_OTOOL64" = x; then
8165 OTOOL64=":"
8166 else
8167 case $cross_compiling:$ac_tool_warned in
8168 yes:)
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171 ac_tool_warned=yes ;;
8172 esac
8173 OTOOL64=$ac_ct_OTOOL64
8174 fi
8175 else
8176 OTOOL64="$ac_cv_prog_OTOOL64"
8177 fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8206 $as_echo_n "checking for -single_module linker flag... " >&6; }
8207 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 lt_cv_apple_cc_single_mod=no
8211 if test -z "${LT_MULTI_MODULE}"; then
8212 # By default we will add the -single_module flag. You can override
8213 # by either setting the environment variable LT_MULTI_MODULE
8214 # non-empty at configure time, or by adding -multi_module to the
8215 # link flags.
8216 rm -rf libconftest.dylib*
8217 echo "int foo(void){return 1;}" > conftest.c
8218 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8219 -dynamiclib -Wl,-single_module conftest.c" >&5
8220 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8221 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8222 _lt_result=$?
8223 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8224 lt_cv_apple_cc_single_mod=yes
8225 else
8226 cat conftest.err >&5
8227 fi
8228 rm -rf libconftest.dylib*
8229 rm -f conftest.*
8230 fi
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8233 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8235 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8236 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_ld_exported_symbols_list=no
8240 save_LDFLAGS=$LDFLAGS
8241 echo "_main" > conftest.sym
8242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8243 if test x$gcc_no_link = xyes; then
8244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8245 fi
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248
8249 int
8250 main ()
8251 {
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 lt_cv_ld_exported_symbols_list=yes
8259 else
8260 lt_cv_ld_exported_symbols_list=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LDFLAGS="$save_LDFLAGS"
8265
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8268 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8270 $as_echo_n "checking for -force_load linker flag... " >&6; }
8271 if test "${lt_cv_ld_force_load+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 lt_cv_ld_force_load=no
8275 cat > conftest.c << _LT_EOF
8276 int forced_loaded() { return 2;}
8277 _LT_EOF
8278 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8279 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8280 echo "$AR cru libconftest.a conftest.o" >&5
8281 $AR cru libconftest.a conftest.o 2>&5
8282 cat > conftest.c << _LT_EOF
8283 int main() { return 0;}
8284 _LT_EOF
8285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8287 _lt_result=$?
8288 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8289 lt_cv_ld_force_load=yes
8290 else
8291 cat conftest.err >&5
8292 fi
8293 rm -f conftest.err libconftest.a conftest conftest.c
8294 rm -rf conftest.dSYM
8295
8296 fi
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8298 $as_echo "$lt_cv_ld_force_load" >&6; }
8299 case $host_os in
8300 rhapsody* | darwin1.[012])
8301 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8302 darwin1.*)
8303 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8304 darwin*) # darwin 5.x on
8305 # if running on 10.5 or later, the deployment target defaults
8306 # to the OS version, if on x86, and 10.4, the deployment
8307 # target defaults to 10.4. Don't you love it?
8308 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8309 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8311 10.[012]*)
8312 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8313 10.*)
8314 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8315 esac
8316 ;;
8317 esac
8318 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8319 _lt_dar_single_mod='$single_module'
8320 fi
8321 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8322 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8323 else
8324 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8325 fi
8326 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8327 _lt_dsymutil='~$DSYMUTIL $lib || :'
8328 else
8329 _lt_dsymutil=
8330 fi
8331 ;;
8332 esac
8333
8334 for ac_header in dlfcn.h
8335 do :
8336 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8337 "
8338 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8339 cat >>confdefs.h <<_ACEOF
8340 #define HAVE_DLFCN_H 1
8341 _ACEOF
8342
8343 fi
8344
8345 done
8346
8347
8348
8349
8350
8351 # Set options
8352
8353
8354
8355 enable_dlopen=no
8356
8357
8358 enable_win32_dll=no
8359
8360
8361 # Check whether --enable-shared was given.
8362 if test "${enable_shared+set}" = set; then :
8363 enableval=$enable_shared; p=${PACKAGE-default}
8364 case $enableval in
8365 yes) enable_shared=yes ;;
8366 no) enable_shared=no ;;
8367 *)
8368 enable_shared=no
8369 # Look at the argument we got. We use all the common list separators.
8370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8371 for pkg in $enableval; do
8372 IFS="$lt_save_ifs"
8373 if test "X$pkg" = "X$p"; then
8374 enable_shared=yes
8375 fi
8376 done
8377 IFS="$lt_save_ifs"
8378 ;;
8379 esac
8380 else
8381 enable_shared=yes
8382 fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394 # Check whether --with-pic was given.
8395 if test "${with_pic+set}" = set; then :
8396 withval=$with_pic; pic_mode="$withval"
8397 else
8398 pic_mode=default
8399 fi
8400
8401
8402 test -z "$pic_mode" && pic_mode=default
8403
8404
8405
8406
8407
8408
8409
8410 # Check whether --enable-fast-install was given.
8411 if test "${enable_fast_install+set}" = set; then :
8412 enableval=$enable_fast_install; p=${PACKAGE-default}
8413 case $enableval in
8414 yes) enable_fast_install=yes ;;
8415 no) enable_fast_install=no ;;
8416 *)
8417 enable_fast_install=no
8418 # Look at the argument we got. We use all the common list separators.
8419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8420 for pkg in $enableval; do
8421 IFS="$lt_save_ifs"
8422 if test "X$pkg" = "X$p"; then
8423 enable_fast_install=yes
8424 fi
8425 done
8426 IFS="$lt_save_ifs"
8427 ;;
8428 esac
8429 else
8430 enable_fast_install=yes
8431 fi
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443 # This can be used to rebuild libtool when needed
8444 LIBTOOL_DEPS="$ltmain"
8445
8446 # Always use our own libtool.
8447 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474 test -z "$LN_S" && LN_S="ln -s"
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 if test -n "${ZSH_VERSION+set}" ; then
8490 setopt NO_GLOB_SUBST
8491 fi
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8494 $as_echo_n "checking for objdir... " >&6; }
8495 if test "${lt_cv_objdir+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 rm -f .libs 2>/dev/null
8499 mkdir .libs 2>/dev/null
8500 if test -d .libs; then
8501 lt_cv_objdir=.libs
8502 else
8503 # MS-DOS does not allow filenames that begin with a dot.
8504 lt_cv_objdir=_libs
8505 fi
8506 rmdir .libs 2>/dev/null
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8509 $as_echo "$lt_cv_objdir" >&6; }
8510 objdir=$lt_cv_objdir
8511
8512
8513
8514
8515
8516 cat >>confdefs.h <<_ACEOF
8517 #define LT_OBJDIR "$lt_cv_objdir/"
8518 _ACEOF
8519
8520
8521
8522
8523 case $host_os in
8524 aix3*)
8525 # AIX sometimes has problems with the GCC collect2 program. For some
8526 # reason, if we set the COLLECT_NAMES environment variable, the problems
8527 # vanish in a puff of smoke.
8528 if test "X${COLLECT_NAMES+set}" != Xset; then
8529 COLLECT_NAMES=
8530 export COLLECT_NAMES
8531 fi
8532 ;;
8533 esac
8534
8535 # Global variables:
8536 ofile=libtool
8537 can_build_shared=yes
8538
8539 # All known linkers require a `.a' archive for static linking (except MSVC,
8540 # which needs '.lib').
8541 libext=a
8542
8543 with_gnu_ld="$lt_cv_prog_gnu_ld"
8544
8545 old_CC="$CC"
8546 old_CFLAGS="$CFLAGS"
8547
8548 # Set sane defaults for various variables
8549 test -z "$CC" && CC=cc
8550 test -z "$LTCC" && LTCC=$CC
8551 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8552 test -z "$LD" && LD=ld
8553 test -z "$ac_objext" && ac_objext=o
8554
8555 for cc_temp in $compiler""; do
8556 case $cc_temp in
8557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8559 \-*) ;;
8560 *) break;;
8561 esac
8562 done
8563 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8564
8565
8566 # Only perform the check for file, if the check method requires it
8567 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8568 case $deplibs_check_method in
8569 file_magic*)
8570 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8572 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8573 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 case $MAGIC_CMD in
8577 [\\/*] | ?:[\\/]*)
8578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8579 ;;
8580 *)
8581 lt_save_MAGIC_CMD="$MAGIC_CMD"
8582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8583 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8584 for ac_dir in $ac_dummy; do
8585 IFS="$lt_save_ifs"
8586 test -z "$ac_dir" && ac_dir=.
8587 if test -f $ac_dir/${ac_tool_prefix}file; then
8588 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8589 if test -n "$file_magic_test_file"; then
8590 case $deplibs_check_method in
8591 "file_magic "*)
8592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8595 $EGREP "$file_magic_regex" > /dev/null; then
8596 :
8597 else
8598 cat <<_LT_EOF 1>&2
8599
8600 *** Warning: the command libtool uses to detect shared libraries,
8601 *** $file_magic_cmd, produces output that libtool cannot recognize.
8602 *** The result is that libtool may fail to recognize shared libraries
8603 *** as such. This will affect the creation of libtool libraries that
8604 *** depend on shared libraries, but programs linked with such libtool
8605 *** libraries will work regardless of this problem. Nevertheless, you
8606 *** may want to report the problem to your system manager and/or to
8607 *** bug-libtool@gnu.org
8608
8609 _LT_EOF
8610 fi ;;
8611 esac
8612 fi
8613 break
8614 fi
8615 done
8616 IFS="$lt_save_ifs"
8617 MAGIC_CMD="$lt_save_MAGIC_CMD"
8618 ;;
8619 esac
8620 fi
8621
8622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8623 if test -n "$MAGIC_CMD"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8625 $as_echo "$MAGIC_CMD" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8629 fi
8630
8631
8632
8633
8634
8635 if test -z "$lt_cv_path_MAGIC_CMD"; then
8636 if test -n "$ac_tool_prefix"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8638 $as_echo_n "checking for file... " >&6; }
8639 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 case $MAGIC_CMD in
8643 [\\/*] | ?:[\\/]*)
8644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 ;;
8646 *)
8647 lt_save_MAGIC_CMD="$MAGIC_CMD"
8648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8650 for ac_dir in $ac_dummy; do
8651 IFS="$lt_save_ifs"
8652 test -z "$ac_dir" && ac_dir=.
8653 if test -f $ac_dir/file; then
8654 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8655 if test -n "$file_magic_test_file"; then
8656 case $deplibs_check_method in
8657 "file_magic "*)
8658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8661 $EGREP "$file_magic_regex" > /dev/null; then
8662 :
8663 else
8664 cat <<_LT_EOF 1>&2
8665
8666 *** Warning: the command libtool uses to detect shared libraries,
8667 *** $file_magic_cmd, produces output that libtool cannot recognize.
8668 *** The result is that libtool may fail to recognize shared libraries
8669 *** as such. This will affect the creation of libtool libraries that
8670 *** depend on shared libraries, but programs linked with such libtool
8671 *** libraries will work regardless of this problem. Nevertheless, you
8672 *** may want to report the problem to your system manager and/or to
8673 *** bug-libtool@gnu.org
8674
8675 _LT_EOF
8676 fi ;;
8677 esac
8678 fi
8679 break
8680 fi
8681 done
8682 IFS="$lt_save_ifs"
8683 MAGIC_CMD="$lt_save_MAGIC_CMD"
8684 ;;
8685 esac
8686 fi
8687
8688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8689 if test -n "$MAGIC_CMD"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8691 $as_echo "$MAGIC_CMD" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695 fi
8696
8697
8698 else
8699 MAGIC_CMD=:
8700 fi
8701 fi
8702
8703 fi
8704 ;;
8705 esac
8706
8707 # Use C for the default configuration in the libtool script
8708
8709 lt_save_CC="$CC"
8710 ac_ext=c
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716
8717 # Source file extension for C test sources.
8718 ac_ext=c
8719
8720 # Object file extension for compiled C test sources.
8721 objext=o
8722 objext=$objext
8723
8724 # Code to be used in simple compile tests
8725 lt_simple_compile_test_code="int some_variable = 0;"
8726
8727 # Code to be used in simple link tests
8728 lt_simple_link_test_code='int main(){return(0);}'
8729
8730
8731
8732
8733
8734
8735
8736 # If no C compiler was specified, use CC.
8737 LTCC=${LTCC-"$CC"}
8738
8739 # If no C compiler flags were specified, use CFLAGS.
8740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8741
8742 # Allow CC to be a program name with arguments.
8743 compiler=$CC
8744
8745 # Save the default compiler, since it gets overwritten when the other
8746 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8747 compiler_DEFAULT=$CC
8748
8749 # save warnings/boilerplate of simple test code
8750 ac_outfile=conftest.$ac_objext
8751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8753 _lt_compiler_boilerplate=`cat conftest.err`
8754 $RM conftest*
8755
8756 ac_outfile=conftest.$ac_objext
8757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8759 _lt_linker_boilerplate=`cat conftest.err`
8760 $RM -r conftest*
8761
8762
8763 ## CAVEAT EMPTOR:
8764 ## There is no encapsulation within the following macros, do not change
8765 ## the running order or otherwise move them around unless you know exactly
8766 ## what you are doing...
8767 if test -n "$compiler"; then
8768
8769 lt_prog_compiler_no_builtin_flag=
8770
8771 if test "$GCC" = yes; then
8772 case $cc_basename in
8773 nvcc*)
8774 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8775 *)
8776 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8777 esac
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8780 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 lt_cv_prog_compiler_rtti_exceptions=no
8785 ac_outfile=conftest.$ac_objext
8786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8787 lt_compiler_flag="-fno-rtti -fno-exceptions"
8788 # Insert the option either (1) after the last *FLAGS variable, or
8789 # (2) before a word containing "conftest.", or (3) at the end.
8790 # Note that $ac_compile itself does not contain backslashes and begins
8791 # with a dollar sign (not a hyphen), so the echo should work correctly.
8792 # The option is referenced via a variable to avoid confusing sed.
8793 lt_compile=`echo "$ac_compile" | $SED \
8794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8796 -e 's:$: $lt_compiler_flag:'`
8797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8798 (eval "$lt_compile" 2>conftest.err)
8799 ac_status=$?
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 if (exit $ac_status) && test -s "$ac_outfile"; then
8803 # The compiler can only warn and ignore the option if not recognized
8804 # So say no if there are warnings other than the usual output.
8805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8808 lt_cv_prog_compiler_rtti_exceptions=yes
8809 fi
8810 fi
8811 $RM conftest*
8812
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8815 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8816
8817 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8818 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8819 else
8820 :
8821 fi
8822
8823 fi
8824
8825
8826
8827
8828
8829
8830 lt_prog_compiler_wl=
8831 lt_prog_compiler_pic=
8832 lt_prog_compiler_static=
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8835 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8836
8837 if test "$GCC" = yes; then
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_static='-static'
8840
8841 case $host_os in
8842 aix*)
8843 # All AIX code is PIC.
8844 if test "$host_cpu" = ia64; then
8845 # AIX 5 now supports IA64 processor
8846 lt_prog_compiler_static='-Bstatic'
8847 fi
8848 ;;
8849
8850 amigaos*)
8851 case $host_cpu in
8852 powerpc)
8853 # see comment about AmigaOS4 .so support
8854 lt_prog_compiler_pic='-fPIC'
8855 ;;
8856 m68k)
8857 # FIXME: we need at least 68020 code to build shared libraries, but
8858 # adding the `-m68020' flag to GCC prevents building anything better,
8859 # like `-m68040'.
8860 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8861 ;;
8862 esac
8863 ;;
8864
8865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8866 # PIC is the default for these OSes.
8867 ;;
8868
8869 mingw* | cygwin* | pw32* | os2* | cegcc*)
8870 # This hack is so that the source file can tell whether it is being
8871 # built for inclusion in a dll (and should export symbols for example).
8872 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8873 # (--disable-auto-import) libraries
8874 lt_prog_compiler_pic='-DDLL_EXPORT'
8875 ;;
8876
8877 darwin* | rhapsody*)
8878 # PIC is the default on this platform
8879 # Common symbols not allowed in MH_DYLIB files
8880 lt_prog_compiler_pic='-fno-common'
8881 ;;
8882
8883 haiku*)
8884 # PIC is the default for Haiku.
8885 # The "-static" flag exists, but is broken.
8886 lt_prog_compiler_static=
8887 ;;
8888
8889 hpux*)
8890 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8891 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8892 # sets the default TLS model and affects inlining.
8893 case $host_cpu in
8894 hppa*64*)
8895 # +Z the default
8896 ;;
8897 *)
8898 lt_prog_compiler_pic='-fPIC'
8899 ;;
8900 esac
8901 ;;
8902
8903 interix[3-9]*)
8904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8905 # Instead, we relocate shared libraries at runtime.
8906 ;;
8907
8908 msdosdjgpp*)
8909 # Just because we use GCC doesn't mean we suddenly get shared libraries
8910 # on systems that don't support them.
8911 lt_prog_compiler_can_build_shared=no
8912 enable_shared=no
8913 ;;
8914
8915 *nto* | *qnx*)
8916 # QNX uses GNU C++, but need to define -shared option too, otherwise
8917 # it will coredump.
8918 lt_prog_compiler_pic='-fPIC -shared'
8919 ;;
8920
8921 sysv4*MP*)
8922 if test -d /usr/nec; then
8923 lt_prog_compiler_pic=-Kconform_pic
8924 fi
8925 ;;
8926
8927 *)
8928 lt_prog_compiler_pic='-fPIC'
8929 ;;
8930 esac
8931
8932 case $cc_basename in
8933 nvcc*) # Cuda Compiler Driver 2.2
8934 lt_prog_compiler_wl='-Xlinker '
8935 lt_prog_compiler_pic='-Xcompiler -fPIC'
8936 ;;
8937 esac
8938 else
8939 # PORTME Check for flag to pass linker flags through the system compiler.
8940 case $host_os in
8941 aix*)
8942 lt_prog_compiler_wl='-Wl,'
8943 if test "$host_cpu" = ia64; then
8944 # AIX 5 now supports IA64 processor
8945 lt_prog_compiler_static='-Bstatic'
8946 else
8947 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8948 fi
8949 ;;
8950
8951 mingw* | cygwin* | pw32* | os2* | cegcc*)
8952 # This hack is so that the source file can tell whether it is being
8953 # built for inclusion in a dll (and should export symbols for example).
8954 lt_prog_compiler_pic='-DDLL_EXPORT'
8955 ;;
8956
8957 hpux9* | hpux10* | hpux11*)
8958 lt_prog_compiler_wl='-Wl,'
8959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8960 # not for PA HP-UX.
8961 case $host_cpu in
8962 hppa*64*|ia64*)
8963 # +Z the default
8964 ;;
8965 *)
8966 lt_prog_compiler_pic='+Z'
8967 ;;
8968 esac
8969 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8970 lt_prog_compiler_static='${wl}-a ${wl}archive'
8971 ;;
8972
8973 irix5* | irix6* | nonstopux*)
8974 lt_prog_compiler_wl='-Wl,'
8975 # PIC (with -KPIC) is the default.
8976 lt_prog_compiler_static='-non_shared'
8977 ;;
8978
8979 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8980 case $cc_basename in
8981 # old Intel for x86_64 which still supported -KPIC.
8982 ecc*)
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_pic='-KPIC'
8985 lt_prog_compiler_static='-static'
8986 ;;
8987 # icc used to be incompatible with GCC.
8988 # ICC 10 doesn't accept -KPIC any more.
8989 icc* | ifort*)
8990 lt_prog_compiler_wl='-Wl,'
8991 lt_prog_compiler_pic='-fPIC'
8992 lt_prog_compiler_static='-static'
8993 ;;
8994 # Lahey Fortran 8.1.
8995 lf95*)
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='--shared'
8998 lt_prog_compiler_static='--static'
8999 ;;
9000 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9001 # Portland Group compilers (*not* the Pentium gcc compiler,
9002 # which looks to be a dead project)
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='-fpic'
9005 lt_prog_compiler_static='-Bstatic'
9006 ;;
9007 ccc*)
9008 lt_prog_compiler_wl='-Wl,'
9009 # All Alpha code is PIC.
9010 lt_prog_compiler_static='-non_shared'
9011 ;;
9012 xl* | bgxl* | bgf* | mpixl*)
9013 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_pic='-qpic'
9016 lt_prog_compiler_static='-qstaticlink'
9017 ;;
9018 *)
9019 case `$CC -V 2>&1 | sed 5q` in
9020 *Sun\ F* | *Sun*Fortran*)
9021 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 lt_prog_compiler_wl=''
9025 ;;
9026 *Sun\ C*)
9027 # Sun C 5.9
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 lt_prog_compiler_wl='-Wl,'
9031 ;;
9032 esac
9033 ;;
9034 esac
9035 ;;
9036
9037 newsos6)
9038 lt_prog_compiler_pic='-KPIC'
9039 lt_prog_compiler_static='-Bstatic'
9040 ;;
9041
9042 *nto* | *qnx*)
9043 # QNX uses GNU C++, but need to define -shared option too, otherwise
9044 # it will coredump.
9045 lt_prog_compiler_pic='-fPIC -shared'
9046 ;;
9047
9048 osf3* | osf4* | osf5*)
9049 lt_prog_compiler_wl='-Wl,'
9050 # All OSF/1 code is PIC.
9051 lt_prog_compiler_static='-non_shared'
9052 ;;
9053
9054 rdos*)
9055 lt_prog_compiler_static='-non_shared'
9056 ;;
9057
9058 solaris*)
9059 lt_prog_compiler_pic='-KPIC'
9060 lt_prog_compiler_static='-Bstatic'
9061 case $cc_basename in
9062 f77* | f90* | f95*)
9063 lt_prog_compiler_wl='-Qoption ld ';;
9064 *)
9065 lt_prog_compiler_wl='-Wl,';;
9066 esac
9067 ;;
9068
9069 sunos4*)
9070 lt_prog_compiler_wl='-Qoption ld '
9071 lt_prog_compiler_pic='-PIC'
9072 lt_prog_compiler_static='-Bstatic'
9073 ;;
9074
9075 sysv4 | sysv4.2uw2* | sysv4.3*)
9076 lt_prog_compiler_wl='-Wl,'
9077 lt_prog_compiler_pic='-KPIC'
9078 lt_prog_compiler_static='-Bstatic'
9079 ;;
9080
9081 sysv4*MP*)
9082 if test -d /usr/nec ;then
9083 lt_prog_compiler_pic='-Kconform_pic'
9084 lt_prog_compiler_static='-Bstatic'
9085 fi
9086 ;;
9087
9088 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9089 lt_prog_compiler_wl='-Wl,'
9090 lt_prog_compiler_pic='-KPIC'
9091 lt_prog_compiler_static='-Bstatic'
9092 ;;
9093
9094 unicos*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_can_build_shared=no
9097 ;;
9098
9099 uts4*)
9100 lt_prog_compiler_pic='-pic'
9101 lt_prog_compiler_static='-Bstatic'
9102 ;;
9103
9104 *)
9105 lt_prog_compiler_can_build_shared=no
9106 ;;
9107 esac
9108 fi
9109
9110 case $host_os in
9111 # For platforms which do not support PIC, -DPIC is meaningless:
9112 *djgpp*)
9113 lt_prog_compiler_pic=
9114 ;;
9115 *)
9116 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9117 ;;
9118 esac
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9120 $as_echo "$lt_prog_compiler_pic" >&6; }
9121
9122
9123
9124
9125
9126
9127 #
9128 # Check to make sure the PIC flag actually works.
9129 #
9130 if test -n "$lt_prog_compiler_pic"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9132 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9133 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 lt_cv_prog_compiler_pic_works=no
9137 ac_outfile=conftest.$ac_objext
9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9140 # Insert the option either (1) after the last *FLAGS variable, or
9141 # (2) before a word containing "conftest.", or (3) at the end.
9142 # Note that $ac_compile itself does not contain backslashes and begins
9143 # with a dollar sign (not a hyphen), so the echo should work correctly.
9144 # The option is referenced via a variable to avoid confusing sed.
9145 lt_compile=`echo "$ac_compile" | $SED \
9146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9148 -e 's:$: $lt_compiler_flag:'`
9149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9150 (eval "$lt_compile" 2>conftest.err)
9151 ac_status=$?
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 if (exit $ac_status) && test -s "$ac_outfile"; then
9155 # The compiler can only warn and ignore the option if not recognized
9156 # So say no if there are warnings other than the usual output.
9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9160 lt_cv_prog_compiler_pic_works=yes
9161 fi
9162 fi
9163 $RM conftest*
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9167 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9168
9169 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9170 case $lt_prog_compiler_pic in
9171 "" | " "*) ;;
9172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9173 esac
9174 else
9175 lt_prog_compiler_pic=
9176 lt_prog_compiler_can_build_shared=no
9177 fi
9178
9179 fi
9180
9181
9182
9183
9184
9185
9186 #
9187 # Check to make sure the static flag actually works.
9188 #
9189 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9191 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9192 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 lt_cv_prog_compiler_static_works=no
9196 save_LDFLAGS="$LDFLAGS"
9197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9200 # The linker can only warn and ignore the option if not recognized
9201 # So say no if there are warnings
9202 if test -s conftest.err; then
9203 # Append any errors to the config.log.
9204 cat conftest.err 1>&5
9205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_static_works=yes
9209 fi
9210 else
9211 lt_cv_prog_compiler_static_works=yes
9212 fi
9213 fi
9214 $RM -r conftest*
9215 LDFLAGS="$save_LDFLAGS"
9216
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9219 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9220
9221 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9222 :
9223 else
9224 lt_prog_compiler_static=
9225 fi
9226
9227
9228
9229
9230
9231
9232
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9235 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 lt_cv_prog_compiler_c_o=no
9239 $RM -r conftest 2>/dev/null
9240 mkdir conftest
9241 cd conftest
9242 mkdir out
9243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244
9245 lt_compiler_flag="-o out/conftest2.$ac_objext"
9246 # Insert the option either (1) after the last *FLAGS variable, or
9247 # (2) before a word containing "conftest.", or (3) at the end.
9248 # Note that $ac_compile itself does not contain backslashes and begins
9249 # with a dollar sign (not a hyphen), so the echo should work correctly.
9250 lt_compile=`echo "$ac_compile" | $SED \
9251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9253 -e 's:$: $lt_compiler_flag:'`
9254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9255 (eval "$lt_compile" 2>out/conftest.err)
9256 ac_status=$?
9257 cat out/conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9260 then
9261 # The compiler can only warn and ignore the option if not recognized
9262 # So say no if there are warnings
9263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9266 lt_cv_prog_compiler_c_o=yes
9267 fi
9268 fi
9269 chmod u+w . 2>&5
9270 $RM conftest*
9271 # SGI C++ compiler will create directory out/ii_files/ for
9272 # template instantiation
9273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9274 $RM out/* && rmdir out
9275 cd ..
9276 $RM -r conftest
9277 $RM conftest*
9278
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9281 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9282
9283
9284
9285
9286
9287
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9290 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 lt_cv_prog_compiler_c_o=no
9294 $RM -r conftest 2>/dev/null
9295 mkdir conftest
9296 cd conftest
9297 mkdir out
9298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299
9300 lt_compiler_flag="-o out/conftest2.$ac_objext"
9301 # Insert the option either (1) after the last *FLAGS variable, or
9302 # (2) before a word containing "conftest.", or (3) at the end.
9303 # Note that $ac_compile itself does not contain backslashes and begins
9304 # with a dollar sign (not a hyphen), so the echo should work correctly.
9305 lt_compile=`echo "$ac_compile" | $SED \
9306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9308 -e 's:$: $lt_compiler_flag:'`
9309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9310 (eval "$lt_compile" 2>out/conftest.err)
9311 ac_status=$?
9312 cat out/conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9315 then
9316 # The compiler can only warn and ignore the option if not recognized
9317 # So say no if there are warnings
9318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9321 lt_cv_prog_compiler_c_o=yes
9322 fi
9323 fi
9324 chmod u+w . 2>&5
9325 $RM conftest*
9326 # SGI C++ compiler will create directory out/ii_files/ for
9327 # template instantiation
9328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9329 $RM out/* && rmdir out
9330 cd ..
9331 $RM -r conftest
9332 $RM conftest*
9333
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9336 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9337
9338
9339
9340
9341 hard_links="nottested"
9342 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9343 # do not overwrite the value of need_locks provided by the user
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9345 $as_echo_n "checking if we can lock with hard links... " >&6; }
9346 hard_links=yes
9347 $RM conftest*
9348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9349 touch conftest.a
9350 ln conftest.a conftest.b 2>&5 || hard_links=no
9351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9353 $as_echo "$hard_links" >&6; }
9354 if test "$hard_links" = no; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9356 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9357 need_locks=warn
9358 fi
9359 else
9360 need_locks=no
9361 fi
9362
9363
9364
9365
9366
9367
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9370
9371 runpath_var=
9372 allow_undefined_flag=
9373 always_export_symbols=no
9374 archive_cmds=
9375 archive_expsym_cmds=
9376 compiler_needs_object=no
9377 enable_shared_with_static_runtimes=no
9378 export_dynamic_flag_spec=
9379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9380 hardcode_automatic=no
9381 hardcode_direct=no
9382 hardcode_direct_absolute=no
9383 hardcode_libdir_flag_spec=
9384 hardcode_libdir_flag_spec_ld=
9385 hardcode_libdir_separator=
9386 hardcode_minus_L=no
9387 hardcode_shlibpath_var=unsupported
9388 inherit_rpath=no
9389 link_all_deplibs=unknown
9390 module_cmds=
9391 module_expsym_cmds=
9392 old_archive_from_new_cmds=
9393 old_archive_from_expsyms_cmds=
9394 thread_safe_flag_spec=
9395 whole_archive_flag_spec=
9396 # include_expsyms should be a list of space-separated symbols to be *always*
9397 # included in the symbol list
9398 include_expsyms=
9399 # exclude_expsyms can be an extended regexp of symbols to exclude
9400 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9402 # as well as any symbol that contains `d'.
9403 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9405 # platforms (ab)use it in PIC code, but their linkers get confused if
9406 # the symbol is explicitly referenced. Since portable code cannot
9407 # rely on this symbol name, it's probably fine to never include it in
9408 # preloaded symbol tables.
9409 # Exclude shared library initialization/finalization symbols.
9410 extract_expsyms_cmds=
9411
9412 case $host_os in
9413 cygwin* | mingw* | pw32* | cegcc*)
9414 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9415 # When not using gcc, we currently assume that we are using
9416 # Microsoft Visual C++.
9417 if test "$GCC" != yes; then
9418 with_gnu_ld=no
9419 fi
9420 ;;
9421 interix*)
9422 # we just hope/assume this is gcc and not c89 (= MSVC++)
9423 with_gnu_ld=yes
9424 ;;
9425 openbsd*)
9426 with_gnu_ld=no
9427 ;;
9428 esac
9429
9430 ld_shlibs=yes
9431
9432 # On some targets, GNU ld is compatible enough with the native linker
9433 # that we're better off using the native interface for both.
9434 lt_use_gnu_ld_interface=no
9435 if test "$with_gnu_ld" = yes; then
9436 case $host_os in
9437 aix*)
9438 # The AIX port of GNU ld has always aspired to compatibility
9439 # with the native linker. However, as the warning in the GNU ld
9440 # block says, versions before 2.19.5* couldn't really create working
9441 # shared libraries, regardless of the interface used.
9442 case `$LD -v 2>&1` in
9443 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9444 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9445 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9446 *)
9447 lt_use_gnu_ld_interface=yes
9448 ;;
9449 esac
9450 ;;
9451 *)
9452 lt_use_gnu_ld_interface=yes
9453 ;;
9454 esac
9455 fi
9456
9457 if test "$lt_use_gnu_ld_interface" = yes; then
9458 # If archive_cmds runs LD, not CC, wlarc should be empty
9459 wlarc='${wl}'
9460
9461 # Set some defaults for GNU ld with shared library support. These
9462 # are reset later if shared libraries are not supported. Putting them
9463 # here allows them to be overridden if necessary.
9464 runpath_var=LD_RUN_PATH
9465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9466 export_dynamic_flag_spec='${wl}--export-dynamic'
9467 # ancient GNU ld didn't support --whole-archive et. al.
9468 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9469 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9470 else
9471 whole_archive_flag_spec=
9472 fi
9473 supports_anon_versioning=no
9474 case `$LD -v 2>&1` in
9475 *GNU\ gold*) supports_anon_versioning=yes ;;
9476 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9477 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9478 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9479 *\ 2.11.*) ;; # other 2.11 versions
9480 *) supports_anon_versioning=yes ;;
9481 esac
9482
9483 # See if GNU ld supports shared libraries.
9484 case $host_os in
9485 aix[3-9]*)
9486 # On AIX/PPC, the GNU linker is very broken
9487 if test "$host_cpu" != ia64; then
9488 ld_shlibs=no
9489 cat <<_LT_EOF 1>&2
9490
9491 *** Warning: the GNU linker, at least up to release 2.19, is reported
9492 *** to be unable to reliably create shared libraries on AIX.
9493 *** Therefore, libtool is disabling shared libraries support. If you
9494 *** really care for shared libraries, you may want to install binutils
9495 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9496 *** You will then need to restart the configuration process.
9497
9498 _LT_EOF
9499 fi
9500 ;;
9501
9502 amigaos*)
9503 case $host_cpu in
9504 powerpc)
9505 # see comment about AmigaOS4 .so support
9506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 archive_expsym_cmds=''
9508 ;;
9509 m68k)
9510 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)'
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_minus_L=yes
9513 ;;
9514 esac
9515 ;;
9516
9517 beos*)
9518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9519 allow_undefined_flag=unsupported
9520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9521 # support --undefined. This deserves some investigation. FIXME
9522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523 else
9524 ld_shlibs=no
9525 fi
9526 ;;
9527
9528 cygwin* | mingw* | pw32* | cegcc*)
9529 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9530 # as there is no search path for DLLs.
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 export_dynamic_flag_spec='${wl}--export-all-symbols'
9533 allow_undefined_flag=unsupported
9534 always_export_symbols=no
9535 enable_shared_with_static_runtimes=yes
9536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9537
9538 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9540 # If the export-symbols file already is a .def file (1st line
9541 # is EXPORTS), use it as is; otherwise, prepend...
9542 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9543 cp $export_symbols $output_objdir/$soname.def;
9544 else
9545 echo EXPORTS > $output_objdir/$soname.def;
9546 cat $export_symbols >> $output_objdir/$soname.def;
9547 fi~
9548 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553
9554 haiku*)
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 link_all_deplibs=yes
9557 ;;
9558
9559 interix[3-9]*)
9560 hardcode_direct=no
9561 hardcode_shlibpath_var=no
9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563 export_dynamic_flag_spec='${wl}-E'
9564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9565 # Instead, shared libraries are loaded at an image base (0x10000000 by
9566 # default) and relocated if they conflict, which is a slow very memory
9567 # consuming and fragmenting process. To avoid this, we pick a random,
9568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9571 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'
9572 ;;
9573
9574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9575 tmp_diet=no
9576 if test "$host_os" = linux-dietlibc; then
9577 case $cc_basename in
9578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9579 esac
9580 fi
9581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9582 && test "$tmp_diet" = no
9583 then
9584 tmp_addflag=
9585 tmp_sharedflag='-shared'
9586 case $cc_basename,$host_cpu in
9587 pgcc*) # Portland Group C compiler
9588 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'
9589 tmp_addflag=' $pic_flag'
9590 ;;
9591 pgf77* | pgf90* | pgf95* | pgfortran*)
9592 # Portland Group f77 and f90 compilers
9593 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'
9594 tmp_addflag=' $pic_flag -Mnomain' ;;
9595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9596 tmp_addflag=' -i_dynamic' ;;
9597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9598 tmp_addflag=' -i_dynamic -nofor_main' ;;
9599 ifc* | ifort*) # Intel Fortran compiler
9600 tmp_addflag=' -nofor_main' ;;
9601 lf95*) # Lahey Fortran 8.1
9602 whole_archive_flag_spec=
9603 tmp_sharedflag='--shared' ;;
9604 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9605 tmp_sharedflag='-qmkshrobj'
9606 tmp_addflag= ;;
9607 nvcc*) # Cuda Compiler Driver 2.2
9608 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'
9609 compiler_needs_object=yes
9610 ;;
9611 esac
9612 case `$CC -V 2>&1 | sed 5q` in
9613 *Sun\ C*) # Sun C 5.9
9614 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'
9615 compiler_needs_object=yes
9616 tmp_sharedflag='-G' ;;
9617 *Sun\ F*) # Sun Fortran 8.3
9618 tmp_sharedflag='-G' ;;
9619 esac
9620 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621
9622 if test "x$supports_anon_versioning" = xyes; then
9623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9625 echo "local: *; };" >> $output_objdir/$libname.ver~
9626 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9627 fi
9628
9629 case $cc_basename in
9630 xlf* | bgf* | bgxlf* | mpixlf*)
9631 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9632 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9633 hardcode_libdir_flag_spec=
9634 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9635 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9636 if test "x$supports_anon_versioning" = xyes; then
9637 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9639 echo "local: *; };" >> $output_objdir/$libname.ver~
9640 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9641 fi
9642 ;;
9643 esac
9644 else
9645 ld_shlibs=no
9646 fi
9647 ;;
9648
9649 netbsd*)
9650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9651 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9652 wlarc=
9653 else
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9656 fi
9657 ;;
9658
9659 solaris*)
9660 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9661 ld_shlibs=no
9662 cat <<_LT_EOF 1>&2
9663
9664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9665 *** create shared libraries on Solaris systems. Therefore, libtool
9666 *** is disabling shared libraries support. We urge you to upgrade GNU
9667 *** binutils to release 2.9.1 or newer. Another option is to modify
9668 *** your PATH or compiler configuration so that the native linker is
9669 *** used, and then restart.
9670
9671 _LT_EOF
9672 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9675 else
9676 ld_shlibs=no
9677 fi
9678 ;;
9679
9680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9681 case `$LD -v 2>&1` in
9682 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9683 ld_shlibs=no
9684 cat <<_LT_EOF 1>&2
9685
9686 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9687 *** reliably create shared libraries on SCO systems. Therefore, libtool
9688 *** is disabling shared libraries support. We urge you to upgrade GNU
9689 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9690 *** your PATH or compiler configuration so that the native linker is
9691 *** used, and then restart.
9692
9693 _LT_EOF
9694 ;;
9695 *)
9696 # For security reasons, it is highly recommended that you always
9697 # use absolute paths for naming shared libraries, and exclude the
9698 # DT_RUNPATH tag from executables and libraries. But doing so
9699 # requires that you compile everything twice, which is a pain.
9700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9704 else
9705 ld_shlibs=no
9706 fi
9707 ;;
9708 esac
9709 ;;
9710
9711 sunos4*)
9712 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9713 wlarc=
9714 hardcode_direct=yes
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 *)
9719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9722 else
9723 ld_shlibs=no
9724 fi
9725 ;;
9726 esac
9727
9728 if test "$ld_shlibs" = no; then
9729 runpath_var=
9730 hardcode_libdir_flag_spec=
9731 export_dynamic_flag_spec=
9732 whole_archive_flag_spec=
9733 fi
9734 else
9735 # PORTME fill in a description of your system's linker (not GNU ld)
9736 case $host_os in
9737 aix3*)
9738 allow_undefined_flag=unsupported
9739 always_export_symbols=yes
9740 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'
9741 # Note: this linker hardcodes the directories in LIBPATH if there
9742 # are no directories specified by -L.
9743 hardcode_minus_L=yes
9744 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9745 # Neither direct hardcoding nor static linking is supported with a
9746 # broken collect2.
9747 hardcode_direct=unsupported
9748 fi
9749 ;;
9750
9751 aix[4-9]*)
9752 if test "$host_cpu" = ia64; then
9753 # On IA64, the linker does run time linking by default, so we don't
9754 # have to do anything special.
9755 aix_use_runtimelinking=no
9756 exp_sym_flag='-Bexport'
9757 no_entry_flag=""
9758 else
9759 # If we're using GNU nm, then we don't want the "-C" option.
9760 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9761 # Also, AIX nm treats weak defined symbols like other global
9762 # defined symbols, whereas GNU nm marks them as "W".
9763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9764 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9765 else
9766 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9767 fi
9768 aix_use_runtimelinking=no
9769
9770 # Test if we are trying to use run time linking or normal
9771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9772 # need to do runtime linking.
9773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9774 for ld_flag in $LDFLAGS; do
9775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9776 aix_use_runtimelinking=yes
9777 break
9778 fi
9779 done
9780 ;;
9781 esac
9782
9783 exp_sym_flag='-bexport'
9784 no_entry_flag='-bnoentry'
9785 fi
9786
9787 # When large executables or shared objects are built, AIX ld can
9788 # have problems creating the table of contents. If linking a library
9789 # or program results in "error TOC overflow" add -mminimal-toc to
9790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9792
9793 archive_cmds=''
9794 hardcode_direct=yes
9795 hardcode_direct_absolute=yes
9796 hardcode_libdir_separator=':'
9797 link_all_deplibs=yes
9798 file_list_spec='${wl}-f,'
9799
9800 if test "$GCC" = yes; then
9801 case $host_os in aix4.[012]|aix4.[012].*)
9802 # We only want to do this on AIX 4.2 and lower, the check
9803 # below for broken collect2 doesn't work under 4.3+
9804 collect2name=`${CC} -print-prog-name=collect2`
9805 if test -f "$collect2name" &&
9806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9807 then
9808 # We have reworked collect2
9809 :
9810 else
9811 # We have old collect2
9812 hardcode_direct=unsupported
9813 # It fails to find uninstalled libraries when the uninstalled
9814 # path is not listed in the libpath. Setting hardcode_minus_L
9815 # to unsupported forces relinking
9816 hardcode_minus_L=yes
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_libdir_separator=
9819 fi
9820 ;;
9821 esac
9822 shared_flag='-shared'
9823 if test "$aix_use_runtimelinking" = yes; then
9824 shared_flag="$shared_flag "'${wl}-G'
9825 fi
9826 else
9827 # not using gcc
9828 if test "$host_cpu" = ia64; then
9829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9830 # chokes on -Wl,-G. The following line is correct:
9831 shared_flag='-G'
9832 else
9833 if test "$aix_use_runtimelinking" = yes; then
9834 shared_flag='${wl}-G'
9835 else
9836 shared_flag='${wl}-bM:SRE'
9837 fi
9838 fi
9839 fi
9840
9841 export_dynamic_flag_spec='${wl}-bexpall'
9842 # It seems that -bexpall does not export symbols beginning with
9843 # underscore (_), so it is better to generate a list of symbols to export.
9844 always_export_symbols=yes
9845 if test "$aix_use_runtimelinking" = yes; then
9846 # Warning - without using the other runtime loading flags (-brtl),
9847 # -berok will link without error, but may produce a broken library.
9848 allow_undefined_flag='-berok'
9849 # Determine the default libpath from the value encoded in an
9850 # empty executable.
9851 if test x$gcc_no_link = xyes; then
9852 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9853 fi
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856
9857 int
9858 main ()
9859 {
9860
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866
9867 lt_aix_libpath_sed='
9868 /Import File Strings/,/^$/ {
9869 /^0/ {
9870 s/^0 *\(.*\)$/\1/
9871 p
9872 }
9873 }'
9874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9875 # Check for a 64-bit object if we didn't find anything.
9876 if test -z "$aix_libpath"; then
9877 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9878 fi
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9883
9884 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9885 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9886 else
9887 if test "$host_cpu" = ia64; then
9888 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9889 allow_undefined_flag="-z nodefs"
9890 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"
9891 else
9892 # Determine the default libpath from the value encoded in an
9893 # empty executable.
9894 if test x$gcc_no_link = xyes; then
9895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9896 fi
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899
9900 int
9901 main ()
9902 {
9903
9904 ;
9905 return 0;
9906 }
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9909
9910 lt_aix_libpath_sed='
9911 /Import File Strings/,/^$/ {
9912 /^0/ {
9913 s/^0 *\(.*\)$/\1/
9914 p
9915 }
9916 }'
9917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9918 # Check for a 64-bit object if we didn't find anything.
9919 if test -z "$aix_libpath"; then
9920 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9921 fi
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9926
9927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9928 # Warning - without using the other run time loading flags,
9929 # -berok will link without error, but may produce a broken library.
9930 no_undefined_flag=' ${wl}-bernotok'
9931 allow_undefined_flag=' ${wl}-berok'
9932 if test "$with_gnu_ld" = yes; then
9933 # We only use this code for GNU lds that support --whole-archive.
9934 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9935 else
9936 # Exported symbols can be pulled into shared objects from archives
9937 whole_archive_flag_spec='$convenience'
9938 fi
9939 archive_cmds_need_lc=yes
9940 # This is similar to how AIX traditionally builds its shared libraries.
9941 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9942 fi
9943 fi
9944 ;;
9945
9946 amigaos*)
9947 case $host_cpu in
9948 powerpc)
9949 # see comment about AmigaOS4 .so support
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds=''
9952 ;;
9953 m68k)
9954 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)'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_minus_L=yes
9957 ;;
9958 esac
9959 ;;
9960
9961 bsdi[45]*)
9962 export_dynamic_flag_spec=-rdynamic
9963 ;;
9964
9965 cygwin* | mingw* | pw32* | cegcc*)
9966 # When not using gcc, we currently assume that we are using
9967 # Microsoft Visual C++.
9968 # hardcode_libdir_flag_spec is actually meaningless, as there is
9969 # no search path for DLLs.
9970 hardcode_libdir_flag_spec=' '
9971 allow_undefined_flag=unsupported
9972 # Tell ltmain to make .lib files, not .a files.
9973 libext=lib
9974 # Tell ltmain to make .dll files, not .so files.
9975 shrext_cmds=".dll"
9976 # FIXME: Setting linknames here is a bad hack.
9977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9978 # The linker will automatically build a .lib file if we build a DLL.
9979 old_archive_from_new_cmds='true'
9980 # FIXME: Should let the user specify the lib program.
9981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9982 fix_srcfile_path='`cygpath -w "$srcfile"`'
9983 enable_shared_with_static_runtimes=yes
9984 ;;
9985
9986 darwin* | rhapsody*)
9987
9988
9989 archive_cmds_need_lc=no
9990 hardcode_direct=no
9991 hardcode_automatic=yes
9992 hardcode_shlibpath_var=unsupported
9993 if test "$lt_cv_ld_force_load" = "yes"; then
9994 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\"`'
9995 else
9996 whole_archive_flag_spec=''
9997 fi
9998 link_all_deplibs=yes
9999 allow_undefined_flag="$_lt_dar_allow_undefined"
10000 case $cc_basename in
10001 ifort*) _lt_dar_can_shared=yes ;;
10002 *) _lt_dar_can_shared=$GCC ;;
10003 esac
10004 if test "$_lt_dar_can_shared" = "yes"; then
10005 output_verbose_link_cmd=func_echo_all
10006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10008 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}"
10009 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}"
10010
10011 else
10012 ld_shlibs=no
10013 fi
10014
10015 ;;
10016
10017 dgux*)
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10024 # support. Future versions do this automatically, but an explicit c++rt0.o
10025 # does not break anything, and helps significantly (at the cost of a little
10026 # extra space).
10027 freebsd2.2*)
10028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10029 hardcode_libdir_flag_spec='-R$libdir'
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10035 freebsd2.*)
10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=yes
10038 hardcode_minus_L=yes
10039 hardcode_shlibpath_var=no
10040 ;;
10041
10042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10043 freebsd* | dragonfly*)
10044 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10045 hardcode_libdir_flag_spec='-R$libdir'
10046 hardcode_direct=yes
10047 hardcode_shlibpath_var=no
10048 ;;
10049
10050 hpux9*)
10051 if test "$GCC" = yes; then
10052 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10053 else
10054 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10055 fi
10056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10057 hardcode_libdir_separator=:
10058 hardcode_direct=yes
10059
10060 # hardcode_minus_L: Not really in the search PATH,
10061 # but as the default location of the library.
10062 hardcode_minus_L=yes
10063 export_dynamic_flag_spec='${wl}-E'
10064 ;;
10065
10066 hpux10*)
10067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071 fi
10072 if test "$with_gnu_ld" = no; then
10073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10074 hardcode_libdir_flag_spec_ld='+b $libdir'
10075 hardcode_libdir_separator=:
10076 hardcode_direct=yes
10077 hardcode_direct_absolute=yes
10078 export_dynamic_flag_spec='${wl}-E'
10079 # hardcode_minus_L: Not really in the search PATH,
10080 # but as the default location of the library.
10081 hardcode_minus_L=yes
10082 fi
10083 ;;
10084
10085 hpux11*)
10086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10087 case $host_cpu in
10088 hppa*64*)
10089 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 ;;
10091 ia64*)
10092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093 ;;
10094 *)
10095 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10096 ;;
10097 esac
10098 else
10099 case $host_cpu in
10100 hppa*64*)
10101 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10102 ;;
10103 ia64*)
10104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10105 ;;
10106 *)
10107
10108 # Older versions of the 11.00 compiler do not understand -b yet
10109 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10111 $as_echo_n "checking if $CC understands -b... " >&6; }
10112 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 lt_cv_prog_compiler__b=no
10116 save_LDFLAGS="$LDFLAGS"
10117 LDFLAGS="$LDFLAGS -b"
10118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10120 # The linker can only warn and ignore the option if not recognized
10121 # So say no if there are warnings
10122 if test -s conftest.err; then
10123 # Append any errors to the config.log.
10124 cat conftest.err 1>&5
10125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10127 if diff conftest.exp conftest.er2 >/dev/null; then
10128 lt_cv_prog_compiler__b=yes
10129 fi
10130 else
10131 lt_cv_prog_compiler__b=yes
10132 fi
10133 fi
10134 $RM -r conftest*
10135 LDFLAGS="$save_LDFLAGS"
10136
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10139 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10140
10141 if test x"$lt_cv_prog_compiler__b" = xyes; then
10142 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10143 else
10144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10145 fi
10146
10147 ;;
10148 esac
10149 fi
10150 if test "$with_gnu_ld" = no; then
10151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator=:
10153
10154 case $host_cpu in
10155 hppa*64*|ia64*)
10156 hardcode_direct=no
10157 hardcode_shlibpath_var=no
10158 ;;
10159 *)
10160 hardcode_direct=yes
10161 hardcode_direct_absolute=yes
10162 export_dynamic_flag_spec='${wl}-E'
10163
10164 # hardcode_minus_L: Not really in the search PATH,
10165 # but as the default location of the library.
10166 hardcode_minus_L=yes
10167 ;;
10168 esac
10169 fi
10170 ;;
10171
10172 irix5* | irix6* | nonstopux*)
10173 if test "$GCC" = yes; then
10174 archive_cmds='$CC -shared $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'
10175 # Try to use the -exported_symbol ld option, if it does not
10176 # work, assume that -exports_file does not work either and
10177 # implicitly export all symbols.
10178 save_LDFLAGS="$LDFLAGS"
10179 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10180 if test x$gcc_no_link = xyes; then
10181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10182 fi
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int foo(void) {}
10186 _ACEOF
10187 if ac_fn_c_try_link "$LINENO"; then :
10188 archive_expsym_cmds='$CC -shared $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'
10189
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LDFLAGS="$save_LDFLAGS"
10194 else
10195 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'
10196 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'
10197 fi
10198 archive_cmds_need_lc='no'
10199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200 hardcode_libdir_separator=:
10201 inherit_rpath=yes
10202 link_all_deplibs=yes
10203 ;;
10204
10205 netbsd*)
10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10208 else
10209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10210 fi
10211 hardcode_libdir_flag_spec='-R$libdir'
10212 hardcode_direct=yes
10213 hardcode_shlibpath_var=no
10214 ;;
10215
10216 newsos6)
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=yes
10219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220 hardcode_libdir_separator=:
10221 hardcode_shlibpath_var=no
10222 ;;
10223
10224 *nto* | *qnx*)
10225 ;;
10226
10227 openbsd*)
10228 if test -f /usr/libexec/ld.so; then
10229 hardcode_direct=yes
10230 hardcode_shlibpath_var=no
10231 hardcode_direct_absolute=yes
10232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10236 export_dynamic_flag_spec='${wl}-E'
10237 else
10238 case $host_os in
10239 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_libdir_flag_spec='-R$libdir'
10242 ;;
10243 *)
10244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10246 ;;
10247 esac
10248 fi
10249 else
10250 ld_shlibs=no
10251 fi
10252 ;;
10253
10254 os2*)
10255 hardcode_libdir_flag_spec='-L$libdir'
10256 hardcode_minus_L=yes
10257 allow_undefined_flag=unsupported
10258 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10259 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10260 ;;
10261
10262 osf3*)
10263 if test "$GCC" = yes; then
10264 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10265 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'
10266 else
10267 allow_undefined_flag=' -expect_unresolved \*'
10268 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'
10269 fi
10270 archive_cmds_need_lc='no'
10271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272 hardcode_libdir_separator=:
10273 ;;
10274
10275 osf4* | osf5*) # as osf3* with the addition of -msym flag
10276 if test "$GCC" = yes; then
10277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10278 archive_cmds='$CC -shared${allow_undefined_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'
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 else
10281 allow_undefined_flag=' -expect_unresolved \*'
10282 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'
10283 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~
10284 $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'
10285
10286 # Both c and cxx compiler support -rpath directly
10287 hardcode_libdir_flag_spec='-rpath $libdir'
10288 fi
10289 archive_cmds_need_lc='no'
10290 hardcode_libdir_separator=:
10291 ;;
10292
10293 solaris*)
10294 no_undefined_flag=' -z defs'
10295 if test "$GCC" = yes; then
10296 wlarc='${wl}'
10297 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10299 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10300 else
10301 case `$CC -V 2>&1` in
10302 *"Compilers 5.0"*)
10303 wlarc=''
10304 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10307 ;;
10308 *)
10309 wlarc='${wl}'
10310 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10312 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313 ;;
10314 esac
10315 fi
10316 hardcode_libdir_flag_spec='-R$libdir'
10317 hardcode_shlibpath_var=no
10318 case $host_os in
10319 solaris2.[0-5] | solaris2.[0-5].*) ;;
10320 *)
10321 # The compiler driver will combine and reorder linker options,
10322 # but understands `-z linker_flag'. GCC discards it without `$wl',
10323 # but is careful enough not to reorder.
10324 # Supported since Solaris 2.6 (maybe 2.5.1?)
10325 if test "$GCC" = yes; then
10326 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10327 else
10328 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10329 fi
10330 ;;
10331 esac
10332 link_all_deplibs=yes
10333 ;;
10334
10335 sunos4*)
10336 if test "x$host_vendor" = xsequent; then
10337 # Use $CC to link under sequent, because it throws in some extra .o
10338 # files that make .init and .fini sections work.
10339 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340 else
10341 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10342 fi
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_direct=yes
10345 hardcode_minus_L=yes
10346 hardcode_shlibpath_var=no
10347 ;;
10348
10349 sysv4)
10350 case $host_vendor in
10351 sni)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_direct=yes # is this really true???
10354 ;;
10355 siemens)
10356 ## LD is ld it makes a PLAMLIB
10357 ## CC just makes a GrossModule.
10358 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10359 reload_cmds='$CC -r -o $output$reload_objs'
10360 hardcode_direct=no
10361 ;;
10362 motorola)
10363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10365 ;;
10366 esac
10367 runpath_var='LD_RUN_PATH'
10368 hardcode_shlibpath_var=no
10369 ;;
10370
10371 sysv4.3*)
10372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10373 hardcode_shlibpath_var=no
10374 export_dynamic_flag_spec='-Bexport'
10375 ;;
10376
10377 sysv4*MP*)
10378 if test -d /usr/nec; then
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_shlibpath_var=no
10381 runpath_var=LD_RUN_PATH
10382 hardcode_runpath_var=yes
10383 ld_shlibs=yes
10384 fi
10385 ;;
10386
10387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10388 no_undefined_flag='${wl}-z,text'
10389 archive_cmds_need_lc=no
10390 hardcode_shlibpath_var=no
10391 runpath_var='LD_RUN_PATH'
10392
10393 if test "$GCC" = yes; then
10394 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 else
10397 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 fi
10400 ;;
10401
10402 sysv5* | sco3.2v5* | sco5v6*)
10403 # Note: We can NOT use -z defs as we might desire, because we do not
10404 # link with -lc, and that would cause any symbols used from libc to
10405 # always be unresolved, which means just about no library would
10406 # ever link correctly. If we're not using GNU ld we use -z text
10407 # though, which does catch some bad symbols but isn't as heavy-handed
10408 # as -z defs.
10409 no_undefined_flag='${wl}-z,text'
10410 allow_undefined_flag='${wl}-z,nodefs'
10411 archive_cmds_need_lc=no
10412 hardcode_shlibpath_var=no
10413 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10414 hardcode_libdir_separator=':'
10415 link_all_deplibs=yes
10416 export_dynamic_flag_spec='${wl}-Bexport'
10417 runpath_var='LD_RUN_PATH'
10418
10419 if test "$GCC" = yes; then
10420 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 else
10423 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 fi
10426 ;;
10427
10428 uts4*)
10429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 hardcode_shlibpath_var=no
10432 ;;
10433
10434 *)
10435 ld_shlibs=no
10436 ;;
10437 esac
10438
10439 if test x$host_vendor = xsni; then
10440 case $host in
10441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10442 export_dynamic_flag_spec='${wl}-Blargedynsym'
10443 ;;
10444 esac
10445 fi
10446 fi
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10449 $as_echo "$ld_shlibs" >&6; }
10450 test "$ld_shlibs" = no && can_build_shared=no
10451
10452 with_gnu_ld=$with_gnu_ld
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468 #
10469 # Do we need to explicitly link libc?
10470 #
10471 case "x$archive_cmds_need_lc" in
10472 x|xyes)
10473 # Assume -lc should be added
10474 archive_cmds_need_lc=yes
10475
10476 if test "$enable_shared" = yes && test "$GCC" = yes; then
10477 case $archive_cmds in
10478 *'~'*)
10479 # FIXME: we may have to deal with multi-command sequences.
10480 ;;
10481 '$CC '*)
10482 # Test whether the compiler implicitly links with -lc since on some
10483 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10484 # to ld, don't add -lc before -lgcc.
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10486 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10487 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 $RM conftest*
10491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10492
10493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10494 (eval $ac_compile) 2>&5
10495 ac_status=$?
10496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10497 test $ac_status = 0; } 2>conftest.err; then
10498 soname=conftest
10499 lib=conftest
10500 libobjs=conftest.$ac_objext
10501 deplibs=
10502 wl=$lt_prog_compiler_wl
10503 pic_flag=$lt_prog_compiler_pic
10504 compiler_flags=-v
10505 linker_flags=-v
10506 verstring=
10507 output_objdir=.
10508 libname=conftest
10509 lt_save_allow_undefined_flag=$allow_undefined_flag
10510 allow_undefined_flag=
10511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10512 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10513 ac_status=$?
10514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10515 test $ac_status = 0; }
10516 then
10517 lt_cv_archive_cmds_need_lc=no
10518 else
10519 lt_cv_archive_cmds_need_lc=yes
10520 fi
10521 allow_undefined_flag=$lt_save_allow_undefined_flag
10522 else
10523 cat conftest.err 1>&5
10524 fi
10525 $RM conftest*
10526
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10529 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10530 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10531 ;;
10532 esac
10533 fi
10534 ;;
10535 esac
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10694 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10695
10696 if test "$GCC" = yes; then
10697 case $host_os in
10698 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10699 *) lt_awk_arg="/^libraries:/" ;;
10700 esac
10701 case $host_os in
10702 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10703 *) lt_sed_strip_eq="s,=/,/,g" ;;
10704 esac
10705 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10706 case $lt_search_path_spec in
10707 *\;*)
10708 # if the path contains ";" then we assume it to be the separator
10709 # otherwise default to the standard path separator (i.e. ":") - it is
10710 # assumed that no part of a normal pathname contains ";" but that should
10711 # okay in the real world where ";" in dirpaths is itself problematic.
10712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10713 ;;
10714 *)
10715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10716 ;;
10717 esac
10718 # Ok, now we have the path, separated by spaces, we can step through it
10719 # and add multilib dir if necessary.
10720 lt_tmp_lt_search_path_spec=
10721 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10722 for lt_sys_path in $lt_search_path_spec; do
10723 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10725 else
10726 test -d "$lt_sys_path" && \
10727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10728 fi
10729 done
10730 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10731 BEGIN {RS=" "; FS="/|\n";} {
10732 lt_foo="";
10733 lt_count=0;
10734 for (lt_i = NF; lt_i > 0; lt_i--) {
10735 if ($lt_i != "" && $lt_i != ".") {
10736 if ($lt_i == "..") {
10737 lt_count++;
10738 } else {
10739 if (lt_count == 0) {
10740 lt_foo="/" $lt_i lt_foo;
10741 } else {
10742 lt_count--;
10743 }
10744 }
10745 }
10746 }
10747 if (lt_foo != "") { lt_freq[lt_foo]++; }
10748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10749 }'`
10750 # AWK program above erroneously prepends '/' to C:/dos/paths
10751 # for these hosts.
10752 case $host_os in
10753 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10754 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10755 esac
10756 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10757 else
10758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10759 fi
10760 library_names_spec=
10761 libname_spec='lib$name'
10762 soname_spec=
10763 shrext_cmds=".so"
10764 postinstall_cmds=
10765 postuninstall_cmds=
10766 finish_cmds=
10767 finish_eval=
10768 shlibpath_var=
10769 shlibpath_overrides_runpath=unknown
10770 version_type=none
10771 dynamic_linker="$host_os ld.so"
10772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10773 need_lib_prefix=unknown
10774 hardcode_into_libs=no
10775
10776 # when you set need_version to no, make sure it does not cause -set_version
10777 # flags to be left without arguments
10778 need_version=unknown
10779
10780 case $host_os in
10781 aix3*)
10782 version_type=linux
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10784 shlibpath_var=LIBPATH
10785
10786 # AIX 3 has no versioning support, so we append a major version to the name.
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 ;;
10789
10790 aix[4-9]*)
10791 version_type=linux
10792 need_lib_prefix=no
10793 need_version=no
10794 hardcode_into_libs=yes
10795 if test "$host_cpu" = ia64; then
10796 # AIX 5 supports IA64
10797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 else
10800 # With GCC up to 2.95.x, collect2 would create an import file
10801 # for dependence libraries. The import file would start with
10802 # the line `#! .'. This would cause the generated library to
10803 # depend on `.', always an invalid library. This was fixed in
10804 # development snapshots of GCC prior to 3.0.
10805 case $host_os in
10806 aix4 | aix4.[01] | aix4.[01].*)
10807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10808 echo ' yes '
10809 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10810 :
10811 else
10812 can_build_shared=no
10813 fi
10814 ;;
10815 esac
10816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10817 # soname into executable. Probably we can add versioning support to
10818 # collect2, so additional links can be useful in future.
10819 if test "$aix_use_runtimelinking" = yes; then
10820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10821 # instead of lib<name>.a to let people know that these are not
10822 # typical AIX shared libraries.
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 else
10825 # We preserve .a as extension for shared libraries through AIX4.2
10826 # and later when we are not doing run time linking.
10827 library_names_spec='${libname}${release}.a $libname.a'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 fi
10830 shlibpath_var=LIBPATH
10831 fi
10832 ;;
10833
10834 amigaos*)
10835 case $host_cpu in
10836 powerpc)
10837 # Since July 2007 AmigaOS4 officially supports .so libraries.
10838 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 ;;
10841 m68k)
10842 library_names_spec='$libname.ixlibrary $libname.a'
10843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10844 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10845 ;;
10846 esac
10847 ;;
10848
10849 beos*)
10850 library_names_spec='${libname}${shared_ext}'
10851 dynamic_linker="$host_os ld.so"
10852 shlibpath_var=LIBRARY_PATH
10853 ;;
10854
10855 bsdi[45]*)
10856 version_type=linux
10857 need_version=no
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10864 # the default ld.so.conf also contains /usr/contrib/lib and
10865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10866 # libtool to hard-code these into programs
10867 ;;
10868
10869 cygwin* | mingw* | pw32* | cegcc*)
10870 version_type=windows
10871 shrext_cmds=".dll"
10872 need_version=no
10873 need_lib_prefix=no
10874
10875 case $GCC,$host_os in
10876 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10877 library_names_spec='$libname.dll.a'
10878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10879 postinstall_cmds='base_file=`basename \${file}`~
10880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10881 dldir=$destdir/`dirname \$dlpath`~
10882 test -d \$dldir || mkdir -p \$dldir~
10883 $install_prog $dir/$dlname \$dldir/$dlname~
10884 chmod a+x \$dldir/$dlname~
10885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10887 fi'
10888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10889 dlpath=$dir/\$dldll~
10890 $RM \$dlpath'
10891 shlibpath_overrides_runpath=yes
10892
10893 case $host_os in
10894 cygwin*)
10895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897
10898 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10899 ;;
10900 mingw* | cegcc*)
10901 # MinGW DLLs use traditional 'lib' prefix
10902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 ;;
10904 pw32*)
10905 # pw32 DLLs use 'pw' prefix rather than 'lib'
10906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10907 ;;
10908 esac
10909 ;;
10910
10911 *)
10912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10913 ;;
10914 esac
10915 dynamic_linker='Win32 ld.exe'
10916 # FIXME: first we should search . and the directory the executable is in
10917 shlibpath_var=PATH
10918 ;;
10919
10920 darwin* | rhapsody*)
10921 dynamic_linker="$host_os dyld"
10922 version_type=darwin
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10926 soname_spec='${libname}${release}${major}$shared_ext'
10927 shlibpath_overrides_runpath=yes
10928 shlibpath_var=DYLD_LIBRARY_PATH
10929 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10930
10931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10933 ;;
10934
10935 dgux*)
10936 version_type=linux
10937 need_lib_prefix=no
10938 need_version=no
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 ;;
10943
10944 freebsd* | dragonfly*)
10945 # DragonFly does not have aout. When/if they implement a new
10946 # versioning mechanism, adjust this.
10947 if test -x /usr/bin/objformat; then
10948 objformat=`/usr/bin/objformat`
10949 else
10950 case $host_os in
10951 freebsd[23].*) objformat=aout ;;
10952 *) objformat=elf ;;
10953 esac
10954 fi
10955 version_type=freebsd-$objformat
10956 case $version_type in
10957 freebsd-elf*)
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10959 need_version=no
10960 need_lib_prefix=no
10961 ;;
10962 freebsd-*)
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10964 need_version=yes
10965 ;;
10966 esac
10967 shlibpath_var=LD_LIBRARY_PATH
10968 case $host_os in
10969 freebsd2.*)
10970 shlibpath_overrides_runpath=yes
10971 ;;
10972 freebsd3.[01]* | freebsdelf3.[01]*)
10973 shlibpath_overrides_runpath=yes
10974 hardcode_into_libs=yes
10975 ;;
10976 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10977 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10978 shlibpath_overrides_runpath=no
10979 hardcode_into_libs=yes
10980 ;;
10981 *) # from 4.6 on, and DragonFly
10982 shlibpath_overrides_runpath=yes
10983 hardcode_into_libs=yes
10984 ;;
10985 esac
10986 ;;
10987
10988 gnu*)
10989 version_type=linux
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 hardcode_into_libs=yes
10996 ;;
10997
10998 haiku*)
10999 version_type=linux
11000 need_lib_prefix=no
11001 need_version=no
11002 dynamic_linker="$host_os runtime_loader"
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LIBRARY_PATH
11006 shlibpath_overrides_runpath=yes
11007 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11008 hardcode_into_libs=yes
11009 ;;
11010
11011 hpux9* | hpux10* | hpux11*)
11012 # Give a soname corresponding to the major version so that dld.sl refuses to
11013 # link against other versions.
11014 version_type=sunos
11015 need_lib_prefix=no
11016 need_version=no
11017 case $host_cpu in
11018 ia64*)
11019 shrext_cmds='.so'
11020 hardcode_into_libs=yes
11021 dynamic_linker="$host_os dld.so"
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 if test "X$HPUX_IA64_MODE" = X32; then
11027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11028 else
11029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11030 fi
11031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11032 ;;
11033 hppa*64*)
11034 shrext_cmds='.sl'
11035 hardcode_into_libs=yes
11036 dynamic_linker="$host_os dld.sl"
11037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11043 ;;
11044 *)
11045 shrext_cmds='.sl'
11046 dynamic_linker="$host_os dld.sl"
11047 shlibpath_var=SHLIB_PATH
11048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 ;;
11052 esac
11053 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11054 postinstall_cmds='chmod 555 $lib'
11055 # or fails outright, so override atomically:
11056 install_override_mode=555
11057 ;;
11058
11059 interix[3-9]*)
11060 version_type=linux
11061 need_lib_prefix=no
11062 need_version=no
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 ;;
11070
11071 irix5* | irix6* | nonstopux*)
11072 case $host_os in
11073 nonstopux*) version_type=nonstopux ;;
11074 *)
11075 if test "$lt_cv_prog_gnu_ld" = yes; then
11076 version_type=linux
11077 else
11078 version_type=irix
11079 fi ;;
11080 esac
11081 need_lib_prefix=no
11082 need_version=no
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11085 case $host_os in
11086 irix5* | nonstopux*)
11087 libsuff= shlibsuff=
11088 ;;
11089 *)
11090 case $LD in # libtool.m4 will add one of these switches to LD
11091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11092 libsuff= shlibsuff= libmagic=32-bit;;
11093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11094 libsuff=32 shlibsuff=N32 libmagic=N32;;
11095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11097 *) libsuff= shlibsuff= libmagic=never-match;;
11098 esac
11099 ;;
11100 esac
11101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11102 shlibpath_overrides_runpath=no
11103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11105 hardcode_into_libs=yes
11106 ;;
11107
11108 # No shared lib support for Linux oldld, aout, or coff.
11109 linux*oldld* | linux*aout* | linux*coff*)
11110 dynamic_linker=no
11111 ;;
11112
11113 # This must be Linux ELF.
11114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11115 version_type=linux
11116 need_lib_prefix=no
11117 need_version=no
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123
11124 # Some binutils ld are patched to set DT_RUNPATH
11125 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 lt_cv_shlibpath_overrides_runpath=no
11129 save_LDFLAGS=$LDFLAGS
11130 save_libdir=$libdir
11131 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11132 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11133 if test x$gcc_no_link = xyes; then
11134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11135 fi
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138
11139 int
11140 main ()
11141 {
11142
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11149 lt_cv_shlibpath_overrides_runpath=yes
11150 fi
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LDFLAGS=$save_LDFLAGS
11155 libdir=$save_libdir
11156
11157 fi
11158
11159 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11160
11161 # This implies no fast_install, which is unacceptable.
11162 # Some rework will be needed to allow for fast_install
11163 # before this can be enabled.
11164 hardcode_into_libs=yes
11165
11166 # Append ld.so.conf contents to the search path
11167 if test -f /etc/ld.so.conf; then
11168 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' ' '`
11169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11170 fi
11171
11172 # We used to test for /lib/ld.so.1 and disable shared libraries on
11173 # powerpc, because MkLinux only supported shared libraries with the
11174 # GNU dynamic linker. Since this was broken with cross compilers,
11175 # most powerpc-linux boxes support dynamic linking these days and
11176 # people can always --disable-shared, the test was removed, and we
11177 # assume the GNU/Linux dynamic linker is in use.
11178 dynamic_linker='GNU/Linux ld.so'
11179 ;;
11180
11181 netbsd*)
11182 version_type=sunos
11183 need_lib_prefix=no
11184 need_version=no
11185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11188 dynamic_linker='NetBSD (a.out) ld.so'
11189 else
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 dynamic_linker='NetBSD ld.elf_so'
11193 fi
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 hardcode_into_libs=yes
11197 ;;
11198
11199 newsos6)
11200 version_type=linux
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=yes
11204 ;;
11205
11206 *nto* | *qnx*)
11207 version_type=qnx
11208 need_lib_prefix=no
11209 need_version=no
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 dynamic_linker='ldqnx.so'
11216 ;;
11217
11218 openbsd*)
11219 version_type=sunos
11220 sys_lib_dlsearch_path_spec="/usr/lib"
11221 need_lib_prefix=no
11222 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11223 case $host_os in
11224 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11225 *) need_version=no ;;
11226 esac
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11231 case $host_os in
11232 openbsd2.[89] | openbsd2.[89].*)
11233 shlibpath_overrides_runpath=no
11234 ;;
11235 *)
11236 shlibpath_overrides_runpath=yes
11237 ;;
11238 esac
11239 else
11240 shlibpath_overrides_runpath=yes
11241 fi
11242 ;;
11243
11244 os2*)
11245 libname_spec='$name'
11246 shrext_cmds=".dll"
11247 need_lib_prefix=no
11248 library_names_spec='$libname${shared_ext} $libname.a'
11249 dynamic_linker='OS/2 ld.exe'
11250 shlibpath_var=LIBPATH
11251 ;;
11252
11253 osf3* | osf4* | osf5*)
11254 version_type=osf
11255 need_lib_prefix=no
11256 need_version=no
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11262 ;;
11263
11264 rdos*)
11265 dynamic_linker=no
11266 ;;
11267
11268 solaris*)
11269 version_type=linux
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 hardcode_into_libs=yes
11277 # ldd complains unless libraries are executable
11278 postinstall_cmds='chmod +x $lib'
11279 ;;
11280
11281 sunos4*)
11282 version_type=sunos
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 shlibpath_overrides_runpath=yes
11287 if test "$with_gnu_ld" = yes; then
11288 need_lib_prefix=no
11289 fi
11290 need_version=yes
11291 ;;
11292
11293 sysv4 | sysv4.3*)
11294 version_type=linux
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 case $host_vendor in
11299 sni)
11300 shlibpath_overrides_runpath=no
11301 need_lib_prefix=no
11302 runpath_var=LD_RUN_PATH
11303 ;;
11304 siemens)
11305 need_lib_prefix=no
11306 ;;
11307 motorola)
11308 need_lib_prefix=no
11309 need_version=no
11310 shlibpath_overrides_runpath=no
11311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11312 ;;
11313 esac
11314 ;;
11315
11316 sysv4*MP*)
11317 if test -d /usr/nec ;then
11318 version_type=linux
11319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11320 soname_spec='$libname${shared_ext}.$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 fi
11323 ;;
11324
11325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11326 version_type=freebsd-elf
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 hardcode_into_libs=yes
11334 if test "$with_gnu_ld" = yes; then
11335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11336 else
11337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11338 case $host_os in
11339 sco3.2v5*)
11340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11341 ;;
11342 esac
11343 fi
11344 sys_lib_dlsearch_path_spec='/usr/lib'
11345 ;;
11346
11347 tpf*)
11348 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11349 version_type=linux
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 hardcode_into_libs=yes
11356 ;;
11357
11358 uts4*)
11359 version_type=linux
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 ;;
11364
11365 *)
11366 dynamic_linker=no
11367 ;;
11368 esac
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11370 $as_echo "$dynamic_linker" >&6; }
11371 test "$dynamic_linker" = no && can_build_shared=no
11372
11373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11374 if test "$GCC" = yes; then
11375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11376 fi
11377
11378 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11379 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11380 fi
11381 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11382 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11383 fi
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11477 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11478 hardcode_action=
11479 if test -n "$hardcode_libdir_flag_spec" ||
11480 test -n "$runpath_var" ||
11481 test "X$hardcode_automatic" = "Xyes" ; then
11482
11483 # We can hardcode non-existent directories.
11484 if test "$hardcode_direct" != no &&
11485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11486 # have to relink, otherwise we might link with an installed library
11487 # when we should be linking with a yet-to-be-installed one
11488 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11489 test "$hardcode_minus_L" != no; then
11490 # Linking always hardcodes the temporary library directory.
11491 hardcode_action=relink
11492 else
11493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11494 hardcode_action=immediate
11495 fi
11496 else
11497 # We cannot hardcode anything, or else we can only hardcode existing
11498 # directories.
11499 hardcode_action=unsupported
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11502 $as_echo "$hardcode_action" >&6; }
11503
11504 if test "$hardcode_action" = relink ||
11505 test "$inherit_rpath" = yes; then
11506 # Fast installation is not supported
11507 enable_fast_install=no
11508 elif test "$shlibpath_overrides_runpath" = yes ||
11509 test "$enable_shared" = no; then
11510 # Fast installation is not necessary
11511 enable_fast_install=needless
11512 fi
11513
11514
11515
11516
11517
11518
11519 if test "x$enable_dlopen" != xyes; then
11520 enable_dlopen=unknown
11521 enable_dlopen_self=unknown
11522 enable_dlopen_self_static=unknown
11523 else
11524 lt_cv_dlopen=no
11525 lt_cv_dlopen_libs=
11526
11527 case $host_os in
11528 beos*)
11529 lt_cv_dlopen="load_add_on"
11530 lt_cv_dlopen_libs=
11531 lt_cv_dlopen_self=yes
11532 ;;
11533
11534 mingw* | pw32* | cegcc*)
11535 lt_cv_dlopen="LoadLibrary"
11536 lt_cv_dlopen_libs=
11537 ;;
11538
11539 cygwin*)
11540 lt_cv_dlopen="dlopen"
11541 lt_cv_dlopen_libs=
11542 ;;
11543
11544 darwin*)
11545 # if libdl is installed we need to link against it
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11547 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11548 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-ldl $LIBS"
11553 if test x$gcc_no_link = xyes; then
11554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11555 fi
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char dlopen ();
11566 int
11567 main ()
11568 {
11569 return dlopen ();
11570 ;
11571 return 0;
11572 }
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 ac_cv_lib_dl_dlopen=yes
11576 else
11577 ac_cv_lib_dl_dlopen=no
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11584 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11585 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11587 else
11588
11589 lt_cv_dlopen="dyld"
11590 lt_cv_dlopen_libs=
11591 lt_cv_dlopen_self=yes
11592
11593 fi
11594
11595 ;;
11596
11597 *)
11598 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11599 if test "x$ac_cv_func_shl_load" = x""yes; then :
11600 lt_cv_dlopen="shl_load"
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11603 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-ldld $LIBS"
11609 if test x$gcc_no_link = xyes; then
11610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11611 fi
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char shl_load ();
11622 int
11623 main ()
11624 {
11625 return shl_load ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dld_shl_load=yes
11632 else
11633 ac_cv_lib_dld_shl_load=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11640 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11641 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11643 else
11644 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11645 if test "x$ac_cv_func_dlopen" = x""yes; then :
11646 lt_cv_dlopen="dlopen"
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11649 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-ldl $LIBS"
11655 if test x$gcc_no_link = xyes; then
11656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11657 fi
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char dlopen ();
11668 int
11669 main ()
11670 {
11671 return dlopen ();
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dl_dlopen=yes
11678 else
11679 ac_cv_lib_dl_dlopen=no
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11691 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-lsvld $LIBS"
11697 if test x$gcc_no_link = xyes; then
11698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11699 fi
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char dlopen ();
11710 int
11711 main ()
11712 {
11713 return dlopen ();
11714 ;
11715 return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 ac_cv_lib_svld_dlopen=yes
11720 else
11721 ac_cv_lib_svld_dlopen=no
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11728 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11729 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11733 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-ldld $LIBS"
11739 if test x$gcc_no_link = xyes; then
11740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11741 fi
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 char dld_link ();
11752 int
11753 main ()
11754 {
11755 return dld_link ();
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"; then :
11761 ac_cv_lib_dld_dld_link=yes
11762 else
11763 ac_cv_lib_dld_dld_link=no
11764 fi
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11770 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11771 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11772 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11773 fi
11774
11775
11776 fi
11777
11778
11779 fi
11780
11781
11782 fi
11783
11784
11785 fi
11786
11787
11788 fi
11789
11790 ;;
11791 esac
11792
11793 if test "x$lt_cv_dlopen" != xno; then
11794 enable_dlopen=yes
11795 else
11796 enable_dlopen=no
11797 fi
11798
11799 case $lt_cv_dlopen in
11800 dlopen)
11801 save_CPPFLAGS="$CPPFLAGS"
11802 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11803
11804 save_LDFLAGS="$LDFLAGS"
11805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11806
11807 save_LIBS="$LIBS"
11808 LIBS="$lt_cv_dlopen_libs $LIBS"
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11811 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11812 if test "${lt_cv_dlopen_self+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 if test "$cross_compiling" = yes; then :
11816 lt_cv_dlopen_self=cross
11817 else
11818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819 lt_status=$lt_dlunknown
11820 cat > conftest.$ac_ext <<_LT_EOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11823
11824 #if HAVE_DLFCN_H
11825 #include <dlfcn.h>
11826 #endif
11827
11828 #include <stdio.h>
11829
11830 #ifdef RTLD_GLOBAL
11831 # define LT_DLGLOBAL RTLD_GLOBAL
11832 #else
11833 # ifdef DL_GLOBAL
11834 # define LT_DLGLOBAL DL_GLOBAL
11835 # else
11836 # define LT_DLGLOBAL 0
11837 # endif
11838 #endif
11839
11840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841 find out it does not work in some platform. */
11842 #ifndef LT_DLLAZY_OR_NOW
11843 # ifdef RTLD_LAZY
11844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11845 # else
11846 # ifdef DL_LAZY
11847 # define LT_DLLAZY_OR_NOW DL_LAZY
11848 # else
11849 # ifdef RTLD_NOW
11850 # define LT_DLLAZY_OR_NOW RTLD_NOW
11851 # else
11852 # ifdef DL_NOW
11853 # define LT_DLLAZY_OR_NOW DL_NOW
11854 # else
11855 # define LT_DLLAZY_OR_NOW 0
11856 # endif
11857 # endif
11858 # endif
11859 # endif
11860 #endif
11861
11862 /* When -fvisbility=hidden is used, assume the code has been annotated
11863 correspondingly for the symbols needed. */
11864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865 void fnord () __attribute__((visibility("default")));
11866 #endif
11867
11868 void fnord () { int i=42; }
11869 int main ()
11870 {
11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872 int status = $lt_dlunknown;
11873
11874 if (self)
11875 {
11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11877 else
11878 {
11879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 else puts (dlerror ());
11881 }
11882 /* dlclose (self); */
11883 }
11884 else
11885 puts (dlerror ());
11886
11887 return status;
11888 }
11889 _LT_EOF
11890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891 (eval $ac_link) 2>&5
11892 ac_status=$?
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11895 (./conftest; exit; ) >&5 2>/dev/null
11896 lt_status=$?
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11900 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11901 esac
11902 else :
11903 # compilation failed
11904 lt_cv_dlopen_self=no
11905 fi
11906 fi
11907 rm -fr conftest*
11908
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11912 $as_echo "$lt_cv_dlopen_self" >&6; }
11913
11914 if test "x$lt_cv_dlopen_self" = xyes; then
11915 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11917 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11918 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if test "$cross_compiling" = yes; then :
11922 lt_cv_dlopen_self_static=cross
11923 else
11924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11925 lt_status=$lt_dlunknown
11926 cat > conftest.$ac_ext <<_LT_EOF
11927 #line 11927 "configure"
11928 #include "confdefs.h"
11929
11930 #if HAVE_DLFCN_H
11931 #include <dlfcn.h>
11932 #endif
11933
11934 #include <stdio.h>
11935
11936 #ifdef RTLD_GLOBAL
11937 # define LT_DLGLOBAL RTLD_GLOBAL
11938 #else
11939 # ifdef DL_GLOBAL
11940 # define LT_DLGLOBAL DL_GLOBAL
11941 # else
11942 # define LT_DLGLOBAL 0
11943 # endif
11944 #endif
11945
11946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11947 find out it does not work in some platform. */
11948 #ifndef LT_DLLAZY_OR_NOW
11949 # ifdef RTLD_LAZY
11950 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11951 # else
11952 # ifdef DL_LAZY
11953 # define LT_DLLAZY_OR_NOW DL_LAZY
11954 # else
11955 # ifdef RTLD_NOW
11956 # define LT_DLLAZY_OR_NOW RTLD_NOW
11957 # else
11958 # ifdef DL_NOW
11959 # define LT_DLLAZY_OR_NOW DL_NOW
11960 # else
11961 # define LT_DLLAZY_OR_NOW 0
11962 # endif
11963 # endif
11964 # endif
11965 # endif
11966 #endif
11967
11968 /* When -fvisbility=hidden is used, assume the code has been annotated
11969 correspondingly for the symbols needed. */
11970 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11971 void fnord () __attribute__((visibility("default")));
11972 #endif
11973
11974 void fnord () { int i=42; }
11975 int main ()
11976 {
11977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11978 int status = $lt_dlunknown;
11979
11980 if (self)
11981 {
11982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11983 else
11984 {
11985 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11986 else puts (dlerror ());
11987 }
11988 /* dlclose (self); */
11989 }
11990 else
11991 puts (dlerror ());
11992
11993 return status;
11994 }
11995 _LT_EOF
11996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11997 (eval $ac_link) 2>&5
11998 ac_status=$?
11999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12000 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12001 (./conftest; exit; ) >&5 2>/dev/null
12002 lt_status=$?
12003 case x$lt_status in
12004 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12005 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12006 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12007 esac
12008 else :
12009 # compilation failed
12010 lt_cv_dlopen_self_static=no
12011 fi
12012 fi
12013 rm -fr conftest*
12014
12015
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12018 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12019 fi
12020
12021 CPPFLAGS="$save_CPPFLAGS"
12022 LDFLAGS="$save_LDFLAGS"
12023 LIBS="$save_LIBS"
12024 ;;
12025 esac
12026
12027 case $lt_cv_dlopen_self in
12028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12029 *) enable_dlopen_self=unknown ;;
12030 esac
12031
12032 case $lt_cv_dlopen_self_static in
12033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12034 *) enable_dlopen_self_static=unknown ;;
12035 esac
12036 fi
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054 striplib=
12055 old_striplib=
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12057 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12058 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12059 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12060 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062 $as_echo "yes" >&6; }
12063 else
12064 # FIXME - insert some real tests, host_os isn't really good enough
12065 case $host_os in
12066 darwin*)
12067 if test -n "$STRIP" ; then
12068 striplib="$STRIP -x"
12069 old_striplib="$STRIP -S"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071 $as_echo "yes" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076 ;;
12077 *)
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 ;;
12081 esac
12082 fi
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095 # Report which library types will actually be built
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12097 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12099 $as_echo "$can_build_shared" >&6; }
12100
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12102 $as_echo_n "checking whether to build shared libraries... " >&6; }
12103 test "$can_build_shared" = "no" && enable_shared=no
12104
12105 # On AIX, shared libraries and static libraries use the same namespace, and
12106 # are all built from PIC.
12107 case $host_os in
12108 aix3*)
12109 test "$enable_shared" = yes && enable_static=no
12110 if test -n "$RANLIB"; then
12111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12112 postinstall_cmds='$RANLIB $lib'
12113 fi
12114 ;;
12115
12116 aix[4-9]*)
12117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12118 test "$enable_shared" = yes && enable_static=no
12119 fi
12120 ;;
12121 esac
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12123 $as_echo "$enable_shared" >&6; }
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12126 $as_echo_n "checking whether to build static libraries... " >&6; }
12127 # Make sure either enable_shared or enable_static is yes.
12128 test "$enable_shared" = yes || enable_static=yes
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12130 $as_echo "$enable_static" >&6; }
12131
12132
12133
12134
12135 fi
12136 ac_ext=c
12137 ac_cpp='$CPP $CPPFLAGS'
12138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12141
12142 CC="$lt_save_CC"
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 ac_config_commands="$ac_config_commands libtool"
12157
12158
12159
12160
12161 # Only expand once:
12162
12163
12164 for ac_prog in gawk mawk nawk awk
12165 do
12166 # Extract the first word of "$ac_prog", so it can be a program name with args.
12167 set dummy $ac_prog; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if test "${ac_cv_prog_AWK+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 if test -n "$AWK"; then
12174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12175 else
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12178 do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_prog_AWK="$ac_prog"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12186 fi
12187 done
12188 done
12189 IFS=$as_save_IFS
12190
12191 fi
12192 fi
12193 AWK=$ac_cv_prog_AWK
12194 if test -n "$AWK"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12196 $as_echo "$AWK" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200 fi
12201
12202
12203 test -n "$AWK" && break
12204 done
12205
12206 ac_ext=c
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12211 if test -n "$ac_tool_prefix"; then
12212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if test "${ac_cv_prog_CC+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 if test -n "$CC"; then
12220 ac_cv_prog_CC="$CC" # Let the user override the test.
12221 else
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
12228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233 done
12234 done
12235 IFS=$as_save_IFS
12236
12237 fi
12238 fi
12239 CC=$ac_cv_prog_CC
12240 if test -n "$CC"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12242 $as_echo "$CC" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248
12249 fi
12250 if test -z "$ac_cv_prog_CC"; then
12251 ac_ct_CC=$CC
12252 # Extract the first word of "gcc", so it can be a program name with args.
12253 set dummy gcc; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -n "$ac_ct_CC"; then
12260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_prog_ac_ct_CC="gcc"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273 done
12274 done
12275 IFS=$as_save_IFS
12276
12277 fi
12278 fi
12279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12280 if test -n "$ac_ct_CC"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12282 $as_echo "$ac_ct_CC" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288 if test "x$ac_ct_CC" = x; then
12289 CC=""
12290 else
12291 case $cross_compiling:$ac_tool_warned in
12292 yes:)
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295 ac_tool_warned=yes ;;
12296 esac
12297 CC=$ac_ct_CC
12298 fi
12299 else
12300 CC="$ac_cv_prog_CC"
12301 fi
12302
12303 if test -z "$CC"; then
12304 if test -n "$ac_tool_prefix"; then
12305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12306 set dummy ${ac_tool_prefix}cc; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_prog_CC+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if test -n "$CC"; then
12313 ac_cv_prog_CC="$CC" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_prog_CC="${ac_tool_prefix}cc"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12325 fi
12326 done
12327 done
12328 IFS=$as_save_IFS
12329
12330 fi
12331 fi
12332 CC=$ac_cv_prog_CC
12333 if test -n "$CC"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12335 $as_echo "$CC" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 fi
12340
12341
12342 fi
12343 fi
12344 if test -z "$CC"; then
12345 # Extract the first word of "cc", so it can be a program name with args.
12346 set dummy cc; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if test "${ac_cv_prog_CC+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 if test -n "$CC"; then
12353 ac_cv_prog_CC="$CC" # Let the user override the test.
12354 else
12355 ac_prog_rejected=no
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12364 ac_prog_rejected=yes
12365 continue
12366 fi
12367 ac_cv_prog_CC="cc"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12370 fi
12371 done
12372 done
12373 IFS=$as_save_IFS
12374
12375 if test $ac_prog_rejected = yes; then
12376 # We found a bogon in the path, so make sure we never use it.
12377 set dummy $ac_cv_prog_CC
12378 shift
12379 if test $# != 0; then
12380 # We chose a different compiler from the bogus one.
12381 # However, it has the same basename, so the bogon will be chosen
12382 # first if we set CC to just the basename; use the full file name.
12383 shift
12384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12385 fi
12386 fi
12387 fi
12388 fi
12389 CC=$ac_cv_prog_CC
12390 if test -n "$CC"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12392 $as_echo "$CC" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$CC"; then
12401 if test -n "$ac_tool_prefix"; then
12402 for ac_prog in cl.exe
12403 do
12404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407 $as_echo_n "checking for $ac_word... " >&6; }
12408 if test "${ac_cv_prog_CC+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 if test -n "$CC"; then
12412 ac_cv_prog_CC="$CC" # Let the user override the test.
12413 else
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12416 do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425 done
12426 done
12427 IFS=$as_save_IFS
12428
12429 fi
12430 fi
12431 CC=$ac_cv_prog_CC
12432 if test -n "$CC"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12434 $as_echo "$CC" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12438 fi
12439
12440
12441 test -n "$CC" && break
12442 done
12443 fi
12444 if test -z "$CC"; then
12445 ac_ct_CC=$CC
12446 for ac_prog in cl.exe
12447 do
12448 # Extract the first word of "$ac_prog", so it can be a program name with args.
12449 set dummy $ac_prog; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 if test -n "$ac_ct_CC"; then
12456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12457 else
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12460 do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_ac_ct_CC="$ac_prog"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12468 fi
12469 done
12470 done
12471 IFS=$as_save_IFS
12472
12473 fi
12474 fi
12475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12476 if test -n "$ac_ct_CC"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12478 $as_echo "$ac_ct_CC" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483
12484
12485 test -n "$ac_ct_CC" && break
12486 done
12487
12488 if test "x$ac_ct_CC" = x; then
12489 CC=""
12490 else
12491 case $cross_compiling:$ac_tool_warned in
12492 yes:)
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12495 ac_tool_warned=yes ;;
12496 esac
12497 CC=$ac_ct_CC
12498 fi
12499 fi
12500
12501 fi
12502
12503
12504 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error "no acceptable C compiler found in \$PATH
12507 See \`config.log' for more details." "$LINENO" 5; }
12508
12509 # Provide some information about the compiler.
12510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12511 set X $ac_compile
12512 ac_compiler=$2
12513 for ac_option in --version -v -V -qversion; do
12514 { { ac_try="$ac_compiler $ac_option >&5"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12520 $as_echo "$ac_try_echo"; } >&5
12521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12522 ac_status=$?
12523 if test -s conftest.err; then
12524 sed '10a\
12525 ... rest of stderr output deleted ...
12526 10q' conftest.err >conftest.er1
12527 cat conftest.er1 >&5
12528 rm -f conftest.er1 conftest.err
12529 fi
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; }
12532 done
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12535 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12536 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542 int
12543 main ()
12544 {
12545 #ifndef __GNUC__
12546 choke me
12547 #endif
12548
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_compile "$LINENO"; then :
12554 ac_compiler_gnu=yes
12555 else
12556 ac_compiler_gnu=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12560
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12563 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12564 if test $ac_compiler_gnu = yes; then
12565 GCC=yes
12566 else
12567 GCC=
12568 fi
12569 ac_test_CFLAGS=${CFLAGS+set}
12570 ac_save_CFLAGS=$CFLAGS
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12572 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12573 if test "${ac_cv_prog_cc_g+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_save_c_werror_flag=$ac_c_werror_flag
12577 ac_c_werror_flag=yes
12578 ac_cv_prog_cc_g=no
12579 CFLAGS="-g"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582
12583 int
12584 main ()
12585 {
12586
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 if ac_fn_c_try_compile "$LINENO"; then :
12592 ac_cv_prog_cc_g=yes
12593 else
12594 CFLAGS=""
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 int
12599 main ()
12600 {
12601
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607
12608 else
12609 ac_c_werror_flag=$ac_save_c_werror_flag
12610 CFLAGS="-g"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613
12614 int
12615 main ()
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_compile "$LINENO"; then :
12623 ac_cv_prog_cc_g=yes
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 ac_c_werror_flag=$ac_save_c_werror_flag
12631 fi
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12633 $as_echo "$ac_cv_prog_cc_g" >&6; }
12634 if test "$ac_test_CFLAGS" = set; then
12635 CFLAGS=$ac_save_CFLAGS
12636 elif test $ac_cv_prog_cc_g = yes; then
12637 if test "$GCC" = yes; then
12638 CFLAGS="-g -O2"
12639 else
12640 CFLAGS="-g"
12641 fi
12642 else
12643 if test "$GCC" = yes; then
12644 CFLAGS="-O2"
12645 else
12646 CFLAGS=
12647 fi
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12651 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 ac_cv_prog_cc_c89=no
12655 ac_save_CC=$CC
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #include <stdarg.h>
12659 #include <stdio.h>
12660 #include <sys/types.h>
12661 #include <sys/stat.h>
12662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12663 struct buf { int x; };
12664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12665 static char *e (p, i)
12666 char **p;
12667 int i;
12668 {
12669 return p[i];
12670 }
12671 static char *f (char * (*g) (char **, int), char **p, ...)
12672 {
12673 char *s;
12674 va_list v;
12675 va_start (v,p);
12676 s = g (p, va_arg (v,int));
12677 va_end (v);
12678 return s;
12679 }
12680
12681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12682 function prototypes and stuff, but not '\xHH' hex character constants.
12683 These don't provoke an error unfortunately, instead are silently treated
12684 as 'x'. The following induces an error, until -std is added to get
12685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12686 array size at least. It's necessary to write '\x00'==0 to get something
12687 that's true only with -std. */
12688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12689
12690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12691 inside strings and character constants. */
12692 #define FOO(x) 'x'
12693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12694
12695 int test (int i, double x);
12696 struct s1 {int (*f) (int a);};
12697 struct s2 {int (*f) (double a);};
12698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12699 int argc;
12700 char **argv;
12701 int
12702 main ()
12703 {
12704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12705 ;
12706 return 0;
12707 }
12708 _ACEOF
12709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12711 do
12712 CC="$ac_save_CC $ac_arg"
12713 if ac_fn_c_try_compile "$LINENO"; then :
12714 ac_cv_prog_cc_c89=$ac_arg
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext
12717 test "x$ac_cv_prog_cc_c89" != "xno" && break
12718 done
12719 rm -f conftest.$ac_ext
12720 CC=$ac_save_CC
12721
12722 fi
12723 # AC_CACHE_VAL
12724 case "x$ac_cv_prog_cc_c89" in
12725 x)
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12727 $as_echo "none needed" >&6; } ;;
12728 xno)
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12730 $as_echo "unsupported" >&6; } ;;
12731 *)
12732 CC="$CC $ac_cv_prog_cc_c89"
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12735 esac
12736 if test "x$ac_cv_prog_cc_c89" != xno; then :
12737
12738 fi
12739
12740 ac_ext=c
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745
12746 depcc="$CC" am_compiler_list=
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12749 $as_echo_n "checking dependency style of $depcc... " >&6; }
12750 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12754 # We make a subdir and do the tests there. Otherwise we can end up
12755 # making bogus files that we don't know about and never remove. For
12756 # instance it was reported that on HP-UX the gcc test will end up
12757 # making a dummy file named `D' -- because `-MD' means `put the output
12758 # in D'.
12759 mkdir conftest.dir
12760 # Copy depcomp to subdir because otherwise we won't find it if we're
12761 # using a relative directory.
12762 cp "$am_depcomp" conftest.dir
12763 cd conftest.dir
12764 # We will build objects and dependencies in a subdirectory because
12765 # it helps to detect inapplicable dependency modes. For instance
12766 # both Tru64's cc and ICC support -MD to output dependencies as a
12767 # side effect of compilation, but ICC will put the dependencies in
12768 # the current directory while Tru64 will put them in the object
12769 # directory.
12770 mkdir sub
12771
12772 am_cv_CC_dependencies_compiler_type=none
12773 if test "$am_compiler_list" = ""; then
12774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12775 fi
12776 am__universal=false
12777 case " $depcc " in #(
12778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12779 esac
12780
12781 for depmode in $am_compiler_list; do
12782 # Setup a source with many dependencies, because some compilers
12783 # like to wrap large dependency lists on column 80 (with \), and
12784 # we should not choose a depcomp mode which is confused by this.
12785 #
12786 # We need to recreate these files for each test, as the compiler may
12787 # overwrite some of them when testing with obscure command lines.
12788 # This happens at least with the AIX C compiler.
12789 : > sub/conftest.c
12790 for i in 1 2 3 4 5 6; do
12791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12793 # Solaris 8's {/usr,}/bin/sh.
12794 touch sub/conftst$i.h
12795 done
12796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12797
12798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12799 # mode. It turns out that the SunPro C++ compiler does not properly
12800 # handle `-M -o', and we need to detect this. Also, some Intel
12801 # versions had trouble with output in subdirs
12802 am__obj=sub/conftest.${OBJEXT-o}
12803 am__minus_obj="-o $am__obj"
12804 case $depmode in
12805 gcc)
12806 # This depmode causes a compiler race in universal mode.
12807 test "$am__universal" = false || continue
12808 ;;
12809 nosideeffect)
12810 # after this tag, mechanisms are not by side-effect, so they'll
12811 # only be used when explicitly requested
12812 if test "x$enable_dependency_tracking" = xyes; then
12813 continue
12814 else
12815 break
12816 fi
12817 ;;
12818 msvisualcpp | msvcmsys)
12819 # This compiler won't grok `-c -o', but also, the minuso test has
12820 # not run yet. These depmodes are late enough in the game, and
12821 # so weak that their functioning should not be impacted.
12822 am__obj=conftest.${OBJEXT-o}
12823 am__minus_obj=
12824 ;;
12825 none) break ;;
12826 esac
12827 if depmode=$depmode \
12828 source=sub/conftest.c object=$am__obj \
12829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12831 >/dev/null 2>conftest.err &&
12832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12836 # icc doesn't choke on unknown options, it will just issue warnings
12837 # or remarks (even with -Werror). So we grep stderr for any message
12838 # that says an option was ignored or not supported.
12839 # When given -MP, icc 7.0 and 7.1 complain thusly:
12840 # icc: Command line warning: ignoring option '-M'; no argument required
12841 # The diagnosis changed in icc 8.0:
12842 # icc: Command line remark: option '-MP' not supported
12843 if (grep 'ignoring option' conftest.err ||
12844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12845 am_cv_CC_dependencies_compiler_type=$depmode
12846 break
12847 fi
12848 fi
12849 done
12850
12851 cd ..
12852 rm -rf conftest.dir
12853 else
12854 am_cv_CC_dependencies_compiler_type=none
12855 fi
12856
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12859 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12861
12862 if
12863 test "x$enable_dependency_tracking" != xno \
12864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12865 am__fastdepCC_TRUE=
12866 am__fastdepCC_FALSE='#'
12867 else
12868 am__fastdepCC_TRUE='#'
12869 am__fastdepCC_FALSE=
12870 fi
12871
12872
12873 if test "x$CC" != xcc; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12875 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12878 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12879 fi
12880 set dummy $CC; ac_cc=`$as_echo "$2" |
12881 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12882 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887
12888 int
12889 main ()
12890 {
12891
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 # Make sure it works both with $CC and with simple cc.
12897 # We do the test twice because some compilers refuse to overwrite an
12898 # existing .o file with -o, though they will create one.
12899 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12900 rm -f conftest2.*
12901 if { { case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12906 $as_echo "$ac_try_echo"; } >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; } &&
12911 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914 esac
12915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12916 $as_echo "$ac_try_echo"; } >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; };
12921 then
12922 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12923 if test "x$CC" != xcc; then
12924 # Test first that cc exists at all.
12925 if { ac_try='cc -c conftest.$ac_ext >&5'
12926 { { case "(($ac_try" in
12927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928 *) ac_try_echo=$ac_try;;
12929 esac
12930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12931 $as_echo "$ac_try_echo"; } >&5
12932 (eval "$ac_try") 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12935 test $ac_status = 0; }; }; then
12936 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12937 rm -f conftest2.*
12938 if { { case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941 esac
12942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12943 $as_echo "$ac_try_echo"; } >&5
12944 (eval "$ac_try") 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; } &&
12948 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951 esac
12952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12953 $as_echo "$ac_try_echo"; } >&5
12954 (eval "$ac_try") 2>&5
12955 ac_status=$?
12956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12957 test $ac_status = 0; };
12958 then
12959 # cc works too.
12960 :
12961 else
12962 # cc exists but doesn't like -o.
12963 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12964 fi
12965 fi
12966 fi
12967 else
12968 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12969 fi
12970 rm -f core conftest*
12971
12972 fi
12973 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975 $as_echo "yes" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979
12980 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12981
12982 fi
12983
12984 # FIXME: we rely on the cache variable name because
12985 # there is no other way.
12986 set dummy $CC
12987 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12988 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12989 if test "$am_t" != yes; then
12990 # Losing compiler, so override with the script.
12991 # FIXME: It is wrong to rewrite CC.
12992 # But if we don't then we get into trouble of one sort or another.
12993 # A longer-term fix would be to have automake use am__CC in this case,
12994 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12995 CC="$am_aux_dir/compile $CC"
12996 fi
12997
12998
12999 ac_ext=c
13000 ac_cpp='$CPP $CPPFLAGS'
13001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13005 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13006 # On Suns, sometimes $CPP names a directory.
13007 if test -n "$CPP" && test -d "$CPP"; then
13008 CPP=
13009 fi
13010 if test -z "$CPP"; then
13011 if test "${ac_cv_prog_CPP+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 # Double quotes because CPP needs to be expanded
13015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13016 do
13017 ac_preproc_ok=false
13018 for ac_c_preproc_warn_flag in '' yes
13019 do
13020 # Use a header file that comes with gcc, so configuring glibc
13021 # with a fresh cross-compiler works.
13022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023 # <limits.h> exists even on freestanding compilers.
13024 # On the NeXT, cc -E runs the code through the compiler's parser,
13025 # not just through cpp. "Syntax error" is here to catch this case.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 #ifdef __STDC__
13029 # include <limits.h>
13030 #else
13031 # include <assert.h>
13032 #endif
13033 Syntax error
13034 _ACEOF
13035 if ac_fn_c_try_cpp "$LINENO"; then :
13036
13037 else
13038 # Broken: fails on valid input.
13039 continue
13040 fi
13041 rm -f conftest.err conftest.$ac_ext
13042
13043 # OK, works on sane cases. Now check whether nonexistent headers
13044 # can be detected and how.
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 #include <ac_nonexistent.h>
13048 _ACEOF
13049 if ac_fn_c_try_cpp "$LINENO"; then :
13050 # Broken: success on invalid input.
13051 continue
13052 else
13053 # Passes both tests.
13054 ac_preproc_ok=:
13055 break
13056 fi
13057 rm -f conftest.err conftest.$ac_ext
13058
13059 done
13060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13061 rm -f conftest.err conftest.$ac_ext
13062 if $ac_preproc_ok; then :
13063 break
13064 fi
13065
13066 done
13067 ac_cv_prog_CPP=$CPP
13068
13069 fi
13070 CPP=$ac_cv_prog_CPP
13071 else
13072 ac_cv_prog_CPP=$CPP
13073 fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13075 $as_echo "$CPP" >&6; }
13076 ac_preproc_ok=false
13077 for ac_c_preproc_warn_flag in '' yes
13078 do
13079 # Use a header file that comes with gcc, so configuring glibc
13080 # with a fresh cross-compiler works.
13081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 # <limits.h> exists even on freestanding compilers.
13083 # On the NeXT, cc -E runs the code through the compiler's parser,
13084 # not just through cpp. "Syntax error" is here to catch this case.
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 #ifdef __STDC__
13088 # include <limits.h>
13089 #else
13090 # include <assert.h>
13091 #endif
13092 Syntax error
13093 _ACEOF
13094 if ac_fn_c_try_cpp "$LINENO"; then :
13095
13096 else
13097 # Broken: fails on valid input.
13098 continue
13099 fi
13100 rm -f conftest.err conftest.$ac_ext
13101
13102 # OK, works on sane cases. Now check whether nonexistent headers
13103 # can be detected and how.
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <ac_nonexistent.h>
13107 _ACEOF
13108 if ac_fn_c_try_cpp "$LINENO"; then :
13109 # Broken: success on invalid input.
13110 continue
13111 else
13112 # Passes both tests.
13113 ac_preproc_ok=:
13114 break
13115 fi
13116 rm -f conftest.err conftest.$ac_ext
13117
13118 done
13119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13120 rm -f conftest.err conftest.$ac_ext
13121 if $ac_preproc_ok; then :
13122
13123 else
13124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13126 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13127 See \`config.log' for more details." "$LINENO" 5; }
13128 fi
13129
13130 ac_ext=c
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13135
13136 ac_ext=cpp
13137 ac_cpp='$CXXCPP $CPPFLAGS'
13138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13141 if test -z "$CXX"; then
13142 if test -n "$CCC"; then
13143 CXX=$CCC
13144 else
13145 if test -n "$ac_tool_prefix"; then
13146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13147 do
13148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151 $as_echo_n "checking for $ac_word... " >&6; }
13152 if test "${ac_cv_prog_CXX+set}" = set; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 if test -n "$CXX"; then
13156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13157 else
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13160 do
13161 IFS=$as_save_IFS
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 CXX=$ac_cv_prog_CXX
13176 if test -n "$CXX"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13178 $as_echo "$CXX" >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184
13185 test -n "$CXX" && break
13186 done
13187 fi
13188 if test -z "$CXX"; then
13189 ac_ct_CXX=$CXX
13190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13191 do
13192 # Extract the first word of "$ac_prog", so it can be a program name with args.
13193 set dummy $ac_prog; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 if test -n "$ac_ct_CXX"; then
13200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13209 ac_cv_prog_ac_ct_CXX="$ac_prog"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13212 fi
13213 done
13214 done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13220 if test -n "$ac_ct_CXX"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13222 $as_echo "$ac_ct_CXX" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227
13228
13229 test -n "$ac_ct_CXX" && break
13230 done
13231
13232 if test "x$ac_ct_CXX" = x; then
13233 CXX="g++"
13234 else
13235 case $cross_compiling:$ac_tool_warned in
13236 yes:)
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13239 ac_tool_warned=yes ;;
13240 esac
13241 CXX=$ac_ct_CXX
13242 fi
13243 fi
13244
13245 fi
13246 fi
13247 # Provide some information about the compiler.
13248 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13249 set X $ac_compile
13250 ac_compiler=$2
13251 for ac_option in --version -v -V -qversion; do
13252 { { ac_try="$ac_compiler $ac_option >&5"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13258 $as_echo "$ac_try_echo"; } >&5
13259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13260 ac_status=$?
13261 if test -s conftest.err; then
13262 sed '10a\
13263 ... rest of stderr output deleted ...
13264 10q' conftest.err >conftest.er1
13265 cat conftest.er1 >&5
13266 rm -f conftest.er1 conftest.err
13267 fi
13268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269 test $ac_status = 0; }
13270 done
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13273 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13274 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279
13280 int
13281 main ()
13282 {
13283 #ifndef __GNUC__
13284 choke me
13285 #endif
13286
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_cxx_try_compile "$LINENO"; then :
13292 ac_compiler_gnu=yes
13293 else
13294 ac_compiler_gnu=no
13295 fi
13296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13298
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13301 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13302 if test $ac_compiler_gnu = yes; then
13303 GXX=yes
13304 else
13305 GXX=
13306 fi
13307 ac_test_CXXFLAGS=${CXXFLAGS+set}
13308 ac_save_CXXFLAGS=$CXXFLAGS
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13310 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13311 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13315 ac_cxx_werror_flag=yes
13316 ac_cv_prog_cxx_g=no
13317 CXXFLAGS="-g"
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320
13321 int
13322 main ()
13323 {
13324
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_cxx_try_compile "$LINENO"; then :
13330 ac_cv_prog_cxx_g=yes
13331 else
13332 CXXFLAGS=""
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335
13336 int
13337 main ()
13338 {
13339
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_cxx_try_compile "$LINENO"; then :
13345
13346 else
13347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13348 CXXFLAGS="-g"
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351
13352 int
13353 main ()
13354 {
13355
13356 ;
13357 return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_cxx_try_compile "$LINENO"; then :
13361 ac_cv_prog_cxx_g=yes
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13371 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13372 if test "$ac_test_CXXFLAGS" = set; then
13373 CXXFLAGS=$ac_save_CXXFLAGS
13374 elif test $ac_cv_prog_cxx_g = yes; then
13375 if test "$GXX" = yes; then
13376 CXXFLAGS="-g -O2"
13377 else
13378 CXXFLAGS="-g"
13379 fi
13380 else
13381 if test "$GXX" = yes; then
13382 CXXFLAGS="-O2"
13383 else
13384 CXXFLAGS=
13385 fi
13386 fi
13387 ac_ext=c
13388 ac_cpp='$CPP $CPPFLAGS'
13389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13392
13393 depcc="$CXX" am_compiler_list=
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13396 $as_echo_n "checking dependency style of $depcc... " >&6; }
13397 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13401 # We make a subdir and do the tests there. Otherwise we can end up
13402 # making bogus files that we don't know about and never remove. For
13403 # instance it was reported that on HP-UX the gcc test will end up
13404 # making a dummy file named `D' -- because `-MD' means `put the output
13405 # in D'.
13406 mkdir conftest.dir
13407 # Copy depcomp to subdir because otherwise we won't find it if we're
13408 # using a relative directory.
13409 cp "$am_depcomp" conftest.dir
13410 cd conftest.dir
13411 # We will build objects and dependencies in a subdirectory because
13412 # it helps to detect inapplicable dependency modes. For instance
13413 # both Tru64's cc and ICC support -MD to output dependencies as a
13414 # side effect of compilation, but ICC will put the dependencies in
13415 # the current directory while Tru64 will put them in the object
13416 # directory.
13417 mkdir sub
13418
13419 am_cv_CXX_dependencies_compiler_type=none
13420 if test "$am_compiler_list" = ""; then
13421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13422 fi
13423 am__universal=false
13424 case " $depcc " in #(
13425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13426 esac
13427
13428 for depmode in $am_compiler_list; do
13429 # Setup a source with many dependencies, because some compilers
13430 # like to wrap large dependency lists on column 80 (with \), and
13431 # we should not choose a depcomp mode which is confused by this.
13432 #
13433 # We need to recreate these files for each test, as the compiler may
13434 # overwrite some of them when testing with obscure command lines.
13435 # This happens at least with the AIX C compiler.
13436 : > sub/conftest.c
13437 for i in 1 2 3 4 5 6; do
13438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13440 # Solaris 8's {/usr,}/bin/sh.
13441 touch sub/conftst$i.h
13442 done
13443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13444
13445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13446 # mode. It turns out that the SunPro C++ compiler does not properly
13447 # handle `-M -o', and we need to detect this. Also, some Intel
13448 # versions had trouble with output in subdirs
13449 am__obj=sub/conftest.${OBJEXT-o}
13450 am__minus_obj="-o $am__obj"
13451 case $depmode in
13452 gcc)
13453 # This depmode causes a compiler race in universal mode.
13454 test "$am__universal" = false || continue
13455 ;;
13456 nosideeffect)
13457 # after this tag, mechanisms are not by side-effect, so they'll
13458 # only be used when explicitly requested
13459 if test "x$enable_dependency_tracking" = xyes; then
13460 continue
13461 else
13462 break
13463 fi
13464 ;;
13465 msvisualcpp | msvcmsys)
13466 # This compiler won't grok `-c -o', but also, the minuso test has
13467 # not run yet. These depmodes are late enough in the game, and
13468 # so weak that their functioning should not be impacted.
13469 am__obj=conftest.${OBJEXT-o}
13470 am__minus_obj=
13471 ;;
13472 none) break ;;
13473 esac
13474 if depmode=$depmode \
13475 source=sub/conftest.c object=$am__obj \
13476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13478 >/dev/null 2>conftest.err &&
13479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13483 # icc doesn't choke on unknown options, it will just issue warnings
13484 # or remarks (even with -Werror). So we grep stderr for any message
13485 # that says an option was ignored or not supported.
13486 # When given -MP, icc 7.0 and 7.1 complain thusly:
13487 # icc: Command line warning: ignoring option '-M'; no argument required
13488 # The diagnosis changed in icc 8.0:
13489 # icc: Command line remark: option '-MP' not supported
13490 if (grep 'ignoring option' conftest.err ||
13491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13492 am_cv_CXX_dependencies_compiler_type=$depmode
13493 break
13494 fi
13495 fi
13496 done
13497
13498 cd ..
13499 rm -rf conftest.dir
13500 else
13501 am_cv_CXX_dependencies_compiler_type=none
13502 fi
13503
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13506 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13507 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13508
13509 if
13510 test "x$enable_dependency_tracking" != xno \
13511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13512 am__fastdepCXX_TRUE=
13513 am__fastdepCXX_FALSE='#'
13514 else
13515 am__fastdepCXX_TRUE='#'
13516 am__fastdepCXX_FALSE=
13517 fi
13518
13519
13520 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13521 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13522 (test "X$CXX" != "Xg++"))) ; then
13523 ac_ext=cpp
13524 ac_cpp='$CXXCPP $CPPFLAGS'
13525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13529 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13530 if test -z "$CXXCPP"; then
13531 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 # Double quotes because CXXCPP needs to be expanded
13535 for CXXCPP in "$CXX -E" "/lib/cpp"
13536 do
13537 ac_preproc_ok=false
13538 for ac_cxx_preproc_warn_flag in '' yes
13539 do
13540 # Use a header file that comes with gcc, so configuring glibc
13541 # with a fresh cross-compiler works.
13542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13543 # <limits.h> exists even on freestanding compilers.
13544 # On the NeXT, cc -E runs the code through the compiler's parser,
13545 # not just through cpp. "Syntax error" is here to catch this case.
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548 #ifdef __STDC__
13549 # include <limits.h>
13550 #else
13551 # include <assert.h>
13552 #endif
13553 Syntax error
13554 _ACEOF
13555 if ac_fn_cxx_try_cpp "$LINENO"; then :
13556
13557 else
13558 # Broken: fails on valid input.
13559 continue
13560 fi
13561 rm -f conftest.err conftest.$ac_ext
13562
13563 # OK, works on sane cases. Now check whether nonexistent headers
13564 # can be detected and how.
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 #include <ac_nonexistent.h>
13568 _ACEOF
13569 if ac_fn_cxx_try_cpp "$LINENO"; then :
13570 # Broken: success on invalid input.
13571 continue
13572 else
13573 # Passes both tests.
13574 ac_preproc_ok=:
13575 break
13576 fi
13577 rm -f conftest.err conftest.$ac_ext
13578
13579 done
13580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13581 rm -f conftest.err conftest.$ac_ext
13582 if $ac_preproc_ok; then :
13583 break
13584 fi
13585
13586 done
13587 ac_cv_prog_CXXCPP=$CXXCPP
13588
13589 fi
13590 CXXCPP=$ac_cv_prog_CXXCPP
13591 else
13592 ac_cv_prog_CXXCPP=$CXXCPP
13593 fi
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13595 $as_echo "$CXXCPP" >&6; }
13596 ac_preproc_ok=false
13597 for ac_cxx_preproc_warn_flag in '' yes
13598 do
13599 # Use a header file that comes with gcc, so configuring glibc
13600 # with a fresh cross-compiler works.
13601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13602 # <limits.h> exists even on freestanding compilers.
13603 # On the NeXT, cc -E runs the code through the compiler's parser,
13604 # not just through cpp. "Syntax error" is here to catch this case.
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 #ifdef __STDC__
13608 # include <limits.h>
13609 #else
13610 # include <assert.h>
13611 #endif
13612 Syntax error
13613 _ACEOF
13614 if ac_fn_cxx_try_cpp "$LINENO"; then :
13615
13616 else
13617 # Broken: fails on valid input.
13618 continue
13619 fi
13620 rm -f conftest.err conftest.$ac_ext
13621
13622 # OK, works on sane cases. Now check whether nonexistent headers
13623 # can be detected and how.
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 #include <ac_nonexistent.h>
13627 _ACEOF
13628 if ac_fn_cxx_try_cpp "$LINENO"; then :
13629 # Broken: success on invalid input.
13630 continue
13631 else
13632 # Passes both tests.
13633 ac_preproc_ok=:
13634 break
13635 fi
13636 rm -f conftest.err conftest.$ac_ext
13637
13638 done
13639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13640 rm -f conftest.err conftest.$ac_ext
13641 if $ac_preproc_ok; then :
13642
13643 else
13644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13646 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13647 See \`config.log' for more details." "$LINENO" 5; }
13648 fi
13649
13650 ac_ext=c
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13655
13656 else
13657 _lt_caught_CXX_error=yes
13658 fi
13659
13660 ac_ext=cpp
13661 ac_cpp='$CXXCPP $CPPFLAGS'
13662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13665
13666 archive_cmds_need_lc_CXX=no
13667 allow_undefined_flag_CXX=
13668 always_export_symbols_CXX=no
13669 archive_expsym_cmds_CXX=
13670 compiler_needs_object_CXX=no
13671 export_dynamic_flag_spec_CXX=
13672 hardcode_direct_CXX=no
13673 hardcode_direct_absolute_CXX=no
13674 hardcode_libdir_flag_spec_CXX=
13675 hardcode_libdir_flag_spec_ld_CXX=
13676 hardcode_libdir_separator_CXX=
13677 hardcode_minus_L_CXX=no
13678 hardcode_shlibpath_var_CXX=unsupported
13679 hardcode_automatic_CXX=no
13680 inherit_rpath_CXX=no
13681 module_cmds_CXX=
13682 module_expsym_cmds_CXX=
13683 link_all_deplibs_CXX=unknown
13684 old_archive_cmds_CXX=$old_archive_cmds
13685 reload_flag_CXX=$reload_flag
13686 reload_cmds_CXX=$reload_cmds
13687 no_undefined_flag_CXX=
13688 whole_archive_flag_spec_CXX=
13689 enable_shared_with_static_runtimes_CXX=no
13690
13691 # Source file extension for C++ test sources.
13692 ac_ext=cpp
13693
13694 # Object file extension for compiled C++ test sources.
13695 objext=o
13696 objext_CXX=$objext
13697
13698 # No sense in running all these tests if we already determined that
13699 # the CXX compiler isn't working. Some variables (like enable_shared)
13700 # are currently assumed to apply to all compilers on this platform,
13701 # and will be corrupted by setting them based on a non-working compiler.
13702 if test "$_lt_caught_CXX_error" != yes; then
13703 # Code to be used in simple compile tests
13704 lt_simple_compile_test_code="int some_variable = 0;"
13705
13706 # Code to be used in simple link tests
13707 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13708
13709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13710
13711
13712
13713
13714
13715
13716 # If no C compiler was specified, use CC.
13717 LTCC=${LTCC-"$CC"}
13718
13719 # If no C compiler flags were specified, use CFLAGS.
13720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13721
13722 # Allow CC to be a program name with arguments.
13723 compiler=$CC
13724
13725
13726 # save warnings/boilerplate of simple test code
13727 ac_outfile=conftest.$ac_objext
13728 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13729 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13730 _lt_compiler_boilerplate=`cat conftest.err`
13731 $RM conftest*
13732
13733 ac_outfile=conftest.$ac_objext
13734 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13735 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13736 _lt_linker_boilerplate=`cat conftest.err`
13737 $RM -r conftest*
13738
13739
13740 # Allow CC to be a program name with arguments.
13741 lt_save_CC=$CC
13742 lt_save_LD=$LD
13743 lt_save_GCC=$GCC
13744 GCC=$GXX
13745 lt_save_with_gnu_ld=$with_gnu_ld
13746 lt_save_path_LD=$lt_cv_path_LD
13747 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13748 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13749 else
13750 $as_unset lt_cv_prog_gnu_ld
13751 fi
13752 if test -n "${lt_cv_path_LDCXX+set}"; then
13753 lt_cv_path_LD=$lt_cv_path_LDCXX
13754 else
13755 $as_unset lt_cv_path_LD
13756 fi
13757 test -z "${LDCXX+set}" || LD=$LDCXX
13758 CC=${CXX-"c++"}
13759 compiler=$CC
13760 compiler_CXX=$CC
13761 for cc_temp in $compiler""; do
13762 case $cc_temp in
13763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13765 \-*) ;;
13766 *) break;;
13767 esac
13768 done
13769 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13770
13771
13772 if test -n "$compiler"; then
13773 # We don't want -fno-exception when compiling C++ code, so set the
13774 # no_builtin_flag separately
13775 if test "$GXX" = yes; then
13776 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13777 else
13778 lt_prog_compiler_no_builtin_flag_CXX=
13779 fi
13780
13781 if test "$GXX" = yes; then
13782 # Set up default GNU C++ configuration
13783
13784
13785
13786 # Check whether --with-gnu-ld was given.
13787 if test "${with_gnu_ld+set}" = set; then :
13788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13789 else
13790 with_gnu_ld=no
13791 fi
13792
13793 ac_prog=ld
13794 if test "$GCC" = yes; then
13795 # Check if gcc -print-prog-name=ld gives a path.
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13797 $as_echo_n "checking for ld used by $CC... " >&6; }
13798 case $host in
13799 *-*-mingw*)
13800 # gcc leaves a trailing carriage return which upsets mingw
13801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13802 *)
13803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13804 esac
13805 case $ac_prog in
13806 # Accept absolute paths.
13807 [\\/]* | ?:[\\/]*)
13808 re_direlt='/[^/][^/]*/\.\./'
13809 # Canonicalize the pathname of ld
13810 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13811 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13812 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13813 done
13814 test -z "$LD" && LD="$ac_prog"
13815 ;;
13816 "")
13817 # If it fails, then pretend we aren't using GCC.
13818 ac_prog=ld
13819 ;;
13820 *)
13821 # If it is relative, then search for the first ld in PATH.
13822 with_gnu_ld=unknown
13823 ;;
13824 esac
13825 elif test "$with_gnu_ld" = yes; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13827 $as_echo_n "checking for GNU ld... " >&6; }
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13830 $as_echo_n "checking for non-GNU ld... " >&6; }
13831 fi
13832 if test "${lt_cv_path_LD+set}" = set; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 if test -z "$LD"; then
13836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13837 for ac_dir in $PATH; do
13838 IFS="$lt_save_ifs"
13839 test -z "$ac_dir" && ac_dir=.
13840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13841 lt_cv_path_LD="$ac_dir/$ac_prog"
13842 # Check to see if the program is GNU ld. I'd rather use --version,
13843 # but apparently some variants of GNU ld only accept -v.
13844 # Break only if it was the GNU/non-GNU ld that we prefer.
13845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13846 *GNU* | *'with BFD'*)
13847 test "$with_gnu_ld" != no && break
13848 ;;
13849 *)
13850 test "$with_gnu_ld" != yes && break
13851 ;;
13852 esac
13853 fi
13854 done
13855 IFS="$lt_save_ifs"
13856 else
13857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13858 fi
13859 fi
13860
13861 LD="$lt_cv_path_LD"
13862 if test -n "$LD"; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13864 $as_echo "$LD" >&6; }
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13871 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13872 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13876 case `$LD -v 2>&1 </dev/null` in
13877 *GNU* | *'with BFD'*)
13878 lt_cv_prog_gnu_ld=yes
13879 ;;
13880 *)
13881 lt_cv_prog_gnu_ld=no
13882 ;;
13883 esac
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13886 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13887 with_gnu_ld=$lt_cv_prog_gnu_ld
13888
13889
13890
13891
13892
13893
13894
13895 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13896 # archiving commands below assume that GNU ld is being used.
13897 if test "$with_gnu_ld" = yes; then
13898 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13899 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13900
13901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13903
13904 # If archive_cmds runs LD, not CC, wlarc should be empty
13905 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13906 # investigate it a little bit more. (MM)
13907 wlarc='${wl}'
13908
13909 # ancient GNU ld didn't support --whole-archive et. al.
13910 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13911 $GREP 'no-whole-archive' > /dev/null; then
13912 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13913 else
13914 whole_archive_flag_spec_CXX=
13915 fi
13916 else
13917 with_gnu_ld=no
13918 wlarc=
13919
13920 # A generic and very simple default shared library creation
13921 # command for GNU C++ for the case where it uses the native
13922 # linker, instead of GNU ld. If possible, this setting should
13923 # overridden to take advantage of the native linker features on
13924 # the platform it is being used on.
13925 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13926 fi
13927
13928 # Commands to make compiler produce verbose output that lists
13929 # what "hidden" libraries, object files and flags are used when
13930 # linking a shared library.
13931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13932
13933 else
13934 GXX=no
13935 with_gnu_ld=no
13936 wlarc=
13937 fi
13938
13939 # PORTME: fill in a description of your system's C++ link characteristics
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13942 ld_shlibs_CXX=yes
13943 case $host_os in
13944 aix3*)
13945 # FIXME: insert proper C++ library support
13946 ld_shlibs_CXX=no
13947 ;;
13948 aix[4-9]*)
13949 if test "$host_cpu" = ia64; then
13950 # On IA64, the linker does run time linking by default, so we don't
13951 # have to do anything special.
13952 aix_use_runtimelinking=no
13953 exp_sym_flag='-Bexport'
13954 no_entry_flag=""
13955 else
13956 aix_use_runtimelinking=no
13957
13958 # Test if we are trying to use run time linking or normal
13959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13960 # need to do runtime linking.
13961 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13962 for ld_flag in $LDFLAGS; do
13963 case $ld_flag in
13964 *-brtl*)
13965 aix_use_runtimelinking=yes
13966 break
13967 ;;
13968 esac
13969 done
13970 ;;
13971 esac
13972
13973 exp_sym_flag='-bexport'
13974 no_entry_flag='-bnoentry'
13975 fi
13976
13977 # When large executables or shared objects are built, AIX ld can
13978 # have problems creating the table of contents. If linking a library
13979 # or program results in "error TOC overflow" add -mminimal-toc to
13980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13982
13983 archive_cmds_CXX=''
13984 hardcode_direct_CXX=yes
13985 hardcode_direct_absolute_CXX=yes
13986 hardcode_libdir_separator_CXX=':'
13987 link_all_deplibs_CXX=yes
13988 file_list_spec_CXX='${wl}-f,'
13989
13990 if test "$GXX" = yes; then
13991 case $host_os in aix4.[012]|aix4.[012].*)
13992 # We only want to do this on AIX 4.2 and lower, the check
13993 # below for broken collect2 doesn't work under 4.3+
13994 collect2name=`${CC} -print-prog-name=collect2`
13995 if test -f "$collect2name" &&
13996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13997 then
13998 # We have reworked collect2
13999 :
14000 else
14001 # We have old collect2
14002 hardcode_direct_CXX=unsupported
14003 # It fails to find uninstalled libraries when the uninstalled
14004 # path is not listed in the libpath. Setting hardcode_minus_L
14005 # to unsupported forces relinking
14006 hardcode_minus_L_CXX=yes
14007 hardcode_libdir_flag_spec_CXX='-L$libdir'
14008 hardcode_libdir_separator_CXX=
14009 fi
14010 esac
14011 shared_flag='-shared'
14012 if test "$aix_use_runtimelinking" = yes; then
14013 shared_flag="$shared_flag "'${wl}-G'
14014 fi
14015 else
14016 # not using gcc
14017 if test "$host_cpu" = ia64; then
14018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14019 # chokes on -Wl,-G. The following line is correct:
14020 shared_flag='-G'
14021 else
14022 if test "$aix_use_runtimelinking" = yes; then
14023 shared_flag='${wl}-G'
14024 else
14025 shared_flag='${wl}-bM:SRE'
14026 fi
14027 fi
14028 fi
14029
14030 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14031 # It seems that -bexpall does not export symbols beginning with
14032 # underscore (_), so it is better to generate a list of symbols to
14033 # export.
14034 always_export_symbols_CXX=yes
14035 if test "$aix_use_runtimelinking" = yes; then
14036 # Warning - without using the other runtime loading flags (-brtl),
14037 # -berok will link without error, but may produce a broken library.
14038 allow_undefined_flag_CXX='-berok'
14039 # Determine the default libpath from the value encoded in an empty
14040 # executable.
14041 if test x$gcc_no_link = xyes; then
14042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14043 fi
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 int
14048 main ()
14049 {
14050
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_cxx_try_link "$LINENO"; then :
14056
14057 lt_aix_libpath_sed='
14058 /Import File Strings/,/^$/ {
14059 /^0/ {
14060 s/^0 *\(.*\)$/\1/
14061 p
14062 }
14063 }'
14064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14065 # Check for a 64-bit object if we didn't find anything.
14066 if test -z "$aix_libpath"; then
14067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14068 fi
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14073
14074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14075
14076 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14077 else
14078 if test "$host_cpu" = ia64; then
14079 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14080 allow_undefined_flag_CXX="-z nodefs"
14081 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"
14082 else
14083 # Determine the default libpath from the value encoded in an
14084 # empty executable.
14085 if test x$gcc_no_link = xyes; then
14086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14087 fi
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090
14091 int
14092 main ()
14093 {
14094
14095 ;
14096 return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_cxx_try_link "$LINENO"; then :
14100
14101 lt_aix_libpath_sed='
14102 /Import File Strings/,/^$/ {
14103 /^0/ {
14104 s/^0 *\(.*\)$/\1/
14105 p
14106 }
14107 }'
14108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14109 # Check for a 64-bit object if we didn't find anything.
14110 if test -z "$aix_libpath"; then
14111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14112 fi
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14117
14118 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14119 # Warning - without using the other run time loading flags,
14120 # -berok will link without error, but may produce a broken library.
14121 no_undefined_flag_CXX=' ${wl}-bernotok'
14122 allow_undefined_flag_CXX=' ${wl}-berok'
14123 if test "$with_gnu_ld" = yes; then
14124 # We only use this code for GNU lds that support --whole-archive.
14125 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14126 else
14127 # Exported symbols can be pulled into shared objects from archives
14128 whole_archive_flag_spec_CXX='$convenience'
14129 fi
14130 archive_cmds_need_lc_CXX=yes
14131 # This is similar to how AIX traditionally builds its shared
14132 # libraries.
14133 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14134 fi
14135 fi
14136 ;;
14137
14138 beos*)
14139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14140 allow_undefined_flag_CXX=unsupported
14141 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14142 # support --undefined. This deserves some investigation. FIXME
14143 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14144 else
14145 ld_shlibs_CXX=no
14146 fi
14147 ;;
14148
14149 chorus*)
14150 case $cc_basename in
14151 *)
14152 # FIXME: insert proper C++ library support
14153 ld_shlibs_CXX=no
14154 ;;
14155 esac
14156 ;;
14157
14158 cygwin* | mingw* | pw32* | cegcc*)
14159 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14160 # as there is no search path for DLLs.
14161 hardcode_libdir_flag_spec_CXX='-L$libdir'
14162 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14163 allow_undefined_flag_CXX=unsupported
14164 always_export_symbols_CXX=no
14165 enable_shared_with_static_runtimes_CXX=yes
14166
14167 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14168 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'
14169 # If the export-symbols file already is a .def file (1st line
14170 # is EXPORTS), use it as is; otherwise, prepend...
14171 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14172 cp $export_symbols $output_objdir/$soname.def;
14173 else
14174 echo EXPORTS > $output_objdir/$soname.def;
14175 cat $export_symbols >> $output_objdir/$soname.def;
14176 fi~
14177 $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'
14178 else
14179 ld_shlibs_CXX=no
14180 fi
14181 ;;
14182 darwin* | rhapsody*)
14183
14184
14185 archive_cmds_need_lc_CXX=no
14186 hardcode_direct_CXX=no
14187 hardcode_automatic_CXX=yes
14188 hardcode_shlibpath_var_CXX=unsupported
14189 if test "$lt_cv_ld_force_load" = "yes"; then
14190 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\"`'
14191 else
14192 whole_archive_flag_spec_CXX=''
14193 fi
14194 link_all_deplibs_CXX=yes
14195 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14196 case $cc_basename in
14197 ifort*) _lt_dar_can_shared=yes ;;
14198 *) _lt_dar_can_shared=$GCC ;;
14199 esac
14200 if test "$_lt_dar_can_shared" = "yes"; then
14201 output_verbose_link_cmd=func_echo_all
14202 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}"
14203 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14204 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}"
14205 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}"
14206 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14207 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}"
14208 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}"
14209 fi
14210
14211 else
14212 ld_shlibs_CXX=no
14213 fi
14214
14215 ;;
14216
14217 dgux*)
14218 case $cc_basename in
14219 ec++*)
14220 # FIXME: insert proper C++ library support
14221 ld_shlibs_CXX=no
14222 ;;
14223 ghcx*)
14224 # Green Hills C++ Compiler
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14227 ;;
14228 *)
14229 # FIXME: insert proper C++ library support
14230 ld_shlibs_CXX=no
14231 ;;
14232 esac
14233 ;;
14234
14235 freebsd2.*)
14236 # C++ shared libraries reported to be fairly broken before
14237 # switch to ELF
14238 ld_shlibs_CXX=no
14239 ;;
14240
14241 freebsd-elf*)
14242 archive_cmds_need_lc_CXX=no
14243 ;;
14244
14245 freebsd* | dragonfly*)
14246 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14247 # conventions
14248 ld_shlibs_CXX=yes
14249 ;;
14250
14251 gnu*)
14252 ;;
14253
14254 haiku*)
14255 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14256 link_all_deplibs_CXX=yes
14257 ;;
14258
14259 hpux9*)
14260 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14261 hardcode_libdir_separator_CXX=:
14262 export_dynamic_flag_spec_CXX='${wl}-E'
14263 hardcode_direct_CXX=yes
14264 hardcode_minus_L_CXX=yes # Not in the search PATH,
14265 # but as the default
14266 # location of the library.
14267
14268 case $cc_basename in
14269 CC*)
14270 # FIXME: insert proper C++ library support
14271 ld_shlibs_CXX=no
14272 ;;
14273 aCC*)
14274 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14275 # Commands to make compiler produce verbose output that lists
14276 # what "hidden" libraries, object files and flags are used when
14277 # linking a shared library.
14278 #
14279 # There doesn't appear to be a way to prevent this compiler from
14280 # explicitly linking system object files so we need to strip them
14281 # from the output so that they don't get included in the library
14282 # dependencies.
14283 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"'
14284 ;;
14285 *)
14286 if test "$GXX" = yes; then
14287 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14288 else
14289 # FIXME: insert proper C++ library support
14290 ld_shlibs_CXX=no
14291 fi
14292 ;;
14293 esac
14294 ;;
14295
14296 hpux10*|hpux11*)
14297 if test $with_gnu_ld = no; then
14298 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14299 hardcode_libdir_separator_CXX=:
14300
14301 case $host_cpu in
14302 hppa*64*|ia64*)
14303 ;;
14304 *)
14305 export_dynamic_flag_spec_CXX='${wl}-E'
14306 ;;
14307 esac
14308 fi
14309 case $host_cpu in
14310 hppa*64*|ia64*)
14311 hardcode_direct_CXX=no
14312 hardcode_shlibpath_var_CXX=no
14313 ;;
14314 *)
14315 hardcode_direct_CXX=yes
14316 hardcode_direct_absolute_CXX=yes
14317 hardcode_minus_L_CXX=yes # Not in the search PATH,
14318 # but as the default
14319 # location of the library.
14320 ;;
14321 esac
14322
14323 case $cc_basename in
14324 CC*)
14325 # FIXME: insert proper C++ library support
14326 ld_shlibs_CXX=no
14327 ;;
14328 aCC*)
14329 case $host_cpu in
14330 hppa*64*)
14331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14332 ;;
14333 ia64*)
14334 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14335 ;;
14336 *)
14337 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14338 ;;
14339 esac
14340 # Commands to make compiler produce verbose output that lists
14341 # what "hidden" libraries, object files and flags are used when
14342 # linking a shared library.
14343 #
14344 # There doesn't appear to be a way to prevent this compiler from
14345 # explicitly linking system object files so we need to strip them
14346 # from the output so that they don't get included in the library
14347 # dependencies.
14348 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"'
14349 ;;
14350 *)
14351 if test "$GXX" = yes; then
14352 if test $with_gnu_ld = no; then
14353 case $host_cpu in
14354 hppa*64*)
14355 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14356 ;;
14357 ia64*)
14358 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14359 ;;
14360 *)
14361 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14362 ;;
14363 esac
14364 fi
14365 else
14366 # FIXME: insert proper C++ library support
14367 ld_shlibs_CXX=no
14368 fi
14369 ;;
14370 esac
14371 ;;
14372
14373 interix[3-9]*)
14374 hardcode_direct_CXX=no
14375 hardcode_shlibpath_var_CXX=no
14376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14377 export_dynamic_flag_spec_CXX='${wl}-E'
14378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14379 # Instead, shared libraries are loaded at an image base (0x10000000 by
14380 # default) and relocated if they conflict, which is a slow very memory
14381 # consuming and fragmenting process. To avoid this, we pick a random,
14382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14384 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'
14385 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'
14386 ;;
14387 irix5* | irix6*)
14388 case $cc_basename in
14389 CC*)
14390 # SGI C++
14391 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'
14392
14393 # Archives containing C++ object files must be created using
14394 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14395 # necessary to make sure instantiated templates are included
14396 # in the archive.
14397 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14398 ;;
14399 *)
14400 if test "$GXX" = yes; then
14401 if test "$with_gnu_ld" = no; then
14402 archive_cmds_CXX='$CC -shared -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'
14403 else
14404 archive_cmds_CXX='$CC -shared -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'
14405 fi
14406 fi
14407 link_all_deplibs_CXX=yes
14408 ;;
14409 esac
14410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14411 hardcode_libdir_separator_CXX=:
14412 inherit_rpath_CXX=yes
14413 ;;
14414
14415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14416 case $cc_basename in
14417 KCC*)
14418 # Kuck and Associates, Inc. (KAI) C++ Compiler
14419
14420 # KCC will only create a shared library if the output file
14421 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14422 # to its proper name (with version) after linking.
14423 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'
14424 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'
14425 # Commands to make compiler produce verbose output that lists
14426 # what "hidden" libraries, object files and flags are used when
14427 # linking a shared library.
14428 #
14429 # There doesn't appear to be a way to prevent this compiler from
14430 # explicitly linking system object files so we need to strip them
14431 # from the output so that they don't get included in the library
14432 # dependencies.
14433 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"'
14434
14435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14436 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14437
14438 # Archives containing C++ object files must be created using
14439 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14440 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14441 ;;
14442 icpc* | ecpc* )
14443 # Intel C++
14444 with_gnu_ld=yes
14445 # version 8.0 and above of icpc choke on multiply defined symbols
14446 # if we add $predep_objects and $postdep_objects, however 7.1 and
14447 # earlier do not add the objects themselves.
14448 case `$CC -V 2>&1` in
14449 *"Version 7."*)
14450 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14451 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'
14452 ;;
14453 *) # Version 8.0 or newer
14454 tmp_idyn=
14455 case $host_cpu in
14456 ia64*) tmp_idyn=' -i_dynamic';;
14457 esac
14458 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 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'
14460 ;;
14461 esac
14462 archive_cmds_need_lc_CXX=no
14463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14465 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14466 ;;
14467 pgCC* | pgcpp*)
14468 # Portland Group C++ compiler
14469 case `$CC -V` in
14470 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14471 prelink_cmds_CXX='tpldir=Template.dir~
14472 rm -rf $tpldir~
14473 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14474 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14475 old_archive_cmds_CXX='tpldir=Template.dir~
14476 rm -rf $tpldir~
14477 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14478 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14479 $RANLIB $oldlib'
14480 archive_cmds_CXX='tpldir=Template.dir~
14481 rm -rf $tpldir~
14482 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14483 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14484 archive_expsym_cmds_CXX='tpldir=Template.dir~
14485 rm -rf $tpldir~
14486 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14487 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14488 ;;
14489 *) # Version 6 and above use weak symbols
14490 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14491 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'
14492 ;;
14493 esac
14494
14495 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14497 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'
14498 ;;
14499 cxx*)
14500 # Compaq C++
14501 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502 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'
14503
14504 runpath_var=LD_RUN_PATH
14505 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14506 hardcode_libdir_separator_CXX=:
14507
14508 # Commands to make compiler produce verbose output that lists
14509 # what "hidden" libraries, object files and flags are used when
14510 # linking a shared library.
14511 #
14512 # There doesn't appear to be a way to prevent this compiler from
14513 # explicitly linking system object files so we need to strip them
14514 # from the output so that they don't get included in the library
14515 # dependencies.
14516 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'
14517 ;;
14518 xl* | mpixl* | bgxl*)
14519 # IBM XL 8.0 on PPC, with GNU ld
14520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14522 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14523 if test "x$supports_anon_versioning" = xyes; then
14524 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14526 echo "local: *; };" >> $output_objdir/$libname.ver~
14527 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14528 fi
14529 ;;
14530 *)
14531 case `$CC -V 2>&1 | sed 5q` in
14532 *Sun\ C*)
14533 # Sun C++ 5.9
14534 no_undefined_flag_CXX=' -zdefs'
14535 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14536 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'
14537 hardcode_libdir_flag_spec_CXX='-R$libdir'
14538 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'
14539 compiler_needs_object_CXX=yes
14540
14541 # Not sure whether something based on
14542 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14543 # would be better.
14544 output_verbose_link_cmd='func_echo_all'
14545
14546 # Archives containing C++ object files must be created using
14547 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14548 # necessary to make sure instantiated templates are included
14549 # in the archive.
14550 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14551 ;;
14552 esac
14553 ;;
14554 esac
14555 ;;
14556
14557 lynxos*)
14558 # FIXME: insert proper C++ library support
14559 ld_shlibs_CXX=no
14560 ;;
14561
14562 m88k*)
14563 # FIXME: insert proper C++ library support
14564 ld_shlibs_CXX=no
14565 ;;
14566
14567 mvs*)
14568 case $cc_basename in
14569 cxx*)
14570 # FIXME: insert proper C++ library support
14571 ld_shlibs_CXX=no
14572 ;;
14573 *)
14574 # FIXME: insert proper C++ library support
14575 ld_shlibs_CXX=no
14576 ;;
14577 esac
14578 ;;
14579
14580 netbsd*)
14581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14582 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14583 wlarc=
14584 hardcode_libdir_flag_spec_CXX='-R$libdir'
14585 hardcode_direct_CXX=yes
14586 hardcode_shlibpath_var_CXX=no
14587 fi
14588 # Workaround some broken pre-1.5 toolchains
14589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14590 ;;
14591
14592 *nto* | *qnx*)
14593 ld_shlibs_CXX=yes
14594 ;;
14595
14596 openbsd2*)
14597 # C++ shared libraries are fairly broken
14598 ld_shlibs_CXX=no
14599 ;;
14600
14601 openbsd*)
14602 if test -f /usr/libexec/ld.so; then
14603 hardcode_direct_CXX=yes
14604 hardcode_shlibpath_var_CXX=no
14605 hardcode_direct_absolute_CXX=yes
14606 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14609 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14610 export_dynamic_flag_spec_CXX='${wl}-E'
14611 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14612 fi
14613 output_verbose_link_cmd=func_echo_all
14614 else
14615 ld_shlibs_CXX=no
14616 fi
14617 ;;
14618
14619 osf3* | osf4* | osf5*)
14620 case $cc_basename in
14621 KCC*)
14622 # Kuck and Associates, Inc. (KAI) C++ Compiler
14623
14624 # KCC will only create a shared library if the output file
14625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14626 # to its proper name (with version) after linking.
14627 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'
14628
14629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14630 hardcode_libdir_separator_CXX=:
14631
14632 # Archives containing C++ object files must be created using
14633 # the KAI C++ compiler.
14634 case $host in
14635 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14636 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14637 esac
14638 ;;
14639 RCC*)
14640 # Rational C++ 2.4.1
14641 # FIXME: insert proper C++ library support
14642 ld_shlibs_CXX=no
14643 ;;
14644 cxx*)
14645 case $host in
14646 osf3*)
14647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14648 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'
14649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14650 ;;
14651 *)
14652 allow_undefined_flag_CXX=' -expect_unresolved \*'
14653 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'
14654 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14655 echo "-hidden">> $lib.exp~
14656 $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~
14657 $RM $lib.exp'
14658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14659 ;;
14660 esac
14661
14662 hardcode_libdir_separator_CXX=:
14663
14664 # Commands to make compiler produce verbose output that lists
14665 # what "hidden" libraries, object files and flags are used when
14666 # linking a shared library.
14667 #
14668 # There doesn't appear to be a way to prevent this compiler from
14669 # explicitly linking system object files so we need to strip them
14670 # from the output so that they don't get included in the library
14671 # dependencies.
14672 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"'
14673 ;;
14674 *)
14675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14677 case $host in
14678 osf3*)
14679 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'
14680 ;;
14681 *)
14682 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14683 ;;
14684 esac
14685
14686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14687 hardcode_libdir_separator_CXX=:
14688
14689 # Commands to make compiler produce verbose output that lists
14690 # what "hidden" libraries, object files and flags are used when
14691 # linking a shared library.
14692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14693
14694 else
14695 # FIXME: insert proper C++ library support
14696 ld_shlibs_CXX=no
14697 fi
14698 ;;
14699 esac
14700 ;;
14701
14702 psos*)
14703 # FIXME: insert proper C++ library support
14704 ld_shlibs_CXX=no
14705 ;;
14706
14707 sunos4*)
14708 case $cc_basename in
14709 CC*)
14710 # Sun C++ 4.x
14711 # FIXME: insert proper C++ library support
14712 ld_shlibs_CXX=no
14713 ;;
14714 lcc*)
14715 # Lucid
14716 # FIXME: insert proper C++ library support
14717 ld_shlibs_CXX=no
14718 ;;
14719 *)
14720 # FIXME: insert proper C++ library support
14721 ld_shlibs_CXX=no
14722 ;;
14723 esac
14724 ;;
14725
14726 solaris*)
14727 case $cc_basename in
14728 CC*)
14729 # Sun C++ 4.2, 5.x and Centerline C++
14730 archive_cmds_need_lc_CXX=yes
14731 no_undefined_flag_CXX=' -zdefs'
14732 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14733 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14734 $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'
14735
14736 hardcode_libdir_flag_spec_CXX='-R$libdir'
14737 hardcode_shlibpath_var_CXX=no
14738 case $host_os in
14739 solaris2.[0-5] | solaris2.[0-5].*) ;;
14740 *)
14741 # The compiler driver will combine and reorder linker options,
14742 # but understands `-z linker_flag'.
14743 # Supported since Solaris 2.6 (maybe 2.5.1?)
14744 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14745 ;;
14746 esac
14747 link_all_deplibs_CXX=yes
14748
14749 output_verbose_link_cmd='func_echo_all'
14750
14751 # Archives containing C++ object files must be created using
14752 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14753 # necessary to make sure instantiated templates are included
14754 # in the archive.
14755 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14756 ;;
14757 gcx*)
14758 # Green Hills C++ Compiler
14759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14760
14761 # The C++ compiler must be used to create the archive.
14762 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14763 ;;
14764 *)
14765 # GNU C++ compiler with Solaris linker
14766 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14767 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14768 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14769 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14770 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14771 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14772
14773 # Commands to make compiler produce verbose output that lists
14774 # what "hidden" libraries, object files and flags are used when
14775 # linking a shared library.
14776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14777 else
14778 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14779 # platform.
14780 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14781 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14782 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14783
14784 # Commands to make compiler produce verbose output that lists
14785 # what "hidden" libraries, object files and flags are used when
14786 # linking a shared library.
14787 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14788 fi
14789
14790 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14791 case $host_os in
14792 solaris2.[0-5] | solaris2.[0-5].*) ;;
14793 *)
14794 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14795 ;;
14796 esac
14797 fi
14798 ;;
14799 esac
14800 ;;
14801
14802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14803 no_undefined_flag_CXX='${wl}-z,text'
14804 archive_cmds_need_lc_CXX=no
14805 hardcode_shlibpath_var_CXX=no
14806 runpath_var='LD_RUN_PATH'
14807
14808 case $cc_basename in
14809 CC*)
14810 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 ;;
14813 *)
14814 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14815 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14816 ;;
14817 esac
14818 ;;
14819
14820 sysv5* | sco3.2v5* | sco5v6*)
14821 # Note: We can NOT use -z defs as we might desire, because we do not
14822 # link with -lc, and that would cause any symbols used from libc to
14823 # always be unresolved, which means just about no library would
14824 # ever link correctly. If we're not using GNU ld we use -z text
14825 # though, which does catch some bad symbols but isn't as heavy-handed
14826 # as -z defs.
14827 no_undefined_flag_CXX='${wl}-z,text'
14828 allow_undefined_flag_CXX='${wl}-z,nodefs'
14829 archive_cmds_need_lc_CXX=no
14830 hardcode_shlibpath_var_CXX=no
14831 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14832 hardcode_libdir_separator_CXX=':'
14833 link_all_deplibs_CXX=yes
14834 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14835 runpath_var='LD_RUN_PATH'
14836
14837 case $cc_basename in
14838 CC*)
14839 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14840 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14841 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14842 '"$old_archive_cmds_CXX"
14843 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14844 '"$reload_cmds_CXX"
14845 ;;
14846 *)
14847 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 ;;
14850 esac
14851 ;;
14852
14853 tandem*)
14854 case $cc_basename in
14855 NCC*)
14856 # NonStop-UX NCC 3.20
14857 # FIXME: insert proper C++ library support
14858 ld_shlibs_CXX=no
14859 ;;
14860 *)
14861 # FIXME: insert proper C++ library support
14862 ld_shlibs_CXX=no
14863 ;;
14864 esac
14865 ;;
14866
14867 vxworks*)
14868 # FIXME: insert proper C++ library support
14869 ld_shlibs_CXX=no
14870 ;;
14871
14872 *)
14873 # FIXME: insert proper C++ library support
14874 ld_shlibs_CXX=no
14875 ;;
14876 esac
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14879 $as_echo "$ld_shlibs_CXX" >&6; }
14880 test "$ld_shlibs_CXX" = no && can_build_shared=no
14881
14882 GCC_CXX="$GXX"
14883 LD_CXX="$LD"
14884
14885 ## CAVEAT EMPTOR:
14886 ## There is no encapsulation within the following macros, do not change
14887 ## the running order or otherwise move them around unless you know exactly
14888 ## what you are doing...
14889 # Dependencies to place before and after the object being linked:
14890 predep_objects_CXX=
14891 postdep_objects_CXX=
14892 predeps_CXX=
14893 postdeps_CXX=
14894 compiler_lib_search_path_CXX=
14895
14896 cat > conftest.$ac_ext <<_LT_EOF
14897 class Foo
14898 {
14899 public:
14900 Foo (void) { a = 0; }
14901 private:
14902 int a;
14903 };
14904 _LT_EOF
14905
14906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14907 (eval $ac_compile) 2>&5
14908 ac_status=$?
14909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14910 test $ac_status = 0; }; then
14911 # Parse the compiler output and extract the necessary
14912 # objects, libraries and library flags.
14913
14914 # Sentinel used to keep track of whether or not we are before
14915 # the conftest object file.
14916 pre_test_object_deps_done=no
14917
14918 for p in `eval "$output_verbose_link_cmd"`; do
14919 case $p in
14920
14921 -L* | -R* | -l*)
14922 # Some compilers place space between "-{L,R}" and the path.
14923 # Remove the space.
14924 if test $p = "-L" ||
14925 test $p = "-R"; then
14926 prev=$p
14927 continue
14928 else
14929 prev=
14930 fi
14931
14932 if test "$pre_test_object_deps_done" = no; then
14933 case $p in
14934 -L* | -R*)
14935 # Internal compiler library paths should come after those
14936 # provided the user. The postdeps already come after the
14937 # user supplied libs so there is no need to process them.
14938 if test -z "$compiler_lib_search_path_CXX"; then
14939 compiler_lib_search_path_CXX="${prev}${p}"
14940 else
14941 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14942 fi
14943 ;;
14944 # The "-l" case would never come before the object being
14945 # linked, so don't bother handling this case.
14946 esac
14947 else
14948 if test -z "$postdeps_CXX"; then
14949 postdeps_CXX="${prev}${p}"
14950 else
14951 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14952 fi
14953 fi
14954 ;;
14955
14956 *.$objext)
14957 # This assumes that the test object file only shows up
14958 # once in the compiler output.
14959 if test "$p" = "conftest.$objext"; then
14960 pre_test_object_deps_done=yes
14961 continue
14962 fi
14963
14964 if test "$pre_test_object_deps_done" = no; then
14965 if test -z "$predep_objects_CXX"; then
14966 predep_objects_CXX="$p"
14967 else
14968 predep_objects_CXX="$predep_objects_CXX $p"
14969 fi
14970 else
14971 if test -z "$postdep_objects_CXX"; then
14972 postdep_objects_CXX="$p"
14973 else
14974 postdep_objects_CXX="$postdep_objects_CXX $p"
14975 fi
14976 fi
14977 ;;
14978
14979 *) ;; # Ignore the rest.
14980
14981 esac
14982 done
14983
14984 # Clean up.
14985 rm -f a.out a.exe
14986 else
14987 echo "libtool.m4: error: problem compiling CXX test program"
14988 fi
14989
14990 $RM -f confest.$objext
14991
14992 # PORTME: override above test on systems where it is broken
14993 case $host_os in
14994 interix[3-9]*)
14995 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14996 # hack all around it, let's just trust "g++" to DTRT.
14997 predep_objects_CXX=
14998 postdep_objects_CXX=
14999 postdeps_CXX=
15000 ;;
15001
15002 linux*)
15003 case `$CC -V 2>&1 | sed 5q` in
15004 *Sun\ C*)
15005 # Sun C++ 5.9
15006
15007 # The more standards-conforming stlport4 library is
15008 # incompatible with the Cstd library. Avoid specifying
15009 # it if it's in CXXFLAGS. Ignore libCrun as
15010 # -library=stlport4 depends on it.
15011 case " $CXX $CXXFLAGS " in
15012 *" -library=stlport4 "*)
15013 solaris_use_stlport4=yes
15014 ;;
15015 esac
15016
15017 if test "$solaris_use_stlport4" != yes; then
15018 postdeps_CXX='-library=Cstd -library=Crun'
15019 fi
15020 ;;
15021 esac
15022 ;;
15023
15024 solaris*)
15025 case $cc_basename in
15026 CC*)
15027 # The more standards-conforming stlport4 library is
15028 # incompatible with the Cstd library. Avoid specifying
15029 # it if it's in CXXFLAGS. Ignore libCrun as
15030 # -library=stlport4 depends on it.
15031 case " $CXX $CXXFLAGS " in
15032 *" -library=stlport4 "*)
15033 solaris_use_stlport4=yes
15034 ;;
15035 esac
15036
15037 # Adding this requires a known-good setup of shared libraries for
15038 # Sun compiler versions before 5.6, else PIC objects from an old
15039 # archive will be linked into the output, leading to subtle bugs.
15040 if test "$solaris_use_stlport4" != yes; then
15041 postdeps_CXX='-library=Cstd -library=Crun'
15042 fi
15043 ;;
15044 esac
15045 ;;
15046 esac
15047
15048
15049 case " $postdeps_CXX " in
15050 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15051 esac
15052 compiler_lib_search_dirs_CXX=
15053 if test -n "${compiler_lib_search_path_CXX}"; then
15054 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15055 fi
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087 lt_prog_compiler_wl_CXX=
15088 lt_prog_compiler_pic_CXX=
15089 lt_prog_compiler_static_CXX=
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15092 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15093
15094 # C++ specific cases for pic, static, wl, etc.
15095 if test "$GXX" = yes; then
15096 lt_prog_compiler_wl_CXX='-Wl,'
15097 lt_prog_compiler_static_CXX='-static'
15098
15099 case $host_os in
15100 aix*)
15101 # All AIX code is PIC.
15102 if test "$host_cpu" = ia64; then
15103 # AIX 5 now supports IA64 processor
15104 lt_prog_compiler_static_CXX='-Bstatic'
15105 fi
15106 ;;
15107
15108 amigaos*)
15109 case $host_cpu in
15110 powerpc)
15111 # see comment about AmigaOS4 .so support
15112 lt_prog_compiler_pic_CXX='-fPIC'
15113 ;;
15114 m68k)
15115 # FIXME: we need at least 68020 code to build shared libraries, but
15116 # adding the `-m68020' flag to GCC prevents building anything better,
15117 # like `-m68040'.
15118 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15119 ;;
15120 esac
15121 ;;
15122
15123 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15124 # PIC is the default for these OSes.
15125 ;;
15126 mingw* | cygwin* | os2* | pw32* | cegcc*)
15127 # This hack is so that the source file can tell whether it is being
15128 # built for inclusion in a dll (and should export symbols for example).
15129 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15130 # (--disable-auto-import) libraries
15131 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15132 ;;
15133 darwin* | rhapsody*)
15134 # PIC is the default on this platform
15135 # Common symbols not allowed in MH_DYLIB files
15136 lt_prog_compiler_pic_CXX='-fno-common'
15137 ;;
15138 *djgpp*)
15139 # DJGPP does not support shared libraries at all
15140 lt_prog_compiler_pic_CXX=
15141 ;;
15142 haiku*)
15143 # PIC is the default for Haiku.
15144 # The "-static" flag exists, but is broken.
15145 lt_prog_compiler_static_CXX=
15146 ;;
15147 interix[3-9]*)
15148 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15149 # Instead, we relocate shared libraries at runtime.
15150 ;;
15151 sysv4*MP*)
15152 if test -d /usr/nec; then
15153 lt_prog_compiler_pic_CXX=-Kconform_pic
15154 fi
15155 ;;
15156 hpux*)
15157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15159 # sets the default TLS model and affects inlining.
15160 case $host_cpu in
15161 hppa*64*)
15162 ;;
15163 *)
15164 lt_prog_compiler_pic_CXX='-fPIC'
15165 ;;
15166 esac
15167 ;;
15168 *qnx* | *nto*)
15169 # QNX uses GNU C++, but need to define -shared option too, otherwise
15170 # it will coredump.
15171 lt_prog_compiler_pic_CXX='-fPIC -shared'
15172 ;;
15173 *)
15174 lt_prog_compiler_pic_CXX='-fPIC'
15175 ;;
15176 esac
15177 else
15178 case $host_os in
15179 aix[4-9]*)
15180 # All AIX code is PIC.
15181 if test "$host_cpu" = ia64; then
15182 # AIX 5 now supports IA64 processor
15183 lt_prog_compiler_static_CXX='-Bstatic'
15184 else
15185 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15186 fi
15187 ;;
15188 chorus*)
15189 case $cc_basename in
15190 cxch68*)
15191 # Green Hills C++ Compiler
15192 # _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"
15193 ;;
15194 esac
15195 ;;
15196 dgux*)
15197 case $cc_basename in
15198 ec++*)
15199 lt_prog_compiler_pic_CXX='-KPIC'
15200 ;;
15201 ghcx*)
15202 # Green Hills C++ Compiler
15203 lt_prog_compiler_pic_CXX='-pic'
15204 ;;
15205 *)
15206 ;;
15207 esac
15208 ;;
15209 freebsd* | dragonfly*)
15210 # FreeBSD uses GNU C++
15211 ;;
15212 hpux9* | hpux10* | hpux11*)
15213 case $cc_basename in
15214 CC*)
15215 lt_prog_compiler_wl_CXX='-Wl,'
15216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15217 if test "$host_cpu" != ia64; then
15218 lt_prog_compiler_pic_CXX='+Z'
15219 fi
15220 ;;
15221 aCC*)
15222 lt_prog_compiler_wl_CXX='-Wl,'
15223 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15224 case $host_cpu in
15225 hppa*64*|ia64*)
15226 # +Z the default
15227 ;;
15228 *)
15229 lt_prog_compiler_pic_CXX='+Z'
15230 ;;
15231 esac
15232 ;;
15233 *)
15234 ;;
15235 esac
15236 ;;
15237 interix*)
15238 # This is c89, which is MS Visual C++ (no shared libs)
15239 # Anyone wants to do a port?
15240 ;;
15241 irix5* | irix6* | nonstopux*)
15242 case $cc_basename in
15243 CC*)
15244 lt_prog_compiler_wl_CXX='-Wl,'
15245 lt_prog_compiler_static_CXX='-non_shared'
15246 # CC pic flag -KPIC is the default.
15247 ;;
15248 *)
15249 ;;
15250 esac
15251 ;;
15252 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15253 case $cc_basename in
15254 KCC*)
15255 # KAI C++ Compiler
15256 lt_prog_compiler_wl_CXX='--backend -Wl,'
15257 lt_prog_compiler_pic_CXX='-fPIC'
15258 ;;
15259 ecpc* )
15260 # old Intel C++ for x86_64 which still supported -KPIC.
15261 lt_prog_compiler_wl_CXX='-Wl,'
15262 lt_prog_compiler_pic_CXX='-KPIC'
15263 lt_prog_compiler_static_CXX='-static'
15264 ;;
15265 icpc* )
15266 # Intel C++, used to be incompatible with GCC.
15267 # ICC 10 doesn't accept -KPIC any more.
15268 lt_prog_compiler_wl_CXX='-Wl,'
15269 lt_prog_compiler_pic_CXX='-fPIC'
15270 lt_prog_compiler_static_CXX='-static'
15271 ;;
15272 pgCC* | pgcpp*)
15273 # Portland Group C++ compiler
15274 lt_prog_compiler_wl_CXX='-Wl,'
15275 lt_prog_compiler_pic_CXX='-fpic'
15276 lt_prog_compiler_static_CXX='-Bstatic'
15277 ;;
15278 cxx*)
15279 # Compaq C++
15280 # Make sure the PIC flag is empty. It appears that all Alpha
15281 # Linux and Compaq Tru64 Unix objects are PIC.
15282 lt_prog_compiler_pic_CXX=
15283 lt_prog_compiler_static_CXX='-non_shared'
15284 ;;
15285 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15286 # IBM XL 8.0, 9.0 on PPC and BlueGene
15287 lt_prog_compiler_wl_CXX='-Wl,'
15288 lt_prog_compiler_pic_CXX='-qpic'
15289 lt_prog_compiler_static_CXX='-qstaticlink'
15290 ;;
15291 *)
15292 case `$CC -V 2>&1 | sed 5q` in
15293 *Sun\ C*)
15294 # Sun C++ 5.9
15295 lt_prog_compiler_pic_CXX='-KPIC'
15296 lt_prog_compiler_static_CXX='-Bstatic'
15297 lt_prog_compiler_wl_CXX='-Qoption ld '
15298 ;;
15299 esac
15300 ;;
15301 esac
15302 ;;
15303 lynxos*)
15304 ;;
15305 m88k*)
15306 ;;
15307 mvs*)
15308 case $cc_basename in
15309 cxx*)
15310 lt_prog_compiler_pic_CXX='-W c,exportall'
15311 ;;
15312 *)
15313 ;;
15314 esac
15315 ;;
15316 netbsd*)
15317 ;;
15318 *qnx* | *nto*)
15319 # QNX uses GNU C++, but need to define -shared option too, otherwise
15320 # it will coredump.
15321 lt_prog_compiler_pic_CXX='-fPIC -shared'
15322 ;;
15323 osf3* | osf4* | osf5*)
15324 case $cc_basename in
15325 KCC*)
15326 lt_prog_compiler_wl_CXX='--backend -Wl,'
15327 ;;
15328 RCC*)
15329 # Rational C++ 2.4.1
15330 lt_prog_compiler_pic_CXX='-pic'
15331 ;;
15332 cxx*)
15333 # Digital/Compaq C++
15334 lt_prog_compiler_wl_CXX='-Wl,'
15335 # Make sure the PIC flag is empty. It appears that all Alpha
15336 # Linux and Compaq Tru64 Unix objects are PIC.
15337 lt_prog_compiler_pic_CXX=
15338 lt_prog_compiler_static_CXX='-non_shared'
15339 ;;
15340 *)
15341 ;;
15342 esac
15343 ;;
15344 psos*)
15345 ;;
15346 solaris*)
15347 case $cc_basename in
15348 CC*)
15349 # Sun C++ 4.2, 5.x and Centerline C++
15350 lt_prog_compiler_pic_CXX='-KPIC'
15351 lt_prog_compiler_static_CXX='-Bstatic'
15352 lt_prog_compiler_wl_CXX='-Qoption ld '
15353 ;;
15354 gcx*)
15355 # Green Hills C++ Compiler
15356 lt_prog_compiler_pic_CXX='-PIC'
15357 ;;
15358 *)
15359 ;;
15360 esac
15361 ;;
15362 sunos4*)
15363 case $cc_basename in
15364 CC*)
15365 # Sun C++ 4.x
15366 lt_prog_compiler_pic_CXX='-pic'
15367 lt_prog_compiler_static_CXX='-Bstatic'
15368 ;;
15369 lcc*)
15370 # Lucid
15371 lt_prog_compiler_pic_CXX='-pic'
15372 ;;
15373 *)
15374 ;;
15375 esac
15376 ;;
15377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15378 case $cc_basename in
15379 CC*)
15380 lt_prog_compiler_wl_CXX='-Wl,'
15381 lt_prog_compiler_pic_CXX='-KPIC'
15382 lt_prog_compiler_static_CXX='-Bstatic'
15383 ;;
15384 esac
15385 ;;
15386 tandem*)
15387 case $cc_basename in
15388 NCC*)
15389 # NonStop-UX NCC 3.20
15390 lt_prog_compiler_pic_CXX='-KPIC'
15391 ;;
15392 *)
15393 ;;
15394 esac
15395 ;;
15396 vxworks*)
15397 ;;
15398 *)
15399 lt_prog_compiler_can_build_shared_CXX=no
15400 ;;
15401 esac
15402 fi
15403
15404 case $host_os in
15405 # For platforms which do not support PIC, -DPIC is meaningless:
15406 *djgpp*)
15407 lt_prog_compiler_pic_CXX=
15408 ;;
15409 *)
15410 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15411 ;;
15412 esac
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15414 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15415
15416
15417
15418 #
15419 # Check to make sure the PIC flag actually works.
15420 #
15421 if test -n "$lt_prog_compiler_pic_CXX"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15423 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15424 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 lt_cv_prog_compiler_pic_works_CXX=no
15428 ac_outfile=conftest.$ac_objext
15429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15431 # Insert the option either (1) after the last *FLAGS variable, or
15432 # (2) before a word containing "conftest.", or (3) at the end.
15433 # Note that $ac_compile itself does not contain backslashes and begins
15434 # with a dollar sign (not a hyphen), so the echo should work correctly.
15435 # The option is referenced via a variable to avoid confusing sed.
15436 lt_compile=`echo "$ac_compile" | $SED \
15437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15439 -e 's:$: $lt_compiler_flag:'`
15440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15441 (eval "$lt_compile" 2>conftest.err)
15442 ac_status=$?
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 if (exit $ac_status) && test -s "$ac_outfile"; then
15446 # The compiler can only warn and ignore the option if not recognized
15447 # So say no if there are warnings other than the usual output.
15448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15451 lt_cv_prog_compiler_pic_works_CXX=yes
15452 fi
15453 fi
15454 $RM conftest*
15455
15456 fi
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15458 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15459
15460 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15461 case $lt_prog_compiler_pic_CXX in
15462 "" | " "*) ;;
15463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15464 esac
15465 else
15466 lt_prog_compiler_pic_CXX=
15467 lt_prog_compiler_can_build_shared_CXX=no
15468 fi
15469
15470 fi
15471
15472
15473
15474 #
15475 # Check to make sure the static flag actually works.
15476 #
15477 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15479 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15480 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 lt_cv_prog_compiler_static_works_CXX=no
15484 save_LDFLAGS="$LDFLAGS"
15485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15486 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15488 # The linker can only warn and ignore the option if not recognized
15489 # So say no if there are warnings
15490 if test -s conftest.err; then
15491 # Append any errors to the config.log.
15492 cat conftest.err 1>&5
15493 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15495 if diff conftest.exp conftest.er2 >/dev/null; then
15496 lt_cv_prog_compiler_static_works_CXX=yes
15497 fi
15498 else
15499 lt_cv_prog_compiler_static_works_CXX=yes
15500 fi
15501 fi
15502 $RM -r conftest*
15503 LDFLAGS="$save_LDFLAGS"
15504
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15507 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15508
15509 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15510 :
15511 else
15512 lt_prog_compiler_static_CXX=
15513 fi
15514
15515
15516
15517
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15520 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 lt_cv_prog_compiler_c_o_CXX=no
15524 $RM -r conftest 2>/dev/null
15525 mkdir conftest
15526 cd conftest
15527 mkdir out
15528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15529
15530 lt_compiler_flag="-o out/conftest2.$ac_objext"
15531 # Insert the option either (1) after the last *FLAGS variable, or
15532 # (2) before a word containing "conftest.", or (3) at the end.
15533 # Note that $ac_compile itself does not contain backslashes and begins
15534 # with a dollar sign (not a hyphen), so the echo should work correctly.
15535 lt_compile=`echo "$ac_compile" | $SED \
15536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15538 -e 's:$: $lt_compiler_flag:'`
15539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15540 (eval "$lt_compile" 2>out/conftest.err)
15541 ac_status=$?
15542 cat out/conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15545 then
15546 # The compiler can only warn and ignore the option if not recognized
15547 # So say no if there are warnings
15548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15551 lt_cv_prog_compiler_c_o_CXX=yes
15552 fi
15553 fi
15554 chmod u+w . 2>&5
15555 $RM conftest*
15556 # SGI C++ compiler will create directory out/ii_files/ for
15557 # template instantiation
15558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15559 $RM out/* && rmdir out
15560 cd ..
15561 $RM -r conftest
15562 $RM conftest*
15563
15564 fi
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15566 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15567
15568
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15571 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15572 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575 lt_cv_prog_compiler_c_o_CXX=no
15576 $RM -r conftest 2>/dev/null
15577 mkdir conftest
15578 cd conftest
15579 mkdir out
15580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582 lt_compiler_flag="-o out/conftest2.$ac_objext"
15583 # Insert the option either (1) after the last *FLAGS variable, or
15584 # (2) before a word containing "conftest.", or (3) at the end.
15585 # Note that $ac_compile itself does not contain backslashes and begins
15586 # with a dollar sign (not a hyphen), so the echo should work correctly.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
15591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15592 (eval "$lt_compile" 2>out/conftest.err)
15593 ac_status=$?
15594 cat out/conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15597 then
15598 # The compiler can only warn and ignore the option if not recognized
15599 # So say no if there are warnings
15600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15603 lt_cv_prog_compiler_c_o_CXX=yes
15604 fi
15605 fi
15606 chmod u+w . 2>&5
15607 $RM conftest*
15608 # SGI C++ compiler will create directory out/ii_files/ for
15609 # template instantiation
15610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15611 $RM out/* && rmdir out
15612 cd ..
15613 $RM -r conftest
15614 $RM conftest*
15615
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15618 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15619
15620
15621
15622
15623 hard_links="nottested"
15624 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15625 # do not overwrite the value of need_locks provided by the user
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15627 $as_echo_n "checking if we can lock with hard links... " >&6; }
15628 hard_links=yes
15629 $RM conftest*
15630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15631 touch conftest.a
15632 ln conftest.a conftest.b 2>&5 || hard_links=no
15633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15635 $as_echo "$hard_links" >&6; }
15636 if test "$hard_links" = no; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15638 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15639 need_locks=warn
15640 fi
15641 else
15642 need_locks=no
15643 fi
15644
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15649
15650 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15651 case $host_os in
15652 aix[4-9]*)
15653 # If we're using GNU nm, then we don't want the "-C" option.
15654 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15655 # Also, AIX nm treats weak defined symbols like other global defined
15656 # symbols, whereas GNU nm marks them as "W".
15657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15658 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15659 else
15660 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15661 fi
15662 ;;
15663 pw32*)
15664 export_symbols_cmds_CXX="$ltdll_cmds"
15665 ;;
15666 cygwin* | mingw* | cegcc*)
15667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15668 ;;
15669 *)
15670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15671 ;;
15672 esac
15673 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15674
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15676 $as_echo "$ld_shlibs_CXX" >&6; }
15677 test "$ld_shlibs_CXX" = no && can_build_shared=no
15678
15679 with_gnu_ld_CXX=$with_gnu_ld
15680
15681
15682
15683
15684
15685
15686 #
15687 # Do we need to explicitly link libc?
15688 #
15689 case "x$archive_cmds_need_lc_CXX" in
15690 x|xyes)
15691 # Assume -lc should be added
15692 archive_cmds_need_lc_CXX=yes
15693
15694 if test "$enable_shared" = yes && test "$GCC" = yes; then
15695 case $archive_cmds_CXX in
15696 *'~'*)
15697 # FIXME: we may have to deal with multi-command sequences.
15698 ;;
15699 '$CC '*)
15700 # Test whether the compiler implicitly links with -lc since on some
15701 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15702 # to ld, don't add -lc before -lgcc.
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15704 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15705 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 $RM conftest*
15709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15710
15711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15712 (eval $ac_compile) 2>&5
15713 ac_status=$?
15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; } 2>conftest.err; then
15716 soname=conftest
15717 lib=conftest
15718 libobjs=conftest.$ac_objext
15719 deplibs=
15720 wl=$lt_prog_compiler_wl_CXX
15721 pic_flag=$lt_prog_compiler_pic_CXX
15722 compiler_flags=-v
15723 linker_flags=-v
15724 verstring=
15725 output_objdir=.
15726 libname=conftest
15727 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15728 allow_undefined_flag_CXX=
15729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15730 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15731 ac_status=$?
15732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15733 test $ac_status = 0; }
15734 then
15735 lt_cv_archive_cmds_need_lc_CXX=no
15736 else
15737 lt_cv_archive_cmds_need_lc_CXX=yes
15738 fi
15739 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15740 else
15741 cat conftest.err 1>&5
15742 fi
15743 $RM conftest*
15744
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15747 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15748 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15749 ;;
15750 esac
15751 fi
15752 ;;
15753 esac
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15820
15821 library_names_spec=
15822 libname_spec='lib$name'
15823 soname_spec=
15824 shrext_cmds=".so"
15825 postinstall_cmds=
15826 postuninstall_cmds=
15827 finish_cmds=
15828 finish_eval=
15829 shlibpath_var=
15830 shlibpath_overrides_runpath=unknown
15831 version_type=none
15832 dynamic_linker="$host_os ld.so"
15833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15834 need_lib_prefix=unknown
15835 hardcode_into_libs=no
15836
15837 # when you set need_version to no, make sure it does not cause -set_version
15838 # flags to be left without arguments
15839 need_version=unknown
15840
15841 case $host_os in
15842 aix3*)
15843 version_type=linux
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15845 shlibpath_var=LIBPATH
15846
15847 # AIX 3 has no versioning support, so we append a major version to the name.
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 ;;
15850
15851 aix[4-9]*)
15852 version_type=linux
15853 need_lib_prefix=no
15854 need_version=no
15855 hardcode_into_libs=yes
15856 if test "$host_cpu" = ia64; then
15857 # AIX 5 supports IA64
15858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 else
15861 # With GCC up to 2.95.x, collect2 would create an import file
15862 # for dependence libraries. The import file would start with
15863 # the line `#! .'. This would cause the generated library to
15864 # depend on `.', always an invalid library. This was fixed in
15865 # development snapshots of GCC prior to 3.0.
15866 case $host_os in
15867 aix4 | aix4.[01] | aix4.[01].*)
15868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15869 echo ' yes '
15870 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15871 :
15872 else
15873 can_build_shared=no
15874 fi
15875 ;;
15876 esac
15877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15878 # soname into executable. Probably we can add versioning support to
15879 # collect2, so additional links can be useful in future.
15880 if test "$aix_use_runtimelinking" = yes; then
15881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15882 # instead of lib<name>.a to let people know that these are not
15883 # typical AIX shared libraries.
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 else
15886 # We preserve .a as extension for shared libraries through AIX4.2
15887 # and later when we are not doing run time linking.
15888 library_names_spec='${libname}${release}.a $libname.a'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 fi
15891 shlibpath_var=LIBPATH
15892 fi
15893 ;;
15894
15895 amigaos*)
15896 case $host_cpu in
15897 powerpc)
15898 # Since July 2007 AmigaOS4 officially supports .so libraries.
15899 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 ;;
15902 m68k)
15903 library_names_spec='$libname.ixlibrary $libname.a'
15904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15905 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15906 ;;
15907 esac
15908 ;;
15909
15910 beos*)
15911 library_names_spec='${libname}${shared_ext}'
15912 dynamic_linker="$host_os ld.so"
15913 shlibpath_var=LIBRARY_PATH
15914 ;;
15915
15916 bsdi[45]*)
15917 version_type=linux
15918 need_version=no
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15925 # the default ld.so.conf also contains /usr/contrib/lib and
15926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15927 # libtool to hard-code these into programs
15928 ;;
15929
15930 cygwin* | mingw* | pw32* | cegcc*)
15931 version_type=windows
15932 shrext_cmds=".dll"
15933 need_version=no
15934 need_lib_prefix=no
15935
15936 case $GCC,$host_os in
15937 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15938 library_names_spec='$libname.dll.a'
15939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15940 postinstall_cmds='base_file=`basename \${file}`~
15941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15942 dldir=$destdir/`dirname \$dlpath`~
15943 test -d \$dldir || mkdir -p \$dldir~
15944 $install_prog $dir/$dlname \$dldir/$dlname~
15945 chmod a+x \$dldir/$dlname~
15946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15948 fi'
15949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15950 dlpath=$dir/\$dldll~
15951 $RM \$dlpath'
15952 shlibpath_overrides_runpath=yes
15953
15954 case $host_os in
15955 cygwin*)
15956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958
15959 ;;
15960 mingw* | cegcc*)
15961 # MinGW DLLs use traditional 'lib' prefix
15962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963 ;;
15964 pw32*)
15965 # pw32 DLLs use 'pw' prefix rather than 'lib'
15966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967 ;;
15968 esac
15969 ;;
15970
15971 *)
15972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15973 ;;
15974 esac
15975 dynamic_linker='Win32 ld.exe'
15976 # FIXME: first we should search . and the directory the executable is in
15977 shlibpath_var=PATH
15978 ;;
15979
15980 darwin* | rhapsody*)
15981 dynamic_linker="$host_os dyld"
15982 version_type=darwin
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15986 soname_spec='${libname}${release}${major}$shared_ext'
15987 shlibpath_overrides_runpath=yes
15988 shlibpath_var=DYLD_LIBRARY_PATH
15989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15990
15991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15992 ;;
15993
15994 dgux*)
15995 version_type=linux
15996 need_lib_prefix=no
15997 need_version=no
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 ;;
16002
16003 freebsd* | dragonfly*)
16004 # DragonFly does not have aout. When/if they implement a new
16005 # versioning mechanism, adjust this.
16006 if test -x /usr/bin/objformat; then
16007 objformat=`/usr/bin/objformat`
16008 else
16009 case $host_os in
16010 freebsd[23].*) objformat=aout ;;
16011 *) objformat=elf ;;
16012 esac
16013 fi
16014 version_type=freebsd-$objformat
16015 case $version_type in
16016 freebsd-elf*)
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16018 need_version=no
16019 need_lib_prefix=no
16020 ;;
16021 freebsd-*)
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16023 need_version=yes
16024 ;;
16025 esac
16026 shlibpath_var=LD_LIBRARY_PATH
16027 case $host_os in
16028 freebsd2.*)
16029 shlibpath_overrides_runpath=yes
16030 ;;
16031 freebsd3.[01]* | freebsdelf3.[01]*)
16032 shlibpath_overrides_runpath=yes
16033 hardcode_into_libs=yes
16034 ;;
16035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16037 shlibpath_overrides_runpath=no
16038 hardcode_into_libs=yes
16039 ;;
16040 *) # from 4.6 on, and DragonFly
16041 shlibpath_overrides_runpath=yes
16042 hardcode_into_libs=yes
16043 ;;
16044 esac
16045 ;;
16046
16047 gnu*)
16048 version_type=linux
16049 need_lib_prefix=no
16050 need_version=no
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 shlibpath_var=LD_LIBRARY_PATH
16054 hardcode_into_libs=yes
16055 ;;
16056
16057 haiku*)
16058 version_type=linux
16059 need_lib_prefix=no
16060 need_version=no
16061 dynamic_linker="$host_os runtime_loader"
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LIBRARY_PATH
16065 shlibpath_overrides_runpath=yes
16066 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16067 hardcode_into_libs=yes
16068 ;;
16069
16070 hpux9* | hpux10* | hpux11*)
16071 # Give a soname corresponding to the major version so that dld.sl refuses to
16072 # link against other versions.
16073 version_type=sunos
16074 need_lib_prefix=no
16075 need_version=no
16076 case $host_cpu in
16077 ia64*)
16078 shrext_cmds='.so'
16079 hardcode_into_libs=yes
16080 dynamic_linker="$host_os dld.so"
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 if test "X$HPUX_IA64_MODE" = X32; then
16086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16087 else
16088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16089 fi
16090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16091 ;;
16092 hppa*64*)
16093 shrext_cmds='.sl'
16094 hardcode_into_libs=yes
16095 dynamic_linker="$host_os dld.sl"
16096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16102 ;;
16103 *)
16104 shrext_cmds='.sl'
16105 dynamic_linker="$host_os dld.sl"
16106 shlibpath_var=SHLIB_PATH
16107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 ;;
16111 esac
16112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16113 postinstall_cmds='chmod 555 $lib'
16114 # or fails outright, so override atomically:
16115 install_override_mode=555
16116 ;;
16117
16118 interix[3-9]*)
16119 version_type=linux
16120 need_lib_prefix=no
16121 need_version=no
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 ;;
16129
16130 irix5* | irix6* | nonstopux*)
16131 case $host_os in
16132 nonstopux*) version_type=nonstopux ;;
16133 *)
16134 if test "$lt_cv_prog_gnu_ld" = yes; then
16135 version_type=linux
16136 else
16137 version_type=irix
16138 fi ;;
16139 esac
16140 need_lib_prefix=no
16141 need_version=no
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16144 case $host_os in
16145 irix5* | nonstopux*)
16146 libsuff= shlibsuff=
16147 ;;
16148 *)
16149 case $LD in # libtool.m4 will add one of these switches to LD
16150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16151 libsuff= shlibsuff= libmagic=32-bit;;
16152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16153 libsuff=32 shlibsuff=N32 libmagic=N32;;
16154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16156 *) libsuff= shlibsuff= libmagic=never-match;;
16157 esac
16158 ;;
16159 esac
16160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16161 shlibpath_overrides_runpath=no
16162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16164 hardcode_into_libs=yes
16165 ;;
16166
16167 # No shared lib support for Linux oldld, aout, or coff.
16168 linux*oldld* | linux*aout* | linux*coff*)
16169 dynamic_linker=no
16170 ;;
16171
16172 # This must be Linux ELF.
16173 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16174 version_type=linux
16175 need_lib_prefix=no
16176 need_version=no
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16180 shlibpath_var=LD_LIBRARY_PATH
16181 shlibpath_overrides_runpath=no
16182
16183 # Some binutils ld are patched to set DT_RUNPATH
16184 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 lt_cv_shlibpath_overrides_runpath=no
16188 save_LDFLAGS=$LDFLAGS
16189 save_libdir=$libdir
16190 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16191 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16192 if test x$gcc_no_link = xyes; then
16193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16194 fi
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197
16198 int
16199 main ()
16200 {
16201
16202 ;
16203 return 0;
16204 }
16205 _ACEOF
16206 if ac_fn_cxx_try_link "$LINENO"; then :
16207 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16208 lt_cv_shlibpath_overrides_runpath=yes
16209 fi
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213 LDFLAGS=$save_LDFLAGS
16214 libdir=$save_libdir
16215
16216 fi
16217
16218 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16219
16220 # This implies no fast_install, which is unacceptable.
16221 # Some rework will be needed to allow for fast_install
16222 # before this can be enabled.
16223 hardcode_into_libs=yes
16224
16225 # Append ld.so.conf contents to the search path
16226 if test -f /etc/ld.so.conf; then
16227 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' ' '`
16228 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16229 fi
16230
16231 # We used to test for /lib/ld.so.1 and disable shared libraries on
16232 # powerpc, because MkLinux only supported shared libraries with the
16233 # GNU dynamic linker. Since this was broken with cross compilers,
16234 # most powerpc-linux boxes support dynamic linking these days and
16235 # people can always --disable-shared, the test was removed, and we
16236 # assume the GNU/Linux dynamic linker is in use.
16237 dynamic_linker='GNU/Linux ld.so'
16238 ;;
16239
16240 netbsd*)
16241 version_type=sunos
16242 need_lib_prefix=no
16243 need_version=no
16244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16247 dynamic_linker='NetBSD (a.out) ld.so'
16248 else
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 dynamic_linker='NetBSD ld.elf_so'
16252 fi
16253 shlibpath_var=LD_LIBRARY_PATH
16254 shlibpath_overrides_runpath=yes
16255 hardcode_into_libs=yes
16256 ;;
16257
16258 newsos6)
16259 version_type=linux
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes
16263 ;;
16264
16265 *nto* | *qnx*)
16266 version_type=qnx
16267 need_lib_prefix=no
16268 need_version=no
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 shlibpath_var=LD_LIBRARY_PATH
16272 shlibpath_overrides_runpath=no
16273 hardcode_into_libs=yes
16274 dynamic_linker='ldqnx.so'
16275 ;;
16276
16277 openbsd*)
16278 version_type=sunos
16279 sys_lib_dlsearch_path_spec="/usr/lib"
16280 need_lib_prefix=no
16281 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16282 case $host_os in
16283 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16284 *) need_version=no ;;
16285 esac
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16290 case $host_os in
16291 openbsd2.[89] | openbsd2.[89].*)
16292 shlibpath_overrides_runpath=no
16293 ;;
16294 *)
16295 shlibpath_overrides_runpath=yes
16296 ;;
16297 esac
16298 else
16299 shlibpath_overrides_runpath=yes
16300 fi
16301 ;;
16302
16303 os2*)
16304 libname_spec='$name'
16305 shrext_cmds=".dll"
16306 need_lib_prefix=no
16307 library_names_spec='$libname${shared_ext} $libname.a'
16308 dynamic_linker='OS/2 ld.exe'
16309 shlibpath_var=LIBPATH
16310 ;;
16311
16312 osf3* | osf4* | osf5*)
16313 version_type=osf
16314 need_lib_prefix=no
16315 need_version=no
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318 shlibpath_var=LD_LIBRARY_PATH
16319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16321 ;;
16322
16323 rdos*)
16324 dynamic_linker=no
16325 ;;
16326
16327 solaris*)
16328 version_type=linux
16329 need_lib_prefix=no
16330 need_version=no
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16336 # ldd complains unless libraries are executable
16337 postinstall_cmds='chmod +x $lib'
16338 ;;
16339
16340 sunos4*)
16341 version_type=sunos
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=yes
16346 if test "$with_gnu_ld" = yes; then
16347 need_lib_prefix=no
16348 fi
16349 need_version=yes
16350 ;;
16351
16352 sysv4 | sysv4.3*)
16353 version_type=linux
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 soname_spec='${libname}${release}${shared_ext}$major'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 case $host_vendor in
16358 sni)
16359 shlibpath_overrides_runpath=no
16360 need_lib_prefix=no
16361 runpath_var=LD_RUN_PATH
16362 ;;
16363 siemens)
16364 need_lib_prefix=no
16365 ;;
16366 motorola)
16367 need_lib_prefix=no
16368 need_version=no
16369 shlibpath_overrides_runpath=no
16370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16371 ;;
16372 esac
16373 ;;
16374
16375 sysv4*MP*)
16376 if test -d /usr/nec ;then
16377 version_type=linux
16378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16379 soname_spec='$libname${shared_ext}.$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 fi
16382 ;;
16383
16384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16385 version_type=freebsd-elf
16386 need_lib_prefix=no
16387 need_version=no
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=yes
16392 hardcode_into_libs=yes
16393 if test "$with_gnu_ld" = yes; then
16394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16395 else
16396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16397 case $host_os in
16398 sco3.2v5*)
16399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16400 ;;
16401 esac
16402 fi
16403 sys_lib_dlsearch_path_spec='/usr/lib'
16404 ;;
16405
16406 tpf*)
16407 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16408 version_type=linux
16409 need_lib_prefix=no
16410 need_version=no
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=no
16414 hardcode_into_libs=yes
16415 ;;
16416
16417 uts4*)
16418 version_type=linux
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 ;;
16423
16424 *)
16425 dynamic_linker=no
16426 ;;
16427 esac
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16429 $as_echo "$dynamic_linker" >&6; }
16430 test "$dynamic_linker" = no && can_build_shared=no
16431
16432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16433 if test "$GCC" = yes; then
16434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16435 fi
16436
16437 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16438 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16439 fi
16440 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16441 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16442 fi
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16482 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16483 hardcode_action_CXX=
16484 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16485 test -n "$runpath_var_CXX" ||
16486 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16487
16488 # We can hardcode non-existent directories.
16489 if test "$hardcode_direct_CXX" != no &&
16490 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16491 # have to relink, otherwise we might link with an installed library
16492 # when we should be linking with a yet-to-be-installed one
16493 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16494 test "$hardcode_minus_L_CXX" != no; then
16495 # Linking always hardcodes the temporary library directory.
16496 hardcode_action_CXX=relink
16497 else
16498 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16499 hardcode_action_CXX=immediate
16500 fi
16501 else
16502 # We cannot hardcode anything, or else we can only hardcode existing
16503 # directories.
16504 hardcode_action_CXX=unsupported
16505 fi
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16507 $as_echo "$hardcode_action_CXX" >&6; }
16508
16509 if test "$hardcode_action_CXX" = relink ||
16510 test "$inherit_rpath_CXX" = yes; then
16511 # Fast installation is not supported
16512 enable_fast_install=no
16513 elif test "$shlibpath_overrides_runpath" = yes ||
16514 test "$enable_shared" = no; then
16515 # Fast installation is not necessary
16516 enable_fast_install=needless
16517 fi
16518
16519
16520
16521
16522
16523
16524
16525 fi # test -n "$compiler"
16526
16527 CC=$lt_save_CC
16528 LDCXX=$LD
16529 LD=$lt_save_LD
16530 GCC=$lt_save_GCC
16531 with_gnu_ld=$lt_save_with_gnu_ld
16532 lt_cv_path_LDCXX=$lt_cv_path_LD
16533 lt_cv_path_LD=$lt_save_path_LD
16534 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16535 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16536 fi # test "$_lt_caught_CXX_error" != yes
16537
16538 ac_ext=c
16539 ac_cpp='$CPP $CPPFLAGS'
16540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16543
16544
16545
16546 # Handle -Werror default case.
16547 if test "$ENABLE_WERROR" = default; then
16548 case "$host_os" in
16549 *linux*)
16550 if test "$GCC" = yes; then
16551 ENABLE_WERROR=yes
16552 fi
16553 ;;
16554 esac
16555 fi
16556
16557 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16558 # Extract the first word of "perl", so it can be a program name with args.
16559 set dummy perl; ac_word=$2
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16561 $as_echo_n "checking for $ac_word... " >&6; }
16562 if test "${ac_cv_path_PERL+set}" = set; then :
16563 $as_echo_n "(cached) " >&6
16564 else
16565 case $PERL in
16566 [\\/]* | ?:[\\/]*)
16567 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16568 ;;
16569 *)
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573 IFS=$as_save_IFS
16574 test -z "$as_dir" && as_dir=.
16575 for ac_exec_ext in '' $ac_executable_extensions; do
16576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16577 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16579 break 2
16580 fi
16581 done
16582 done
16583 IFS=$as_save_IFS
16584
16585 ;;
16586 esac
16587 fi
16588 PERL=$ac_cv_path_PERL
16589 if test -n "$PERL"; then
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16591 $as_echo "$PERL" >&6; }
16592 else
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16594 $as_echo "no" >&6; }
16595 fi
16596
16597
16598
16599
16600 ac_config_files="$ac_config_files lib/mkcollections.pl"
16601
16602 ac_config_commands="$ac_config_commands mkcollections.pl"
16603
16604 fi
16605
16606 if test "x${COMPILE_JNI}" = xyes; then
16607
16608
16609
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16611 $as_echo_n "checking __attribute__((,,))... " >&6; }
16612 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16613 $as_echo_n "(cached) " >&6
16614 else
16615
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618
16619 int
16620 main ()
16621 {
16622 extern int testfunction(int x) __attribute__((,,))
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 if ac_fn_c_try_compile "$LINENO"; then :
16628 gcc_cv_c_gcc_attribute_supported=yes
16629 else
16630 gcc_cv_c_gcc_attribute_supported=no
16631 fi
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633
16634 fi
16635
16636 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16637 true
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16639 $as_echo "yes" >&6; }
16640
16641 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16642
16643
16644 else
16645 true
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16647 $as_echo "no" >&6; }
16648
16649 fi
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16660 $as_echo_n "checking __attribute__((unused))... " >&6; }
16661 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16662 $as_echo_n "(cached) " >&6
16663 else
16664
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667
16668 int
16669 main ()
16670 {
16671 extern int testfunction(int x) __attribute__((unused))
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_compile "$LINENO"; then :
16677 gcc_cv_c_gcc_attribute_unused=yes
16678 else
16679 gcc_cv_c_gcc_attribute_unused=no
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682
16683 fi
16684
16685 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16686 true
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688 $as_echo "yes" >&6; }
16689
16690 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16691
16692
16693 else
16694 true
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696 $as_echo "no" >&6; }
16697
16698 fi
16699
16700
16701
16702
16703
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16705 $as_echo_n "checking for ANSI C header files... " >&6; }
16706 if test "${ac_cv_header_stdc+set}" = set; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 #include <stdlib.h>
16712 #include <stdarg.h>
16713 #include <string.h>
16714 #include <float.h>
16715
16716 int
16717 main ()
16718 {
16719
16720 ;
16721 return 0;
16722 }
16723 _ACEOF
16724 if ac_fn_c_try_compile "$LINENO"; then :
16725 ac_cv_header_stdc=yes
16726 else
16727 ac_cv_header_stdc=no
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730
16731 if test $ac_cv_header_stdc = yes; then
16732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 #include <string.h>
16736
16737 _ACEOF
16738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16739 $EGREP "memchr" >/dev/null 2>&1; then :
16740
16741 else
16742 ac_cv_header_stdc=no
16743 fi
16744 rm -f conftest*
16745
16746 fi
16747
16748 if test $ac_cv_header_stdc = yes; then
16749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16752 #include <stdlib.h>
16753
16754 _ACEOF
16755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16756 $EGREP "free" >/dev/null 2>&1; then :
16757
16758 else
16759 ac_cv_header_stdc=no
16760 fi
16761 rm -f conftest*
16762
16763 fi
16764
16765 if test $ac_cv_header_stdc = yes; then
16766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16767 if test "$cross_compiling" = yes; then :
16768 :
16769 else
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16772 #include <ctype.h>
16773 #include <stdlib.h>
16774 #if ((' ' & 0x0FF) == 0x020)
16775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16777 #else
16778 # define ISLOWER(c) \
16779 (('a' <= (c) && (c) <= 'i') \
16780 || ('j' <= (c) && (c) <= 'r') \
16781 || ('s' <= (c) && (c) <= 'z'))
16782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16783 #endif
16784
16785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16786 int
16787 main ()
16788 {
16789 int i;
16790 for (i = 0; i < 256; i++)
16791 if (XOR (islower (i), ISLOWER (i))
16792 || toupper (i) != TOUPPER (i))
16793 return 2;
16794 return 0;
16795 }
16796 _ACEOF
16797 if ac_fn_c_try_run "$LINENO"; then :
16798
16799 else
16800 ac_cv_header_stdc=no
16801 fi
16802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16803 conftest.$ac_objext conftest.beam conftest.$ac_ext
16804 fi
16805
16806 fi
16807 fi
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16809 $as_echo "$ac_cv_header_stdc" >&6; }
16810 if test $ac_cv_header_stdc = yes; then
16811
16812 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16813
16814 fi
16815
16816
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16818 $as_echo_n "checking size of void *... " >&6; }
16819 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 #include "confdefs.h"
16826 #include <sys/types.h>
16827
16828
16829 int
16830 main ()
16831 {
16832 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16833 ;
16834 return 0;
16835 }
16836 _ACEOF
16837 if ac_fn_c_try_compile "$LINENO"; then :
16838 ac_cv_sizeof_void_p=$ac_size
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16842 done
16843
16844 fi
16845
16846 if test x$ac_cv_sizeof_void_p = x ; then
16847 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16850 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16851
16852 cat >>confdefs.h <<_ACEOF
16853 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16854 _ACEOF
16855
16856
16857
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16859 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16860 if test "${ac_cv_c_bigendian+set}" = set; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16863 ac_cv_c_bigendian=unknown
16864 # See if sys/param.h defines the BYTE_ORDER macro.
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 #include <sys/types.h>
16868 #include <sys/param.h>
16869 int
16870 main ()
16871 {
16872
16873 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16874 bogus endian macros
16875 #endif
16876 ;
16877 return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881 # It does; now see whether it defined to BIG_ENDIAN or not.
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 #include <sys/types.h>
16885 #include <sys/param.h>
16886 int
16887 main ()
16888 {
16889
16890 #if BYTE_ORDER != BIG_ENDIAN
16891 not big endian
16892 #endif
16893 ;
16894 return 0;
16895 }
16896 _ACEOF
16897 if ac_fn_c_try_compile "$LINENO"; then :
16898 ac_cv_c_bigendian=yes
16899 else
16900 ac_cv_c_bigendian=no
16901 fi
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 fi
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905 if test $ac_cv_c_bigendian = unknown; then
16906 if test "$cross_compiling" = yes; then :
16907 echo $ac_n "cross-compiling... " 2>&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 main () {
16912 /* Are we little or big endian? From Harbison&Steele. */
16913 union
16914 {
16915 long l;
16916 char c[sizeof (long)];
16917 } u;
16918 u.l = 1;
16919 exit (u.c[sizeof (long) - 1] == 1);
16920 }
16921 _ACEOF
16922 if ac_fn_c_try_run "$LINENO"; then :
16923 ac_cv_c_bigendian=no
16924 else
16925 ac_cv_c_bigendian=yes
16926 fi
16927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16928 conftest.$ac_objext conftest.beam conftest.$ac_ext
16929 fi
16930
16931 fi
16932 fi
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16934 $as_echo "$ac_cv_c_bigendian" >&6; }
16935 if test $ac_cv_c_bigendian = unknown; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16937 $as_echo_n "checking to probe for byte ordering... " >&6; }
16938
16939 cat >conftest.c <<EOF
16940 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16941 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16942 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16943 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16944 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16945 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16946 int main() { _ascii (); _ebcdic (); return 0; }
16947 EOF
16948 if test -f conftest.c ; then
16949 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16950 if test `grep -l BIGenDianSyS conftest.o` ; then
16951 echo $ac_n ' big endian probe OK, ' 1>&6
16952 ac_cv_c_bigendian=yes
16953 fi
16954 if test `grep -l LiTTleEnDian conftest.o` ; then
16955 echo $ac_n ' little endian probe OK, ' 1>&6
16956 if test $ac_cv_c_bigendian = yes ; then
16957 ac_cv_c_bigendian=unknown;
16958 else
16959 ac_cv_c_bigendian=no
16960 fi
16961 fi
16962 echo $ac_n 'guessing bigendian ... ' >&6
16963 fi
16964 fi
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16966 $as_echo "$ac_cv_c_bigendian" >&6; }
16967 fi
16968 if test $ac_cv_c_bigendian = yes; then
16969
16970 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16971
16972
16973 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16974
16975 BYTEORDER=4321
16976 else
16977 BYTEORDER=1234
16978 fi
16979
16980 cat >>confdefs.h <<_ACEOF
16981 #define BYTEORDER $BYTEORDER
16982 _ACEOF
16983
16984 if test $ac_cv_c_bigendian = unknown; then
16985 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16986 fi
16987
16988
16989 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16990 asm/ioctls.h \
16991 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16992 sys/time.h \
16993 sys/select.h \
16994 crt_externs.h \
16995 fcntl.h \
16996 sys/mman.h \
16997 magic.h \
16998 sys/event.h sys/epoll.h \
16999 ifaddrs.h \
17000 netinet/in_systm.h netinet/ip.h net/if.h \
17001 sys/loadavg.h sys/sockio.h
17002 do :
17003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17004 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17005 eval as_val=\$$as_ac_Header
17006 if test "x$as_val" = x""yes; then :
17007 cat >>confdefs.h <<_ACEOF
17008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17009 _ACEOF
17010
17011 fi
17012
17013 done
17014
17015
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17018 #include <stdint.h>
17019
17020 _ACEOF
17021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17022 $EGREP "uint32_t" >/dev/null 2>&1; then :
17023
17024 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17025
17026 fi
17027 rm -f conftest*
17028
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031 #include <inttypes.h>
17032
17033 _ACEOF
17034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17035 $EGREP "uint32_t" >/dev/null 2>&1; then :
17036
17037 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17038
17039 fi
17040 rm -f conftest*
17041
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 #include <sys/types.h>
17045
17046 _ACEOF
17047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17048 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17049
17050 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17051
17052 fi
17053 rm -f conftest*
17054
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056 /* end confdefs.h. */
17057 #include <sys/config.h>
17058
17059 _ACEOF
17060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17061 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17062
17063 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17064
17065 fi
17066 rm -f conftest*
17067
17068
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17070 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17071 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17072 $as_echo_n "(cached) " >&6
17073 else
17074 ac_func_search_save_LIBS=$LIBS
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17077
17078 /* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081 #ifdef __cplusplus
17082 extern "C"
17083 #endif
17084 char clock_gettime ();
17085 int
17086 main ()
17087 {
17088 return clock_gettime ();
17089 ;
17090 return 0;
17091 }
17092 _ACEOF
17093 for ac_lib in '' rt; do
17094 if test -z "$ac_lib"; then
17095 ac_res="none required"
17096 else
17097 ac_res=-l$ac_lib
17098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17099 fi
17100 if test x$gcc_no_link = xyes; then
17101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17102 fi
17103 if ac_fn_c_try_link "$LINENO"; then :
17104 ac_cv_search_clock_gettime=$ac_res
17105 fi
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext
17108 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17109 break
17110 fi
17111 done
17112 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17113
17114 else
17115 ac_cv_search_clock_gettime=no
17116 fi
17117 rm conftest.$ac_ext
17118 LIBS=$ac_func_search_save_LIBS
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17121 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17122 ac_res=$ac_cv_search_clock_gettime
17123 if test "$ac_res" != no; then :
17124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17125
17126 fi
17127
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17129 $as_echo_n "checking for library containing inet_pton... " >&6; }
17130 if test "${ac_cv_search_inet_pton+set}" = set; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17133 ac_func_search_save_LIBS=$LIBS
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136
17137 /* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
17140 #ifdef __cplusplus
17141 extern "C"
17142 #endif
17143 char inet_pton ();
17144 int
17145 main ()
17146 {
17147 return inet_pton ();
17148 ;
17149 return 0;
17150 }
17151 _ACEOF
17152 for ac_lib in '' nsl; do
17153 if test -z "$ac_lib"; then
17154 ac_res="none required"
17155 else
17156 ac_res=-l$ac_lib
17157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17158 fi
17159 if test x$gcc_no_link = xyes; then
17160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17161 fi
17162 if ac_fn_c_try_link "$LINENO"; then :
17163 ac_cv_search_inet_pton=$ac_res
17164 fi
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext
17167 if test "${ac_cv_search_inet_pton+set}" = set; then :
17168 break
17169 fi
17170 done
17171 if test "${ac_cv_search_inet_pton+set}" = set; then :
17172
17173 else
17174 ac_cv_search_inet_pton=no
17175 fi
17176 rm conftest.$ac_ext
17177 LIBS=$ac_func_search_save_LIBS
17178 fi
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17180 $as_echo "$ac_cv_search_inet_pton" >&6; }
17181 ac_res=$ac_cv_search_inet_pton
17182 if test "$ac_res" != no; then :
17183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17184
17185 fi
17186
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17188 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17189 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17190 $as_echo_n "(cached) " >&6
17191 else
17192 ac_check_lib_save_LIBS=$LIBS
17193 LIBS="-lsocket $LIBS"
17194 if test x$gcc_no_link = xyes; then
17195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17196 fi
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17203 #ifdef __cplusplus
17204 extern "C"
17205 #endif
17206 char gethostname ();
17207 int
17208 main ()
17209 {
17210 return gethostname ();
17211 ;
17212 return 0;
17213 }
17214 _ACEOF
17215 if ac_fn_c_try_link "$LINENO"; then :
17216 ac_cv_lib_socket_gethostname=yes
17217 else
17218 ac_cv_lib_socket_gethostname=no
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17225 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17226 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17227 cat >>confdefs.h <<_ACEOF
17228 #define HAVE_LIBSOCKET 1
17229 _ACEOF
17230
17231 LIBS="-lsocket $LIBS"
17232
17233 fi
17234
17235
17236 for ac_func in ftruncate fsync select \
17237 gethostname socket strerror fork pipe execve open close \
17238 lseek fstat read readv write writev htonl memset htons connect \
17239 getsockname getpeername bind listen accept \
17240 recvfrom send sendto setsockopt getsockopt time mktime clock_gettime \
17241 gethostbyname_r localtime_r \
17242 strerror_r \
17243 fcntl \
17244 statvfs \
17245 mmap munmap mincore msync madvise getpagesize sysconf \
17246 lstat readlink \
17247 inet_aton inet_addr inet_pton \
17248 getifaddrs kqueue kevent epoll_create \
17249 getloadavg
17250 do :
17251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17253 eval as_val=\$$as_ac_var
17254 if test "x$as_val" = x""yes; then :
17255 cat >>confdefs.h <<_ACEOF
17256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17257 _ACEOF
17258
17259 fi
17260 done
17261
17262
17263 LIBMAGIC=
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17265 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17266 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 ac_check_lib_save_LIBS=$LIBS
17270 LIBS="-lmagic $LIBS"
17271 if test x$gcc_no_link = xyes; then
17272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17273 fi
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17276
17277 /* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17280 #ifdef __cplusplus
17281 extern "C"
17282 #endif
17283 char magic_open ();
17284 int
17285 main ()
17286 {
17287 return magic_open ();
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_link "$LINENO"; then :
17293 ac_cv_lib_magic_magic_open=yes
17294 else
17295 ac_cv_lib_magic_magic_open=no
17296 fi
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299 LIBS=$ac_check_lib_save_LIBS
17300 fi
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17302 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17303 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17304 LIBMAGIC=-lmagic
17305 fi
17306
17307
17308
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17310 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17313 #include <netinet/in.h>
17314 int
17315 main ()
17316 {
17317 struct sockaddr_in6 addr6;
17318 ;
17319 return 0;
17320 }
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323
17324 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17325
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17327 $as_echo "yes" >&6; }
17328 else
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17330 $as_echo "no" >&6; }
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17335 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17336 if test "${ac_cv_header_time+set}" = set; then :
17337 $as_echo_n "(cached) " >&6
17338 else
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341 #include <sys/types.h>
17342 #include <sys/time.h>
17343 #include <time.h>
17344
17345 int
17346 main ()
17347 {
17348 if ((struct tm *) 0)
17349 return 0;
17350 ;
17351 return 0;
17352 }
17353 _ACEOF
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355 ac_cv_header_time=yes
17356 else
17357 ac_cv_header_time=no
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17362 $as_echo "$ac_cv_header_time" >&6; }
17363 if test $ac_cv_header_time = yes; then
17364
17365 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17366
17367 fi
17368
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17370 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17371 if test "${ac_cv_struct_tm+set}" = set; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17376 #include <sys/types.h>
17377 #include <time.h>
17378
17379 int
17380 main ()
17381 {
17382 struct tm tm;
17383 int *p = &tm.tm_sec;
17384 return !p;
17385 ;
17386 return 0;
17387 }
17388 _ACEOF
17389 if ac_fn_c_try_compile "$LINENO"; then :
17390 ac_cv_struct_tm=time.h
17391 else
17392 ac_cv_struct_tm=sys/time.h
17393 fi
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 fi
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17397 $as_echo "$ac_cv_struct_tm" >&6; }
17398 if test $ac_cv_struct_tm = sys/time.h; then
17399
17400 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17401
17402 fi
17403
17404 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17405 #include <$ac_cv_struct_tm>
17406
17407 "
17408 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17409
17410 cat >>confdefs.h <<_ACEOF
17411 #define HAVE_STRUCT_TM_TM_ZONE 1
17412 _ACEOF
17413
17414
17415 fi
17416
17417 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17418
17419 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17420
17421 else
17422 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17423 "
17424 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17425 ac_have_decl=1
17426 else
17427 ac_have_decl=0
17428 fi
17429
17430 cat >>confdefs.h <<_ACEOF
17431 #define HAVE_DECL_TZNAME $ac_have_decl
17432 _ACEOF
17433
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17435 $as_echo_n "checking for tzname... " >&6; }
17436 if test "${ac_cv_var_tzname+set}" = set; then :
17437 $as_echo_n "(cached) " >&6
17438 else
17439 if test x$gcc_no_link = xyes; then
17440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17441 fi
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444 #include <time.h>
17445 #if !HAVE_DECL_TZNAME
17446 extern char *tzname[];
17447 #endif
17448
17449 int
17450 main ()
17451 {
17452 return tzname[0][0];
17453 ;
17454 return 0;
17455 }
17456 _ACEOF
17457 if ac_fn_c_try_link "$LINENO"; then :
17458 ac_cv_var_tzname=yes
17459 else
17460 ac_cv_var_tzname=no
17461 fi
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17466 $as_echo "$ac_cv_var_tzname" >&6; }
17467 if test $ac_cv_var_tzname = yes; then
17468
17469 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17470
17471 fi
17472 fi
17473
17474
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17476 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479 #include <time.h>
17480 int
17481 main ()
17482 {
17483 struct tm tim; tim.tm_gmtoff = 0;
17484 ;
17485 return 0;
17486 }
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489
17490 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17491
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17493 $as_echo "yes" >&6; }
17494 else
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496 $as_echo "no" >&6; }
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17498 $as_echo_n "checking for global timezone variable... " >&6; }
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 #include <time.h>
17502 int
17503 main ()
17504 {
17505 void i(){long z2 = 2*timezone;}
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_compile "$LINENO"; then :
17511
17512 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17513
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17515 $as_echo "yes" >&6; }
17516 else
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518 $as_echo "no" >&6; }
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17520 $as_echo_n "checking for global _timezone variable... " >&6; }
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h. */
17523 #include <time.h>
17524 int
17525 main ()
17526 {
17527 long z2 = _timezone;
17528 ;
17529 return 0;
17530 }
17531 _ACEOF
17532 if ac_fn_c_try_compile "$LINENO"; then :
17533
17534 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17535
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17537 $as_echo "yes" >&6; }
17538 else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17540 $as_echo "no" >&6; }
17541 fi
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 fi
17544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17545 fi
17546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17549 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17550 if test "${ac_cv_c_const+set}" = set; then :
17551 $as_echo_n "(cached) " >&6
17552 else
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17555
17556 int
17557 main ()
17558 {
17559 /* FIXME: Include the comments suggested by Paul. */
17560 #ifndef __cplusplus
17561 /* Ultrix mips cc rejects this. */
17562 typedef int charset[2];
17563 const charset cs;
17564 /* SunOS 4.1.1 cc rejects this. */
17565 char const *const *pcpcc;
17566 char **ppc;
17567 /* NEC SVR4.0.2 mips cc rejects this. */
17568 struct point {int x, y;};
17569 static struct point const zero = {0,0};
17570 /* AIX XL C 1.02.0.0 rejects this.
17571 It does not let you subtract one const X* pointer from another in
17572 an arm of an if-expression whose if-part is not a constant
17573 expression */
17574 const char *g = "string";
17575 pcpcc = &g + (g ? g-g : 0);
17576 /* HPUX 7.0 cc rejects these. */
17577 ++pcpcc;
17578 ppc = (char**) pcpcc;
17579 pcpcc = (char const *const *) ppc;
17580 { /* SCO 3.2v4 cc rejects this. */
17581 char *t;
17582 char const *s = 0 ? (char *) 0 : (char const *) 0;
17583
17584 *t++ = 0;
17585 if (s) return 0;
17586 }
17587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17588 int x[] = {25, 17};
17589 const int *foo = &x[0];
17590 ++foo;
17591 }
17592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17593 typedef const int *iptr;
17594 iptr p = 0;
17595 ++p;
17596 }
17597 { /* AIX XL C 1.02.0.0 rejects this saying
17598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17599 struct s { int j; const int *ap[3]; };
17600 struct s *b; b->j = 5;
17601 }
17602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17603 const int foo = 10;
17604 if (!foo) return 0;
17605 }
17606 return !cs[0] && !zero.x;
17607 #endif
17608
17609 ;
17610 return 0;
17611 }
17612 _ACEOF
17613 if ac_fn_c_try_compile "$LINENO"; then :
17614 ac_cv_c_const=yes
17615 else
17616 ac_cv_c_const=no
17617 fi
17618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17619 fi
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17621 $as_echo "$ac_cv_c_const" >&6; }
17622 if test $ac_cv_c_const = no; then
17623
17624 $as_echo "#define const /**/" >>confdefs.h
17625
17626 fi
17627
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17629 $as_echo_n "checking for inline... " >&6; }
17630 if test "${ac_cv_c_inline+set}" = set; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 ac_cv_c_inline=no
17634 for ac_kw in inline __inline__ __inline; do
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 #ifndef __cplusplus
17638 typedef int foo_t;
17639 static $ac_kw foo_t static_foo () {return 0; }
17640 $ac_kw foo_t foo () {return 0; }
17641 #endif
17642
17643 _ACEOF
17644 if ac_fn_c_try_compile "$LINENO"; then :
17645 ac_cv_c_inline=$ac_kw
17646 fi
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 test "$ac_cv_c_inline" != no && break
17649 done
17650
17651 fi
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17653 $as_echo "$ac_cv_c_inline" >&6; }
17654
17655 case $ac_cv_c_inline in
17656 inline | yes) ;;
17657 *)
17658 case $ac_cv_c_inline in
17659 no) ac_val=;;
17660 *) ac_val=$ac_cv_c_inline;;
17661 esac
17662 cat >>confdefs.h <<_ACEOF
17663 #ifndef __cplusplus
17664 #define inline $ac_val
17665 #endif
17666 _ACEOF
17667 ;;
17668 esac
17669
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17671 $as_echo_n "checking for __attribute__... " >&6; }
17672 if test "${ac_cv_c_attribute+set}" = set; then :
17673 $as_echo_n "(cached) " >&6
17674 else
17675
17676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17677 /* end confdefs.h. */
17678 void foo(void) __attribute__ ((__noreturn__));
17679
17680 _ACEOF
17681 if ac_fn_c_try_compile "$LINENO"; then :
17682 ac_cv_c_attribute=yes
17683 else
17684 ac_cv_c_attribute=no
17685
17686 fi
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688
17689 fi
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17691 $as_echo "$ac_cv_c_attribute" >&6; }
17692
17693 case $ac_cv_c_attribute in
17694 yes) ;;
17695 no)
17696 cat >>confdefs.h <<_ACEOF
17697 #define __attribute__(x) /* nothing */
17698 _ACEOF
17699 ;;
17700 esac
17701
17702
17703
17704 ac_ext=c
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17711 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17712
17713 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17714 $as_echo_n "(cached) " >&6
17715 else
17716
17717
17718 ################################################################
17719
17720 ac_cv_func_which_gethostbyname_r=unknown
17721
17722 #
17723 # ONE ARGUMENT (sanity check)
17724 #
17725
17726 # This should fail, as there is no variant of gethostbyname_r() that takes
17727 # a single argument. If it actually compiles, then we can assume that
17728 # netdb.h is not declaring the function, and the compiler is thereby
17729 # assuming an implicit prototype. In which case, we're out of luck.
17730 #
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733
17734 #include <netdb.h>
17735 int
17736 main ()
17737 {
17738
17739 char *name = "www.gnu.org";
17740 (void)gethostbyname_r(name) /* ; */
17741
17742 ;
17743 return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747 ac_cv_func_which_gethostbyname_r=no
17748 fi
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750
17751 #
17752 # SIX ARGUMENTS
17753 # (e.g. Linux)
17754 #
17755
17756 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17757
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17760
17761 #include <netdb.h>
17762 int
17763 main ()
17764 {
17765
17766 char *name = "www.gnu.org";
17767 struct hostent ret, *retp;
17768 char buf[1024];
17769 int buflen = 1024;
17770 int my_h_errno;
17771 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17772
17773 ;
17774 return 0;
17775 }
17776 _ACEOF
17777 if ac_fn_c_try_compile "$LINENO"; then :
17778 ac_cv_func_which_gethostbyname_r=six
17779 fi
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781
17782 fi
17783
17784 #
17785 # FIVE ARGUMENTS
17786 # (e.g. Solaris)
17787 #
17788
17789 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17790
17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17793
17794 #include <netdb.h>
17795 int
17796 main ()
17797 {
17798
17799 char *name = "www.gnu.org";
17800 struct hostent ret;
17801 char buf[1024];
17802 int buflen = 1024;
17803 int my_h_errno;
17804 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17805
17806 ;
17807 return 0;
17808 }
17809 _ACEOF
17810 if ac_fn_c_try_compile "$LINENO"; then :
17811 ac_cv_func_which_gethostbyname_r=five
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17814
17815 fi
17816
17817 #
17818 # THREE ARGUMENTS
17819 # (e.g. AIX, HP-UX, Tru64)
17820 #
17821
17822 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17823
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17826
17827 #include <netdb.h>
17828 int
17829 main ()
17830 {
17831
17832 char *name = "www.gnu.org";
17833 struct hostent ret;
17834 struct hostent_data data;
17835 (void)gethostbyname_r(name, &ret, &data) /* ; */
17836
17837 ;
17838 return 0;
17839 }
17840 _ACEOF
17841 if ac_fn_c_try_compile "$LINENO"; then :
17842 ac_cv_func_which_gethostbyname_r=three
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845
17846 fi
17847
17848 ################################################################
17849
17850
17851 fi
17852
17853 case "$ac_cv_func_which_gethostbyname_r" in
17854 three)
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17856 $as_echo "three" >&6; }
17857
17858 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17859
17860 ;;
17861
17862 five)
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17864 $as_echo "five" >&6; }
17865
17866 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17867
17868 ;;
17869
17870 six)
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17872 $as_echo "six" >&6; }
17873
17874 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17875
17876 ;;
17877
17878 no)
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17880 $as_echo "cannot find function declaration in netdb.h" >&6; }
17881 ;;
17882
17883 unknown)
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17885 $as_echo "can't tell" >&6; }
17886 ;;
17887
17888 *)
17889 as_fn_error "internal error" "$LINENO" 5
17890 ;;
17891 esac
17892
17893 ac_ext=c
17894 ac_cpp='$CPP $CPPFLAGS'
17895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17898
17899
17900
17901
17902
17903 if test "X$prefix" = "XNONE"; then
17904 acl_final_prefix="$ac_default_prefix"
17905 else
17906 acl_final_prefix="$prefix"
17907 fi
17908 if test "X$exec_prefix" = "XNONE"; then
17909 acl_final_exec_prefix='${prefix}'
17910 else
17911 acl_final_exec_prefix="$exec_prefix"
17912 fi
17913 acl_save_prefix="$prefix"
17914 prefix="$acl_final_prefix"
17915 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17916 prefix="$acl_save_prefix"
17917
17918
17919 # Check whether --with-gnu-ld was given.
17920 if test "${with_gnu_ld+set}" = set; then :
17921 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17922 else
17923 with_gnu_ld=no
17924 fi
17925
17926 # Prepare PATH_SEPARATOR.
17927 # The user is always right.
17928 if test "${PATH_SEPARATOR+set}" != set; then
17929 echo "#! /bin/sh" >conf$$.sh
17930 echo "exit 0" >>conf$$.sh
17931 chmod +x conf$$.sh
17932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17933 PATH_SEPARATOR=';'
17934 else
17935 PATH_SEPARATOR=:
17936 fi
17937 rm -f conf$$.sh
17938 fi
17939 ac_prog=ld
17940 if test "$GCC" = yes; then
17941 # Check if gcc -print-prog-name=ld gives a path.
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17943 $as_echo_n "checking for ld used by GCC... " >&6; }
17944 case $host in
17945 *-*-mingw*)
17946 # gcc leaves a trailing carriage return which upsets mingw
17947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17948 *)
17949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17950 esac
17951 case $ac_prog in
17952 # Accept absolute paths.
17953 [\\/]* | [A-Za-z]:[\\/]*)
17954 re_direlt='/[^/][^/]*/\.\./'
17955 # Canonicalize the path of ld
17956 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17957 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17958 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17959 done
17960 test -z "$LD" && LD="$ac_prog"
17961 ;;
17962 "")
17963 # If it fails, then pretend we aren't using GCC.
17964 ac_prog=ld
17965 ;;
17966 *)
17967 # If it is relative, then search for the first ld in PATH.
17968 with_gnu_ld=unknown
17969 ;;
17970 esac
17971 elif test "$with_gnu_ld" = yes; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17973 $as_echo_n "checking for GNU ld... " >&6; }
17974 else
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17976 $as_echo_n "checking for non-GNU ld... " >&6; }
17977 fi
17978 if test "${acl_cv_path_LD+set}" = set; then :
17979 $as_echo_n "(cached) " >&6
17980 else
17981 if test -z "$LD"; then
17982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17983 for ac_dir in $PATH; do
17984 test -z "$ac_dir" && ac_dir=.
17985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17986 acl_cv_path_LD="$ac_dir/$ac_prog"
17987 # Check to see if the program is GNU ld. I'd rather use --version,
17988 # but apparently some GNU ld's only accept -v.
17989 # Break only if it was the GNU/non-GNU ld that we prefer.
17990 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
17991 test "$with_gnu_ld" != no && break
17992 else
17993 test "$with_gnu_ld" != yes && break
17994 fi
17995 fi
17996 done
17997 IFS="$ac_save_ifs"
17998 else
17999 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18000 fi
18001 fi
18002
18003 LD="$acl_cv_path_LD"
18004 if test -n "$LD"; then
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18006 $as_echo "$LD" >&6; }
18007 else
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18009 $as_echo "no" >&6; }
18010 fi
18011 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18013 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18014 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
18015 $as_echo_n "(cached) " >&6
18016 else
18017 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18018 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
18019 acl_cv_prog_gnu_ld=yes
18020 else
18021 acl_cv_prog_gnu_ld=no
18022 fi
18023 fi
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18025 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18026 with_gnu_ld=$acl_cv_prog_gnu_ld
18027
18028
18029
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18031 $as_echo_n "checking for shared library run path origin... " >&6; }
18032 if test "${acl_cv_rpath+set}" = set; then :
18033 $as_echo_n "(cached) " >&6
18034 else
18035
18036 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18037 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18038 . ./conftest.sh
18039 rm -f ./conftest.sh
18040 acl_cv_rpath=done
18041
18042 fi
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18044 $as_echo "$acl_cv_rpath" >&6; }
18045 wl="$acl_cv_wl"
18046 libext="$acl_cv_libext"
18047 shlibext="$acl_cv_shlibext"
18048 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18049 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18050 hardcode_direct="$acl_cv_hardcode_direct"
18051 hardcode_minus_L="$acl_cv_hardcode_minus_L"
18052 # Check whether --enable-rpath was given.
18053 if test "${enable_rpath+set}" = set; then :
18054 enableval=$enable_rpath; :
18055 else
18056 enable_rpath=yes
18057 fi
18058
18059
18060
18061
18062
18063
18064
18065
18066 use_additional=yes
18067
18068 acl_save_prefix="$prefix"
18069 prefix="$acl_final_prefix"
18070 acl_save_exec_prefix="$exec_prefix"
18071 exec_prefix="$acl_final_exec_prefix"
18072
18073 eval additional_includedir=\"$includedir\"
18074 eval additional_libdir=\"$libdir\"
18075
18076 exec_prefix="$acl_save_exec_prefix"
18077 prefix="$acl_save_prefix"
18078
18079
18080 # Check whether --with-libiconv-prefix was given.
18081 if test "${with_libiconv_prefix+set}" = set; then :
18082 withval=$with_libiconv_prefix;
18083 if test "X$withval" = "Xno"; then
18084 use_additional=no
18085 else
18086 if test "X$withval" = "X"; then
18087
18088 acl_save_prefix="$prefix"
18089 prefix="$acl_final_prefix"
18090 acl_save_exec_prefix="$exec_prefix"
18091 exec_prefix="$acl_final_exec_prefix"
18092
18093 eval additional_includedir=\"$includedir\"
18094 eval additional_libdir=\"$libdir\"
18095
18096 exec_prefix="$acl_save_exec_prefix"
18097 prefix="$acl_save_prefix"
18098
18099 else
18100 additional_includedir="$withval/include"
18101 additional_libdir="$withval/lib"
18102 fi
18103 fi
18104
18105 fi
18106
18107 LIBICONV=
18108 LTLIBICONV=
18109 INCICONV=
18110 rpathdirs=
18111 ltrpathdirs=
18112 names_already_handled=
18113 names_next_round='iconv '
18114 while test -n "$names_next_round"; do
18115 names_this_round="$names_next_round"
18116 names_next_round=
18117 for name in $names_this_round; do
18118 already_handled=
18119 for n in $names_already_handled; do
18120 if test "$n" = "$name"; then
18121 already_handled=yes
18122 break
18123 fi
18124 done
18125 if test -z "$already_handled"; then
18126 names_already_handled="$names_already_handled $name"
18127 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18128 eval value=\"\$HAVE_LIB$uppername\"
18129 if test -n "$value"; then
18130 if test "$value" = yes; then
18131 eval value=\"\$LIB$uppername\"
18132 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18133 eval value=\"\$LTLIB$uppername\"
18134 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18135 else
18136 :
18137 fi
18138 else
18139 found_dir=
18140 found_la=
18141 found_so=
18142 found_a=
18143 if test $use_additional = yes; then
18144 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18145 found_dir="$additional_libdir"
18146 found_so="$additional_libdir/lib$name.$shlibext"
18147 if test -f "$additional_libdir/lib$name.la"; then
18148 found_la="$additional_libdir/lib$name.la"
18149 fi
18150 else
18151 if test -f "$additional_libdir/lib$name.$libext"; then
18152 found_dir="$additional_libdir"
18153 found_a="$additional_libdir/lib$name.$libext"
18154 if test -f "$additional_libdir/lib$name.la"; then
18155 found_la="$additional_libdir/lib$name.la"
18156 fi
18157 fi
18158 fi
18159 fi
18160 if test "X$found_dir" = "X"; then
18161 for x in $LDFLAGS $LTLIBICONV; do
18162
18163 acl_save_prefix="$prefix"
18164 prefix="$acl_final_prefix"
18165 acl_save_exec_prefix="$exec_prefix"
18166 exec_prefix="$acl_final_exec_prefix"
18167 eval x=\"$x\"
18168 exec_prefix="$acl_save_exec_prefix"
18169 prefix="$acl_save_prefix"
18170
18171 case "$x" in
18172 -L*)
18173 dir=`echo "X$x" | sed -e 's/^X-L//'`
18174 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18175 found_dir="$dir"
18176 found_so="$dir/lib$name.$shlibext"
18177 if test -f "$dir/lib$name.la"; then
18178 found_la="$dir/lib$name.la"
18179 fi
18180 else
18181 if test -f "$dir/lib$name.$libext"; then
18182 found_dir="$dir"
18183 found_a="$dir/lib$name.$libext"
18184 if test -f "$dir/lib$name.la"; then
18185 found_la="$dir/lib$name.la"
18186 fi
18187 fi
18188 fi
18189 ;;
18190 esac
18191 if test "X$found_dir" != "X"; then
18192 break
18193 fi
18194 done
18195 fi
18196 if test "X$found_dir" != "X"; then
18197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18198 if test "X$found_so" != "X"; then
18199 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18200 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18201 else
18202 haveit=
18203 for x in $ltrpathdirs; do
18204 if test "X$x" = "X$found_dir"; then
18205 haveit=yes
18206 break
18207 fi
18208 done
18209 if test -z "$haveit"; then
18210 ltrpathdirs="$ltrpathdirs $found_dir"
18211 fi
18212 if test "$hardcode_direct" = yes; then
18213 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18214 else
18215 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18216 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18217 haveit=
18218 for x in $rpathdirs; do
18219 if test "X$x" = "X$found_dir"; then
18220 haveit=yes
18221 break
18222 fi
18223 done
18224 if test -z "$haveit"; then
18225 rpathdirs="$rpathdirs $found_dir"
18226 fi
18227 else
18228 haveit=
18229 for x in $LDFLAGS $LIBICONV; do
18230
18231 acl_save_prefix="$prefix"
18232 prefix="$acl_final_prefix"
18233 acl_save_exec_prefix="$exec_prefix"
18234 exec_prefix="$acl_final_exec_prefix"
18235 eval x=\"$x\"
18236 exec_prefix="$acl_save_exec_prefix"
18237 prefix="$acl_save_prefix"
18238
18239 if test "X$x" = "X-L$found_dir"; then
18240 haveit=yes
18241 break
18242 fi
18243 done
18244 if test -z "$haveit"; then
18245 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18246 fi
18247 if test "$hardcode_minus_L" != no; then
18248 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18249 else
18250 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18251 fi
18252 fi
18253 fi
18254 fi
18255 else
18256 if test "X$found_a" != "X"; then
18257 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18258 else
18259 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18260 fi
18261 fi
18262 additional_includedir=
18263 case "$found_dir" in
18264 */lib | */lib/)
18265 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18266 additional_includedir="$basedir/include"
18267 ;;
18268 esac
18269 if test "X$additional_includedir" != "X"; then
18270 if test "X$additional_includedir" != "X/usr/include"; then
18271 haveit=
18272 if test "X$additional_includedir" = "X/usr/local/include"; then
18273 if test -n "$GCC"; then
18274 case $host_os in
18275 linux*) haveit=yes;;
18276 esac
18277 fi
18278 fi
18279 if test -z "$haveit"; then
18280 for x in $CPPFLAGS $INCICONV; do
18281
18282 acl_save_prefix="$prefix"
18283 prefix="$acl_final_prefix"
18284 acl_save_exec_prefix="$exec_prefix"
18285 exec_prefix="$acl_final_exec_prefix"
18286 eval x=\"$x\"
18287 exec_prefix="$acl_save_exec_prefix"
18288 prefix="$acl_save_prefix"
18289
18290 if test "X$x" = "X-I$additional_includedir"; then
18291 haveit=yes
18292 break
18293 fi
18294 done
18295 if test -z "$haveit"; then
18296 if test -d "$additional_includedir"; then
18297 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18298 fi
18299 fi
18300 fi
18301 fi
18302 fi
18303 if test -n "$found_la"; then
18304 save_libdir="$libdir"
18305 case "$found_la" in
18306 */* | *\\*) . "$found_la" ;;
18307 *) . "./$found_la" ;;
18308 esac
18309 libdir="$save_libdir"
18310 for dep in $dependency_libs; do
18311 case "$dep" in
18312 -L*)
18313 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18314 if test "X$additional_libdir" != "X/usr/lib"; then
18315 haveit=
18316 if test "X$additional_libdir" = "X/usr/local/lib"; then
18317 if test -n "$GCC"; then
18318 case $host_os in
18319 linux*) haveit=yes;;
18320 esac
18321 fi
18322 fi
18323 if test -z "$haveit"; then
18324 haveit=
18325 for x in $LDFLAGS $LIBICONV; do
18326
18327 acl_save_prefix="$prefix"
18328 prefix="$acl_final_prefix"
18329 acl_save_exec_prefix="$exec_prefix"
18330 exec_prefix="$acl_final_exec_prefix"
18331 eval x=\"$x\"
18332 exec_prefix="$acl_save_exec_prefix"
18333 prefix="$acl_save_prefix"
18334
18335 if test "X$x" = "X-L$additional_libdir"; then
18336 haveit=yes
18337 break
18338 fi
18339 done
18340 if test -z "$haveit"; then
18341 if test -d "$additional_libdir"; then
18342 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18343 fi
18344 fi
18345 haveit=
18346 for x in $LDFLAGS $LTLIBICONV; do
18347
18348 acl_save_prefix="$prefix"
18349 prefix="$acl_final_prefix"
18350 acl_save_exec_prefix="$exec_prefix"
18351 exec_prefix="$acl_final_exec_prefix"
18352 eval x=\"$x\"
18353 exec_prefix="$acl_save_exec_prefix"
18354 prefix="$acl_save_prefix"
18355
18356 if test "X$x" = "X-L$additional_libdir"; then
18357 haveit=yes
18358 break
18359 fi
18360 done
18361 if test -z "$haveit"; then
18362 if test -d "$additional_libdir"; then
18363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18364 fi
18365 fi
18366 fi
18367 fi
18368 ;;
18369 -R*)
18370 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18371 if test "$enable_rpath" != no; then
18372 haveit=
18373 for x in $rpathdirs; do
18374 if test "X$x" = "X$dir"; then
18375 haveit=yes
18376 break
18377 fi
18378 done
18379 if test -z "$haveit"; then
18380 rpathdirs="$rpathdirs $dir"
18381 fi
18382 haveit=
18383 for x in $ltrpathdirs; do
18384 if test "X$x" = "X$dir"; then
18385 haveit=yes
18386 break
18387 fi
18388 done
18389 if test -z "$haveit"; then
18390 ltrpathdirs="$ltrpathdirs $dir"
18391 fi
18392 fi
18393 ;;
18394 -l*)
18395 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18396 ;;
18397 *.la)
18398 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18399 ;;
18400 *)
18401 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18403 ;;
18404 esac
18405 done
18406 fi
18407 else
18408 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18409 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18410 fi
18411 fi
18412 fi
18413 done
18414 done
18415 if test "X$rpathdirs" != "X"; then
18416 if test -n "$hardcode_libdir_separator"; then
18417 alldirs=
18418 for found_dir in $rpathdirs; do
18419 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18420 done
18421 acl_save_libdir="$libdir"
18422 libdir="$alldirs"
18423 eval flag=\"$hardcode_libdir_flag_spec\"
18424 libdir="$acl_save_libdir"
18425 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18426 else
18427 for found_dir in $rpathdirs; do
18428 acl_save_libdir="$libdir"
18429 libdir="$found_dir"
18430 eval flag=\"$hardcode_libdir_flag_spec\"
18431 libdir="$acl_save_libdir"
18432 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18433 done
18434 fi
18435 fi
18436 if test "X$ltrpathdirs" != "X"; then
18437 for found_dir in $ltrpathdirs; do
18438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18439 done
18440 fi
18441
18442
18443
18444
18445
18446
18447
18448 am_save_CPPFLAGS="$CPPFLAGS"
18449
18450 for element in $INCICONV; do
18451 haveit=
18452 for x in $CPPFLAGS; do
18453
18454 acl_save_prefix="$prefix"
18455 prefix="$acl_final_prefix"
18456 acl_save_exec_prefix="$exec_prefix"
18457 exec_prefix="$acl_final_exec_prefix"
18458 eval x=\"$x\"
18459 exec_prefix="$acl_save_exec_prefix"
18460 prefix="$acl_save_prefix"
18461
18462 if test "X$x" = "X$element"; then
18463 haveit=yes
18464 break
18465 fi
18466 done
18467 if test -z "$haveit"; then
18468 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18469 fi
18470 done
18471
18472
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18474 $as_echo_n "checking for iconv... " >&6; }
18475 if test "${am_cv_func_iconv+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478
18479 am_cv_func_iconv="no, consider installing GNU libiconv"
18480 am_cv_lib_iconv=no
18481 if test x$gcc_no_link = xyes; then
18482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18483 fi
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18486 #include <stdlib.h>
18487 #include <iconv.h>
18488 int
18489 main ()
18490 {
18491 iconv_t cd = iconv_open("","");
18492 iconv(cd,NULL,NULL,NULL,NULL);
18493 iconv_close(cd);
18494 ;
18495 return 0;
18496 }
18497 _ACEOF
18498 if ac_fn_c_try_link "$LINENO"; then :
18499 am_cv_func_iconv=yes
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503 if test "$am_cv_func_iconv" != yes; then
18504 am_save_LIBS="$LIBS"
18505 LIBS="$LIBS $LIBICONV"
18506 if test x$gcc_no_link = xyes; then
18507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18508 fi
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18511 #include <stdlib.h>
18512 #include <iconv.h>
18513 int
18514 main ()
18515 {
18516 iconv_t cd = iconv_open("","");
18517 iconv(cd,NULL,NULL,NULL,NULL);
18518 iconv_close(cd);
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 if ac_fn_c_try_link "$LINENO"; then :
18524 am_cv_lib_iconv=yes
18525 am_cv_func_iconv=yes
18526 fi
18527 rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18529 LIBS="$am_save_LIBS"
18530 fi
18531
18532 fi
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18534 $as_echo "$am_cv_func_iconv" >&6; }
18535 if test "$am_cv_func_iconv" = yes; then
18536
18537 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18538
18539 fi
18540 if test "$am_cv_lib_iconv" = yes; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18542 $as_echo_n "checking how to link with libiconv... " >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18544 $as_echo "$LIBICONV" >&6; }
18545 else
18546 CPPFLAGS="$am_save_CPPFLAGS"
18547 LIBICONV=
18548 LTLIBICONV=
18549 fi
18550
18551
18552
18553 if test "$am_cv_func_iconv" = yes; then
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18555 $as_echo_n "checking for iconv declaration... " >&6; }
18556 if test "${am_cv_proto_iconv+set}" = set; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18559
18560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18562
18563 #include <stdlib.h>
18564 #include <iconv.h>
18565 extern
18566 #ifdef __cplusplus
18567 "C"
18568 #endif
18569 #if defined(__STDC__) || defined(__cplusplus)
18570 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18571 #else
18572 size_t iconv();
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578
18579 ;
18580 return 0;
18581 }
18582 _ACEOF
18583 if ac_fn_c_try_compile "$LINENO"; then :
18584 am_cv_proto_iconv_arg1=""
18585 else
18586 am_cv_proto_iconv_arg1="const"
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
18590 fi
18591
18592 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18594 }$am_cv_proto_iconv" >&5
18595 $as_echo "${ac_t:-
18596 }$am_cv_proto_iconv" >&6; }
18597
18598 cat >>confdefs.h <<_ACEOF
18599 #define ICONV_CONST $am_cv_proto_iconv_arg1
18600 _ACEOF
18601
18602 fi
18603
18604
18605 if test "x${GCC}" = xyes; then
18606
18607 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18608
18609
18610 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18611
18612
18613 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18614
18615
18616 ERROR_CFLAGS=
18617 if test "x${ENABLE_WERROR}" = xyes; then
18618 ERROR_CFLAGS='-Werror'
18619 fi
18620
18621 fi
18622
18623 if test "x${COMPILE_XMLJ}" = xyes; then
18624
18625 succeeded=no
18626
18627 if test -z "$PKG_CONFIG"; then
18628 # Extract the first word of "pkg-config", so it can be a program name with args.
18629 set dummy pkg-config; ac_word=$2
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18631 $as_echo_n "checking for $ac_word... " >&6; }
18632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18633 $as_echo_n "(cached) " >&6
18634 else
18635 case $PKG_CONFIG in
18636 [\\/]* | ?:[\\/]*)
18637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18638 ;;
18639 *)
18640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18641 for as_dir in $PATH
18642 do
18643 IFS=$as_save_IFS
18644 test -z "$as_dir" && as_dir=.
18645 for ac_exec_ext in '' $ac_executable_extensions; do
18646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18649 break 2
18650 fi
18651 done
18652 done
18653 IFS=$as_save_IFS
18654
18655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18656 ;;
18657 esac
18658 fi
18659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18660 if test -n "$PKG_CONFIG"; then
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18662 $as_echo "$PKG_CONFIG" >&6; }
18663 else
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666 fi
18667
18668
18669 fi
18670
18671 if test "$PKG_CONFIG" = "no" ; then
18672 echo "*** The pkg-config script could not be found. Make sure it is"
18673 echo "*** in your path, or set the PKG_CONFIG environment variable"
18674 echo "*** to the full path to pkg-config."
18675 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18676 else
18677 PKG_CONFIG_MIN_VERSION=0.9.0
18678 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18680 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18681
18682 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18685 succeeded=yes
18686
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18688 $as_echo_n "checking XML_CFLAGS... " >&6; }
18689 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18691 $as_echo "$XML_CFLAGS" >&6; }
18692
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18694 $as_echo_n "checking XML_LIBS... " >&6; }
18695 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18697 $as_echo "$XML_LIBS" >&6; }
18698 else
18699 XML_CFLAGS=""
18700 XML_LIBS=""
18701 ## If we have a custom action on failure, don't print errors, but
18702 ## do set a variable so people can do so.
18703 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18704 echo $XML_PKG_ERRORS
18705 fi
18706
18707
18708
18709 else
18710 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18711 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18712 fi
18713 fi
18714
18715 if test $succeeded = yes; then
18716 :
18717 else
18718 as_fn_error "Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18719 fi
18720
18721
18722 succeeded=no
18723
18724 if test -z "$PKG_CONFIG"; then
18725 # Extract the first word of "pkg-config", so it can be a program name with args.
18726 set dummy pkg-config; ac_word=$2
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18728 $as_echo_n "checking for $ac_word... " >&6; }
18729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18730 $as_echo_n "(cached) " >&6
18731 else
18732 case $PKG_CONFIG in
18733 [\\/]* | ?:[\\/]*)
18734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18735 ;;
18736 *)
18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 for as_dir in $PATH
18739 do
18740 IFS=$as_save_IFS
18741 test -z "$as_dir" && as_dir=.
18742 for ac_exec_ext in '' $ac_executable_extensions; do
18743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18744 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18746 break 2
18747 fi
18748 done
18749 done
18750 IFS=$as_save_IFS
18751
18752 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18753 ;;
18754 esac
18755 fi
18756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18757 if test -n "$PKG_CONFIG"; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18759 $as_echo "$PKG_CONFIG" >&6; }
18760 else
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18762 $as_echo "no" >&6; }
18763 fi
18764
18765
18766 fi
18767
18768 if test "$PKG_CONFIG" = "no" ; then
18769 echo "*** The pkg-config script could not be found. Make sure it is"
18770 echo "*** in your path, or set the PKG_CONFIG environment variable"
18771 echo "*** to the full path to pkg-config."
18772 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18773 else
18774 PKG_CONFIG_MIN_VERSION=0.9.0
18775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18777 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18778
18779 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18781 $as_echo "yes" >&6; }
18782 succeeded=yes
18783
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18785 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18786 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18788 $as_echo "$XSLT_CFLAGS" >&6; }
18789
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18791 $as_echo_n "checking XSLT_LIBS... " >&6; }
18792 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18794 $as_echo "$XSLT_LIBS" >&6; }
18795 else
18796 XSLT_CFLAGS=""
18797 XSLT_LIBS=""
18798 ## If we have a custom action on failure, don't print errors, but
18799 ## do set a variable so people can do so.
18800 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18801 echo $XSLT_PKG_ERRORS
18802 fi
18803
18804
18805
18806 else
18807 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18808 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18809 fi
18810 fi
18811
18812 if test $succeeded = yes; then
18813 :
18814 else
18815 as_fn_error "Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18816 fi
18817
18818
18819
18820
18821
18822 fi
18823
18824 if test "x${COMPILE_GTK_PEER}" = xyes; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18826 $as_echo_n "checking for X... " >&6; }
18827
18828
18829 # Check whether --with-x was given.
18830 if test "${with_x+set}" = set; then :
18831 withval=$with_x;
18832 fi
18833
18834 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18835 if test "x$with_x" = xno; then
18836 # The user explicitly disabled X.
18837 have_x=disabled
18838 else
18839 case $x_includes,$x_libraries in #(
18840 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18841 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18842 $as_echo_n "(cached) " >&6
18843 else
18844 # One or both of the vars are not set, and there is no cached value.
18845 ac_x_includes=no ac_x_libraries=no
18846 rm -f -r conftest.dir
18847 if mkdir conftest.dir; then
18848 cd conftest.dir
18849 cat >Imakefile <<'_ACEOF'
18850 incroot:
18851 @echo incroot='${INCROOT}'
18852 usrlibdir:
18853 @echo usrlibdir='${USRLIBDIR}'
18854 libdir:
18855 @echo libdir='${LIBDIR}'
18856 _ACEOF
18857 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18859 for ac_var in incroot usrlibdir libdir; do
18860 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18861 done
18862 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18863 for ac_extension in a so sl dylib la dll; do
18864 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18865 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18866 ac_im_usrlibdir=$ac_im_libdir; break
18867 fi
18868 done
18869 # Screen out bogus values from the imake configuration. They are
18870 # bogus both because they are the default anyway, and because
18871 # using them would break gcc on systems where it needs fixed includes.
18872 case $ac_im_incroot in
18873 /usr/include) ac_x_includes= ;;
18874 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18875 esac
18876 case $ac_im_usrlibdir in
18877 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18878 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18879 esac
18880 fi
18881 cd ..
18882 rm -f -r conftest.dir
18883 fi
18884
18885 # Standard set of common directories for X headers.
18886 # Check X11 before X11Rn because it is often a symlink to the current release.
18887 ac_x_header_dirs='
18888 /usr/X11/include
18889 /usr/X11R7/include
18890 /usr/X11R6/include
18891 /usr/X11R5/include
18892 /usr/X11R4/include
18893
18894 /usr/include/X11
18895 /usr/include/X11R7
18896 /usr/include/X11R6
18897 /usr/include/X11R5
18898 /usr/include/X11R4
18899
18900 /usr/local/X11/include
18901 /usr/local/X11R7/include
18902 /usr/local/X11R6/include
18903 /usr/local/X11R5/include
18904 /usr/local/X11R4/include
18905
18906 /usr/local/include/X11
18907 /usr/local/include/X11R7
18908 /usr/local/include/X11R6
18909 /usr/local/include/X11R5
18910 /usr/local/include/X11R4
18911
18912 /usr/X386/include
18913 /usr/x386/include
18914 /usr/XFree86/include/X11
18915
18916 /usr/include
18917 /usr/local/include
18918 /usr/unsupported/include
18919 /usr/athena/include
18920 /usr/local/x11r5/include
18921 /usr/lpp/Xamples/include
18922
18923 /usr/openwin/include
18924 /usr/openwin/share/include'
18925
18926 if test "$ac_x_includes" = no; then
18927 # Guess where to find include files, by looking for Xlib.h.
18928 # First, try using that file with no special directory specified.
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18931 #include <X11/Xlib.h>
18932 _ACEOF
18933 if ac_fn_c_try_cpp "$LINENO"; then :
18934 # We can compile using X headers with no special include directory.
18935 ac_x_includes=
18936 else
18937 for ac_dir in $ac_x_header_dirs; do
18938 if test -r "$ac_dir/X11/Xlib.h"; then
18939 ac_x_includes=$ac_dir
18940 break
18941 fi
18942 done
18943 fi
18944 rm -f conftest.err conftest.$ac_ext
18945 fi # $ac_x_includes = no
18946
18947 if test "$ac_x_libraries" = no; then
18948 # Check for the libraries.
18949 # See if we find them without any special options.
18950 # Don't add to $LIBS permanently.
18951 ac_save_LIBS=$LIBS
18952 LIBS="-lX11 $LIBS"
18953 if test x$gcc_no_link = xyes; then
18954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18955 fi
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958 #include <X11/Xlib.h>
18959 int
18960 main ()
18961 {
18962 XrmInitialize ()
18963 ;
18964 return 0;
18965 }
18966 _ACEOF
18967 if ac_fn_c_try_link "$LINENO"; then :
18968 LIBS=$ac_save_LIBS
18969 # We can link X programs with no special library path.
18970 ac_x_libraries=
18971 else
18972 LIBS=$ac_save_LIBS
18973 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18974 do
18975 # Don't even attempt the hair of trying to link an X program!
18976 for ac_extension in a so sl dylib la dll; do
18977 if test -r "$ac_dir/libX11.$ac_extension"; then
18978 ac_x_libraries=$ac_dir
18979 break 2
18980 fi
18981 done
18982 done
18983 fi
18984 rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18986 fi # $ac_x_libraries = no
18987
18988 case $ac_x_includes,$ac_x_libraries in #(
18989 no,* | *,no | *\'*)
18990 # Didn't find X, or a directory has "'" in its name.
18991 ac_cv_have_x="have_x=no";; #(
18992 *)
18993 # Record where we found X for the cache.
18994 ac_cv_have_x="have_x=yes\
18995 ac_x_includes='$ac_x_includes'\
18996 ac_x_libraries='$ac_x_libraries'"
18997 esac
18998 fi
18999 ;; #(
19000 *) have_x=yes;;
19001 esac
19002 eval "$ac_cv_have_x"
19003 fi # $with_x != no
19004
19005 if test "$have_x" != yes; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19007 $as_echo "$have_x" >&6; }
19008 no_x=yes
19009 else
19010 # If each of the values was on the command line, it overrides each guess.
19011 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19012 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19013 # Update the cache value to reflect the command line values.
19014 ac_cv_have_x="have_x=yes\
19015 ac_x_includes='$x_includes'\
19016 ac_x_libraries='$x_libraries'"
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19018 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19019 fi
19020
19021 if test "$no_x" = yes; then
19022 # Not all programs may use this symbol, but it does not hurt to define it.
19023
19024 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19025
19026 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19027 else
19028 if test -n "$x_includes"; then
19029 X_CFLAGS="$X_CFLAGS -I$x_includes"
19030 fi
19031
19032 # It would also be nice to do this for all -L options, not just this one.
19033 if test -n "$x_libraries"; then
19034 X_LIBS="$X_LIBS -L$x_libraries"
19035 # For Solaris; some versions of Sun CC require a space after -R and
19036 # others require no space. Words are not sufficient . . . .
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19038 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19039 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19040 ac_xsave_c_werror_flag=$ac_c_werror_flag
19041 ac_c_werror_flag=yes
19042 if test x$gcc_no_link = xyes; then
19043 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19044 fi
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047
19048 int
19049 main ()
19050 {
19051
19052 ;
19053 return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_link "$LINENO"; then :
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19059 X_LIBS="$X_LIBS -R$x_libraries"
19060 else
19061 LIBS="$ac_xsave_LIBS -R $x_libraries"
19062 if test x$gcc_no_link = xyes; then
19063 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19064 fi
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19067
19068 int
19069 main ()
19070 {
19071
19072 ;
19073 return 0;
19074 }
19075 _ACEOF
19076 if ac_fn_c_try_link "$LINENO"; then :
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19078 $as_echo "yes" >&6; }
19079 X_LIBS="$X_LIBS -R $x_libraries"
19080 else
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19082 $as_echo "neither works" >&6; }
19083 fi
19084 rm -f core conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext conftest.$ac_ext
19086 fi
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19089 ac_c_werror_flag=$ac_xsave_c_werror_flag
19090 LIBS=$ac_xsave_LIBS
19091 fi
19092
19093 # Check for system-dependent libraries X programs must link with.
19094 # Do this before checking for the system-independent R6 libraries
19095 # (-lICE), since we may need -lsocket or whatever for X linking.
19096
19097 if test "$ISC" = yes; then
19098 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19099 else
19100 # Martyn Johnson says this is needed for Ultrix, if the X
19101 # libraries were built with DECnet support. And Karl Berry says
19102 # the Alpha needs dnet_stub (dnet does not exist).
19103 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19104 if test x$gcc_no_link = xyes; then
19105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19106 fi
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19109
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19113 #ifdef __cplusplus
19114 extern "C"
19115 #endif
19116 char XOpenDisplay ();
19117 int
19118 main ()
19119 {
19120 return XOpenDisplay ();
19121 ;
19122 return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_link "$LINENO"; then :
19126
19127 else
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19129 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19130 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-ldnet $LIBS"
19135 if test x$gcc_no_link = xyes; then
19136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19137 fi
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19140
19141 /* Override any GCC internal prototype to avoid an error.
19142 Use char because int might match the return type of a GCC
19143 builtin and then its argument prototype would still apply. */
19144 #ifdef __cplusplus
19145 extern "C"
19146 #endif
19147 char dnet_ntoa ();
19148 int
19149 main ()
19150 {
19151 return dnet_ntoa ();
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 if ac_fn_c_try_link "$LINENO"; then :
19157 ac_cv_lib_dnet_dnet_ntoa=yes
19158 else
19159 ac_cv_lib_dnet_dnet_ntoa=no
19160 fi
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19164 fi
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19166 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19167 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19168 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19169 fi
19170
19171 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19173 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19174 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19175 $as_echo_n "(cached) " >&6
19176 else
19177 ac_check_lib_save_LIBS=$LIBS
19178 LIBS="-ldnet_stub $LIBS"
19179 if test x$gcc_no_link = xyes; then
19180 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19181 fi
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply. */
19188 #ifdef __cplusplus
19189 extern "C"
19190 #endif
19191 char dnet_ntoa ();
19192 int
19193 main ()
19194 {
19195 return dnet_ntoa ();
19196 ;
19197 return 0;
19198 }
19199 _ACEOF
19200 if ac_fn_c_try_link "$LINENO"; then :
19201 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19202 else
19203 ac_cv_lib_dnet_stub_dnet_ntoa=no
19204 fi
19205 rm -f core conftest.err conftest.$ac_objext \
19206 conftest$ac_exeext conftest.$ac_ext
19207 LIBS=$ac_check_lib_save_LIBS
19208 fi
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19210 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19211 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19212 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19213 fi
19214
19215 fi
19216 fi
19217 rm -f core conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219 LIBS="$ac_xsave_LIBS"
19220
19221 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19222 # to get the SysV transport functions.
19223 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19224 # needs -lnsl.
19225 # The nsl library prevents programs from opening the X display
19226 # on Irix 5.2, according to T.E. Dickey.
19227 # The functions gethostbyname, getservbyname, and inet_addr are
19228 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19229 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19230 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19231
19232 fi
19233
19234 if test $ac_cv_func_gethostbyname = no; then
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19236 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19237 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19239 else
19240 ac_check_lib_save_LIBS=$LIBS
19241 LIBS="-lnsl $LIBS"
19242 if test x$gcc_no_link = xyes; then
19243 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19244 fi
19245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246 /* end confdefs.h. */
19247
19248 /* Override any GCC internal prototype to avoid an error.
19249 Use char because int might match the return type of a GCC
19250 builtin and then its argument prototype would still apply. */
19251 #ifdef __cplusplus
19252 extern "C"
19253 #endif
19254 char gethostbyname ();
19255 int
19256 main ()
19257 {
19258 return gethostbyname ();
19259 ;
19260 return 0;
19261 }
19262 _ACEOF
19263 if ac_fn_c_try_link "$LINENO"; then :
19264 ac_cv_lib_nsl_gethostbyname=yes
19265 else
19266 ac_cv_lib_nsl_gethostbyname=no
19267 fi
19268 rm -f core conftest.err conftest.$ac_objext \
19269 conftest$ac_exeext conftest.$ac_ext
19270 LIBS=$ac_check_lib_save_LIBS
19271 fi
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19273 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19274 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19276 fi
19277
19278 if test $ac_cv_lib_nsl_gethostbyname = no; then
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19280 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19281 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19282 $as_echo_n "(cached) " >&6
19283 else
19284 ac_check_lib_save_LIBS=$LIBS
19285 LIBS="-lbsd $LIBS"
19286 if test x$gcc_no_link = xyes; then
19287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19288 fi
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19291
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 char gethostbyname ();
19299 int
19300 main ()
19301 {
19302 return gethostbyname ();
19303 ;
19304 return 0;
19305 }
19306 _ACEOF
19307 if ac_fn_c_try_link "$LINENO"; then :
19308 ac_cv_lib_bsd_gethostbyname=yes
19309 else
19310 ac_cv_lib_bsd_gethostbyname=no
19311 fi
19312 rm -f core conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19315 fi
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19317 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19318 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19320 fi
19321
19322 fi
19323 fi
19324
19325 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19326 # socket/setsockopt and other routines are undefined under SCO ODT
19327 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19328 # on later versions), says Simon Leinen: it contains gethostby*
19329 # variants that don't use the name server (or something). -lsocket
19330 # must be given before -lnsl if both are needed. We assume that
19331 # if connect needs -lnsl, so does gethostbyname.
19332 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19333 if test "x$ac_cv_func_connect" = x""yes; then :
19334
19335 fi
19336
19337 if test $ac_cv_func_connect = no; then
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19339 $as_echo_n "checking for connect in -lsocket... " >&6; }
19340 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19341 $as_echo_n "(cached) " >&6
19342 else
19343 ac_check_lib_save_LIBS=$LIBS
19344 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19345 if test x$gcc_no_link = xyes; then
19346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19347 fi
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19350
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19354 #ifdef __cplusplus
19355 extern "C"
19356 #endif
19357 char connect ();
19358 int
19359 main ()
19360 {
19361 return connect ();
19362 ;
19363 return 0;
19364 }
19365 _ACEOF
19366 if ac_fn_c_try_link "$LINENO"; then :
19367 ac_cv_lib_socket_connect=yes
19368 else
19369 ac_cv_lib_socket_connect=no
19370 fi
19371 rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373 LIBS=$ac_check_lib_save_LIBS
19374 fi
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19376 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19377 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19378 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19379 fi
19380
19381 fi
19382
19383 # Guillermo Gomez says -lposix is necessary on A/UX.
19384 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19385 if test "x$ac_cv_func_remove" = x""yes; then :
19386
19387 fi
19388
19389 if test $ac_cv_func_remove = no; then
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19391 $as_echo_n "checking for remove in -lposix... " >&6; }
19392 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19393 $as_echo_n "(cached) " >&6
19394 else
19395 ac_check_lib_save_LIBS=$LIBS
19396 LIBS="-lposix $LIBS"
19397 if test x$gcc_no_link = xyes; then
19398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19399 fi
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19402
19403 /* Override any GCC internal prototype to avoid an error.
19404 Use char because int might match the return type of a GCC
19405 builtin and then its argument prototype would still apply. */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 char remove ();
19410 int
19411 main ()
19412 {
19413 return remove ();
19414 ;
19415 return 0;
19416 }
19417 _ACEOF
19418 if ac_fn_c_try_link "$LINENO"; then :
19419 ac_cv_lib_posix_remove=yes
19420 else
19421 ac_cv_lib_posix_remove=no
19422 fi
19423 rm -f core conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext conftest.$ac_ext
19425 LIBS=$ac_check_lib_save_LIBS
19426 fi
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19428 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19429 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19431 fi
19432
19433 fi
19434
19435 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19436 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19437 if test "x$ac_cv_func_shmat" = x""yes; then :
19438
19439 fi
19440
19441 if test $ac_cv_func_shmat = no; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19443 $as_echo_n "checking for shmat in -lipc... " >&6; }
19444 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19445 $as_echo_n "(cached) " >&6
19446 else
19447 ac_check_lib_save_LIBS=$LIBS
19448 LIBS="-lipc $LIBS"
19449 if test x$gcc_no_link = xyes; then
19450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19451 fi
19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h. */
19454
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char shmat ();
19462 int
19463 main ()
19464 {
19465 return shmat ();
19466 ;
19467 return 0;
19468 }
19469 _ACEOF
19470 if ac_fn_c_try_link "$LINENO"; then :
19471 ac_cv_lib_ipc_shmat=yes
19472 else
19473 ac_cv_lib_ipc_shmat=no
19474 fi
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19477 LIBS=$ac_check_lib_save_LIBS
19478 fi
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19480 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19481 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19483 fi
19484
19485 fi
19486 fi
19487
19488 # Check for libraries that X11R6 Xt/Xaw programs need.
19489 ac_save_LDFLAGS=$LDFLAGS
19490 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19492 # check for ICE first), but we must link in the order -lSM -lICE or
19493 # we get undefined symbols. So assume we have SM if we have ICE.
19494 # These have to be linked with before -lX11, unlike the other
19495 # libraries we check for below, so use a different variable.
19496 # John Interrante, Karl Berry
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19498 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19499 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19500 $as_echo_n "(cached) " >&6
19501 else
19502 ac_check_lib_save_LIBS=$LIBS
19503 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19504 if test x$gcc_no_link = xyes; then
19505 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19506 fi
19507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19508 /* end confdefs.h. */
19509
19510 /* Override any GCC internal prototype to avoid an error.
19511 Use char because int might match the return type of a GCC
19512 builtin and then its argument prototype would still apply. */
19513 #ifdef __cplusplus
19514 extern "C"
19515 #endif
19516 char IceConnectionNumber ();
19517 int
19518 main ()
19519 {
19520 return IceConnectionNumber ();
19521 ;
19522 return 0;
19523 }
19524 _ACEOF
19525 if ac_fn_c_try_link "$LINENO"; then :
19526 ac_cv_lib_ICE_IceConnectionNumber=yes
19527 else
19528 ac_cv_lib_ICE_IceConnectionNumber=no
19529 fi
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532 LIBS=$ac_check_lib_save_LIBS
19533 fi
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19535 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19536 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19537 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19538 fi
19539
19540 LDFLAGS=$ac_save_LDFLAGS
19541
19542 fi
19543
19544 if test "$no_x" = yes; then
19545 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19546 fi
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19548 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19549 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19550 $as_echo_n "(cached) " >&6
19551 else
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lXtst ${X_LIBS} $LIBS"
19554 if test x$gcc_no_link = xyes; then
19555 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19556 fi
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19559
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563 #ifdef __cplusplus
19564 extern "C"
19565 #endif
19566 char XTestQueryExtension ();
19567 int
19568 main ()
19569 {
19570 return XTestQueryExtension ();
19571 ;
19572 return 0;
19573 }
19574 _ACEOF
19575 if ac_fn_c_try_link "$LINENO"; then :
19576 ac_cv_lib_Xtst_XTestQueryExtension=yes
19577 else
19578 ac_cv_lib_Xtst_XTestQueryExtension=no
19579 fi
19580 rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
19582 LIBS=$ac_check_lib_save_LIBS
19583 fi
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19585 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19586 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19587
19588 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19589 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19590 else
19591 true
19592 fi
19593
19594
19595
19596
19597 succeeded=no
19598
19599 if test -z "$PKG_CONFIG"; then
19600 # Extract the first word of "pkg-config", so it can be a program name with args.
19601 set dummy pkg-config; ac_word=$2
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19603 $as_echo_n "checking for $ac_word... " >&6; }
19604 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19605 $as_echo_n "(cached) " >&6
19606 else
19607 case $PKG_CONFIG in
19608 [\\/]* | ?:[\\/]*)
19609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19610 ;;
19611 *)
19612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19613 for as_dir in $PATH
19614 do
19615 IFS=$as_save_IFS
19616 test -z "$as_dir" && as_dir=.
19617 for ac_exec_ext in '' $ac_executable_extensions; do
19618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19621 break 2
19622 fi
19623 done
19624 done
19625 IFS=$as_save_IFS
19626
19627 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19628 ;;
19629 esac
19630 fi
19631 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19632 if test -n "$PKG_CONFIG"; then
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19634 $as_echo "$PKG_CONFIG" >&6; }
19635 else
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19637 $as_echo "no" >&6; }
19638 fi
19639
19640
19641 fi
19642
19643 if test "$PKG_CONFIG" = "no" ; then
19644 echo "*** The pkg-config script could not be found. Make sure it is"
19645 echo "*** in your path, or set the PKG_CONFIG environment variable"
19646 echo "*** to the full path to pkg-config."
19647 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19648 else
19649 PKG_CONFIG_MIN_VERSION=0.9.0
19650 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19652 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19653
19654 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656 $as_echo "yes" >&6; }
19657 succeeded=yes
19658
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19660 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19661 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19663 $as_echo "$GTK_CFLAGS" >&6; }
19664
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19666 $as_echo_n "checking GTK_LIBS... " >&6; }
19667 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19669 $as_echo "$GTK_LIBS" >&6; }
19670 else
19671 GTK_CFLAGS=""
19672 GTK_LIBS=""
19673 ## If we have a custom action on failure, don't print errors, but
19674 ## do set a variable so people can do so.
19675 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19676 echo $GTK_PKG_ERRORS
19677 fi
19678
19679
19680
19681 else
19682 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19683 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19684 fi
19685 fi
19686
19687 if test $succeeded = yes; then
19688 :
19689 else
19690 as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19691 fi
19692
19693
19694 succeeded=no
19695
19696 if test -z "$PKG_CONFIG"; then
19697 # Extract the first word of "pkg-config", so it can be a program name with args.
19698 set dummy pkg-config; ac_word=$2
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19700 $as_echo_n "checking for $ac_word... " >&6; }
19701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19702 $as_echo_n "(cached) " >&6
19703 else
19704 case $PKG_CONFIG in
19705 [\\/]* | ?:[\\/]*)
19706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19707 ;;
19708 *)
19709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710 for as_dir in $PATH
19711 do
19712 IFS=$as_save_IFS
19713 test -z "$as_dir" && as_dir=.
19714 for ac_exec_ext in '' $ac_executable_extensions; do
19715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19718 break 2
19719 fi
19720 done
19721 done
19722 IFS=$as_save_IFS
19723
19724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19725 ;;
19726 esac
19727 fi
19728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19729 if test -n "$PKG_CONFIG"; then
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19731 $as_echo "$PKG_CONFIG" >&6; }
19732 else
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19734 $as_echo "no" >&6; }
19735 fi
19736
19737
19738 fi
19739
19740 if test "$PKG_CONFIG" = "no" ; then
19741 echo "*** The pkg-config script could not be found. Make sure it is"
19742 echo "*** in your path, or set the PKG_CONFIG environment variable"
19743 echo "*** to the full path to pkg-config."
19744 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19745 else
19746 PKG_CONFIG_MIN_VERSION=0.9.0
19747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19749 $as_echo_n "checking for freetype2... " >&6; }
19750
19751 if $PKG_CONFIG --exists "freetype2" ; then
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19753 $as_echo "yes" >&6; }
19754 succeeded=yes
19755
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19757 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19758 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19760 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19761
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19763 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19764 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19766 $as_echo "$FREETYPE2_LIBS" >&6; }
19767 else
19768 FREETYPE2_CFLAGS=""
19769 FREETYPE2_LIBS=""
19770 ## If we have a custom action on failure, don't print errors, but
19771 ## do set a variable so people can do so.
19772 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19773 echo $FREETYPE2_PKG_ERRORS
19774 fi
19775
19776
19777
19778 else
19779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19781 fi
19782 fi
19783
19784 if test $succeeded = yes; then
19785 :
19786 else
19787 as_fn_error "Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19788 fi
19789
19790
19791 succeeded=no
19792
19793 if test -z "$PKG_CONFIG"; then
19794 # Extract the first word of "pkg-config", so it can be a program name with args.
19795 set dummy pkg-config; ac_word=$2
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19797 $as_echo_n "checking for $ac_word... " >&6; }
19798 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19799 $as_echo_n "(cached) " >&6
19800 else
19801 case $PKG_CONFIG in
19802 [\\/]* | ?:[\\/]*)
19803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19804 ;;
19805 *)
19806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807 for as_dir in $PATH
19808 do
19809 IFS=$as_save_IFS
19810 test -z "$as_dir" && as_dir=.
19811 for ac_exec_ext in '' $ac_executable_extensions; do
19812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19815 break 2
19816 fi
19817 done
19818 done
19819 IFS=$as_save_IFS
19820
19821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19822 ;;
19823 esac
19824 fi
19825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19826 if test -n "$PKG_CONFIG"; then
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19828 $as_echo "$PKG_CONFIG" >&6; }
19829 else
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19831 $as_echo "no" >&6; }
19832 fi
19833
19834
19835 fi
19836
19837 if test "$PKG_CONFIG" = "no" ; then
19838 echo "*** The pkg-config script could not be found. Make sure it is"
19839 echo "*** in your path, or set the PKG_CONFIG environment variable"
19840 echo "*** to the full path to pkg-config."
19841 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19842 else
19843 PKG_CONFIG_MIN_VERSION=0.9.0
19844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
19846 $as_echo_n "checking for pangoft2... " >&6; }
19847
19848 if $PKG_CONFIG --exists "pangoft2" ; then
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19850 $as_echo "yes" >&6; }
19851 succeeded=yes
19852
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
19854 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
19855 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
19857 $as_echo "$PANGOFT2_CFLAGS" >&6; }
19858
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
19860 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
19861 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
19863 $as_echo "$PANGOFT2_LIBS" >&6; }
19864 else
19865 PANGOFT2_CFLAGS=""
19866 PANGOFT2_LIBS=""
19867 ## If we have a custom action on failure, don't print errors, but
19868 ## do set a variable so people can do so.
19869 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
19870 echo $PANGOFT2_PKG_ERRORS
19871 fi
19872
19873
19874
19875 else
19876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19878 fi
19879 fi
19880
19881 if test $succeeded = yes; then
19882 :
19883 else
19884 as_fn_error "Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19885 fi
19886
19887
19888 succeeded=no
19889
19890 if test -z "$PKG_CONFIG"; then
19891 # Extract the first word of "pkg-config", so it can be a program name with args.
19892 set dummy pkg-config; ac_word=$2
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19894 $as_echo_n "checking for $ac_word... " >&6; }
19895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19896 $as_echo_n "(cached) " >&6
19897 else
19898 case $PKG_CONFIG in
19899 [\\/]* | ?:[\\/]*)
19900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19901 ;;
19902 *)
19903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in $PATH
19905 do
19906 IFS=$as_save_IFS
19907 test -z "$as_dir" && as_dir=.
19908 for ac_exec_ext in '' $ac_executable_extensions; do
19909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19912 break 2
19913 fi
19914 done
19915 done
19916 IFS=$as_save_IFS
19917
19918 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19919 ;;
19920 esac
19921 fi
19922 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19923 if test -n "$PKG_CONFIG"; then
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19925 $as_echo "$PKG_CONFIG" >&6; }
19926 else
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928 $as_echo "no" >&6; }
19929 fi
19930
19931
19932 fi
19933
19934 if test "$PKG_CONFIG" = "no" ; then
19935 echo "*** The pkg-config script could not be found. Make sure it is"
19936 echo "*** in your path, or set the PKG_CONFIG environment variable"
19937 echo "*** to the full path to pkg-config."
19938 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19939 else
19940 PKG_CONFIG_MIN_VERSION=0.9.0
19941 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
19943 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
19944
19945 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19947 $as_echo "yes" >&6; }
19948 succeeded=yes
19949
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
19951 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
19952 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
19954 $as_echo "$CAIRO_CFLAGS" >&6; }
19955
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
19957 $as_echo_n "checking CAIRO_LIBS... " >&6; }
19958 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
19960 $as_echo "$CAIRO_LIBS" >&6; }
19961 else
19962 CAIRO_CFLAGS=""
19963 CAIRO_LIBS=""
19964 ## If we have a custom action on failure, don't print errors, but
19965 ## do set a variable so people can do so.
19966 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
19967 echo $CAIRO_PKG_ERRORS
19968 fi
19969
19970
19971
19972 else
19973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19975 fi
19976 fi
19977
19978 if test $succeeded = yes; then
19979 :
19980 else
19981 as_fn_error "Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19982 fi
19983
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19985 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19986 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19987 $as_echo_n "(cached) " >&6
19988 else
19989 ac_check_lib_save_LIBS=$LIBS
19990 LIBS="-lXrender ${X_LIBS} $LIBS"
19991 if test x$gcc_no_link = xyes; then
19992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19993 fi
19994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19996
19997 /* Override any GCC internal prototype to avoid an error.
19998 Use char because int might match the return type of a GCC
19999 builtin and then its argument prototype would still apply. */
20000 #ifdef __cplusplus
20001 extern "C"
20002 #endif
20003 char XRenderQueryExtension ();
20004 int
20005 main ()
20006 {
20007 return XRenderQueryExtension ();
20008 ;
20009 return 0;
20010 }
20011 _ACEOF
20012 if ac_fn_c_try_link "$LINENO"; then :
20013 ac_cv_lib_Xrender_XRenderQueryExtension=yes
20014 else
20015 ac_cv_lib_Xrender_XRenderQueryExtension=no
20016 fi
20017 rm -f core conftest.err conftest.$ac_objext \
20018 conftest$ac_exeext conftest.$ac_ext
20019 LIBS=$ac_check_lib_save_LIBS
20020 fi
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
20022 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
20023 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
20024
20025 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
20026 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
20027 else
20028 true
20029 fi
20030
20031
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20033 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20034 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
20035 $as_echo_n "(cached) " >&6
20036 else
20037 ac_check_lib_save_LIBS=$LIBS
20038 LIBS="-lXrandr ${X_LIBS} $LIBS"
20039 if test x$gcc_no_link = xyes; then
20040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20041 fi
20042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043 /* end confdefs.h. */
20044
20045 /* Override any GCC internal prototype to avoid an error.
20046 Use char because int might match the return type of a GCC
20047 builtin and then its argument prototype would still apply. */
20048 #ifdef __cplusplus
20049 extern "C"
20050 #endif
20051 char XRRQueryExtension ();
20052 int
20053 main ()
20054 {
20055 return XRRQueryExtension ();
20056 ;
20057 return 0;
20058 }
20059 _ACEOF
20060 if ac_fn_c_try_link "$LINENO"; then :
20061 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20062 else
20063 ac_cv_lib_Xrandr_XRRQueryExtension=no
20064 fi
20065 rm -f core conftest.err conftest.$ac_objext \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20068 fi
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20070 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20071 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20072
20073 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20075 else
20076 true
20077 fi
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087 fi
20088
20089 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20090
20091 succeeded=no
20092
20093 if test -z "$PKG_CONFIG"; then
20094 # Extract the first word of "pkg-config", so it can be a program name with args.
20095 set dummy pkg-config; ac_word=$2
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20097 $as_echo_n "checking for $ac_word... " >&6; }
20098 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20099 $as_echo_n "(cached) " >&6
20100 else
20101 case $PKG_CONFIG in
20102 [\\/]* | ?:[\\/]*)
20103 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20104 ;;
20105 *)
20106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20107 for as_dir in $PATH
20108 do
20109 IFS=$as_save_IFS
20110 test -z "$as_dir" && as_dir=.
20111 for ac_exec_ext in '' $ac_executable_extensions; do
20112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20113 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20115 break 2
20116 fi
20117 done
20118 done
20119 IFS=$as_save_IFS
20120
20121 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20122 ;;
20123 esac
20124 fi
20125 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20126 if test -n "$PKG_CONFIG"; then
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20128 $as_echo "$PKG_CONFIG" >&6; }
20129 else
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20131 $as_echo "no" >&6; }
20132 fi
20133
20134
20135 fi
20136
20137 if test "$PKG_CONFIG" = "no" ; then
20138 echo "*** The pkg-config script could not be found. Make sure it is"
20139 echo "*** in your path, or set the PKG_CONFIG environment variable"
20140 echo "*** to the full path to pkg-config."
20141 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20142 else
20143 PKG_CONFIG_MIN_VERSION=0.9.0
20144 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20146 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20147
20148 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20150 $as_echo "yes" >&6; }
20151 succeeded=yes
20152
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20154 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20155 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20157 $as_echo "$GCONF_CFLAGS" >&6; }
20158
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20160 $as_echo_n "checking GCONF_LIBS... " >&6; }
20161 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20163 $as_echo "$GCONF_LIBS" >&6; }
20164 else
20165 GCONF_CFLAGS=""
20166 GCONF_LIBS=""
20167 ## If we have a custom action on failure, don't print errors, but
20168 ## do set a variable so people can do so.
20169 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20170 echo $GCONF_PKG_ERRORS
20171 fi
20172
20173
20174
20175 else
20176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20178 fi
20179 fi
20180
20181 if test $succeeded = yes; then
20182 :
20183 else
20184 as_fn_error "Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20185 fi
20186
20187
20188
20189
20190 succeeded=no
20191
20192 if test -z "$PKG_CONFIG"; then
20193 # Extract the first word of "pkg-config", so it can be a program name with args.
20194 set dummy pkg-config; ac_word=$2
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20196 $as_echo_n "checking for $ac_word... " >&6; }
20197 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20198 $as_echo_n "(cached) " >&6
20199 else
20200 case $PKG_CONFIG in
20201 [\\/]* | ?:[\\/]*)
20202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20203 ;;
20204 *)
20205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20206 for as_dir in $PATH
20207 do
20208 IFS=$as_save_IFS
20209 test -z "$as_dir" && as_dir=.
20210 for ac_exec_ext in '' $ac_executable_extensions; do
20211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20214 break 2
20215 fi
20216 done
20217 done
20218 IFS=$as_save_IFS
20219
20220 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20221 ;;
20222 esac
20223 fi
20224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20225 if test -n "$PKG_CONFIG"; then
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20227 $as_echo "$PKG_CONFIG" >&6; }
20228 else
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20230 $as_echo "no" >&6; }
20231 fi
20232
20233
20234 fi
20235
20236 if test "$PKG_CONFIG" = "no" ; then
20237 echo "*** The pkg-config script could not be found. Make sure it is"
20238 echo "*** in your path, or set the PKG_CONFIG environment variable"
20239 echo "*** to the full path to pkg-config."
20240 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20241 else
20242 PKG_CONFIG_MIN_VERSION=0.9.0
20243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20245 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20246
20247 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20249 $as_echo "yes" >&6; }
20250 succeeded=yes
20251
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20253 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20254 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20256 $as_echo "$GDK_CFLAGS" >&6; }
20257
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20259 $as_echo_n "checking GDK_LIBS... " >&6; }
20260 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20262 $as_echo "$GDK_LIBS" >&6; }
20263 else
20264 GDK_CFLAGS=""
20265 GDK_LIBS=""
20266 ## If we have a custom action on failure, don't print errors, but
20267 ## do set a variable so people can do so.
20268 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20269 echo $GDK_PKG_ERRORS
20270 fi
20271
20272
20273
20274 else
20275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20277 fi
20278 fi
20279
20280 if test $succeeded = yes; then
20281 :
20282 else
20283 as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20284 fi
20285
20286
20287
20288 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20289 if test "$USE_GCONF_PREFS_PEER" = ""; then
20290 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20291 fi
20292 fi
20293
20294 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20295 GST_MAJORMINOR=0.10
20296 GST_REQUIRED=0.10.10
20297
20298
20299 succeeded=no
20300
20301 if test -z "$PKG_CONFIG"; then
20302 # Extract the first word of "pkg-config", so it can be a program name with args.
20303 set dummy pkg-config; ac_word=$2
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20305 $as_echo_n "checking for $ac_word... " >&6; }
20306 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20307 $as_echo_n "(cached) " >&6
20308 else
20309 case $PKG_CONFIG in
20310 [\\/]* | ?:[\\/]*)
20311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20312 ;;
20313 *)
20314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315 for as_dir in $PATH
20316 do
20317 IFS=$as_save_IFS
20318 test -z "$as_dir" && as_dir=.
20319 for ac_exec_ext in '' $ac_executable_extensions; do
20320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20323 break 2
20324 fi
20325 done
20326 done
20327 IFS=$as_save_IFS
20328
20329 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20330 ;;
20331 esac
20332 fi
20333 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20334 if test -n "$PKG_CONFIG"; then
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20336 $as_echo "$PKG_CONFIG" >&6; }
20337 else
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20339 $as_echo "no" >&6; }
20340 fi
20341
20342
20343 fi
20344
20345 if test "$PKG_CONFIG" = "no" ; then
20346 echo "*** The pkg-config script could not be found. Make sure it is"
20347 echo "*** in your path, or set the PKG_CONFIG environment variable"
20348 echo "*** to the full path to pkg-config."
20349 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20350 else
20351 PKG_CONFIG_MIN_VERSION=0.9.0
20352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20354 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20355
20356 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20358 $as_echo "yes" >&6; }
20359 succeeded=yes
20360
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20362 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20363 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20365 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20366
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20368 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20369 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20371 $as_echo "$GSTREAMER_LIBS" >&6; }
20372 else
20373 GSTREAMER_CFLAGS=""
20374 GSTREAMER_LIBS=""
20375 ## If we have a custom action on failure, don't print errors, but
20376 ## do set a variable so people can do so.
20377 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20378 echo $GSTREAMER_PKG_ERRORS
20379 fi
20380
20381
20382
20383 else
20384 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20385 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20386 fi
20387 fi
20388
20389 if test $succeeded = yes; then
20390 :
20391 else
20392 as_fn_error "Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20393 fi
20394
20395
20396
20397
20398
20399 succeeded=no
20400
20401 if test -z "$PKG_CONFIG"; then
20402 # Extract the first word of "pkg-config", so it can be a program name with args.
20403 set dummy pkg-config; ac_word=$2
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20405 $as_echo_n "checking for $ac_word... " >&6; }
20406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20407 $as_echo_n "(cached) " >&6
20408 else
20409 case $PKG_CONFIG in
20410 [\\/]* | ?:[\\/]*)
20411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20412 ;;
20413 *)
20414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417 IFS=$as_save_IFS
20418 test -z "$as_dir" && as_dir=.
20419 for ac_exec_ext in '' $ac_executable_extensions; do
20420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20423 break 2
20424 fi
20425 done
20426 done
20427 IFS=$as_save_IFS
20428
20429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20430 ;;
20431 esac
20432 fi
20433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20434 if test -n "$PKG_CONFIG"; then
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20436 $as_echo "$PKG_CONFIG" >&6; }
20437 else
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20439 $as_echo "no" >&6; }
20440 fi
20441
20442
20443 fi
20444
20445 if test "$PKG_CONFIG" = "no" ; then
20446 echo "*** The pkg-config script could not be found. Make sure it is"
20447 echo "*** in your path, or set the PKG_CONFIG environment variable"
20448 echo "*** to the full path to pkg-config."
20449 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20450 else
20451 PKG_CONFIG_MIN_VERSION=0.9.0
20452 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20454 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20455
20456 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20458 $as_echo "yes" >&6; }
20459 succeeded=yes
20460
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20462 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20463 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20465 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20466
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20468 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20469 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20471 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20472 else
20473 GSTREAMER_BASE_CFLAGS=""
20474 GSTREAMER_BASE_LIBS=""
20475 ## If we have a custom action on failure, don't print errors, but
20476 ## do set a variable so people can do so.
20477 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20478 echo $GSTREAMER_BASE_PKG_ERRORS
20479 fi
20480
20481
20482
20483 else
20484 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20485 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20486 fi
20487 fi
20488
20489 if test $succeeded = yes; then
20490 :
20491 else
20492 as_fn_error "Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20493 fi
20494
20495
20496
20497
20498
20499 succeeded=no
20500
20501 if test -z "$PKG_CONFIG"; then
20502 # Extract the first word of "pkg-config", so it can be a program name with args.
20503 set dummy pkg-config; ac_word=$2
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20505 $as_echo_n "checking for $ac_word... " >&6; }
20506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20507 $as_echo_n "(cached) " >&6
20508 else
20509 case $PKG_CONFIG in
20510 [\\/]* | ?:[\\/]*)
20511 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20512 ;;
20513 *)
20514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20515 for as_dir in $PATH
20516 do
20517 IFS=$as_save_IFS
20518 test -z "$as_dir" && as_dir=.
20519 for ac_exec_ext in '' $ac_executable_extensions; do
20520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20521 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20523 break 2
20524 fi
20525 done
20526 done
20527 IFS=$as_save_IFS
20528
20529 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20530 ;;
20531 esac
20532 fi
20533 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20534 if test -n "$PKG_CONFIG"; then
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20536 $as_echo "$PKG_CONFIG" >&6; }
20537 else
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20539 $as_echo "no" >&6; }
20540 fi
20541
20542
20543 fi
20544
20545 if test "$PKG_CONFIG" = "no" ; then
20546 echo "*** The pkg-config script could not be found. Make sure it is"
20547 echo "*** in your path, or set the PKG_CONFIG environment variable"
20548 echo "*** to the full path to pkg-config."
20549 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20550 else
20551 PKG_CONFIG_MIN_VERSION=0.9.0
20552 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20554 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20555
20556 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20558 $as_echo "yes" >&6; }
20559 succeeded=yes
20560
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20562 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20563 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20565 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20566
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20568 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20569 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20571 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20572 else
20573 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20574 GSTREAMER_PLUGINS_BASE_LIBS=""
20575 ## If we have a custom action on failure, don't print errors, but
20576 ## do set a variable so people can do so.
20577 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20578 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20579 fi
20580
20581
20582
20583 else
20584 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20585 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20586 fi
20587 fi
20588
20589 if test $succeeded = yes; then
20590 :
20591 else
20592 as_fn_error "Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20593 fi
20594
20595
20596
20597
20598 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20599
20600
20601
20602 succeeded=no
20603
20604 if test -z "$PKG_CONFIG"; then
20605 # Extract the first word of "pkg-config", so it can be a program name with args.
20606 set dummy pkg-config; ac_word=$2
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20608 $as_echo_n "checking for $ac_word... " >&6; }
20609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20610 $as_echo_n "(cached) " >&6
20611 else
20612 case $PKG_CONFIG in
20613 [\\/]* | ?:[\\/]*)
20614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20615 ;;
20616 *)
20617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618 for as_dir in $PATH
20619 do
20620 IFS=$as_save_IFS
20621 test -z "$as_dir" && as_dir=.
20622 for ac_exec_ext in '' $ac_executable_extensions; do
20623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20626 break 2
20627 fi
20628 done
20629 done
20630 IFS=$as_save_IFS
20631
20632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20633 ;;
20634 esac
20635 fi
20636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20637 if test -n "$PKG_CONFIG"; then
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20639 $as_echo "$PKG_CONFIG" >&6; }
20640 else
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20643 fi
20644
20645
20646 fi
20647
20648 if test "$PKG_CONFIG" = "no" ; then
20649 echo "*** The pkg-config script could not be found. Make sure it is"
20650 echo "*** in your path, or set the PKG_CONFIG environment variable"
20651 echo "*** to the full path to pkg-config."
20652 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20653 else
20654 PKG_CONFIG_MIN_VERSION=0.9.0
20655 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20657 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20658
20659 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20661 $as_echo "yes" >&6; }
20662 succeeded=yes
20663
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20665 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20666 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20668 $as_echo "$GDK_CFLAGS" >&6; }
20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20671 $as_echo_n "checking GDK_LIBS... " >&6; }
20672 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20674 $as_echo "$GDK_LIBS" >&6; }
20675 else
20676 GDK_CFLAGS=""
20677 GDK_LIBS=""
20678 ## If we have a custom action on failure, don't print errors, but
20679 ## do set a variable so people can do so.
20680 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20681 echo $GDK_PKG_ERRORS
20682 fi
20683
20684
20685
20686 else
20687 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20688 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20689 fi
20690 fi
20691
20692 if test $succeeded = yes; then
20693 :
20694 else
20695 as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20696 fi
20697
20698
20699
20700
20701 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20702 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20703 fi
20704
20705
20706
20707 if test "x${COMPILE_QT_PEER}" = xyes; then
20708
20709 succeeded=no
20710
20711 if test -z "$PKG_CONFIG"; then
20712 # Extract the first word of "pkg-config", so it can be a program name with args.
20713 set dummy pkg-config; ac_word=$2
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20715 $as_echo_n "checking for $ac_word... " >&6; }
20716 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 case $PKG_CONFIG in
20720 [\\/]* | ?:[\\/]*)
20721 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20722 ;;
20723 *)
20724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20725 for as_dir in $PATH
20726 do
20727 IFS=$as_save_IFS
20728 test -z "$as_dir" && as_dir=.
20729 for ac_exec_ext in '' $ac_executable_extensions; do
20730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20731 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20733 break 2
20734 fi
20735 done
20736 done
20737 IFS=$as_save_IFS
20738
20739 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20740 ;;
20741 esac
20742 fi
20743 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20744 if test -n "$PKG_CONFIG"; then
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20746 $as_echo "$PKG_CONFIG" >&6; }
20747 else
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20749 $as_echo "no" >&6; }
20750 fi
20751
20752
20753 fi
20754
20755 if test "$PKG_CONFIG" = "no" ; then
20756 echo "*** The pkg-config script could not be found. Make sure it is"
20757 echo "*** in your path, or set the PKG_CONFIG environment variable"
20758 echo "*** to the full path to pkg-config."
20759 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20760 else
20761 PKG_CONFIG_MIN_VERSION=0.9.0
20762 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20764 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20765
20766 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20768 $as_echo "yes" >&6; }
20769 succeeded=yes
20770
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20772 $as_echo_n "checking QT_CFLAGS... " >&6; }
20773 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20775 $as_echo "$QT_CFLAGS" >&6; }
20776
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20778 $as_echo_n "checking QT_LIBS... " >&6; }
20779 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20781 $as_echo "$QT_LIBS" >&6; }
20782 else
20783 QT_CFLAGS=""
20784 QT_LIBS=""
20785 ## If we have a custom action on failure, don't print errors, but
20786 ## do set a variable so people can do so.
20787 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20788
20789 fi
20790
20791
20792
20793 else
20794 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20795 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20796 fi
20797 fi
20798
20799 if test $succeeded = yes; then
20800 HAVE_QT4="yes"
20801 else
20802 HAVE_QT4="no"
20803 fi
20804
20805 if test "x$HAVE_QT4" = "xyes"; then
20806 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20807 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20808 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20810 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20811 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20812 $as_echo_n "(cached) " >&6
20813 else
20814 test "$cross_compiling" = yes &&
20815 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20816 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20817 eval "$as_ac_File=yes"
20818 else
20819 eval "$as_ac_File=no"
20820 fi
20821 fi
20822 eval ac_res=\$$as_ac_File
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20824 $as_echo "$ac_res" >&6; }
20825 eval as_val=\$$as_ac_File
20826 if test "x$as_val" = x""yes; then :
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20828 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20829 else
20830 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20832 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20833 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20834 $as_echo_n "(cached) " >&6
20835 else
20836 test "$cross_compiling" = yes &&
20837 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20838 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20839 eval "$as_ac_File=yes"
20840 else
20841 eval "$as_ac_File=no"
20842 fi
20843 fi
20844 eval ac_res=\$$as_ac_File
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20846 $as_echo "$ac_res" >&6; }
20847 eval as_val=\$$as_ac_File
20848 if test "x$as_val" = x""yes; then :
20849 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
20850 else
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
20852 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
20853 fi
20854
20855 fi
20856
20857 # Extract the first word of "moc", so it can be a program name with args.
20858 set dummy moc; ac_word=$2
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20860 $as_echo_n "checking for $ac_word... " >&6; }
20861 if test "${ac_cv_prog_MOC+set}" = set; then :
20862 $as_echo_n "(cached) " >&6
20863 else
20864 if test -n "$MOC"; then
20865 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20866 else
20867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20868 for as_dir in $PATH
20869 do
20870 IFS=$as_save_IFS
20871 test -z "$as_dir" && as_dir=.
20872 for ac_exec_ext in '' $ac_executable_extensions; do
20873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20874 ac_cv_prog_MOC="moc"
20875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20876 break 2
20877 fi
20878 done
20879 done
20880 IFS=$as_save_IFS
20881
20882 fi
20883 fi
20884 MOC=$ac_cv_prog_MOC
20885 if test -n "$MOC"; then
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20887 $as_echo "$MOC" >&6; }
20888 else
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20890 $as_echo "no" >&6; }
20891 fi
20892
20893
20894 # Extract the first word of "moc-qt4", so it can be a program name with args.
20895 set dummy moc-qt4; ac_word=$2
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20897 $as_echo_n "checking for $ac_word... " >&6; }
20898 if test "${ac_cv_prog_MOC+set}" = set; then :
20899 $as_echo_n "(cached) " >&6
20900 else
20901 if test -n "$MOC"; then
20902 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20903 else
20904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20905 for as_dir in $PATH
20906 do
20907 IFS=$as_save_IFS
20908 test -z "$as_dir" && as_dir=.
20909 for ac_exec_ext in '' $ac_executable_extensions; do
20910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20911 ac_cv_prog_MOC="moc-qt4"
20912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20913 break 2
20914 fi
20915 done
20916 done
20917 IFS=$as_save_IFS
20918
20919 fi
20920 fi
20921 MOC=$ac_cv_prog_MOC
20922 if test -n "$MOC"; then
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20924 $as_echo "$MOC" >&6; }
20925 else
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20927 $as_echo "no" >&6; }
20928 fi
20929
20930
20931 fi
20932 if test "x$HAVE_QT4" = "xno"; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
20934 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
20935 case "$host_os" in
20936 darwin*)
20937
20938 # Check whether --with-qt4dir was given.
20939 if test "${with_qt4dir+set}" = set; then :
20940 withval=$with_qt4dir; QT4DIR=$withval
20941
20942 fi
20943
20944 if test x"$QT4DIR" = x ; then
20945 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
20946 fi
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
20948 $as_echo "QT4DIR... $QT4DIR" >&6; }
20949 # Extract the first word of "moc", so it can be a program name with args.
20950 set dummy moc; ac_word=$2
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20952 $as_echo_n "checking for $ac_word... " >&6; }
20953 if test "${ac_cv_prog_MOC+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20955 else
20956 if test -n "$MOC"; then
20957 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20958 else
20959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20960 for as_dir in $QT4DIR/bin
20961 do
20962 IFS=$as_save_IFS
20963 test -z "$as_dir" && as_dir=.
20964 for ac_exec_ext in '' $ac_executable_extensions; do
20965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20966 ac_cv_prog_MOC="$QT4DIR/bin/moc"
20967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20968 break 2
20969 fi
20970 done
20971 done
20972 IFS=$as_save_IFS
20973
20974 fi
20975 fi
20976 MOC=$ac_cv_prog_MOC
20977 if test -n "$MOC"; then
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20979 $as_echo "$MOC" >&6; }
20980 else
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20982 $as_echo "no" >&6; }
20983 fi
20984
20985
20986 if test x"$MOC" = x; then
20987 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
20988 fi
20989 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
20990 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
20991 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
20992 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
20993 ;;
20994 *)
20995 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
20996 of your installed Qt4 installation." "$LINENO" 5
20997 ;;
20998 esac
20999 fi
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
21001 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
21002
21003
21004 fi
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21006 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21009 #include <sys/socket.h>
21010 int
21011 main ()
21012 {
21013 int f = MSG_NOSIGNAL;
21014 ;
21015 return 0;
21016 }
21017 _ACEOF
21018 if ac_fn_c_try_compile "$LINENO"; then :
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21020 $as_echo "yes" >&6; }
21021
21022 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
21023
21024 else
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21027
21028 fi
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
21031 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033 /* end confdefs.h. */
21034 #include <sys/socket.h>
21035 int
21036 main ()
21037 {
21038 int f = SO_NOSIGPIPE;
21039 ;
21040 return 0;
21041 }
21042 _ACEOF
21043 if ac_fn_c_try_compile "$LINENO"; then :
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21045 $as_echo "yes" >&6; }
21046
21047 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
21048
21049 else
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 $as_echo "no" >&6; }
21052
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
21056 $as_echo_n "checking for MSG_WAITALL... " >&6; }
21057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h. */
21059 #include <sys/socket.h>
21060 int
21061 main ()
21062 {
21063 int f = MSG_WAITALL;
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 if ac_fn_c_try_compile "$LINENO"; then :
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21070 $as_echo "yes" >&6; }
21071
21072 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21073
21074 else
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076 $as_echo "no" >&6; }
21077
21078 fi
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080
21081 if test "x${COMPILE_PLUGIN}" = xyes; then
21082
21083 succeeded=no
21084
21085 if test -z "$PKG_CONFIG"; then
21086 # Extract the first word of "pkg-config", so it can be a program name with args.
21087 set dummy pkg-config; ac_word=$2
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21089 $as_echo_n "checking for $ac_word... " >&6; }
21090 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21091 $as_echo_n "(cached) " >&6
21092 else
21093 case $PKG_CONFIG in
21094 [\\/]* | ?:[\\/]*)
21095 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21096 ;;
21097 *)
21098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21099 for as_dir in $PATH
21100 do
21101 IFS=$as_save_IFS
21102 test -z "$as_dir" && as_dir=.
21103 for ac_exec_ext in '' $ac_executable_extensions; do
21104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21105 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21107 break 2
21108 fi
21109 done
21110 done
21111 IFS=$as_save_IFS
21112
21113 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21114 ;;
21115 esac
21116 fi
21117 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21118 if test -n "$PKG_CONFIG"; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21120 $as_echo "$PKG_CONFIG" >&6; }
21121 else
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123 $as_echo "no" >&6; }
21124 fi
21125
21126
21127 fi
21128
21129 if test "$PKG_CONFIG" = "no" ; then
21130 echo "*** The pkg-config script could not be found. Make sure it is"
21131 echo "*** in your path, or set the PKG_CONFIG environment variable"
21132 echo "*** to the full path to pkg-config."
21133 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21134 else
21135 PKG_CONFIG_MIN_VERSION=0.9.0
21136 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21138 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21139
21140 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21142 $as_echo "yes" >&6; }
21143 succeeded=yes
21144
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21146 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21147 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21149 $as_echo "$MOZILLA_CFLAGS" >&6; }
21150
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21152 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21153 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21155 $as_echo "$MOZILLA_LIBS" >&6; }
21156 else
21157 MOZILLA_CFLAGS=""
21158 MOZILLA_LIBS=""
21159 ## If we have a custom action on failure, don't print errors, but
21160 ## do set a variable so people can do so.
21161 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21162
21163 fi
21164
21165
21166
21167 else
21168 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21169 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21170 fi
21171 fi
21172
21173 if test $succeeded = yes; then
21174 MOZILLA_FOUND=yes
21175 else
21176 MOZILLA_FOUND=no
21177 fi
21178
21179 if test "x${MOZILLA_FOUND}" = xno; then
21180
21181 succeeded=no
21182
21183 if test -z "$PKG_CONFIG"; then
21184 # Extract the first word of "pkg-config", so it can be a program name with args.
21185 set dummy pkg-config; ac_word=$2
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21187 $as_echo_n "checking for $ac_word... " >&6; }
21188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21189 $as_echo_n "(cached) " >&6
21190 else
21191 case $PKG_CONFIG in
21192 [\\/]* | ?:[\\/]*)
21193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21194 ;;
21195 *)
21196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21197 for as_dir in $PATH
21198 do
21199 IFS=$as_save_IFS
21200 test -z "$as_dir" && as_dir=.
21201 for ac_exec_ext in '' $ac_executable_extensions; do
21202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21205 break 2
21206 fi
21207 done
21208 done
21209 IFS=$as_save_IFS
21210
21211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21212 ;;
21213 esac
21214 fi
21215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21216 if test -n "$PKG_CONFIG"; then
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21218 $as_echo "$PKG_CONFIG" >&6; }
21219 else
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21221 $as_echo "no" >&6; }
21222 fi
21223
21224
21225 fi
21226
21227 if test "$PKG_CONFIG" = "no" ; then
21228 echo "*** The pkg-config script could not be found. Make sure it is"
21229 echo "*** in your path, or set the PKG_CONFIG environment variable"
21230 echo "*** to the full path to pkg-config."
21231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21232 else
21233 PKG_CONFIG_MIN_VERSION=0.9.0
21234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21236 $as_echo_n "checking for mozilla-plugin... " >&6; }
21237
21238 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21240 $as_echo "yes" >&6; }
21241 succeeded=yes
21242
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21244 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21245 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21247 $as_echo "$MOZILLA_CFLAGS" >&6; }
21248
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21250 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21251 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21253 $as_echo "$MOZILLA_LIBS" >&6; }
21254 else
21255 MOZILLA_CFLAGS=""
21256 MOZILLA_LIBS=""
21257 ## If we have a custom action on failure, don't print errors, but
21258 ## do set a variable so people can do so.
21259 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21260
21261 fi
21262
21263
21264
21265 else
21266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21268 fi
21269 fi
21270
21271 if test $succeeded = yes; then
21272 MOZILLA_FOUND=yes
21273 else
21274 MOZILLA_FOUND=no
21275 fi
21276
21277 fi
21278 if test "x${MOZILLA_FOUND}" = xno; then
21279
21280 succeeded=no
21281
21282 if test -z "$PKG_CONFIG"; then
21283 # Extract the first word of "pkg-config", so it can be a program name with args.
21284 set dummy pkg-config; ac_word=$2
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21286 $as_echo_n "checking for $ac_word... " >&6; }
21287 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21288 $as_echo_n "(cached) " >&6
21289 else
21290 case $PKG_CONFIG in
21291 [\\/]* | ?:[\\/]*)
21292 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21293 ;;
21294 *)
21295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21296 for as_dir in $PATH
21297 do
21298 IFS=$as_save_IFS
21299 test -z "$as_dir" && as_dir=.
21300 for ac_exec_ext in '' $ac_executable_extensions; do
21301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21302 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21304 break 2
21305 fi
21306 done
21307 done
21308 IFS=$as_save_IFS
21309
21310 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21311 ;;
21312 esac
21313 fi
21314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21315 if test -n "$PKG_CONFIG"; then
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21317 $as_echo "$PKG_CONFIG" >&6; }
21318 else
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21320 $as_echo "no" >&6; }
21321 fi
21322
21323
21324 fi
21325
21326 if test "$PKG_CONFIG" = "no" ; then
21327 echo "*** The pkg-config script could not be found. Make sure it is"
21328 echo "*** in your path, or set the PKG_CONFIG environment variable"
21329 echo "*** to the full path to pkg-config."
21330 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21331 else
21332 PKG_CONFIG_MIN_VERSION=0.9.0
21333 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21335 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21336
21337 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21339 $as_echo "yes" >&6; }
21340 succeeded=yes
21341
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21343 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21344 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21346 $as_echo "$MOZILLA_CFLAGS" >&6; }
21347
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21349 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21350 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21352 $as_echo "$MOZILLA_LIBS" >&6; }
21353 else
21354 MOZILLA_CFLAGS=""
21355 MOZILLA_LIBS=""
21356 ## If we have a custom action on failure, don't print errors, but
21357 ## do set a variable so people can do so.
21358 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21359
21360 fi
21361
21362
21363
21364 else
21365 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21366 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21367 fi
21368 fi
21369
21370 if test $succeeded = yes; then
21371 MOZILLA_FOUND=yes
21372 else
21373 MOZILLA_FOUND=no
21374 fi
21375
21376 fi
21377 if test "x${MOZILLA_FOUND}" = xno; then
21378
21379 succeeded=no
21380
21381 if test -z "$PKG_CONFIG"; then
21382 # Extract the first word of "pkg-config", so it can be a program name with args.
21383 set dummy pkg-config; ac_word=$2
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21385 $as_echo_n "checking for $ac_word... " >&6; }
21386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21387 $as_echo_n "(cached) " >&6
21388 else
21389 case $PKG_CONFIG in
21390 [\\/]* | ?:[\\/]*)
21391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21392 ;;
21393 *)
21394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21395 for as_dir in $PATH
21396 do
21397 IFS=$as_save_IFS
21398 test -z "$as_dir" && as_dir=.
21399 for ac_exec_ext in '' $ac_executable_extensions; do
21400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21403 break 2
21404 fi
21405 done
21406 done
21407 IFS=$as_save_IFS
21408
21409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21410 ;;
21411 esac
21412 fi
21413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21414 if test -n "$PKG_CONFIG"; then
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21416 $as_echo "$PKG_CONFIG" >&6; }
21417 else
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21419 $as_echo "no" >&6; }
21420 fi
21421
21422
21423 fi
21424
21425 if test "$PKG_CONFIG" = "no" ; then
21426 echo "*** The pkg-config script could not be found. Make sure it is"
21427 echo "*** in your path, or set the PKG_CONFIG environment variable"
21428 echo "*** to the full path to pkg-config."
21429 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21430 else
21431 PKG_CONFIG_MIN_VERSION=0.9.0
21432 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21434 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21435
21436 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21438 $as_echo "yes" >&6; }
21439 succeeded=yes
21440
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21442 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21443 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21445 $as_echo "$MOZILLA_CFLAGS" >&6; }
21446
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21448 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21449 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21451 $as_echo "$MOZILLA_LIBS" >&6; }
21452 else
21453 MOZILLA_CFLAGS=""
21454 MOZILLA_LIBS=""
21455 ## If we have a custom action on failure, don't print errors, but
21456 ## do set a variable so people can do so.
21457 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21458
21459 fi
21460
21461
21462
21463 else
21464 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21465 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21466 fi
21467 fi
21468
21469 if test $succeeded = yes; then
21470 MOZILLA_FOUND=yes
21471 else
21472 MOZILLA_FOUND=no
21473 fi
21474
21475 fi
21476 if test "x${MOZILLA_FOUND}" = xno; then
21477
21478 succeeded=no
21479
21480 if test -z "$PKG_CONFIG"; then
21481 # Extract the first word of "pkg-config", so it can be a program name with args.
21482 set dummy pkg-config; ac_word=$2
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21484 $as_echo_n "checking for $ac_word... " >&6; }
21485 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21486 $as_echo_n "(cached) " >&6
21487 else
21488 case $PKG_CONFIG in
21489 [\\/]* | ?:[\\/]*)
21490 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21491 ;;
21492 *)
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21495 do
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21500 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21503 fi
21504 done
21505 done
21506 IFS=$as_save_IFS
21507
21508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21509 ;;
21510 esac
21511 fi
21512 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21513 if test -n "$PKG_CONFIG"; then
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21515 $as_echo "$PKG_CONFIG" >&6; }
21516 else
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21518 $as_echo "no" >&6; }
21519 fi
21520
21521
21522 fi
21523
21524 if test "$PKG_CONFIG" = "no" ; then
21525 echo "*** The pkg-config script could not be found. Make sure it is"
21526 echo "*** in your path, or set the PKG_CONFIG environment variable"
21527 echo "*** to the full path to pkg-config."
21528 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21529 else
21530 PKG_CONFIG_MIN_VERSION=0.9.0
21531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21533 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21534
21535 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21537 $as_echo "yes" >&6; }
21538 succeeded=yes
21539
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21541 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21542 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21544 $as_echo "$MOZILLA_CFLAGS" >&6; }
21545
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21547 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21548 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21550 $as_echo "$MOZILLA_LIBS" >&6; }
21551 else
21552 MOZILLA_CFLAGS=""
21553 MOZILLA_LIBS=""
21554 ## If we have a custom action on failure, don't print errors, but
21555 ## do set a variable so people can do so.
21556 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21557
21558 fi
21559
21560
21561
21562 else
21563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21565 fi
21566 fi
21567
21568 if test $succeeded = yes; then
21569 MOZILLA_FOUND=yes
21570 else
21571 MOZILLA_FOUND=no
21572 fi
21573
21574 fi
21575 if test "x${MOZILLA_FOUND}" = xno; then
21576
21577 succeeded=no
21578
21579 if test -z "$PKG_CONFIG"; then
21580 # Extract the first word of "pkg-config", so it can be a program name with args.
21581 set dummy pkg-config; ac_word=$2
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21583 $as_echo_n "checking for $ac_word... " >&6; }
21584 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21585 $as_echo_n "(cached) " >&6
21586 else
21587 case $PKG_CONFIG in
21588 [\\/]* | ?:[\\/]*)
21589 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21590 ;;
21591 *)
21592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21593 for as_dir in $PATH
21594 do
21595 IFS=$as_save_IFS
21596 test -z "$as_dir" && as_dir=.
21597 for ac_exec_ext in '' $ac_executable_extensions; do
21598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21599 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21601 break 2
21602 fi
21603 done
21604 done
21605 IFS=$as_save_IFS
21606
21607 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21608 ;;
21609 esac
21610 fi
21611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21612 if test -n "$PKG_CONFIG"; then
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21614 $as_echo "$PKG_CONFIG" >&6; }
21615 else
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21617 $as_echo "no" >&6; }
21618 fi
21619
21620
21621 fi
21622
21623 if test "$PKG_CONFIG" = "no" ; then
21624 echo "*** The pkg-config script could not be found. Make sure it is"
21625 echo "*** in your path, or set the PKG_CONFIG environment variable"
21626 echo "*** to the full path to pkg-config."
21627 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21628 else
21629 PKG_CONFIG_MIN_VERSION=0.9.0
21630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21632 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21633
21634 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21636 $as_echo "yes" >&6; }
21637 succeeded=yes
21638
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21640 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21641 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21643 $as_echo "$MOZILLA_CFLAGS" >&6; }
21644
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21646 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21647 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21649 $as_echo "$MOZILLA_LIBS" >&6; }
21650 else
21651 MOZILLA_CFLAGS=""
21652 MOZILLA_LIBS=""
21653 ## If we have a custom action on failure, don't print errors, but
21654 ## do set a variable so people can do so.
21655 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21656
21657 fi
21658
21659
21660
21661 else
21662 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21663 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21664 fi
21665 fi
21666
21667 if test $succeeded = yes; then
21668 MOZILLA_FOUND=yes
21669 else
21670 MOZILLA_FOUND=no
21671 fi
21672
21673 fi
21674 if test "x${MOZILLA_FOUND}" = xno; then
21675
21676 succeeded=no
21677
21678 if test -z "$PKG_CONFIG"; then
21679 # Extract the first word of "pkg-config", so it can be a program name with args.
21680 set dummy pkg-config; ac_word=$2
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21682 $as_echo_n "checking for $ac_word... " >&6; }
21683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21684 $as_echo_n "(cached) " >&6
21685 else
21686 case $PKG_CONFIG in
21687 [\\/]* | ?:[\\/]*)
21688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21689 ;;
21690 *)
21691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21692 for as_dir in $PATH
21693 do
21694 IFS=$as_save_IFS
21695 test -z "$as_dir" && as_dir=.
21696 for ac_exec_ext in '' $ac_executable_extensions; do
21697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21700 break 2
21701 fi
21702 done
21703 done
21704 IFS=$as_save_IFS
21705
21706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21707 ;;
21708 esac
21709 fi
21710 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21711 if test -n "$PKG_CONFIG"; then
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21713 $as_echo "$PKG_CONFIG" >&6; }
21714 else
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716 $as_echo "no" >&6; }
21717 fi
21718
21719
21720 fi
21721
21722 if test "$PKG_CONFIG" = "no" ; then
21723 echo "*** The pkg-config script could not be found. Make sure it is"
21724 echo "*** in your path, or set the PKG_CONFIG environment variable"
21725 echo "*** to the full path to pkg-config."
21726 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21727 else
21728 PKG_CONFIG_MIN_VERSION=0.9.0
21729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21731 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21732
21733 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735 $as_echo "yes" >&6; }
21736 succeeded=yes
21737
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21739 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21740 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21742 $as_echo "$MOZILLA_CFLAGS" >&6; }
21743
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21745 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21746 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21748 $as_echo "$MOZILLA_LIBS" >&6; }
21749 else
21750 MOZILLA_CFLAGS=""
21751 MOZILLA_LIBS=""
21752 ## If we have a custom action on failure, don't print errors, but
21753 ## do set a variable so people can do so.
21754 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21755
21756 fi
21757
21758
21759
21760 else
21761 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21762 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21763 fi
21764 fi
21765
21766 if test $succeeded = yes; then
21767 MOZILLA_FOUND=yes
21768 else
21769 MOZILLA_FOUND=no
21770 fi
21771
21772 fi
21773 if test "x${MOZILLA_FOUND}" = xno; then
21774 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21775 fi
21776
21777
21778 succeeded=no
21779
21780 if test -z "$PKG_CONFIG"; then
21781 # Extract the first word of "pkg-config", so it can be a program name with args.
21782 set dummy pkg-config; ac_word=$2
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21784 $as_echo_n "checking for $ac_word... " >&6; }
21785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21786 $as_echo_n "(cached) " >&6
21787 else
21788 case $PKG_CONFIG in
21789 [\\/]* | ?:[\\/]*)
21790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21791 ;;
21792 *)
21793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21794 for as_dir in $PATH
21795 do
21796 IFS=$as_save_IFS
21797 test -z "$as_dir" && as_dir=.
21798 for ac_exec_ext in '' $ac_executable_extensions; do
21799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21802 break 2
21803 fi
21804 done
21805 done
21806 IFS=$as_save_IFS
21807
21808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21809 ;;
21810 esac
21811 fi
21812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21813 if test -n "$PKG_CONFIG"; then
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21815 $as_echo "$PKG_CONFIG" >&6; }
21816 else
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21818 $as_echo "no" >&6; }
21819 fi
21820
21821
21822 fi
21823
21824 if test "$PKG_CONFIG" = "no" ; then
21825 echo "*** The pkg-config script could not be found. Make sure it is"
21826 echo "*** in your path, or set the PKG_CONFIG environment variable"
21827 echo "*** to the full path to pkg-config."
21828 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21829 else
21830 PKG_CONFIG_MIN_VERSION=0.9.0
21831 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21833 $as_echo_n "checking for glib-2.0... " >&6; }
21834
21835 if $PKG_CONFIG --exists "glib-2.0" ; then
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21837 $as_echo "yes" >&6; }
21838 succeeded=yes
21839
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
21841 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
21842 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
21844 $as_echo "$GLIB_CFLAGS" >&6; }
21845
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
21847 $as_echo_n "checking GLIB_LIBS... " >&6; }
21848 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
21850 $as_echo "$GLIB_LIBS" >&6; }
21851 else
21852 GLIB_CFLAGS=""
21853 GLIB_LIBS=""
21854 ## If we have a custom action on failure, don't print errors, but
21855 ## do set a variable so people can do so.
21856 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21857 echo $GLIB_PKG_ERRORS
21858 fi
21859
21860
21861
21862 else
21863 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21864 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21865 fi
21866 fi
21867
21868 if test $succeeded = yes; then
21869 :
21870 else
21871 as_fn_error "Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
21872 fi
21873
21874
21875 succeeded=no
21876
21877 if test -z "$PKG_CONFIG"; then
21878 # Extract the first word of "pkg-config", so it can be a program name with args.
21879 set dummy pkg-config; ac_word=$2
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21881 $as_echo_n "checking for $ac_word... " >&6; }
21882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 case $PKG_CONFIG in
21886 [\\/]* | ?:[\\/]*)
21887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21888 ;;
21889 *)
21890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21891 for as_dir in $PATH
21892 do
21893 IFS=$as_save_IFS
21894 test -z "$as_dir" && as_dir=.
21895 for ac_exec_ext in '' $ac_executable_extensions; do
21896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21899 break 2
21900 fi
21901 done
21902 done
21903 IFS=$as_save_IFS
21904
21905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21906 ;;
21907 esac
21908 fi
21909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21910 if test -n "$PKG_CONFIG"; then
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21912 $as_echo "$PKG_CONFIG" >&6; }
21913 else
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21915 $as_echo "no" >&6; }
21916 fi
21917
21918
21919 fi
21920
21921 if test "$PKG_CONFIG" = "no" ; then
21922 echo "*** The pkg-config script could not be found. Make sure it is"
21923 echo "*** in your path, or set the PKG_CONFIG environment variable"
21924 echo "*** to the full path to pkg-config."
21925 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21926 else
21927 PKG_CONFIG_MIN_VERSION=0.9.0
21928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
21930 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
21931
21932 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21934 $as_echo "yes" >&6; }
21935 succeeded=yes
21936
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
21938 $as_echo_n "checking GTK_CFLAGS... " >&6; }
21939 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
21941 $as_echo "$GTK_CFLAGS" >&6; }
21942
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
21944 $as_echo_n "checking GTK_LIBS... " >&6; }
21945 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
21947 $as_echo "$GTK_LIBS" >&6; }
21948 else
21949 GTK_CFLAGS=""
21950 GTK_LIBS=""
21951 ## If we have a custom action on failure, don't print errors, but
21952 ## do set a variable so people can do so.
21953 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21954 echo $GTK_PKG_ERRORS
21955 fi
21956
21957
21958
21959 else
21960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21962 fi
21963 fi
21964
21965 if test $succeeded = yes; then
21966 :
21967 else
21968 as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
21969 fi
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979 PLUGIN_DIR=$HOME/.mozilla/plugins/
21980
21981 fi
21982
21983
21984 # Check whether --with-gmp was given.
21985 if test "${with_gmp+set}" = set; then :
21986 withval=$with_gmp;
21987 fi
21988
21989
21990 # Check whether --with-gmp_include was given.
21991 if test "${with_gmp_include+set}" = set; then :
21992 withval=$with_gmp_include;
21993 fi
21994
21995
21996 # Check whether --with-gmp_lib was given.
21997 if test "${with_gmp_lib+set}" = set; then :
21998 withval=$with_gmp_lib;
21999 fi
22000
22001
22002 if test "x$with_gmp" != x; then
22003 gmplibs=-lgmp
22004 gmpinc=
22005 gmplibs="-L$with_gmp/lib $gmplibs"
22006 gmpinc="-I$with_gmp/include $gmpinc"
22007 if test "x$with_gmp_include" != x; then
22008 gmpinc="-I$with_gmp_include $gmpinc"
22009 fi
22010 if test "x$with_gmp_lib" != x; then
22011 gmplibs="-L$with_gmp_lib $gmplibs"
22012 fi
22013 else
22014 gmplibs="-lgmp"
22015 gmpinc="-I/usr/include"
22016 fi
22017
22018 if test "x${COMPILE_GMP}" = xyes; then
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
22020 $as_echo_n "checking for GMP directories... " >&6; }
22021 if test "x$with_gmp" != x; then
22022 gmplibs="-L$with_gmp/lib -lgmp"
22023 gmpinc="-I$with_gmp/include"
22024 if test "x$with_gmp_include" != x; then
22025 gmpinc="-I$with_gmp_include $gmpinc"
22026 fi
22027 if test "x$with_gmp_lib" != x; then
22028 gmplibs="-L$with_gmp_lib $gmplibs"
22029 fi
22030 else
22031 with_gmp="/usr"
22032 gmplibs="-lgmp"
22033 gmpinc="-I/usr/include"
22034 fi
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
22036 $as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
22038 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
22039 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
22040 $as_echo_n "(cached) " >&6
22041 else
22042 ac_check_lib_save_LIBS=$LIBS
22043 LIBS="-lgmp $LIBS"
22044 if test x$gcc_no_link = xyes; then
22045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22046 fi
22047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h. */
22049
22050 /* Override any GCC internal prototype to avoid an error.
22051 Use char because int might match the return type of a GCC
22052 builtin and then its argument prototype would still apply. */
22053 #ifdef __cplusplus
22054 extern "C"
22055 #endif
22056 char __gmpz_mul_si ();
22057 int
22058 main ()
22059 {
22060 return __gmpz_mul_si ();
22061 ;
22062 return 0;
22063 }
22064 _ACEOF
22065 if ac_fn_c_try_link "$LINENO"; then :
22066 ac_cv_lib_gmp___gmpz_mul_si=yes
22067 else
22068 ac_cv_lib_gmp___gmpz_mul_si=no
22069 fi
22070 rm -f core conftest.err conftest.$ac_objext \
22071 conftest$ac_exeext conftest.$ac_ext
22072 LIBS=$ac_check_lib_save_LIBS
22073 fi
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
22075 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
22076 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
22077 GMP_CFLAGS="$gmpinc"
22078 GMP_LIBS="$gmplibs"
22079 else
22080 GMP_CFLAGS=
22081 GMP_LIBS=
22082 fi
22083
22084
22085
22086
22087 for ac_header in gmp.h
22088 do :
22089 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22090 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22091 cat >>confdefs.h <<_ACEOF
22092 #define HAVE_GMP_H 1
22093 _ACEOF
22094
22095 fi
22096
22097 done
22098
22099 fi
22100
22101 else
22102 COMPILE_GMP=no
22103 fi
22104
22105 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22106
22107
22108 # Check whether --with-javah was given.
22109 if test "${with_javah+set}" = set; then :
22110 withval=$with_javah;
22111 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22112
22113 if test "x${withval}" != x; then
22114 if test -f "${withval}"; then
22115 USER_JAVAH="${withval}"
22116 else
22117 # Extract the first word of ""${withval}"", so it can be a program name with args.
22118 set dummy "${withval}"; ac_word=$2
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22120 $as_echo_n "checking for $ac_word... " >&6; }
22121 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22122 $as_echo_n "(cached) " >&6
22123 else
22124 case $USER_JAVAH in
22125 [\\/]* | ?:[\\/]*)
22126 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22127 ;;
22128 *)
22129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22130 for as_dir in $PATH
22131 do
22132 IFS=$as_save_IFS
22133 test -z "$as_dir" && as_dir=.
22134 for ac_exec_ext in '' $ac_executable_extensions; do
22135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22136 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22138 break 2
22139 fi
22140 done
22141 done
22142 IFS=$as_save_IFS
22143
22144 ;;
22145 esac
22146 fi
22147 USER_JAVAH=$ac_cv_path_USER_JAVAH
22148 if test -n "$USER_JAVAH"; then
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22150 $as_echo "$USER_JAVAH" >&6; }
22151 else
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22153 $as_echo "no" >&6; }
22154 fi
22155
22156
22157 fi
22158 else
22159 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22160 do
22161 # Extract the first word of "$ac_prog", so it can be a program name with args.
22162 set dummy $ac_prog; ac_word=$2
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22164 $as_echo_n "checking for $ac_word... " >&6; }
22165 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22166 $as_echo_n "(cached) " >&6
22167 else
22168 case $USER_JAVAH in
22169 [\\/]* | ?:[\\/]*)
22170 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22171 ;;
22172 *)
22173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22174 for as_dir in $PATH
22175 do
22176 IFS=$as_save_IFS
22177 test -z "$as_dir" && as_dir=.
22178 for ac_exec_ext in '' $ac_executable_extensions; do
22179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22180 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22182 break 2
22183 fi
22184 done
22185 done
22186 IFS=$as_save_IFS
22187
22188 ;;
22189 esac
22190 fi
22191 USER_JAVAH=$ac_cv_path_USER_JAVAH
22192 if test -n "$USER_JAVAH"; then
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22194 $as_echo "$USER_JAVAH" >&6; }
22195 else
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22197 $as_echo "no" >&6; }
22198 fi
22199
22200
22201 test -n "$USER_JAVAH" && break
22202 done
22203
22204 fi
22205
22206 if test "x${USER_JAVAH}" = x; then
22207 as_fn_error "can not find javah" "$LINENO" 5
22208 fi
22209
22210 else
22211
22212 if test "x" != x; then
22213 if test -f ""; then
22214 USER_JAVAH=""
22215 else
22216 # Extract the first word of """", so it can be a program name with args.
22217 set dummy ""; ac_word=$2
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22219 $as_echo_n "checking for $ac_word... " >&6; }
22220 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22222 else
22223 case $USER_JAVAH in
22224 [\\/]* | ?:[\\/]*)
22225 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22226 ;;
22227 *)
22228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22229 for as_dir in $PATH
22230 do
22231 IFS=$as_save_IFS
22232 test -z "$as_dir" && as_dir=.
22233 for ac_exec_ext in '' $ac_executable_extensions; do
22234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22235 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22237 break 2
22238 fi
22239 done
22240 done
22241 IFS=$as_save_IFS
22242
22243 ;;
22244 esac
22245 fi
22246 USER_JAVAH=$ac_cv_path_USER_JAVAH
22247 if test -n "$USER_JAVAH"; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22249 $as_echo "$USER_JAVAH" >&6; }
22250 else
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22252 $as_echo "no" >&6; }
22253 fi
22254
22255
22256 fi
22257 else
22258 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22259 do
22260 # Extract the first word of "$ac_prog", so it can be a program name with args.
22261 set dummy $ac_prog; ac_word=$2
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22263 $as_echo_n "checking for $ac_word... " >&6; }
22264 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22266 else
22267 case $USER_JAVAH in
22268 [\\/]* | ?:[\\/]*)
22269 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22270 ;;
22271 *)
22272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22273 for as_dir in $PATH
22274 do
22275 IFS=$as_save_IFS
22276 test -z "$as_dir" && as_dir=.
22277 for ac_exec_ext in '' $ac_executable_extensions; do
22278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22279 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22281 break 2
22282 fi
22283 done
22284 done
22285 IFS=$as_save_IFS
22286
22287 ;;
22288 esac
22289 fi
22290 USER_JAVAH=$ac_cv_path_USER_JAVAH
22291 if test -n "$USER_JAVAH"; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22293 $as_echo "$USER_JAVAH" >&6; }
22294 else
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22296 $as_echo "no" >&6; }
22297 fi
22298
22299
22300 test -n "$USER_JAVAH" && break
22301 done
22302
22303 fi
22304
22305 if test "x${USER_JAVAH}" = x; then
22306 as_fn_error "can not find javah" "$LINENO" 5
22307 fi
22308
22309 fi
22310
22311 else
22312
22313
22314 if test "x" != x; then
22315 if test -f ""; then
22316 USER_JAVAH=""
22317 else
22318 # Extract the first word of """", so it can be a program name with args.
22319 set dummy ""; ac_word=$2
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22321 $as_echo_n "checking for $ac_word... " >&6; }
22322 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 case $USER_JAVAH in
22326 [\\/]* | ?:[\\/]*)
22327 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22328 ;;
22329 *)
22330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22331 for as_dir in $PATH
22332 do
22333 IFS=$as_save_IFS
22334 test -z "$as_dir" && as_dir=.
22335 for ac_exec_ext in '' $ac_executable_extensions; do
22336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22337 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22339 break 2
22340 fi
22341 done
22342 done
22343 IFS=$as_save_IFS
22344
22345 ;;
22346 esac
22347 fi
22348 USER_JAVAH=$ac_cv_path_USER_JAVAH
22349 if test -n "$USER_JAVAH"; then
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22351 $as_echo "$USER_JAVAH" >&6; }
22352 else
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22354 $as_echo "no" >&6; }
22355 fi
22356
22357
22358 fi
22359 else
22360 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22361 do
22362 # Extract the first word of "$ac_prog", so it can be a program name with args.
22363 set dummy $ac_prog; ac_word=$2
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22365 $as_echo_n "checking for $ac_word... " >&6; }
22366 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 case $USER_JAVAH in
22370 [\\/]* | ?:[\\/]*)
22371 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22372 ;;
22373 *)
22374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22375 for as_dir in $PATH
22376 do
22377 IFS=$as_save_IFS
22378 test -z "$as_dir" && as_dir=.
22379 for ac_exec_ext in '' $ac_executable_extensions; do
22380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22381 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22383 break 2
22384 fi
22385 done
22386 done
22387 IFS=$as_save_IFS
22388
22389 ;;
22390 esac
22391 fi
22392 USER_JAVAH=$ac_cv_path_USER_JAVAH
22393 if test -n "$USER_JAVAH"; then
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22395 $as_echo "$USER_JAVAH" >&6; }
22396 else
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22399 fi
22400
22401
22402 test -n "$USER_JAVAH" && break
22403 done
22404
22405 fi
22406
22407 if test "x${USER_JAVAH}" = x; then
22408 as_fn_error "can not find javah" "$LINENO" 5
22409 fi
22410
22411
22412 fi
22413
22414
22415
22416 fi
22417
22418 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22419
22420
22421 if test "x${COMPILE_JNI}" = xyes; then
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22423 $as_echo_n "checking jni_md.h support... " >&6; }
22424 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22426 $as_echo "yes" >&6; }
22427 else
22428 target_cpu=x86
22429 target_os=linux-gnu
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22431 $as_echo "$as_me: WARNING: no" >&2;}
22432 fi
22433 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22434 ac_dests="include/jni_md.h"
22435 while test -n "$ac_sources"; do
22436 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22437 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22438 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22439 done
22440 ac_config_links="$ac_config_links $ac_config_links_1"
22441
22442 fi
22443
22444
22445
22446 # Check whether --with-vm-classes was given.
22447 if test "${with_vm_classes+set}" = set; then :
22448 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22449 else
22450 vm_classes='${top_srcdir}/vm/reference'
22451 fi
22452
22453
22454
22455
22456
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22458 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22459 # Check whether --enable-maintainer-mode was given.
22460 if test "${enable_maintainer_mode+set}" = set; then :
22461 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22462 else
22463 USE_MAINTAINER_MODE=no
22464 fi
22465
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22467 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22468 if test $USE_MAINTAINER_MODE = yes; then
22469 MAINTAINER_MODE_TRUE=
22470 MAINTAINER_MODE_FALSE='#'
22471 else
22472 MAINTAINER_MODE_TRUE='#'
22473 MAINTAINER_MODE_FALSE=
22474 fi
22475
22476 MAINT=$MAINTAINER_MODE_TRUE
22477
22478
22479
22480 # Check whether --enable-debug was given.
22481 if test "${enable_debug+set}" = set; then :
22482 enableval=$enable_debug; case "${enableval}" in
22483 yes)
22484 LIBDEBUG="true"
22485
22486 $as_echo "#define DEBUG 1" >>confdefs.h
22487
22488 ;;
22489 no) LIBDEBUG="false" ;;
22490 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22491 esac
22492 else
22493 LIBDEBUG="false"
22494 fi
22495
22496
22497
22498 # Check whether --enable-load-library was given.
22499 if test "${enable_load_library+set}" = set; then :
22500 enableval=$enable_load_library; case "${enableval}" in
22501 yes) INIT_LOAD_LIBRARY="true" ;;
22502 no) INIT_LOAD_LIBRARY="false" ;;
22503 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22504 esac
22505 else
22506 INIT_LOAD_LIBRARY="true"
22507 fi
22508
22509
22510
22511
22512
22513 # Check whether --with-ecj-jar was given.
22514 if test "${with_ecj_jar+set}" = set; then :
22515 withval=$with_ecj_jar; ECJ_JAR=$withval
22516 else
22517 if test -f $multi_basedir/ecj.jar; then
22518 ECJ_JAR='$(jardir)/ecj.jar'
22519 fi
22520 fi
22521
22522
22523
22524 # Check whether --enable-java-lang-system-explicit-initialization was given.
22525 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22526 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22527 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22528 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22529 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22530 esac
22531 else
22532 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22533 fi
22534
22535
22536
22537
22538 REMOVE=""
22539
22540
22541 # Extract the first word of "mkdir", so it can be a program name with args.
22542 set dummy mkdir; ac_word=$2
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22544 $as_echo_n "checking for $ac_word... " >&6; }
22545 if test "${ac_cv_path_MKDIR+set}" = set; then :
22546 $as_echo_n "(cached) " >&6
22547 else
22548 case $MKDIR in
22549 [\\/]* | ?:[\\/]*)
22550 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22551 ;;
22552 *)
22553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22554 for as_dir in $PATH
22555 do
22556 IFS=$as_save_IFS
22557 test -z "$as_dir" && as_dir=.
22558 for ac_exec_ext in '' $ac_executable_extensions; do
22559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22560 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22562 break 2
22563 fi
22564 done
22565 done
22566 IFS=$as_save_IFS
22567
22568 ;;
22569 esac
22570 fi
22571 MKDIR=$ac_cv_path_MKDIR
22572 if test -n "$MKDIR"; then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22574 $as_echo "$MKDIR" >&6; }
22575 else
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22577 $as_echo "no" >&6; }
22578 fi
22579
22580
22581 # Extract the first word of "cp", so it can be a program name with args.
22582 set dummy cp; ac_word=$2
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22584 $as_echo_n "checking for $ac_word... " >&6; }
22585 if test "${ac_cv_path_CP+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588 case $CP in
22589 [\\/]* | ?:[\\/]*)
22590 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22591 ;;
22592 *)
22593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22594 for as_dir in $PATH
22595 do
22596 IFS=$as_save_IFS
22597 test -z "$as_dir" && as_dir=.
22598 for ac_exec_ext in '' $ac_executable_extensions; do
22599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22600 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22602 break 2
22603 fi
22604 done
22605 done
22606 IFS=$as_save_IFS
22607
22608 ;;
22609 esac
22610 fi
22611 CP=$ac_cv_path_CP
22612 if test -n "$CP"; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22614 $as_echo "$CP" >&6; }
22615 else
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22617 $as_echo "no" >&6; }
22618 fi
22619
22620
22621 # Extract the first word of "date", so it can be a program name with args.
22622 set dummy date; ac_word=$2
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22624 $as_echo_n "checking for $ac_word... " >&6; }
22625 if test "${ac_cv_path_DATE+set}" = set; then :
22626 $as_echo_n "(cached) " >&6
22627 else
22628 case $DATE in
22629 [\\/]* | ?:[\\/]*)
22630 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22631 ;;
22632 *)
22633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22634 for as_dir in $PATH
22635 do
22636 IFS=$as_save_IFS
22637 test -z "$as_dir" && as_dir=.
22638 for ac_exec_ext in '' $ac_executable_extensions; do
22639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22640 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22642 break 2
22643 fi
22644 done
22645 done
22646 IFS=$as_save_IFS
22647
22648 ;;
22649 esac
22650 fi
22651 DATE=$ac_cv_path_DATE
22652 if test -n "$DATE"; then
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22654 $as_echo "$DATE" >&6; }
22655 else
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22657 $as_echo "no" >&6; }
22658 fi
22659
22660
22661
22662 # Extract the first word of "find", so it can be a program name with args.
22663 set dummy find; ac_word=$2
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22665 $as_echo_n "checking for $ac_word... " >&6; }
22666 if test "${ac_cv_path_FIND+set}" = set; then :
22667 $as_echo_n "(cached) " >&6
22668 else
22669 case $FIND in
22670 [\\/]* | ?:[\\/]*)
22671 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22672 ;;
22673 *)
22674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22675 for as_dir in $PATH
22676 do
22677 IFS=$as_save_IFS
22678 test -z "$as_dir" && as_dir=.
22679 for ac_exec_ext in '' $ac_executable_extensions; do
22680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22681 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22683 break 2
22684 fi
22685 done
22686 done
22687 IFS=$as_save_IFS
22688
22689 ;;
22690 esac
22691 fi
22692 FIND=$ac_cv_path_FIND
22693 if test -n "$FIND"; then
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22695 $as_echo "$FIND" >&6; }
22696 else
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22698 $as_echo "no" >&6; }
22699 fi
22700
22701
22702
22703
22704 # Extract the first word of "zip", so it can be a program name with args.
22705 set dummy zip; ac_word=$2
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22707 $as_echo_n "checking for $ac_word... " >&6; }
22708 if test "${ac_cv_path_ZIP+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22710 else
22711 case $ZIP in
22712 [\\/]* | ?:[\\/]*)
22713 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22714 ;;
22715 *)
22716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22717 for as_dir in $PATH
22718 do
22719 IFS=$as_save_IFS
22720 test -z "$as_dir" && as_dir=.
22721 for ac_exec_ext in '' $ac_executable_extensions; do
22722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22723 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22725 break 2
22726 fi
22727 done
22728 done
22729 IFS=$as_save_IFS
22730
22731 ;;
22732 esac
22733 fi
22734 ZIP=$ac_cv_path_ZIP
22735 if test -n "$ZIP"; then
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22737 $as_echo "$ZIP" >&6; }
22738 else
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22740 $as_echo "no" >&6; }
22741 fi
22742
22743
22744
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22746 $as_echo_n "checking for a jar-like tool... " >&6; }
22747
22748 # Check whether --with-jar was given.
22749 if test "${with_jar+set}" = set; then :
22750 withval=$with_jar;
22751 case "${withval}" in
22752 yes)
22753 JAR=yes
22754 ;;
22755 no)
22756 JAR=no
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22758 $as_echo "${JAR}" >&6; }
22759 ;;
22760 *)
22761 if test -f "${withval}"; then
22762 JAR="${withval}"
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22764 $as_echo "${JAR}" >&6; }
22765 else
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22767 $as_echo "not found" >&6; }
22768 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22769 fi
22770 ;;
22771 esac
22772
22773 else
22774
22775 JAR=yes
22776
22777 fi
22778
22779 if test x"${JAR}" = "xyes"; then
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22781 $as_echo "trying fastjar, gjar and jar" >&6; }
22782 for ac_prog in fastjar gjar jar
22783 do
22784 # Extract the first word of "$ac_prog", so it can be a program name with args.
22785 set dummy $ac_prog; ac_word=$2
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22787 $as_echo_n "checking for $ac_word... " >&6; }
22788 if test "${ac_cv_path_JAR+set}" = set; then :
22789 $as_echo_n "(cached) " >&6
22790 else
22791 case $JAR in
22792 [\\/]* | ?:[\\/]*)
22793 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22794 ;;
22795 *)
22796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22797 for as_dir in $PATH
22798 do
22799 IFS=$as_save_IFS
22800 test -z "$as_dir" && as_dir=.
22801 for ac_exec_ext in '' $ac_executable_extensions; do
22802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22803 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22805 break 2
22806 fi
22807 done
22808 done
22809 IFS=$as_save_IFS
22810
22811 ;;
22812 esac
22813 fi
22814 JAR=$ac_cv_path_JAR
22815 if test -n "$JAR"; then
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22817 $as_echo "$JAR" >&6; }
22818 else
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22820 $as_echo "no" >&6; }
22821 fi
22822
22823
22824 test -n "$JAR" && break
22825 done
22826
22827 if test x"${RHINO_JAR}" = "xyes"; then
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22829 $as_echo "not found" >&6; }
22830 fi
22831 fi
22832 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22833 as_fn_error "No zip or jar tool found." "$LINENO" 5
22834 fi
22835 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22836 WITH_JAR_TRUE=
22837 WITH_JAR_FALSE='#'
22838 else
22839 WITH_JAR_TRUE='#'
22840 WITH_JAR_FALSE=
22841 fi
22842
22843
22844
22845
22846 # Check whether --with-glibj was given.
22847 if test "${with_glibj+set}" = set; then :
22848 withval=$with_glibj;
22849 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
22850 install_class_files=no
22851 build_class_files=yes
22852 use_zip=yes
22853 elif test "x${withval}" = xboth; then
22854 install_class_files=yes
22855 build_class_files=yes
22856 use_zip=yes
22857 elif test "x${withval}" = xflat; then
22858 install_class_files=yes
22859 build_class_files=yes
22860 use_zip=no
22861 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
22862 install_class_files=no
22863 build_class_files=no
22864 use_zip=no
22865 elif test "x${withval}" = xbuild; then
22866 install_class_files=no
22867 build_class_files=yes
22868 use_zip=no
22869 else
22870 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
22871 fi
22872
22873 else
22874
22875 install_class_files=no
22876 use_zip=yes
22877
22878 fi
22879
22880 if test "x${use_zip}" = xyes; then
22881 INSTALL_GLIBJ_ZIP_TRUE=
22882 INSTALL_GLIBJ_ZIP_FALSE='#'
22883 else
22884 INSTALL_GLIBJ_ZIP_TRUE='#'
22885 INSTALL_GLIBJ_ZIP_FALSE=
22886 fi
22887
22888 if test "x${install_class_files}" = xyes; then
22889 INSTALL_CLASS_FILES_TRUE=
22890 INSTALL_CLASS_FILES_FALSE='#'
22891 else
22892 INSTALL_CLASS_FILES_TRUE='#'
22893 INSTALL_CLASS_FILES_FALSE=
22894 fi
22895
22896 if test "x${build_class_files}" = xyes; then
22897 BUILD_CLASS_FILES_TRUE=
22898 BUILD_CLASS_FILES_FALSE='#'
22899 else
22900 BUILD_CLASS_FILES_TRUE='#'
22901 BUILD_CLASS_FILES_FALSE=
22902 fi
22903
22904
22905 # Check whether --enable-examples was given.
22906 if test "${enable_examples+set}" = set; then :
22907 enableval=$enable_examples; case "${enableval}" in
22908 yes) EXAMPLESDIR="examples" ;;
22909 no) EXAMPLESDIR="" ;;
22910 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
22911 esac
22912 else
22913 EXAMPLESDIR="examples"
22914 fi
22915
22916 if test "x${build_class_files}" = xno; then
22917 EXAMPLESDIR=""
22918 fi
22919
22920
22921 # Check whether --enable-tools was given.
22922 if test "${enable_tools+set}" = set; then :
22923 enableval=$enable_tools; case "${enableval}" in
22924 yes) TOOLSDIR="tools" ;;
22925 no) TOOLSDIR="" ;;
22926 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
22927 esac
22928 else
22929 TOOLSDIR="tools"
22930 fi
22931
22932 if test "x${build_class_files}" = xno; then
22933 TOOLSDIR=""
22934 fi
22935
22936
22937
22938
22939
22940 # Check whether --with-gjdoc was given.
22941 if test "${with_gjdoc+set}" = set; then :
22942 withval=$with_gjdoc; if test "x${withval}" = xno; then
22943 WITH_GJDOC=no;
22944 elif test "x${withval}" = xyes -o "x{withval}" = x; then
22945 WITH_GJDOC=yes;
22946 # Extract the first word of "gjdoc", so it can be a program name with args.
22947 set dummy gjdoc; ac_word=$2
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22949 $as_echo_n "checking for $ac_word... " >&6; }
22950 if test "${ac_cv_path_GJDOC+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22952 else
22953 case $GJDOC in
22954 [\\/]* | ?:[\\/]*)
22955 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
22956 ;;
22957 *)
22958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959 for as_dir in $PATH
22960 do
22961 IFS=$as_save_IFS
22962 test -z "$as_dir" && as_dir=.
22963 for ac_exec_ext in '' $ac_executable_extensions; do
22964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22965 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
22966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22967 break 2
22968 fi
22969 done
22970 done
22971 IFS=$as_save_IFS
22972
22973 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
22974 ;;
22975 esac
22976 fi
22977 GJDOC=$ac_cv_path_GJDOC
22978 if test -n "$GJDOC"; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
22980 $as_echo "$GJDOC" >&6; }
22981 else
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22983 $as_echo "no" >&6; }
22984 fi
22985
22986
22987 if test "x${GJDOC}" = xno; then
22988 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
22989 fi
22990 else
22991 WITH_GJDOC=yes
22992 GJDOC="${withval}"
22993 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
22995 $as_echo_n "checking for ${GJDOC}... " >&6; }
22996 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 test "$cross_compiling" = yes &&
23000 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23001 if test -r "${GJDOC}"; then
23002 eval "$as_ac_File=yes"
23003 else
23004 eval "$as_ac_File=no"
23005 fi
23006 fi
23007 eval ac_res=\$$as_ac_File
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23009 $as_echo "$ac_res" >&6; }
23010 eval as_val=\$$as_ac_File
23011 if test "x$as_val" = x""yes; then :
23012
23013 else
23014 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
23015 fi
23016
23017 fi
23018 else
23019 WITH_GJDOC=no
23020 fi
23021
23022 if test "x${WITH_GJDOC}" = xyes; then
23023 CREATE_API_DOCS_TRUE=
23024 CREATE_API_DOCS_FALSE='#'
23025 else
23026 CREATE_API_DOCS_TRUE='#'
23027 CREATE_API_DOCS_FALSE=
23028 fi
23029
23030 if test "x${WITH_GJDOC}" = xyes; then
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
23032 $as_echo_n "checking version of GJDoc... " >&6; }
23033 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
23035 $as_echo "${gjdoc_version}" >&6; }
23036 case ${gjdoc_version} in
23037 0.7.9) ;;
23038 0.8*) ;;
23039 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
23040 esac
23041 fi
23042
23043
23044
23045
23046 # Check whether --with-jay was given.
23047 if test "${with_jay+set}" = set; then :
23048 withval=$with_jay;
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23050 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23051 JAY_FOUND=no
23052 JAY_DIR_PATH=
23053 if test "x${withval}" = xno; then
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 $as_echo "no" >&6; }
23056 elif test "x${withval}" = xyes; then
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23058 $as_echo "yes" >&6; }
23059 JAY_DIR_PATH="/usr/share/jay"
23060 elif test -d "${withval}"; then
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23062 $as_echo "yes" >&6; }
23063 JAY_DIR_PATH="${withval}"
23064 elif test -f "${withval}"; then
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23066 $as_echo "yes" >&6; }
23067 JAY_DIR_PATH=`dirname "${withval}"`
23068 JAY="${withval}"
23069 else
23070 as_fn_error "jay not found at ${withval}" "$LINENO" 5
23071 fi
23072
23073 if test "x${JAY_DIR_PATH}" != x; then
23074 # Extract the first word of "jay", so it can be a program name with args.
23075 set dummy jay; ac_word=$2
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23077 $as_echo_n "checking for $ac_word... " >&6; }
23078 if test "${ac_cv_path_JAY+set}" = set; then :
23079 $as_echo_n "(cached) " >&6
23080 else
23081 case $JAY in
23082 [\\/]* | ?:[\\/]*)
23083 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23084 ;;
23085 *)
23086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23087 as_dummy="${JAY_DIR_PATH}:${PATH}"
23088 for as_dir in $as_dummy
23089 do
23090 IFS=$as_save_IFS
23091 test -z "$as_dir" && as_dir=.
23092 for ac_exec_ext in '' $ac_executable_extensions; do
23093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23094 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23096 break 2
23097 fi
23098 done
23099 done
23100 IFS=$as_save_IFS
23101
23102 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23103 ;;
23104 esac
23105 fi
23106 JAY=$ac_cv_path_JAY
23107 if test -n "$JAY"; then
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23109 $as_echo "$JAY" >&6; }
23110 else
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23112 $as_echo "no" >&6; }
23113 fi
23114
23115
23116 if test "x${JAY}" = xno; then
23117 as_fn_error "jay executable not found" "$LINENO" 5;
23118 fi
23119 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23120 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23122 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23123 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23124 $as_echo_n "(cached) " >&6
23125 else
23126 test "$cross_compiling" = yes &&
23127 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23128 if test -r "${JAY_SKELETON}"; then
23129 eval "$as_ac_File=yes"
23130 else
23131 eval "$as_ac_File=no"
23132 fi
23133 fi
23134 eval ac_res=\$$as_ac_File
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23136 $as_echo "$ac_res" >&6; }
23137 eval as_val=\$$as_ac_File
23138 if test "x$as_val" = x""yes; then :
23139
23140 else
23141 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23142 fi
23143
23144 JAY_FOUND=yes
23145 fi
23146
23147 else
23148
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23150 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 $as_echo "no" >&6; }
23153 JAY_FOUND=no
23154
23155 fi
23156
23157 if test "x${JAY_FOUND}" = xyes; then
23158 REGEN_PARSERS_TRUE=
23159 REGEN_PARSERS_FALSE='#'
23160 else
23161 REGEN_PARSERS_TRUE='#'
23162 REGEN_PARSERS_FALSE=
23163 fi
23164
23165
23166
23167 # Check whether --enable-portable-native-sync was given.
23168 if test "${enable_portable_native_sync+set}" = set; then :
23169 enableval=$enable_portable_native_sync; case "${enableval}" in
23170 yes)
23171
23172 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23173
23174 ;;
23175 no) ;;
23176 *)
23177 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23178 ;;
23179 esac
23180 fi
23181
23182
23183 # ------ AX CREATE STDINT H -------------------------------------
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23185 $as_echo_n "checking for stdint types... " >&6; }
23186 ac_stdint_h=`echo include/config-int.h`
23187 # try to shortcircuit - if the default include path of the compiler
23188 # can find a "stdint.h" header then we assume that all compilers can.
23189 if test "${ac_cv_header_stdint_t+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23191 else
23192
23193 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23194 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23195 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h. */
23198 #include <stdint.h>
23199 int
23200 main ()
23201 {
23202 int_least32_t v = 0;
23203 ;
23204 return 0;
23205 }
23206 _ACEOF
23207 if ac_fn_c_try_compile "$LINENO"; then :
23208 ac_cv_stdint_result="(assuming C99 compatible system)"
23209 ac_cv_header_stdint_t="stdint.h";
23210 else
23211 ac_cv_header_stdint_t=""
23212 fi
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 CXXFLAGS="$old_CXXFLAGS"
23215 CPPFLAGS="$old_CPPFLAGS"
23216 CFLAGS="$old_CFLAGS"
23217 fi
23218
23219
23220 v="... $ac_cv_header_stdint_h"
23221 if test "$ac_stdint_h" = "stdint.h" ; then
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23223 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23224 elif test "$ac_stdint_h" = "inttypes.h" ; then
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23226 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23227 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23229 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23230 else
23231 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23233 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23234 fi
23235
23236 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23237
23238
23239 inttype_headers=`echo | sed -e 's/,/ /g'`
23240
23241 ac_cv_stdint_result="(no helpful system typedefs seen)"
23242
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23244 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23245 if test "${ac_cv_header_stdint_x+set}" = set; then :
23246 $as_echo_n "(cached) " >&6
23247 else
23248
23249 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23251 $as_echo "(..)" >&6; }
23252 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23253 unset ac_cv_type_uintptr_t
23254 unset ac_cv_type_uint64_t
23255 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23256 "
23257 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23258 ac_cv_header_stdint_x=$i
23259 else
23260 continue
23261 fi
23262
23263 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23264 "
23265 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23266 and64="/uint64_t"
23267 else
23268 and64=""
23269 fi
23270
23271 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23272 break
23273 done
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23275 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23276
23277 fi
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23279 $as_echo "$ac_cv_header_stdint_x" >&6; }
23280
23281
23282 if test "_$ac_cv_header_stdint_x" = "_" ; then
23283
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23285 $as_echo_n "checking for stdint uint32_t... " >&6; }
23286 if test "${ac_cv_header_stdint_o+set}" = set; then :
23287 $as_echo_n "(cached) " >&6
23288 else
23289
23290 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23292 $as_echo "(..)" >&6; }
23293 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23294 unset ac_cv_type_uint32_t
23295 unset ac_cv_type_uint64_t
23296 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23297 "
23298 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23299 ac_cv_header_stdint_o=$i
23300 else
23301 continue
23302 fi
23303
23304 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23305 "
23306 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23307 and64="/uint64_t"
23308 else
23309 and64=""
23310 fi
23311
23312 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23313 break
23314 break;
23315 done
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23317 $as_echo_n "checking for stdint uint32_t... " >&6; }
23318
23319 fi
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23321 $as_echo "$ac_cv_header_stdint_o" >&6; }
23322
23323 fi
23324
23325 if test "_$ac_cv_header_stdint_x" = "_" ; then
23326 if test "_$ac_cv_header_stdint_o" = "_" ; then
23327
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23329 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23330 if test "${ac_cv_header_stdint_u+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23332 else
23333
23334 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23336 $as_echo "(..)" >&6; }
23337 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23338 unset ac_cv_type_u_int32_t
23339 unset ac_cv_type_u_int64_t
23340 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23341 "
23342 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23343 ac_cv_header_stdint_u=$i
23344 else
23345 continue
23346 fi
23347
23348 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23349 "
23350 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23351 and64="/u_int64_t"
23352 else
23353 and64=""
23354 fi
23355
23356 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23357 break
23358 break;
23359 done
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23361 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23362
23363 fi
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23365 $as_echo "$ac_cv_header_stdint_u" >&6; }
23366
23367 fi fi
23368
23369 if test "_$ac_cv_header_stdint_x" = "_" ; then
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23371 $as_echo_n "checking for stdint datatype model... " >&6; }
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23373 $as_echo "(..)" >&6; }
23374
23375 # The cast to long int works around a bug in the HP C Compiler
23376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23378 # This bug is HP SR number 8606223364.
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23380 $as_echo_n "checking size of char... " >&6; }
23381 if test "${ac_cv_sizeof_char+set}" = set; then :
23382 $as_echo_n "(cached) " >&6
23383 else
23384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23385
23386 else
23387 if test "$ac_cv_type_char" = yes; then
23388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23390 { as_fn_set_status 77
23391 as_fn_error "cannot compute sizeof (char)
23392 See \`config.log' for more details." "$LINENO" 5; }; }
23393 else
23394 ac_cv_sizeof_char=0
23395 fi
23396 fi
23397
23398 fi
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23400 $as_echo "$ac_cv_sizeof_char" >&6; }
23401
23402
23403
23404 cat >>confdefs.h <<_ACEOF
23405 #define SIZEOF_CHAR $ac_cv_sizeof_char
23406 _ACEOF
23407
23408
23409 # The cast to long int works around a bug in the HP C Compiler
23410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23412 # This bug is HP SR number 8606223364.
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23414 $as_echo_n "checking size of short... " >&6; }
23415 if test "${ac_cv_sizeof_short+set}" = set; then :
23416 $as_echo_n "(cached) " >&6
23417 else
23418 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23419
23420 else
23421 if test "$ac_cv_type_short" = yes; then
23422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23424 { as_fn_set_status 77
23425 as_fn_error "cannot compute sizeof (short)
23426 See \`config.log' for more details." "$LINENO" 5; }; }
23427 else
23428 ac_cv_sizeof_short=0
23429 fi
23430 fi
23431
23432 fi
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23434 $as_echo "$ac_cv_sizeof_short" >&6; }
23435
23436
23437
23438 cat >>confdefs.h <<_ACEOF
23439 #define SIZEOF_SHORT $ac_cv_sizeof_short
23440 _ACEOF
23441
23442
23443 # The cast to long int works around a bug in the HP C Compiler
23444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23446 # This bug is HP SR number 8606223364.
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23448 $as_echo_n "checking size of int... " >&6; }
23449 if test "${ac_cv_sizeof_int+set}" = set; then :
23450 $as_echo_n "(cached) " >&6
23451 else
23452 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23453
23454 else
23455 if test "$ac_cv_type_int" = yes; then
23456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23458 { as_fn_set_status 77
23459 as_fn_error "cannot compute sizeof (int)
23460 See \`config.log' for more details." "$LINENO" 5; }; }
23461 else
23462 ac_cv_sizeof_int=0
23463 fi
23464 fi
23465
23466 fi
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23468 $as_echo "$ac_cv_sizeof_int" >&6; }
23469
23470
23471
23472 cat >>confdefs.h <<_ACEOF
23473 #define SIZEOF_INT $ac_cv_sizeof_int
23474 _ACEOF
23475
23476
23477 # The cast to long int works around a bug in the HP C Compiler
23478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23480 # This bug is HP SR number 8606223364.
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23482 $as_echo_n "checking size of long... " >&6; }
23483 if test "${ac_cv_sizeof_long+set}" = set; then :
23484 $as_echo_n "(cached) " >&6
23485 else
23486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23487
23488 else
23489 if test "$ac_cv_type_long" = yes; then
23490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23492 { as_fn_set_status 77
23493 as_fn_error "cannot compute sizeof (long)
23494 See \`config.log' for more details." "$LINENO" 5; }; }
23495 else
23496 ac_cv_sizeof_long=0
23497 fi
23498 fi
23499
23500 fi
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23502 $as_echo "$ac_cv_sizeof_long" >&6; }
23503
23504
23505
23506 cat >>confdefs.h <<_ACEOF
23507 #define SIZEOF_LONG $ac_cv_sizeof_long
23508 _ACEOF
23509
23510
23511 # The cast to long int works around a bug in the HP C Compiler
23512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23514 # This bug is HP SR number 8606223364.
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23516 $as_echo_n "checking size of void*... " >&6; }
23517 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23518 $as_echo_n "(cached) " >&6
23519 else
23520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23521
23522 else
23523 if test "$ac_cv_type_voidp" = yes; then
23524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23526 { as_fn_set_status 77
23527 as_fn_error "cannot compute sizeof (void*)
23528 See \`config.log' for more details." "$LINENO" 5; }; }
23529 else
23530 ac_cv_sizeof_voidp=0
23531 fi
23532 fi
23533
23534 fi
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23536 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23537
23538
23539
23540 cat >>confdefs.h <<_ACEOF
23541 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23542 _ACEOF
23543
23544
23545 ac_cv_char_data_model=""
23546 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23547 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23548 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23549 ac_cv_long_data_model=""
23550 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23551 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23552 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23554 $as_echo_n "checking data model... " >&6; }
23555 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23556 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23557 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23558 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23559 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23560 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23561 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23562 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23563 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23564 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23565 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23566 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23567 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23568 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23569 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23570 222/*|333/*|444/*|666/*|888/*) :
23571 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23572 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23573 esac
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23575 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23576
23577 fi
23578
23579 if test "_$ac_cv_header_stdint_x" != "_" ; then
23580 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23581 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23582 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23583 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23584 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23585 else
23586 ac_cv_header_stdint="stddef.h"
23587 fi
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23590 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23592 $as_echo "($ac_cv_header_stdint)" >&6; }
23593 unset ac_cv_type_int_least32_t
23594 unset ac_cv_type_int_fast32_t
23595 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23596 "
23597 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23598
23599 fi
23600
23601 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23602 "
23603 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23604
23605 fi
23606
23607 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23608 "
23609 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23610
23611 fi
23612
23613
23614 fi # shortcircut to system "stdint.h"
23615 # ------------------ PREPARE VARIABLES ------------------------------
23616 if test "$GCC" = "yes" ; then
23617 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23618 else
23619 ac_cv_stdint_message="using $CC"
23620 fi
23621
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23623 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23624
23625 # ----------------- DONE inttypes.h checks START header -------------
23626 ac_config_commands="$ac_config_commands $ac_stdint_h"
23627
23628
23629
23630
23631 # Check whether --with-glibj_zip was given.
23632 if test "${with_glibj_zip+set}" = set; then :
23633 withval=$with_glibj_zip;
23634 fi
23635
23636
23637 case "$with_glibj_zip" in
23638 "")
23639 use_glibj_zip=false
23640 ;;
23641 "no" )
23642 use_glibj_zip=false
23643 ;;
23644 "yes")
23645 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23646 ;;
23647 *)
23648 use_glibj_zip=true
23649 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23650 ;;
23651 esac;
23652
23653 if test x$use_glibj_zip = xtrue; then
23654 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23655 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23656 else
23657 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23658 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23659 fi
23660
23661
23662
23663 if test "x${TOOLSDIR}" != x; then
23664 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23665
23666
23667 if test "x$JAVAPREFIX" = x; then
23668 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23669 do
23670 # Extract the first word of "$ac_prog", so it can be a program name with args.
23671 set dummy $ac_prog; ac_word=$2
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23673 $as_echo_n "checking for $ac_word... " >&6; }
23674 if test "${ac_cv_prog_JAVA+set}" = set; then :
23675 $as_echo_n "(cached) " >&6
23676 else
23677 if test -n "$JAVA"; then
23678 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23679 else
23680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23681 for as_dir in $PATH
23682 do
23683 IFS=$as_save_IFS
23684 test -z "$as_dir" && as_dir=.
23685 for ac_exec_ext in '' $ac_executable_extensions; do
23686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23687 ac_cv_prog_JAVA="$ac_prog"
23688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23689 break 2
23690 fi
23691 done
23692 done
23693 IFS=$as_save_IFS
23694
23695 fi
23696 fi
23697 JAVA=$ac_cv_prog_JAVA
23698 if test -n "$JAVA"; then
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23700 $as_echo "$JAVA" >&6; }
23701 else
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23703 $as_echo "no" >&6; }
23704 fi
23705
23706
23707 test -n "$JAVA" && break
23708 done
23709
23710 else
23711 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23712 do
23713 # Extract the first word of "$ac_prog", so it can be a program name with args.
23714 set dummy $ac_prog; ac_word=$2
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23716 $as_echo_n "checking for $ac_word... " >&6; }
23717 if test "${ac_cv_prog_JAVA+set}" = set; then :
23718 $as_echo_n "(cached) " >&6
23719 else
23720 if test -n "$JAVA"; then
23721 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23722 else
23723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23724 for as_dir in $PATH
23725 do
23726 IFS=$as_save_IFS
23727 test -z "$as_dir" && as_dir=.
23728 for ac_exec_ext in '' $ac_executable_extensions; do
23729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23730 ac_cv_prog_JAVA="$ac_prog"
23731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23732 break 2
23733 fi
23734 done
23735 done
23736 IFS=$as_save_IFS
23737
23738 fi
23739 fi
23740 JAVA=$ac_cv_prog_JAVA
23741 if test -n "$JAVA"; then
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23743 $as_echo "$JAVA" >&6; }
23744 else
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 $as_echo "no" >&6; }
23747 fi
23748
23749
23750 test -n "$JAVA" && break
23751 done
23752 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23753
23754 fi
23755 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23756
23757
23758 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
23759 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23760 GCJ_OPTS="-g"
23761 if test "x$JAVAPREFIX" = x; then
23762 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23763 do
23764 # Extract the first word of "$ac_prog", so it can be a program name with args.
23765 set dummy $ac_prog; ac_word=$2
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23767 $as_echo_n "checking for $ac_word... " >&6; }
23768 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23769 $as_echo_n "(cached) " >&6
23770 else
23771 if test -n "$JAVAC"; then
23772 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23773 else
23774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23775 for as_dir in $PATH
23776 do
23777 IFS=$as_save_IFS
23778 test -z "$as_dir" && as_dir=.
23779 for ac_exec_ext in '' $ac_executable_extensions; do
23780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23781 ac_cv_prog_JAVAC="$ac_prog"
23782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23783 break 2
23784 fi
23785 done
23786 done
23787 IFS=$as_save_IFS
23788
23789 fi
23790 fi
23791 JAVAC=$ac_cv_prog_JAVAC
23792 if test -n "$JAVAC"; then
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23794 $as_echo "$JAVAC" >&6; }
23795 else
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23797 $as_echo "no" >&6; }
23798 fi
23799
23800
23801 test -n "$JAVAC" && break
23802 done
23803
23804 else
23805 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23806 do
23807 # Extract the first word of "$ac_prog", so it can be a program name with args.
23808 set dummy $ac_prog; ac_word=$2
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23810 $as_echo_n "checking for $ac_word... " >&6; }
23811 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23812 $as_echo_n "(cached) " >&6
23813 else
23814 if test -n "$JAVAC"; then
23815 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23816 else
23817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23818 for as_dir in $PATH
23819 do
23820 IFS=$as_save_IFS
23821 test -z "$as_dir" && as_dir=.
23822 for ac_exec_ext in '' $ac_executable_extensions; do
23823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23824 ac_cv_prog_JAVAC="$ac_prog"
23825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23826 break 2
23827 fi
23828 done
23829 done
23830 IFS=$as_save_IFS
23831
23832 fi
23833 fi
23834 JAVAC=$ac_cv_prog_JAVAC
23835 if test -n "$JAVAC"; then
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23837 $as_echo "$JAVAC" >&6; }
23838 else
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23840 $as_echo "no" >&6; }
23841 fi
23842
23843
23844 test -n "$JAVAC" && break
23845 done
23846 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
23847
23848 fi
23849 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
23851 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
23852 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23854 else
23855
23856 if $JAVAC --version 2>&1 | grep gcj >&5 ; then
23857 ac_cv_prog_javac_is_gcj=yes;
23858 JAVAC="$JAVAC $GCJ_OPTS";
23859 else
23860 ac_cv_prog_javac_is_gcj=no;
23861 fi
23862
23863 fi
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
23865 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
23866 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
23867
23868 if test x"${JAVAC_IS_GCJ}" = xyes; then
23869 GCJ_JAVAC_TRUE=
23870 GCJ_JAVAC_FALSE='#'
23871 else
23872 GCJ_JAVAC_TRUE='#'
23873 GCJ_JAVAC_FALSE=
23874 fi
23875
23876
23877
23878
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
23880 $as_echo_n "checking if $JAVAC works... " >&6; }
23881 if test "${ac_cv_prog_javac_works+set}" = set; then :
23882 $as_echo_n "(cached) " >&6
23883 else
23884
23885 JAVA_TEST=Object.java
23886 CLASS_TEST=Object.class
23887 cat << \EOF > $JAVA_TEST
23888 /* #line 23888 "configure" */
23889 package java.lang;
23890
23891 public class Object
23892 {
23893 static <T> void doStuff()
23894 {
23895 }
23896 }
23897 EOF
23898 if test x$JAVAC_IS_GCJ = xyes; then
23899 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
23900 else
23901 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
23902 fi
23903 if { ac_try='$CMD'
23904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23905 (eval $ac_try) 2>&5
23906 ac_status=$?
23907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23908 test $ac_status = 0; }; } >/dev/null 2>&1; then
23909 ac_cv_prog_javac_works=yes
23910 else
23911 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23912 echo "configure: failed program was:" >&5
23913 cat $JAVA_TEST >&5
23914 fi
23915 rm -f $JAVA_TEST $CLASS_TEST
23916
23917 fi
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
23919 $as_echo "$ac_cv_prog_javac_works" >&6; }
23920
23921
23922
23923 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
23924 set dummy uudecode$EXEEXT; ac_word=$2
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23926 $as_echo_n "checking for $ac_word... " >&6; }
23927 if test "${ac_cv_prog_uudecode+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23929 else
23930 if test -n "$uudecode"; then
23931 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
23932 else
23933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23935 do
23936 IFS=$as_save_IFS
23937 test -z "$as_dir" && as_dir=.
23938 for ac_exec_ext in '' $ac_executable_extensions; do
23939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23940 ac_cv_prog_uudecode="yes"
23941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23942 break 2
23943 fi
23944 done
23945 done
23946 IFS=$as_save_IFS
23947
23948 fi
23949 fi
23950 uudecode=$ac_cv_prog_uudecode
23951 if test -n "$uudecode"; then
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
23953 $as_echo "$uudecode" >&6; }
23954 else
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957 fi
23958
23959
23960 if test x$uudecode = xyes; then
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
23962 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
23963 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
23964 $as_echo_n "(cached) " >&6
23965 else
23966
23967 cat << \EOF > Test.uue
23968 begin-base64 644 Test.class
23969 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
23970 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
23971 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
23972 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
23973 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
23974 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
23975 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
23976 ====
23977 EOF
23978 if uudecode$EXEEXT Test.uue; then
23979 ac_cv_prog_uudecode_base64=yes
23980 else
23981 echo "configure: 23981: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
23982 echo "configure: failed file was:" >&5
23983 cat Test.uue >&5
23984 ac_cv_prog_uudecode_base64=no
23985 fi
23986 rm -f Test.uue
23987 fi
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
23989 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
23990 fi
23991 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23992 rm -f Test.class
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
23994 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
23995 if test x$ac_cv_prog_javac_works = xno; then
23996 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
23997 fi
23998 fi
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
24000 $as_echo_n "checking if $JAVA works... " >&6; }
24001 if test "${ac_cv_prog_java_works+set}" = set; then :
24002 $as_echo_n "(cached) " >&6
24003 else
24004
24005 JAVA_TEST=Test.java
24006 CLASS_TEST=Test.class
24007 TEST=Test
24008 cat << \EOF > $JAVA_TEST
24009 /* [#]line 24009 "configure" */
24010 public class Test {
24011 public static void main (String args[]) {
24012 System.exit (0);
24013 } }
24014 EOF
24015 if test x$ac_cv_prog_uudecode_base64 != xyes; then
24016
24017 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
24018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24022 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
24023 :
24024 else
24025 echo "configure: failed program was:" >&5
24026 cat $JAVA_TEST >&5
24027 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24028 fi
24029 fi
24030 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; } >/dev/null 2>&1; then
24036 ac_cv_prog_java_works=yes
24037 else
24038 echo "configure: failed program was:" >&5
24039 cat $JAVA_TEST >&5
24040 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24041 fi
24042 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
24043
24044 fi
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
24046 $as_echo "$ac_cv_prog_java_works" >&6; }
24047
24048
24049 fi
24050 if test "x${COMPILE_GJDOC}" = xyes; then
24051
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
24053 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
24054 if test -z "$ANTLR_JAR"; then
24055 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
24056 /usr/share/antlr/lib /usr/share/java /usr/lib;
24057 do
24058 if test -f "$antlr_lib_home/antlr.jar"; then
24059 ANTLR_JAR="$antlr_lib_home/antlr.jar"
24060 break
24061 fi
24062 done
24063 fi
24064 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
24065 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
24066 $as_echo "$ANTLR_JAR" >&6; }
24067
24068
24069 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
24070
24071 if test -n "$ac_tool_prefix"; then
24072 for ac_prog in cantlr runantlr antlr
24073 do
24074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24077 $as_echo_n "checking for $ac_word... " >&6; }
24078 if test "${ac_cv_prog_ANTLR+set}" = set; then :
24079 $as_echo_n "(cached) " >&6
24080 else
24081 if test -n "$ANTLR"; then
24082 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
24083 else
24084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24085 for as_dir in $PATH
24086 do
24087 IFS=$as_save_IFS
24088 test -z "$as_dir" && as_dir=.
24089 for ac_exec_ext in '' $ac_executable_extensions; do
24090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24091 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24093 break 2
24094 fi
24095 done
24096 done
24097 IFS=$as_save_IFS
24098
24099 fi
24100 fi
24101 ANTLR=$ac_cv_prog_ANTLR
24102 if test -n "$ANTLR"; then
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24104 $as_echo "$ANTLR" >&6; }
24105 else
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107 $as_echo "no" >&6; }
24108 fi
24109
24110
24111 test -n "$ANTLR" && break
24112 done
24113 fi
24114 if test -z "$ANTLR"; then
24115 ac_ct_ANTLR=$ANTLR
24116 for ac_prog in cantlr runantlr antlr
24117 do
24118 # Extract the first word of "$ac_prog", so it can be a program name with args.
24119 set dummy $ac_prog; ac_word=$2
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24121 $as_echo_n "checking for $ac_word... " >&6; }
24122 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24123 $as_echo_n "(cached) " >&6
24124 else
24125 if test -n "$ac_ct_ANTLR"; then
24126 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24127 else
24128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24129 for as_dir in $PATH
24130 do
24131 IFS=$as_save_IFS
24132 test -z "$as_dir" && as_dir=.
24133 for ac_exec_ext in '' $ac_executable_extensions; do
24134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24135 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24137 break 2
24138 fi
24139 done
24140 done
24141 IFS=$as_save_IFS
24142
24143 fi
24144 fi
24145 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24146 if test -n "$ac_ct_ANTLR"; then
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24148 $as_echo "$ac_ct_ANTLR" >&6; }
24149 else
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24151 $as_echo "no" >&6; }
24152 fi
24153
24154
24155 test -n "$ac_ct_ANTLR" && break
24156 done
24157
24158 if test "x$ac_ct_ANTLR" = x; then
24159 ANTLR=""
24160 else
24161 case $cross_compiling:$ac_tool_warned in
24162 yes:)
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24165 ac_tool_warned=yes ;;
24166 esac
24167 ANTLR=$ac_ct_ANTLR
24168 fi
24169 fi
24170
24171 if test "x$ANTLR" = x; then
24172 if test -z "$JAVA"; then
24173 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24174 else
24175 if test -z "$ANTLR_JAR"; then
24176 as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
24177 else
24178 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24179 fi
24180 fi
24181 fi
24182
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24184 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24185 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24186 if test "$antlr_version_str"; then
24187 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24188 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24189 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24190 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24191 (test $antlr_version_major -gt 2 || \
24192 (test $antlr_version_major -eq 2 && \
24193 test $antlr_version_minor -gt 7) || \
24194 (test $antlr_version_major -eq 2 && \
24195 test $antlr_version_minor -eq 7 && \
24196 test $antlr_version_micro -ge 1))
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24199 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24200
24201 fi
24202 fi
24203 fi
24204
24205
24206 # Check for javac if we need to build either the class library,
24207 # the examples or the tools
24208 if test "x${use_glibj_zip}" = xfalse || \
24209 test "x${EXAMPLESDIR}" != x || \
24210 test "x${TOOLSDIR}" != x && \
24211 test "x${build_class_files}" != xno && \
24212 test "${enable_java_maintainer_mode}" = yes; then
24213
24214 JAVA_TEST=Test.java
24215 CLASS_TEST=Test.class
24216 cat << \EOF > $JAVA_TEST
24217 /* #line 24217 "configure" */
24218 public class Test
24219 {
24220 public static void main(String args)
24221 {
24222 System.out.println("Hello World");
24223 }
24224 }
24225 EOF
24226 if test x$JAVAC_IS_GCJ != xyes; then
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24228 $as_echo_n "checking whether javac supports -J... " >&6; }
24229 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24230 javac_result=$?
24231 if test "x$javac_result" = "x0"; then
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24233 $as_echo "yes" >&6; }
24234 JAVAC_MEM_OPT="-J-Xmx768M"
24235 else
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24237 $as_echo "no" >&6; }
24238 fi
24239 fi
24240 rm -f $JAVA_TEST $CLASS_TEST
24241
24242
24243 else
24244 if false; then
24245 GCJ_JAVAC_TRUE=
24246 GCJ_JAVAC_FALSE='#'
24247 else
24248 GCJ_JAVAC_TRUE='#'
24249 GCJ_JAVAC_FALSE=
24250 fi
24251
24252 fi
24253
24254
24255 # Check whether --with-escher was given.
24256 if test "${with_escher+set}" = set; then :
24257 withval=$with_escher;
24258 fi
24259
24260 case "$with_escher" in
24261 "")
24262 use_escher=false
24263 ;;
24264 "no")
24265 use_escher=false
24266 ;;
24267 "yes")
24268 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24269 ;;
24270 *)
24271 use_escher=true
24272 PATH_TO_ESCHER=$with_escher
24273 ;;
24274 esac
24275
24276 if test x$use_escher = xtrue; then
24277 USE_ESCHER_TRUE=
24278 USE_ESCHER_FALSE='#'
24279 else
24280 USE_ESCHER_TRUE='#'
24281 USE_ESCHER_FALSE=
24282 fi
24283
24284
24285
24286 # Check whether --enable-local-sockets was given.
24287 if test "${enable_local_sockets+set}" = set; then :
24288 enableval=$enable_local_sockets; case "${enableval}" in
24289 yes)
24290 ENABLE_LOCAL_SOCKETS=yes
24291 ;;
24292 *)
24293 ENABLE_LOCAL_SOCKETS=no
24294 ;;
24295 esac
24296 fi
24297
24298 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24299 then
24300 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24301 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24302
24303 fi
24304
24305
24306 for ac_func in read write bind listen accept shutdown
24307 do :
24308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24309 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24310 eval as_val=\$$as_ac_var
24311 if test "x$as_val" = x""yes; then :
24312 cat >>confdefs.h <<_ACEOF
24313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24314 _ACEOF
24315
24316 else
24317 as_fn_error "networking support not available" "$LINENO" 5
24318 fi
24319 done
24320
24321
24322 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24323
24324 fi
24325 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24326 ENABLE_LOCAL_SOCKETS_TRUE=
24327 ENABLE_LOCAL_SOCKETS_FALSE='#'
24328 else
24329 ENABLE_LOCAL_SOCKETS_TRUE='#'
24330 ENABLE_LOCAL_SOCKETS_FALSE=
24331 fi
24332
24333
24334
24335
24336 WANT_NATIVE_BIG_INTEGER=false
24337 if test "x${COMPILE_GMP}" = xyes; then
24338 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24339 if test "x${ac_cv_header_gmp_h}" = xyes; then
24340 WANT_NATIVE_BIG_INTEGER=true
24341
24342 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24343
24344 else
24345 COMPILE_GMP=no
24346 fi
24347 else
24348 COMPILE_GMP=no
24349 fi
24350 fi
24351
24352 if test "x${COMPILE_GMP}" = xyes; then
24353 CREATE_GMPBI_LIBRARY_TRUE=
24354 CREATE_GMPBI_LIBRARY_FALSE='#'
24355 else
24356 CREATE_GMPBI_LIBRARY_TRUE='#'
24357 CREATE_GMPBI_LIBRARY_FALSE=
24358 fi
24359
24360
24361 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-math/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
24362
24363
24364 if test "x${COMPILE_WRAPPERS}" = xyes; then
24365 :
24366 else
24367 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
24368
24369
24370 ac_config_commands="$ac_config_commands gappletviewer"
24371
24372 ac_config_commands="$ac_config_commands gjarsigner"
24373
24374 ac_config_commands="$ac_config_commands gkeytool"
24375
24376 ac_config_commands="$ac_config_commands gjar"
24377
24378 ac_config_commands="$ac_config_commands gnative2ascii"
24379
24380 ac_config_commands="$ac_config_commands gserialver"
24381
24382 ac_config_commands="$ac_config_commands grmiregistry"
24383
24384 ac_config_commands="$ac_config_commands gtnameserv"
24385
24386 ac_config_commands="$ac_config_commands gorbd"
24387
24388 ac_config_commands="$ac_config_commands grmid"
24389
24390 ac_config_commands="$ac_config_commands grmic"
24391
24392 ac_config_commands="$ac_config_commands gjavah"
24393
24394
24395 fi
24396
24397 if test "x${COMPILE_GJDOC}" = xyes
24398 then
24399 ac_config_files="$ac_config_files tools/gjdoc"
24400
24401 ac_config_commands="$ac_config_commands gjdoc"
24402
24403 fi
24404
24405 ac_config_commands="$ac_config_commands gen-classlist"
24406
24407 ac_config_commands="$ac_config_commands copy-vmresources"
24408
24409 cat >confcache <<\_ACEOF
24410 # This file is a shell script that caches the results of configure
24411 # tests run on this system so they can be shared between configure
24412 # scripts and configure runs, see configure's option --config-cache.
24413 # It is not useful on other systems. If it contains results you don't
24414 # want to keep, you may remove or edit it.
24415 #
24416 # config.status only pays attention to the cache file if you give it
24417 # the --recheck option to rerun configure.
24418 #
24419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24421 # following values.
24422
24423 _ACEOF
24424
24425 # The following way of writing the cache mishandles newlines in values,
24426 # but we know of no workaround that is simple, portable, and efficient.
24427 # So, we kill variables containing newlines.
24428 # Ultrix sh set writes to stderr and can't be redirected directly,
24429 # and sets the high bit in the cache file unless we assign to the vars.
24430 (
24431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24432 eval ac_val=\$$ac_var
24433 case $ac_val in #(
24434 *${as_nl}*)
24435 case $ac_var in #(
24436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24438 esac
24439 case $ac_var in #(
24440 _ | IFS | as_nl) ;; #(
24441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24442 *) { eval $ac_var=; unset $ac_var;} ;;
24443 esac ;;
24444 esac
24445 done
24446
24447 (set) 2>&1 |
24448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24449 *${as_nl}ac_space=\ *)
24450 # `set' does not quote correctly, so add quotes: double-quote
24451 # substitution turns \\\\ into \\, and sed turns \\ into \.
24452 sed -n \
24453 "s/'/'\\\\''/g;
24454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24455 ;; #(
24456 *)
24457 # `set' quotes correctly as required by POSIX, so do not add quotes.
24458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24459 ;;
24460 esac |
24461 sort
24462 ) |
24463 sed '
24464 /^ac_cv_env_/b end
24465 t clear
24466 :clear
24467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24468 t end
24469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24470 :end' >>confcache
24471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24472 if test -w "$cache_file"; then
24473 test "x$cache_file" != "x/dev/null" &&
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24475 $as_echo "$as_me: updating cache $cache_file" >&6;}
24476 cat confcache >$cache_file
24477 else
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24479 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24480 fi
24481 fi
24482 rm -f confcache
24483
24484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24485 # Let make expand exec_prefix.
24486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24487
24488 DEFS=-DHAVE_CONFIG_H
24489
24490 ac_libobjs=
24491 ac_ltlibobjs=
24492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24493 # 1. Remove the extension, and $U if already installed.
24494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24495 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24497 # will be set to the directory where LIBOBJS objects are built.
24498 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24499 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24500 done
24501 LIBOBJS=$ac_libobjs
24502
24503 LTLIBOBJS=$ac_ltlibobjs
24504
24505
24506 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24507 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24509 fi
24510 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24511 as_fn_error "conditional \"GENINSRC\" was never defined.
24512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24513 fi
24514 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24515 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24517 fi
24518 if test -n "$EXEEXT"; then
24519 am__EXEEXT_TRUE=
24520 am__EXEEXT_FALSE='#'
24521 else
24522 am__EXEEXT_TRUE='#'
24523 am__EXEEXT_FALSE=
24524 fi
24525
24526 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24527 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24529 fi
24530 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24531 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24533 fi
24534 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24535 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24537 fi
24538 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24539 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24541 fi
24542 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24543 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24545 fi
24546 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24547 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24549 fi
24550 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24551 as_fn_error "conditional \"AMDEP\" was never defined.
24552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24553 fi
24554 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24555 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24557 fi
24558 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24559 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24561 fi
24562 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24563 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24565 fi
24566 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24567 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24569 fi
24570 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24571 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24573 fi
24574 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24575 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24577 fi
24578 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24579 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24581 fi
24582 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24583 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24585 fi
24586 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24587 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24589 fi
24590 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24591 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24593 fi
24594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24595 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24597 fi
24598 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24599 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24601 fi
24602 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24603 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24605 fi
24606 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24607 as_fn_error "conditional \"WITH_JAR\" was never defined.
24608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24609 fi
24610 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24611 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24613 fi
24614 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24615 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24617 fi
24618 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24619 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24621 fi
24622 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24623 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24625 fi
24626 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24627 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24629 fi
24630 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24631 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24633 fi
24634 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24635 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24637 fi
24638 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24639 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24641 fi
24642 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24643 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24645 fi
24646 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24647 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24649 fi
24650 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24651 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24653 fi
24654
24655 : ${CONFIG_STATUS=./config.status}
24656 ac_write_fail=0
24657 ac_clean_files_save=$ac_clean_files
24658 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24660 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24661 as_write_fail=0
24662 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24663 #! $SHELL
24664 # Generated by $as_me.
24665 # Run this file to recreate the current configuration.
24666 # Compiler output produced by configure, useful for debugging
24667 # configure, is in config.log if it exists.
24668
24669 debug=false
24670 ac_cs_recheck=false
24671 ac_cs_silent=false
24672
24673 SHELL=\${CONFIG_SHELL-$SHELL}
24674 export SHELL
24675 _ASEOF
24676 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24677 ## -------------------- ##
24678 ## M4sh Initialization. ##
24679 ## -------------------- ##
24680
24681 # Be more Bourne compatible
24682 DUALCASE=1; export DUALCASE # for MKS sh
24683 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24684 emulate sh
24685 NULLCMD=:
24686 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24687 # is contrary to our usage. Disable this feature.
24688 alias -g '${1+"$@"}'='"$@"'
24689 setopt NO_GLOB_SUBST
24690 else
24691 case `(set -o) 2>/dev/null` in #(
24692 *posix*) :
24693 set -o posix ;; #(
24694 *) :
24695 ;;
24696 esac
24697 fi
24698
24699
24700 as_nl='
24701 '
24702 export as_nl
24703 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24704 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24707 # Prefer a ksh shell builtin over an external printf program on Solaris,
24708 # but without wasting forks for bash or zsh.
24709 if test -z "$BASH_VERSION$ZSH_VERSION" \
24710 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24711 as_echo='print -r --'
24712 as_echo_n='print -rn --'
24713 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24714 as_echo='printf %s\n'
24715 as_echo_n='printf %s'
24716 else
24717 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24718 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24719 as_echo_n='/usr/ucb/echo -n'
24720 else
24721 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24722 as_echo_n_body='eval
24723 arg=$1;
24724 case $arg in #(
24725 *"$as_nl"*)
24726 expr "X$arg" : "X\\(.*\\)$as_nl";
24727 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24728 esac;
24729 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24730 '
24731 export as_echo_n_body
24732 as_echo_n='sh -c $as_echo_n_body as_echo'
24733 fi
24734 export as_echo_body
24735 as_echo='sh -c $as_echo_body as_echo'
24736 fi
24737
24738 # The user is always right.
24739 if test "${PATH_SEPARATOR+set}" != set; then
24740 PATH_SEPARATOR=:
24741 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24742 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24743 PATH_SEPARATOR=';'
24744 }
24745 fi
24746
24747
24748 # IFS
24749 # We need space, tab and new line, in precisely that order. Quoting is
24750 # there to prevent editors from complaining about space-tab.
24751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24752 # splitting by setting IFS to empty value.)
24753 IFS=" "" $as_nl"
24754
24755 # Find who we are. Look in the path if we contain no directory separator.
24756 case $0 in #((
24757 *[\\/]* ) as_myself=$0 ;;
24758 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24759 for as_dir in $PATH
24760 do
24761 IFS=$as_save_IFS
24762 test -z "$as_dir" && as_dir=.
24763 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24764 done
24765 IFS=$as_save_IFS
24766
24767 ;;
24768 esac
24769 # We did not find ourselves, most probably we were run as `sh COMMAND'
24770 # in which case we are not to be found in the path.
24771 if test "x$as_myself" = x; then
24772 as_myself=$0
24773 fi
24774 if test ! -f "$as_myself"; then
24775 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24776 exit 1
24777 fi
24778
24779 # Unset variables that we do not need and which cause bugs (e.g. in
24780 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24781 # suppresses any "Segmentation fault" message there. '((' could
24782 # trigger a bug in pdksh 5.2.14.
24783 for as_var in BASH_ENV ENV MAIL MAILPATH
24784 do eval test x\${$as_var+set} = xset \
24785 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24786 done
24787 PS1='$ '
24788 PS2='> '
24789 PS4='+ '
24790
24791 # NLS nuisances.
24792 LC_ALL=C
24793 export LC_ALL
24794 LANGUAGE=C
24795 export LANGUAGE
24796
24797 # CDPATH.
24798 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24799
24800
24801 # as_fn_error ERROR [LINENO LOG_FD]
24802 # ---------------------------------
24803 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24804 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24805 # script with status $?, using 1 if that was 0.
24806 as_fn_error ()
24807 {
24808 as_status=$?; test $as_status -eq 0 && as_status=1
24809 if test "$3"; then
24810 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24811 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24812 fi
24813 $as_echo "$as_me: error: $1" >&2
24814 as_fn_exit $as_status
24815 } # as_fn_error
24816
24817
24818 # as_fn_set_status STATUS
24819 # -----------------------
24820 # Set $? to STATUS, without forking.
24821 as_fn_set_status ()
24822 {
24823 return $1
24824 } # as_fn_set_status
24825
24826 # as_fn_exit STATUS
24827 # -----------------
24828 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24829 as_fn_exit ()
24830 {
24831 set +e
24832 as_fn_set_status $1
24833 exit $1
24834 } # as_fn_exit
24835
24836 # as_fn_unset VAR
24837 # ---------------
24838 # Portably unset VAR.
24839 as_fn_unset ()
24840 {
24841 { eval $1=; unset $1;}
24842 }
24843 as_unset=as_fn_unset
24844 # as_fn_append VAR VALUE
24845 # ----------------------
24846 # Append the text in VALUE to the end of the definition contained in VAR. Take
24847 # advantage of any shell optimizations that allow amortized linear growth over
24848 # repeated appends, instead of the typical quadratic growth present in naive
24849 # implementations.
24850 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24851 eval 'as_fn_append ()
24852 {
24853 eval $1+=\$2
24854 }'
24855 else
24856 as_fn_append ()
24857 {
24858 eval $1=\$$1\$2
24859 }
24860 fi # as_fn_append
24861
24862 # as_fn_arith ARG...
24863 # ------------------
24864 # Perform arithmetic evaluation on the ARGs, and store the result in the
24865 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24866 # must be portable across $(()) and expr.
24867 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24868 eval 'as_fn_arith ()
24869 {
24870 as_val=$(( $* ))
24871 }'
24872 else
24873 as_fn_arith ()
24874 {
24875 as_val=`expr "$@" || test $? -eq 1`
24876 }
24877 fi # as_fn_arith
24878
24879
24880 if expr a : '\(a\)' >/dev/null 2>&1 &&
24881 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24882 as_expr=expr
24883 else
24884 as_expr=false
24885 fi
24886
24887 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24888 as_basename=basename
24889 else
24890 as_basename=false
24891 fi
24892
24893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24894 as_dirname=dirname
24895 else
24896 as_dirname=false
24897 fi
24898
24899 as_me=`$as_basename -- "$0" ||
24900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24901 X"$0" : 'X\(//\)$' \| \
24902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24903 $as_echo X/"$0" |
24904 sed '/^.*\/\([^/][^/]*\)\/*$/{
24905 s//\1/
24906 q
24907 }
24908 /^X\/\(\/\/\)$/{
24909 s//\1/
24910 q
24911 }
24912 /^X\/\(\/\).*/{
24913 s//\1/
24914 q
24915 }
24916 s/.*/./; q'`
24917
24918 # Avoid depending upon Character Ranges.
24919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24922 as_cr_digits='0123456789'
24923 as_cr_alnum=$as_cr_Letters$as_cr_digits
24924
24925 ECHO_C= ECHO_N= ECHO_T=
24926 case `echo -n x` in #(((((
24927 -n*)
24928 case `echo 'xy\c'` in
24929 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24930 xy) ECHO_C='\c';;
24931 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24932 ECHO_T=' ';;
24933 esac;;
24934 *)
24935 ECHO_N='-n';;
24936 esac
24937
24938 rm -f conf$$ conf$$.exe conf$$.file
24939 if test -d conf$$.dir; then
24940 rm -f conf$$.dir/conf$$.file
24941 else
24942 rm -f conf$$.dir
24943 mkdir conf$$.dir 2>/dev/null
24944 fi
24945 if (echo >conf$$.file) 2>/dev/null; then
24946 if ln -s conf$$.file conf$$ 2>/dev/null; then
24947 as_ln_s='ln -s'
24948 # ... but there are two gotchas:
24949 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24950 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24951 # In both cases, we have to default to `cp -p'.
24952 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24953 as_ln_s='cp -p'
24954 elif ln conf$$.file conf$$ 2>/dev/null; then
24955 as_ln_s=ln
24956 else
24957 as_ln_s='cp -p'
24958 fi
24959 else
24960 as_ln_s='cp -p'
24961 fi
24962 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24963 rmdir conf$$.dir 2>/dev/null
24964
24965
24966 # as_fn_mkdir_p
24967 # -------------
24968 # Create "$as_dir" as a directory, including parents if necessary.
24969 as_fn_mkdir_p ()
24970 {
24971
24972 case $as_dir in #(
24973 -*) as_dir=./$as_dir;;
24974 esac
24975 test -d "$as_dir" || eval $as_mkdir_p || {
24976 as_dirs=
24977 while :; do
24978 case $as_dir in #(
24979 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24980 *) as_qdir=$as_dir;;
24981 esac
24982 as_dirs="'$as_qdir' $as_dirs"
24983 as_dir=`$as_dirname -- "$as_dir" ||
24984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24985 X"$as_dir" : 'X\(//\)[^/]' \| \
24986 X"$as_dir" : 'X\(//\)$' \| \
24987 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24988 $as_echo X"$as_dir" |
24989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24990 s//\1/
24991 q
24992 }
24993 /^X\(\/\/\)[^/].*/{
24994 s//\1/
24995 q
24996 }
24997 /^X\(\/\/\)$/{
24998 s//\1/
24999 q
25000 }
25001 /^X\(\/\).*/{
25002 s//\1/
25003 q
25004 }
25005 s/.*/./; q'`
25006 test -d "$as_dir" && break
25007 done
25008 test -z "$as_dirs" || eval "mkdir $as_dirs"
25009 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25010
25011
25012 } # as_fn_mkdir_p
25013 if mkdir -p . 2>/dev/null; then
25014 as_mkdir_p='mkdir -p "$as_dir"'
25015 else
25016 test -d ./-p && rmdir ./-p
25017 as_mkdir_p=false
25018 fi
25019
25020 if test -x / >/dev/null 2>&1; then
25021 as_test_x='test -x'
25022 else
25023 if ls -dL / >/dev/null 2>&1; then
25024 as_ls_L_option=L
25025 else
25026 as_ls_L_option=
25027 fi
25028 as_test_x='
25029 eval sh -c '\''
25030 if test -d "$1"; then
25031 test -d "$1/.";
25032 else
25033 case $1 in #(
25034 -*)set "./$1";;
25035 esac;
25036 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25037 ???[sx]*):;;*)false;;esac;fi
25038 '\'' sh
25039 '
25040 fi
25041 as_executable_p=$as_test_x
25042
25043 # Sed expression to map a string onto a valid CPP name.
25044 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25045
25046 # Sed expression to map a string onto a valid variable name.
25047 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25048
25049
25050 exec 6>&1
25051 ## ----------------------------------- ##
25052 ## Main body of $CONFIG_STATUS script. ##
25053 ## ----------------------------------- ##
25054 _ASEOF
25055 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25056
25057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25058 # Save the log message, to keep $0 and so on meaningful, and to
25059 # report actual input values of CONFIG_FILES etc. instead of their
25060 # values after options handling.
25061 ac_log="
25062 This file was extended by GNU Classpath $as_me 0.99, which was
25063 generated by GNU Autoconf 2.64. Invocation command line was
25064
25065 CONFIG_FILES = $CONFIG_FILES
25066 CONFIG_HEADERS = $CONFIG_HEADERS
25067 CONFIG_LINKS = $CONFIG_LINKS
25068 CONFIG_COMMANDS = $CONFIG_COMMANDS
25069 $ $0 $@
25070
25071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25072 "
25073
25074 _ACEOF
25075
25076 case $ac_config_files in *"
25077 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25078 esac
25079
25080 case $ac_config_headers in *"
25081 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25082 esac
25083
25084
25085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25086 # Files that config.status was made for.
25087 config_files="$ac_config_files"
25088 config_headers="$ac_config_headers"
25089 config_links="$ac_config_links"
25090 config_commands="$ac_config_commands"
25091
25092 _ACEOF
25093
25094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25095 ac_cs_usage="\
25096 \`$as_me' instantiates files and other configuration actions
25097 from templates according to the current configuration. Unless the files
25098 and actions are specified as TAGs, all are instantiated by default.
25099
25100 Usage: $0 [OPTION]... [TAG]...
25101
25102 -h, --help print this help, then exit
25103 -V, --version print version number and configuration settings, then exit
25104 -q, --quiet, --silent
25105 do not print progress messages
25106 -d, --debug don't remove temporary files
25107 --recheck update $as_me by reconfiguring in the same conditions
25108 --file=FILE[:TEMPLATE]
25109 instantiate the configuration file FILE
25110 --header=FILE[:TEMPLATE]
25111 instantiate the configuration header FILE
25112
25113 Configuration files:
25114 $config_files
25115
25116 Configuration headers:
25117 $config_headers
25118
25119 Configuration links:
25120 $config_links
25121
25122 Configuration commands:
25123 $config_commands
25124
25125 Report bugs to <classpath@gnu.org>.
25126 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25127 General help using GNU software: <http://www.gnu.org/gethelp/>."
25128
25129 _ACEOF
25130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25131 ac_cs_version="\\
25132 GNU Classpath config.status 0.99
25133 configured by $0, generated by GNU Autoconf 2.64,
25134 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25135
25136 Copyright (C) 2009 Free Software Foundation, Inc.
25137 This config.status script is free software; the Free Software Foundation
25138 gives unlimited permission to copy, distribute and modify it."
25139
25140 ac_pwd='$ac_pwd'
25141 srcdir='$srcdir'
25142 INSTALL='$INSTALL'
25143 MKDIR_P='$MKDIR_P'
25144 AWK='$AWK'
25145 test -n "\$AWK" || AWK=awk
25146 _ACEOF
25147
25148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25149 # The default lists apply if the user does not specify any file.
25150 ac_need_defaults=:
25151 while test $# != 0
25152 do
25153 case $1 in
25154 --*=*)
25155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25156 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25157 ac_shift=:
25158 ;;
25159 *)
25160 ac_option=$1
25161 ac_optarg=$2
25162 ac_shift=shift
25163 ;;
25164 esac
25165
25166 case $ac_option in
25167 # Handling of the options.
25168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25169 ac_cs_recheck=: ;;
25170 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25171 $as_echo "$ac_cs_version"; exit ;;
25172 --debug | --debu | --deb | --de | --d | -d )
25173 debug=: ;;
25174 --file | --fil | --fi | --f )
25175 $ac_shift
25176 case $ac_optarg in
25177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25178 esac
25179 as_fn_append CONFIG_FILES " '$ac_optarg'"
25180 ac_need_defaults=false;;
25181 --header | --heade | --head | --hea )
25182 $ac_shift
25183 case $ac_optarg in
25184 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25185 esac
25186 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25187 ac_need_defaults=false;;
25188 --he | --h)
25189 # Conflict between --help and --header
25190 as_fn_error "ambiguous option: \`$1'
25191 Try \`$0 --help' for more information.";;
25192 --help | --hel | -h )
25193 $as_echo "$ac_cs_usage"; exit ;;
25194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25196 ac_cs_silent=: ;;
25197
25198 # This is an error.
25199 -*) as_fn_error "unrecognized option: \`$1'
25200 Try \`$0 --help' for more information." ;;
25201
25202 *) as_fn_append ac_config_targets " $1"
25203 ac_need_defaults=false ;;
25204
25205 esac
25206 shift
25207 done
25208
25209 ac_configure_extra_args=
25210
25211 if $ac_cs_silent; then
25212 exec 6>/dev/null
25213 ac_configure_extra_args="$ac_configure_extra_args --silent"
25214 fi
25215
25216 _ACEOF
25217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25218 if \$ac_cs_recheck; then
25219 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25220 shift
25221 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25222 CONFIG_SHELL='$SHELL'
25223 export CONFIG_SHELL
25224 exec "\$@"
25225 fi
25226
25227 _ACEOF
25228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25229 exec 5>>config.log
25230 {
25231 echo
25232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25233 ## Running $as_me. ##
25234 _ASBOX
25235 $as_echo "$ac_log"
25236 } >&5
25237
25238 _ACEOF
25239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25240 #
25241 # INIT-COMMANDS
25242 #
25243
25244 srcdir="$srcdir"
25245 host="$host"
25246 target="$target"
25247 with_multisubdir="$with_multisubdir"
25248 with_multisrctop="$with_multisrctop"
25249 with_target_subdir="$with_target_subdir"
25250 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25251 multi_basedir="$multi_basedir"
25252 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25253 CC="$CC"
25254 CXX="$CXX"
25255 GFORTRAN="$GFORTRAN"
25256 GCJ="$GCJ"
25257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25258
25259
25260 # The HP-UX ksh and POSIX shell print the target directory to stdout
25261 # if CDPATH is set.
25262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25263
25264 sed_quote_subst='$sed_quote_subst'
25265 double_quote_subst='$double_quote_subst'
25266 delay_variable_subst='$delay_variable_subst'
25267 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25268 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25269 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25270 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25271 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25272 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25273 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25274 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25275 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25276 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25277 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25278 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25279 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25280 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25281 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25282 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25283 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25284 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25285 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25286 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25287 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25288 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25289 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25290 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25291 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25292 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25293 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25294 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25295 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25296 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25297 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25298 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25299 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25300 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25301 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25302 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25303 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25304 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25305 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25306 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25307 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25308 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25309 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25310 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25311 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25312 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25313 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25314 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25315 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"`'
25316 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25317 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25318 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25319 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25320 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25321 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25322 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25323 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25324 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25325 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25326 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25327 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25328 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25329 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25330 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25331 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25332 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25333 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25334 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25335 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25336 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25337 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25338 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25339 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25340 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25341 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25342 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25343 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25344 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25345 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25346 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25347 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25348 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25349 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25350 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25351 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25352 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25353 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25354 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25355 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25356 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25357 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25358 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25359 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25360 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25361 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25362 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25363 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25364 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25365 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25366 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25367 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25368 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25369 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25370 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25371 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25372 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25373 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25374 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25375 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25376 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25377 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25378 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25379 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25380 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25381 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25382 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25383 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25384 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25385 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25386 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25387 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25388 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25389 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25390 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25391 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25392 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25393 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25394 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25395 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25396 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25397 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25398 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25399 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25400 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25401 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25402 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25403 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25404 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25405 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25406 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25407 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25408 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25409 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25410 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25411 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25412 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25413 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25414 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25415 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25416 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25417 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25418 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25419 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25420 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25421 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25422 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25423 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25424 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25425 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25426 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25427 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25428 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25429 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25430 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25431 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25432 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25433 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25434 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25435 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25436 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25437 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25438 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25439 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25440 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25441 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25442
25443 LTCC='$LTCC'
25444 LTCFLAGS='$LTCFLAGS'
25445 compiler='$compiler_DEFAULT'
25446
25447 # A function that is used when there is no print builtin or printf.
25448 func_fallback_echo ()
25449 {
25450 eval 'cat <<_LTECHO_EOF
25451 \$1
25452 _LTECHO_EOF'
25453 }
25454
25455 # Quote evaled strings.
25456 for var in SHELL \
25457 ECHO \
25458 SED \
25459 GREP \
25460 EGREP \
25461 FGREP \
25462 LD \
25463 NM \
25464 LN_S \
25465 lt_SP2NL \
25466 lt_NL2SP \
25467 reload_flag \
25468 OBJDUMP \
25469 deplibs_check_method \
25470 file_magic_cmd \
25471 AR \
25472 AR_FLAGS \
25473 STRIP \
25474 RANLIB \
25475 CC \
25476 CFLAGS \
25477 compiler \
25478 lt_cv_sys_global_symbol_pipe \
25479 lt_cv_sys_global_symbol_to_cdecl \
25480 lt_cv_sys_global_symbol_to_c_name_address \
25481 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25482 lt_prog_compiler_no_builtin_flag \
25483 lt_prog_compiler_wl \
25484 lt_prog_compiler_pic \
25485 lt_prog_compiler_static \
25486 lt_cv_prog_compiler_c_o \
25487 need_locks \
25488 DSYMUTIL \
25489 NMEDIT \
25490 LIPO \
25491 OTOOL \
25492 OTOOL64 \
25493 shrext_cmds \
25494 export_dynamic_flag_spec \
25495 whole_archive_flag_spec \
25496 compiler_needs_object \
25497 with_gnu_ld \
25498 allow_undefined_flag \
25499 no_undefined_flag \
25500 hardcode_libdir_flag_spec \
25501 hardcode_libdir_flag_spec_ld \
25502 hardcode_libdir_separator \
25503 fix_srcfile_path \
25504 exclude_expsyms \
25505 include_expsyms \
25506 file_list_spec \
25507 variables_saved_for_relink \
25508 libname_spec \
25509 library_names_spec \
25510 soname_spec \
25511 install_override_mode \
25512 finish_eval \
25513 old_striplib \
25514 striplib \
25515 compiler_lib_search_dirs \
25516 predep_objects \
25517 postdep_objects \
25518 predeps \
25519 postdeps \
25520 compiler_lib_search_path \
25521 LD_CXX \
25522 reload_flag_CXX \
25523 compiler_CXX \
25524 lt_prog_compiler_no_builtin_flag_CXX \
25525 lt_prog_compiler_wl_CXX \
25526 lt_prog_compiler_pic_CXX \
25527 lt_prog_compiler_static_CXX \
25528 lt_cv_prog_compiler_c_o_CXX \
25529 export_dynamic_flag_spec_CXX \
25530 whole_archive_flag_spec_CXX \
25531 compiler_needs_object_CXX \
25532 with_gnu_ld_CXX \
25533 allow_undefined_flag_CXX \
25534 no_undefined_flag_CXX \
25535 hardcode_libdir_flag_spec_CXX \
25536 hardcode_libdir_flag_spec_ld_CXX \
25537 hardcode_libdir_separator_CXX \
25538 fix_srcfile_path_CXX \
25539 exclude_expsyms_CXX \
25540 include_expsyms_CXX \
25541 file_list_spec_CXX \
25542 compiler_lib_search_dirs_CXX \
25543 predep_objects_CXX \
25544 postdep_objects_CXX \
25545 predeps_CXX \
25546 postdeps_CXX \
25547 compiler_lib_search_path_CXX; do
25548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25549 *[\\\\\\\`\\"\\\$]*)
25550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25551 ;;
25552 *)
25553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25554 ;;
25555 esac
25556 done
25557
25558 # Double-quote double-evaled strings.
25559 for var in reload_cmds \
25560 old_postinstall_cmds \
25561 old_postuninstall_cmds \
25562 old_archive_cmds \
25563 extract_expsyms_cmds \
25564 old_archive_from_new_cmds \
25565 old_archive_from_expsyms_cmds \
25566 archive_cmds \
25567 archive_expsym_cmds \
25568 module_cmds \
25569 module_expsym_cmds \
25570 export_symbols_cmds \
25571 prelink_cmds \
25572 postinstall_cmds \
25573 postuninstall_cmds \
25574 finish_cmds \
25575 sys_lib_search_path_spec \
25576 sys_lib_dlsearch_path_spec \
25577 reload_cmds_CXX \
25578 old_archive_cmds_CXX \
25579 old_archive_from_new_cmds_CXX \
25580 old_archive_from_expsyms_cmds_CXX \
25581 archive_cmds_CXX \
25582 archive_expsym_cmds_CXX \
25583 module_cmds_CXX \
25584 module_expsym_cmds_CXX \
25585 export_symbols_cmds_CXX \
25586 prelink_cmds_CXX; do
25587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25588 *[\\\\\\\`\\"\\\$]*)
25589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25590 ;;
25591 *)
25592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25593 ;;
25594 esac
25595 done
25596
25597 ac_aux_dir='$ac_aux_dir'
25598 xsi_shell='$xsi_shell'
25599 lt_shell_append='$lt_shell_append'
25600
25601 # See if we are running on zsh, and set the options which allow our
25602 # commands through without removal of \ escapes INIT.
25603 if test -n "\${ZSH_VERSION+set}" ; then
25604 setopt NO_GLOB_SUBST
25605 fi
25606
25607
25608 PACKAGE='$PACKAGE'
25609 VERSION='$VERSION'
25610 TIMESTAMP='$TIMESTAMP'
25611 RM='$RM'
25612 ofile='$ofile'
25613
25614
25615
25616
25617
25618 # variables for create stdint.h replacement
25619 PACKAGE="$PACKAGE"
25620 VERSION="$VERSION"
25621 ac_stdint_h="$ac_stdint_h"
25622 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25623 ac_cv_stdint_message="$ac_cv_stdint_message"
25624 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25625 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25626 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25627 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25628 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25629 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25630 ac_cv_char_data_model="$ac_cv_char_data_model"
25631 ac_cv_long_data_model="$ac_cv_long_data_model"
25632 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25633 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25634 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25635
25636
25637 _ACEOF
25638
25639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25640
25641 # Handling of arguments.
25642 for ac_config_target in $ac_config_targets
25643 do
25644 case $ac_config_target in
25645 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25646 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25649 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25650 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25651 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25652 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25653 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25654 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25655 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25656 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25657 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25658 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25659 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25660 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25661 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25662 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25663 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25664 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25665 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25666 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25667 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25668 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25669 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25670 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25671 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25672 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25673 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25674 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25675 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25676 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25677 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25678 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25679 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25680 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25681 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25682 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25683 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25684 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25685 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25686 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25687 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25688 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25689 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25690 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25691 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25692 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25693 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25694 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25695 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25696 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25697 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25698 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25699 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25700 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25701 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25702 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25703 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25704 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25705 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25706 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25707 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25708 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25709 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25710 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25711 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25712 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25713 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25714 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25715 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25716 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25717 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25718 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25719 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25720 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25721 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25722 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25723 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25724 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25725 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25726
25727 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25728 esac
25729 done
25730
25731
25732 # If the user did not use the arguments to specify the items to instantiate,
25733 # then the envvar interface is used. Set only those that are not.
25734 # We use the long form for the default assignment because of an extremely
25735 # bizarre bug on SunOS 4.1.3.
25736 if $ac_need_defaults; then
25737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25739 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25741 fi
25742
25743 # Have a temporary directory for convenience. Make it in the build tree
25744 # simply because there is no reason against having it here, and in addition,
25745 # creating and moving files from /tmp can sometimes cause problems.
25746 # Hook for its removal unless debugging.
25747 # Note that there is a small window in which the directory will not be cleaned:
25748 # after its creation but before its name has been assigned to `$tmp'.
25749 $debug ||
25750 {
25751 tmp=
25752 trap 'exit_status=$?
25753 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25754 ' 0
25755 trap 'as_fn_exit 1' 1 2 13 15
25756 }
25757 # Create a (secure) tmp directory for tmp files.
25758
25759 {
25760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25761 test -n "$tmp" && test -d "$tmp"
25762 } ||
25763 {
25764 tmp=./conf$$-$RANDOM
25765 (umask 077 && mkdir "$tmp")
25766 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25767
25768 # Set up the scripts for CONFIG_FILES section.
25769 # No need to generate them if there are no CONFIG_FILES.
25770 # This happens for instance with `./config.status config.h'.
25771 if test -n "$CONFIG_FILES"; then
25772
25773
25774 ac_cr=`echo X | tr X '\015'`
25775 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25776 # But we know of no other shell where ac_cr would be empty at this
25777 # point, so we can use a bashism as a fallback.
25778 if test "x$ac_cr" = x; then
25779 eval ac_cr=\$\'\\r\'
25780 fi
25781 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25782 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25783 ac_cs_awk_cr='\r'
25784 else
25785 ac_cs_awk_cr=$ac_cr
25786 fi
25787
25788 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25789 _ACEOF
25790
25791
25792 {
25793 echo "cat >conf$$subs.awk <<_ACEOF" &&
25794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25795 echo "_ACEOF"
25796 } >conf$$subs.sh ||
25797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25798 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25799 ac_delim='%!_!# '
25800 for ac_last_try in false false false false false :; do
25801 . ./conf$$subs.sh ||
25802 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25803
25804 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25805 if test $ac_delim_n = $ac_delim_num; then
25806 break
25807 elif $ac_last_try; then
25808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25809 else
25810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25811 fi
25812 done
25813 rm -f conf$$subs.sh
25814
25815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25816 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25817 _ACEOF
25818 sed -n '
25819 h
25820 s/^/S["/; s/!.*/"]=/
25821 p
25822 g
25823 s/^[^!]*!//
25824 :repl
25825 t repl
25826 s/'"$ac_delim"'$//
25827 t delim
25828 :nl
25829 h
25830 s/\(.\{148\}\).*/\1/
25831 t more1
25832 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25833 p
25834 n
25835 b repl
25836 :more1
25837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25838 p
25839 g
25840 s/.\{148\}//
25841 t nl
25842 :delim
25843 h
25844 s/\(.\{148\}\).*/\1/
25845 t more2
25846 s/["\\]/\\&/g; s/^/"/; s/$/"/
25847 p
25848 b
25849 :more2
25850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25851 p
25852 g
25853 s/.\{148\}//
25854 t delim
25855 ' <conf$$subs.awk | sed '
25856 /^[^""]/{
25857 N
25858 s/\n//
25859 }
25860 ' >>$CONFIG_STATUS || ac_write_fail=1
25861 rm -f conf$$subs.awk
25862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25863 _ACAWK
25864 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25865 for (key in S) S_is_set[key] = 1
25866 FS = "\a"
25867
25868 }
25869 {
25870 line = $ 0
25871 nfields = split(line, field, "@")
25872 substed = 0
25873 len = length(field[1])
25874 for (i = 2; i < nfields; i++) {
25875 key = field[i]
25876 keylen = length(key)
25877 if (S_is_set[key]) {
25878 value = S[key]
25879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25880 len += length(value) + length(field[++i])
25881 substed = 1
25882 } else
25883 len += 1 + keylen
25884 }
25885
25886 print line
25887 }
25888
25889 _ACAWK
25890 _ACEOF
25891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25892 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25893 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25894 else
25895 cat
25896 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25897 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25898 _ACEOF
25899
25900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25902 # trailing colons and then remove the whole line if VPATH becomes empty
25903 # (actually we leave an empty line to preserve line numbers).
25904 if test "x$srcdir" = x.; then
25905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25906 s/:*\$(srcdir):*/:/
25907 s/:*\${srcdir}:*/:/
25908 s/:*@srcdir@:*/:/
25909 s/^\([^=]*=[ ]*\):*/\1/
25910 s/:*$//
25911 s/^[^=]*=[ ]*$//
25912 }'
25913 fi
25914
25915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25916 fi # test -n "$CONFIG_FILES"
25917
25918 # Set up the scripts for CONFIG_HEADERS section.
25919 # No need to generate them if there are no CONFIG_HEADERS.
25920 # This happens for instance with `./config.status Makefile'.
25921 if test -n "$CONFIG_HEADERS"; then
25922 cat >"$tmp/defines.awk" <<\_ACAWK ||
25923 BEGIN {
25924 _ACEOF
25925
25926 # Transform confdefs.h into an awk script `defines.awk', embedded as
25927 # here-document in config.status, that substitutes the proper values into
25928 # config.h.in to produce config.h.
25929
25930 # Create a delimiter string that does not exist in confdefs.h, to ease
25931 # handling of long lines.
25932 ac_delim='%!_!# '
25933 for ac_last_try in false false :; do
25934 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25935 if test -z "$ac_t"; then
25936 break
25937 elif $ac_last_try; then
25938 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25939 else
25940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25941 fi
25942 done
25943
25944 # For the awk script, D is an array of macro values keyed by name,
25945 # likewise P contains macro parameters if any. Preserve backslash
25946 # newline sequences.
25947
25948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25949 sed -n '
25950 s/.\{148\}/&'"$ac_delim"'/g
25951 t rset
25952 :rset
25953 s/^[ ]*#[ ]*define[ ][ ]*/ /
25954 t def
25955 d
25956 :def
25957 s/\\$//
25958 t bsnl
25959 s/["\\]/\\&/g
25960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25961 D["\1"]=" \3"/p
25962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25963 d
25964 :bsnl
25965 s/["\\]/\\&/g
25966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25967 D["\1"]=" \3\\\\\\n"\\/p
25968 t cont
25969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25970 t cont
25971 d
25972 :cont
25973 n
25974 s/.\{148\}/&'"$ac_delim"'/g
25975 t clear
25976 :clear
25977 s/\\$//
25978 t bsnlc
25979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25980 d
25981 :bsnlc
25982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25983 b cont
25984 ' <confdefs.h | sed '
25985 s/'"$ac_delim"'/"\\\
25986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25987
25988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25989 for (key in D) D_is_set[key] = 1
25990 FS = "\a"
25991 }
25992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25993 line = \$ 0
25994 split(line, arg, " ")
25995 if (arg[1] == "#") {
25996 defundef = arg[2]
25997 mac1 = arg[3]
25998 } else {
25999 defundef = substr(arg[1], 2)
26000 mac1 = arg[2]
26001 }
26002 split(mac1, mac2, "(") #)
26003 macro = mac2[1]
26004 prefix = substr(line, 1, index(line, defundef) - 1)
26005 if (D_is_set[macro]) {
26006 # Preserve the white space surrounding the "#".
26007 print prefix "define", macro P[macro] D[macro]
26008 next
26009 } else {
26010 # Replace #undef with comments. This is necessary, for example,
26011 # in the case of _POSIX_SOURCE, which is predefined and required
26012 # on some systems where configure will not decide to define it.
26013 if (defundef == "undef") {
26014 print "/*", prefix defundef, macro, "*/"
26015 next
26016 }
26017 }
26018 }
26019 { print }
26020 _ACAWK
26021 _ACEOF
26022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26023 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26024 fi # test -n "$CONFIG_HEADERS"
26025
26026
26027 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26028 shift
26029 for ac_tag
26030 do
26031 case $ac_tag in
26032 :[FHLC]) ac_mode=$ac_tag; continue;;
26033 esac
26034 case $ac_mode$ac_tag in
26035 :[FHL]*:*);;
26036 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26037 :[FH]-) ac_tag=-:-;;
26038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26039 esac
26040 ac_save_IFS=$IFS
26041 IFS=:
26042 set x $ac_tag
26043 IFS=$ac_save_IFS
26044 shift
26045 ac_file=$1
26046 shift
26047
26048 case $ac_mode in
26049 :L) ac_source=$1;;
26050 :[FH])
26051 ac_file_inputs=
26052 for ac_f
26053 do
26054 case $ac_f in
26055 -) ac_f="$tmp/stdin";;
26056 *) # Look for the file first in the build tree, then in the source tree
26057 # (if the path is not absolute). The absolute path cannot be DOS-style,
26058 # because $ac_f cannot contain `:'.
26059 test -f "$ac_f" ||
26060 case $ac_f in
26061 [\\/$]*) false;;
26062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26063 esac ||
26064 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26065 esac
26066 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26067 as_fn_append ac_file_inputs " '$ac_f'"
26068 done
26069
26070 # Let's still pretend it is `configure' which instantiates (i.e., don't
26071 # use $as_me), people would be surprised to read:
26072 # /* config.h. Generated by config.status. */
26073 configure_input='Generated from '`
26074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26075 `' by configure.'
26076 if test x"$ac_file" != x-; then
26077 configure_input="$ac_file. $configure_input"
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26079 $as_echo "$as_me: creating $ac_file" >&6;}
26080 fi
26081 # Neutralize special characters interpreted by sed in replacement strings.
26082 case $configure_input in #(
26083 *\&* | *\|* | *\\* )
26084 ac_sed_conf_input=`$as_echo "$configure_input" |
26085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26086 *) ac_sed_conf_input=$configure_input;;
26087 esac
26088
26089 case $ac_tag in
26090 *:-:* | *:-) cat >"$tmp/stdin" \
26091 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26092 esac
26093 ;;
26094 esac
26095
26096 ac_dir=`$as_dirname -- "$ac_file" ||
26097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26098 X"$ac_file" : 'X\(//\)[^/]' \| \
26099 X"$ac_file" : 'X\(//\)$' \| \
26100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26101 $as_echo X"$ac_file" |
26102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26103 s//\1/
26104 q
26105 }
26106 /^X\(\/\/\)[^/].*/{
26107 s//\1/
26108 q
26109 }
26110 /^X\(\/\/\)$/{
26111 s//\1/
26112 q
26113 }
26114 /^X\(\/\).*/{
26115 s//\1/
26116 q
26117 }
26118 s/.*/./; q'`
26119 as_dir="$ac_dir"; as_fn_mkdir_p
26120 ac_builddir=.
26121
26122 case "$ac_dir" in
26123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26124 *)
26125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26126 # A ".." for each directory in $ac_dir_suffix.
26127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26128 case $ac_top_builddir_sub in
26129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26131 esac ;;
26132 esac
26133 ac_abs_top_builddir=$ac_pwd
26134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26135 # for backward compatibility:
26136 ac_top_builddir=$ac_top_build_prefix
26137
26138 case $srcdir in
26139 .) # We are building in place.
26140 ac_srcdir=.
26141 ac_top_srcdir=$ac_top_builddir_sub
26142 ac_abs_top_srcdir=$ac_pwd ;;
26143 [\\/]* | ?:[\\/]* ) # Absolute name.
26144 ac_srcdir=$srcdir$ac_dir_suffix;
26145 ac_top_srcdir=$srcdir
26146 ac_abs_top_srcdir=$srcdir ;;
26147 *) # Relative name.
26148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26149 ac_top_srcdir=$ac_top_build_prefix$srcdir
26150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26151 esac
26152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26153
26154
26155 case $ac_mode in
26156 :F)
26157 #
26158 # CONFIG_FILE
26159 #
26160
26161 case $INSTALL in
26162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26164 esac
26165 ac_MKDIR_P=$MKDIR_P
26166 case $MKDIR_P in
26167 [\\/$]* | ?:[\\/]* ) ;;
26168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26169 esac
26170 _ACEOF
26171
26172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26173 # If the template does not know about datarootdir, expand it.
26174 # FIXME: This hack should be removed a few years after 2.60.
26175 ac_datarootdir_hack=; ac_datarootdir_seen=
26176 ac_sed_dataroot='
26177 /datarootdir/ {
26178 p
26179 q
26180 }
26181 /@datadir@/p
26182 /@docdir@/p
26183 /@infodir@/p
26184 /@localedir@/p
26185 /@mandir@/p'
26186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26187 *datarootdir*) ac_datarootdir_seen=yes;;
26188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26191 _ACEOF
26192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26193 ac_datarootdir_hack='
26194 s&@datadir@&$datadir&g
26195 s&@docdir@&$docdir&g
26196 s&@infodir@&$infodir&g
26197 s&@localedir@&$localedir&g
26198 s&@mandir@&$mandir&g
26199 s&\\\${datarootdir}&$datarootdir&g' ;;
26200 esac
26201 _ACEOF
26202
26203 # Neutralize VPATH when `$srcdir' = `.'.
26204 # Shell code in configure.ac might set extrasub.
26205 # FIXME: do we really want to maintain this feature?
26206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26207 ac_sed_extra="$ac_vpsub
26208 $extrasub
26209 _ACEOF
26210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26211 :t
26212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26213 s|@configure_input@|$ac_sed_conf_input|;t t
26214 s&@top_builddir@&$ac_top_builddir_sub&;t t
26215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26216 s&@srcdir@&$ac_srcdir&;t t
26217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26218 s&@top_srcdir@&$ac_top_srcdir&;t t
26219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26220 s&@builddir@&$ac_builddir&;t t
26221 s&@abs_builddir@&$ac_abs_builddir&;t t
26222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26223 s&@INSTALL@&$ac_INSTALL&;t t
26224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26225 $ac_datarootdir_hack
26226 "
26227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26228 || as_fn_error "could not create $ac_file" "$LINENO" 5
26229
26230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26234 which seems to be undefined. Please make sure it is defined." >&5
26235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26236 which seems to be undefined. Please make sure it is defined." >&2;}
26237
26238 rm -f "$tmp/stdin"
26239 case $ac_file in
26240 -) cat "$tmp/out" && rm -f "$tmp/out";;
26241 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26242 esac \
26243 || as_fn_error "could not create $ac_file" "$LINENO" 5
26244 ;;
26245 :H)
26246 #
26247 # CONFIG_HEADER
26248 #
26249 if test x"$ac_file" != x-; then
26250 {
26251 $as_echo "/* $configure_input */" \
26252 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26253 } >"$tmp/config.h" \
26254 || as_fn_error "could not create $ac_file" "$LINENO" 5
26255 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26258 else
26259 rm -f "$ac_file"
26260 mv "$tmp/config.h" "$ac_file" \
26261 || as_fn_error "could not create $ac_file" "$LINENO" 5
26262 fi
26263 else
26264 $as_echo "/* $configure_input */" \
26265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26266 || as_fn_error "could not create -" "$LINENO" 5
26267 fi
26268 # Compute "$ac_file"'s index in $config_headers.
26269 _am_arg="$ac_file"
26270 _am_stamp_count=1
26271 for _am_header in $config_headers :; do
26272 case $_am_header in
26273 $_am_arg | $_am_arg:* )
26274 break ;;
26275 * )
26276 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26277 esac
26278 done
26279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26281 X"$_am_arg" : 'X\(//\)[^/]' \| \
26282 X"$_am_arg" : 'X\(//\)$' \| \
26283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26284 $as_echo X"$_am_arg" |
26285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26286 s//\1/
26287 q
26288 }
26289 /^X\(\/\/\)[^/].*/{
26290 s//\1/
26291 q
26292 }
26293 /^X\(\/\/\)$/{
26294 s//\1/
26295 q
26296 }
26297 /^X\(\/\).*/{
26298 s//\1/
26299 q
26300 }
26301 s/.*/./; q'`/stamp-h$_am_stamp_count
26302 ;;
26303 :L)
26304 #
26305 # CONFIG_LINK
26306 #
26307
26308 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26309 :
26310 else
26311 # Prefer the file from the source tree if names are identical.
26312 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26313 ac_source=$srcdir/$ac_source
26314 fi
26315
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26317 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26318
26319 if test ! -r "$ac_source"; then
26320 as_fn_error "$ac_source: file not found" "$LINENO" 5
26321 fi
26322 rm -f "$ac_file"
26323
26324 # Try a relative symlink, then a hard link, then a copy.
26325 case $srcdir in
26326 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26327 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26328 esac
26329 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26330 ln "$ac_source" "$ac_file" 2>/dev/null ||
26331 cp -p "$ac_source" "$ac_file" ||
26332 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26333 fi
26334 ;;
26335 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26336 $as_echo "$as_me: executing $ac_file commands" >&6;}
26337 ;;
26338 esac
26339
26340
26341 case $ac_file$ac_mode in
26342 "default-1":C)
26343 # Only add multilib support code if we just rebuilt the top-level
26344 # Makefile.
26345 case " $CONFIG_FILES " in
26346 *" Makefile "*)
26347 ac_file=Makefile . ${multi_basedir}/config-ml.in
26348 ;;
26349 esac ;;
26350 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26351 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26352 # are listed without --file. Let's play safe and only enable the eval
26353 # if we detect the quoting.
26354 case $CONFIG_FILES in
26355 *\'*) eval set x "$CONFIG_FILES" ;;
26356 *) set x $CONFIG_FILES ;;
26357 esac
26358 shift
26359 for mf
26360 do
26361 # Strip MF so we end up with the name of the file.
26362 mf=`echo "$mf" | sed -e 's/:.*$//'`
26363 # Check whether this is an Automake generated Makefile or not.
26364 # We used to match only the files named `Makefile.in', but
26365 # some people rename them; so instead we look at the file content.
26366 # Grep'ing the first line is not enough: some people post-process
26367 # each Makefile.in and add a new line on top of each file to say so.
26368 # Grep'ing the whole file is not good either: AIX grep has a line
26369 # limit of 2048, but all sed's we know have understand at least 4000.
26370 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26371 dirpart=`$as_dirname -- "$mf" ||
26372 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26373 X"$mf" : 'X\(//\)[^/]' \| \
26374 X"$mf" : 'X\(//\)$' \| \
26375 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26376 $as_echo X"$mf" |
26377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26378 s//\1/
26379 q
26380 }
26381 /^X\(\/\/\)[^/].*/{
26382 s//\1/
26383 q
26384 }
26385 /^X\(\/\/\)$/{
26386 s//\1/
26387 q
26388 }
26389 /^X\(\/\).*/{
26390 s//\1/
26391 q
26392 }
26393 s/.*/./; q'`
26394 else
26395 continue
26396 fi
26397 # Extract the definition of DEPDIR, am__include, and am__quote
26398 # from the Makefile without running `make'.
26399 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26400 test -z "$DEPDIR" && continue
26401 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26402 test -z "am__include" && continue
26403 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26404 # When using ansi2knr, U may be empty or an underscore; expand it
26405 U=`sed -n 's/^U = //p' < "$mf"`
26406 # Find all dependency output files, they are included files with
26407 # $(DEPDIR) in their names. We invoke sed twice because it is the
26408 # simplest approach to changing $(DEPDIR) to its actual value in the
26409 # expansion.
26410 for file in `sed -n "
26411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26413 # Make sure the directory exists.
26414 test -f "$dirpart/$file" && continue
26415 fdir=`$as_dirname -- "$file" ||
26416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26417 X"$file" : 'X\(//\)[^/]' \| \
26418 X"$file" : 'X\(//\)$' \| \
26419 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26420 $as_echo X"$file" |
26421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26422 s//\1/
26423 q
26424 }
26425 /^X\(\/\/\)[^/].*/{
26426 s//\1/
26427 q
26428 }
26429 /^X\(\/\/\)$/{
26430 s//\1/
26431 q
26432 }
26433 /^X\(\/\).*/{
26434 s//\1/
26435 q
26436 }
26437 s/.*/./; q'`
26438 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26439 # echo "creating $dirpart/$file"
26440 echo '# dummy' > "$dirpart/$file"
26441 done
26442 done
26443 }
26444 ;;
26445 "libtool":C)
26446
26447 # See if we are running on zsh, and set the options which allow our
26448 # commands through without removal of \ escapes.
26449 if test -n "${ZSH_VERSION+set}" ; then
26450 setopt NO_GLOB_SUBST
26451 fi
26452
26453 cfgfile="${ofile}T"
26454 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26455 $RM "$cfgfile"
26456
26457 cat <<_LT_EOF >> "$cfgfile"
26458 #! $SHELL
26459
26460 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26461 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26462 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26463 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26464 #
26465 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26466 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26467 # Written by Gordon Matzigkeit, 1996
26468 #
26469 # This file is part of GNU Libtool.
26470 #
26471 # GNU Libtool is free software; you can redistribute it and/or
26472 # modify it under the terms of the GNU General Public License as
26473 # published by the Free Software Foundation; either version 2 of
26474 # the License, or (at your option) any later version.
26475 #
26476 # As a special exception to the GNU General Public License,
26477 # if you distribute this file as part of a program or library that
26478 # is built using GNU Libtool, you may include this file under the
26479 # same distribution terms that you use for the rest of that program.
26480 #
26481 # GNU Libtool is distributed in the hope that it will be useful,
26482 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26484 # GNU General Public License for more details.
26485 #
26486 # You should have received a copy of the GNU General Public License
26487 # along with GNU Libtool; see the file COPYING. If not, a copy
26488 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26489 # obtained by writing to the Free Software Foundation, Inc.,
26490 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26491
26492
26493 # The names of the tagged configurations supported by this script.
26494 available_tags="CXX "
26495
26496 # ### BEGIN LIBTOOL CONFIG
26497
26498 # Whether or not to build static libraries.
26499 build_old_libs=$enable_static
26500
26501 # Which release of libtool.m4 was used?
26502 macro_version=$macro_version
26503 macro_revision=$macro_revision
26504
26505 # Whether or not to build shared libraries.
26506 build_libtool_libs=$enable_shared
26507
26508 # What type of objects to build.
26509 pic_mode=$pic_mode
26510
26511 # Whether or not to optimize for fast installation.
26512 fast_install=$enable_fast_install
26513
26514 # Shell to use when invoking shell scripts.
26515 SHELL=$lt_SHELL
26516
26517 # An echo program that protects backslashes.
26518 ECHO=$lt_ECHO
26519
26520 # The host system.
26521 host_alias=$host_alias
26522 host=$host
26523 host_os=$host_os
26524
26525 # The build system.
26526 build_alias=$build_alias
26527 build=$build
26528 build_os=$build_os
26529
26530 # A sed program that does not truncate output.
26531 SED=$lt_SED
26532
26533 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26534 Xsed="\$SED -e 1s/^X//"
26535
26536 # A grep program that handles long lines.
26537 GREP=$lt_GREP
26538
26539 # An ERE matcher.
26540 EGREP=$lt_EGREP
26541
26542 # A literal string matcher.
26543 FGREP=$lt_FGREP
26544
26545 # A BSD- or MS-compatible name lister.
26546 NM=$lt_NM
26547
26548 # Whether we need soft or hard links.
26549 LN_S=$lt_LN_S
26550
26551 # What is the maximum length of a command?
26552 max_cmd_len=$max_cmd_len
26553
26554 # Object file suffix (normally "o").
26555 objext=$ac_objext
26556
26557 # Executable file suffix (normally "").
26558 exeext=$exeext
26559
26560 # whether the shell understands "unset".
26561 lt_unset=$lt_unset
26562
26563 # turn spaces into newlines.
26564 SP2NL=$lt_lt_SP2NL
26565
26566 # turn newlines into spaces.
26567 NL2SP=$lt_lt_NL2SP
26568
26569 # An object symbol dumper.
26570 OBJDUMP=$lt_OBJDUMP
26571
26572 # Method to check whether dependent libraries are shared objects.
26573 deplibs_check_method=$lt_deplibs_check_method
26574
26575 # Command to use when deplibs_check_method == "file_magic".
26576 file_magic_cmd=$lt_file_magic_cmd
26577
26578 # The archiver.
26579 AR=$lt_AR
26580 AR_FLAGS=$lt_AR_FLAGS
26581
26582 # A symbol stripping program.
26583 STRIP=$lt_STRIP
26584
26585 # Commands used to install an old-style archive.
26586 RANLIB=$lt_RANLIB
26587 old_postinstall_cmds=$lt_old_postinstall_cmds
26588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26589
26590 # Whether to use a lock for old archive extraction.
26591 lock_old_archive_extraction=$lock_old_archive_extraction
26592
26593 # A C compiler.
26594 LTCC=$lt_CC
26595
26596 # LTCC compiler flags.
26597 LTCFLAGS=$lt_CFLAGS
26598
26599 # Take the output of nm and produce a listing of raw symbols and C names.
26600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26601
26602 # Transform the output of nm in a proper C declaration.
26603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26604
26605 # Transform the output of nm in a C name address pair.
26606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26607
26608 # Transform the output of nm in a C name address pair when lib prefix is needed.
26609 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26610
26611 # The name of the directory that contains temporary libtool files.
26612 objdir=$objdir
26613
26614 # Used to examine libraries when file_magic_cmd begins with "file".
26615 MAGIC_CMD=$MAGIC_CMD
26616
26617 # Must we lock files when doing compilation?
26618 need_locks=$lt_need_locks
26619
26620 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26621 DSYMUTIL=$lt_DSYMUTIL
26622
26623 # Tool to change global to local symbols on Mac OS X.
26624 NMEDIT=$lt_NMEDIT
26625
26626 # Tool to manipulate fat objects and archives on Mac OS X.
26627 LIPO=$lt_LIPO
26628
26629 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26630 OTOOL=$lt_OTOOL
26631
26632 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26633 OTOOL64=$lt_OTOOL64
26634
26635 # Old archive suffix (normally "a").
26636 libext=$libext
26637
26638 # Shared library suffix (normally ".so").
26639 shrext_cmds=$lt_shrext_cmds
26640
26641 # The commands to extract the exported symbol list from a shared archive.
26642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26643
26644 # Variables whose values should be saved in libtool wrapper scripts and
26645 # restored at link time.
26646 variables_saved_for_relink=$lt_variables_saved_for_relink
26647
26648 # Do we need the "lib" prefix for modules?
26649 need_lib_prefix=$need_lib_prefix
26650
26651 # Do we need a version for libraries?
26652 need_version=$need_version
26653
26654 # Library versioning type.
26655 version_type=$version_type
26656
26657 # Shared library runtime path variable.
26658 runpath_var=$runpath_var
26659
26660 # Shared library path variable.
26661 shlibpath_var=$shlibpath_var
26662
26663 # Is shlibpath searched before the hard-coded library search path?
26664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26665
26666 # Format of library name prefix.
26667 libname_spec=$lt_libname_spec
26668
26669 # List of archive names. First name is the real one, the rest are links.
26670 # The last name is the one that the linker finds with -lNAME
26671 library_names_spec=$lt_library_names_spec
26672
26673 # The coded name of the library, if different from the real name.
26674 soname_spec=$lt_soname_spec
26675
26676 # Permission mode override for installation of shared libraries.
26677 install_override_mode=$lt_install_override_mode
26678
26679 # Command to use after installation of a shared archive.
26680 postinstall_cmds=$lt_postinstall_cmds
26681
26682 # Command to use after uninstallation of a shared archive.
26683 postuninstall_cmds=$lt_postuninstall_cmds
26684
26685 # Commands used to finish a libtool library installation in a directory.
26686 finish_cmds=$lt_finish_cmds
26687
26688 # As "finish_cmds", except a single script fragment to be evaled but
26689 # not shown.
26690 finish_eval=$lt_finish_eval
26691
26692 # Whether we should hardcode library paths into libraries.
26693 hardcode_into_libs=$hardcode_into_libs
26694
26695 # Compile-time system search path for libraries.
26696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26697
26698 # Run-time system search path for libraries.
26699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26700
26701 # Whether dlopen is supported.
26702 dlopen_support=$enable_dlopen
26703
26704 # Whether dlopen of programs is supported.
26705 dlopen_self=$enable_dlopen_self
26706
26707 # Whether dlopen of statically linked programs is supported.
26708 dlopen_self_static=$enable_dlopen_self_static
26709
26710 # Commands to strip libraries.
26711 old_striplib=$lt_old_striplib
26712 striplib=$lt_striplib
26713
26714
26715 # The linker used to build libraries.
26716 LD=$lt_LD
26717
26718 # How to create reloadable object files.
26719 reload_flag=$lt_reload_flag
26720 reload_cmds=$lt_reload_cmds
26721
26722 # Commands used to build an old-style archive.
26723 old_archive_cmds=$lt_old_archive_cmds
26724
26725 # A language specific compiler.
26726 CC=$lt_compiler
26727
26728 # Is the compiler the GNU compiler?
26729 with_gcc=$GCC
26730
26731 # Compiler flag to turn off builtin functions.
26732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26733
26734 # How to pass a linker flag through the compiler.
26735 wl=$lt_lt_prog_compiler_wl
26736
26737 # Additional compiler flags for building library objects.
26738 pic_flag=$lt_lt_prog_compiler_pic
26739
26740 # Compiler flag to prevent dynamic linking.
26741 link_static_flag=$lt_lt_prog_compiler_static
26742
26743 # Does compiler simultaneously support -c and -o options?
26744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26745
26746 # Whether or not to add -lc for building shared libraries.
26747 build_libtool_need_lc=$archive_cmds_need_lc
26748
26749 # Whether or not to disallow shared libs when runtime libs are static.
26750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26751
26752 # Compiler flag to allow reflexive dlopens.
26753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26754
26755 # Compiler flag to generate shared objects directly from archives.
26756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26757
26758 # Whether the compiler copes with passing no objects directly.
26759 compiler_needs_object=$lt_compiler_needs_object
26760
26761 # Create an old-style archive from a shared archive.
26762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26763
26764 # Create a temporary old-style archive to link instead of a shared archive.
26765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26766
26767 # Commands used to build a shared archive.
26768 archive_cmds=$lt_archive_cmds
26769 archive_expsym_cmds=$lt_archive_expsym_cmds
26770
26771 # Commands used to build a loadable module if different from building
26772 # a shared archive.
26773 module_cmds=$lt_module_cmds
26774 module_expsym_cmds=$lt_module_expsym_cmds
26775
26776 # Whether we are building with GNU ld or not.
26777 with_gnu_ld=$lt_with_gnu_ld
26778
26779 # Flag that allows shared libraries with undefined symbols to be built.
26780 allow_undefined_flag=$lt_allow_undefined_flag
26781
26782 # Flag that enforces no undefined symbols.
26783 no_undefined_flag=$lt_no_undefined_flag
26784
26785 # Flag to hardcode \$libdir into a binary during linking.
26786 # This must work even if \$libdir does not exist
26787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26788
26789 # If ld is used when linking, flag to hardcode \$libdir into a binary
26790 # during linking. This must work even if \$libdir does not exist.
26791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26792
26793 # Whether we need a single "-rpath" flag with a separated argument.
26794 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26795
26796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26797 # DIR into the resulting binary.
26798 hardcode_direct=$hardcode_direct
26799
26800 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26801 # DIR into the resulting binary and the resulting library dependency is
26802 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26803 # library is relocated.
26804 hardcode_direct_absolute=$hardcode_direct_absolute
26805
26806 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26807 # into the resulting binary.
26808 hardcode_minus_L=$hardcode_minus_L
26809
26810 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26811 # into the resulting binary.
26812 hardcode_shlibpath_var=$hardcode_shlibpath_var
26813
26814 # Set to "yes" if building a shared library automatically hardcodes DIR
26815 # into the library and all subsequent libraries and executables linked
26816 # against it.
26817 hardcode_automatic=$hardcode_automatic
26818
26819 # Set to yes if linker adds runtime paths of dependent libraries
26820 # to runtime path list.
26821 inherit_rpath=$inherit_rpath
26822
26823 # Whether libtool must link a program against all its dependency libraries.
26824 link_all_deplibs=$link_all_deplibs
26825
26826 # Fix the shell variable \$srcfile for the compiler.
26827 fix_srcfile_path=$lt_fix_srcfile_path
26828
26829 # Set to "yes" if exported symbols are required.
26830 always_export_symbols=$always_export_symbols
26831
26832 # The commands to list exported symbols.
26833 export_symbols_cmds=$lt_export_symbols_cmds
26834
26835 # Symbols that should not be listed in the preloaded symbols.
26836 exclude_expsyms=$lt_exclude_expsyms
26837
26838 # Symbols that must always be exported.
26839 include_expsyms=$lt_include_expsyms
26840
26841 # Commands necessary for linking programs (against libraries) with templates.
26842 prelink_cmds=$lt_prelink_cmds
26843
26844 # Specify filename containing input files.
26845 file_list_spec=$lt_file_list_spec
26846
26847 # How to hardcode a shared library path into an executable.
26848 hardcode_action=$hardcode_action
26849
26850 # The directories searched by this compiler when creating a shared library.
26851 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26852
26853 # Dependencies to place before and after the objects being linked to
26854 # create a shared library.
26855 predep_objects=$lt_predep_objects
26856 postdep_objects=$lt_postdep_objects
26857 predeps=$lt_predeps
26858 postdeps=$lt_postdeps
26859
26860 # The library search path used internally by the compiler when linking
26861 # a shared library.
26862 compiler_lib_search_path=$lt_compiler_lib_search_path
26863
26864 # ### END LIBTOOL CONFIG
26865
26866 _LT_EOF
26867
26868 case $host_os in
26869 aix3*)
26870 cat <<\_LT_EOF >> "$cfgfile"
26871 # AIX sometimes has problems with the GCC collect2 program. For some
26872 # reason, if we set the COLLECT_NAMES environment variable, the problems
26873 # vanish in a puff of smoke.
26874 if test "X${COLLECT_NAMES+set}" != Xset; then
26875 COLLECT_NAMES=
26876 export COLLECT_NAMES
26877 fi
26878 _LT_EOF
26879 ;;
26880 esac
26881
26882
26883 ltmain="$ac_aux_dir/ltmain.sh"
26884
26885
26886 # We use sed instead of cat because bash on DJGPP gets confused if
26887 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26888 # text mode, it properly converts lines to CR/LF. This bash problem
26889 # is reportedly fixed, but why not run on old versions too?
26890 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26891 || (rm -f "$cfgfile"; exit 1)
26892
26893 case $xsi_shell in
26894 yes)
26895 cat << \_LT_EOF >> "$cfgfile"
26896
26897 # func_dirname file append nondir_replacement
26898 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26899 # otherwise set result to NONDIR_REPLACEMENT.
26900 func_dirname ()
26901 {
26902 case ${1} in
26903 */*) func_dirname_result="${1%/*}${2}" ;;
26904 * ) func_dirname_result="${3}" ;;
26905 esac
26906 }
26907
26908 # func_basename file
26909 func_basename ()
26910 {
26911 func_basename_result="${1##*/}"
26912 }
26913
26914 # func_dirname_and_basename file append nondir_replacement
26915 # perform func_basename and func_dirname in a single function
26916 # call:
26917 # dirname: Compute the dirname of FILE. If nonempty,
26918 # add APPEND to the result, otherwise set result
26919 # to NONDIR_REPLACEMENT.
26920 # value returned in "$func_dirname_result"
26921 # basename: Compute filename of FILE.
26922 # value retuned in "$func_basename_result"
26923 # Implementation must be kept synchronized with func_dirname
26924 # and func_basename. For efficiency, we do not delegate to
26925 # those functions but instead duplicate the functionality here.
26926 func_dirname_and_basename ()
26927 {
26928 case ${1} in
26929 */*) func_dirname_result="${1%/*}${2}" ;;
26930 * ) func_dirname_result="${3}" ;;
26931 esac
26932 func_basename_result="${1##*/}"
26933 }
26934
26935 # func_stripname prefix suffix name
26936 # strip PREFIX and SUFFIX off of NAME.
26937 # PREFIX and SUFFIX must not contain globbing or regex special
26938 # characters, hashes, percent signs, but SUFFIX may contain a leading
26939 # dot (in which case that matches only a dot).
26940 func_stripname ()
26941 {
26942 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26943 # positional parameters, so assign one to ordinary parameter first.
26944 func_stripname_result=${3}
26945 func_stripname_result=${func_stripname_result#"${1}"}
26946 func_stripname_result=${func_stripname_result%"${2}"}
26947 }
26948
26949 # func_opt_split
26950 func_opt_split ()
26951 {
26952 func_opt_split_opt=${1%%=*}
26953 func_opt_split_arg=${1#*=}
26954 }
26955
26956 # func_lo2o object
26957 func_lo2o ()
26958 {
26959 case ${1} in
26960 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26961 *) func_lo2o_result=${1} ;;
26962 esac
26963 }
26964
26965 # func_xform libobj-or-source
26966 func_xform ()
26967 {
26968 func_xform_result=${1%.*}.lo
26969 }
26970
26971 # func_arith arithmetic-term...
26972 func_arith ()
26973 {
26974 func_arith_result=$(( $* ))
26975 }
26976
26977 # func_len string
26978 # STRING may not start with a hyphen.
26979 func_len ()
26980 {
26981 func_len_result=${#1}
26982 }
26983
26984 _LT_EOF
26985 ;;
26986 *) # Bourne compatible functions.
26987 cat << \_LT_EOF >> "$cfgfile"
26988
26989 # func_dirname file append nondir_replacement
26990 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26991 # otherwise set result to NONDIR_REPLACEMENT.
26992 func_dirname ()
26993 {
26994 # Extract subdirectory from the argument.
26995 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
26996 if test "X$func_dirname_result" = "X${1}"; then
26997 func_dirname_result="${3}"
26998 else
26999 func_dirname_result="$func_dirname_result${2}"
27000 fi
27001 }
27002
27003 # func_basename file
27004 func_basename ()
27005 {
27006 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27007 }
27008
27009
27010 # func_stripname prefix suffix name
27011 # strip PREFIX and SUFFIX off of NAME.
27012 # PREFIX and SUFFIX must not contain globbing or regex special
27013 # characters, hashes, percent signs, but SUFFIX may contain a leading
27014 # dot (in which case that matches only a dot).
27015 # func_strip_suffix prefix name
27016 func_stripname ()
27017 {
27018 case ${2} in
27019 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27020 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27021 esac
27022 }
27023
27024 # sed scripts:
27025 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27026 my_sed_long_arg='1s/^-[^=]*=//'
27027
27028 # func_opt_split
27029 func_opt_split ()
27030 {
27031 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27032 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27033 }
27034
27035 # func_lo2o object
27036 func_lo2o ()
27037 {
27038 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27039 }
27040
27041 # func_xform libobj-or-source
27042 func_xform ()
27043 {
27044 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27045 }
27046
27047 # func_arith arithmetic-term...
27048 func_arith ()
27049 {
27050 func_arith_result=`expr "$@"`
27051 }
27052
27053 # func_len string
27054 # STRING may not start with a hyphen.
27055 func_len ()
27056 {
27057 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27058 }
27059
27060 _LT_EOF
27061 esac
27062
27063 case $lt_shell_append in
27064 yes)
27065 cat << \_LT_EOF >> "$cfgfile"
27066
27067 # func_append var value
27068 # Append VALUE to the end of shell variable VAR.
27069 func_append ()
27070 {
27071 eval "$1+=\$2"
27072 }
27073 _LT_EOF
27074 ;;
27075 *)
27076 cat << \_LT_EOF >> "$cfgfile"
27077
27078 # func_append var value
27079 # Append VALUE to the end of shell variable VAR.
27080 func_append ()
27081 {
27082 eval "$1=\$$1\$2"
27083 }
27084
27085 _LT_EOF
27086 ;;
27087 esac
27088
27089
27090 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27091 || (rm -f "$cfgfile"; exit 1)
27092
27093 mv -f "$cfgfile" "$ofile" ||
27094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27095 chmod +x "$ofile"
27096
27097
27098 cat <<_LT_EOF >> "$ofile"
27099
27100 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27101
27102 # The linker used to build libraries.
27103 LD=$lt_LD_CXX
27104
27105 # How to create reloadable object files.
27106 reload_flag=$lt_reload_flag_CXX
27107 reload_cmds=$lt_reload_cmds_CXX
27108
27109 # Commands used to build an old-style archive.
27110 old_archive_cmds=$lt_old_archive_cmds_CXX
27111
27112 # A language specific compiler.
27113 CC=$lt_compiler_CXX
27114
27115 # Is the compiler the GNU compiler?
27116 with_gcc=$GCC_CXX
27117
27118 # Compiler flag to turn off builtin functions.
27119 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27120
27121 # How to pass a linker flag through the compiler.
27122 wl=$lt_lt_prog_compiler_wl_CXX
27123
27124 # Additional compiler flags for building library objects.
27125 pic_flag=$lt_lt_prog_compiler_pic_CXX
27126
27127 # Compiler flag to prevent dynamic linking.
27128 link_static_flag=$lt_lt_prog_compiler_static_CXX
27129
27130 # Does compiler simultaneously support -c and -o options?
27131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27132
27133 # Whether or not to add -lc for building shared libraries.
27134 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27135
27136 # Whether or not to disallow shared libs when runtime libs are static.
27137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27138
27139 # Compiler flag to allow reflexive dlopens.
27140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27141
27142 # Compiler flag to generate shared objects directly from archives.
27143 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27144
27145 # Whether the compiler copes with passing no objects directly.
27146 compiler_needs_object=$lt_compiler_needs_object_CXX
27147
27148 # Create an old-style archive from a shared archive.
27149 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27150
27151 # Create a temporary old-style archive to link instead of a shared archive.
27152 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27153
27154 # Commands used to build a shared archive.
27155 archive_cmds=$lt_archive_cmds_CXX
27156 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27157
27158 # Commands used to build a loadable module if different from building
27159 # a shared archive.
27160 module_cmds=$lt_module_cmds_CXX
27161 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27162
27163 # Whether we are building with GNU ld or not.
27164 with_gnu_ld=$lt_with_gnu_ld_CXX
27165
27166 # Flag that allows shared libraries with undefined symbols to be built.
27167 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27168
27169 # Flag that enforces no undefined symbols.
27170 no_undefined_flag=$lt_no_undefined_flag_CXX
27171
27172 # Flag to hardcode \$libdir into a binary during linking.
27173 # This must work even if \$libdir does not exist
27174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27175
27176 # If ld is used when linking, flag to hardcode \$libdir into a binary
27177 # during linking. This must work even if \$libdir does not exist.
27178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27179
27180 # Whether we need a single "-rpath" flag with a separated argument.
27181 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27182
27183 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27184 # DIR into the resulting binary.
27185 hardcode_direct=$hardcode_direct_CXX
27186
27187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27188 # DIR into the resulting binary and the resulting library dependency is
27189 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27190 # library is relocated.
27191 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27192
27193 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27194 # into the resulting binary.
27195 hardcode_minus_L=$hardcode_minus_L_CXX
27196
27197 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27198 # into the resulting binary.
27199 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27200
27201 # Set to "yes" if building a shared library automatically hardcodes DIR
27202 # into the library and all subsequent libraries and executables linked
27203 # against it.
27204 hardcode_automatic=$hardcode_automatic_CXX
27205
27206 # Set to yes if linker adds runtime paths of dependent libraries
27207 # to runtime path list.
27208 inherit_rpath=$inherit_rpath_CXX
27209
27210 # Whether libtool must link a program against all its dependency libraries.
27211 link_all_deplibs=$link_all_deplibs_CXX
27212
27213 # Fix the shell variable \$srcfile for the compiler.
27214 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27215
27216 # Set to "yes" if exported symbols are required.
27217 always_export_symbols=$always_export_symbols_CXX
27218
27219 # The commands to list exported symbols.
27220 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27221
27222 # Symbols that should not be listed in the preloaded symbols.
27223 exclude_expsyms=$lt_exclude_expsyms_CXX
27224
27225 # Symbols that must always be exported.
27226 include_expsyms=$lt_include_expsyms_CXX
27227
27228 # Commands necessary for linking programs (against libraries) with templates.
27229 prelink_cmds=$lt_prelink_cmds_CXX
27230
27231 # Specify filename containing input files.
27232 file_list_spec=$lt_file_list_spec_CXX
27233
27234 # How to hardcode a shared library path into an executable.
27235 hardcode_action=$hardcode_action_CXX
27236
27237 # The directories searched by this compiler when creating a shared library.
27238 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27239
27240 # Dependencies to place before and after the objects being linked to
27241 # create a shared library.
27242 predep_objects=$lt_predep_objects_CXX
27243 postdep_objects=$lt_postdep_objects_CXX
27244 predeps=$lt_predeps_CXX
27245 postdeps=$lt_postdeps_CXX
27246
27247 # The library search path used internally by the compiler when linking
27248 # a shared library.
27249 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27250
27251 # ### END LIBTOOL TAG CONFIG: CXX
27252 _LT_EOF
27253
27254 ;;
27255 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27256 "$ac_stdint_h":C)
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27258 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27259 ac_stdint=$tmp/_stdint.h
27260
27261 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27262 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27263 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27264 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27265 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27266 if test "_$ac_cv_header_stdint_t" != "_" ; then
27267 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27268 echo "#include <stdint.h>" >>$ac_stdint
27269 echo "#endif" >>$ac_stdint
27270 echo "#endif" >>$ac_stdint
27271 else
27272
27273 cat >>$ac_stdint <<STDINT_EOF
27274
27275 /* ................... shortcircuit part ........................... */
27276
27277 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27278 #include <stdint.h>
27279 #else
27280 #include <stddef.h>
27281
27282 /* .................... configured part ............................ */
27283
27284 STDINT_EOF
27285
27286 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27287 if test "_$ac_cv_header_stdint_x" != "_" ; then
27288 ac_header="$ac_cv_header_stdint_x"
27289 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27290 else
27291 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27292 fi
27293
27294 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27295 if test "_$ac_cv_header_stdint_o" != "_" ; then
27296 ac_header="$ac_cv_header_stdint_o"
27297 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27298 else
27299 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27300 fi
27301
27302 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27303 if test "_$ac_cv_header_stdint_u" != "_" ; then
27304 ac_header="$ac_cv_header_stdint_u"
27305 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27306 else
27307 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27308 fi
27309
27310 echo "" >>$ac_stdint
27311
27312 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27313 echo "#include <$ac_header>" >>$ac_stdint
27314 echo "" >>$ac_stdint
27315 fi fi
27316
27317 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27318 if test "$ac_cv_type_uint64_t" = "yes" ; then
27319 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27320 else
27321 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27322 fi
27323 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27324 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27325 else
27326 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27327 fi
27328 echo "" >>$ac_stdint
27329
27330 echo "/* which type model has been detected */" >>$ac_stdint
27331 if test "_$ac_cv_char_data_model" != "_" ; then
27332 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27333 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27334 else
27335 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27336 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27337 fi
27338 echo "" >>$ac_stdint
27339
27340 echo "/* whether int_least types were detected */" >>$ac_stdint
27341 if test "$ac_cv_type_int_least32_t" = "yes"; then
27342 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27343 else
27344 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27345 fi
27346 echo "/* whether int_fast types were detected */" >>$ac_stdint
27347 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27348 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27349 else
27350 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27351 fi
27352 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27353 if test "$ac_cv_type_intmax_t" = "yes"; then
27354 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27355 else
27356 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27357 fi
27358 echo "" >>$ac_stdint
27359
27360 cat >>$ac_stdint <<STDINT_EOF
27361 /* .................... detections part ............................ */
27362
27363 /* whether we need to define bitspecific types from compiler base types */
27364 #ifndef _STDINT_HEADER_INTPTR
27365 #ifndef _STDINT_HEADER_UINT32
27366 #ifndef _STDINT_HEADER_U_INT32
27367 #define _STDINT_NEED_INT_MODEL_T
27368 #else
27369 #define _STDINT_HAVE_U_INT_TYPES
27370 #endif
27371 #endif
27372 #endif
27373
27374 #ifdef _STDINT_HAVE_U_INT_TYPES
27375 #undef _STDINT_NEED_INT_MODEL_T
27376 #endif
27377
27378 #ifdef _STDINT_CHAR_MODEL
27379 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27380 #ifndef _STDINT_BYTE_MODEL
27381 #define _STDINT_BYTE_MODEL 12
27382 #endif
27383 #endif
27384 #endif
27385
27386 #ifndef _STDINT_HAVE_INT_LEAST32_T
27387 #define _STDINT_NEED_INT_LEAST_T
27388 #endif
27389
27390 #ifndef _STDINT_HAVE_INT_FAST32_T
27391 #define _STDINT_NEED_INT_FAST_T
27392 #endif
27393
27394 #ifndef _STDINT_HEADER_INTPTR
27395 #define _STDINT_NEED_INTPTR_T
27396 #ifndef _STDINT_HAVE_INTMAX_T
27397 #define _STDINT_NEED_INTMAX_T
27398 #endif
27399 #endif
27400
27401
27402 /* .................... definition part ............................ */
27403
27404 /* some system headers have good uint64_t */
27405 #ifndef _HAVE_UINT64_T
27406 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27407 #define _HAVE_UINT64_T
27408 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27409 #define _HAVE_UINT64_T
27410 typedef u_int64_t uint64_t;
27411 #endif
27412 #endif
27413
27414 #ifndef _HAVE_UINT64_T
27415 /* .. here are some common heuristics using compiler runtime specifics */
27416 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27417 #define _HAVE_UINT64_T
27418 #define _HAVE_LONGLONG_UINT64_T
27419 typedef long long int64_t;
27420 typedef unsigned long long uint64_t;
27421
27422 #elif !defined __STRICT_ANSI__
27423 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27424 #define _HAVE_UINT64_T
27425 typedef __int64 int64_t;
27426 typedef unsigned __int64 uint64_t;
27427
27428 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27429 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27430 #if !defined _NO_LONGLONG
27431 #define _HAVE_UINT64_T
27432 #define _HAVE_LONGLONG_UINT64_T
27433 typedef long long int64_t;
27434 typedef unsigned long long uint64_t;
27435 #endif
27436
27437 #elif defined __alpha || (defined __mips && defined _ABIN32)
27438 #if !defined _NO_LONGLONG
27439 typedef long int64_t;
27440 typedef unsigned long uint64_t;
27441 #endif
27442 /* compiler/cpu type to define int64_t */
27443 #endif
27444 #endif
27445 #endif
27446
27447 #if defined _STDINT_HAVE_U_INT_TYPES
27448 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27449 typedef u_int8_t uint8_t;
27450 typedef u_int16_t uint16_t;
27451 typedef u_int32_t uint32_t;
27452
27453 /* glibc compatibility */
27454 #ifndef __int8_t_defined
27455 #define __int8_t_defined
27456 #endif
27457 #endif
27458
27459 #ifdef _STDINT_NEED_INT_MODEL_T
27460 /* we must guess all the basic types. Apart from byte-adressable system, */
27461 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27462 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27463
27464
27465 #if defined _STDINT_BYTE_MODEL
27466 #if _STDINT_LONG_MODEL+0 == 242
27467 /* 2:4:2 = IP16 = a normal 16-bit system */
27468 typedef unsigned char uint8_t;
27469 typedef unsigned short uint16_t;
27470 typedef unsigned long uint32_t;
27471 #ifndef __int8_t_defined
27472 #define __int8_t_defined
27473 typedef char int8_t;
27474 typedef short int16_t;
27475 typedef long int32_t;
27476 #endif
27477 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27478 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27479 /* 4:4:4 = ILP32 = a normal 32-bit system */
27480 typedef unsigned char uint8_t;
27481 typedef unsigned short uint16_t;
27482 typedef unsigned int uint32_t;
27483 #ifndef __int8_t_defined
27484 #define __int8_t_defined
27485 typedef char int8_t;
27486 typedef short int16_t;
27487 typedef int int32_t;
27488 #endif
27489 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27490 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27491 /* 4:8:8 = LP64 = a normal 64-bit system */
27492 typedef unsigned char uint8_t;
27493 typedef unsigned short uint16_t;
27494 typedef unsigned int uint32_t;
27495 #ifndef __int8_t_defined
27496 #define __int8_t_defined
27497 typedef char int8_t;
27498 typedef short int16_t;
27499 typedef int int32_t;
27500 #endif
27501 /* this system has a "long" of 64bit */
27502 #ifndef _HAVE_UINT64_T
27503 #define _HAVE_UINT64_T
27504 typedef unsigned long uint64_t;
27505 typedef long int64_t;
27506 #endif
27507 #elif _STDINT_LONG_MODEL+0 == 448
27508 /* LLP64 a 64-bit system derived from a 32-bit system */
27509 typedef unsigned char uint8_t;
27510 typedef unsigned short uint16_t;
27511 typedef unsigned int uint32_t;
27512 #ifndef __int8_t_defined
27513 #define __int8_t_defined
27514 typedef char int8_t;
27515 typedef short int16_t;
27516 typedef int int32_t;
27517 #endif
27518 /* assuming the system has a "long long" */
27519 #ifndef _HAVE_UINT64_T
27520 #define _HAVE_UINT64_T
27521 #define _HAVE_LONGLONG_UINT64_T
27522 typedef unsigned long long uint64_t;
27523 typedef long long int64_t;
27524 #endif
27525 #else
27526 #define _STDINT_NO_INT32_T
27527 #endif
27528 #else
27529 #define _STDINT_NO_INT8_T
27530 #define _STDINT_NO_INT32_T
27531 #endif
27532 #endif
27533
27534 /*
27535 * quote from SunOS-5.8 sys/inttypes.h:
27536 * Use at your own risk. As of February 1996, the committee is squarely
27537 * behind the fixed sized types; the "least" and "fast" types are still being
27538 * discussed. The probability that the "fast" types may be removed before
27539 * the standard is finalized is high enough that they are not currently
27540 * implemented.
27541 */
27542
27543 #if defined _STDINT_NEED_INT_LEAST_T
27544 typedef int8_t int_least8_t;
27545 typedef int16_t int_least16_t;
27546 typedef int32_t int_least32_t;
27547 #ifdef _HAVE_UINT64_T
27548 typedef int64_t int_least64_t;
27549 #endif
27550
27551 typedef uint8_t uint_least8_t;
27552 typedef uint16_t uint_least16_t;
27553 typedef uint32_t uint_least32_t;
27554 #ifdef _HAVE_UINT64_T
27555 typedef uint64_t uint_least64_t;
27556 #endif
27557 /* least types */
27558 #endif
27559
27560 #if defined _STDINT_NEED_INT_FAST_T
27561 typedef int8_t int_fast8_t;
27562 typedef int int_fast16_t;
27563 typedef int32_t int_fast32_t;
27564 #ifdef _HAVE_UINT64_T
27565 typedef int64_t int_fast64_t;
27566 #endif
27567
27568 typedef uint8_t uint_fast8_t;
27569 typedef unsigned uint_fast16_t;
27570 typedef uint32_t uint_fast32_t;
27571 #ifdef _HAVE_UINT64_T
27572 typedef uint64_t uint_fast64_t;
27573 #endif
27574 /* fast types */
27575 #endif
27576
27577 #ifdef _STDINT_NEED_INTMAX_T
27578 #ifdef _HAVE_UINT64_T
27579 typedef int64_t intmax_t;
27580 typedef uint64_t uintmax_t;
27581 #else
27582 typedef long intmax_t;
27583 typedef unsigned long uintmax_t;
27584 #endif
27585 #endif
27586
27587 #ifdef _STDINT_NEED_INTPTR_T
27588 #ifndef __intptr_t_defined
27589 #define __intptr_t_defined
27590 /* we encourage using "long" to store pointer values, never use "int" ! */
27591 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27592 typedef unsigned int uintptr_t;
27593 typedef int intptr_t;
27594 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27595 typedef unsigned long uintptr_t;
27596 typedef long intptr_t;
27597 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27598 typedef uint64_t uintptr_t;
27599 typedef int64_t intptr_t;
27600 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27601 typedef unsigned long uintptr_t;
27602 typedef long intptr_t;
27603 #endif
27604 #endif
27605 #endif
27606
27607 /* The ISO C99 standard specifies that in C++ implementations these
27608 should only be defined if explicitly requested. */
27609 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27610 #ifndef UINT32_C
27611
27612 /* Signed. */
27613 # define INT8_C(c) c
27614 # define INT16_C(c) c
27615 # define INT32_C(c) c
27616 # ifdef _HAVE_LONGLONG_UINT64_T
27617 # define INT64_C(c) c ## L
27618 # else
27619 # define INT64_C(c) c ## LL
27620 # endif
27621
27622 /* Unsigned. */
27623 # define UINT8_C(c) c ## U
27624 # define UINT16_C(c) c ## U
27625 # define UINT32_C(c) c ## U
27626 # ifdef _HAVE_LONGLONG_UINT64_T
27627 # define UINT64_C(c) c ## UL
27628 # else
27629 # define UINT64_C(c) c ## ULL
27630 # endif
27631
27632 /* Maximal type. */
27633 # ifdef _HAVE_LONGLONG_UINT64_T
27634 # define INTMAX_C(c) c ## L
27635 # define UINTMAX_C(c) c ## UL
27636 # else
27637 # define INTMAX_C(c) c ## LL
27638 # define UINTMAX_C(c) c ## ULL
27639 # endif
27640
27641 /* literalnumbers */
27642 #endif
27643 #endif
27644
27645 /* These limits are merily those of a two complement byte-oriented system */
27646
27647 /* Minimum of signed integral types. */
27648 #ifndef INT8_MIN
27649 # define INT8_MIN (-128)
27650 #endif
27651 #ifndef INT16_MIN
27652 # define INT16_MIN (-32767-1)
27653 #endif
27654 #ifndef INT32_MIN
27655 # define INT32_MIN (-2147483647-1)
27656 #endif
27657 #ifndef INT64_MIN
27658 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27659 #endif
27660
27661 /* Maximum of signed integral types. */
27662 #ifndef INT8_MAX
27663 # define INT8_MAX (127)
27664 #endif
27665 #ifndef INT16_MAX
27666 # define INT16_MAX (32767)
27667 #endif
27668 #ifndef INT32_MAX
27669 # define INT32_MAX (2147483647)
27670 #endif
27671 #ifndef INT64_MAX
27672 # define INT64_MAX (__INT64_C(9223372036854775807))
27673 #endif
27674
27675 /* Maximum of unsigned integral types. */
27676 #ifndef UINT8_MAX
27677 # define UINT8_MAX (255)
27678 #endif
27679 #ifndef UINT16_MAX
27680 # define UINT16_MAX (65535)
27681 #endif
27682 #ifndef UINT32_MAX
27683 # define UINT32_MAX (4294967295U)
27684 #endif
27685 #ifndef UINT64_MAX
27686 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27687 #endif
27688
27689 /* Minimum of signed integral types having a minimum size. */
27690 # define INT_LEAST8_MIN INT8_MIN
27691 # define INT_LEAST16_MIN INT16_MIN
27692 # define INT_LEAST32_MIN INT32_MIN
27693 # define INT_LEAST64_MIN INT64_MIN
27694 /* Maximum of signed integral types having a minimum size. */
27695 # define INT_LEAST8_MAX INT8_MAX
27696 # define INT_LEAST16_MAX INT16_MAX
27697 # define INT_LEAST32_MAX INT32_MAX
27698 # define INT_LEAST64_MAX INT64_MAX
27699
27700 /* Maximum of unsigned integral types having a minimum size. */
27701 # define UINT_LEAST8_MAX UINT8_MAX
27702 # define UINT_LEAST16_MAX UINT16_MAX
27703 # define UINT_LEAST32_MAX UINT32_MAX
27704 # define UINT_LEAST64_MAX UINT64_MAX
27705
27706 /* shortcircuit*/
27707 #endif
27708 /* once */
27709 #endif
27710 #endif
27711 STDINT_EOF
27712 fi
27713 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27715 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27716 else
27717 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27718 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27719 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27720 X"$ac_stdint_h" : 'X\(//\)$' \| \
27721 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27722 $as_echo X"$ac_stdint_h" |
27723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27724 s//\1/
27725 q
27726 }
27727 /^X\(\/\/\)[^/].*/{
27728 s//\1/
27729 q
27730 }
27731 /^X\(\/\/\)$/{
27732 s//\1/
27733 q
27734 }
27735 /^X\(\/\).*/{
27736 s//\1/
27737 q
27738 }
27739 s/.*/./; q'`
27740 as_dir="$ac_dir"; as_fn_mkdir_p
27741 rm -f $ac_stdint_h
27742 mv $ac_stdint $ac_stdint_h
27743 fi
27744 ;;
27745 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27746 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27747 "gkeytool":C) chmod 755 tools/gkeytool ;;
27748 "gjar":C) chmod 755 tools/gjar ;;
27749 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27750 "gserialver":C) chmod 755 tools/gserialver ;;
27751 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27752 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27753 "gorbd":C) chmod 755 tools/gorbd ;;
27754 "grmid":C) chmod 755 tools/grmid ;;
27755 "grmic":C) chmod 755 tools/grmic ;;
27756 "gjavah":C) chmod 755 tools/gjavah ;;
27757 "gjdoc":C) chmod 755 tools/gjdoc ;;
27758 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27759 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27760
27761 esac
27762 done # for ac_tag
27763
27764
27765 as_fn_exit 0
27766 _ACEOF
27767 ac_clean_files=$ac_clean_files_save
27768
27769 test $ac_write_fail = 0 ||
27770 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27771
27772
27773 # configure is writing to config.log, and then calls config.status.
27774 # config.status does its own redirection, appending to config.log.
27775 # Unfortunately, on DOS this fails, as config.log is still kept open
27776 # by configure, so config.status won't be able to write to it; its
27777 # output is simply discarded. So we exec the FD to /dev/null,
27778 # effectively closing config.log, so it can be properly (re)opened and
27779 # appended to by config.status. When coming back to configure, we
27780 # need to make the FD available again.
27781 if test "$no_create" != yes; then
27782 ac_cs_success=:
27783 ac_config_status_args=
27784 test "$silent" = yes &&
27785 ac_config_status_args="$ac_config_status_args --quiet"
27786 exec 5>/dev/null
27787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27788 exec 5>>config.log
27789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27790 # would make configure fail if this is the last instruction.
27791 $ac_cs_success || as_fn_exit $?
27792 fi
27793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27796 fi
27797
27798
27799 # Create standard.omit based on decisions we just made.
27800 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27801 if test x$use_escher != xtrue; then
27802 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27803 fi
27804
27805 if test "x${COMPILE_PLUGIN}" = "xyes" ; then
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&5
27807 $as_echo "$as_me: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&2;}
27808 fi