Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ace 1.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ace'
589 PACKAGE_TARNAME='ace'
590 PACKAGE_VERSION='1.4'
591 PACKAGE_STRING='ace 1.4'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="lib/cards.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 PDA
638 PNG_LIBS
639 PNG_CFLAGS
640 Z_LIBS
641 Z_CFLAGS
642 X_EXTRA_LIBS
643 X_LIBS
644 X_PRE_LIBS
645 X_CFLAGS
646 XMKMF
647 BUILD_CC
648 CPP
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 EGREP
667 GREP
668 SED
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 with_cross
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 enable_dependency_tracking
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 with_x
774 with_z
775 with_png
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 XMKMF'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures ace 1.4 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/ace]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 X features:
1390 --x-includes=DIR X include files are in DIR
1391 --x-libraries=DIR X library files are in DIR
1392
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of ace 1.4:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-cross=TARGET select cross development
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1430 --with-x use the X Window System
1431 --with-z=DIR location of the ZLIB library
1432 --with-png=DIR location of the PNG library
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 XMKMF Path to xmkmf, Makefile generator for X Window System
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to the package provider.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510 cat <<\_ACEOF
1511 ace configure 1.4
1512 generated by GNU Autoconf 2.69
1513
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518 exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1545 fi
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552 else
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556 ac_retval=1
1557 fi
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1620 else
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 eval "$3=yes"
1628 else
1629 eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=$ac_status
1712 fi
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below.
1738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739 <limits.h> exists even on freestanding compilers. */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777 conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1789 # the include files in INCLUDES and setting the cache variable VAR
1790 # accordingly.
1791 ac_fn_c_check_header_mongrel ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if eval \${$3+:} false; then :
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 else
1804 # Is the header compilable?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1806 $as_echo_n "checking $2 usability... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 ac_header_compiler=yes
1814 else
1815 ac_header_compiler=no
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1819 $as_echo "$ac_header_compiler" >&6; }
1820
1821 # Is the header present?
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1823 $as_echo_n "checking $2 presence... " >&6; }
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_cpp "$LINENO"; then :
1829 ac_header_preproc=yes
1830 else
1831 ac_header_preproc=no
1832 fi
1833 rm -f conftest.err conftest.i conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1835 $as_echo "$ac_header_preproc" >&6; }
1836
1837 # So? What about this header?
1838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 yes:no: )
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1841 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 ;;
1845 no:yes:* )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1847 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1849 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1851 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1853 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ;;
1857 esac
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 eval "$3=\$ac_header_compiler"
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 fi
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_header_mongrel
1872 cat >config.log <<_ACEOF
1873 This file contains any messages produced by compilers while
1874 running configure, to aid debugging if configure makes a mistake.
1875
1876 It was created by ace $as_me 1.4, which was
1877 generated by GNU Autoconf 2.69. Invocation command line was
1878
1879 $ $0 $@
1880
1881 _ACEOF
1882 exec 5>>config.log
1883 {
1884 cat <<_ASUNAME
1885 ## --------- ##
1886 ## Platform. ##
1887 ## --------- ##
1888
1889 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1890 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1891 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1892 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1893 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894
1895 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1896 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897
1898 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1899 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1900 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1901 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1902 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1903 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1904 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1905
1906 _ASUNAME
1907
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 $as_echo "PATH: $as_dir"
1914 done
1915 IFS=$as_save_IFS
1916
1917 } >&5
1918
1919 cat >&5 <<_ACEOF
1920
1921
1922 ## ----------- ##
1923 ## Core tests. ##
1924 ## ----------- ##
1925
1926 _ACEOF
1927
1928
1929 # Keep a trace of the command line.
1930 # Strip out --no-create and --no-recursion so they do not pile up.
1931 # Strip out --silent because we don't want to record it for future runs.
1932 # Also quote any args containing shell meta-characters.
1933 # Make two passes to allow for proper duplicate-argument suppression.
1934 ac_configure_args=
1935 ac_configure_args0=
1936 ac_configure_args1=
1937 ac_must_keep_next=false
1938 for ac_pass in 1 2
1939 do
1940 for ac_arg
1941 do
1942 case $ac_arg in
1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945 | -silent | --silent | --silen | --sile | --sil)
1946 continue ;;
1947 *\'*)
1948 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 case $ac_pass in
1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 2)
1953 as_fn_append ac_configure_args1 " '$ac_arg'"
1954 if test $ac_must_keep_next = true; then
1955 ac_must_keep_next=false # Got value, back to normal.
1956 else
1957 case $ac_arg in
1958 *=* | --config-cache | -C | -disable-* | --disable-* \
1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961 | -with-* | --with-* | -without-* | --without-* | --x)
1962 case "$ac_configure_args0 " in
1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 esac
1965 ;;
1966 -* ) ac_must_keep_next=true ;;
1967 esac
1968 fi
1969 as_fn_append ac_configure_args " '$ac_arg'"
1970 ;;
1971 esac
1972 done
1973 done
1974 { ac_configure_args0=; unset ac_configure_args0;}
1975 { ac_configure_args1=; unset ac_configure_args1;}
1976
1977 # When interrupted or exit'd, cleanup temporary files, and complete
1978 # config.log. We remove comments because anyway the quotes in there
1979 # would cause problems or look ugly.
1980 # WARNING: Use '\'' to represent an apostrophe within the trap.
1981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982 trap 'exit_status=$?
1983 # Save into config.log some information that might help in debugging.
1984 {
1985 echo
1986
1987 $as_echo "## ---------------- ##
1988 ## Cache variables. ##
1989 ## ---------------- ##"
1990 echo
1991 # The following way of writing the cache mishandles newlines in values,
1992 (
1993 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in #(
1996 *${as_nl}*)
1997 case $ac_var in #(
1998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1999 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000 esac
2001 case $ac_var in #(
2002 _ | IFS | as_nl) ;; #(
2003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2004 *) { eval $ac_var=; unset $ac_var;} ;;
2005 esac ;;
2006 esac
2007 done
2008 (set) 2>&1 |
2009 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2010 *${as_nl}ac_space=\ *)
2011 sed -n \
2012 "s/'\''/'\''\\\\'\'''\''/g;
2013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014 ;; #(
2015 *)
2016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2017 ;;
2018 esac |
2019 sort
2020 )
2021 echo
2022
2023 $as_echo "## ----------------- ##
2024 ## Output variables. ##
2025 ## ----------------- ##"
2026 echo
2027 for ac_var in $ac_subst_vars
2028 do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in
2031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032 esac
2033 $as_echo "$ac_var='\''$ac_val'\''"
2034 done | sort
2035 echo
2036
2037 if test -n "$ac_subst_files"; then
2038 $as_echo "## ------------------- ##
2039 ## File substitutions. ##
2040 ## ------------------- ##"
2041 echo
2042 for ac_var in $ac_subst_files
2043 do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
2049 done | sort
2050 echo
2051 fi
2052
2053 if test -s confdefs.h; then
2054 $as_echo "## ----------- ##
2055 ## confdefs.h. ##
2056 ## ----------- ##"
2057 echo
2058 cat confdefs.h
2059 echo
2060 fi
2061 test "$ac_signal" != 0 &&
2062 $as_echo "$as_me: caught signal $ac_signal"
2063 $as_echo "$as_me: exit $exit_status"
2064 } >&5
2065 rm -f core *.core core.conftest.* &&
2066 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2067 exit $exit_status
2068 ' 0
2069 for ac_signal in 1 2 13 15; do
2070 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2071 done
2072 ac_signal=0
2073
2074 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2075 rm -f -r conftest* confdefs.h
2076
2077 $as_echo "/* confdefs.h */" > confdefs.h
2078
2079 # Predefined preprocessor variables.
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_NAME "$PACKAGE_NAME"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_STRING "$PACKAGE_STRING"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_URL "$PACKAGE_URL"
2103 _ACEOF
2104
2105
2106 # Let the site file select an alternate cache file if it wants to.
2107 # Prefer an explicitly selected file to automatically selected ones.
2108 ac_site_file1=NONE
2109 ac_site_file2=NONE
2110 if test -n "$CONFIG_SITE"; then
2111 # We do not want a PATH search for config.site.
2112 case $CONFIG_SITE in #((
2113 -*) ac_site_file1=./$CONFIG_SITE;;
2114 */*) ac_site_file1=$CONFIG_SITE;;
2115 *) ac_site_file1=./$CONFIG_SITE;;
2116 esac
2117 elif test "x$prefix" != xNONE; then
2118 ac_site_file1=$prefix/share/config.site
2119 ac_site_file2=$prefix/etc/config.site
2120 else
2121 ac_site_file1=$ac_default_prefix/share/config.site
2122 ac_site_file2=$ac_default_prefix/etc/config.site
2123 fi
2124 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2125 do
2126 test "x$ac_site_file" = xNONE && continue
2127 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2130 sed 's/^/| /' "$ac_site_file" >&5
2131 . "$ac_site_file" \
2132 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 as_fn_error $? "failed to load site script $ac_site_file
2135 See \`config.log' for more details" "$LINENO" 5; }
2136 fi
2137 done
2138
2139 if test -r "$cache_file"; then
2140 # Some versions of bash will fail to source /dev/null (special files
2141 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2142 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2144 $as_echo "$as_me: loading cache $cache_file" >&6;}
2145 case $cache_file in
2146 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2147 *) . "./$cache_file";;
2148 esac
2149 fi
2150 else
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2152 $as_echo "$as_me: creating cache $cache_file" >&6;}
2153 >$cache_file
2154 fi
2155
2156 as_fn_append ac_header_list " utime.h"
2157 # Check that the precious variables saved in the cache have kept the same
2158 # value.
2159 ac_cache_corrupted=false
2160 for ac_var in $ac_precious_vars; do
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
2165 case $ac_old_set,$ac_new_set in
2166 set,)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,set)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,);;
2175 *)
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2188 fi
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 esac
2205 fi
2206 done
2207 if $ac_cache_corrupted; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2213 fi
2214 ## -------------------- ##
2215 ## Main body of script. ##
2216 ## -------------------- ##
2217
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
2224
2225
2226 am__api_version='1.14'
2227
2228 ac_aux_dir=
2229 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257 # Find a good install program. We prefer a C program (faster),
2258 # so one script is as good as another. But avoid the broken or
2259 # incompatible versions:
2260 # SysV /etc/install, /usr/sbin/install
2261 # SunOS /usr/etc/install
2262 # IRIX /sbin/install
2263 # AIX /bin/install
2264 # AmigaOS /C/install, which installs bootblocks on floppy discs
2265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268 # OS/2's system install, which has a completely different semantic
2269 # ./install, which can be erroneously created by make from ./install.sh.
2270 # Reject install programs that cannot install multiple files.
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 if test -z "$INSTALL"; then
2274 if ${ac_cv_path_install+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 # Account for people who put trailing slashes in PATH elements.
2283 case $as_dir/ in #((
2284 ./ | .// | /[cC]/* | \
2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 /usr/ucb/* ) ;;
2288 *)
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2298 :
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2302 :
2303 else
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2315 fi
2316 fi
2317 fi
2318 done
2319 done
2320 ;;
2321 esac
2322
2323 done
2324 IFS=$as_save_IFS
2325
2326 rm -rf conftest.one conftest.two conftest.dir
2327
2328 fi
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
2334 # break other packages using the cache if that directory is
2335 # removed, or if the value is a relative name.
2336 INSTALL=$ac_install_sh
2337 fi
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340 $as_echo "$INSTALL" >&6; }
2341
2342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343 # It thinks the first close brace ends the variable substitution.
2344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 # Reject unsafe characters in $srcdir or the absolute working directory
2353 # name. Accept space and tab only in the latter.
2354 am_lf='
2355 '
2356 case `pwd` in
2357 *[\\\"\#\$\&\'\`$am_lf]*)
2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359 esac
2360 case $srcdir in
2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363 esac
2364
2365 # Do 'set' in a subshell so we don't clobber the current shell's
2366 # arguments. Must try -L first in case configure is actually a
2367 # symlink; some systems play weird games with the mod time of symlinks
2368 # (eg FreeBSD returns the mod time of the symlink's containing
2369 # directory).
2370 if (
2371 am_has_slept=no
2372 for am_try in 1 2; do
2373 echo "timestamp, slept: $am_has_slept" > conftest.file
2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375 if test "$*" = "X"; then
2376 # -L didn't work.
2377 set X `ls -t "$srcdir/configure" conftest.file`
2378 fi
2379 if test "$*" != "X $srcdir/configure conftest.file" \
2380 && test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382 # If neither matched, then we have a broken ls. This can happen
2383 # if, for instance, CONFIG_SHELL is bash and it inherits a
2384 # broken ls alias from the environment. This has actually
2385 # happened. Such a system could not be considered "sane".
2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2387 alias in your environment" "$LINENO" 5
2388 fi
2389 if test "$2" = conftest.file || test $am_try -eq 2; then
2390 break
2391 fi
2392 # Just in case.
2393 sleep 1
2394 am_has_slept=yes
2395 done
2396 test "$2" = conftest.file
2397 )
2398 then
2399 # Ok.
2400 :
2401 else
2402 as_fn_error $? "newly created file is older than distributed files!
2403 Check your system clock" "$LINENO" 5
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406 $as_echo "yes" >&6; }
2407 # If we didn't sleep, we still need to ensure time stamps of config.status and
2408 # generated files are strictly newer.
2409 am_sleep_pid=
2410 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411 ( sleep 1 ) &
2412 am_sleep_pid=$!
2413 fi
2414
2415 rm -f conftest.file
2416
2417 test "$program_prefix" != NONE &&
2418 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419 # Use a double $ so make ignores it.
2420 test "$program_suffix" != NONE &&
2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422 # Double any \ or $.
2423 # By default was `s,x,x', remove it if useless.
2424 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427 # Expand $ac_aux_dir to an absolute path.
2428 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2429
2430 if test x"${MISSING+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434 *)
2435 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436 esac
2437 fi
2438 # Use eval to expand $SHELL
2439 if eval "$MISSING --is-lightweight"; then
2440 am_missing_run="$MISSING "
2441 else
2442 am_missing_run=
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445 fi
2446
2447 if test x"${install_sh}" != xset; then
2448 case $am_aux_dir in
2449 *\ * | *\ *)
2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451 *)
2452 install_sh="\${SHELL} $am_aux_dir/install-sh"
2453 esac
2454 fi
2455
2456 # Installed binaries are usually stripped using 'strip' when the user
2457 # run "make install-strip". However 'strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the 'STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_STRIP+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492 $as_echo "$STRIP" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501 ac_ct_STRIP=$STRIP
2502 # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_STRIP="strip"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532 $as_echo "$ac_ct_STRIP" >&6; }
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538 if test "x$ac_ct_STRIP" = x; then
2539 STRIP=":"
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 STRIP=$ac_ct_STRIP
2548 fi
2549 else
2550 STRIP="$ac_cv_prog_STRIP"
2551 fi
2552
2553 fi
2554 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558 if test -z "$MKDIR_P"; then
2559 if ${ac_cv_path_mkdir+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_prog in mkdir gmkdir; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571 'mkdir (GNU coreutils) '* | \
2572 'mkdir (coreutils) '* | \
2573 'mkdir (fileutils) '4.1*)
2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575 break 3;;
2576 esac
2577 done
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583
2584 test -d ./--version && rmdir ./--version
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2587 else
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 MKDIR_P="$ac_install_sh -d"
2593 fi
2594 fi
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596 $as_echo "$MKDIR_P" >&6; }
2597
2598 for ac_prog in gawk mawk nawk awk
2599 do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 test -n "$AWK" && break
2638 done
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2677 fi
2678 rmdir .tst 2>/dev/null
2679
2680 # Check whether --enable-silent-rules was given.
2681 if test "${enable_silent_rules+set}" = set; then :
2682 enableval=$enable_silent_rules;
2683 fi
2684
2685 case $enable_silent_rules in # (((
2686 yes) AM_DEFAULT_VERBOSITY=0;;
2687 no) AM_DEFAULT_VERBOSITY=1;;
2688 *) AM_DEFAULT_VERBOSITY=1;;
2689 esac
2690 am_make=${MAKE-make}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693 if ${am_cv_make_support_nested_variables+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if $as_echo 'TRUE=$(BAR$(V))
2697 BAR0=false
2698 BAR1=true
2699 V=1
2700 am__doit:
2701 @$(TRUE)
2702 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703 am_cv_make_support_nested_variables=yes
2704 else
2705 am_cv_make_support_nested_variables=no
2706 fi
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2710 if test $am_cv_make_support_nested_variables = yes; then
2711 AM_V='$(V)'
2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713 else
2714 AM_V=$AM_DEFAULT_VERBOSITY
2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716 fi
2717 AM_BACKSLASH='\'
2718
2719 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721 # is not polluted with repeated "-I."
2722 am__isrc=' -I$(srcdir)'
2723 # test to see if srcdir already configured
2724 if test -f $srcdir/config.status; then
2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726 fi
2727 fi
2728
2729 # test whether we have cygpath
2730 if test -z "$CYGPATH_W"; then
2731 if (cygpath --version) >/dev/null 2>/dev/null; then
2732 CYGPATH_W='cygpath -w'
2733 else
2734 CYGPATH_W=echo
2735 fi
2736 fi
2737
2738
2739 # Define the identity of the package.
2740 PACKAGE='ace'
2741 VERSION='1.4'
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE "$PACKAGE"
2746 _ACEOF
2747
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define VERSION "$VERSION"
2751 _ACEOF
2752
2753 # Some tools Automake needs.
2754
2755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769 # For better backward compatibility. To be removed once Automake 1.9.x
2770 # dies out for good. For more background, see:
2771 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773 mkdir_p='$(MKDIR_P)'
2774
2775 # We need awk for the "check" target. The system "awk" is bad on
2776 # some platforms.
2777 # Always define AMTAR for backward compatibility. Yes, it's still used
2778 # in the wild :-( We should find a proper way to deprecate it ...
2779 AMTAR='$${TAR-tar}'
2780
2781
2782 # We'll loop over all known methods to create a tar archive until one works.
2783 _am_tools='gnutar pax cpio none'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 # POSIX will say in a future version that running "rm -f" with no argument
2793 # is OK; and we want to be able to make that assumption in our Makefile
2794 # recipes. So use an aggressive probe to check that the usage we want is
2795 # actually supported "in the wild" to an acceptable degree.
2796 # See automake bug#10828.
2797 # To make any issue more visible, cause the running configure to be aborted
2798 # by default if the 'rm' program in use doesn't match our expectations; the
2799 # user can still override this though.
2800 if rm -f && rm -fr && rm -rf; then : OK; else
2801 cat >&2 <<'END'
2802 Oops!
2803
2804 Your 'rm' program seems unable to run without file operands specified
2805 on the command line, even when the '-f' option is present. This is contrary
2806 to the behaviour of most rm programs out there, and not conforming with
2807 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808
2809 Please tell [email protected] about your system, including the value
2810 of your $PATH and any error possibly output before this message. This
2811 can help us improve future automake versions.
2812
2813 END
2814 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815 echo 'Configuration will proceed anyway, since you have set the' >&2
2816 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817 echo >&2
2818 else
2819 cat >&2 <<'END'
2820 Aborting the configuration process, to ensure you take notice of the issue.
2821
2822 You can download and install GNU coreutils to get an 'rm' implementation
2823 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824
2825 If you want to complete the configuration process using your problematic
2826 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827 to "yes", and re-run configure.
2828
2829 END
2830 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831 fi
2832 fi
2833
2834
2835
2836 # Check whether --with-cross was given.
2837 if test "${with_cross+set}" = set; then :
2838 withval=$with_cross;
2839 target=$withval
2840 host=$withval
2841 echo Cross compiling for $withval
2842 CC=$target-gcc
2843 AR=$target-ar
2844 RANLIB=$target-ranlib
2845 LD=$target-ld
2846 STRIP=$target-strip
2847 PDA=-DPDA
2848
2849 for dir in x `$CC --print-search-dirs | grep libraries: | sed -e 's/libraries: //' -e 's/:/ /g'`
2850 do
2851 dir=`echo $dir | sed 's@/$@@'`
2852 echo testing $dir/X11
2853 if test -d $dir/X11
2854 then
2855 x_libraries=$dir/X11
2856 break;
2857 fi
2858 done
2859 echo x_libraries=$x_libraries
2860 case $x_libraries in
2861 *lib/X11 ) dir=`echo $x_libraries | sed 's@lib/X11$@include@'` ;;
2862 *gcc-lib* ) dir=`echo $x_libraries | sed -e 's@gcc-lib@@' -e 's@X11$@include@'` ;;
2863 *) dir=`echo $x_libraries | sed 's@X11$@include@'` ;;
2864 esac
2865 test -d $dir/. && x_includes=$dir
2866 export CC AR RANLIB LD STRIP PDA
2867
2868 fi
2869
2870
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876
2877
2878 case `pwd` in
2879 *\ * | *\ *)
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2881 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2882 esac
2883
2884
2885
2886 macro_version='2.4.2'
2887 macro_revision='1.3337'
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901 ltmain="$ac_aux_dir/ltmain.sh"
2902
2903 # Make sure we can run config.sub.
2904 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2905 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2906
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2908 $as_echo_n "checking build system type... " >&6; }
2909 if ${ac_cv_build+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 ac_build_alias=$build_alias
2913 test "x$ac_build_alias" = x &&
2914 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2915 test "x$ac_build_alias" = x &&
2916 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2917 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2919
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2922 $as_echo "$ac_cv_build" >&6; }
2923 case $ac_cv_build in
2924 *-*-*) ;;
2925 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2926 esac
2927 build=$ac_cv_build
2928 ac_save_IFS=$IFS; IFS='-'
2929 set x $ac_cv_build
2930 shift
2931 build_cpu=$1
2932 build_vendor=$2
2933 shift; shift
2934 # Remember, the first character of IFS is used to create $*,
2935 # except with old shells:
2936 build_os=$*
2937 IFS=$ac_save_IFS
2938 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2939
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2942 $as_echo_n "checking host system type... " >&6; }
2943 if ${ac_cv_host+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test "x$host_alias" = x; then
2947 ac_cv_host=$ac_cv_build
2948 else
2949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2951 fi
2952
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2955 $as_echo "$ac_cv_host" >&6; }
2956 case $ac_cv_host in
2957 *-*-*) ;;
2958 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2959 esac
2960 host=$ac_cv_host
2961 ac_save_IFS=$IFS; IFS='-'
2962 set x $ac_cv_host
2963 shift
2964 host_cpu=$1
2965 host_vendor=$2
2966 shift; shift
2967 # Remember, the first character of IFS is used to create $*,
2968 # except with old shells:
2969 host_os=$*
2970 IFS=$ac_save_IFS
2971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2972
2973
2974 # Backslashify metacharacters that are still active within
2975 # double-quoted strings.
2976 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2977
2978 # Same as above, but do not quote variable references.
2979 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2980
2981 # Sed substitution to delay expansion of an escaped shell variable in a
2982 # double_quote_subst'ed string.
2983 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2984
2985 # Sed substitution to delay expansion of an escaped single quote.
2986 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2987
2988 # Sed substitution to avoid accidental globbing in evaled expressions
2989 no_glob_subst='s/\*/\\\*/g'
2990
2991 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2992 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2994
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2996 $as_echo_n "checking how to print strings... " >&6; }
2997 # Test print first, because it will be a builtin if present.
2998 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2999 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3000 ECHO='print -r --'
3001 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3002 ECHO='printf %s\n'
3003 else
3004 # Use this function as a fallback that always works.
3005 func_fallback_echo ()
3006 {
3007 eval 'cat <<_LTECHO_EOF
3008 $1
3009 _LTECHO_EOF'
3010 }
3011 ECHO='func_fallback_echo'
3012 fi
3013
3014 # func_echo_all arg...
3015 # Invoke $ECHO with all args, space-separated.
3016 func_echo_all ()
3017 {
3018 $ECHO ""
3019 }
3020
3021 case "$ECHO" in
3022 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3023 $as_echo "printf" >&6; } ;;
3024 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3025 $as_echo "print -r" >&6; } ;;
3026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3027 $as_echo "cat" >&6; } ;;
3028 esac
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043 DEPDIR="${am__leading_dot}deps"
3044
3045 ac_config_commands="$ac_config_commands depfiles"
3046
3047
3048 am_make=${MAKE-make}
3049 cat > confinc << 'END'
3050 am__doit:
3051 @echo this is the am__doit target
3052 .PHONY: am__doit
3053 END
3054 # If we don't find an include directive, just comment out the code.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3057 am__include="#"
3058 am__quote=
3059 _am_result=none
3060 # First try GNU make style include.
3061 echo "include confinc" > confmf
3062 # Ignore all kinds of additional output from 'make'.
3063 case `$am_make -s -f confmf 2> /dev/null` in #(
3064 *the\ am__doit\ target*)
3065 am__include=include
3066 am__quote=
3067 _am_result=GNU
3068 ;;
3069 esac
3070 # Now try BSD make style include.
3071 if test "$am__include" = "#"; then
3072 echo '.include "confinc"' > confmf
3073 case `$am_make -s -f confmf 2> /dev/null` in #(
3074 *the\ am__doit\ target*)
3075 am__include=.include
3076 am__quote="\""
3077 _am_result=BSD
3078 ;;
3079 esac
3080 fi
3081
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3084 $as_echo "$_am_result" >&6; }
3085 rm -f confinc confmf
3086
3087 # Check whether --enable-dependency-tracking was given.
3088 if test "${enable_dependency_tracking+set}" = set; then :
3089 enableval=$enable_dependency_tracking;
3090 fi
3091
3092 if test "x$enable_dependency_tracking" != xno; then
3093 am_depcomp="$ac_aux_dir/depcomp"
3094 AMDEPBACKSLASH='\'
3095 am__nodep='_no'
3096 fi
3097 if test "x$enable_dependency_tracking" != xno; then
3098 AMDEP_TRUE=
3099 AMDEP_FALSE='#'
3100 else
3101 AMDEP_TRUE='#'
3102 AMDEP_FALSE=
3103 fi
3104
3105
3106 ac_ext=c
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$ac_cv_prog_CC"; then
3151 ac_ct_CC=$CC
3152 # Extract the first word of "gcc", so it can be a program name with args.
3153 set dummy gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_ac_ct_CC="gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182 $as_echo "$ac_ct_CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188 if test "x$ac_ct_CC" = x; then
3189 CC=""
3190 else
3191 case $cross_compiling:$ac_tool_warned in
3192 yes:)
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3196 esac
3197 CC=$ac_ct_CC
3198 fi
3199 else
3200 CC="$ac_cv_prog_CC"
3201 fi
3202
3203 if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}cc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_CC="${ac_tool_prefix}cc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242 fi
3243 fi
3244 if test -z "$CC"; then
3245 # Extract the first word of "cc", so it can be a program name with args.
3246 set dummy cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 ac_prog_rejected=no
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264 ac_prog_rejected=yes
3265 continue
3266 fi
3267 ac_cv_prog_CC="cc"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 if test $ac_prog_rejected = yes; then
3276 # We found a bogon in the path, so make sure we never use it.
3277 set dummy $ac_cv_prog_CC
3278 shift
3279 if test $# != 0; then
3280 # We chose a different compiler from the bogus one.
3281 # However, it has the same basename, so the bogon will be chosen
3282 # first if we set CC to just the basename; use the full file name.
3283 shift
3284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285 fi
3286 fi
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 if test -z "$CC"; then
3301 if test -n "$ac_tool_prefix"; then
3302 for ac_prog in cl.exe
3303 do
3304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341 test -n "$CC" && break
3342 done
3343 fi
3344 if test -z "$CC"; then
3345 ac_ct_CC=$CC
3346 for ac_prog in cl.exe
3347 do
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$ac_ct_CC"; then
3356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_ac_ct_CC="$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369 done
3370 done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376 if test -n "$ac_ct_CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3378 $as_echo "$ac_ct_CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385 test -n "$ac_ct_CC" && break
3386 done
3387
3388 if test "x$ac_ct_CC" = x; then
3389 CC=""
3390 else
3391 case $cross_compiling:$ac_tool_warned in
3392 yes:)
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395 ac_tool_warned=yes ;;
3396 esac
3397 CC=$ac_ct_CC
3398 fi
3399 fi
3400
3401 fi
3402
3403
3404 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details" "$LINENO" 5; }
3408
3409 # Provide some information about the compiler.
3410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3411 set X $ac_compile
3412 ac_compiler=$2
3413 for ac_option in --version -v -V -qversion; do
3414 { { ac_try="$ac_compiler $ac_option >&5"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3422 ac_status=$?
3423 if test -s conftest.err; then
3424 sed '10a\
3425 ... rest of stderr output deleted ...
3426 10q' conftest.err >conftest.er1
3427 cat conftest.er1 >&5
3428 fi
3429 rm -f conftest.er1 conftest.err
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }
3432 done
3433
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 ac_clean_files_save=$ac_clean_files
3446 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3447 # Try to create an executable without -o first, disregard a.out.
3448 # It will help us diagnose broken compilers, and finding out an intuition
3449 # of exeext.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3453
3454 # The possible output files:
3455 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456
3457 ac_rmfiles=
3458 for ac_file in $ac_files
3459 do
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3463 esac
3464 done
3465 rm -f $ac_rmfiles
3466
3467 if { { ac_try="$ac_link_default"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link_default") 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3479 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3480 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3481 # so that the user can short-circuit this test for compilers unknown to
3482 # Autoconf.
3483 for ac_file in $ac_files ''
3484 do
3485 test -f "$ac_file" || continue
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3488 ;;
3489 [ab].out )
3490 # We found the default executable, but exeext='' is most
3491 # certainly right.
3492 break;;
3493 *.* )
3494 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3495 then :; else
3496 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497 fi
3498 # We set ac_cv_exeext here because the later test for it is not
3499 # safe: cross compilers may not add the suffix if given an `-o'
3500 # argument, so we may need to know it at that point already.
3501 # Even if this section looks crufty: it has the advantage of
3502 # actually working.
3503 break;;
3504 * )
3505 break;;
3506 esac
3507 done
3508 test "$ac_cv_exeext" = no && ac_cv_exeext=
3509
3510 else
3511 ac_file=''
3512 fi
3513 if test -z "$ac_file"; then :
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error 77 "C compiler cannot create executables
3522 See \`config.log' for more details" "$LINENO" 5; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525 $as_echo "yes" >&6; }
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528 $as_echo_n "checking for C compiler default output file name... " >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 ac_exeext=$ac_cv_exeext
3532
3533 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534 ac_clean_files=$ac_clean_files_save
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536 $as_echo_n "checking for suffix of executables... " >&6; }
3537 if { { ac_try="$ac_link"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_link") 2>&5
3545 ac_status=$?
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; then :
3548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3550 # work properly (i.e., refer to `conftest.exe'), while it won't with
3551 # `rm'.
3552 for ac_file in conftest.exe conftest conftest.*; do
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557 break;;
3558 * ) break;;
3559 esac
3560 done
3561 else
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 fi
3567 rm -f conftest conftest$ac_cv_exeext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569 $as_echo "$ac_cv_exeext" >&6; }
3570
3571 rm -f conftest.$ac_ext
3572 EXEEXT=$ac_cv_exeext
3573 ac_exeext=$EXEEXT
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <stdio.h>
3577 int
3578 main ()
3579 {
3580 FILE *f = fopen ("conftest.out", "w");
3581 return ferror (f) || fclose (f) != 0;
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 ac_clean_files="$ac_clean_files conftest.out"
3588 # Check that the compiler produces executables we can run. If not, either
3589 # the compiler is broken, or we cross compile.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591 $as_echo_n "checking whether we are cross compiling... " >&6; }
3592 if test "$cross_compiling" != yes; then
3593 { { ac_try="$ac_link"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3604 if { ac_try='./conftest$ac_cv_exeext'
3605 { { case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_try") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; }; then
3615 cross_compiling=no
3616 else
3617 if test "$cross_compiling" = maybe; then
3618 cross_compiling=yes
3619 else
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot run C compiled programs.
3623 If you meant to cross compile, use \`--host'.
3624 See \`config.log' for more details" "$LINENO" 5; }
3625 fi
3626 fi
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629 $as_echo "$cross_compiling" >&6; }
3630
3631 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632 ac_clean_files=$ac_clean_files_save
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634 $as_echo_n "checking for suffix of object files... " >&6; }
3635 if ${ac_cv_objext+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.o conftest.obj
3650 if { { ac_try="$ac_compile"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compile") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; then :
3661 for ac_file in conftest.o conftest.obj conftest.*; do
3662 test -f "$ac_file" || continue;
3663 case $ac_file in
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3666 break;;
3667 esac
3668 done
3669 else
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error $? "cannot compute suffix of object files: cannot compile
3676 See \`config.log' for more details" "$LINENO" 5; }
3677 fi
3678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681 $as_echo "$ac_cv_objext" >&6; }
3682 OBJEXT=$ac_cv_objext
3683 ac_objext=$OBJEXT
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686 if ${ac_cv_c_compiler_gnu+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 int
3693 main ()
3694 {
3695 #ifndef __GNUC__
3696 choke me
3697 #endif
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_compiler_gnu=yes
3705 else
3706 ac_compiler_gnu=no
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3710
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714 if test $ac_compiler_gnu = yes; then
3715 GCC=yes
3716 else
3717 GCC=
3718 fi
3719 ac_test_CFLAGS=${CFLAGS+set}
3720 ac_save_CFLAGS=$CFLAGS
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3723 if ${ac_cv_prog_cc_g+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 ac_save_c_werror_flag=$ac_c_werror_flag
3727 ac_c_werror_flag=yes
3728 ac_cv_prog_cc_g=no
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743 else
3744 CFLAGS=""
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757
3758 else
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3760 CFLAGS="-g"
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 int
3765 main ()
3766 {
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_cv_prog_cc_g=yes
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_c_werror_flag=$ac_save_c_werror_flag
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783 $as_echo "$ac_cv_prog_cc_g" >&6; }
3784 if test "$ac_test_CFLAGS" = set; then
3785 CFLAGS=$ac_save_CFLAGS
3786 elif test $ac_cv_prog_cc_g = yes; then
3787 if test "$GCC" = yes; then
3788 CFLAGS="-g -O2"
3789 else
3790 CFLAGS="-g"
3791 fi
3792 else
3793 if test "$GCC" = yes; then
3794 CFLAGS="-O2"
3795 else
3796 CFLAGS=
3797 fi
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801 if ${ac_cv_prog_cc_c89+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 ac_cv_prog_cc_c89=no
3805 ac_save_CC=$CC
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #include <stdarg.h>
3809 #include <stdio.h>
3810 struct stat;
3811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3812 struct buf { int x; };
3813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814 static char *e (p, i)
3815 char **p;
3816 int i;
3817 {
3818 return p[i];
3819 }
3820 static char *f (char * (*g) (char **, int), char **p, ...)
3821 {
3822 char *s;
3823 va_list v;
3824 va_start (v,p);
3825 s = g (p, va_arg (v,int));
3826 va_end (v);
3827 return s;
3828 }
3829
3830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3831 function prototypes and stuff, but not '\xHH' hex character constants.
3832 These don't provoke an error unfortunately, instead are silently treated
3833 as 'x'. The following induces an error, until -std is added to get
3834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3835 array size at least. It's necessary to write '\x00'==0 to get something
3836 that's true only with -std. */
3837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838
3839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840 inside strings and character constants. */
3841 #define FOO(x) 'x'
3842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843
3844 int test (int i, double x);
3845 struct s1 {int (*f) (int a);};
3846 struct s2 {int (*f) (double a);};
3847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848 int argc;
3849 char **argv;
3850 int
3851 main ()
3852 {
3853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860 do
3861 CC="$ac_save_CC $ac_arg"
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_c89=$ac_arg
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext
3866 test "x$ac_cv_prog_cc_c89" != "xno" && break
3867 done
3868 rm -f conftest.$ac_ext
3869 CC=$ac_save_CC
3870
3871 fi
3872 # AC_CACHE_VAL
3873 case "x$ac_cv_prog_cc_c89" in
3874 x)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876 $as_echo "none needed" >&6; } ;;
3877 xno)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879 $as_echo "unsupported" >&6; } ;;
3880 *)
3881 CC="$CC $ac_cv_prog_cc_c89"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884 esac
3885 if test "x$ac_cv_prog_cc_c89" != xno; then :
3886
3887 fi
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3901 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3902 if ${am_cv_prog_cc_c_o+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907
3908 int
3909 main ()
3910 {
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 # Make sure it works both with $CC and with simple cc.
3917 # Following AC_PROG_CC_C_O, we do the test twice because some
3918 # compilers refuse to overwrite an existing .o file with -o,
3919 # though they will create one.
3920 am_cv_prog_cc_c_o=yes
3921 for am_i in 1 2; do
3922 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3923 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } \
3927 && test -f conftest2.$ac_objext; then
3928 : OK
3929 else
3930 am_cv_prog_cc_c_o=no
3931 break
3932 fi
3933 done
3934 rm -f core conftest*
3935 unset am_i
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3938 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3939 if test "$am_cv_prog_cc_c_o" != yes; then
3940 # Losing compiler, so override with the script.
3941 # FIXME: It is wrong to rewrite CC.
3942 # But if we don't then we get into trouble of one sort or another.
3943 # A longer-term fix would be to have automake use am__CC in this case,
3944 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3945 CC="$am_aux_dir/compile $CC"
3946 fi
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953
3954 depcc="$CC" am_compiler_list=
3955
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3957 $as_echo_n "checking dependency style of $depcc... " >&6; }
3958 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3962 # We make a subdir and do the tests there. Otherwise we can end up
3963 # making bogus files that we don't know about and never remove. For
3964 # instance it was reported that on HP-UX the gcc test will end up
3965 # making a dummy file named 'D' -- because '-MD' means "put the output
3966 # in D".
3967 rm -rf conftest.dir
3968 mkdir conftest.dir
3969 # Copy depcomp to subdir because otherwise we won't find it if we're
3970 # using a relative directory.
3971 cp "$am_depcomp" conftest.dir
3972 cd conftest.dir
3973 # We will build objects and dependencies in a subdirectory because
3974 # it helps to detect inapplicable dependency modes. For instance
3975 # both Tru64's cc and ICC support -MD to output dependencies as a
3976 # side effect of compilation, but ICC will put the dependencies in
3977 # the current directory while Tru64 will put them in the object
3978 # directory.
3979 mkdir sub
3980
3981 am_cv_CC_dependencies_compiler_type=none
3982 if test "$am_compiler_list" = ""; then
3983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3984 fi
3985 am__universal=false
3986 case " $depcc " in #(
3987 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3988 esac
3989
3990 for depmode in $am_compiler_list; do
3991 # Setup a source with many dependencies, because some compilers
3992 # like to wrap large dependency lists on column 80 (with \), and
3993 # we should not choose a depcomp mode which is confused by this.
3994 #
3995 # We need to recreate these files for each test, as the compiler may
3996 # overwrite some of them when testing with obscure command lines.
3997 # This happens at least with the AIX C compiler.
3998 : > sub/conftest.c
3999 for i in 1 2 3 4 5 6; do
4000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4001 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4002 # Solaris 10 /bin/sh.
4003 echo '/* dummy */' > sub/conftst$i.h
4004 done
4005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4006
4007 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4008 # mode. It turns out that the SunPro C++ compiler does not properly
4009 # handle '-M -o', and we need to detect this. Also, some Intel
4010 # versions had trouble with output in subdirs.
4011 am__obj=sub/conftest.${OBJEXT-o}
4012 am__minus_obj="-o $am__obj"
4013 case $depmode in
4014 gcc)
4015 # This depmode causes a compiler race in universal mode.
4016 test "$am__universal" = false || continue
4017 ;;
4018 nosideeffect)
4019 # After this tag, mechanisms are not by side-effect, so they'll
4020 # only be used when explicitly requested.
4021 if test "x$enable_dependency_tracking" = xyes; then
4022 continue
4023 else
4024 break
4025 fi
4026 ;;
4027 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4028 # This compiler won't grok '-c -o', but also, the minuso test has
4029 # not run yet. These depmodes are late enough in the game, and
4030 # so weak that their functioning should not be impacted.
4031 am__obj=conftest.${OBJEXT-o}
4032 am__minus_obj=
4033 ;;
4034 none) break ;;
4035 esac
4036 if depmode=$depmode \
4037 source=sub/conftest.c object=$am__obj \
4038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4040 >/dev/null 2>conftest.err &&
4041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4045 # icc doesn't choke on unknown options, it will just issue warnings
4046 # or remarks (even with -Werror). So we grep stderr for any message
4047 # that says an option was ignored or not supported.
4048 # When given -MP, icc 7.0 and 7.1 complain thusly:
4049 # icc: Command line warning: ignoring option '-M'; no argument required
4050 # The diagnosis changed in icc 8.0:
4051 # icc: Command line remark: option '-MP' not supported
4052 if (grep 'ignoring option' conftest.err ||
4053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4054 am_cv_CC_dependencies_compiler_type=$depmode
4055 break
4056 fi
4057 fi
4058 done
4059
4060 cd ..
4061 rm -rf conftest.dir
4062 else
4063 am_cv_CC_dependencies_compiler_type=none
4064 fi
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4068 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4069 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4070
4071 if
4072 test "x$enable_dependency_tracking" != xno \
4073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4074 am__fastdepCC_TRUE=
4075 am__fastdepCC_FALSE='#'
4076 else
4077 am__fastdepCC_TRUE='#'
4078 am__fastdepCC_FALSE=
4079 fi
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4083 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4084 if ${ac_cv_path_SED+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4088 for ac_i in 1 2 3 4 5 6 7; do
4089 ac_script="$ac_script$as_nl$ac_script"
4090 done
4091 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4092 { ac_script=; unset ac_script;}
4093 if test -z "$SED"; then
4094 ac_path_SED_found=false
4095 # Loop through the user's path and test for each of PROGNAME-LIST
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_prog in sed gsed; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4104 as_fn_executable_p "$ac_path_SED" || continue
4105 # Check for GNU ac_path_SED and select it if it is found.
4106 # Check for GNU $ac_path_SED
4107 case `"$ac_path_SED" --version 2>&1` in
4108 *GNU*)
4109 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4110 *)
4111 ac_count=0
4112 $as_echo_n 0123456789 >"conftest.in"
4113 while :
4114 do
4115 cat "conftest.in" "conftest.in" >"conftest.tmp"
4116 mv "conftest.tmp" "conftest.in"
4117 cp "conftest.in" "conftest.nl"
4118 $as_echo '' >> "conftest.nl"
4119 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121 as_fn_arith $ac_count + 1 && ac_count=$as_val
4122 if test $ac_count -gt ${ac_path_SED_max-0}; then
4123 # Best one so far, save it but keep looking for a better one
4124 ac_cv_path_SED="$ac_path_SED"
4125 ac_path_SED_max=$ac_count
4126 fi
4127 # 10*(2^10) chars as input seems more than enough
4128 test $ac_count -gt 10 && break
4129 done
4130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131 esac
4132
4133 $ac_path_SED_found && break 3
4134 done
4135 done
4136 done
4137 IFS=$as_save_IFS
4138 if test -z "$ac_cv_path_SED"; then
4139 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4140 fi
4141 else
4142 ac_cv_path_SED=$SED
4143 fi
4144
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4147 $as_echo "$ac_cv_path_SED" >&6; }
4148 SED="$ac_cv_path_SED"
4149 rm -f conftest.sed
4150
4151 test -z "$SED" && SED=sed
4152 Xsed="$SED -e 1s/^X//"
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4166 if ${ac_cv_path_GREP+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -z "$GREP"; then
4170 ac_path_GREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_prog in grep ggrep; do
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4180 as_fn_executable_p "$ac_path_GREP" || continue
4181 # Check for GNU ac_path_GREP and select it if it is found.
4182 # Check for GNU $ac_path_GREP
4183 case `"$ac_path_GREP" --version 2>&1` in
4184 *GNU*)
4185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4186 *)
4187 ac_count=0
4188 $as_echo_n 0123456789 >"conftest.in"
4189 while :
4190 do
4191 cat "conftest.in" "conftest.in" >"conftest.tmp"
4192 mv "conftest.tmp" "conftest.in"
4193 cp "conftest.in" "conftest.nl"
4194 $as_echo 'GREP' >> "conftest.nl"
4195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197 as_fn_arith $ac_count + 1 && ac_count=$as_val
4198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4199 # Best one so far, save it but keep looking for a better one
4200 ac_cv_path_GREP="$ac_path_GREP"
4201 ac_path_GREP_max=$ac_count
4202 fi
4203 # 10*(2^10) chars as input seems more than enough
4204 test $ac_count -gt 10 && break
4205 done
4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 esac
4208
4209 $ac_path_GREP_found && break 3
4210 done
4211 done
4212 done
4213 IFS=$as_save_IFS
4214 if test -z "$ac_cv_path_GREP"; then
4215 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216 fi
4217 else
4218 ac_cv_path_GREP=$GREP
4219 fi
4220
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4223 $as_echo "$ac_cv_path_GREP" >&6; }
4224 GREP="$ac_cv_path_GREP"
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4228 $as_echo_n "checking for egrep... " >&6; }
4229 if ${ac_cv_path_EGREP+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4233 then ac_cv_path_EGREP="$GREP -E"
4234 else
4235 if test -z "$EGREP"; then
4236 ac_path_EGREP_found=false
4237 # Loop through the user's path and test for each of PROGNAME-LIST
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_prog in egrep; do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4246 as_fn_executable_p "$ac_path_EGREP" || continue
4247 # Check for GNU ac_path_EGREP and select it if it is found.
4248 # Check for GNU $ac_path_EGREP
4249 case `"$ac_path_EGREP" --version 2>&1` in
4250 *GNU*)
4251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4252 *)
4253 ac_count=0
4254 $as_echo_n 0123456789 >"conftest.in"
4255 while :
4256 do
4257 cat "conftest.in" "conftest.in" >"conftest.tmp"
4258 mv "conftest.tmp" "conftest.in"
4259 cp "conftest.in" "conftest.nl"
4260 $as_echo 'EGREP' >> "conftest.nl"
4261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263 as_fn_arith $ac_count + 1 && ac_count=$as_val
4264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4265 # Best one so far, save it but keep looking for a better one
4266 ac_cv_path_EGREP="$ac_path_EGREP"
4267 ac_path_EGREP_max=$ac_count
4268 fi
4269 # 10*(2^10) chars as input seems more than enough
4270 test $ac_count -gt 10 && break
4271 done
4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273 esac
4274
4275 $ac_path_EGREP_found && break 3
4276 done
4277 done
4278 done
4279 IFS=$as_save_IFS
4280 if test -z "$ac_cv_path_EGREP"; then
4281 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4282 fi
4283 else
4284 ac_cv_path_EGREP=$EGREP
4285 fi
4286
4287 fi
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4290 $as_echo "$ac_cv_path_EGREP" >&6; }
4291 EGREP="$ac_cv_path_EGREP"
4292
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4295 $as_echo_n "checking for fgrep... " >&6; }
4296 if ${ac_cv_path_FGREP+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4300 then ac_cv_path_FGREP="$GREP -F"
4301 else
4302 if test -z "$FGREP"; then
4303 ac_path_FGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in fgrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 as_fn_executable_p "$ac_path_FGREP" || continue
4314 # Check for GNU ac_path_FGREP and select it if it is found.
4315 # Check for GNU $ac_path_FGREP
4316 case `"$ac_path_FGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4319 *)
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4323 do
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'FGREP' >> "conftest.nl"
4328 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 as_fn_arith $ac_count + 1 && ac_count=$as_val
4331 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_FGREP="$ac_path_FGREP"
4334 ac_path_FGREP_max=$ac_count
4335 fi
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4341
4342 $ac_path_FGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_FGREP"; then
4348 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349 fi
4350 else
4351 ac_cv_path_FGREP=$FGREP
4352 fi
4353
4354 fi
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4357 $as_echo "$ac_cv_path_FGREP" >&6; }
4358 FGREP="$ac_cv_path_FGREP"
4359
4360
4361 test -z "$GREP" && GREP=grep
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381 # Check whether --with-gnu-ld was given.
4382 if test "${with_gnu_ld+set}" = set; then :
4383 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4384 else
4385 with_gnu_ld=no
4386 fi
4387
4388 ac_prog=ld
4389 if test "$GCC" = yes; then
4390 # Check if gcc -print-prog-name=ld gives a path.
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4392 $as_echo_n "checking for ld used by $CC... " >&6; }
4393 case $host in
4394 *-*-mingw*)
4395 # gcc leaves a trailing carriage return which upsets mingw
4396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4397 *)
4398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4399 esac
4400 case $ac_prog in
4401 # Accept absolute paths.
4402 [\\/]* | ?:[\\/]*)
4403 re_direlt='/[^/][^/]*/\.\./'
4404 # Canonicalize the pathname of ld
4405 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4406 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4407 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4408 done
4409 test -z "$LD" && LD="$ac_prog"
4410 ;;
4411 "")
4412 # If it fails, then pretend we aren't using GCC.
4413 ac_prog=ld
4414 ;;
4415 *)
4416 # If it is relative, then search for the first ld in PATH.
4417 with_gnu_ld=unknown
4418 ;;
4419 esac
4420 elif test "$with_gnu_ld" = yes; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4422 $as_echo_n "checking for GNU ld... " >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4425 $as_echo_n "checking for non-GNU ld... " >&6; }
4426 fi
4427 if ${lt_cv_path_LD+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -z "$LD"; then
4431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4432 for ac_dir in $PATH; do
4433 IFS="$lt_save_ifs"
4434 test -z "$ac_dir" && ac_dir=.
4435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4436 lt_cv_path_LD="$ac_dir/$ac_prog"
4437 # Check to see if the program is GNU ld. I'd rather use --version,
4438 # but apparently some variants of GNU ld only accept -v.
4439 # Break only if it was the GNU/non-GNU ld that we prefer.
4440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4441 *GNU* | *'with BFD'*)
4442 test "$with_gnu_ld" != no && break
4443 ;;
4444 *)
4445 test "$with_gnu_ld" != yes && break
4446 ;;
4447 esac
4448 fi
4449 done
4450 IFS="$lt_save_ifs"
4451 else
4452 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4453 fi
4454 fi
4455
4456 LD="$lt_cv_path_LD"
4457 if test -n "$LD"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4459 $as_echo "$LD" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4467 if ${lt_cv_prog_gnu_ld+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4471 case `$LD -v 2>&1 </dev/null` in
4472 *GNU* | *'with BFD'*)
4473 lt_cv_prog_gnu_ld=yes
4474 ;;
4475 *)
4476 lt_cv_prog_gnu_ld=no
4477 ;;
4478 esac
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4482 with_gnu_ld=$lt_cv_prog_gnu_ld
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4493 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4494 if ${lt_cv_path_NM+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$NM"; then
4498 # Let the user override the test.
4499 lt_cv_path_NM="$NM"
4500 else
4501 lt_nm_to_check="${ac_tool_prefix}nm"
4502 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4503 lt_nm_to_check="$lt_nm_to_check nm"
4504 fi
4505 for lt_tmp_nm in $lt_nm_to_check; do
4506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4507 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4508 IFS="$lt_save_ifs"
4509 test -z "$ac_dir" && ac_dir=.
4510 tmp_nm="$ac_dir/$lt_tmp_nm"
4511 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4512 # Check to see if the nm accepts a BSD-compat flag.
4513 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4514 # nm: unknown option "B" ignored
4515 # Tru64's nm complains that /dev/null is an invalid object file
4516 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4517 */dev/null* | *'Invalid file or object type'*)
4518 lt_cv_path_NM="$tmp_nm -B"
4519 break
4520 ;;
4521 *)
4522 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4523 */dev/null*)
4524 lt_cv_path_NM="$tmp_nm -p"
4525 break
4526 ;;
4527 *)
4528 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4529 continue # so that we can try to find one that supports BSD flags
4530 ;;
4531 esac
4532 ;;
4533 esac
4534 fi
4535 done
4536 IFS="$lt_save_ifs"
4537 done
4538 : ${lt_cv_path_NM=no}
4539 fi
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4542 $as_echo "$lt_cv_path_NM" >&6; }
4543 if test "$lt_cv_path_NM" != "no"; then
4544 NM="$lt_cv_path_NM"
4545 else
4546 # Didn't find any BSD compatible name lister, look for dumpbin.
4547 if test -n "$DUMPBIN"; then :
4548 # Let the user override the test.
4549 else
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in dumpbin "link -dump"
4552 do
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_DUMPBIN+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$DUMPBIN"; then
4561 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 DUMPBIN=$ac_cv_prog_DUMPBIN
4581 if test -n "$DUMPBIN"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4583 $as_echo "$DUMPBIN" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 test -n "$DUMPBIN" && break
4591 done
4592 fi
4593 if test -z "$DUMPBIN"; then
4594 ac_ct_DUMPBIN=$DUMPBIN
4595 for ac_prog in dumpbin "link -dump"
4596 do
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$ac_ct_DUMPBIN"; then
4605 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4625 if test -n "$ac_ct_DUMPBIN"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4627 $as_echo "$ac_ct_DUMPBIN" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 test -n "$ac_ct_DUMPBIN" && break
4635 done
4636
4637 if test "x$ac_ct_DUMPBIN" = x; then
4638 DUMPBIN=":"
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4645 esac
4646 DUMPBIN=$ac_ct_DUMPBIN
4647 fi
4648 fi
4649
4650 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4651 *COFF*)
4652 DUMPBIN="$DUMPBIN -symbols"
4653 ;;
4654 *)
4655 DUMPBIN=:
4656 ;;
4657 esac
4658 fi
4659
4660 if test "$DUMPBIN" != ":"; then
4661 NM="$DUMPBIN"
4662 fi
4663 fi
4664 test -z "$NM" && NM=nm
4665
4666
4667
4668
4669
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4672 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4673 if ${lt_cv_nm_interface+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 lt_cv_nm_interface="BSD nm"
4677 echo "int some_variable = 0;" > conftest.$ac_ext
4678 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4679 (eval "$ac_compile" 2>conftest.err)
4680 cat conftest.err >&5
4681 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4682 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4683 cat conftest.err >&5
4684 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4685 cat conftest.out >&5
4686 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4687 lt_cv_nm_interface="MS dumpbin"
4688 fi
4689 rm -f conftest*
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4692 $as_echo "$lt_cv_nm_interface" >&6; }
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4695 $as_echo_n "checking whether ln -s works... " >&6; }
4696 LN_S=$as_ln_s
4697 if test "$LN_S" = "ln -s"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4699 $as_echo "yes" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4702 $as_echo "no, using $LN_S" >&6; }
4703 fi
4704
4705 # find the maximum length of command line arguments
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4707 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4708 if ${lt_cv_sys_max_cmd_len+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 i=0
4712 teststring="ABCD"
4713
4714 case $build_os in
4715 msdosdjgpp*)
4716 # On DJGPP, this test can blow up pretty badly due to problems in libc
4717 # (any single argument exceeding 2000 bytes causes a buffer overrun
4718 # during glob expansion). Even if it were fixed, the result of this
4719 # check would be larger than it should be.
4720 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4721 ;;
4722
4723 gnu*)
4724 # Under GNU Hurd, this test is not required because there is
4725 # no limit to the length of command line arguments.
4726 # Libtool will interpret -1 as no limit whatsoever
4727 lt_cv_sys_max_cmd_len=-1;
4728 ;;
4729
4730 cygwin* | mingw* | cegcc*)
4731 # On Win9x/ME, this test blows up -- it succeeds, but takes
4732 # about 5 minutes as the teststring grows exponentially.
4733 # Worse, since 9x/ME are not pre-emptively multitasking,
4734 # you end up with a "frozen" computer, even though with patience
4735 # the test eventually succeeds (with a max line length of 256k).
4736 # Instead, let's just punt: use the minimum linelength reported by
4737 # all of the supported platforms: 8192 (on NT/2K/XP).
4738 lt_cv_sys_max_cmd_len=8192;
4739 ;;
4740
4741 mint*)
4742 # On MiNT this can take a long time and run out of memory.
4743 lt_cv_sys_max_cmd_len=8192;
4744 ;;
4745
4746 amigaos*)
4747 # On AmigaOS with pdksh, this test takes hours, literally.
4748 # So we just punt and use a minimum line length of 8192.
4749 lt_cv_sys_max_cmd_len=8192;
4750 ;;
4751
4752 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4753 # This has been around since 386BSD, at least. Likely further.
4754 if test -x /sbin/sysctl; then
4755 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4756 elif test -x /usr/sbin/sysctl; then
4757 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4758 else
4759 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4760 fi
4761 # And add a safety zone
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4764 ;;
4765
4766 interix*)
4767 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4768 lt_cv_sys_max_cmd_len=196608
4769 ;;
4770
4771 os2*)
4772 # The test takes a long time on OS/2.
4773 lt_cv_sys_max_cmd_len=8192
4774 ;;
4775
4776 osf*)
4777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4779 # nice to cause kernel panics so lets avoid the loop below.
4780 # First set a reasonable default.
4781 lt_cv_sys_max_cmd_len=16384
4782 #
4783 if test -x /sbin/sysconfig; then
4784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4785 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4786 esac
4787 fi
4788 ;;
4789 sco3.2v5*)
4790 lt_cv_sys_max_cmd_len=102400
4791 ;;
4792 sysv5* | sco5v6* | sysv4.2uw2*)
4793 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4794 if test -n "$kargmax"; then
4795 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4796 else
4797 lt_cv_sys_max_cmd_len=32768
4798 fi
4799 ;;
4800 *)
4801 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4802 if test -n "$lt_cv_sys_max_cmd_len" && \
4803 test undefined != "$lt_cv_sys_max_cmd_len"; then
4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4806 else
4807 # Make teststring a little bigger before we do anything with it.
4808 # a 1K string should be a reasonable start.
4809 for i in 1 2 3 4 5 6 7 8 ; do
4810 teststring=$teststring$teststring
4811 done
4812 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4813 # If test is not a shell built-in, we'll probably end up computing a
4814 # maximum length that is only half of the actual maximum length, but
4815 # we can't tell.
4816 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4817 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4818 test $i != 17 # 1/2 MB should be enough
4819 do
4820 i=`expr $i + 1`
4821 teststring=$teststring$teststring
4822 done
4823 # Only check the string length outside the loop.
4824 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4825 teststring=
4826 # Add a significant safety factor because C++ compilers can tack on
4827 # massive amounts of additional arguments before passing them to the
4828 # linker. It appears as though 1/2 is a usable value.
4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4830 fi
4831 ;;
4832 esac
4833
4834 fi
4835
4836 if test -n $lt_cv_sys_max_cmd_len ; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4838 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4841 $as_echo "none" >&6; }
4842 fi
4843 max_cmd_len=$lt_cv_sys_max_cmd_len
4844
4845
4846
4847
4848
4849
4850 : ${CP="cp -f"}
4851 : ${MV="mv -f"}
4852 : ${RM="rm -f"}
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4855 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4856 # Try some XSI features
4857 xsi_shell=no
4858 ( _lt_dummy="a/b/c"
4859 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4860 = c,a/b,b/c, \
4861 && eval 'test $(( 1 + 1 )) -eq 2 \
4862 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4863 && xsi_shell=yes
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4865 $as_echo "$xsi_shell" >&6; }
4866
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4869 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4870 lt_shell_append=no
4871 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4872 >/dev/null 2>&1 \
4873 && lt_shell_append=yes
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4875 $as_echo "$lt_shell_append" >&6; }
4876
4877
4878 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4879 lt_unset=unset
4880 else
4881 lt_unset=false
4882 fi
4883
4884
4885
4886
4887
4888 # test EBCDIC or ASCII
4889 case `echo X|tr X '\101'` in
4890 A) # ASCII based system
4891 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4892 lt_SP2NL='tr \040 \012'
4893 lt_NL2SP='tr \015\012 \040\040'
4894 ;;
4895 *) # EBCDIC based system
4896 lt_SP2NL='tr \100 \n'
4897 lt_NL2SP='tr \r\n \100\100'
4898 ;;
4899 esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4910 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4911 if ${lt_cv_to_host_file_cmd+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 case $host in
4915 *-*-mingw* )
4916 case $build in
4917 *-*-mingw* ) # actually msys
4918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4919 ;;
4920 *-*-cygwin* )
4921 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4922 ;;
4923 * ) # otherwise, assume *nix
4924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4925 ;;
4926 esac
4927 ;;
4928 *-*-cygwin* )
4929 case $build in
4930 *-*-mingw* ) # actually msys
4931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4932 ;;
4933 *-*-cygwin* )
4934 lt_cv_to_host_file_cmd=func_convert_file_noop
4935 ;;
4936 * ) # otherwise, assume *nix
4937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4938 ;;
4939 esac
4940 ;;
4941 * ) # unhandled hosts (and "normal" native builds)
4942 lt_cv_to_host_file_cmd=func_convert_file_noop
4943 ;;
4944 esac
4945
4946 fi
4947
4948 to_host_file_cmd=$lt_cv_to_host_file_cmd
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4950 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4951
4952
4953
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4957 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4958 if ${lt_cv_to_tool_file_cmd+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 #assume ordinary cross tools, or native build.
4962 lt_cv_to_tool_file_cmd=func_convert_file_noop
4963 case $host in
4964 *-*-mingw* )
4965 case $build in
4966 *-*-mingw* ) # actually msys
4967 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4968 ;;
4969 esac
4970 ;;
4971 esac
4972
4973 fi
4974
4975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4977 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4984 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4985 if ${lt_cv_ld_reload_flag+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 lt_cv_ld_reload_flag='-r'
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4991 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4992 reload_flag=$lt_cv_ld_reload_flag
4993 case $reload_flag in
4994 "" | " "*) ;;
4995 *) reload_flag=" $reload_flag" ;;
4996 esac
4997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998 case $host_os in
4999 cygwin* | mingw* | pw32* | cegcc*)
5000 if test "$GCC" != yes; then
5001 reload_cmds=false
5002 fi
5003 ;;
5004 darwin*)
5005 if test "$GCC" = yes; then
5006 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5007 else
5008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009 fi
5010 ;;
5011 esac
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_OBJDUMP+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$OBJDUMP"; then
5030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 OBJDUMP=$ac_cv_prog_OBJDUMP
5050 if test -n "$OBJDUMP"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5052 $as_echo "$OBJDUMP" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 fi
5060 if test -z "$ac_cv_prog_OBJDUMP"; then
5061 ac_ct_OBJDUMP=$OBJDUMP
5062 # Extract the first word of "objdump", so it can be a program name with args.
5063 set dummy objdump; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$ac_ct_OBJDUMP"; then
5070 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5092 $as_echo "$ac_ct_OBJDUMP" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098 if test "x$ac_ct_OBJDUMP" = x; then
5099 OBJDUMP="false"
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5106 esac
5107 OBJDUMP=$ac_ct_OBJDUMP
5108 fi
5109 else
5110 OBJDUMP="$ac_cv_prog_OBJDUMP"
5111 fi
5112
5113 test -z "$OBJDUMP" && OBJDUMP=objdump
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5124 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5125 if ${lt_cv_deplibs_check_method+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 lt_cv_file_magic_cmd='$MAGIC_CMD'
5129 lt_cv_file_magic_test_file=
5130 lt_cv_deplibs_check_method='unknown'
5131 # Need to set the preceding variable on all platforms that support
5132 # interlibrary dependencies.
5133 # 'none' -- dependencies not supported.
5134 # `unknown' -- same as none, but documents that we really don't know.
5135 # 'pass_all' -- all dependencies passed with no checks.
5136 # 'test_compile' -- check by making test program.
5137 # 'file_magic [[regex]]' -- check by looking for files in library path
5138 # which responds to the $file_magic_cmd with a given extended regex.
5139 # If you have `file' or equivalent on your system and you're not sure
5140 # whether `pass_all' will *always* work, you probably want this one.
5141
5142 case $host_os in
5143 aix[4-9]*)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147 beos*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151 bsdi[45]*)
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5153 lt_cv_file_magic_cmd='/usr/bin/file -L'
5154 lt_cv_file_magic_test_file=/shlib/libc.so
5155 ;;
5156
5157 cygwin*)
5158 # func_win32_libid is a shell function defined in ltmain.sh
5159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160 lt_cv_file_magic_cmd='func_win32_libid'
5161 ;;
5162
5163 mingw* | pw32*)
5164 # Base MSYS/MinGW do not provide the 'file' command needed by
5165 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5166 # unless we find 'file', for example because we are cross-compiling.
5167 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5168 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5170 lt_cv_file_magic_cmd='func_win32_libid'
5171 else
5172 # Keep this pattern in sync with the one in func_win32_libid.
5173 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5174 lt_cv_file_magic_cmd='$OBJDUMP -f'
5175 fi
5176 ;;
5177
5178 cegcc*)
5179 # use the weaker test based on 'objdump'. See mingw*.
5180 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5181 lt_cv_file_magic_cmd='$OBJDUMP -f'
5182 ;;
5183
5184 darwin* | rhapsody*)
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
5187
5188 freebsd* | dragonfly*)
5189 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5190 case $host_cpu in
5191 i*86 )
5192 # Not sure whether the presence of OpenBSD here was a mistake.
5193 # Let's accept both of them until this is cleared up.
5194 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5195 lt_cv_file_magic_cmd=/usr/bin/file
5196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5197 ;;
5198 esac
5199 else
5200 lt_cv_deplibs_check_method=pass_all
5201 fi
5202 ;;
5203
5204 haiku*)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207
5208 hpux10.20* | hpux11*)
5209 lt_cv_file_magic_cmd=/usr/bin/file
5210 case $host_cpu in
5211 ia64*)
5212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5214 ;;
5215 hppa*64*)
5216 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]'
5217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5218 ;;
5219 *)
5220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5221 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5222 ;;
5223 esac
5224 ;;
5225
5226 interix[3-9]*)
5227 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5229 ;;
5230
5231 irix5* | irix6* | nonstopux*)
5232 case $LD in
5233 *-32|*"-32 ") libmagic=32-bit;;
5234 *-n32|*"-n32 ") libmagic=N32;;
5235 *-64|*"-64 ") libmagic=64-bit;;
5236 *) libmagic=never-match;;
5237 esac
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241 # This must be glibc/ELF.
5242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
5246 netbsd* | netbsdelf*-gnu)
5247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5249 else
5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5251 fi
5252 ;;
5253
5254 newos6*)
5255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5256 lt_cv_file_magic_cmd=/usr/bin/file
5257 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5258 ;;
5259
5260 *nto* | *qnx*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 openbsd*)
5265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5267 else
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269 fi
5270 ;;
5271
5272 osf3* | osf4* | osf5*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 rdos*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 solaris*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 sysv4 | sysv4.3*)
5289 case $host_vendor in
5290 motorola)
5291 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]'
5292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5293 ;;
5294 ncr)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297 sequent)
5298 lt_cv_file_magic_cmd='/bin/file'
5299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5300 ;;
5301 sni)
5302 lt_cv_file_magic_cmd='/bin/file'
5303 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5304 lt_cv_file_magic_test_file=/lib/libc.so
5305 ;;
5306 siemens)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309 pc)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312 esac
5313 ;;
5314
5315 tpf*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318 esac
5319
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5322 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5323
5324 file_magic_glob=
5325 want_nocaseglob=no
5326 if test "$build" = "$host"; then
5327 case $host_os in
5328 mingw* | pw32*)
5329 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5330 want_nocaseglob=yes
5331 else
5332 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5333 fi
5334 ;;
5335 esac
5336 fi
5337
5338 file_magic_cmd=$lt_cv_file_magic_cmd
5339 deplibs_check_method=$lt_cv_deplibs_check_method
5340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 if test -n "$ac_tool_prefix"; then
5364 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_DLLTOOL+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$DLLTOOL"; then
5372 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 DLLTOOL=$ac_cv_prog_DLLTOOL
5392 if test -n "$DLLTOOL"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5394 $as_echo "$DLLTOOL" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 fi
5402 if test -z "$ac_cv_prog_DLLTOOL"; then
5403 ac_ct_DLLTOOL=$DLLTOOL
5404 # Extract the first word of "dlltool", so it can be a program name with args.
5405 set dummy dlltool; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$ac_ct_DLLTOOL"; then
5412 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5432 if test -n "$ac_ct_DLLTOOL"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5434 $as_echo "$ac_ct_DLLTOOL" >&6; }
5435 else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440 if test "x$ac_ct_DLLTOOL" = x; then
5441 DLLTOOL="false"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 DLLTOOL=$ac_ct_DLLTOOL
5450 fi
5451 else
5452 DLLTOOL="$ac_cv_prog_DLLTOOL"
5453 fi
5454
5455 test -z "$DLLTOOL" && DLLTOOL=dlltool
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5467 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5468 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 lt_cv_sharedlib_from_linklib_cmd='unknown'
5472
5473 case $host_os in
5474 cygwin* | mingw* | pw32* | cegcc*)
5475 # two different shell functions defined in ltmain.sh
5476 # decide which to use based on capabilities of $DLLTOOL
5477 case `$DLLTOOL --help 2>&1` in
5478 *--identify-strict*)
5479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5480 ;;
5481 *)
5482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5483 ;;
5484 esac
5485 ;;
5486 *)
5487 # fallback: assume linklib IS sharedlib
5488 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5489 ;;
5490 esac
5491
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5494 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5495 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5496 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5497
5498
5499
5500
5501
5502
5503
5504
5505 if test -n "$ac_tool_prefix"; then
5506 for ac_prog in ar
5507 do
5508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_AR+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$AR"; then
5516 ac_cv_prog_AR="$AR" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5528 fi
5529 done
5530 done
5531 IFS=$as_save_IFS
5532
5533 fi
5534 fi
5535 AR=$ac_cv_prog_AR
5536 if test -n "$AR"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5538 $as_echo "$AR" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5542 fi
5543
5544
5545 test -n "$AR" && break
5546 done
5547 fi
5548 if test -z "$AR"; then
5549 ac_ct_AR=$AR
5550 for ac_prog in ar
5551 do
5552 # Extract the first word of "$ac_prog", so it can be a program name with args.
5553 set dummy $ac_prog; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$ac_ct_AR"; then
5560 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_ac_ct_AR="$ac_prog"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5580 if test -n "$ac_ct_AR"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5582 $as_echo "$ac_ct_AR" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 test -n "$ac_ct_AR" && break
5590 done
5591
5592 if test "x$ac_ct_AR" = x; then
5593 AR="false"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601 AR=$ac_ct_AR
5602 fi
5603 fi
5604
5605 : ${AR=ar}
5606 : ${AR_FLAGS=cru}
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5619 $as_echo_n "checking for archiver @FILE support... " >&6; }
5620 if ${lt_cv_ar_at_file+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 lt_cv_ar_at_file=no
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 echo conftest.$ac_objext > conftest.lst
5637 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5639 (eval $lt_ar_try) 2>&5
5640 ac_status=$?
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; }
5643 if test "$ac_status" -eq 0; then
5644 # Ensure the archiver fails upon bogus file names.
5645 rm -f conftest.$ac_objext libconftest.a
5646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5647 (eval $lt_ar_try) 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; }
5651 if test "$ac_status" -ne 0; then
5652 lt_cv_ar_at_file=@
5653 fi
5654 fi
5655 rm -f conftest.* libconftest.a
5656
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5662 $as_echo "$lt_cv_ar_at_file" >&6; }
5663
5664 if test "x$lt_cv_ar_at_file" = xno; then
5665 archiver_list_spec=
5666 else
5667 archiver_list_spec=$lt_cv_ar_at_file
5668 fi
5669
5670
5671
5672
5673
5674
5675
5676 if test -n "$ac_tool_prefix"; then
5677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5678 set dummy ${ac_tool_prefix}strip; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_STRIP+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$STRIP"; then
5685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 STRIP=$ac_cv_prog_STRIP
5705 if test -n "$STRIP"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5707 $as_echo "$STRIP" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714 fi
5715 if test -z "$ac_cv_prog_STRIP"; then
5716 ac_ct_STRIP=$STRIP
5717 # Extract the first word of "strip", so it can be a program name with args.
5718 set dummy strip; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$ac_ct_STRIP"; then
5725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_ac_ct_STRIP="strip"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5745 if test -n "$ac_ct_STRIP"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5747 $as_echo "$ac_ct_STRIP" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753 if test "x$ac_ct_STRIP" = x; then
5754 STRIP=":"
5755 else
5756 case $cross_compiling:$ac_tool_warned in
5757 yes:)
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760 ac_tool_warned=yes ;;
5761 esac
5762 STRIP=$ac_ct_STRIP
5763 fi
5764 else
5765 STRIP="$ac_cv_prog_STRIP"
5766 fi
5767
5768 test -z "$STRIP" && STRIP=:
5769
5770
5771
5772
5773
5774
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_prog_RANLIB+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 if test -n "$RANLIB"; then
5784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797 done
5798 done
5799 IFS=$as_save_IFS
5800
5801 fi
5802 fi
5803 RANLIB=$ac_cv_prog_RANLIB
5804 if test -n "$RANLIB"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5806 $as_echo "$RANLIB" >&6; }
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812
5813 fi
5814 if test -z "$ac_cv_prog_RANLIB"; then
5815 ac_ct_RANLIB=$RANLIB
5816 # Extract the first word of "ranlib", so it can be a program name with args.
5817 set dummy ranlib; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$ac_ct_RANLIB"; then
5824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_ac_ct_RANLIB="ranlib"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5844 if test -n "$ac_ct_RANLIB"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5846 $as_echo "$ac_ct_RANLIB" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852 if test "x$ac_ct_RANLIB" = x; then
5853 RANLIB=":"
5854 else
5855 case $cross_compiling:$ac_tool_warned in
5856 yes:)
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859 ac_tool_warned=yes ;;
5860 esac
5861 RANLIB=$ac_ct_RANLIB
5862 fi
5863 else
5864 RANLIB="$ac_cv_prog_RANLIB"
5865 fi
5866
5867 test -z "$RANLIB" && RANLIB=:
5868
5869
5870
5871
5872
5873
5874 # Determine commands to create old-style static archives.
5875 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5876 old_postinstall_cmds='chmod 644 $oldlib'
5877 old_postuninstall_cmds=
5878
5879 if test -n "$RANLIB"; then
5880 case $host_os in
5881 openbsd*)
5882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5883 ;;
5884 *)
5885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5886 ;;
5887 esac
5888 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5889 fi
5890
5891 case $host_os in
5892 darwin*)
5893 lock_old_archive_extraction=yes ;;
5894 *)
5895 lock_old_archive_extraction=no ;;
5896 esac
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936 # If no C compiler was specified, use CC.
5937 LTCC=${LTCC-"$CC"}
5938
5939 # If no C compiler flags were specified, use CFLAGS.
5940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5941
5942 # Allow CC to be a program name with arguments.
5943 compiler=$CC
5944
5945
5946 # Check for command to grab the raw symbol name followed by C symbol from nm.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5948 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5949 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952
5953 # These are sane defaults that work on at least a few old systems.
5954 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5955
5956 # Character class describing NM global symbol codes.
5957 symcode='[BCDEGRST]'
5958
5959 # Regexp to match symbols that can be accessed directly from C.
5960 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5961
5962 # Define system-specific variables.
5963 case $host_os in
5964 aix*)
5965 symcode='[BCDT]'
5966 ;;
5967 cygwin* | mingw* | pw32* | cegcc*)
5968 symcode='[ABCDGISTW]'
5969 ;;
5970 hpux*)
5971 if test "$host_cpu" = ia64; then
5972 symcode='[ABCDEGRST]'
5973 fi
5974 ;;
5975 irix* | nonstopux*)
5976 symcode='[BCDEGRST]'
5977 ;;
5978 osf*)
5979 symcode='[BCDEGQRST]'
5980 ;;
5981 solaris*)
5982 symcode='[BDRT]'
5983 ;;
5984 sco3.2v5*)
5985 symcode='[DT]'
5986 ;;
5987 sysv4.2uw2*)
5988 symcode='[DT]'
5989 ;;
5990 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5991 symcode='[ABDT]'
5992 ;;
5993 sysv4)
5994 symcode='[DFNSTU]'
5995 ;;
5996 esac
5997
5998 # If we're using GNU nm, then use its standard symbol codes.
5999 case `$NM -V 2>&1` in
6000 *GNU* | *'with BFD'*)
6001 symcode='[ABCDGIRSTW]' ;;
6002 esac
6003
6004 # Transform an extracted symbol line into a proper C declaration.
6005 # Some systems (esp. on ia64) link data and code symbols differently,
6006 # so use this general approach.
6007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6008
6009 # Transform an extracted symbol line into symbol name and symbol address
6010 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6011 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'"
6012
6013 # Handle CRLF in mingw tool chain
6014 opt_cr=
6015 case $build_os in
6016 mingw*)
6017 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6018 ;;
6019 esac
6020
6021 # Try without a prefix underscore, then with it.
6022 for ac_symprfx in "" "_"; do
6023
6024 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6025 symxfrm="\\1 $ac_symprfx\\2 \\2"
6026
6027 # Write the raw and C identifiers.
6028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6029 # Fake it for dumpbin and say T for any non-static function
6030 # and D for any global variable.
6031 # Also find C++ and __fastcall symbols from MSVC++,
6032 # which start with @ or ?.
6033 lt_cv_sys_global_symbol_pipe="$AWK '"\
6034 " {last_section=section; section=\$ 3};"\
6035 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6036 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6037 " \$ 0!~/External *\|/{next};"\
6038 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6039 " {if(hide[section]) next};"\
6040 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6041 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6042 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6043 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6044 " ' prfx=^$ac_symprfx"
6045 else
6046 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6047 fi
6048 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6049
6050 # Check to see that the pipe works correctly.
6051 pipe_works=no
6052
6053 rm -f conftest*
6054 cat > conftest.$ac_ext <<_LT_EOF
6055 #ifdef __cplusplus
6056 extern "C" {
6057 #endif
6058 char nm_test_var;
6059 void nm_test_func(void);
6060 void nm_test_func(void){}
6061 #ifdef __cplusplus
6062 }
6063 #endif
6064 int main(){nm_test_var='a';nm_test_func();return(0);}
6065 _LT_EOF
6066
6067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6068 (eval $ac_compile) 2>&5
6069 ac_status=$?
6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }; then
6072 # Now try to grab the symbols.
6073 nlist=conftest.nm
6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6075 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6076 ac_status=$?
6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078 test $ac_status = 0; } && test -s "$nlist"; then
6079 # Try sorting and uniquifying the output.
6080 if sort "$nlist" | uniq > "$nlist"T; then
6081 mv -f "$nlist"T "$nlist"
6082 else
6083 rm -f "$nlist"T
6084 fi
6085
6086 # Make sure that we snagged all the symbols we need.
6087 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6088 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6089 cat <<_LT_EOF > conftest.$ac_ext
6090 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6091 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6092 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6093 relocations are performed -- see ld's documentation on pseudo-relocs. */
6094 # define LT_DLSYM_CONST
6095 #elif defined(__osf__)
6096 /* This system does not cope well with relocations in const data. */
6097 # define LT_DLSYM_CONST
6098 #else
6099 # define LT_DLSYM_CONST const
6100 #endif
6101
6102 #ifdef __cplusplus
6103 extern "C" {
6104 #endif
6105
6106 _LT_EOF
6107 # Now generate the symbol file.
6108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6109
6110 cat <<_LT_EOF >> conftest.$ac_ext
6111
6112 /* The mapping between symbol names and symbols. */
6113 LT_DLSYM_CONST struct {
6114 const char *name;
6115 void *address;
6116 }
6117 lt__PROGRAM__LTX_preloaded_symbols[] =
6118 {
6119 { "@PROGRAM@", (void *) 0 },
6120 _LT_EOF
6121 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6122 cat <<\_LT_EOF >> conftest.$ac_ext
6123 {0, (void *) 0}
6124 };
6125
6126 /* This works around a problem in FreeBSD linker */
6127 #ifdef FREEBSD_WORKAROUND
6128 static const void *lt_preloaded_setup() {
6129 return lt__PROGRAM__LTX_preloaded_symbols;
6130 }
6131 #endif
6132
6133 #ifdef __cplusplus
6134 }
6135 #endif
6136 _LT_EOF
6137 # Now try linking the two files.
6138 mv conftest.$ac_objext conftstm.$ac_objext
6139 lt_globsym_save_LIBS=$LIBS
6140 lt_globsym_save_CFLAGS=$CFLAGS
6141 LIBS="conftstm.$ac_objext"
6142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6144 (eval $ac_link) 2>&5
6145 ac_status=$?
6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6148 pipe_works=yes
6149 fi
6150 LIBS=$lt_globsym_save_LIBS
6151 CFLAGS=$lt_globsym_save_CFLAGS
6152 else
6153 echo "cannot find nm_test_func in $nlist" >&5
6154 fi
6155 else
6156 echo "cannot find nm_test_var in $nlist" >&5
6157 fi
6158 else
6159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6160 fi
6161 else
6162 echo "$progname: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 fi
6165 rm -rf conftest* conftst*
6166
6167 # Do not use the global_symbol_pipe unless it works.
6168 if test "$pipe_works" = yes; then
6169 break
6170 else
6171 lt_cv_sys_global_symbol_pipe=
6172 fi
6173 done
6174
6175 fi
6176
6177 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6178 lt_cv_sys_global_symbol_to_cdecl=
6179 fi
6180 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6182 $as_echo "failed" >&6; }
6183 else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6185 $as_echo "ok" >&6; }
6186 fi
6187
6188 # Response file support.
6189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6190 nm_file_list_spec='@'
6191 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6192 nm_file_list_spec='@'
6193 fi
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6222 $as_echo_n "checking for sysroot... " >&6; }
6223
6224 # Check whether --with-sysroot was given.
6225 if test "${with_sysroot+set}" = set; then :
6226 withval=$with_sysroot;
6227 else
6228 with_sysroot=no
6229 fi
6230
6231
6232 lt_sysroot=
6233 case ${with_sysroot} in #(
6234 yes)
6235 if test "$GCC" = yes; then
6236 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6237 fi
6238 ;; #(
6239 /*)
6240 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6241 ;; #(
6242 no|'')
6243 ;; #(
6244 *)
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6246 $as_echo "${with_sysroot}" >&6; }
6247 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6248 ;;
6249 esac
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6252 $as_echo "${lt_sysroot:-no}" >&6; }
6253
6254
6255
6256
6257
6258 # Check whether --enable-libtool-lock was given.
6259 if test "${enable_libtool_lock+set}" = set; then :
6260 enableval=$enable_libtool_lock;
6261 fi
6262
6263 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6264
6265 # Some flags need to be propagated to the compiler or linker for good
6266 # libtool support.
6267 case $host in
6268 ia64-*-hpux*)
6269 # Find out which ABI we are using.
6270 echo 'int i;' > conftest.$ac_ext
6271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6272 (eval $ac_compile) 2>&5
6273 ac_status=$?
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }; then
6276 case `/usr/bin/file conftest.$ac_objext` in
6277 *ELF-32*)
6278 HPUX_IA64_MODE="32"
6279 ;;
6280 *ELF-64*)
6281 HPUX_IA64_MODE="64"
6282 ;;
6283 esac
6284 fi
6285 rm -rf conftest*
6286 ;;
6287 *-*-irix6*)
6288 # Find out which ABI we are using.
6289 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291 (eval $ac_compile) 2>&5
6292 ac_status=$?
6293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294 test $ac_status = 0; }; then
6295 if test "$lt_cv_prog_gnu_ld" = yes; then
6296 case `/usr/bin/file conftest.$ac_objext` in
6297 *32-bit*)
6298 LD="${LD-ld} -melf32bsmip"
6299 ;;
6300 *N32*)
6301 LD="${LD-ld} -melf32bmipn32"
6302 ;;
6303 *64-bit*)
6304 LD="${LD-ld} -melf64bmip"
6305 ;;
6306 esac
6307 else
6308 case `/usr/bin/file conftest.$ac_objext` in
6309 *32-bit*)
6310 LD="${LD-ld} -32"
6311 ;;
6312 *N32*)
6313 LD="${LD-ld} -n32"
6314 ;;
6315 *64-bit*)
6316 LD="${LD-ld} -64"
6317 ;;
6318 esac
6319 fi
6320 fi
6321 rm -rf conftest*
6322 ;;
6323
6324 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6325 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6326 # Find out which ABI we are using.
6327 echo 'int i;' > conftest.$ac_ext
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
6333 case `/usr/bin/file conftest.o` in
6334 *32-bit*)
6335 case $host in
6336 x86_64-*kfreebsd*-gnu)
6337 LD="${LD-ld} -m elf_i386_fbsd"
6338 ;;
6339 x86_64-*linux*)
6340 case `/usr/bin/file conftest.o` in
6341 *x86-64*)
6342 LD="${LD-ld} -m elf32_x86_64"
6343 ;;
6344 *)
6345 LD="${LD-ld} -m elf_i386"
6346 ;;
6347 esac
6348 ;;
6349 powerpc64le-*)
6350 LD="${LD-ld} -m elf32lppclinux"
6351 ;;
6352 powerpc64-*)
6353 LD="${LD-ld} -m elf32ppclinux"
6354 ;;
6355 s390x-*linux*)
6356 LD="${LD-ld} -m elf_s390"
6357 ;;
6358 sparc64-*linux*)
6359 LD="${LD-ld} -m elf32_sparc"
6360 ;;
6361 esac
6362 ;;
6363 *64-bit*)
6364 case $host in
6365 x86_64-*kfreebsd*-gnu)
6366 LD="${LD-ld} -m elf_x86_64_fbsd"
6367 ;;
6368 x86_64-*linux*)
6369 LD="${LD-ld} -m elf_x86_64"
6370 ;;
6371 powerpcle-*)
6372 LD="${LD-ld} -m elf64lppc"
6373 ;;
6374 powerpc-*)
6375 LD="${LD-ld} -m elf64ppc"
6376 ;;
6377 s390*-*linux*|s390*-*tpf*)
6378 LD="${LD-ld} -m elf64_s390"
6379 ;;
6380 sparc*-*linux*)
6381 LD="${LD-ld} -m elf64_sparc"
6382 ;;
6383 esac
6384 ;;
6385 esac
6386 fi
6387 rm -rf conftest*
6388 ;;
6389
6390 *-*-sco3.2v5*)
6391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6392 SAVE_CFLAGS="$CFLAGS"
6393 CFLAGS="$CFLAGS -belf"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6395 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6396 if ${lt_cv_cc_needs_belf+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 ac_ext=c
6400 ac_cpp='$CPP $CPPFLAGS'
6401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6404
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407
6408 int
6409 main ()
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_link "$LINENO"; then :
6417 lt_cv_cc_needs_belf=yes
6418 else
6419 lt_cv_cc_needs_belf=no
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6423 ac_ext=c
6424 ac_cpp='$CPP $CPPFLAGS'
6425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6428
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6431 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6432 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6433 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6434 CFLAGS="$SAVE_CFLAGS"
6435 fi
6436 ;;
6437 *-*solaris*)
6438 # Find out which ABI we are using.
6439 echo 'int i;' > conftest.$ac_ext
6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 case `/usr/bin/file conftest.o` in
6446 *64-bit*)
6447 case $lt_cv_prog_gnu_ld in
6448 yes*)
6449 case $host in
6450 i?86-*-solaris*)
6451 LD="${LD-ld} -m elf_x86_64"
6452 ;;
6453 sparc*-*-solaris*)
6454 LD="${LD-ld} -m elf64_sparc"
6455 ;;
6456 esac
6457 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6458 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6459 LD="${LD-ld}_sol2"
6460 fi
6461 ;;
6462 *)
6463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6464 LD="${LD-ld} -64"
6465 fi
6466 ;;
6467 esac
6468 ;;
6469 esac
6470 fi
6471 rm -rf conftest*
6472 ;;
6473 esac
6474
6475 need_locks="$enable_libtool_lock"
6476
6477 if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}mt; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$MANIFEST_TOOL"; then
6486 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6506 if test -n "$MANIFEST_TOOL"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6508 $as_echo "$MANIFEST_TOOL" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514
6515 fi
6516 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6517 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6518 # Extract the first word of "mt", so it can be a program name with args.
6519 set dummy mt; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$ac_ct_MANIFEST_TOOL"; then
6526 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6546 if test -n "$ac_ct_MANIFEST_TOOL"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6548 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6555 MANIFEST_TOOL=":"
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558 yes:)
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6564 fi
6565 else
6566 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6567 fi
6568
6569 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6571 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6572 if ${lt_cv_path_mainfest_tool+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 lt_cv_path_mainfest_tool=no
6576 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6577 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6578 cat conftest.err >&5
6579 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6580 lt_cv_path_mainfest_tool=yes
6581 fi
6582 rm -f conftest*
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6585 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6586 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6587 MANIFEST_TOOL=:
6588 fi
6589
6590
6591
6592
6593
6594
6595 case $host_os in
6596 rhapsody* | darwin*)
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 if test -n "$DSYMUTIL"; then
6606 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6626 if test -n "$DSYMUTIL"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6628 $as_echo "$DSYMUTIL" >&6; }
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634
6635 fi
6636 if test -z "$ac_cv_prog_DSYMUTIL"; then
6637 ac_ct_DSYMUTIL=$DSYMUTIL
6638 # Extract the first word of "dsymutil", so it can be a program name with args.
6639 set dummy dsymutil; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$ac_ct_DSYMUTIL"; then
6646 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6666 if test -n "$ac_ct_DSYMUTIL"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6668 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674 if test "x$ac_ct_DSYMUTIL" = x; then
6675 DSYMUTIL=":"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683 DSYMUTIL=$ac_ct_DSYMUTIL
6684 fi
6685 else
6686 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6687 fi
6688
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if ${ac_cv_prog_NMEDIT+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$NMEDIT"; then
6698 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 NMEDIT=$ac_cv_prog_NMEDIT
6718 if test -n "$NMEDIT"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6720 $as_echo "$NMEDIT" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_NMEDIT"; then
6729 ac_ct_NMEDIT=$NMEDIT
6730 # Extract the first word of "nmedit", so it can be a program name with args.
6731 set dummy nmedit; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$ac_ct_NMEDIT"; then
6738 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6758 if test -n "$ac_ct_NMEDIT"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6760 $as_echo "$ac_ct_NMEDIT" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766 if test "x$ac_ct_NMEDIT" = x; then
6767 NMEDIT=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 NMEDIT=$ac_ct_NMEDIT
6776 fi
6777 else
6778 NMEDIT="$ac_cv_prog_NMEDIT"
6779 fi
6780
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_LIPO+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$LIPO"; then
6790 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 LIPO=$ac_cv_prog_LIPO
6810 if test -n "$LIPO"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6812 $as_echo "$LIPO" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_LIPO"; then
6821 ac_ct_LIPO=$LIPO
6822 # Extract the first word of "lipo", so it can be a program name with args.
6823 set dummy lipo; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$ac_ct_LIPO"; then
6830 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_ac_ct_LIPO="lipo"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6850 if test -n "$ac_ct_LIPO"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6852 $as_echo "$ac_ct_LIPO" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858 if test "x$ac_ct_LIPO" = x; then
6859 LIPO=":"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865 ac_tool_warned=yes ;;
6866 esac
6867 LIPO=$ac_ct_LIPO
6868 fi
6869 else
6870 LIPO="$ac_cv_prog_LIPO"
6871 fi
6872
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}otool; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_OTOOL+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$OTOOL"; then
6882 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 OTOOL=$ac_cv_prog_OTOOL
6902 if test -n "$OTOOL"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6904 $as_echo "$OTOOL" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910
6911 fi
6912 if test -z "$ac_cv_prog_OTOOL"; then
6913 ac_ct_OTOOL=$OTOOL
6914 # Extract the first word of "otool", so it can be a program name with args.
6915 set dummy otool; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$ac_ct_OTOOL"; then
6922 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_ac_ct_OTOOL="otool"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6942 if test -n "$ac_ct_OTOOL"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6944 $as_echo "$ac_ct_OTOOL" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950 if test "x$ac_ct_OTOOL" = x; then
6951 OTOOL=":"
6952 else
6953 case $cross_compiling:$ac_tool_warned in
6954 yes:)
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959 OTOOL=$ac_ct_OTOOL
6960 fi
6961 else
6962 OTOOL="$ac_cv_prog_OTOOL"
6963 fi
6964
6965 if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6967 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_OTOOL64+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$OTOOL64"; then
6974 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 OTOOL64=$ac_cv_prog_OTOOL64
6994 if test -n "$OTOOL64"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6996 $as_echo "$OTOOL64" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002
7003 fi
7004 if test -z "$ac_cv_prog_OTOOL64"; then
7005 ac_ct_OTOOL64=$OTOOL64
7006 # Extract the first word of "otool64", so it can be a program name with args.
7007 set dummy otool64; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$ac_ct_OTOOL64"; then
7014 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_ac_ct_OTOOL64="otool64"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7034 if test -n "$ac_ct_OTOOL64"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7036 $as_echo "$ac_ct_OTOOL64" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042 if test "x$ac_ct_OTOOL64" = x; then
7043 OTOOL64=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046 yes:)
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 OTOOL64=$ac_ct_OTOOL64
7052 fi
7053 else
7054 OTOOL64="$ac_cv_prog_OTOOL64"
7055 fi
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7084 $as_echo_n "checking for -single_module linker flag... " >&6; }
7085 if ${lt_cv_apple_cc_single_mod+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 lt_cv_apple_cc_single_mod=no
7089 if test -z "${LT_MULTI_MODULE}"; then
7090 # By default we will add the -single_module flag. You can override
7091 # by either setting the environment variable LT_MULTI_MODULE
7092 # non-empty at configure time, or by adding -multi_module to the
7093 # link flags.
7094 rm -rf libconftest.dylib*
7095 echo "int foo(void){return 1;}" > conftest.c
7096 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7097 -dynamiclib -Wl,-single_module conftest.c" >&5
7098 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7099 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7100 _lt_result=$?
7101 # If there is a non-empty error log, and "single_module"
7102 # appears in it, assume the flag caused a linker warning
7103 if test -s conftest.err && $GREP single_module conftest.err; then
7104 cat conftest.err >&5
7105 # Otherwise, if the output was created with a 0 exit code from
7106 # the compiler, it worked.
7107 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7108 lt_cv_apple_cc_single_mod=yes
7109 else
7110 cat conftest.err >&5
7111 fi
7112 rm -rf libconftest.dylib*
7113 rm -f conftest.*
7114 fi
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7117 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7120 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7121 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 lt_cv_ld_exported_symbols_list=no
7125 save_LDFLAGS=$LDFLAGS
7126 echo "_main" > conftest.sym
7127 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130
7131 int
7132 main ()
7133 {
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_link "$LINENO"; then :
7140 lt_cv_ld_exported_symbols_list=yes
7141 else
7142 lt_cv_ld_exported_symbols_list=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146 LDFLAGS="$save_LDFLAGS"
7147
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7150 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7153 $as_echo_n "checking for -force_load linker flag... " >&6; }
7154 if ${lt_cv_ld_force_load+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 lt_cv_ld_force_load=no
7158 cat > conftest.c << _LT_EOF
7159 int forced_loaded() { return 2;}
7160 _LT_EOF
7161 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7162 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7163 echo "$AR cru libconftest.a conftest.o" >&5
7164 $AR cru libconftest.a conftest.o 2>&5
7165 echo "$RANLIB libconftest.a" >&5
7166 $RANLIB libconftest.a 2>&5
7167 cat > conftest.c << _LT_EOF
7168 int main() { return 0;}
7169 _LT_EOF
7170 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7171 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7172 _lt_result=$?
7173 if test -s conftest.err && $GREP force_load conftest.err; then
7174 cat conftest.err >&5
7175 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7176 lt_cv_ld_force_load=yes
7177 else
7178 cat conftest.err >&5
7179 fi
7180 rm -f conftest.err libconftest.a conftest conftest.c
7181 rm -rf conftest.dSYM
7182
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7185 $as_echo "$lt_cv_ld_force_load" >&6; }
7186 case $host_os in
7187 rhapsody* | darwin1.[012])
7188 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7189 darwin1.*)
7190 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7191 darwin*) # darwin 5.x on
7192 # if running on 10.5 or later, the deployment target defaults
7193 # to the OS version, if on x86, and 10.4, the deployment
7194 # target defaults to 10.4. Don't you love it?
7195 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7196 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7197 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7198 10.[012]*)
7199 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7200 10.*)
7201 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7202 esac
7203 ;;
7204 esac
7205 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7206 _lt_dar_single_mod='$single_module'
7207 fi
7208 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7209 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7210 else
7211 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7212 fi
7213 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7214 _lt_dsymutil='~$DSYMUTIL $lib || :'
7215 else
7216 _lt_dsymutil=
7217 fi
7218 ;;
7219 esac
7220
7221 ac_ext=c
7222 ac_cpp='$CPP $CPPFLAGS'
7223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7227 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7228 # On Suns, sometimes $CPP names a directory.
7229 if test -n "$CPP" && test -d "$CPP"; then
7230 CPP=
7231 fi
7232 if test -z "$CPP"; then
7233 if ${ac_cv_prog_CPP+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 # Double quotes because CPP needs to be expanded
7237 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7238 do
7239 ac_preproc_ok=false
7240 for ac_c_preproc_warn_flag in '' yes
7241 do
7242 # Use a header file that comes with gcc, so configuring glibc
7243 # with a fresh cross-compiler works.
7244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245 # <limits.h> exists even on freestanding compilers.
7246 # On the NeXT, cc -E runs the code through the compiler's parser,
7247 # not just through cpp. "Syntax error" is here to catch this case.
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #ifdef __STDC__
7251 # include <limits.h>
7252 #else
7253 # include <assert.h>
7254 #endif
7255 Syntax error
7256 _ACEOF
7257 if ac_fn_c_try_cpp "$LINENO"; then :
7258
7259 else
7260 # Broken: fails on valid input.
7261 continue
7262 fi
7263 rm -f conftest.err conftest.i conftest.$ac_ext
7264
7265 # OK, works on sane cases. Now check whether nonexistent headers
7266 # can be detected and how.
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <ac_nonexistent.h>
7270 _ACEOF
7271 if ac_fn_c_try_cpp "$LINENO"; then :
7272 # Broken: success on invalid input.
7273 continue
7274 else
7275 # Passes both tests.
7276 ac_preproc_ok=:
7277 break
7278 fi
7279 rm -f conftest.err conftest.i conftest.$ac_ext
7280
7281 done
7282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7283 rm -f conftest.i conftest.err conftest.$ac_ext
7284 if $ac_preproc_ok; then :
7285 break
7286 fi
7287
7288 done
7289 ac_cv_prog_CPP=$CPP
7290
7291 fi
7292 CPP=$ac_cv_prog_CPP
7293 else
7294 ac_cv_prog_CPP=$CPP
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7297 $as_echo "$CPP" >&6; }
7298 ac_preproc_ok=false
7299 for ac_c_preproc_warn_flag in '' yes
7300 do
7301 # Use a header file that comes with gcc, so configuring glibc
7302 # with a fresh cross-compiler works.
7303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7304 # <limits.h> exists even on freestanding compilers.
7305 # On the NeXT, cc -E runs the code through the compiler's parser,
7306 # not just through cpp. "Syntax error" is here to catch this case.
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #ifdef __STDC__
7310 # include <limits.h>
7311 #else
7312 # include <assert.h>
7313 #endif
7314 Syntax error
7315 _ACEOF
7316 if ac_fn_c_try_cpp "$LINENO"; then :
7317
7318 else
7319 # Broken: fails on valid input.
7320 continue
7321 fi
7322 rm -f conftest.err conftest.i conftest.$ac_ext
7323
7324 # OK, works on sane cases. Now check whether nonexistent headers
7325 # can be detected and how.
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328 #include <ac_nonexistent.h>
7329 _ACEOF
7330 if ac_fn_c_try_cpp "$LINENO"; then :
7331 # Broken: success on invalid input.
7332 continue
7333 else
7334 # Passes both tests.
7335 ac_preproc_ok=:
7336 break
7337 fi
7338 rm -f conftest.err conftest.i conftest.$ac_ext
7339
7340 done
7341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7342 rm -f conftest.i conftest.err conftest.$ac_ext
7343 if $ac_preproc_ok; then :
7344
7345 else
7346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7348 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7349 See \`config.log' for more details" "$LINENO" 5; }
7350 fi
7351
7352 ac_ext=c
7353 ac_cpp='$CPP $CPPFLAGS'
7354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7360 $as_echo_n "checking for ANSI C header files... " >&6; }
7361 if ${ac_cv_header_stdc+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <stdlib.h>
7367 #include <stdarg.h>
7368 #include <string.h>
7369 #include <float.h>
7370
7371 int
7372 main ()
7373 {
7374
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 ac_cv_header_stdc=yes
7381 else
7382 ac_cv_header_stdc=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385
7386 if test $ac_cv_header_stdc = yes; then
7387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 #include <string.h>
7391
7392 _ACEOF
7393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7394 $EGREP "memchr" >/dev/null 2>&1; then :
7395
7396 else
7397 ac_cv_header_stdc=no
7398 fi
7399 rm -f conftest*
7400
7401 fi
7402
7403 if test $ac_cv_header_stdc = yes; then
7404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 #include <stdlib.h>
7408
7409 _ACEOF
7410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7411 $EGREP "free" >/dev/null 2>&1; then :
7412
7413 else
7414 ac_cv_header_stdc=no
7415 fi
7416 rm -f conftest*
7417
7418 fi
7419
7420 if test $ac_cv_header_stdc = yes; then
7421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7422 if test "$cross_compiling" = yes; then :
7423 :
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 #include <ctype.h>
7428 #include <stdlib.h>
7429 #if ((' ' & 0x0FF) == 0x020)
7430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7432 #else
7433 # define ISLOWER(c) \
7434 (('a' <= (c) && (c) <= 'i') \
7435 || ('j' <= (c) && (c) <= 'r') \
7436 || ('s' <= (c) && (c) <= 'z'))
7437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7438 #endif
7439
7440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7441 int
7442 main ()
7443 {
7444 int i;
7445 for (i = 0; i < 256; i++)
7446 if (XOR (islower (i), ISLOWER (i))
7447 || toupper (i) != TOUPPER (i))
7448 return 2;
7449 return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_c_try_run "$LINENO"; then :
7453
7454 else
7455 ac_cv_header_stdc=no
7456 fi
7457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7458 conftest.$ac_objext conftest.beam conftest.$ac_ext
7459 fi
7460
7461 fi
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7464 $as_echo "$ac_cv_header_stdc" >&6; }
7465 if test $ac_cv_header_stdc = yes; then
7466
7467 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7468
7469 fi
7470
7471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7472 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7473 inttypes.h stdint.h unistd.h
7474 do :
7475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7476 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7477 "
7478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7479 cat >>confdefs.h <<_ACEOF
7480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481 _ACEOF
7482
7483 fi
7484
7485 done
7486
7487
7488 for ac_header in dlfcn.h
7489 do :
7490 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7491 "
7492 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7493 cat >>confdefs.h <<_ACEOF
7494 #define HAVE_DLFCN_H 1
7495 _ACEOF
7496
7497 fi
7498
7499 done
7500
7501
7502
7503
7504
7505 # Set options
7506
7507
7508
7509 enable_dlopen=no
7510
7511
7512 enable_win32_dll=no
7513
7514
7515 # Check whether --enable-shared was given.
7516 if test "${enable_shared+set}" = set; then :
7517 enableval=$enable_shared; p=${PACKAGE-default}
7518 case $enableval in
7519 yes) enable_shared=yes ;;
7520 no) enable_shared=no ;;
7521 *)
7522 enable_shared=no
7523 # Look at the argument we got. We use all the common list separators.
7524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7525 for pkg in $enableval; do
7526 IFS="$lt_save_ifs"
7527 if test "X$pkg" = "X$p"; then
7528 enable_shared=yes
7529 fi
7530 done
7531 IFS="$lt_save_ifs"
7532 ;;
7533 esac
7534 else
7535 enable_shared=yes
7536 fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 # Check whether --enable-static was given.
7547 if test "${enable_static+set}" = set; then :
7548 enableval=$enable_static; p=${PACKAGE-default}
7549 case $enableval in
7550 yes) enable_static=yes ;;
7551 no) enable_static=no ;;
7552 *)
7553 enable_static=no
7554 # Look at the argument we got. We use all the common list separators.
7555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7556 for pkg in $enableval; do
7557 IFS="$lt_save_ifs"
7558 if test "X$pkg" = "X$p"; then
7559 enable_static=yes
7560 fi
7561 done
7562 IFS="$lt_save_ifs"
7563 ;;
7564 esac
7565 else
7566 enable_static=yes
7567 fi
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 # Check whether --with-pic was given.
7579 if test "${with_pic+set}" = set; then :
7580 withval=$with_pic; lt_p=${PACKAGE-default}
7581 case $withval in
7582 yes|no) pic_mode=$withval ;;
7583 *)
7584 pic_mode=default
7585 # Look at the argument we got. We use all the common list separators.
7586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7587 for lt_pkg in $withval; do
7588 IFS="$lt_save_ifs"
7589 if test "X$lt_pkg" = "X$lt_p"; then
7590 pic_mode=yes
7591 fi
7592 done
7593 IFS="$lt_save_ifs"
7594 ;;
7595 esac
7596 else
7597 pic_mode=default
7598 fi
7599
7600
7601 test -z "$pic_mode" && pic_mode=default
7602
7603
7604
7605
7606
7607
7608
7609 # Check whether --enable-fast-install was given.
7610 if test "${enable_fast_install+set}" = set; then :
7611 enableval=$enable_fast_install; p=${PACKAGE-default}
7612 case $enableval in
7613 yes) enable_fast_install=yes ;;
7614 no) enable_fast_install=no ;;
7615 *)
7616 enable_fast_install=no
7617 # Look at the argument we got. We use all the common list separators.
7618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7619 for pkg in $enableval; do
7620 IFS="$lt_save_ifs"
7621 if test "X$pkg" = "X$p"; then
7622 enable_fast_install=yes
7623 fi
7624 done
7625 IFS="$lt_save_ifs"
7626 ;;
7627 esac
7628 else
7629 enable_fast_install=yes
7630 fi
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 # This can be used to rebuild libtool when needed
7643 LIBTOOL_DEPS="$ltmain"
7644
7645 # Always use our own libtool.
7646 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 test -z "$LN_S" && LN_S="ln -s"
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 if test -n "${ZSH_VERSION+set}" ; then
7693 setopt NO_GLOB_SUBST
7694 fi
7695
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7697 $as_echo_n "checking for objdir... " >&6; }
7698 if ${lt_cv_objdir+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 rm -f .libs 2>/dev/null
7702 mkdir .libs 2>/dev/null
7703 if test -d .libs; then
7704 lt_cv_objdir=.libs
7705 else
7706 # MS-DOS does not allow filenames that begin with a dot.
7707 lt_cv_objdir=_libs
7708 fi
7709 rmdir .libs 2>/dev/null
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7712 $as_echo "$lt_cv_objdir" >&6; }
7713 objdir=$lt_cv_objdir
7714
7715
7716
7717
7718
7719 cat >>confdefs.h <<_ACEOF
7720 #define LT_OBJDIR "$lt_cv_objdir/"
7721 _ACEOF
7722
7723
7724
7725
7726 case $host_os in
7727 aix3*)
7728 # AIX sometimes has problems with the GCC collect2 program. For some
7729 # reason, if we set the COLLECT_NAMES environment variable, the problems
7730 # vanish in a puff of smoke.
7731 if test "X${COLLECT_NAMES+set}" != Xset; then
7732 COLLECT_NAMES=
7733 export COLLECT_NAMES
7734 fi
7735 ;;
7736 esac
7737
7738 # Global variables:
7739 ofile=libtool
7740 can_build_shared=yes
7741
7742 # All known linkers require a `.a' archive for static linking (except MSVC,
7743 # which needs '.lib').
7744 libext=a
7745
7746 with_gnu_ld="$lt_cv_prog_gnu_ld"
7747
7748 old_CC="$CC"
7749 old_CFLAGS="$CFLAGS"
7750
7751 # Set sane defaults for various variables
7752 test -z "$CC" && CC=cc
7753 test -z "$LTCC" && LTCC=$CC
7754 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7755 test -z "$LD" && LD=ld
7756 test -z "$ac_objext" && ac_objext=o
7757
7758 for cc_temp in $compiler""; do
7759 case $cc_temp in
7760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7762 \-*) ;;
7763 *) break;;
7764 esac
7765 done
7766 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7767
7768
7769 # Only perform the check for file, if the check method requires it
7770 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7771 case $deplibs_check_method in
7772 file_magic*)
7773 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7775 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7776 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 case $MAGIC_CMD in
7780 [\\/*] | ?:[\\/]*)
7781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 lt_save_MAGIC_CMD="$MAGIC_CMD"
7785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7786 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7787 for ac_dir in $ac_dummy; do
7788 IFS="$lt_save_ifs"
7789 test -z "$ac_dir" && ac_dir=.
7790 if test -f $ac_dir/${ac_tool_prefix}file; then
7791 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7792 if test -n "$file_magic_test_file"; then
7793 case $deplibs_check_method in
7794 "file_magic "*)
7795 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7798 $EGREP "$file_magic_regex" > /dev/null; then
7799 :
7800 else
7801 cat <<_LT_EOF 1>&2
7802
7803 *** Warning: the command libtool uses to detect shared libraries,
7804 *** $file_magic_cmd, produces output that libtool cannot recognize.
7805 *** The result is that libtool may fail to recognize shared libraries
7806 *** as such. This will affect the creation of libtool libraries that
7807 *** depend on shared libraries, but programs linked with such libtool
7808 *** libraries will work regardless of this problem. Nevertheless, you
7809 *** may want to report the problem to your system manager and/or to
7810 *** [email protected]
7811
7812 _LT_EOF
7813 fi ;;
7814 esac
7815 fi
7816 break
7817 fi
7818 done
7819 IFS="$lt_save_ifs"
7820 MAGIC_CMD="$lt_save_MAGIC_CMD"
7821 ;;
7822 esac
7823 fi
7824
7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826 if test -n "$MAGIC_CMD"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7828 $as_echo "$MAGIC_CMD" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835
7836
7837
7838 if test -z "$lt_cv_path_MAGIC_CMD"; then
7839 if test -n "$ac_tool_prefix"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7841 $as_echo_n "checking for file... " >&6; }
7842 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 case $MAGIC_CMD in
7846 [\\/*] | ?:[\\/]*)
7847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 lt_save_MAGIC_CMD="$MAGIC_CMD"
7851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7853 for ac_dir in $ac_dummy; do
7854 IFS="$lt_save_ifs"
7855 test -z "$ac_dir" && ac_dir=.
7856 if test -f $ac_dir/file; then
7857 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7858 if test -n "$file_magic_test_file"; then
7859 case $deplibs_check_method in
7860 "file_magic "*)
7861 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7864 $EGREP "$file_magic_regex" > /dev/null; then
7865 :
7866 else
7867 cat <<_LT_EOF 1>&2
7868
7869 *** Warning: the command libtool uses to detect shared libraries,
7870 *** $file_magic_cmd, produces output that libtool cannot recognize.
7871 *** The result is that libtool may fail to recognize shared libraries
7872 *** as such. This will affect the creation of libtool libraries that
7873 *** depend on shared libraries, but programs linked with such libtool
7874 *** libraries will work regardless of this problem. Nevertheless, you
7875 *** may want to report the problem to your system manager and/or to
7876 *** [email protected]
7877
7878 _LT_EOF
7879 fi ;;
7880 esac
7881 fi
7882 break
7883 fi
7884 done
7885 IFS="$lt_save_ifs"
7886 MAGIC_CMD="$lt_save_MAGIC_CMD"
7887 ;;
7888 esac
7889 fi
7890
7891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7892 if test -n "$MAGIC_CMD"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7894 $as_echo "$MAGIC_CMD" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899
7900
7901 else
7902 MAGIC_CMD=:
7903 fi
7904 fi
7905
7906 fi
7907 ;;
7908 esac
7909
7910 # Use C for the default configuration in the libtool script
7911
7912 lt_save_CC="$CC"
7913 ac_ext=c
7914 ac_cpp='$CPP $CPPFLAGS'
7915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919
7920 # Source file extension for C test sources.
7921 ac_ext=c
7922
7923 # Object file extension for compiled C test sources.
7924 objext=o
7925 objext=$objext
7926
7927 # Code to be used in simple compile tests
7928 lt_simple_compile_test_code="int some_variable = 0;"
7929
7930 # Code to be used in simple link tests
7931 lt_simple_link_test_code='int main(){return(0);}'
7932
7933
7934
7935
7936
7937
7938
7939 # If no C compiler was specified, use CC.
7940 LTCC=${LTCC-"$CC"}
7941
7942 # If no C compiler flags were specified, use CFLAGS.
7943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7944
7945 # Allow CC to be a program name with arguments.
7946 compiler=$CC
7947
7948 # Save the default compiler, since it gets overwritten when the other
7949 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7950 compiler_DEFAULT=$CC
7951
7952 # save warnings/boilerplate of simple test code
7953 ac_outfile=conftest.$ac_objext
7954 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7956 _lt_compiler_boilerplate=`cat conftest.err`
7957 $RM conftest*
7958
7959 ac_outfile=conftest.$ac_objext
7960 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7962 _lt_linker_boilerplate=`cat conftest.err`
7963 $RM -r conftest*
7964
7965
7966 if test -n "$compiler"; then
7967
7968 lt_prog_compiler_no_builtin_flag=
7969
7970 if test "$GCC" = yes; then
7971 case $cc_basename in
7972 nvcc*)
7973 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7974 *)
7975 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7976 esac
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7979 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7980 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_prog_compiler_rtti_exceptions=no
7984 ac_outfile=conftest.$ac_objext
7985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7986 lt_compiler_flag="-fno-rtti -fno-exceptions"
7987 # Insert the option either (1) after the last *FLAGS variable, or
7988 # (2) before a word containing "conftest.", or (3) at the end.
7989 # Note that $ac_compile itself does not contain backslashes and begins
7990 # with a dollar sign (not a hyphen), so the echo should work correctly.
7991 # The option is referenced via a variable to avoid confusing sed.
7992 lt_compile=`echo "$ac_compile" | $SED \
7993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7995 -e 's:$: $lt_compiler_flag:'`
7996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7997 (eval "$lt_compile" 2>conftest.err)
7998 ac_status=$?
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 if (exit $ac_status) && test -s "$ac_outfile"; then
8002 # The compiler can only warn and ignore the option if not recognized
8003 # So say no if there are warnings other than the usual output.
8004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8006 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8007 lt_cv_prog_compiler_rtti_exceptions=yes
8008 fi
8009 fi
8010 $RM conftest*
8011
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8014 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8015
8016 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8017 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8018 else
8019 :
8020 fi
8021
8022 fi
8023
8024
8025
8026
8027
8028
8029 lt_prog_compiler_wl=
8030 lt_prog_compiler_pic=
8031 lt_prog_compiler_static=
8032
8033
8034 if test "$GCC" = yes; then
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_static='-static'
8037
8038 case $host_os in
8039 aix*)
8040 # All AIX code is PIC.
8041 if test "$host_cpu" = ia64; then
8042 # AIX 5 now supports IA64 processor
8043 lt_prog_compiler_static='-Bstatic'
8044 fi
8045 ;;
8046
8047 amigaos*)
8048 case $host_cpu in
8049 powerpc)
8050 # see comment about AmigaOS4 .so support
8051 lt_prog_compiler_pic='-fPIC'
8052 ;;
8053 m68k)
8054 # FIXME: we need at least 68020 code to build shared libraries, but
8055 # adding the `-m68020' flag to GCC prevents building anything better,
8056 # like `-m68040'.
8057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8058 ;;
8059 esac
8060 ;;
8061
8062 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8063 # PIC is the default for these OSes.
8064 ;;
8065
8066 mingw* | cygwin* | pw32* | os2* | cegcc*)
8067 # This hack is so that the source file can tell whether it is being
8068 # built for inclusion in a dll (and should export symbols for example).
8069 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8070 # (--disable-auto-import) libraries
8071 lt_prog_compiler_pic='-DDLL_EXPORT'
8072 ;;
8073
8074 darwin* | rhapsody*)
8075 # PIC is the default on this platform
8076 # Common symbols not allowed in MH_DYLIB files
8077 lt_prog_compiler_pic='-fno-common'
8078 ;;
8079
8080 haiku*)
8081 # PIC is the default for Haiku.
8082 # The "-static" flag exists, but is broken.
8083 lt_prog_compiler_static=
8084 ;;
8085
8086 hpux*)
8087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8089 # sets the default TLS model and affects inlining.
8090 case $host_cpu in
8091 hppa*64*)
8092 # +Z the default
8093 ;;
8094 *)
8095 lt_prog_compiler_pic='-fPIC'
8096 ;;
8097 esac
8098 ;;
8099
8100 interix[3-9]*)
8101 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8102 # Instead, we relocate shared libraries at runtime.
8103 ;;
8104
8105 msdosdjgpp*)
8106 # Just because we use GCC doesn't mean we suddenly get shared libraries
8107 # on systems that don't support them.
8108 lt_prog_compiler_can_build_shared=no
8109 enable_shared=no
8110 ;;
8111
8112 *nto* | *qnx*)
8113 # QNX uses GNU C++, but need to define -shared option too, otherwise
8114 # it will coredump.
8115 lt_prog_compiler_pic='-fPIC -shared'
8116 ;;
8117
8118 sysv4*MP*)
8119 if test -d /usr/nec; then
8120 lt_prog_compiler_pic=-Kconform_pic
8121 fi
8122 ;;
8123
8124 *)
8125 lt_prog_compiler_pic='-fPIC'
8126 ;;
8127 esac
8128
8129 case $cc_basename in
8130 nvcc*) # Cuda Compiler Driver 2.2
8131 lt_prog_compiler_wl='-Xlinker '
8132 if test -n "$lt_prog_compiler_pic"; then
8133 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8134 fi
8135 ;;
8136 esac
8137 else
8138 # PORTME Check for flag to pass linker flags through the system compiler.
8139 case $host_os in
8140 aix*)
8141 lt_prog_compiler_wl='-Wl,'
8142 if test "$host_cpu" = ia64; then
8143 # AIX 5 now supports IA64 processor
8144 lt_prog_compiler_static='-Bstatic'
8145 else
8146 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8147 fi
8148 ;;
8149
8150 mingw* | cygwin* | pw32* | os2* | cegcc*)
8151 # This hack is so that the source file can tell whether it is being
8152 # built for inclusion in a dll (and should export symbols for example).
8153 lt_prog_compiler_pic='-DDLL_EXPORT'
8154 ;;
8155
8156 hpux9* | hpux10* | hpux11*)
8157 lt_prog_compiler_wl='-Wl,'
8158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8159 # not for PA HP-UX.
8160 case $host_cpu in
8161 hppa*64*|ia64*)
8162 # +Z the default
8163 ;;
8164 *)
8165 lt_prog_compiler_pic='+Z'
8166 ;;
8167 esac
8168 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8169 lt_prog_compiler_static='${wl}-a ${wl}archive'
8170 ;;
8171
8172 irix5* | irix6* | nonstopux*)
8173 lt_prog_compiler_wl='-Wl,'
8174 # PIC (with -KPIC) is the default.
8175 lt_prog_compiler_static='-non_shared'
8176 ;;
8177
8178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8179 case $cc_basename in
8180 # old Intel for x86_64 which still supported -KPIC.
8181 ecc*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-static'
8185 ;;
8186 # icc used to be incompatible with GCC.
8187 # ICC 10 doesn't accept -KPIC any more.
8188 icc* | ifort*)
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-fPIC'
8191 lt_prog_compiler_static='-static'
8192 ;;
8193 # Lahey Fortran 8.1.
8194 lf95*)
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='--shared'
8197 lt_prog_compiler_static='--static'
8198 ;;
8199 nagfor*)
8200 # NAG Fortran compiler
8201 lt_prog_compiler_wl='-Wl,-Wl,,'
8202 lt_prog_compiler_pic='-PIC'
8203 lt_prog_compiler_static='-Bstatic'
8204 ;;
8205 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8206 # Portland Group compilers (*not* the Pentium gcc compiler,
8207 # which looks to be a dead project)
8208 lt_prog_compiler_wl='-Wl,'
8209 lt_prog_compiler_pic='-fpic'
8210 lt_prog_compiler_static='-Bstatic'
8211 ;;
8212 ccc*)
8213 lt_prog_compiler_wl='-Wl,'
8214 # All Alpha code is PIC.
8215 lt_prog_compiler_static='-non_shared'
8216 ;;
8217 xl* | bgxl* | bgf* | mpixl*)
8218 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8219 lt_prog_compiler_wl='-Wl,'
8220 lt_prog_compiler_pic='-qpic'
8221 lt_prog_compiler_static='-qstaticlink'
8222 ;;
8223 *)
8224 case `$CC -V 2>&1 | sed 5q` in
8225 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8226 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8227 lt_prog_compiler_pic='-KPIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 lt_prog_compiler_wl=''
8230 ;;
8231 *Sun\ F* | *Sun*Fortran*)
8232 lt_prog_compiler_pic='-KPIC'
8233 lt_prog_compiler_static='-Bstatic'
8234 lt_prog_compiler_wl='-Qoption ld '
8235 ;;
8236 *Sun\ C*)
8237 # Sun C 5.9
8238 lt_prog_compiler_pic='-KPIC'
8239 lt_prog_compiler_static='-Bstatic'
8240 lt_prog_compiler_wl='-Wl,'
8241 ;;
8242 *Intel*\ [CF]*Compiler*)
8243 lt_prog_compiler_wl='-Wl,'
8244 lt_prog_compiler_pic='-fPIC'
8245 lt_prog_compiler_static='-static'
8246 ;;
8247 *Portland\ Group*)
8248 lt_prog_compiler_wl='-Wl,'
8249 lt_prog_compiler_pic='-fpic'
8250 lt_prog_compiler_static='-Bstatic'
8251 ;;
8252 esac
8253 ;;
8254 esac
8255 ;;
8256
8257 newsos6)
8258 lt_prog_compiler_pic='-KPIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 ;;
8261
8262 *nto* | *qnx*)
8263 # QNX uses GNU C++, but need to define -shared option too, otherwise
8264 # it will coredump.
8265 lt_prog_compiler_pic='-fPIC -shared'
8266 ;;
8267
8268 osf3* | osf4* | osf5*)
8269 lt_prog_compiler_wl='-Wl,'
8270 # All OSF/1 code is PIC.
8271 lt_prog_compiler_static='-non_shared'
8272 ;;
8273
8274 rdos*)
8275 lt_prog_compiler_static='-non_shared'
8276 ;;
8277
8278 solaris*)
8279 lt_prog_compiler_pic='-KPIC'
8280 lt_prog_compiler_static='-Bstatic'
8281 case $cc_basename in
8282 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8283 lt_prog_compiler_wl='-Qoption ld ';;
8284 *)
8285 lt_prog_compiler_wl='-Wl,';;
8286 esac
8287 ;;
8288
8289 sunos4*)
8290 lt_prog_compiler_wl='-Qoption ld '
8291 lt_prog_compiler_pic='-PIC'
8292 lt_prog_compiler_static='-Bstatic'
8293 ;;
8294
8295 sysv4 | sysv4.2uw2* | sysv4.3*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-Bstatic'
8299 ;;
8300
8301 sysv4*MP*)
8302 if test -d /usr/nec ;then
8303 lt_prog_compiler_pic='-Kconform_pic'
8304 lt_prog_compiler_static='-Bstatic'
8305 fi
8306 ;;
8307
8308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-KPIC'
8311 lt_prog_compiler_static='-Bstatic'
8312 ;;
8313
8314 unicos*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_can_build_shared=no
8317 ;;
8318
8319 uts4*)
8320 lt_prog_compiler_pic='-pic'
8321 lt_prog_compiler_static='-Bstatic'
8322 ;;
8323
8324 *)
8325 lt_prog_compiler_can_build_shared=no
8326 ;;
8327 esac
8328 fi
8329
8330 case $host_os in
8331 # For platforms which do not support PIC, -DPIC is meaningless:
8332 *djgpp*)
8333 lt_prog_compiler_pic=
8334 ;;
8335 *)
8336 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8337 ;;
8338 esac
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8341 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8342 if ${lt_cv_prog_compiler_pic+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8348 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8349 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8350
8351 #
8352 # Check to make sure the PIC flag actually works.
8353 #
8354 if test -n "$lt_prog_compiler_pic"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8356 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8357 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 lt_cv_prog_compiler_pic_works=no
8361 ac_outfile=conftest.$ac_objext
8362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8363 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8364 # Insert the option either (1) after the last *FLAGS variable, or
8365 # (2) before a word containing "conftest.", or (3) at the end.
8366 # Note that $ac_compile itself does not contain backslashes and begins
8367 # with a dollar sign (not a hyphen), so the echo should work correctly.
8368 # The option is referenced via a variable to avoid confusing sed.
8369 lt_compile=`echo "$ac_compile" | $SED \
8370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8372 -e 's:$: $lt_compiler_flag:'`
8373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8374 (eval "$lt_compile" 2>conftest.err)
8375 ac_status=$?
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 if (exit $ac_status) && test -s "$ac_outfile"; then
8379 # The compiler can only warn and ignore the option if not recognized
8380 # So say no if there are warnings other than the usual output.
8381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8384 lt_cv_prog_compiler_pic_works=yes
8385 fi
8386 fi
8387 $RM conftest*
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8391 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8392
8393 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8394 case $lt_prog_compiler_pic in
8395 "" | " "*) ;;
8396 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8397 esac
8398 else
8399 lt_prog_compiler_pic=
8400 lt_prog_compiler_can_build_shared=no
8401 fi
8402
8403 fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415 #
8416 # Check to make sure the static flag actually works.
8417 #
8418 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8420 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8421 if ${lt_cv_prog_compiler_static_works+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 lt_cv_prog_compiler_static_works=no
8425 save_LDFLAGS="$LDFLAGS"
8426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8429 # The linker can only warn and ignore the option if not recognized
8430 # So say no if there are warnings
8431 if test -s conftest.err; then
8432 # Append any errors to the config.log.
8433 cat conftest.err 1>&5
8434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8436 if diff conftest.exp conftest.er2 >/dev/null; then
8437 lt_cv_prog_compiler_static_works=yes
8438 fi
8439 else
8440 lt_cv_prog_compiler_static_works=yes
8441 fi
8442 fi
8443 $RM -r conftest*
8444 LDFLAGS="$save_LDFLAGS"
8445
8446 fi
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8448 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8449
8450 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8451 :
8452 else
8453 lt_prog_compiler_static=
8454 fi
8455
8456
8457
8458
8459
8460
8461
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8464 if ${lt_cv_prog_compiler_c_o+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 lt_cv_prog_compiler_c_o=no
8468 $RM -r conftest 2>/dev/null
8469 mkdir conftest
8470 cd conftest
8471 mkdir out
8472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8473
8474 lt_compiler_flag="-o out/conftest2.$ac_objext"
8475 # Insert the option either (1) after the last *FLAGS variable, or
8476 # (2) before a word containing "conftest.", or (3) at the end.
8477 # Note that $ac_compile itself does not contain backslashes and begins
8478 # with a dollar sign (not a hyphen), so the echo should work correctly.
8479 lt_compile=`echo "$ac_compile" | $SED \
8480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8482 -e 's:$: $lt_compiler_flag:'`
8483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8484 (eval "$lt_compile" 2>out/conftest.err)
8485 ac_status=$?
8486 cat out/conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8489 then
8490 # The compiler can only warn and ignore the option if not recognized
8491 # So say no if there are warnings
8492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8495 lt_cv_prog_compiler_c_o=yes
8496 fi
8497 fi
8498 chmod u+w . 2>&5
8499 $RM conftest*
8500 # SGI C++ compiler will create directory out/ii_files/ for
8501 # template instantiation
8502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8503 $RM out/* && rmdir out
8504 cd ..
8505 $RM -r conftest
8506 $RM conftest*
8507
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8511
8512
8513
8514
8515
8516
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8519 if ${lt_cv_prog_compiler_c_o+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_c_o=no
8523 $RM -r conftest 2>/dev/null
8524 mkdir conftest
8525 cd conftest
8526 mkdir out
8527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8528
8529 lt_compiler_flag="-o out/conftest2.$ac_objext"
8530 # Insert the option either (1) after the last *FLAGS variable, or
8531 # (2) before a word containing "conftest.", or (3) at the end.
8532 # Note that $ac_compile itself does not contain backslashes and begins
8533 # with a dollar sign (not a hyphen), so the echo should work correctly.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
8538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8539 (eval "$lt_compile" 2>out/conftest.err)
8540 ac_status=$?
8541 cat out/conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8544 then
8545 # The compiler can only warn and ignore the option if not recognized
8546 # So say no if there are warnings
8547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8550 lt_cv_prog_compiler_c_o=yes
8551 fi
8552 fi
8553 chmod u+w . 2>&5
8554 $RM conftest*
8555 # SGI C++ compiler will create directory out/ii_files/ for
8556 # template instantiation
8557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8558 $RM out/* && rmdir out
8559 cd ..
8560 $RM -r conftest
8561 $RM conftest*
8562
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8565 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8566
8567
8568
8569
8570 hard_links="nottested"
8571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8572 # do not overwrite the value of need_locks provided by the user
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8574 $as_echo_n "checking if we can lock with hard links... " >&6; }
8575 hard_links=yes
8576 $RM conftest*
8577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8578 touch conftest.a
8579 ln conftest.a conftest.b 2>&5 || hard_links=no
8580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8582 $as_echo "$hard_links" >&6; }
8583 if test "$hard_links" = no; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8586 need_locks=warn
8587 fi
8588 else
8589 need_locks=no
8590 fi
8591
8592
8593
8594
8595
8596
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8599
8600 runpath_var=
8601 allow_undefined_flag=
8602 always_export_symbols=no
8603 archive_cmds=
8604 archive_expsym_cmds=
8605 compiler_needs_object=no
8606 enable_shared_with_static_runtimes=no
8607 export_dynamic_flag_spec=
8608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8609 hardcode_automatic=no
8610 hardcode_direct=no
8611 hardcode_direct_absolute=no
8612 hardcode_libdir_flag_spec=
8613 hardcode_libdir_separator=
8614 hardcode_minus_L=no
8615 hardcode_shlibpath_var=unsupported
8616 inherit_rpath=no
8617 link_all_deplibs=unknown
8618 module_cmds=
8619 module_expsym_cmds=
8620 old_archive_from_new_cmds=
8621 old_archive_from_expsyms_cmds=
8622 thread_safe_flag_spec=
8623 whole_archive_flag_spec=
8624 # include_expsyms should be a list of space-separated symbols to be *always*
8625 # included in the symbol list
8626 include_expsyms=
8627 # exclude_expsyms can be an extended regexp of symbols to exclude
8628 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8629 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8630 # as well as any symbol that contains `d'.
8631 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8633 # platforms (ab)use it in PIC code, but their linkers get confused if
8634 # the symbol is explicitly referenced. Since portable code cannot
8635 # rely on this symbol name, it's probably fine to never include it in
8636 # preloaded symbol tables.
8637 # Exclude shared library initialization/finalization symbols.
8638 extract_expsyms_cmds=
8639
8640 case $host_os in
8641 cygwin* | mingw* | pw32* | cegcc*)
8642 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8643 # When not using gcc, we currently assume that we are using
8644 # Microsoft Visual C++.
8645 if test "$GCC" != yes; then
8646 with_gnu_ld=no
8647 fi
8648 ;;
8649 interix*)
8650 # we just hope/assume this is gcc and not c89 (= MSVC++)
8651 with_gnu_ld=yes
8652 ;;
8653 openbsd*)
8654 with_gnu_ld=no
8655 ;;
8656 linux* | k*bsd*-gnu | gnu*)
8657 link_all_deplibs=no
8658 ;;
8659 esac
8660
8661 ld_shlibs=yes
8662
8663 # On some targets, GNU ld is compatible enough with the native linker
8664 # that we're better off using the native interface for both.
8665 lt_use_gnu_ld_interface=no
8666 if test "$with_gnu_ld" = yes; then
8667 case $host_os in
8668 aix*)
8669 # The AIX port of GNU ld has always aspired to compatibility
8670 # with the native linker. However, as the warning in the GNU ld
8671 # block says, versions before 2.19.5* couldn't really create working
8672 # shared libraries, regardless of the interface used.
8673 case `$LD -v 2>&1` in
8674 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8675 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8676 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8677 *)
8678 lt_use_gnu_ld_interface=yes
8679 ;;
8680 esac
8681 ;;
8682 *)
8683 lt_use_gnu_ld_interface=yes
8684 ;;
8685 esac
8686 fi
8687
8688 if test "$lt_use_gnu_ld_interface" = yes; then
8689 # If archive_cmds runs LD, not CC, wlarc should be empty
8690 wlarc='${wl}'
8691
8692 # Set some defaults for GNU ld with shared library support. These
8693 # are reset later if shared libraries are not supported. Putting them
8694 # here allows them to be overridden if necessary.
8695 runpath_var=LD_RUN_PATH
8696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697 export_dynamic_flag_spec='${wl}--export-dynamic'
8698 # ancient GNU ld didn't support --whole-archive et. al.
8699 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8700 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8701 else
8702 whole_archive_flag_spec=
8703 fi
8704 supports_anon_versioning=no
8705 case `$LD -v 2>&1` in
8706 *GNU\ gold*) supports_anon_versioning=yes ;;
8707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8710 *\ 2.11.*) ;; # other 2.11 versions
8711 *) supports_anon_versioning=yes ;;
8712 esac
8713
8714 # See if GNU ld supports shared libraries.
8715 case $host_os in
8716 aix[3-9]*)
8717 # On AIX/PPC, the GNU linker is very broken
8718 if test "$host_cpu" != ia64; then
8719 ld_shlibs=no
8720 cat <<_LT_EOF 1>&2
8721
8722 *** Warning: the GNU linker, at least up to release 2.19, is reported
8723 *** to be unable to reliably create shared libraries on AIX.
8724 *** Therefore, libtool is disabling shared libraries support. If you
8725 *** really care for shared libraries, you may want to install binutils
8726 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8727 *** You will then need to restart the configuration process.
8728
8729 _LT_EOF
8730 fi
8731 ;;
8732
8733 amigaos*)
8734 case $host_cpu in
8735 powerpc)
8736 # see comment about AmigaOS4 .so support
8737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8738 archive_expsym_cmds=''
8739 ;;
8740 m68k)
8741 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)'
8742 hardcode_libdir_flag_spec='-L$libdir'
8743 hardcode_minus_L=yes
8744 ;;
8745 esac
8746 ;;
8747
8748 beos*)
8749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8750 allow_undefined_flag=unsupported
8751 # Joseph Beckenbach <[email protected]> says some releases of gcc
8752 # support --undefined. This deserves some investigation. FIXME
8753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8754 else
8755 ld_shlibs=no
8756 fi
8757 ;;
8758
8759 cygwin* | mingw* | pw32* | cegcc*)
8760 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8761 # as there is no search path for DLLs.
8762 hardcode_libdir_flag_spec='-L$libdir'
8763 export_dynamic_flag_spec='${wl}--export-all-symbols'
8764 allow_undefined_flag=unsupported
8765 always_export_symbols=no
8766 enable_shared_with_static_runtimes=yes
8767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8768 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8769
8770 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8772 # If the export-symbols file already is a .def file (1st line
8773 # is EXPORTS), use it as is; otherwise, prepend...
8774 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8775 cp $export_symbols $output_objdir/$soname.def;
8776 else
8777 echo EXPORTS > $output_objdir/$soname.def;
8778 cat $export_symbols >> $output_objdir/$soname.def;
8779 fi~
8780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8781 else
8782 ld_shlibs=no
8783 fi
8784 ;;
8785
8786 haiku*)
8787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 link_all_deplibs=yes
8789 ;;
8790
8791 interix[3-9]*)
8792 hardcode_direct=no
8793 hardcode_shlibpath_var=no
8794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 export_dynamic_flag_spec='${wl}-E'
8796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8797 # Instead, shared libraries are loaded at an image base (0x10000000 by
8798 # default) and relocated if they conflict, which is a slow very memory
8799 # consuming and fragmenting process. To avoid this, we pick a random,
8800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8803 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'
8804 ;;
8805
8806 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8807 tmp_diet=no
8808 if test "$host_os" = linux-dietlibc; then
8809 case $cc_basename in
8810 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8811 esac
8812 fi
8813 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8814 && test "$tmp_diet" = no
8815 then
8816 tmp_addflag=' $pic_flag'
8817 tmp_sharedflag='-shared'
8818 case $cc_basename,$host_cpu in
8819 pgcc*) # Portland Group C compiler
8820 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'
8821 tmp_addflag=' $pic_flag'
8822 ;;
8823 pgf77* | pgf90* | pgf95* | pgfortran*)
8824 # Portland Group f77 and f90 compilers
8825 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'
8826 tmp_addflag=' $pic_flag -Mnomain' ;;
8827 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8828 tmp_addflag=' -i_dynamic' ;;
8829 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8830 tmp_addflag=' -i_dynamic -nofor_main' ;;
8831 ifc* | ifort*) # Intel Fortran compiler
8832 tmp_addflag=' -nofor_main' ;;
8833 lf95*) # Lahey Fortran 8.1
8834 whole_archive_flag_spec=
8835 tmp_sharedflag='--shared' ;;
8836 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8837 tmp_sharedflag='-qmkshrobj'
8838 tmp_addflag= ;;
8839 nvcc*) # Cuda Compiler Driver 2.2
8840 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'
8841 compiler_needs_object=yes
8842 ;;
8843 esac
8844 case `$CC -V 2>&1 | sed 5q` in
8845 *Sun\ C*) # Sun C 5.9
8846 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'
8847 compiler_needs_object=yes
8848 tmp_sharedflag='-G' ;;
8849 *Sun\ F*) # Sun Fortran 8.3
8850 tmp_sharedflag='-G' ;;
8851 esac
8852 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853
8854 if test "x$supports_anon_versioning" = xyes; then
8855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8857 echo "local: *; };" >> $output_objdir/$libname.ver~
8858 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8859 fi
8860
8861 case $cc_basename in
8862 xlf* | bgf* | bgxlf* | mpixlf*)
8863 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8864 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8867 if test "x$supports_anon_versioning" = xyes; then
8868 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8870 echo "local: *; };" >> $output_objdir/$libname.ver~
8871 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8872 fi
8873 ;;
8874 esac
8875 else
8876 ld_shlibs=no
8877 fi
8878 ;;
8879
8880 netbsd* | netbsdelf*-gnu)
8881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8882 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8883 wlarc=
8884 else
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8887 fi
8888 ;;
8889
8890 solaris*)
8891 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8892 ld_shlibs=no
8893 cat <<_LT_EOF 1>&2
8894
8895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8896 *** create shared libraries on Solaris systems. Therefore, libtool
8897 *** is disabling shared libraries support. We urge you to upgrade GNU
8898 *** binutils to release 2.9.1 or newer. Another option is to modify
8899 *** your PATH or compiler configuration so that the native linker is
8900 *** used, and then restart.
8901
8902 _LT_EOF
8903 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8906 else
8907 ld_shlibs=no
8908 fi
8909 ;;
8910
8911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8912 case `$LD -v 2>&1` in
8913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8914 ld_shlibs=no
8915 cat <<_LT_EOF 1>&2
8916
8917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8918 *** reliably create shared libraries on SCO systems. Therefore, libtool
8919 *** is disabling shared libraries support. We urge you to upgrade GNU
8920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8921 *** your PATH or compiler configuration so that the native linker is
8922 *** used, and then restart.
8923
8924 _LT_EOF
8925 ;;
8926 *)
8927 # For security reasons, it is highly recommended that you always
8928 # use absolute paths for naming shared libraries, and exclude the
8929 # DT_RUNPATH tag from executables and libraries. But doing so
8930 # requires that you compile everything twice, which is a pain.
8931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8935 else
8936 ld_shlibs=no
8937 fi
8938 ;;
8939 esac
8940 ;;
8941
8942 sunos4*)
8943 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8944 wlarc=
8945 hardcode_direct=yes
8946 hardcode_shlibpath_var=no
8947 ;;
8948
8949 *)
8950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8953 else
8954 ld_shlibs=no
8955 fi
8956 ;;
8957 esac
8958
8959 if test "$ld_shlibs" = no; then
8960 runpath_var=
8961 hardcode_libdir_flag_spec=
8962 export_dynamic_flag_spec=
8963 whole_archive_flag_spec=
8964 fi
8965 else
8966 # PORTME fill in a description of your system's linker (not GNU ld)
8967 case $host_os in
8968 aix3*)
8969 allow_undefined_flag=unsupported
8970 always_export_symbols=yes
8971 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'
8972 # Note: this linker hardcodes the directories in LIBPATH if there
8973 # are no directories specified by -L.
8974 hardcode_minus_L=yes
8975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8976 # Neither direct hardcoding nor static linking is supported with a
8977 # broken collect2.
8978 hardcode_direct=unsupported
8979 fi
8980 ;;
8981
8982 aix[4-9]*)
8983 if test "$host_cpu" = ia64; then
8984 # On IA64, the linker does run time linking by default, so we don't
8985 # have to do anything special.
8986 aix_use_runtimelinking=no
8987 exp_sym_flag='-Bexport'
8988 no_entry_flag=""
8989 else
8990 # If we're using GNU nm, then we don't want the "-C" option.
8991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8992 # Also, AIX nm treats weak defined symbols like other global
8993 # defined symbols, whereas GNU nm marks them as "W".
8994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8995 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'
8996 else
8997 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'
8998 fi
8999 aix_use_runtimelinking=no
9000
9001 # Test if we are trying to use run time linking or normal
9002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9003 # need to do runtime linking.
9004 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9005 for ld_flag in $LDFLAGS; do
9006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9007 aix_use_runtimelinking=yes
9008 break
9009 fi
9010 done
9011 ;;
9012 esac
9013
9014 exp_sym_flag='-bexport'
9015 no_entry_flag='-bnoentry'
9016 fi
9017
9018 # When large executables or shared objects are built, AIX ld can
9019 # have problems creating the table of contents. If linking a library
9020 # or program results in "error TOC overflow" add -mminimal-toc to
9021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9023
9024 archive_cmds=''
9025 hardcode_direct=yes
9026 hardcode_direct_absolute=yes
9027 hardcode_libdir_separator=':'
9028 link_all_deplibs=yes
9029 file_list_spec='${wl}-f,'
9030
9031 if test "$GCC" = yes; then
9032 case $host_os in aix4.[012]|aix4.[012].*)
9033 # We only want to do this on AIX 4.2 and lower, the check
9034 # below for broken collect2 doesn't work under 4.3+
9035 collect2name=`${CC} -print-prog-name=collect2`
9036 if test -f "$collect2name" &&
9037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9038 then
9039 # We have reworked collect2
9040 :
9041 else
9042 # We have old collect2
9043 hardcode_direct=unsupported
9044 # It fails to find uninstalled libraries when the uninstalled
9045 # path is not listed in the libpath. Setting hardcode_minus_L
9046 # to unsupported forces relinking
9047 hardcode_minus_L=yes
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 hardcode_libdir_separator=
9050 fi
9051 ;;
9052 esac
9053 shared_flag='-shared'
9054 if test "$aix_use_runtimelinking" = yes; then
9055 shared_flag="$shared_flag "'${wl}-G'
9056 fi
9057 link_all_deplibs=no
9058 else
9059 # not using gcc
9060 if test "$host_cpu" = ia64; then
9061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9062 # chokes on -Wl,-G. The following line is correct:
9063 shared_flag='-G'
9064 else
9065 if test "$aix_use_runtimelinking" = yes; then
9066 shared_flag='${wl}-G'
9067 else
9068 shared_flag='${wl}-bM:SRE'
9069 fi
9070 fi
9071 fi
9072
9073 export_dynamic_flag_spec='${wl}-bexpall'
9074 # It seems that -bexpall does not export symbols beginning with
9075 # underscore (_), so it is better to generate a list of symbols to export.
9076 always_export_symbols=yes
9077 if test "$aix_use_runtimelinking" = yes; then
9078 # Warning - without using the other runtime loading flags (-brtl),
9079 # -berok will link without error, but may produce a broken library.
9080 allow_undefined_flag='-berok'
9081 # Determine the default libpath from the value encoded in an
9082 # empty executable.
9083 if test "${lt_cv_aix_libpath+set}" = set; then
9084 aix_libpath=$lt_cv_aix_libpath
9085 else
9086 if ${lt_cv_aix_libpath_+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091
9092 int
9093 main ()
9094 {
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_link "$LINENO"; then :
9101
9102 lt_aix_libpath_sed='
9103 /Import File Strings/,/^$/ {
9104 /^0/ {
9105 s/^0 *\([^ ]*\) *$/\1/
9106 p
9107 }
9108 }'
9109 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9110 # Check for a 64-bit object if we didn't find anything.
9111 if test -z "$lt_cv_aix_libpath_"; then
9112 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9113 fi
9114 fi
9115 rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117 if test -z "$lt_cv_aix_libpath_"; then
9118 lt_cv_aix_libpath_="/usr/lib:/lib"
9119 fi
9120
9121 fi
9122
9123 aix_libpath=$lt_cv_aix_libpath_
9124 fi
9125
9126 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9127 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"
9128 else
9129 if test "$host_cpu" = ia64; then
9130 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9131 allow_undefined_flag="-z nodefs"
9132 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"
9133 else
9134 # Determine the default libpath from the value encoded in an
9135 # empty executable.
9136 if test "${lt_cv_aix_libpath+set}" = set; then
9137 aix_libpath=$lt_cv_aix_libpath
9138 else
9139 if ${lt_cv_aix_libpath_+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144
9145 int
9146 main ()
9147 {
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"; then :
9154
9155 lt_aix_libpath_sed='
9156 /Import File Strings/,/^$/ {
9157 /^0/ {
9158 s/^0 *\([^ ]*\) *$/\1/
9159 p
9160 }
9161 }'
9162 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9163 # Check for a 64-bit object if we didn't find anything.
9164 if test -z "$lt_cv_aix_libpath_"; then
9165 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9166 fi
9167 fi
9168 rm -f core conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
9170 if test -z "$lt_cv_aix_libpath_"; then
9171 lt_cv_aix_libpath_="/usr/lib:/lib"
9172 fi
9173
9174 fi
9175
9176 aix_libpath=$lt_cv_aix_libpath_
9177 fi
9178
9179 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9180 # Warning - without using the other run time loading flags,
9181 # -berok will link without error, but may produce a broken library.
9182 no_undefined_flag=' ${wl}-bernotok'
9183 allow_undefined_flag=' ${wl}-berok'
9184 if test "$with_gnu_ld" = yes; then
9185 # We only use this code for GNU lds that support --whole-archive.
9186 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9187 else
9188 # Exported symbols can be pulled into shared objects from archives
9189 whole_archive_flag_spec='$convenience'
9190 fi
9191 archive_cmds_need_lc=yes
9192 # This is similar to how AIX traditionally builds its shared libraries.
9193 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'
9194 fi
9195 fi
9196 ;;
9197
9198 amigaos*)
9199 case $host_cpu in
9200 powerpc)
9201 # see comment about AmigaOS4 .so support
9202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203 archive_expsym_cmds=''
9204 ;;
9205 m68k)
9206 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)'
9207 hardcode_libdir_flag_spec='-L$libdir'
9208 hardcode_minus_L=yes
9209 ;;
9210 esac
9211 ;;
9212
9213 bsdi[45]*)
9214 export_dynamic_flag_spec=-rdynamic
9215 ;;
9216
9217 cygwin* | mingw* | pw32* | cegcc*)
9218 # When not using gcc, we currently assume that we are using
9219 # Microsoft Visual C++.
9220 # hardcode_libdir_flag_spec is actually meaningless, as there is
9221 # no search path for DLLs.
9222 case $cc_basename in
9223 cl*)
9224 # Native MSVC
9225 hardcode_libdir_flag_spec=' '
9226 allow_undefined_flag=unsupported
9227 always_export_symbols=yes
9228 file_list_spec='@'
9229 # Tell ltmain to make .lib files, not .a files.
9230 libext=lib
9231 # Tell ltmain to make .dll files, not .so files.
9232 shrext_cmds=".dll"
9233 # FIXME: Setting linknames here is a bad hack.
9234 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9235 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9236 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9237 else
9238 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9239 fi~
9240 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9241 linknames='
9242 # The linker will not automatically build a static lib if we build a DLL.
9243 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9244 enable_shared_with_static_runtimes=yes
9245 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9247 # Don't use ranlib
9248 old_postinstall_cmds='chmod 644 $oldlib'
9249 postlink_cmds='lt_outputfile="@OUTPUT@"~
9250 lt_tool_outputfile="@TOOL_OUTPUT@"~
9251 case $lt_outputfile in
9252 *.exe|*.EXE) ;;
9253 *)
9254 lt_outputfile="$lt_outputfile.exe"
9255 lt_tool_outputfile="$lt_tool_outputfile.exe"
9256 ;;
9257 esac~
9258 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9259 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9260 $RM "$lt_outputfile.manifest";
9261 fi'
9262 ;;
9263 *)
9264 # Assume MSVC wrapper
9265 hardcode_libdir_flag_spec=' '
9266 allow_undefined_flag=unsupported
9267 # Tell ltmain to make .lib files, not .a files.
9268 libext=lib
9269 # Tell ltmain to make .dll files, not .so files.
9270 shrext_cmds=".dll"
9271 # FIXME: Setting linknames here is a bad hack.
9272 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9273 # The linker will automatically build a .lib file if we build a DLL.
9274 old_archive_from_new_cmds='true'
9275 # FIXME: Should let the user specify the lib program.
9276 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9277 enable_shared_with_static_runtimes=yes
9278 ;;
9279 esac
9280 ;;
9281
9282 darwin* | rhapsody*)
9283
9284
9285 archive_cmds_need_lc=no
9286 hardcode_direct=no
9287 hardcode_automatic=yes
9288 hardcode_shlibpath_var=unsupported
9289 if test "$lt_cv_ld_force_load" = "yes"; then
9290 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\"`'
9291
9292 else
9293 whole_archive_flag_spec=''
9294 fi
9295 link_all_deplibs=yes
9296 allow_undefined_flag="$_lt_dar_allow_undefined"
9297 case $cc_basename in
9298 ifort*) _lt_dar_can_shared=yes ;;
9299 *) _lt_dar_can_shared=$GCC ;;
9300 esac
9301 if test "$_lt_dar_can_shared" = "yes"; then
9302 output_verbose_link_cmd=func_echo_all
9303 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9304 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9305 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}"
9306 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}"
9307
9308 else
9309 ld_shlibs=no
9310 fi
9311
9312 ;;
9313
9314 dgux*)
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9321 # support. Future versions do this automatically, but an explicit c++rt0.o
9322 # does not break anything, and helps significantly (at the cost of a little
9323 # extra space).
9324 freebsd2.2*)
9325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9326 hardcode_libdir_flag_spec='-R$libdir'
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9329 ;;
9330
9331 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9332 freebsd2.*)
9333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9334 hardcode_direct=yes
9335 hardcode_minus_L=yes
9336 hardcode_shlibpath_var=no
9337 ;;
9338
9339 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9340 freebsd* | dragonfly*)
9341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_direct=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 hpux9*)
9348 if test "$GCC" = yes; then
9349 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9350 else
9351 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'
9352 fi
9353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 hardcode_direct=yes
9356
9357 # hardcode_minus_L: Not really in the search PATH,
9358 # but as the default location of the library.
9359 hardcode_minus_L=yes
9360 export_dynamic_flag_spec='${wl}-E'
9361 ;;
9362
9363 hpux10*)
9364 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9365 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9366 else
9367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9368 fi
9369 if test "$with_gnu_ld" = no; then
9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator=:
9372 hardcode_direct=yes
9373 hardcode_direct_absolute=yes
9374 export_dynamic_flag_spec='${wl}-E'
9375 # hardcode_minus_L: Not really in the search PATH,
9376 # but as the default location of the library.
9377 hardcode_minus_L=yes
9378 fi
9379 ;;
9380
9381 hpux11*)
9382 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9383 case $host_cpu in
9384 hppa*64*)
9385 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 ;;
9387 ia64*)
9388 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9389 ;;
9390 *)
9391 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9392 ;;
9393 esac
9394 else
9395 case $host_cpu in
9396 hppa*64*)
9397 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 ;;
9399 ia64*)
9400 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9401 ;;
9402 *)
9403
9404 # Older versions of the 11.00 compiler do not understand -b yet
9405 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9407 $as_echo_n "checking if $CC understands -b... " >&6; }
9408 if ${lt_cv_prog_compiler__b+:} false; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 lt_cv_prog_compiler__b=no
9412 save_LDFLAGS="$LDFLAGS"
9413 LDFLAGS="$LDFLAGS -b"
9414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9416 # The linker can only warn and ignore the option if not recognized
9417 # So say no if there are warnings
9418 if test -s conftest.err; then
9419 # Append any errors to the config.log.
9420 cat conftest.err 1>&5
9421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423 if diff conftest.exp conftest.er2 >/dev/null; then
9424 lt_cv_prog_compiler__b=yes
9425 fi
9426 else
9427 lt_cv_prog_compiler__b=yes
9428 fi
9429 fi
9430 $RM -r conftest*
9431 LDFLAGS="$save_LDFLAGS"
9432
9433 fi
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9435 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9436
9437 if test x"$lt_cv_prog_compiler__b" = xyes; then
9438 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9439 else
9440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9441 fi
9442
9443 ;;
9444 esac
9445 fi
9446 if test "$with_gnu_ld" = no; then
9447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9448 hardcode_libdir_separator=:
9449
9450 case $host_cpu in
9451 hppa*64*|ia64*)
9452 hardcode_direct=no
9453 hardcode_shlibpath_var=no
9454 ;;
9455 *)
9456 hardcode_direct=yes
9457 hardcode_direct_absolute=yes
9458 export_dynamic_flag_spec='${wl}-E'
9459
9460 # hardcode_minus_L: Not really in the search PATH,
9461 # but as the default location of the library.
9462 hardcode_minus_L=yes
9463 ;;
9464 esac
9465 fi
9466 ;;
9467
9468 irix5* | irix6* | nonstopux*)
9469 if test "$GCC" = yes; then
9470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9471 # Try to use the -exported_symbol ld option, if it does not
9472 # work, assume that -exports_file does not work either and
9473 # implicitly export all symbols.
9474 # This should be the same for all languages, so no per-tag cache variable.
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9476 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9477 if ${lt_cv_irix_exported_symbol+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 save_LDFLAGS="$LDFLAGS"
9481 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int foo (void) { return 0; }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 lt_cv_irix_exported_symbol=yes
9488 else
9489 lt_cv_irix_exported_symbol=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LDFLAGS="$save_LDFLAGS"
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9496 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9497 if test "$lt_cv_irix_exported_symbol" = yes; then
9498 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9499 fi
9500 else
9501 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'
9502 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'
9503 fi
9504 archive_cmds_need_lc='no'
9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 inherit_rpath=yes
9508 link_all_deplibs=yes
9509 ;;
9510
9511 netbsd* | netbsdelf*-gnu)
9512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9514 else
9515 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9516 fi
9517 hardcode_libdir_flag_spec='-R$libdir'
9518 hardcode_direct=yes
9519 hardcode_shlibpath_var=no
9520 ;;
9521
9522 newsos6)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes
9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 hardcode_libdir_separator=:
9527 hardcode_shlibpath_var=no
9528 ;;
9529
9530 *nto* | *qnx*)
9531 ;;
9532
9533 openbsd*)
9534 if test -f /usr/libexec/ld.so; then
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 hardcode_direct_absolute=yes
9538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542 export_dynamic_flag_spec='${wl}-E'
9543 else
9544 case $host_os in
9545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_libdir_flag_spec='-R$libdir'
9548 ;;
9549 *)
9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9552 ;;
9553 esac
9554 fi
9555 else
9556 ld_shlibs=no
9557 fi
9558 ;;
9559
9560 os2*)
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 allow_undefined_flag=unsupported
9564 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'
9565 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9566 ;;
9567
9568 osf3*)
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571 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'
9572 else
9573 allow_undefined_flag=' -expect_unresolved \*'
9574 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'
9575 fi
9576 archive_cmds_need_lc='no'
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator=:
9579 ;;
9580
9581 osf4* | osf5*) # as osf3* with the addition of -msym flag
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 else
9587 allow_undefined_flag=' -expect_unresolved \*'
9588 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'
9589 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~
9590 $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'
9591
9592 # Both c and cxx compiler support -rpath directly
9593 hardcode_libdir_flag_spec='-rpath $libdir'
9594 fi
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_separator=:
9597 ;;
9598
9599 solaris*)
9600 no_undefined_flag=' -z defs'
9601 if test "$GCC" = yes; then
9602 wlarc='${wl}'
9603 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606 else
9607 case `$CC -V 2>&1` in
9608 *"Compilers 5.0"*)
9609 wlarc=''
9610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9613 ;;
9614 *)
9615 wlarc='${wl}'
9616 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9619 ;;
9620 esac
9621 fi
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_shlibpath_var=no
9624 case $host_os in
9625 solaris2.[0-5] | solaris2.[0-5].*) ;;
9626 *)
9627 # The compiler driver will combine and reorder linker options,
9628 # but understands `-z linker_flag'. GCC discards it without `$wl',
9629 # but is careful enough not to reorder.
9630 # Supported since Solaris 2.6 (maybe 2.5.1?)
9631 if test "$GCC" = yes; then
9632 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9633 else
9634 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9635 fi
9636 ;;
9637 esac
9638 link_all_deplibs=yes
9639 ;;
9640
9641 sunos4*)
9642 if test "x$host_vendor" = xsequent; then
9643 # Use $CC to link under sequent, because it throws in some extra .o
9644 # files that make .init and .fini sections work.
9645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9648 fi
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_direct=yes
9651 hardcode_minus_L=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 sysv4)
9656 case $host_vendor in
9657 sni)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct=yes # is this really true???
9660 ;;
9661 siemens)
9662 ## LD is ld it makes a PLAMLIB
9663 ## CC just makes a GrossModule.
9664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9665 reload_cmds='$CC -r -o $output$reload_objs'
9666 hardcode_direct=no
9667 ;;
9668 motorola)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9671 ;;
9672 esac
9673 runpath_var='LD_RUN_PATH'
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 sysv4.3*)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var=no
9680 export_dynamic_flag_spec='-Bexport'
9681 ;;
9682
9683 sysv4*MP*)
9684 if test -d /usr/nec; then
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_shlibpath_var=no
9687 runpath_var=LD_RUN_PATH
9688 hardcode_runpath_var=yes
9689 ld_shlibs=yes
9690 fi
9691 ;;
9692
9693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9694 no_undefined_flag='${wl}-z,text'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 runpath_var='LD_RUN_PATH'
9698
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 fi
9706 ;;
9707
9708 sysv5* | sco3.2v5* | sco5v6*)
9709 # Note: We can NOT use -z defs as we might desire, because we do not
9710 # link with -lc, and that would cause any symbols used from libc to
9711 # always be unresolved, which means just about no library would
9712 # ever link correctly. If we're not using GNU ld we use -z text
9713 # though, which does catch some bad symbols but isn't as heavy-handed
9714 # as -z defs.
9715 no_undefined_flag='${wl}-z,text'
9716 allow_undefined_flag='${wl}-z,nodefs'
9717 archive_cmds_need_lc=no
9718 hardcode_shlibpath_var=no
9719 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 export_dynamic_flag_spec='${wl}-Bexport'
9723 runpath_var='LD_RUN_PATH'
9724
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 fi
9732 ;;
9733
9734 uts4*)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 *)
9741 ld_shlibs=no
9742 ;;
9743 esac
9744
9745 if test x$host_vendor = xsni; then
9746 case $host in
9747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9748 export_dynamic_flag_spec='${wl}-Blargedynsym'
9749 ;;
9750 esac
9751 fi
9752 fi
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9755 $as_echo "$ld_shlibs" >&6; }
9756 test "$ld_shlibs" = no && can_build_shared=no
9757
9758 with_gnu_ld=$with_gnu_ld
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774 #
9775 # Do we need to explicitly link libc?
9776 #
9777 case "x$archive_cmds_need_lc" in
9778 x|xyes)
9779 # Assume -lc should be added
9780 archive_cmds_need_lc=yes
9781
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9784 *'~'*)
9785 # FIXME: we may have to deal with multi-command sequences.
9786 ;;
9787 '$CC '*)
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9792 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9793 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 $RM conftest*
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798
9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803 test $ac_status = 0; } 2>conftest.err; then
9804 soname=conftest
9805 lib=conftest
9806 libobjs=conftest.$ac_objext
9807 deplibs=
9808 wl=$lt_prog_compiler_wl
9809 pic_flag=$lt_prog_compiler_pic
9810 compiler_flags=-v
9811 linker_flags=-v
9812 verstring=
9813 output_objdir=.
9814 libname=conftest
9815 lt_save_allow_undefined_flag=$allow_undefined_flag
9816 allow_undefined_flag=
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9818 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; }
9822 then
9823 lt_cv_archive_cmds_need_lc=no
9824 else
9825 lt_cv_archive_cmds_need_lc=yes
9826 fi
9827 allow_undefined_flag=$lt_save_allow_undefined_flag
9828 else
9829 cat conftest.err 1>&5
9830 fi
9831 $RM conftest*
9832
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9835 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9836 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9837 ;;
9838 esac
9839 fi
9840 ;;
9841 esac
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9996
9997 if test "$GCC" = yes; then
9998 case $host_os in
9999 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10000 *) lt_awk_arg="/^libraries:/" ;;
10001 esac
10002 case $host_os in
10003 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10004 *) lt_sed_strip_eq="s,=/,/,g" ;;
10005 esac
10006 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10007 case $lt_search_path_spec in
10008 *\;*)
10009 # if the path contains ";" then we assume it to be the separator
10010 # otherwise default to the standard path separator (i.e. ":") - it is
10011 # assumed that no part of a normal pathname contains ";" but that should
10012 # okay in the real world where ";" in dirpaths is itself problematic.
10013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10014 ;;
10015 *)
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10017 ;;
10018 esac
10019 # Ok, now we have the path, separated by spaces, we can step through it
10020 # and add multilib dir if necessary.
10021 lt_tmp_lt_search_path_spec=
10022 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10023 for lt_sys_path in $lt_search_path_spec; do
10024 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10026 else
10027 test -d "$lt_sys_path" && \
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10029 fi
10030 done
10031 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10032 BEGIN {RS=" "; FS="/|\n";} {
10033 lt_foo="";
10034 lt_count=0;
10035 for (lt_i = NF; lt_i > 0; lt_i--) {
10036 if ($lt_i != "" && $lt_i != ".") {
10037 if ($lt_i == "..") {
10038 lt_count++;
10039 } else {
10040 if (lt_count == 0) {
10041 lt_foo="/" $lt_i lt_foo;
10042 } else {
10043 lt_count--;
10044 }
10045 }
10046 }
10047 }
10048 if (lt_foo != "") { lt_freq[lt_foo]++; }
10049 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10050 }'`
10051 # AWK program above erroneously prepends '/' to C:/dos/paths
10052 # for these hosts.
10053 case $host_os in
10054 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10055 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10056 esac
10057 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10058 else
10059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10060 fi
10061 library_names_spec=
10062 libname_spec='lib$name'
10063 soname_spec=
10064 shrext_cmds=".so"
10065 postinstall_cmds=
10066 postuninstall_cmds=
10067 finish_cmds=
10068 finish_eval=
10069 shlibpath_var=
10070 shlibpath_overrides_runpath=unknown
10071 version_type=none
10072 dynamic_linker="$host_os ld.so"
10073 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10074 need_lib_prefix=unknown
10075 hardcode_into_libs=no
10076
10077 # when you set need_version to no, make sure it does not cause -set_version
10078 # flags to be left without arguments
10079 need_version=unknown
10080
10081 case $host_os in
10082 aix3*)
10083 version_type=linux # correct to gnu/linux during the next big refactor
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10085 shlibpath_var=LIBPATH
10086
10087 # AIX 3 has no versioning support, so we append a major version to the name.
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 ;;
10090
10091 aix[4-9]*)
10092 version_type=linux # correct to gnu/linux during the next big refactor
10093 need_lib_prefix=no
10094 need_version=no
10095 hardcode_into_libs=yes
10096 if test "$host_cpu" = ia64; then
10097 # AIX 5 supports IA64
10098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 else
10101 # With GCC up to 2.95.x, collect2 would create an import file
10102 # for dependence libraries. The import file would start with
10103 # the line `#! .'. This would cause the generated library to
10104 # depend on `.', always an invalid library. This was fixed in
10105 # development snapshots of GCC prior to 3.0.
10106 case $host_os in
10107 aix4 | aix4.[01] | aix4.[01].*)
10108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10109 echo ' yes '
10110 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10111 :
10112 else
10113 can_build_shared=no
10114 fi
10115 ;;
10116 esac
10117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10118 # soname into executable. Probably we can add versioning support to
10119 # collect2, so additional links can be useful in future.
10120 if test "$aix_use_runtimelinking" = yes; then
10121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10122 # instead of lib<name>.a to let people know that these are not
10123 # typical AIX shared libraries.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 else
10126 # We preserve .a as extension for shared libraries through AIX4.2
10127 # and later when we are not doing run time linking.
10128 library_names_spec='${libname}${release}.a $libname.a'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 fi
10131 shlibpath_var=LIBPATH
10132 fi
10133 ;;
10134
10135 amigaos*)
10136 case $host_cpu in
10137 powerpc)
10138 # Since July 2007 AmigaOS4 officially supports .so libraries.
10139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 ;;
10142 m68k)
10143 library_names_spec='$libname.ixlibrary $libname.a'
10144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10145 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'
10146 ;;
10147 esac
10148 ;;
10149
10150 beos*)
10151 library_names_spec='${libname}${shared_ext}'
10152 dynamic_linker="$host_os ld.so"
10153 shlibpath_var=LIBRARY_PATH
10154 ;;
10155
10156 bsdi[45]*)
10157 version_type=linux # correct to gnu/linux during the next big refactor
10158 need_version=no
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10165 # the default ld.so.conf also contains /usr/contrib/lib and
10166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10167 # libtool to hard-code these into programs
10168 ;;
10169
10170 cygwin* | mingw* | pw32* | cegcc*)
10171 version_type=windows
10172 shrext_cmds=".dll"
10173 need_version=no
10174 need_lib_prefix=no
10175
10176 case $GCC,$cc_basename in
10177 yes,*)
10178 # gcc
10179 library_names_spec='$libname.dll.a'
10180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10181 postinstall_cmds='base_file=`basename \${file}`~
10182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10183 dldir=$destdir/`dirname \$dlpath`~
10184 test -d \$dldir || mkdir -p \$dldir~
10185 $install_prog $dir/$dlname \$dldir/$dlname~
10186 chmod a+x \$dldir/$dlname~
10187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10189 fi'
10190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10191 dlpath=$dir/\$dldll~
10192 $RM \$dlpath'
10193 shlibpath_overrides_runpath=yes
10194
10195 case $host_os in
10196 cygwin*)
10197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199
10200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10201 ;;
10202 mingw* | cegcc*)
10203 # MinGW DLLs use traditional 'lib' prefix
10204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205 ;;
10206 pw32*)
10207 # pw32 DLLs use 'pw' prefix rather than 'lib'
10208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 ;;
10210 esac
10211 dynamic_linker='Win32 ld.exe'
10212 ;;
10213
10214 *,cl*)
10215 # Native MSVC
10216 libname_spec='$name'
10217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 library_names_spec='${libname}.dll.lib'
10219
10220 case $build_os in
10221 mingw*)
10222 sys_lib_search_path_spec=
10223 lt_save_ifs=$IFS
10224 IFS=';'
10225 for lt_path in $LIB
10226 do
10227 IFS=$lt_save_ifs
10228 # Let DOS variable expansion print the short 8.3 style file name.
10229 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10231 done
10232 IFS=$lt_save_ifs
10233 # Convert to MSYS style.
10234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10235 ;;
10236 cygwin*)
10237 # Convert to unix form, then to dos form, then back to unix form
10238 # but this time dos style (no spaces!) so that the unix form looks
10239 # like /cygdrive/c/PROGRA~1:/cygdr...
10240 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10241 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10242 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10243 ;;
10244 *)
10245 sys_lib_search_path_spec="$LIB"
10246 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10247 # It is most probably a Windows format PATH.
10248 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10249 else
10250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10251 fi
10252 # FIXME: find the short name or the path components, as spaces are
10253 # common. (e.g. "Program Files" -> "PROGRA~1")
10254 ;;
10255 esac
10256
10257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10258 postinstall_cmds='base_file=`basename \${file}`~
10259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10260 dldir=$destdir/`dirname \$dlpath`~
10261 test -d \$dldir || mkdir -p \$dldir~
10262 $install_prog $dir/$dlname \$dldir/$dlname'
10263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10264 dlpath=$dir/\$dldll~
10265 $RM \$dlpath'
10266 shlibpath_overrides_runpath=yes
10267 dynamic_linker='Win32 link.exe'
10268 ;;
10269
10270 *)
10271 # Assume MSVC wrapper
10272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10273 dynamic_linker='Win32 ld.exe'
10274 ;;
10275 esac
10276 # FIXME: first we should search . and the directory the executable is in
10277 shlibpath_var=PATH
10278 ;;
10279
10280 darwin* | rhapsody*)
10281 dynamic_linker="$host_os dyld"
10282 version_type=darwin
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10286 soname_spec='${libname}${release}${major}$shared_ext'
10287 shlibpath_overrides_runpath=yes
10288 shlibpath_var=DYLD_LIBRARY_PATH
10289 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10290
10291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10293 ;;
10294
10295 dgux*)
10296 version_type=linux # correct to gnu/linux during the next big refactor
10297 need_lib_prefix=no
10298 need_version=no
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 ;;
10303
10304 freebsd* | dragonfly*)
10305 # DragonFly does not have aout. When/if they implement a new
10306 # versioning mechanism, adjust this.
10307 if test -x /usr/bin/objformat; then
10308 objformat=`/usr/bin/objformat`
10309 else
10310 case $host_os in
10311 freebsd[23].*) objformat=aout ;;
10312 *) objformat=elf ;;
10313 esac
10314 fi
10315 version_type=freebsd-$objformat
10316 case $version_type in
10317 freebsd-elf*)
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10319 need_version=no
10320 need_lib_prefix=no
10321 ;;
10322 freebsd-*)
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10324 need_version=yes
10325 ;;
10326 esac
10327 shlibpath_var=LD_LIBRARY_PATH
10328 case $host_os in
10329 freebsd2.*)
10330 shlibpath_overrides_runpath=yes
10331 ;;
10332 freebsd3.[01]* | freebsdelf3.[01]*)
10333 shlibpath_overrides_runpath=yes
10334 hardcode_into_libs=yes
10335 ;;
10336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10338 shlibpath_overrides_runpath=no
10339 hardcode_into_libs=yes
10340 ;;
10341 *) # from 4.6 on, and DragonFly
10342 shlibpath_overrides_runpath=yes
10343 hardcode_into_libs=yes
10344 ;;
10345 esac
10346 ;;
10347
10348 haiku*)
10349 version_type=linux # correct to gnu/linux during the next big refactor
10350 need_lib_prefix=no
10351 need_version=no
10352 dynamic_linker="$host_os runtime_loader"
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes
10357 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10358 hardcode_into_libs=yes
10359 ;;
10360
10361 hpux9* | hpux10* | hpux11*)
10362 # Give a soname corresponding to the major version so that dld.sl refuses to
10363 # link against other versions.
10364 version_type=sunos
10365 need_lib_prefix=no
10366 need_version=no
10367 case $host_cpu in
10368 ia64*)
10369 shrext_cmds='.so'
10370 hardcode_into_libs=yes
10371 dynamic_linker="$host_os dld.so"
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 if test "X$HPUX_IA64_MODE" = X32; then
10377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10378 else
10379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10380 fi
10381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10382 ;;
10383 hppa*64*)
10384 shrext_cmds='.sl'
10385 hardcode_into_libs=yes
10386 dynamic_linker="$host_os dld.sl"
10387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10393 ;;
10394 *)
10395 shrext_cmds='.sl'
10396 dynamic_linker="$host_os dld.sl"
10397 shlibpath_var=SHLIB_PATH
10398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 ;;
10402 esac
10403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10404 postinstall_cmds='chmod 555 $lib'
10405 # or fails outright, so override atomically:
10406 install_override_mode=555
10407 ;;
10408
10409 interix[3-9]*)
10410 version_type=linux # correct to gnu/linux during the next big refactor
10411 need_lib_prefix=no
10412 need_version=no
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=no
10418 hardcode_into_libs=yes
10419 ;;
10420
10421 irix5* | irix6* | nonstopux*)
10422 case $host_os in
10423 nonstopux*) version_type=nonstopux ;;
10424 *)
10425 if test "$lt_cv_prog_gnu_ld" = yes; then
10426 version_type=linux # correct to gnu/linux during the next big refactor
10427 else
10428 version_type=irix
10429 fi ;;
10430 esac
10431 need_lib_prefix=no
10432 need_version=no
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10435 case $host_os in
10436 irix5* | nonstopux*)
10437 libsuff= shlibsuff=
10438 ;;
10439 *)
10440 case $LD in # libtool.m4 will add one of these switches to LD
10441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10442 libsuff= shlibsuff= libmagic=32-bit;;
10443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10444 libsuff=32 shlibsuff=N32 libmagic=N32;;
10445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10446 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10447 *) libsuff= shlibsuff= libmagic=never-match;;
10448 esac
10449 ;;
10450 esac
10451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10452 shlibpath_overrides_runpath=no
10453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10455 hardcode_into_libs=yes
10456 ;;
10457
10458 # No shared lib support for Linux oldld, aout, or coff.
10459 linux*oldld* | linux*aout* | linux*coff*)
10460 dynamic_linker=no
10461 ;;
10462
10463 # This must be glibc/ELF.
10464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10465 version_type=linux # correct to gnu/linux during the next big refactor
10466 need_lib_prefix=no
10467 need_version=no
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=no
10473
10474 # Some binutils ld are patched to set DT_RUNPATH
10475 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 lt_cv_shlibpath_overrides_runpath=no
10479 save_LDFLAGS=$LDFLAGS
10480 save_libdir=$libdir
10481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485
10486 int
10487 main ()
10488 {
10489
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"; then :
10495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10496 lt_cv_shlibpath_overrides_runpath=yes
10497 fi
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LDFLAGS=$save_LDFLAGS
10502 libdir=$save_libdir
10503
10504 fi
10505
10506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10507
10508 # This implies no fast_install, which is unacceptable.
10509 # Some rework will be needed to allow for fast_install
10510 # before this can be enabled.
10511 hardcode_into_libs=yes
10512
10513 # Append ld.so.conf contents to the search path
10514 if test -f /etc/ld.so.conf; then
10515 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' ' '`
10516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10517 fi
10518
10519 # We used to test for /lib/ld.so.1 and disable shared libraries on
10520 # powerpc, because MkLinux only supported shared libraries with the
10521 # GNU dynamic linker. Since this was broken with cross compilers,
10522 # most powerpc-linux boxes support dynamic linking these days and
10523 # people can always --disable-shared, the test was removed, and we
10524 # assume the GNU/Linux dynamic linker is in use.
10525 dynamic_linker='GNU/Linux ld.so'
10526 ;;
10527
10528 netbsdelf*-gnu)
10529 version_type=linux
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=no
10536 hardcode_into_libs=yes
10537 dynamic_linker='NetBSD ld.elf_so'
10538 ;;
10539
10540 netbsd*)
10541 version_type=sunos
10542 need_lib_prefix=no
10543 need_version=no
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10547 dynamic_linker='NetBSD (a.out) ld.so'
10548 else
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 dynamic_linker='NetBSD ld.elf_so'
10552 fi
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 ;;
10557
10558 newsos6)
10559 version_type=linux # correct to gnu/linux during the next big refactor
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 shlibpath_overrides_runpath=yes
10563 ;;
10564
10565 *nto* | *qnx*)
10566 version_type=qnx
10567 need_lib_prefix=no
10568 need_version=no
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=no
10573 hardcode_into_libs=yes
10574 dynamic_linker='ldqnx.so'
10575 ;;
10576
10577 openbsd*)
10578 version_type=sunos
10579 sys_lib_dlsearch_path_spec="/usr/lib"
10580 need_lib_prefix=no
10581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10582 case $host_os in
10583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10584 *) need_version=no ;;
10585 esac
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10590 case $host_os in
10591 openbsd2.[89] | openbsd2.[89].*)
10592 shlibpath_overrides_runpath=no
10593 ;;
10594 *)
10595 shlibpath_overrides_runpath=yes
10596 ;;
10597 esac
10598 else
10599 shlibpath_overrides_runpath=yes
10600 fi
10601 ;;
10602
10603 os2*)
10604 libname_spec='$name'
10605 shrext_cmds=".dll"
10606 need_lib_prefix=no
10607 library_names_spec='$libname${shared_ext} $libname.a'
10608 dynamic_linker='OS/2 ld.exe'
10609 shlibpath_var=LIBPATH
10610 ;;
10611
10612 osf3* | osf4* | osf5*)
10613 version_type=osf
10614 need_lib_prefix=no
10615 need_version=no
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10621 ;;
10622
10623 rdos*)
10624 dynamic_linker=no
10625 ;;
10626
10627 solaris*)
10628 version_type=linux # correct to gnu/linux during the next big refactor
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10636 # ldd complains unless libraries are executable
10637 postinstall_cmds='chmod +x $lib'
10638 ;;
10639
10640 sunos4*)
10641 version_type=sunos
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 shlibpath_overrides_runpath=yes
10646 if test "$with_gnu_ld" = yes; then
10647 need_lib_prefix=no
10648 fi
10649 need_version=yes
10650 ;;
10651
10652 sysv4 | sysv4.3*)
10653 version_type=linux # correct to gnu/linux during the next big refactor
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 case $host_vendor in
10658 sni)
10659 shlibpath_overrides_runpath=no
10660 need_lib_prefix=no
10661 runpath_var=LD_RUN_PATH
10662 ;;
10663 siemens)
10664 need_lib_prefix=no
10665 ;;
10666 motorola)
10667 need_lib_prefix=no
10668 need_version=no
10669 shlibpath_overrides_runpath=no
10670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10671 ;;
10672 esac
10673 ;;
10674
10675 sysv4*MP*)
10676 if test -d /usr/nec ;then
10677 version_type=linux # correct to gnu/linux during the next big refactor
10678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10679 soname_spec='$libname${shared_ext}.$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 fi
10682 ;;
10683
10684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10685 version_type=freebsd-elf
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath=yes
10692 hardcode_into_libs=yes
10693 if test "$with_gnu_ld" = yes; then
10694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10695 else
10696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10697 case $host_os in
10698 sco3.2v5*)
10699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10700 ;;
10701 esac
10702 fi
10703 sys_lib_dlsearch_path_spec='/usr/lib'
10704 ;;
10705
10706 tpf*)
10707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10708 version_type=linux # correct to gnu/linux during the next big refactor
10709 need_lib_prefix=no
10710 need_version=no
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=no
10714 hardcode_into_libs=yes
10715 ;;
10716
10717 uts4*)
10718 version_type=linux # correct to gnu/linux during the next big refactor
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 ;;
10723
10724 *)
10725 dynamic_linker=no
10726 ;;
10727 esac
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10729 $as_echo "$dynamic_linker" >&6; }
10730 test "$dynamic_linker" = no && can_build_shared=no
10731
10732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10733 if test "$GCC" = yes; then
10734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10735 fi
10736
10737 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10738 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10739 fi
10740 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10741 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10742 fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10836 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10837 hardcode_action=
10838 if test -n "$hardcode_libdir_flag_spec" ||
10839 test -n "$runpath_var" ||
10840 test "X$hardcode_automatic" = "Xyes" ; then
10841
10842 # We can hardcode non-existent directories.
10843 if test "$hardcode_direct" != no &&
10844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10845 # have to relink, otherwise we might link with an installed library
10846 # when we should be linking with a yet-to-be-installed one
10847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10848 test "$hardcode_minus_L" != no; then
10849 # Linking always hardcodes the temporary library directory.
10850 hardcode_action=relink
10851 else
10852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10853 hardcode_action=immediate
10854 fi
10855 else
10856 # We cannot hardcode anything, or else we can only hardcode existing
10857 # directories.
10858 hardcode_action=unsupported
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10861 $as_echo "$hardcode_action" >&6; }
10862
10863 if test "$hardcode_action" = relink ||
10864 test "$inherit_rpath" = yes; then
10865 # Fast installation is not supported
10866 enable_fast_install=no
10867 elif test "$shlibpath_overrides_runpath" = yes ||
10868 test "$enable_shared" = no; then
10869 # Fast installation is not necessary
10870 enable_fast_install=needless
10871 fi
10872
10873
10874
10875
10876
10877
10878 if test "x$enable_dlopen" != xyes; then
10879 enable_dlopen=unknown
10880 enable_dlopen_self=unknown
10881 enable_dlopen_self_static=unknown
10882 else
10883 lt_cv_dlopen=no
10884 lt_cv_dlopen_libs=
10885
10886 case $host_os in
10887 beos*)
10888 lt_cv_dlopen="load_add_on"
10889 lt_cv_dlopen_libs=
10890 lt_cv_dlopen_self=yes
10891 ;;
10892
10893 mingw* | pw32* | cegcc*)
10894 lt_cv_dlopen="LoadLibrary"
10895 lt_cv_dlopen_libs=
10896 ;;
10897
10898 cygwin*)
10899 lt_cv_dlopen="dlopen"
10900 lt_cv_dlopen_libs=
10901 ;;
10902
10903 darwin*)
10904 # if libdl is installed we need to link against it
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10907 if ${ac_cv_lib_dl_dlopen+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-ldl $LIBS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char dlopen ();
10922 int
10923 main ()
10924 {
10925 return dlopen ();
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 ac_cv_lib_dl_dlopen=yes
10932 else
10933 ac_cv_lib_dl_dlopen=no
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10941 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10943 else
10944
10945 lt_cv_dlopen="dyld"
10946 lt_cv_dlopen_libs=
10947 lt_cv_dlopen_self=yes
10948
10949 fi
10950
10951 ;;
10952
10953 *)
10954 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10955 if test "x$ac_cv_func_shl_load" = xyes; then :
10956 lt_cv_dlopen="shl_load"
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10959 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10960 if ${ac_cv_lib_dld_shl_load+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-ldld $LIBS"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char shl_load ();
10975 int
10976 main ()
10977 {
10978 return shl_load ();
10979 ;
10980 return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_dld_shl_load=yes
10985 else
10986 ac_cv_lib_dld_shl_load=no
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10993 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10994 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10995 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10996 else
10997 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10998 if test "x$ac_cv_func_dlopen" = xyes; then :
10999 lt_cv_dlopen="dlopen"
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11002 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11003 if ${ac_cv_lib_dl_dlopen+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 ac_check_lib_save_LIBS=$LIBS
11007 LIBS="-ldl $LIBS"
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010
11011 /* Override any GCC internal prototype to avoid an error.
11012 Use char because int might match the return type of a GCC
11013 builtin and then its argument prototype would still apply. */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 char dlopen ();
11018 int
11019 main ()
11020 {
11021 return dlopen ();
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"; then :
11027 ac_cv_lib_dl_dlopen=yes
11028 else
11029 ac_cv_lib_dl_dlopen=no
11030 fi
11031 rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LIBS=$ac_check_lib_save_LIBS
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11036 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11037 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11041 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11042 if ${ac_cv_lib_svld_dlopen+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lsvld $LIBS"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char dlopen ();
11057 int
11058 main ()
11059 {
11060 return dlopen ();
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_svld_dlopen=yes
11067 else
11068 ac_cv_lib_svld_dlopen=no
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11075 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11076 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11080 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11081 if ${ac_cv_lib_dld_dld_link+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 ac_check_lib_save_LIBS=$LIBS
11085 LIBS="-ldld $LIBS"
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 char dld_link ();
11096 int
11097 main ()
11098 {
11099 return dld_link ();
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 ac_cv_lib_dld_dld_link=yes
11106 else
11107 ac_cv_lib_dld_dld_link=no
11108 fi
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 LIBS=$ac_check_lib_save_LIBS
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11114 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11115 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11116 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11117 fi
11118
11119
11120 fi
11121
11122
11123 fi
11124
11125
11126 fi
11127
11128
11129 fi
11130
11131
11132 fi
11133
11134 ;;
11135 esac
11136
11137 if test "x$lt_cv_dlopen" != xno; then
11138 enable_dlopen=yes
11139 else
11140 enable_dlopen=no
11141 fi
11142
11143 case $lt_cv_dlopen in
11144 dlopen)
11145 save_CPPFLAGS="$CPPFLAGS"
11146 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11147
11148 save_LDFLAGS="$LDFLAGS"
11149 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11150
11151 save_LIBS="$LIBS"
11152 LIBS="$lt_cv_dlopen_libs $LIBS"
11153
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11155 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11156 if ${lt_cv_dlopen_self+:} false; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 if test "$cross_compiling" = yes; then :
11160 lt_cv_dlopen_self=cross
11161 else
11162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11163 lt_status=$lt_dlunknown
11164 cat > conftest.$ac_ext <<_LT_EOF
11165 #line $LINENO "configure"
11166 #include "confdefs.h"
11167
11168 #if HAVE_DLFCN_H
11169 #include <dlfcn.h>
11170 #endif
11171
11172 #include <stdio.h>
11173
11174 #ifdef RTLD_GLOBAL
11175 # define LT_DLGLOBAL RTLD_GLOBAL
11176 #else
11177 # ifdef DL_GLOBAL
11178 # define LT_DLGLOBAL DL_GLOBAL
11179 # else
11180 # define LT_DLGLOBAL 0
11181 # endif
11182 #endif
11183
11184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11185 find out it does not work in some platform. */
11186 #ifndef LT_DLLAZY_OR_NOW
11187 # ifdef RTLD_LAZY
11188 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11189 # else
11190 # ifdef DL_LAZY
11191 # define LT_DLLAZY_OR_NOW DL_LAZY
11192 # else
11193 # ifdef RTLD_NOW
11194 # define LT_DLLAZY_OR_NOW RTLD_NOW
11195 # else
11196 # ifdef DL_NOW
11197 # define LT_DLLAZY_OR_NOW DL_NOW
11198 # else
11199 # define LT_DLLAZY_OR_NOW 0
11200 # endif
11201 # endif
11202 # endif
11203 # endif
11204 #endif
11205
11206 /* When -fvisbility=hidden is used, assume the code has been annotated
11207 correspondingly for the symbols needed. */
11208 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11209 int fnord () __attribute__((visibility("default")));
11210 #endif
11211
11212 int fnord () { return 42; }
11213 int main ()
11214 {
11215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216 int status = $lt_dlunknown;
11217
11218 if (self)
11219 {
11220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11221 else
11222 {
11223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11224 else puts (dlerror ());
11225 }
11226 /* dlclose (self); */
11227 }
11228 else
11229 puts (dlerror ());
11230
11231 return status;
11232 }
11233 _LT_EOF
11234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11235 (eval $ac_link) 2>&5
11236 ac_status=$?
11237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11238 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11239 (./conftest; exit; ) >&5 2>/dev/null
11240 lt_status=$?
11241 case x$lt_status in
11242 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11243 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11244 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11245 esac
11246 else :
11247 # compilation failed
11248 lt_cv_dlopen_self=no
11249 fi
11250 fi
11251 rm -fr conftest*
11252
11253
11254 fi
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11256 $as_echo "$lt_cv_dlopen_self" >&6; }
11257
11258 if test "x$lt_cv_dlopen_self" = xyes; then
11259 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11261 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11262 if ${lt_cv_dlopen_self_static+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 if test "$cross_compiling" = yes; then :
11266 lt_cv_dlopen_self_static=cross
11267 else
11268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11269 lt_status=$lt_dlunknown
11270 cat > conftest.$ac_ext <<_LT_EOF
11271 #line $LINENO "configure"
11272 #include "confdefs.h"
11273
11274 #if HAVE_DLFCN_H
11275 #include <dlfcn.h>
11276 #endif
11277
11278 #include <stdio.h>
11279
11280 #ifdef RTLD_GLOBAL
11281 # define LT_DLGLOBAL RTLD_GLOBAL
11282 #else
11283 # ifdef DL_GLOBAL
11284 # define LT_DLGLOBAL DL_GLOBAL
11285 # else
11286 # define LT_DLGLOBAL 0
11287 # endif
11288 #endif
11289
11290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11291 find out it does not work in some platform. */
11292 #ifndef LT_DLLAZY_OR_NOW
11293 # ifdef RTLD_LAZY
11294 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11295 # else
11296 # ifdef DL_LAZY
11297 # define LT_DLLAZY_OR_NOW DL_LAZY
11298 # else
11299 # ifdef RTLD_NOW
11300 # define LT_DLLAZY_OR_NOW RTLD_NOW
11301 # else
11302 # ifdef DL_NOW
11303 # define LT_DLLAZY_OR_NOW DL_NOW
11304 # else
11305 # define LT_DLLAZY_OR_NOW 0
11306 # endif
11307 # endif
11308 # endif
11309 # endif
11310 #endif
11311
11312 /* When -fvisbility=hidden is used, assume the code has been annotated
11313 correspondingly for the symbols needed. */
11314 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11315 int fnord () __attribute__((visibility("default")));
11316 #endif
11317
11318 int fnord () { return 42; }
11319 int main ()
11320 {
11321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11322 int status = $lt_dlunknown;
11323
11324 if (self)
11325 {
11326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11327 else
11328 {
11329 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11330 else puts (dlerror ());
11331 }
11332 /* dlclose (self); */
11333 }
11334 else
11335 puts (dlerror ());
11336
11337 return status;
11338 }
11339 _LT_EOF
11340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11341 (eval $ac_link) 2>&5
11342 ac_status=$?
11343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11345 (./conftest; exit; ) >&5 2>/dev/null
11346 lt_status=$?
11347 case x$lt_status in
11348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11350 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11351 esac
11352 else :
11353 # compilation failed
11354 lt_cv_dlopen_self_static=no
11355 fi
11356 fi
11357 rm -fr conftest*
11358
11359
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11362 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11363 fi
11364
11365 CPPFLAGS="$save_CPPFLAGS"
11366 LDFLAGS="$save_LDFLAGS"
11367 LIBS="$save_LIBS"
11368 ;;
11369 esac
11370
11371 case $lt_cv_dlopen_self in
11372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11373 *) enable_dlopen_self=unknown ;;
11374 esac
11375
11376 case $lt_cv_dlopen_self_static in
11377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11378 *) enable_dlopen_self_static=unknown ;;
11379 esac
11380 fi
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398 striplib=
11399 old_striplib=
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11401 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11402 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11406 $as_echo "yes" >&6; }
11407 else
11408 # FIXME - insert some real tests, host_os isn't really good enough
11409 case $host_os in
11410 darwin*)
11411 if test -n "$STRIP" ; then
11412 striplib="$STRIP -x"
11413 old_striplib="$STRIP -S"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415 $as_echo "yes" >&6; }
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419 fi
11420 ;;
11421 *)
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11424 ;;
11425 esac
11426 fi
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 # Report which library types will actually be built
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11441 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11443 $as_echo "$can_build_shared" >&6; }
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11446 $as_echo_n "checking whether to build shared libraries... " >&6; }
11447 test "$can_build_shared" = "no" && enable_shared=no
11448
11449 # On AIX, shared libraries and static libraries use the same namespace, and
11450 # are all built from PIC.
11451 case $host_os in
11452 aix3*)
11453 test "$enable_shared" = yes && enable_static=no
11454 if test -n "$RANLIB"; then
11455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11456 postinstall_cmds='$RANLIB $lib'
11457 fi
11458 ;;
11459
11460 aix[4-9]*)
11461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11462 test "$enable_shared" = yes && enable_static=no
11463 fi
11464 ;;
11465 esac
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11467 $as_echo "$enable_shared" >&6; }
11468
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11470 $as_echo_n "checking whether to build static libraries... " >&6; }
11471 # Make sure either enable_shared or enable_static is yes.
11472 test "$enable_shared" = yes || enable_static=yes
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11474 $as_echo "$enable_static" >&6; }
11475
11476
11477
11478
11479 fi
11480 ac_ext=c
11481 ac_cpp='$CPP $CPPFLAGS'
11482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485
11486 CC="$lt_save_CC"
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502 ac_config_commands="$ac_config_commands libtool"
11503
11504
11505
11506
11507 # Only expand once:
11508
11509
11510
11511 for ac_prog in gawk mawk nawk awk
11512 do
11513 # Extract the first word of "$ac_prog", so it can be a program name with args.
11514 set dummy $ac_prog; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_prog_AWK+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 if test -n "$AWK"; then
11521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11522 else
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11525 do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_prog_AWK="$ac_prog"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534 done
11535 done
11536 IFS=$as_save_IFS
11537
11538 fi
11539 fi
11540 AWK=$ac_cv_prog_AWK
11541 if test -n "$AWK"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11543 $as_echo "$AWK" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547 fi
11548
11549
11550 test -n "$AWK" && break
11551 done
11552
11553 ac_ext=c
11554 ac_cpp='$CPP $CPPFLAGS'
11555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558 if test -n "$ac_tool_prefix"; then
11559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if ${ac_cv_prog_CC+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 if test -n "$CC"; then
11567 ac_cv_prog_CC="$CC" # Let the user override the test.
11568 else
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11571 do
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 break 2
11579 fi
11580 done
11581 done
11582 IFS=$as_save_IFS
11583
11584 fi
11585 fi
11586 CC=$ac_cv_prog_CC
11587 if test -n "$CC"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11589 $as_echo "$CC" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11593 fi
11594
11595
11596 fi
11597 if test -z "$ac_cv_prog_CC"; then
11598 ac_ct_CC=$CC
11599 # Extract the first word of "gcc", so it can be a program name with args.
11600 set dummy gcc; ac_word=$2
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11602 $as_echo_n "checking for $ac_word... " >&6; }
11603 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 if test -n "$ac_ct_CC"; then
11607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11608 else
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $PATH
11611 do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_prog_ac_ct_CC="gcc"
11617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620 done
11621 done
11622 IFS=$as_save_IFS
11623
11624 fi
11625 fi
11626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11627 if test -n "$ac_ct_CC"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11629 $as_echo "$ac_ct_CC" >&6; }
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634
11635 if test "x$ac_ct_CC" = x; then
11636 CC=""
11637 else
11638 case $cross_compiling:$ac_tool_warned in
11639 yes:)
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11642 ac_tool_warned=yes ;;
11643 esac
11644 CC=$ac_ct_CC
11645 fi
11646 else
11647 CC="$ac_cv_prog_CC"
11648 fi
11649
11650 if test -z "$CC"; then
11651 if test -n "$ac_tool_prefix"; then
11652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11653 set dummy ${ac_tool_prefix}cc; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_prog_CC+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 if test -n "$CC"; then
11660 ac_cv_prog_CC="$CC" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 ac_cv_prog_CC="${ac_tool_prefix}cc"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11672 fi
11673 done
11674 done
11675 IFS=$as_save_IFS
11676
11677 fi
11678 fi
11679 CC=$ac_cv_prog_CC
11680 if test -n "$CC"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11682 $as_echo "$CC" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687
11688
11689 fi
11690 fi
11691 if test -z "$CC"; then
11692 # Extract the first word of "cc", so it can be a program name with args.
11693 set dummy cc; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_prog_CC+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test -n "$CC"; then
11700 ac_cv_prog_CC="$CC" # Let the user override the test.
11701 else
11702 ac_prog_rejected=no
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11711 ac_prog_rejected=yes
11712 continue
11713 fi
11714 ac_cv_prog_CC="cc"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11717 fi
11718 done
11719 done
11720 IFS=$as_save_IFS
11721
11722 if test $ac_prog_rejected = yes; then
11723 # We found a bogon in the path, so make sure we never use it.
11724 set dummy $ac_cv_prog_CC
11725 shift
11726 if test $# != 0; then
11727 # We chose a different compiler from the bogus one.
11728 # However, it has the same basename, so the bogon will be chosen
11729 # first if we set CC to just the basename; use the full file name.
11730 shift
11731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11732 fi
11733 fi
11734 fi
11735 fi
11736 CC=$ac_cv_prog_CC
11737 if test -n "$CC"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11739 $as_echo "$CC" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746 fi
11747 if test -z "$CC"; then
11748 if test -n "$ac_tool_prefix"; then
11749 for ac_prog in cl.exe
11750 do
11751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if ${ac_cv_prog_CC+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 if test -n "$CC"; then
11759 ac_cv_prog_CC="$CC" # Let the user override the test.
11760 else
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11763 do
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11771 fi
11772 done
11773 done
11774 IFS=$as_save_IFS
11775
11776 fi
11777 fi
11778 CC=$ac_cv_prog_CC
11779 if test -n "$CC"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11781 $as_echo "$CC" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786
11787
11788 test -n "$CC" && break
11789 done
11790 fi
11791 if test -z "$CC"; then
11792 ac_ct_CC=$CC
11793 for ac_prog in cl.exe
11794 do
11795 # Extract the first word of "$ac_prog", so it can be a program name with args.
11796 set dummy $ac_prog; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$ac_ct_CC"; then
11803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_prog_ac_ct_CC="$ac_prog"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816 done
11817 done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
11822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11823 if test -n "$ac_ct_CC"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11825 $as_echo "$ac_ct_CC" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832 test -n "$ac_ct_CC" && break
11833 done
11834
11835 if test "x$ac_ct_CC" = x; then
11836 CC=""
11837 else
11838 case $cross_compiling:$ac_tool_warned in
11839 yes:)
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11842 ac_tool_warned=yes ;;
11843 esac
11844 CC=$ac_ct_CC
11845 fi
11846 fi
11847
11848 fi
11849
11850
11851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11853 as_fn_error $? "no acceptable C compiler found in \$PATH
11854 See \`config.log' for more details" "$LINENO" 5; }
11855
11856 # Provide some information about the compiler.
11857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11858 set X $ac_compile
11859 ac_compiler=$2
11860 for ac_option in --version -v -V -qversion; do
11861 { { ac_try="$ac_compiler $ac_option >&5"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865 esac
11866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11867 $as_echo "$ac_try_echo"; } >&5
11868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11869 ac_status=$?
11870 if test -s conftest.err; then
11871 sed '10a\
11872 ... rest of stderr output deleted ...
11873 10q' conftest.err >conftest.er1
11874 cat conftest.er1 >&5
11875 fi
11876 rm -f conftest.er1 conftest.err
11877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878 test $ac_status = 0; }
11879 done
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11883 if ${ac_cv_c_compiler_gnu+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888
11889 int
11890 main ()
11891 {
11892 #ifndef __GNUC__
11893 choke me
11894 #endif
11895
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 if ac_fn_c_try_compile "$LINENO"; then :
11901 ac_compiler_gnu=yes
11902 else
11903 ac_compiler_gnu=no
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11907
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11911 if test $ac_compiler_gnu = yes; then
11912 GCC=yes
11913 else
11914 GCC=
11915 fi
11916 ac_test_CFLAGS=${CFLAGS+set}
11917 ac_save_CFLAGS=$CFLAGS
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11920 if ${ac_cv_prog_cc_g+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 ac_save_c_werror_flag=$ac_c_werror_flag
11924 ac_c_werror_flag=yes
11925 ac_cv_prog_cc_g=no
11926 CFLAGS="-g"
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929
11930 int
11931 main ()
11932 {
11933
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_compile "$LINENO"; then :
11939 ac_cv_prog_cc_g=yes
11940 else
11941 CFLAGS=""
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944
11945 int
11946 main ()
11947 {
11948
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954
11955 else
11956 ac_c_werror_flag=$ac_save_c_werror_flag
11957 CFLAGS="-g"
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960
11961 int
11962 main ()
11963 {
11964
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 if ac_fn_c_try_compile "$LINENO"; then :
11970 ac_cv_prog_cc_g=yes
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 fi
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 ac_c_werror_flag=$ac_save_c_werror_flag
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11980 $as_echo "$ac_cv_prog_cc_g" >&6; }
11981 if test "$ac_test_CFLAGS" = set; then
11982 CFLAGS=$ac_save_CFLAGS
11983 elif test $ac_cv_prog_cc_g = yes; then
11984 if test "$GCC" = yes; then
11985 CFLAGS="-g -O2"
11986 else
11987 CFLAGS="-g"
11988 fi
11989 else
11990 if test "$GCC" = yes; then
11991 CFLAGS="-O2"
11992 else
11993 CFLAGS=
11994 fi
11995 fi
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11998 if ${ac_cv_prog_cc_c89+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 ac_cv_prog_cc_c89=no
12002 ac_save_CC=$CC
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12005 #include <stdarg.h>
12006 #include <stdio.h>
12007 struct stat;
12008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12009 struct buf { int x; };
12010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12011 static char *e (p, i)
12012 char **p;
12013 int i;
12014 {
12015 return p[i];
12016 }
12017 static char *f (char * (*g) (char **, int), char **p, ...)
12018 {
12019 char *s;
12020 va_list v;
12021 va_start (v,p);
12022 s = g (p, va_arg (v,int));
12023 va_end (v);
12024 return s;
12025 }
12026
12027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12028 function prototypes and stuff, but not '\xHH' hex character constants.
12029 These don't provoke an error unfortunately, instead are silently treated
12030 as 'x'. The following induces an error, until -std is added to get
12031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12032 array size at least. It's necessary to write '\x00'==0 to get something
12033 that's true only with -std. */
12034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12035
12036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12037 inside strings and character constants. */
12038 #define FOO(x) 'x'
12039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12040
12041 int test (int i, double x);
12042 struct s1 {int (*f) (int a);};
12043 struct s2 {int (*f) (double a);};
12044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12045 int argc;
12046 char **argv;
12047 int
12048 main ()
12049 {
12050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12057 do
12058 CC="$ac_save_CC $ac_arg"
12059 if ac_fn_c_try_compile "$LINENO"; then :
12060 ac_cv_prog_cc_c89=$ac_arg
12061 fi
12062 rm -f core conftest.err conftest.$ac_objext
12063 test "x$ac_cv_prog_cc_c89" != "xno" && break
12064 done
12065 rm -f conftest.$ac_ext
12066 CC=$ac_save_CC
12067
12068 fi
12069 # AC_CACHE_VAL
12070 case "x$ac_cv_prog_cc_c89" in
12071 x)
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12073 $as_echo "none needed" >&6; } ;;
12074 xno)
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12076 $as_echo "unsupported" >&6; } ;;
12077 *)
12078 CC="$CC $ac_cv_prog_cc_c89"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12081 esac
12082 if test "x$ac_cv_prog_cc_c89" != xno; then :
12083
12084 fi
12085
12086 ac_ext=c
12087 ac_cpp='$CPP $CPPFLAGS'
12088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12091
12092 ac_ext=c
12093 ac_cpp='$CPP $CPPFLAGS'
12094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12098 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12099 if ${am_cv_prog_cc_c_o+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104
12105 int
12106 main ()
12107 {
12108
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 # Make sure it works both with $CC and with simple cc.
12114 # Following AC_PROG_CC_C_O, we do the test twice because some
12115 # compilers refuse to overwrite an existing .o file with -o,
12116 # though they will create one.
12117 am_cv_prog_cc_c_o=yes
12118 for am_i in 1 2; do
12119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } \
12124 && test -f conftest2.$ac_objext; then
12125 : OK
12126 else
12127 am_cv_prog_cc_c_o=no
12128 break
12129 fi
12130 done
12131 rm -f core conftest*
12132 unset am_i
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12135 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12136 if test "$am_cv_prog_cc_c_o" != yes; then
12137 # Losing compiler, so override with the script.
12138 # FIXME: It is wrong to rewrite CC.
12139 # But if we don't then we get into trouble of one sort or another.
12140 # A longer-term fix would be to have automake use am__CC in this case,
12141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12142 CC="$am_aux_dir/compile $CC"
12143 fi
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150
12151 depcc="$CC" am_compiler_list=
12152
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12154 $as_echo_n "checking dependency style of $depcc... " >&6; }
12155 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12159 # We make a subdir and do the tests there. Otherwise we can end up
12160 # making bogus files that we don't know about and never remove. For
12161 # instance it was reported that on HP-UX the gcc test will end up
12162 # making a dummy file named 'D' -- because '-MD' means "put the output
12163 # in D".
12164 rm -rf conftest.dir
12165 mkdir conftest.dir
12166 # Copy depcomp to subdir because otherwise we won't find it if we're
12167 # using a relative directory.
12168 cp "$am_depcomp" conftest.dir
12169 cd conftest.dir
12170 # We will build objects and dependencies in a subdirectory because
12171 # it helps to detect inapplicable dependency modes. For instance
12172 # both Tru64's cc and ICC support -MD to output dependencies as a
12173 # side effect of compilation, but ICC will put the dependencies in
12174 # the current directory while Tru64 will put them in the object
12175 # directory.
12176 mkdir sub
12177
12178 am_cv_CC_dependencies_compiler_type=none
12179 if test "$am_compiler_list" = ""; then
12180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12181 fi
12182 am__universal=false
12183 case " $depcc " in #(
12184 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12185 esac
12186
12187 for depmode in $am_compiler_list; do
12188 # Setup a source with many dependencies, because some compilers
12189 # like to wrap large dependency lists on column 80 (with \), and
12190 # we should not choose a depcomp mode which is confused by this.
12191 #
12192 # We need to recreate these files for each test, as the compiler may
12193 # overwrite some of them when testing with obscure command lines.
12194 # This happens at least with the AIX C compiler.
12195 : > sub/conftest.c
12196 for i in 1 2 3 4 5 6; do
12197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12198 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12199 # Solaris 10 /bin/sh.
12200 echo '/* dummy */' > sub/conftst$i.h
12201 done
12202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12203
12204 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12205 # mode. It turns out that the SunPro C++ compiler does not properly
12206 # handle '-M -o', and we need to detect this. Also, some Intel
12207 # versions had trouble with output in subdirs.
12208 am__obj=sub/conftest.${OBJEXT-o}
12209 am__minus_obj="-o $am__obj"
12210 case $depmode in
12211 gcc)
12212 # This depmode causes a compiler race in universal mode.
12213 test "$am__universal" = false || continue
12214 ;;
12215 nosideeffect)
12216 # After this tag, mechanisms are not by side-effect, so they'll
12217 # only be used when explicitly requested.
12218 if test "x$enable_dependency_tracking" = xyes; then
12219 continue
12220 else
12221 break
12222 fi
12223 ;;
12224 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12225 # This compiler won't grok '-c -o', but also, the minuso test has
12226 # not run yet. These depmodes are late enough in the game, and
12227 # so weak that their functioning should not be impacted.
12228 am__obj=conftest.${OBJEXT-o}
12229 am__minus_obj=
12230 ;;
12231 none) break ;;
12232 esac
12233 if depmode=$depmode \
12234 source=sub/conftest.c object=$am__obj \
12235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12237 >/dev/null 2>conftest.err &&
12238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12242 # icc doesn't choke on unknown options, it will just issue warnings
12243 # or remarks (even with -Werror). So we grep stderr for any message
12244 # that says an option was ignored or not supported.
12245 # When given -MP, icc 7.0 and 7.1 complain thusly:
12246 # icc: Command line warning: ignoring option '-M'; no argument required
12247 # The diagnosis changed in icc 8.0:
12248 # icc: Command line remark: option '-MP' not supported
12249 if (grep 'ignoring option' conftest.err ||
12250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12251 am_cv_CC_dependencies_compiler_type=$depmode
12252 break
12253 fi
12254 fi
12255 done
12256
12257 cd ..
12258 rm -rf conftest.dir
12259 else
12260 am_cv_CC_dependencies_compiler_type=none
12261 fi
12262
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12265 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12266 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12267
12268 if
12269 test "x$enable_dependency_tracking" != xno \
12270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12271 am__fastdepCC_TRUE=
12272 am__fastdepCC_FALSE='#'
12273 else
12274 am__fastdepCC_TRUE='#'
12275 am__fastdepCC_FALSE=
12276 fi
12277
12278
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12281 $as_echo_n "checking whether ln -s works... " >&6; }
12282 LN_S=$as_ln_s
12283 if test "$LN_S" = "ln -s"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12288 $as_echo "no, using $LN_S" >&6; }
12289 fi
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12292 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12293 set x ${MAKE-make}
12294 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12295 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 cat >conftest.make <<\_ACEOF
12299 SHELL = /bin/sh
12300 all:
12301 @echo '@@@%%%=$(MAKE)=@@@%%%'
12302 _ACEOF
12303 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12304 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12305 *@@@%%%=?*=@@@%%%*)
12306 eval ac_cv_prog_make_${ac_make}_set=yes;;
12307 *)
12308 eval ac_cv_prog_make_${ac_make}_set=no;;
12309 esac
12310 rm -f conftest.make
12311 fi
12312 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12314 $as_echo "yes" >&6; }
12315 SET_MAKE=
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 SET_MAKE="MAKE=${MAKE-make}"
12320 fi
12321
12322
12323 for ac_prog in gcc cc ${CC}
12324 do
12325 # Extract the first word of "$ac_prog", so it can be a program name with args.
12326 set dummy $ac_prog; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_BUILD_CC+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 if test -n "$BUILD_CC"; then
12333 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12334 else
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_BUILD_CC="$ac_prog"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346 done
12347 done
12348 IFS=$as_save_IFS
12349
12350 fi
12351 fi
12352 BUILD_CC=$ac_cv_prog_BUILD_CC
12353 if test -n "$BUILD_CC"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12355 $as_echo "$BUILD_CC" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360
12361
12362 test -n "$BUILD_CC" && break
12363 done
12364 test -n "$BUILD_CC" || BUILD_CC="gcc"
12365
12366 # Extract the first word of "${AR:-ar}", so it can be a program name with args.
12367 set dummy ${AR:-ar}; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_AR+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 if test -n "$AR"; then
12374 ac_cv_prog_AR="$AR" # Let the user override the test.
12375 else
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12378 do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_prog_AR="${AR:-ar}"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12386 fi
12387 done
12388 done
12389 IFS=$as_save_IFS
12390
12391 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
12392 fi
12393 fi
12394 AR=$ac_cv_prog_AR
12395 if test -n "$AR"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12397 $as_echo "$AR" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 fi
12402
12403
12404 # Extract the first word of "${LD:-ld}", so it can be a program name with args.
12405 set dummy ${LD:-ld}; 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 ${ac_cv_prog_LD+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 if test -n "$LD"; then
12412 ac_cv_prog_LD="$LD" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12421 ac_cv_prog_LD="${LD:-ld}"
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 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
12430 fi
12431 fi
12432 LD=$ac_cv_prog_LD
12433 if test -n "$LD"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12435 $as_echo "$LD" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440
12441
12442 # Extract the first word of "${STRIP:-strip}", so it can be a program name with args.
12443 set dummy ${STRIP:-strip}; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if ${ac_cv_prog_STRIP+:} false; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 if test -n "$STRIP"; then
12450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12451 else
12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12454 do
12455 IFS=$as_save_IFS
12456 test -z "$as_dir" && as_dir=.
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12459 ac_cv_prog_STRIP="${STRIP:-strip}"
12460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461 break 2
12462 fi
12463 done
12464 done
12465 IFS=$as_save_IFS
12466
12467 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="strip"
12468 fi
12469 fi
12470 STRIP=$ac_cv_prog_STRIP
12471 if test -n "$STRIP"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12473 $as_echo "$STRIP" >&6; }
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12477 fi
12478
12479
12480
12481
12482
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12484 $as_echo_n "checking for X... " >&6; }
12485
12486
12487 # Check whether --with-x was given.
12488 if test "${with_x+set}" = set; then :
12489 withval=$with_x;
12490 fi
12491
12492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12493 if test "x$with_x" = xno; then
12494 # The user explicitly disabled X.
12495 have_x=disabled
12496 else
12497 case $x_includes,$x_libraries in #(
12498 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12499 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 # One or both of the vars are not set, and there is no cached value.
12503 ac_x_includes=no ac_x_libraries=no
12504 rm -f -r conftest.dir
12505 if mkdir conftest.dir; then
12506 cd conftest.dir
12507 cat >Imakefile <<'_ACEOF'
12508 incroot:
12509 @echo incroot='${INCROOT}'
12510 usrlibdir:
12511 @echo usrlibdir='${USRLIBDIR}'
12512 libdir:
12513 @echo libdir='${LIBDIR}'
12514 _ACEOF
12515 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12516 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12517 for ac_var in incroot usrlibdir libdir; do
12518 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12519 done
12520 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12521 for ac_extension in a so sl dylib la dll; do
12522 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12523 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12524 ac_im_usrlibdir=$ac_im_libdir; break
12525 fi
12526 done
12527 # Screen out bogus values from the imake configuration. They are
12528 # bogus both because they are the default anyway, and because
12529 # using them would break gcc on systems where it needs fixed includes.
12530 case $ac_im_incroot in
12531 /usr/include) ac_x_includes= ;;
12532 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12533 esac
12534 case $ac_im_usrlibdir in
12535 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12536 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12537 esac
12538 fi
12539 cd ..
12540 rm -f -r conftest.dir
12541 fi
12542
12543 # Standard set of common directories for X headers.
12544 # Check X11 before X11Rn because it is often a symlink to the current release.
12545 ac_x_header_dirs='
12546 /usr/X11/include
12547 /usr/X11R7/include
12548 /usr/X11R6/include
12549 /usr/X11R5/include
12550 /usr/X11R4/include
12551
12552 /usr/include/X11
12553 /usr/include/X11R7
12554 /usr/include/X11R6
12555 /usr/include/X11R5
12556 /usr/include/X11R4
12557
12558 /usr/local/X11/include
12559 /usr/local/X11R7/include
12560 /usr/local/X11R6/include
12561 /usr/local/X11R5/include
12562 /usr/local/X11R4/include
12563
12564 /usr/local/include/X11
12565 /usr/local/include/X11R7
12566 /usr/local/include/X11R6
12567 /usr/local/include/X11R5
12568 /usr/local/include/X11R4
12569
12570 /usr/X386/include
12571 /usr/x386/include
12572 /usr/XFree86/include/X11
12573
12574 /usr/include
12575 /usr/local/include
12576 /usr/unsupported/include
12577 /usr/athena/include
12578 /usr/local/x11r5/include
12579 /usr/lpp/Xamples/include
12580
12581 /usr/openwin/include
12582 /usr/openwin/share/include'
12583
12584 if test "$ac_x_includes" = no; then
12585 # Guess where to find include files, by looking for Xlib.h.
12586 # First, try using that file with no special directory specified.
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 #include <X11/Xlib.h>
12590 _ACEOF
12591 if ac_fn_c_try_cpp "$LINENO"; then :
12592 # We can compile using X headers with no special include directory.
12593 ac_x_includes=
12594 else
12595 for ac_dir in $ac_x_header_dirs; do
12596 if test -r "$ac_dir/X11/Xlib.h"; then
12597 ac_x_includes=$ac_dir
12598 break
12599 fi
12600 done
12601 fi
12602 rm -f conftest.err conftest.i conftest.$ac_ext
12603 fi # $ac_x_includes = no
12604
12605 if test "$ac_x_libraries" = no; then
12606 # Check for the libraries.
12607 # See if we find them without any special options.
12608 # Don't add to $LIBS permanently.
12609 ac_save_LIBS=$LIBS
12610 LIBS="-lX11 $LIBS"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613 #include <X11/Xlib.h>
12614 int
12615 main ()
12616 {
12617 XrmInitialize ()
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 LIBS=$ac_save_LIBS
12624 # We can link X programs with no special library path.
12625 ac_x_libraries=
12626 else
12627 LIBS=$ac_save_LIBS
12628 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12629 do
12630 # Don't even attempt the hair of trying to link an X program!
12631 for ac_extension in a so sl dylib la dll; do
12632 if test -r "$ac_dir/libX11.$ac_extension"; then
12633 ac_x_libraries=$ac_dir
12634 break 2
12635 fi
12636 done
12637 done
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 fi # $ac_x_libraries = no
12642
12643 case $ac_x_includes,$ac_x_libraries in #(
12644 no,* | *,no | *\'*)
12645 # Didn't find X, or a directory has "'" in its name.
12646 ac_cv_have_x="have_x=no";; #(
12647 *)
12648 # Record where we found X for the cache.
12649 ac_cv_have_x="have_x=yes\
12650 ac_x_includes='$ac_x_includes'\
12651 ac_x_libraries='$ac_x_libraries'"
12652 esac
12653 fi
12654 ;; #(
12655 *) have_x=yes;;
12656 esac
12657 eval "$ac_cv_have_x"
12658 fi # $with_x != no
12659
12660 if test "$have_x" != yes; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12662 $as_echo "$have_x" >&6; }
12663 no_x=yes
12664 else
12665 # If each of the values was on the command line, it overrides each guess.
12666 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12667 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12668 # Update the cache value to reflect the command line values.
12669 ac_cv_have_x="have_x=yes\
12670 ac_x_includes='$x_includes'\
12671 ac_x_libraries='$x_libraries'"
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12673 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12674 fi
12675
12676 if test "$no_x" = yes; then
12677 # Not all programs may use this symbol, but it does not hurt to define it.
12678
12679 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12680
12681 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12682 else
12683 if test -n "$x_includes"; then
12684 X_CFLAGS="$X_CFLAGS -I$x_includes"
12685 fi
12686
12687 # It would also be nice to do this for all -L options, not just this one.
12688 if test -n "$x_libraries"; then
12689 X_LIBS="$X_LIBS -L$x_libraries"
12690 # For Solaris; some versions of Sun CC require a space after -R and
12691 # others require no space. Words are not sufficient . . . .
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12693 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12694 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12695 ac_xsave_c_werror_flag=$ac_c_werror_flag
12696 ac_c_werror_flag=yes
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699
12700 int
12701 main ()
12702 {
12703
12704 ;
12705 return 0;
12706 }
12707 _ACEOF
12708 if ac_fn_c_try_link "$LINENO"; then :
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12711 X_LIBS="$X_LIBS -R$x_libraries"
12712 else
12713 LIBS="$ac_xsave_LIBS -R $x_libraries"
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716
12717 int
12718 main ()
12719 {
12720
12721 ;
12722 return 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_link "$LINENO"; then :
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727 $as_echo "yes" >&6; }
12728 X_LIBS="$X_LIBS -R $x_libraries"
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12731 $as_echo "neither works" >&6; }
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 fi
12736 rm -f core conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738 ac_c_werror_flag=$ac_xsave_c_werror_flag
12739 LIBS=$ac_xsave_LIBS
12740 fi
12741
12742 # Check for system-dependent libraries X programs must link with.
12743 # Do this before checking for the system-independent R6 libraries
12744 # (-lICE), since we may need -lsocket or whatever for X linking.
12745
12746 if test "$ISC" = yes; then
12747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12748 else
12749 # Martyn Johnson says this is needed for Ultrix, if the X
12750 # libraries were built with DECnet support. And Karl Berry says
12751 # the Alpha needs dnet_stub (dnet does not exist).
12752 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char XOpenDisplay ();
12763 int
12764 main ()
12765 {
12766 return XOpenDisplay ();
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 if ac_fn_c_try_link "$LINENO"; then :
12772
12773 else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12775 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12776 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-ldnet $LIBS"
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char dnet_ntoa ();
12791 int
12792 main ()
12793 {
12794 return dnet_ntoa ();
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"; then :
12800 ac_cv_lib_dnet_dnet_ntoa=yes
12801 else
12802 ac_cv_lib_dnet_dnet_ntoa=no
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12807 fi
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12809 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12810 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
12811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12812 fi
12813
12814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12816 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12817 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-ldnet_stub $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char dnet_ntoa ();
12832 int
12833 main ()
12834 {
12835 return dnet_ntoa ();
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12842 else
12843 ac_cv_lib_dnet_stub_dnet_ntoa=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12850 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12851 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
12852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12853 fi
12854
12855 fi
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859 LIBS="$ac_xsave_LIBS"
12860
12861 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
12862 # to get the SysV transport functions.
12863 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12864 # needs -lnsl.
12865 # The nsl library prevents programs from opening the X display
12866 # on Irix 5.2, according to T.E. Dickey.
12867 # The functions gethostbyname, getservbyname, and inet_addr are
12868 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12869 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12870 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12871
12872 fi
12873
12874 if test $ac_cv_func_gethostbyname = no; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12876 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12877 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-lnsl $LIBS"
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884
12885 /* Override any GCC internal prototype to avoid an error.
12886 Use char because int might match the return type of a GCC
12887 builtin and then its argument prototype would still apply. */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 char gethostbyname ();
12892 int
12893 main ()
12894 {
12895 return gethostbyname ();
12896 ;
12897 return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 ac_cv_lib_nsl_gethostbyname=yes
12902 else
12903 ac_cv_lib_nsl_gethostbyname=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 LIBS=$ac_check_lib_save_LIBS
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12910 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12911 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12913 fi
12914
12915 if test $ac_cv_lib_nsl_gethostbyname = no; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12917 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12918 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-lbsd $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char gethostbyname ();
12933 int
12934 main ()
12935 {
12936 return gethostbyname ();
12937 ;
12938 return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_link "$LINENO"; then :
12942 ac_cv_lib_bsd_gethostbyname=yes
12943 else
12944 ac_cv_lib_bsd_gethostbyname=no
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12951 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12952 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
12953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12954 fi
12955
12956 fi
12957 fi
12958
12959 # [email protected] says without -lsocket,
12960 # socket/setsockopt and other routines are undefined under SCO ODT
12961 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12962 # on later versions), says Simon Leinen: it contains gethostby*
12963 # variants that don't use the name server (or something). -lsocket
12964 # must be given before -lnsl if both are needed. We assume that
12965 # if connect needs -lnsl, so does gethostbyname.
12966 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12967 if test "x$ac_cv_func_connect" = xyes; then :
12968
12969 fi
12970
12971 if test $ac_cv_func_connect = no; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12973 $as_echo_n "checking for connect in -lsocket... " >&6; }
12974 if ${ac_cv_lib_socket_connect+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981
12982 /* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
12985 #ifdef __cplusplus
12986 extern "C"
12987 #endif
12988 char connect ();
12989 int
12990 main ()
12991 {
12992 return connect ();
12993 ;
12994 return 0;
12995 }
12996 _ACEOF
12997 if ac_fn_c_try_link "$LINENO"; then :
12998 ac_cv_lib_socket_connect=yes
12999 else
13000 ac_cv_lib_socket_connect=no
13001 fi
13002 rm -f core conftest.err conftest.$ac_objext \
13003 conftest$ac_exeext conftest.$ac_ext
13004 LIBS=$ac_check_lib_save_LIBS
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13007 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13008 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13009 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13010 fi
13011
13012 fi
13013
13014 # Guillermo Gomez says -lposix is necessary on A/UX.
13015 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13016 if test "x$ac_cv_func_remove" = xyes; then :
13017
13018 fi
13019
13020 if test $ac_cv_func_remove = no; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13022 $as_echo_n "checking for remove in -lposix... " >&6; }
13023 if ${ac_cv_lib_posix_remove+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 ac_check_lib_save_LIBS=$LIBS
13027 LIBS="-lposix $LIBS"
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030
13031 /* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
13034 #ifdef __cplusplus
13035 extern "C"
13036 #endif
13037 char remove ();
13038 int
13039 main ()
13040 {
13041 return remove ();
13042 ;
13043 return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_link "$LINENO"; then :
13047 ac_cv_lib_posix_remove=yes
13048 else
13049 ac_cv_lib_posix_remove=no
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext \
13052 conftest$ac_exeext conftest.$ac_ext
13053 LIBS=$ac_check_lib_save_LIBS
13054 fi
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13056 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13057 if test "x$ac_cv_lib_posix_remove" = xyes; then :
13058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13059 fi
13060
13061 fi
13062
13063 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13064 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13065 if test "x$ac_cv_func_shmat" = xyes; then :
13066
13067 fi
13068
13069 if test $ac_cv_func_shmat = no; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13071 $as_echo_n "checking for shmat in -lipc... " >&6; }
13072 if ${ac_cv_lib_ipc_shmat+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lipc $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char shmat ();
13087 int
13088 main ()
13089 {
13090 return shmat ();
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_lib_ipc_shmat=yes
13097 else
13098 ac_cv_lib_ipc_shmat=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13105 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13106 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13108 fi
13109
13110 fi
13111 fi
13112
13113 # Check for libraries that X11R6 Xt/Xaw programs need.
13114 ac_save_LDFLAGS=$LDFLAGS
13115 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13116 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13117 # check for ICE first), but we must link in the order -lSM -lICE or
13118 # we get undefined symbols. So assume we have SM if we have ICE.
13119 # These have to be linked with before -lX11, unlike the other
13120 # libraries we check for below, so use a different variable.
13121 # John Interrante, Karl Berry
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13123 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13124 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131
13132 /* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13135 #ifdef __cplusplus
13136 extern "C"
13137 #endif
13138 char IceConnectionNumber ();
13139 int
13140 main ()
13141 {
13142 return IceConnectionNumber ();
13143 ;
13144 return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_c_try_link "$LINENO"; then :
13148 ac_cv_lib_ICE_IceConnectionNumber=yes
13149 else
13150 ac_cv_lib_ICE_IceConnectionNumber=no
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 LIBS=$ac_check_lib_save_LIBS
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13157 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13158 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
13159 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13160 fi
13161
13162 LDFLAGS=$ac_save_LDFLAGS
13163
13164 fi
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13167 $as_echo_n "checking for ANSI C header files... " >&6; }
13168 if ${ac_cv_header_stdc+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173 #include <stdlib.h>
13174 #include <stdarg.h>
13175 #include <string.h>
13176 #include <float.h>
13177
13178 int
13179 main ()
13180 {
13181
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_compile "$LINENO"; then :
13187 ac_cv_header_stdc=yes
13188 else
13189 ac_cv_header_stdc=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192
13193 if test $ac_cv_header_stdc = yes; then
13194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197 #include <string.h>
13198
13199 _ACEOF
13200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13201 $EGREP "memchr" >/dev/null 2>&1; then :
13202
13203 else
13204 ac_cv_header_stdc=no
13205 fi
13206 rm -f conftest*
13207
13208 fi
13209
13210 if test $ac_cv_header_stdc = yes; then
13211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 #include <stdlib.h>
13215
13216 _ACEOF
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218 $EGREP "free" >/dev/null 2>&1; then :
13219
13220 else
13221 ac_cv_header_stdc=no
13222 fi
13223 rm -f conftest*
13224
13225 fi
13226
13227 if test $ac_cv_header_stdc = yes; then
13228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13229 if test "$cross_compiling" = yes; then :
13230 :
13231 else
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #include <ctype.h>
13235 #include <stdlib.h>
13236 #if ((' ' & 0x0FF) == 0x020)
13237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13239 #else
13240 # define ISLOWER(c) \
13241 (('a' <= (c) && (c) <= 'i') \
13242 || ('j' <= (c) && (c) <= 'r') \
13243 || ('s' <= (c) && (c) <= 'z'))
13244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13245 #endif
13246
13247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13248 int
13249 main ()
13250 {
13251 int i;
13252 for (i = 0; i < 256; i++)
13253 if (XOR (islower (i), ISLOWER (i))
13254 || toupper (i) != TOUPPER (i))
13255 return 2;
13256 return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_run "$LINENO"; then :
13260
13261 else
13262 ac_cv_header_stdc=no
13263 fi
13264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13265 conftest.$ac_objext conftest.beam conftest.$ac_ext
13266 fi
13267
13268 fi
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13271 $as_echo "$ac_cv_header_stdc" >&6; }
13272 if test $ac_cv_header_stdc = yes; then
13273
13274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13275
13276 fi
13277
13278 for ac_header in sys/time.h
13279 do :
13280 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_sys_time_h" = xyes; then :
13282 cat >>confdefs.h <<_ACEOF
13283 #define HAVE_SYS_TIME_H 1
13284 _ACEOF
13285
13286 fi
13287
13288 done
13289
13290
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13292 $as_echo_n "checking for inline... " >&6; }
13293 if ${ac_cv_c_inline+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 ac_cv_c_inline=no
13297 for ac_kw in inline __inline__ __inline; do
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #ifndef __cplusplus
13301 typedef int foo_t;
13302 static $ac_kw foo_t static_foo () {return 0; }
13303 $ac_kw foo_t foo () {return 0; }
13304 #endif
13305
13306 _ACEOF
13307 if ac_fn_c_try_compile "$LINENO"; then :
13308 ac_cv_c_inline=$ac_kw
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 test "$ac_cv_c_inline" != no && break
13312 done
13313
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13316 $as_echo "$ac_cv_c_inline" >&6; }
13317
13318 case $ac_cv_c_inline in
13319 inline | yes) ;;
13320 *)
13321 case $ac_cv_c_inline in
13322 no) ac_val=;;
13323 *) ac_val=$ac_cv_c_inline;;
13324 esac
13325 cat >>confdefs.h <<_ACEOF
13326 #ifndef __cplusplus
13327 #define inline $ac_val
13328 #endif
13329 _ACEOF
13330 ;;
13331 esac
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13334 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13335 if ${ac_cv_header_time+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340 #include <sys/types.h>
13341 #include <sys/time.h>
13342 #include <time.h>
13343
13344 int
13345 main ()
13346 {
13347 if ((struct tm *) 0)
13348 return 0;
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_compile "$LINENO"; then :
13354 ac_cv_header_time=yes
13355 else
13356 ac_cv_header_time=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13361 $as_echo "$ac_cv_header_time" >&6; }
13362 if test $ac_cv_header_time = yes; then
13363
13364 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13365
13366 fi
13367
13368
13369
13370
13371
13372 for ac_header in $ac_header_list
13373 do :
13374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13376 "
13377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13378 cat >>confdefs.h <<_ACEOF
13379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13380 _ACEOF
13381
13382 fi
13383
13384 done
13385
13386
13387
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
13390 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
13391 if ${ac_cv_func_utime_null+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 rm -f conftest.data; >conftest.data
13395 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13396 if test "$cross_compiling" = yes; then :
13397 ac_cv_func_utime_null='guessing yes'
13398 else
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13401 $ac_includes_default
13402 #ifdef HAVE_UTIME_H
13403 # include <utime.h>
13404 #endif
13405 int
13406 main ()
13407 {
13408 struct stat s, t;
13409 return ! (stat ("conftest.data", &s) == 0
13410 && utime ("conftest.data", 0) == 0
13411 && stat ("conftest.data", &t) == 0
13412 && t.st_mtime >= s.st_mtime
13413 && t.st_mtime - s.st_mtime < 120);
13414 ;
13415 return 0;
13416 }
13417 _ACEOF
13418 if ac_fn_c_try_run "$LINENO"; then :
13419 ac_cv_func_utime_null=yes
13420 else
13421 ac_cv_func_utime_null=no
13422 fi
13423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13424 conftest.$ac_objext conftest.beam conftest.$ac_ext
13425 fi
13426
13427 fi
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
13429 $as_echo "$ac_cv_func_utime_null" >&6; }
13430 if test "x$ac_cv_func_utime_null" != xno; then
13431 ac_cv_func_utime_null=yes
13432
13433 $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
13434
13435 fi
13436 rm -f conftest.data
13437
13438 for ac_func in gettimeofday mkdir strdup strstr
13439 do :
13440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13441 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13442 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13443 cat >>confdefs.h <<_ACEOF
13444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13445 _ACEOF
13446
13447 fi
13448 done
13449
13450
13451 opt_gd=
13452
13453 # Check whether --with-z was given.
13454 if test "${with_z+set}" = set; then :
13455 withval=$with_z; opt_z=$withval
13456 fi
13457
13458
13459 # Check whether --with-png was given.
13460 if test "${with_png+set}" = set; then :
13461 withval=$with_png; opt_png=$withval
13462 fi
13463
13464
13465 case "$with_z" in
13466 yes|no) as_fn_error $? "
13467 *** Directory must be specified for --with-z" "$LINENO" 5
13468 ;;
13469 "")
13470 Z_CFLAGS=
13471 Z_LIBS=-lz
13472 ;;
13473 *)
13474 if test -f $with_z/include/z.h
13475 then
13476 Z_CFLAGS=-I$with_z/include
13477 else
13478 Z_CFLAGS=-I$with_z
13479 fi
13480 if test -f $with_z/lib/libz.a
13481 then
13482 Z_LIBS=$with_z/lib/libz.a
13483 else
13484 Z_LIBS=$with_z/libz.a
13485 fi
13486 ;;
13487 esac
13488
13489 case "$with_png" in
13490 yes|no) as_fn_error $? "
13491 *** Directory must be specified for --with-png" "$LINENO" 5
13492 ;;
13493 "")
13494 PNG_CFLAGS=
13495 PNG_LIBS=
13496 ;;
13497 *)
13498 if test -f $with_png/lib/png.h
13499 then
13500 PNG_CFLAGS=-I$with_png/lib
13501 else
13502 PNG_CFLAGS=-I$with_png/include/X11
13503 fi
13504 if test -f $with_png/lib/libPng.a
13505 then
13506 PNG_LIBS="-L$with_png/lib"
13507 else
13508 PNG_LIBS="-L$with_png"
13509 fi
13510 ;;
13511 esac
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521 ac_config_files="$ac_config_files Makefile lib/Makefile games/Makefile tests/Makefile"
13522
13523 cat >confcache <<\_ACEOF
13524 # This file is a shell script that caches the results of configure
13525 # tests run on this system so they can be shared between configure
13526 # scripts and configure runs, see configure's option --config-cache.
13527 # It is not useful on other systems. If it contains results you don't
13528 # want to keep, you may remove or edit it.
13529 #
13530 # config.status only pays attention to the cache file if you give it
13531 # the --recheck option to rerun configure.
13532 #
13533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13535 # following values.
13536
13537 _ACEOF
13538
13539 # The following way of writing the cache mishandles newlines in values,
13540 # but we know of no workaround that is simple, portable, and efficient.
13541 # So, we kill variables containing newlines.
13542 # Ultrix sh set writes to stderr and can't be redirected directly,
13543 # and sets the high bit in the cache file unless we assign to the vars.
13544 (
13545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13546 eval ac_val=\$$ac_var
13547 case $ac_val in #(
13548 *${as_nl}*)
13549 case $ac_var in #(
13550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13552 esac
13553 case $ac_var in #(
13554 _ | IFS | as_nl) ;; #(
13555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13556 *) { eval $ac_var=; unset $ac_var;} ;;
13557 esac ;;
13558 esac
13559 done
13560
13561 (set) 2>&1 |
13562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13563 *${as_nl}ac_space=\ *)
13564 # `set' does not quote correctly, so add quotes: double-quote
13565 # substitution turns \\\\ into \\, and sed turns \\ into \.
13566 sed -n \
13567 "s/'/'\\\\''/g;
13568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13569 ;; #(
13570 *)
13571 # `set' quotes correctly as required by POSIX, so do not add quotes.
13572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13573 ;;
13574 esac |
13575 sort
13576 ) |
13577 sed '
13578 /^ac_cv_env_/b end
13579 t clear
13580 :clear
13581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13582 t end
13583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13584 :end' >>confcache
13585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13586 if test -w "$cache_file"; then
13587 if test "x$cache_file" != "x/dev/null"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13589 $as_echo "$as_me: updating cache $cache_file" >&6;}
13590 if test ! -f "$cache_file" || test -h "$cache_file"; then
13591 cat confcache >"$cache_file"
13592 else
13593 case $cache_file in #(
13594 */* | ?:*)
13595 mv -f confcache "$cache_file"$$ &&
13596 mv -f "$cache_file"$$ "$cache_file" ;; #(
13597 *)
13598 mv -f confcache "$cache_file" ;;
13599 esac
13600 fi
13601 fi
13602 else
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13605 fi
13606 fi
13607 rm -f confcache
13608
13609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13610 # Let make expand exec_prefix.
13611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13612
13613 # Transform confdefs.h into DEFS.
13614 # Protect against shell expansion while executing Makefile rules.
13615 # Protect against Makefile macro expansion.
13616 #
13617 # If the first sed substitution is executed (which looks for macros that
13618 # take arguments), then branch to the quote section. Otherwise,
13619 # look for a macro that doesn't take arguments.
13620 ac_script='
13621 :mline
13622 /\\$/{
13623 N
13624 s,\\\n,,
13625 b mline
13626 }
13627 t clear
13628 :clear
13629 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13630 t quote
13631 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13632 t quote
13633 b any
13634 :quote
13635 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13636 s/\[/\\&/g
13637 s/\]/\\&/g
13638 s/\$/$$/g
13639 H
13640 :any
13641 ${
13642 g
13643 s/^\n//
13644 s/\n/ /g
13645 p
13646 }
13647 '
13648 DEFS=`sed -n "$ac_script" confdefs.h`
13649
13650
13651 ac_libobjs=
13652 ac_ltlibobjs=
13653 U=
13654 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13655 # 1. Remove the extension, and $U if already installed.
13656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13657 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13659 # will be set to the directory where LIBOBJS objects are built.
13660 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13661 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13662 done
13663 LIBOBJS=$ac_libobjs
13664
13665 LTLIBOBJS=$ac_ltlibobjs
13666
13667
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13669 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13670 if test -n "$am_sleep_pid"; then
13671 # Hide warnings about reused PIDs.
13672 wait $am_sleep_pid 2>/dev/null
13673 fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13675 $as_echo "done" >&6; }
13676 if test -n "$EXEEXT"; then
13677 am__EXEEXT_TRUE=
13678 am__EXEEXT_FALSE='#'
13679 else
13680 am__EXEEXT_TRUE='#'
13681 am__EXEEXT_FALSE=
13682 fi
13683
13684 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13685 as_fn_error $? "conditional \"AMDEP\" was never defined.
13686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13687 fi
13688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13689 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13691 fi
13692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13693 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695 fi
13696
13697 : "${CONFIG_STATUS=./config.status}"
13698 ac_write_fail=0
13699 ac_clean_files_save=$ac_clean_files
13700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13703 as_write_fail=0
13704 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13705 #! $SHELL
13706 # Generated by $as_me.
13707 # Run this file to recreate the current configuration.
13708 # Compiler output produced by configure, useful for debugging
13709 # configure, is in config.log if it exists.
13710
13711 debug=false
13712 ac_cs_recheck=false
13713 ac_cs_silent=false
13714
13715 SHELL=\${CONFIG_SHELL-$SHELL}
13716 export SHELL
13717 _ASEOF
13718 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13719 ## -------------------- ##
13720 ## M4sh Initialization. ##
13721 ## -------------------- ##
13722
13723 # Be more Bourne compatible
13724 DUALCASE=1; export DUALCASE # for MKS sh
13725 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13726 emulate sh
13727 NULLCMD=:
13728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13729 # is contrary to our usage. Disable this feature.
13730 alias -g '${1+"$@"}'='"$@"'
13731 setopt NO_GLOB_SUBST
13732 else
13733 case `(set -o) 2>/dev/null` in #(
13734 *posix*) :
13735 set -o posix ;; #(
13736 *) :
13737 ;;
13738 esac
13739 fi
13740
13741
13742 as_nl='
13743 '
13744 export as_nl
13745 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13746 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13749 # Prefer a ksh shell builtin over an external printf program on Solaris,
13750 # but without wasting forks for bash or zsh.
13751 if test -z "$BASH_VERSION$ZSH_VERSION" \
13752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13753 as_echo='print -r --'
13754 as_echo_n='print -rn --'
13755 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13756 as_echo='printf %s\n'
13757 as_echo_n='printf %s'
13758 else
13759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13761 as_echo_n='/usr/ucb/echo -n'
13762 else
13763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13764 as_echo_n_body='eval
13765 arg=$1;
13766 case $arg in #(
13767 *"$as_nl"*)
13768 expr "X$arg" : "X\\(.*\\)$as_nl";
13769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13770 esac;
13771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13772 '
13773 export as_echo_n_body
13774 as_echo_n='sh -c $as_echo_n_body as_echo'
13775 fi
13776 export as_echo_body
13777 as_echo='sh -c $as_echo_body as_echo'
13778 fi
13779
13780 # The user is always right.
13781 if test "${PATH_SEPARATOR+set}" != set; then
13782 PATH_SEPARATOR=:
13783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13785 PATH_SEPARATOR=';'
13786 }
13787 fi
13788
13789
13790 # IFS
13791 # We need space, tab and new line, in precisely that order. Quoting is
13792 # there to prevent editors from complaining about space-tab.
13793 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13794 # splitting by setting IFS to empty value.)
13795 IFS=" "" $as_nl"
13796
13797 # Find who we are. Look in the path if we contain no directory separator.
13798 as_myself=
13799 case $0 in #((
13800 *[\\/]* ) as_myself=$0 ;;
13801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
13806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13807 done
13808 IFS=$as_save_IFS
13809
13810 ;;
13811 esac
13812 # We did not find ourselves, most probably we were run as `sh COMMAND'
13813 # in which case we are not to be found in the path.
13814 if test "x$as_myself" = x; then
13815 as_myself=$0
13816 fi
13817 if test ! -f "$as_myself"; then
13818 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13819 exit 1
13820 fi
13821
13822 # Unset variables that we do not need and which cause bugs (e.g. in
13823 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13824 # suppresses any "Segmentation fault" message there. '((' could
13825 # trigger a bug in pdksh 5.2.14.
13826 for as_var in BASH_ENV ENV MAIL MAILPATH
13827 do eval test x\${$as_var+set} = xset \
13828 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13829 done
13830 PS1='$ '
13831 PS2='> '
13832 PS4='+ '
13833
13834 # NLS nuisances.
13835 LC_ALL=C
13836 export LC_ALL
13837 LANGUAGE=C
13838 export LANGUAGE
13839
13840 # CDPATH.
13841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13842
13843
13844 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13845 # ----------------------------------------
13846 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13847 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13848 # script with STATUS, using 1 if that was 0.
13849 as_fn_error ()
13850 {
13851 as_status=$1; test $as_status -eq 0 && as_status=1
13852 if test "$4"; then
13853 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13854 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13855 fi
13856 $as_echo "$as_me: error: $2" >&2
13857 as_fn_exit $as_status
13858 } # as_fn_error
13859
13860
13861 # as_fn_set_status STATUS
13862 # -----------------------
13863 # Set $? to STATUS, without forking.
13864 as_fn_set_status ()
13865 {
13866 return $1
13867 } # as_fn_set_status
13868
13869 # as_fn_exit STATUS
13870 # -----------------
13871 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13872 as_fn_exit ()
13873 {
13874 set +e
13875 as_fn_set_status $1
13876 exit $1
13877 } # as_fn_exit
13878
13879 # as_fn_unset VAR
13880 # ---------------
13881 # Portably unset VAR.
13882 as_fn_unset ()
13883 {
13884 { eval $1=; unset $1;}
13885 }
13886 as_unset=as_fn_unset
13887 # as_fn_append VAR VALUE
13888 # ----------------------
13889 # Append the text in VALUE to the end of the definition contained in VAR. Take
13890 # advantage of any shell optimizations that allow amortized linear growth over
13891 # repeated appends, instead of the typical quadratic growth present in naive
13892 # implementations.
13893 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13894 eval 'as_fn_append ()
13895 {
13896 eval $1+=\$2
13897 }'
13898 else
13899 as_fn_append ()
13900 {
13901 eval $1=\$$1\$2
13902 }
13903 fi # as_fn_append
13904
13905 # as_fn_arith ARG...
13906 # ------------------
13907 # Perform arithmetic evaluation on the ARGs, and store the result in the
13908 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13909 # must be portable across $(()) and expr.
13910 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13911 eval 'as_fn_arith ()
13912 {
13913 as_val=$(( $* ))
13914 }'
13915 else
13916 as_fn_arith ()
13917 {
13918 as_val=`expr "$@" || test $? -eq 1`
13919 }
13920 fi # as_fn_arith
13921
13922
13923 if expr a : '\(a\)' >/dev/null 2>&1 &&
13924 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13925 as_expr=expr
13926 else
13927 as_expr=false
13928 fi
13929
13930 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13931 as_basename=basename
13932 else
13933 as_basename=false
13934 fi
13935
13936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13937 as_dirname=dirname
13938 else
13939 as_dirname=false
13940 fi
13941
13942 as_me=`$as_basename -- "$0" ||
13943 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13944 X"$0" : 'X\(//\)$' \| \
13945 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13946 $as_echo X/"$0" |
13947 sed '/^.*\/\([^/][^/]*\)\/*$/{
13948 s//\1/
13949 q
13950 }
13951 /^X\/\(\/\/\)$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\/\(\/\).*/{
13956 s//\1/
13957 q
13958 }
13959 s/.*/./; q'`
13960
13961 # Avoid depending upon Character Ranges.
13962 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13963 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13964 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13965 as_cr_digits='0123456789'
13966 as_cr_alnum=$as_cr_Letters$as_cr_digits
13967
13968 ECHO_C= ECHO_N= ECHO_T=
13969 case `echo -n x` in #(((((
13970 -n*)
13971 case `echo 'xy\c'` in
13972 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13973 xy) ECHO_C='\c';;
13974 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13975 ECHO_T=' ';;
13976 esac;;
13977 *)
13978 ECHO_N='-n';;
13979 esac
13980
13981 rm -f conf$$ conf$$.exe conf$$.file
13982 if test -d conf$$.dir; then
13983 rm -f conf$$.dir/conf$$.file
13984 else
13985 rm -f conf$$.dir
13986 mkdir conf$$.dir 2>/dev/null
13987 fi
13988 if (echo >conf$$.file) 2>/dev/null; then
13989 if ln -s conf$$.file conf$$ 2>/dev/null; then
13990 as_ln_s='ln -s'
13991 # ... but there are two gotchas:
13992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13994 # In both cases, we have to default to `cp -pR'.
13995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13996 as_ln_s='cp -pR'
13997 elif ln conf$$.file conf$$ 2>/dev/null; then
13998 as_ln_s=ln
13999 else
14000 as_ln_s='cp -pR'
14001 fi
14002 else
14003 as_ln_s='cp -pR'
14004 fi
14005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14006 rmdir conf$$.dir 2>/dev/null
14007
14008
14009 # as_fn_mkdir_p
14010 # -------------
14011 # Create "$as_dir" as a directory, including parents if necessary.
14012 as_fn_mkdir_p ()
14013 {
14014
14015 case $as_dir in #(
14016 -*) as_dir=./$as_dir;;
14017 esac
14018 test -d "$as_dir" || eval $as_mkdir_p || {
14019 as_dirs=
14020 while :; do
14021 case $as_dir in #(
14022 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14023 *) as_qdir=$as_dir;;
14024 esac
14025 as_dirs="'$as_qdir' $as_dirs"
14026 as_dir=`$as_dirname -- "$as_dir" ||
14027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14028 X"$as_dir" : 'X\(//\)[^/]' \| \
14029 X"$as_dir" : 'X\(//\)$' \| \
14030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14031 $as_echo X"$as_dir" |
14032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14033 s//\1/
14034 q
14035 }
14036 /^X\(\/\/\)[^/].*/{
14037 s//\1/
14038 q
14039 }
14040 /^X\(\/\/\)$/{
14041 s//\1/
14042 q
14043 }
14044 /^X\(\/\).*/{
14045 s//\1/
14046 q
14047 }
14048 s/.*/./; q'`
14049 test -d "$as_dir" && break
14050 done
14051 test -z "$as_dirs" || eval "mkdir $as_dirs"
14052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14053
14054
14055 } # as_fn_mkdir_p
14056 if mkdir -p . 2>/dev/null; then
14057 as_mkdir_p='mkdir -p "$as_dir"'
14058 else
14059 test -d ./-p && rmdir ./-p
14060 as_mkdir_p=false
14061 fi
14062
14063
14064 # as_fn_executable_p FILE
14065 # -----------------------
14066 # Test if FILE is an executable regular file.
14067 as_fn_executable_p ()
14068 {
14069 test -f "$1" && test -x "$1"
14070 } # as_fn_executable_p
14071 as_test_x='test -x'
14072 as_executable_p=as_fn_executable_p
14073
14074 # Sed expression to map a string onto a valid CPP name.
14075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14076
14077 # Sed expression to map a string onto a valid variable name.
14078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14079
14080
14081 exec 6>&1
14082 ## ----------------------------------- ##
14083 ## Main body of $CONFIG_STATUS script. ##
14084 ## ----------------------------------- ##
14085 _ASEOF
14086 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14087
14088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14089 # Save the log message, to keep $0 and so on meaningful, and to
14090 # report actual input values of CONFIG_FILES etc. instead of their
14091 # values after options handling.
14092 ac_log="
14093 This file was extended by ace $as_me 1.4, which was
14094 generated by GNU Autoconf 2.69. Invocation command line was
14095
14096 CONFIG_FILES = $CONFIG_FILES
14097 CONFIG_HEADERS = $CONFIG_HEADERS
14098 CONFIG_LINKS = $CONFIG_LINKS
14099 CONFIG_COMMANDS = $CONFIG_COMMANDS
14100 $ $0 $@
14101
14102 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14103 "
14104
14105 _ACEOF
14106
14107 case $ac_config_files in *"
14108 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14109 esac
14110
14111
14112
14113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14114 # Files that config.status was made for.
14115 config_files="$ac_config_files"
14116 config_commands="$ac_config_commands"
14117
14118 _ACEOF
14119
14120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14121 ac_cs_usage="\
14122 \`$as_me' instantiates files and other configuration actions
14123 from templates according to the current configuration. Unless the files
14124 and actions are specified as TAGs, all are instantiated by default.
14125
14126 Usage: $0 [OPTION]... [TAG]...
14127
14128 -h, --help print this help, then exit
14129 -V, --version print version number and configuration settings, then exit
14130 --config print configuration, then exit
14131 -q, --quiet, --silent
14132 do not print progress messages
14133 -d, --debug don't remove temporary files
14134 --recheck update $as_me by reconfiguring in the same conditions
14135 --file=FILE[:TEMPLATE]
14136 instantiate the configuration file FILE
14137
14138 Configuration files:
14139 $config_files
14140
14141 Configuration commands:
14142 $config_commands
14143
14144 Report bugs to the package provider."
14145
14146 _ACEOF
14147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14148 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14149 ac_cs_version="\\
14150 ace config.status 1.4
14151 configured by $0, generated by GNU Autoconf 2.69,
14152 with options \\"\$ac_cs_config\\"
14153
14154 Copyright (C) 2012 Free Software Foundation, Inc.
14155 This config.status script is free software; the Free Software Foundation
14156 gives unlimited permission to copy, distribute and modify it."
14157
14158 ac_pwd='$ac_pwd'
14159 srcdir='$srcdir'
14160 INSTALL='$INSTALL'
14161 MKDIR_P='$MKDIR_P'
14162 AWK='$AWK'
14163 test -n "\$AWK" || AWK=awk
14164 _ACEOF
14165
14166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14167 # The default lists apply if the user does not specify any file.
14168 ac_need_defaults=:
14169 while test $# != 0
14170 do
14171 case $1 in
14172 --*=?*)
14173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14175 ac_shift=:
14176 ;;
14177 --*=)
14178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14179 ac_optarg=
14180 ac_shift=:
14181 ;;
14182 *)
14183 ac_option=$1
14184 ac_optarg=$2
14185 ac_shift=shift
14186 ;;
14187 esac
14188
14189 case $ac_option in
14190 # Handling of the options.
14191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14192 ac_cs_recheck=: ;;
14193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14194 $as_echo "$ac_cs_version"; exit ;;
14195 --config | --confi | --conf | --con | --co | --c )
14196 $as_echo "$ac_cs_config"; exit ;;
14197 --debug | --debu | --deb | --de | --d | -d )
14198 debug=: ;;
14199 --file | --fil | --fi | --f )
14200 $ac_shift
14201 case $ac_optarg in
14202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14203 '') as_fn_error $? "missing file argument" ;;
14204 esac
14205 as_fn_append CONFIG_FILES " '$ac_optarg'"
14206 ac_need_defaults=false;;
14207 --he | --h | --help | --hel | -h )
14208 $as_echo "$ac_cs_usage"; exit ;;
14209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14210 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14211 ac_cs_silent=: ;;
14212
14213 # This is an error.
14214 -*) as_fn_error $? "unrecognized option: \`$1'
14215 Try \`$0 --help' for more information." ;;
14216
14217 *) as_fn_append ac_config_targets " $1"
14218 ac_need_defaults=false ;;
14219
14220 esac
14221 shift
14222 done
14223
14224 ac_configure_extra_args=
14225
14226 if $ac_cs_silent; then
14227 exec 6>/dev/null
14228 ac_configure_extra_args="$ac_configure_extra_args --silent"
14229 fi
14230
14231 _ACEOF
14232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14233 if \$ac_cs_recheck; then
14234 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14235 shift
14236 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14237 CONFIG_SHELL='$SHELL'
14238 export CONFIG_SHELL
14239 exec "\$@"
14240 fi
14241
14242 _ACEOF
14243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244 exec 5>>config.log
14245 {
14246 echo
14247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14248 ## Running $as_me. ##
14249 _ASBOX
14250 $as_echo "$ac_log"
14251 } >&5
14252
14253 _ACEOF
14254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14255 #
14256 # INIT-COMMANDS
14257 #
14258 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14259
14260
14261 # The HP-UX ksh and POSIX shell print the target directory to stdout
14262 # if CDPATH is set.
14263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14264
14265 sed_quote_subst='$sed_quote_subst'
14266 double_quote_subst='$double_quote_subst'
14267 delay_variable_subst='$delay_variable_subst'
14268 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14269 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14270 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14271 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14272 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14273 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14274 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14275 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14276 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14277 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14278 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14279 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14280 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14281 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14282 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14283 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14284 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14285 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14286 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14287 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14288 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14289 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14290 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14291 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14292 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14293 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14294 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14295 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14296 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14297 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14298 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14299 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14300 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14301 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14302 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14303 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14304 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14305 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14306 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14307 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14308 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14309 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14310 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14311 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14312 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14313 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14314 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14315 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14316 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14317 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14318 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14319 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14320 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14321 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14322 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14323 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14324 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"`'
14325 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14326 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14327 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14328 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14329 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14330 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14331 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14332 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14333 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14334 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14335 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14336 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14337 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14338 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14339 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14340 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14341 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14342 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14343 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14344 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14345 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14346 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14347 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14348 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14349 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14350 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14351 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14352 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14353 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14354 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14355 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14356 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14357 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14358 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14359 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14360 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14361 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14362 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14363 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14364 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14365 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14366 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14367 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14368 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14369 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14370 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14371 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14372 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14373 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14374 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14375 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14376 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14377 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14378 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14379 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14380 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14381 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14382 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14383 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14384 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14385 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14386 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14387 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14388 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14389 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14390 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14391 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14392 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14393 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14394 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14395 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14396 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14397 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14398
14399 LTCC='$LTCC'
14400 LTCFLAGS='$LTCFLAGS'
14401 compiler='$compiler_DEFAULT'
14402
14403 # A function that is used when there is no print builtin or printf.
14404 func_fallback_echo ()
14405 {
14406 eval 'cat <<_LTECHO_EOF
14407 \$1
14408 _LTECHO_EOF'
14409 }
14410
14411 # Quote evaled strings.
14412 for var in SHELL \
14413 ECHO \
14414 PATH_SEPARATOR \
14415 SED \
14416 GREP \
14417 EGREP \
14418 FGREP \
14419 LD \
14420 NM \
14421 LN_S \
14422 lt_SP2NL \
14423 lt_NL2SP \
14424 reload_flag \
14425 OBJDUMP \
14426 deplibs_check_method \
14427 file_magic_cmd \
14428 file_magic_glob \
14429 want_nocaseglob \
14430 DLLTOOL \
14431 sharedlib_from_linklib_cmd \
14432 AR \
14433 AR_FLAGS \
14434 archiver_list_spec \
14435 STRIP \
14436 RANLIB \
14437 CC \
14438 CFLAGS \
14439 compiler \
14440 lt_cv_sys_global_symbol_pipe \
14441 lt_cv_sys_global_symbol_to_cdecl \
14442 lt_cv_sys_global_symbol_to_c_name_address \
14443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14444 nm_file_list_spec \
14445 lt_prog_compiler_no_builtin_flag \
14446 lt_prog_compiler_pic \
14447 lt_prog_compiler_wl \
14448 lt_prog_compiler_static \
14449 lt_cv_prog_compiler_c_o \
14450 need_locks \
14451 MANIFEST_TOOL \
14452 DSYMUTIL \
14453 NMEDIT \
14454 LIPO \
14455 OTOOL \
14456 OTOOL64 \
14457 shrext_cmds \
14458 export_dynamic_flag_spec \
14459 whole_archive_flag_spec \
14460 compiler_needs_object \
14461 with_gnu_ld \
14462 allow_undefined_flag \
14463 no_undefined_flag \
14464 hardcode_libdir_flag_spec \
14465 hardcode_libdir_separator \
14466 exclude_expsyms \
14467 include_expsyms \
14468 file_list_spec \
14469 variables_saved_for_relink \
14470 libname_spec \
14471 library_names_spec \
14472 soname_spec \
14473 install_override_mode \
14474 finish_eval \
14475 old_striplib \
14476 striplib; do
14477 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14478 *[\\\\\\\`\\"\\\$]*)
14479 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14480 ;;
14481 *)
14482 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14483 ;;
14484 esac
14485 done
14486
14487 # Double-quote double-evaled strings.
14488 for var in reload_cmds \
14489 old_postinstall_cmds \
14490 old_postuninstall_cmds \
14491 old_archive_cmds \
14492 extract_expsyms_cmds \
14493 old_archive_from_new_cmds \
14494 old_archive_from_expsyms_cmds \
14495 archive_cmds \
14496 archive_expsym_cmds \
14497 module_cmds \
14498 module_expsym_cmds \
14499 export_symbols_cmds \
14500 prelink_cmds \
14501 postlink_cmds \
14502 postinstall_cmds \
14503 postuninstall_cmds \
14504 finish_cmds \
14505 sys_lib_search_path_spec \
14506 sys_lib_dlsearch_path_spec; do
14507 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14508 *[\\\\\\\`\\"\\\$]*)
14509 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14510 ;;
14511 *)
14512 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14513 ;;
14514 esac
14515 done
14516
14517 ac_aux_dir='$ac_aux_dir'
14518 xsi_shell='$xsi_shell'
14519 lt_shell_append='$lt_shell_append'
14520
14521 # See if we are running on zsh, and set the options which allow our
14522 # commands through without removal of \ escapes INIT.
14523 if test -n "\${ZSH_VERSION+set}" ; then
14524 setopt NO_GLOB_SUBST
14525 fi
14526
14527
14528 PACKAGE='$PACKAGE'
14529 VERSION='$VERSION'
14530 TIMESTAMP='$TIMESTAMP'
14531 RM='$RM'
14532 ofile='$ofile'
14533
14534
14535
14536
14537 _ACEOF
14538
14539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14540
14541 # Handling of arguments.
14542 for ac_config_target in $ac_config_targets
14543 do
14544 case $ac_config_target in
14545 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14546 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14548 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14549 "games/Makefile") CONFIG_FILES="$CONFIG_FILES games/Makefile" ;;
14550 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14551
14552 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14553 esac
14554 done
14555
14556
14557 # If the user did not use the arguments to specify the items to instantiate,
14558 # then the envvar interface is used. Set only those that are not.
14559 # We use the long form for the default assignment because of an extremely
14560 # bizarre bug on SunOS 4.1.3.
14561 if $ac_need_defaults; then
14562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14564 fi
14565
14566 # Have a temporary directory for convenience. Make it in the build tree
14567 # simply because there is no reason against having it here, and in addition,
14568 # creating and moving files from /tmp can sometimes cause problems.
14569 # Hook for its removal unless debugging.
14570 # Note that there is a small window in which the directory will not be cleaned:
14571 # after its creation but before its name has been assigned to `$tmp'.
14572 $debug ||
14573 {
14574 tmp= ac_tmp=
14575 trap 'exit_status=$?
14576 : "${ac_tmp:=$tmp}"
14577 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14578 ' 0
14579 trap 'as_fn_exit 1' 1 2 13 15
14580 }
14581 # Create a (secure) tmp directory for tmp files.
14582
14583 {
14584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14585 test -d "$tmp"
14586 } ||
14587 {
14588 tmp=./conf$$-$RANDOM
14589 (umask 077 && mkdir "$tmp")
14590 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14591 ac_tmp=$tmp
14592
14593 # Set up the scripts for CONFIG_FILES section.
14594 # No need to generate them if there are no CONFIG_FILES.
14595 # This happens for instance with `./config.status config.h'.
14596 if test -n "$CONFIG_FILES"; then
14597
14598
14599 ac_cr=`echo X | tr X '\015'`
14600 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14601 # But we know of no other shell where ac_cr would be empty at this
14602 # point, so we can use a bashism as a fallback.
14603 if test "x$ac_cr" = x; then
14604 eval ac_cr=\$\'\\r\'
14605 fi
14606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14608 ac_cs_awk_cr='\\r'
14609 else
14610 ac_cs_awk_cr=$ac_cr
14611 fi
14612
14613 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14614 _ACEOF
14615
14616
14617 {
14618 echo "cat >conf$$subs.awk <<_ACEOF" &&
14619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14620 echo "_ACEOF"
14621 } >conf$$subs.sh ||
14622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14624 ac_delim='%!_!# '
14625 for ac_last_try in false false false false false :; do
14626 . ./conf$$subs.sh ||
14627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14628
14629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14630 if test $ac_delim_n = $ac_delim_num; then
14631 break
14632 elif $ac_last_try; then
14633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14634 else
14635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14636 fi
14637 done
14638 rm -f conf$$subs.sh
14639
14640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14641 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14642 _ACEOF
14643 sed -n '
14644 h
14645 s/^/S["/; s/!.*/"]=/
14646 p
14647 g
14648 s/^[^!]*!//
14649 :repl
14650 t repl
14651 s/'"$ac_delim"'$//
14652 t delim
14653 :nl
14654 h
14655 s/\(.\{148\}\)..*/\1/
14656 t more1
14657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14658 p
14659 n
14660 b repl
14661 :more1
14662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14663 p
14664 g
14665 s/.\{148\}//
14666 t nl
14667 :delim
14668 h
14669 s/\(.\{148\}\)..*/\1/
14670 t more2
14671 s/["\\]/\\&/g; s/^/"/; s/$/"/
14672 p
14673 b
14674 :more2
14675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14676 p
14677 g
14678 s/.\{148\}//
14679 t delim
14680 ' <conf$$subs.awk | sed '
14681 /^[^""]/{
14682 N
14683 s/\n//
14684 }
14685 ' >>$CONFIG_STATUS || ac_write_fail=1
14686 rm -f conf$$subs.awk
14687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14688 _ACAWK
14689 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14690 for (key in S) S_is_set[key] = 1
14691 FS = ""
14692
14693 }
14694 {
14695 line = $ 0
14696 nfields = split(line, field, "@")
14697 substed = 0
14698 len = length(field[1])
14699 for (i = 2; i < nfields; i++) {
14700 key = field[i]
14701 keylen = length(key)
14702 if (S_is_set[key]) {
14703 value = S[key]
14704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14705 len += length(value) + length(field[++i])
14706 substed = 1
14707 } else
14708 len += 1 + keylen
14709 }
14710
14711 print line
14712 }
14713
14714 _ACAWK
14715 _ACEOF
14716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14719 else
14720 cat
14721 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14722 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14723 _ACEOF
14724
14725 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14726 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14727 # trailing colons and then remove the whole line if VPATH becomes empty
14728 # (actually we leave an empty line to preserve line numbers).
14729 if test "x$srcdir" = x.; then
14730 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14731 h
14732 s///
14733 s/^/:/
14734 s/[ ]*$/:/
14735 s/:\$(srcdir):/:/g
14736 s/:\${srcdir}:/:/g
14737 s/:@srcdir@:/:/g
14738 s/^:*//
14739 s/:*$//
14740 x
14741 s/\(=[ ]*\).*/\1/
14742 G
14743 s/\n//
14744 s/^[^=]*=[ ]*$//
14745 }'
14746 fi
14747
14748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14749 fi # test -n "$CONFIG_FILES"
14750
14751
14752 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14753 shift
14754 for ac_tag
14755 do
14756 case $ac_tag in
14757 :[FHLC]) ac_mode=$ac_tag; continue;;
14758 esac
14759 case $ac_mode$ac_tag in
14760 :[FHL]*:*);;
14761 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14762 :[FH]-) ac_tag=-:-;;
14763 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14764 esac
14765 ac_save_IFS=$IFS
14766 IFS=:
14767 set x $ac_tag
14768 IFS=$ac_save_IFS
14769 shift
14770 ac_file=$1
14771 shift
14772
14773 case $ac_mode in
14774 :L) ac_source=$1;;
14775 :[FH])
14776 ac_file_inputs=
14777 for ac_f
14778 do
14779 case $ac_f in
14780 -) ac_f="$ac_tmp/stdin";;
14781 *) # Look for the file first in the build tree, then in the source tree
14782 # (if the path is not absolute). The absolute path cannot be DOS-style,
14783 # because $ac_f cannot contain `:'.
14784 test -f "$ac_f" ||
14785 case $ac_f in
14786 [\\/$]*) false;;
14787 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14788 esac ||
14789 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14790 esac
14791 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14792 as_fn_append ac_file_inputs " '$ac_f'"
14793 done
14794
14795 # Let's still pretend it is `configure' which instantiates (i.e., don't
14796 # use $as_me), people would be surprised to read:
14797 # /* config.h. Generated by config.status. */
14798 configure_input='Generated from '`
14799 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14800 `' by configure.'
14801 if test x"$ac_file" != x-; then
14802 configure_input="$ac_file. $configure_input"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14804 $as_echo "$as_me: creating $ac_file" >&6;}
14805 fi
14806 # Neutralize special characters interpreted by sed in replacement strings.
14807 case $configure_input in #(
14808 *\&* | *\|* | *\\* )
14809 ac_sed_conf_input=`$as_echo "$configure_input" |
14810 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14811 *) ac_sed_conf_input=$configure_input;;
14812 esac
14813
14814 case $ac_tag in
14815 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14817 esac
14818 ;;
14819 esac
14820
14821 ac_dir=`$as_dirname -- "$ac_file" ||
14822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14823 X"$ac_file" : 'X\(//\)[^/]' \| \
14824 X"$ac_file" : 'X\(//\)$' \| \
14825 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14826 $as_echo X"$ac_file" |
14827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14828 s//\1/
14829 q
14830 }
14831 /^X\(\/\/\)[^/].*/{
14832 s//\1/
14833 q
14834 }
14835 /^X\(\/\/\)$/{
14836 s//\1/
14837 q
14838 }
14839 /^X\(\/\).*/{
14840 s//\1/
14841 q
14842 }
14843 s/.*/./; q'`
14844 as_dir="$ac_dir"; as_fn_mkdir_p
14845 ac_builddir=.
14846
14847 case "$ac_dir" in
14848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14849 *)
14850 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14851 # A ".." for each directory in $ac_dir_suffix.
14852 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14853 case $ac_top_builddir_sub in
14854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14856 esac ;;
14857 esac
14858 ac_abs_top_builddir=$ac_pwd
14859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14860 # for backward compatibility:
14861 ac_top_builddir=$ac_top_build_prefix
14862
14863 case $srcdir in
14864 .) # We are building in place.
14865 ac_srcdir=.
14866 ac_top_srcdir=$ac_top_builddir_sub
14867 ac_abs_top_srcdir=$ac_pwd ;;
14868 [\\/]* | ?:[\\/]* ) # Absolute name.
14869 ac_srcdir=$srcdir$ac_dir_suffix;
14870 ac_top_srcdir=$srcdir
14871 ac_abs_top_srcdir=$srcdir ;;
14872 *) # Relative name.
14873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14874 ac_top_srcdir=$ac_top_build_prefix$srcdir
14875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14876 esac
14877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14878
14879
14880 case $ac_mode in
14881 :F)
14882 #
14883 # CONFIG_FILE
14884 #
14885
14886 case $INSTALL in
14887 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14888 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14889 esac
14890 ac_MKDIR_P=$MKDIR_P
14891 case $MKDIR_P in
14892 [\\/$]* | ?:[\\/]* ) ;;
14893 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14894 esac
14895 _ACEOF
14896
14897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14898 # If the template does not know about datarootdir, expand it.
14899 # FIXME: This hack should be removed a few years after 2.60.
14900 ac_datarootdir_hack=; ac_datarootdir_seen=
14901 ac_sed_dataroot='
14902 /datarootdir/ {
14903 p
14904 q
14905 }
14906 /@datadir@/p
14907 /@docdir@/p
14908 /@infodir@/p
14909 /@localedir@/p
14910 /@mandir@/p'
14911 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14912 *datarootdir*) ac_datarootdir_seen=yes;;
14913 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14915 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14916 _ACEOF
14917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14918 ac_datarootdir_hack='
14919 s&@datadir@&$datadir&g
14920 s&@docdir@&$docdir&g
14921 s&@infodir@&$infodir&g
14922 s&@localedir@&$localedir&g
14923 s&@mandir@&$mandir&g
14924 s&\\\${datarootdir}&$datarootdir&g' ;;
14925 esac
14926 _ACEOF
14927
14928 # Neutralize VPATH when `$srcdir' = `.'.
14929 # Shell code in configure.ac might set extrasub.
14930 # FIXME: do we really want to maintain this feature?
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 ac_sed_extra="$ac_vpsub
14933 $extrasub
14934 _ACEOF
14935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936 :t
14937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14938 s|@configure_input@|$ac_sed_conf_input|;t t
14939 s&@top_builddir@&$ac_top_builddir_sub&;t t
14940 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14941 s&@srcdir@&$ac_srcdir&;t t
14942 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14943 s&@top_srcdir@&$ac_top_srcdir&;t t
14944 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14945 s&@builddir@&$ac_builddir&;t t
14946 s&@abs_builddir@&$ac_abs_builddir&;t t
14947 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14948 s&@INSTALL@&$ac_INSTALL&;t t
14949 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14950 $ac_datarootdir_hack
14951 "
14952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14953 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14954
14955 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14956 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14957 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14958 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14960 which seems to be undefined. Please make sure it is defined" >&5
14961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14962 which seems to be undefined. Please make sure it is defined" >&2;}
14963
14964 rm -f "$ac_tmp/stdin"
14965 case $ac_file in
14966 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14967 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14968 esac \
14969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14970 ;;
14971
14972
14973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14974 $as_echo "$as_me: executing $ac_file commands" >&6;}
14975 ;;
14976 esac
14977
14978
14979 case $ac_file$ac_mode in
14980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14981 # Older Autoconf quotes --file arguments for eval, but not when files
14982 # are listed without --file. Let's play safe and only enable the eval
14983 # if we detect the quoting.
14984 case $CONFIG_FILES in
14985 *\'*) eval set x "$CONFIG_FILES" ;;
14986 *) set x $CONFIG_FILES ;;
14987 esac
14988 shift
14989 for mf
14990 do
14991 # Strip MF so we end up with the name of the file.
14992 mf=`echo "$mf" | sed -e 's/:.*$//'`
14993 # Check whether this is an Automake generated Makefile or not.
14994 # We used to match only the files named 'Makefile.in', but
14995 # some people rename them; so instead we look at the file content.
14996 # Grep'ing the first line is not enough: some people post-process
14997 # each Makefile.in and add a new line on top of each file to say so.
14998 # Grep'ing the whole file is not good either: AIX grep has a line
14999 # limit of 2048, but all sed's we know have understand at least 4000.
15000 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15001 dirpart=`$as_dirname -- "$mf" ||
15002 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15003 X"$mf" : 'X\(//\)[^/]' \| \
15004 X"$mf" : 'X\(//\)$' \| \
15005 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15006 $as_echo X"$mf" |
15007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15008 s//\1/
15009 q
15010 }
15011 /^X\(\/\/\)[^/].*/{
15012 s//\1/
15013 q
15014 }
15015 /^X\(\/\/\)$/{
15016 s//\1/
15017 q
15018 }
15019 /^X\(\/\).*/{
15020 s//\1/
15021 q
15022 }
15023 s/.*/./; q'`
15024 else
15025 continue
15026 fi
15027 # Extract the definition of DEPDIR, am__include, and am__quote
15028 # from the Makefile without running 'make'.
15029 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15030 test -z "$DEPDIR" && continue
15031 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15032 test -z "$am__include" && continue
15033 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15034 # Find all dependency output files, they are included files with
15035 # $(DEPDIR) in their names. We invoke sed twice because it is the
15036 # simplest approach to changing $(DEPDIR) to its actual value in the
15037 # expansion.
15038 for file in `sed -n "
15039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15041 # Make sure the directory exists.
15042 test -f "$dirpart/$file" && continue
15043 fdir=`$as_dirname -- "$file" ||
15044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$file" : 'X\(//\)[^/]' \| \
15046 X"$file" : 'X\(//\)$' \| \
15047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15048 $as_echo X"$file" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)[^/].*/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\/\)$/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\).*/{
15062 s//\1/
15063 q
15064 }
15065 s/.*/./; q'`
15066 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15067 # echo "creating $dirpart/$file"
15068 echo '# dummy' > "$dirpart/$file"
15069 done
15070 done
15071 }
15072 ;;
15073 "libtool":C)
15074
15075 # See if we are running on zsh, and set the options which allow our
15076 # commands through without removal of \ escapes.
15077 if test -n "${ZSH_VERSION+set}" ; then
15078 setopt NO_GLOB_SUBST
15079 fi
15080
15081 cfgfile="${ofile}T"
15082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15083 $RM "$cfgfile"
15084
15085 cat <<_LT_EOF >> "$cfgfile"
15086 #! $SHELL
15087
15088 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15089 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15092 #
15093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15094 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15095 # Foundation, Inc.
15096 # Written by Gordon Matzigkeit, 1996
15097 #
15098 # This file is part of GNU Libtool.
15099 #
15100 # GNU Libtool is free software; you can redistribute it and/or
15101 # modify it under the terms of the GNU General Public License as
15102 # published by the Free Software Foundation; either version 2 of
15103 # the License, or (at your option) any later version.
15104 #
15105 # As a special exception to the GNU General Public License,
15106 # if you distribute this file as part of a program or library that
15107 # is built using GNU Libtool, you may include this file under the
15108 # same distribution terms that you use for the rest of that program.
15109 #
15110 # GNU Libtool is distributed in the hope that it will be useful,
15111 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15113 # GNU General Public License for more details.
15114 #
15115 # You should have received a copy of the GNU General Public License
15116 # along with GNU Libtool; see the file COPYING. If not, a copy
15117 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15118 # obtained by writing to the Free Software Foundation, Inc.,
15119 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15120
15121
15122 # The names of the tagged configurations supported by this script.
15123 available_tags=""
15124
15125 # ### BEGIN LIBTOOL CONFIG
15126
15127 # Which release of libtool.m4 was used?
15128 macro_version=$macro_version
15129 macro_revision=$macro_revision
15130
15131 # Whether or not to build shared libraries.
15132 build_libtool_libs=$enable_shared
15133
15134 # Whether or not to build static libraries.
15135 build_old_libs=$enable_static
15136
15137 # What type of objects to build.
15138 pic_mode=$pic_mode
15139
15140 # Whether or not to optimize for fast installation.
15141 fast_install=$enable_fast_install
15142
15143 # Shell to use when invoking shell scripts.
15144 SHELL=$lt_SHELL
15145
15146 # An echo program that protects backslashes.
15147 ECHO=$lt_ECHO
15148
15149 # The PATH separator for the build system.
15150 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15151
15152 # The host system.
15153 host_alias=$host_alias
15154 host=$host
15155 host_os=$host_os
15156
15157 # The build system.
15158 build_alias=$build_alias
15159 build=$build
15160 build_os=$build_os
15161
15162 # A sed program that does not truncate output.
15163 SED=$lt_SED
15164
15165 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15166 Xsed="\$SED -e 1s/^X//"
15167
15168 # A grep program that handles long lines.
15169 GREP=$lt_GREP
15170
15171 # An ERE matcher.
15172 EGREP=$lt_EGREP
15173
15174 # A literal string matcher.
15175 FGREP=$lt_FGREP
15176
15177 # A BSD- or MS-compatible name lister.
15178 NM=$lt_NM
15179
15180 # Whether we need soft or hard links.
15181 LN_S=$lt_LN_S
15182
15183 # What is the maximum length of a command?
15184 max_cmd_len=$max_cmd_len
15185
15186 # Object file suffix (normally "o").
15187 objext=$ac_objext
15188
15189 # Executable file suffix (normally "").
15190 exeext=$exeext
15191
15192 # whether the shell understands "unset".
15193 lt_unset=$lt_unset
15194
15195 # turn spaces into newlines.
15196 SP2NL=$lt_lt_SP2NL
15197
15198 # turn newlines into spaces.
15199 NL2SP=$lt_lt_NL2SP
15200
15201 # convert \$build file names to \$host format.
15202 to_host_file_cmd=$lt_cv_to_host_file_cmd
15203
15204 # convert \$build files to toolchain format.
15205 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15206
15207 # An object symbol dumper.
15208 OBJDUMP=$lt_OBJDUMP
15209
15210 # Method to check whether dependent libraries are shared objects.
15211 deplibs_check_method=$lt_deplibs_check_method
15212
15213 # Command to use when deplibs_check_method = "file_magic".
15214 file_magic_cmd=$lt_file_magic_cmd
15215
15216 # How to find potential files when deplibs_check_method = "file_magic".
15217 file_magic_glob=$lt_file_magic_glob
15218
15219 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15220 want_nocaseglob=$lt_want_nocaseglob
15221
15222 # DLL creation program.
15223 DLLTOOL=$lt_DLLTOOL
15224
15225 # Command to associate shared and link libraries.
15226 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15227
15228 # The archiver.
15229 AR=$lt_AR
15230
15231 # Flags to create an archive.
15232 AR_FLAGS=$lt_AR_FLAGS
15233
15234 # How to feed a file listing to the archiver.
15235 archiver_list_spec=$lt_archiver_list_spec
15236
15237 # A symbol stripping program.
15238 STRIP=$lt_STRIP
15239
15240 # Commands used to install an old-style archive.
15241 RANLIB=$lt_RANLIB
15242 old_postinstall_cmds=$lt_old_postinstall_cmds
15243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15244
15245 # Whether to use a lock for old archive extraction.
15246 lock_old_archive_extraction=$lock_old_archive_extraction
15247
15248 # A C compiler.
15249 LTCC=$lt_CC
15250
15251 # LTCC compiler flags.
15252 LTCFLAGS=$lt_CFLAGS
15253
15254 # Take the output of nm and produce a listing of raw symbols and C names.
15255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15256
15257 # Transform the output of nm in a proper C declaration.
15258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15259
15260 # Transform the output of nm in a C name address pair.
15261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15262
15263 # Transform the output of nm in a C name address pair when lib prefix is needed.
15264 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15265
15266 # Specify filename containing input files for \$NM.
15267 nm_file_list_spec=$lt_nm_file_list_spec
15268
15269 # The root where to search for dependent libraries,and in which our libraries should be installed.
15270 lt_sysroot=$lt_sysroot
15271
15272 # The name of the directory that contains temporary libtool files.
15273 objdir=$objdir
15274
15275 # Used to examine libraries when file_magic_cmd begins with "file".
15276 MAGIC_CMD=$MAGIC_CMD
15277
15278 # Must we lock files when doing compilation?
15279 need_locks=$lt_need_locks
15280
15281 # Manifest tool.
15282 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15283
15284 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15285 DSYMUTIL=$lt_DSYMUTIL
15286
15287 # Tool to change global to local symbols on Mac OS X.
15288 NMEDIT=$lt_NMEDIT
15289
15290 # Tool to manipulate fat objects and archives on Mac OS X.
15291 LIPO=$lt_LIPO
15292
15293 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15294 OTOOL=$lt_OTOOL
15295
15296 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15297 OTOOL64=$lt_OTOOL64
15298
15299 # Old archive suffix (normally "a").
15300 libext=$libext
15301
15302 # Shared library suffix (normally ".so").
15303 shrext_cmds=$lt_shrext_cmds
15304
15305 # The commands to extract the exported symbol list from a shared archive.
15306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15307
15308 # Variables whose values should be saved in libtool wrapper scripts and
15309 # restored at link time.
15310 variables_saved_for_relink=$lt_variables_saved_for_relink
15311
15312 # Do we need the "lib" prefix for modules?
15313 need_lib_prefix=$need_lib_prefix
15314
15315 # Do we need a version for libraries?
15316 need_version=$need_version
15317
15318 # Library versioning type.
15319 version_type=$version_type
15320
15321 # Shared library runtime path variable.
15322 runpath_var=$runpath_var
15323
15324 # Shared library path variable.
15325 shlibpath_var=$shlibpath_var
15326
15327 # Is shlibpath searched before the hard-coded library search path?
15328 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15329
15330 # Format of library name prefix.
15331 libname_spec=$lt_libname_spec
15332
15333 # List of archive names. First name is the real one, the rest are links.
15334 # The last name is the one that the linker finds with -lNAME
15335 library_names_spec=$lt_library_names_spec
15336
15337 # The coded name of the library, if different from the real name.
15338 soname_spec=$lt_soname_spec
15339
15340 # Permission mode override for installation of shared libraries.
15341 install_override_mode=$lt_install_override_mode
15342
15343 # Command to use after installation of a shared archive.
15344 postinstall_cmds=$lt_postinstall_cmds
15345
15346 # Command to use after uninstallation of a shared archive.
15347 postuninstall_cmds=$lt_postuninstall_cmds
15348
15349 # Commands used to finish a libtool library installation in a directory.
15350 finish_cmds=$lt_finish_cmds
15351
15352 # As "finish_cmds", except a single script fragment to be evaled but
15353 # not shown.
15354 finish_eval=$lt_finish_eval
15355
15356 # Whether we should hardcode library paths into libraries.
15357 hardcode_into_libs=$hardcode_into_libs
15358
15359 # Compile-time system search path for libraries.
15360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15361
15362 # Run-time system search path for libraries.
15363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15364
15365 # Whether dlopen is supported.
15366 dlopen_support=$enable_dlopen
15367
15368 # Whether dlopen of programs is supported.
15369 dlopen_self=$enable_dlopen_self
15370
15371 # Whether dlopen of statically linked programs is supported.
15372 dlopen_self_static=$enable_dlopen_self_static
15373
15374 # Commands to strip libraries.
15375 old_striplib=$lt_old_striplib
15376 striplib=$lt_striplib
15377
15378
15379 # The linker used to build libraries.
15380 LD=$lt_LD
15381
15382 # How to create reloadable object files.
15383 reload_flag=$lt_reload_flag
15384 reload_cmds=$lt_reload_cmds
15385
15386 # Commands used to build an old-style archive.
15387 old_archive_cmds=$lt_old_archive_cmds
15388
15389 # A language specific compiler.
15390 CC=$lt_compiler
15391
15392 # Is the compiler the GNU compiler?
15393 with_gcc=$GCC
15394
15395 # Compiler flag to turn off builtin functions.
15396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15397
15398 # Additional compiler flags for building library objects.
15399 pic_flag=$lt_lt_prog_compiler_pic
15400
15401 # How to pass a linker flag through the compiler.
15402 wl=$lt_lt_prog_compiler_wl
15403
15404 # Compiler flag to prevent dynamic linking.
15405 link_static_flag=$lt_lt_prog_compiler_static
15406
15407 # Does compiler simultaneously support -c and -o options?
15408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15409
15410 # Whether or not to add -lc for building shared libraries.
15411 build_libtool_need_lc=$archive_cmds_need_lc
15412
15413 # Whether or not to disallow shared libs when runtime libs are static.
15414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15415
15416 # Compiler flag to allow reflexive dlopens.
15417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15418
15419 # Compiler flag to generate shared objects directly from archives.
15420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15421
15422 # Whether the compiler copes with passing no objects directly.
15423 compiler_needs_object=$lt_compiler_needs_object
15424
15425 # Create an old-style archive from a shared archive.
15426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15427
15428 # Create a temporary old-style archive to link instead of a shared archive.
15429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15430
15431 # Commands used to build a shared archive.
15432 archive_cmds=$lt_archive_cmds
15433 archive_expsym_cmds=$lt_archive_expsym_cmds
15434
15435 # Commands used to build a loadable module if different from building
15436 # a shared archive.
15437 module_cmds=$lt_module_cmds
15438 module_expsym_cmds=$lt_module_expsym_cmds
15439
15440 # Whether we are building with GNU ld or not.
15441 with_gnu_ld=$lt_with_gnu_ld
15442
15443 # Flag that allows shared libraries with undefined symbols to be built.
15444 allow_undefined_flag=$lt_allow_undefined_flag
15445
15446 # Flag that enforces no undefined symbols.
15447 no_undefined_flag=$lt_no_undefined_flag
15448
15449 # Flag to hardcode \$libdir into a binary during linking.
15450 # This must work even if \$libdir does not exist
15451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15452
15453 # Whether we need a single "-rpath" flag with a separated argument.
15454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15455
15456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15457 # DIR into the resulting binary.
15458 hardcode_direct=$hardcode_direct
15459
15460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15461 # DIR into the resulting binary and the resulting library dependency is
15462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15463 # library is relocated.
15464 hardcode_direct_absolute=$hardcode_direct_absolute
15465
15466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15467 # into the resulting binary.
15468 hardcode_minus_L=$hardcode_minus_L
15469
15470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15471 # into the resulting binary.
15472 hardcode_shlibpath_var=$hardcode_shlibpath_var
15473
15474 # Set to "yes" if building a shared library automatically hardcodes DIR
15475 # into the library and all subsequent libraries and executables linked
15476 # against it.
15477 hardcode_automatic=$hardcode_automatic
15478
15479 # Set to yes if linker adds runtime paths of dependent libraries
15480 # to runtime path list.
15481 inherit_rpath=$inherit_rpath
15482
15483 # Whether libtool must link a program against all its dependency libraries.
15484 link_all_deplibs=$link_all_deplibs
15485
15486 # Set to "yes" if exported symbols are required.
15487 always_export_symbols=$always_export_symbols
15488
15489 # The commands to list exported symbols.
15490 export_symbols_cmds=$lt_export_symbols_cmds
15491
15492 # Symbols that should not be listed in the preloaded symbols.
15493 exclude_expsyms=$lt_exclude_expsyms
15494
15495 # Symbols that must always be exported.
15496 include_expsyms=$lt_include_expsyms
15497
15498 # Commands necessary for linking programs (against libraries) with templates.
15499 prelink_cmds=$lt_prelink_cmds
15500
15501 # Commands necessary for finishing linking programs.
15502 postlink_cmds=$lt_postlink_cmds
15503
15504 # Specify filename containing input files.
15505 file_list_spec=$lt_file_list_spec
15506
15507 # How to hardcode a shared library path into an executable.
15508 hardcode_action=$hardcode_action
15509
15510 # ### END LIBTOOL CONFIG
15511
15512 _LT_EOF
15513
15514 case $host_os in
15515 aix3*)
15516 cat <<\_LT_EOF >> "$cfgfile"
15517 # AIX sometimes has problems with the GCC collect2 program. For some
15518 # reason, if we set the COLLECT_NAMES environment variable, the problems
15519 # vanish in a puff of smoke.
15520 if test "X${COLLECT_NAMES+set}" != Xset; then
15521 COLLECT_NAMES=
15522 export COLLECT_NAMES
15523 fi
15524 _LT_EOF
15525 ;;
15526 esac
15527
15528
15529 ltmain="$ac_aux_dir/ltmain.sh"
15530
15531
15532 # We use sed instead of cat because bash on DJGPP gets confused if
15533 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15534 # text mode, it properly converts lines to CR/LF. This bash problem
15535 # is reportedly fixed, but why not run on old versions too?
15536 sed '$q' "$ltmain" >> "$cfgfile" \
15537 || (rm -f "$cfgfile"; exit 1)
15538
15539 if test x"$xsi_shell" = xyes; then
15540 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15541 func_dirname ()\
15542 {\
15543 \ case ${1} in\
15544 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15545 \ * ) func_dirname_result="${3}" ;;\
15546 \ esac\
15547 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15548 && mv -f "$cfgfile.tmp" "$cfgfile" \
15549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15550 test 0 -eq $? || _lt_function_replace_fail=:
15551
15552
15553 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15554 func_basename ()\
15555 {\
15556 \ func_basename_result="${1##*/}"\
15557 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15558 && mv -f "$cfgfile.tmp" "$cfgfile" \
15559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15560 test 0 -eq $? || _lt_function_replace_fail=:
15561
15562
15563 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15564 func_dirname_and_basename ()\
15565 {\
15566 \ case ${1} in\
15567 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15568 \ * ) func_dirname_result="${3}" ;;\
15569 \ esac\
15570 \ func_basename_result="${1##*/}"\
15571 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15572 && mv -f "$cfgfile.tmp" "$cfgfile" \
15573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15574 test 0 -eq $? || _lt_function_replace_fail=:
15575
15576
15577 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15578 func_stripname ()\
15579 {\
15580 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15581 \ # positional parameters, so assign one to ordinary parameter first.\
15582 \ func_stripname_result=${3}\
15583 \ func_stripname_result=${func_stripname_result#"${1}"}\
15584 \ func_stripname_result=${func_stripname_result%"${2}"}\
15585 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15586 && mv -f "$cfgfile.tmp" "$cfgfile" \
15587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15588 test 0 -eq $? || _lt_function_replace_fail=:
15589
15590
15591 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15592 func_split_long_opt ()\
15593 {\
15594 \ func_split_long_opt_name=${1%%=*}\
15595 \ func_split_long_opt_arg=${1#*=}\
15596 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15597 && mv -f "$cfgfile.tmp" "$cfgfile" \
15598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15599 test 0 -eq $? || _lt_function_replace_fail=:
15600
15601
15602 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15603 func_split_short_opt ()\
15604 {\
15605 \ func_split_short_opt_arg=${1#??}\
15606 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15607 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15608 && mv -f "$cfgfile.tmp" "$cfgfile" \
15609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15610 test 0 -eq $? || _lt_function_replace_fail=:
15611
15612
15613 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15614 func_lo2o ()\
15615 {\
15616 \ case ${1} in\
15617 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15618 \ *) func_lo2o_result=${1} ;;\
15619 \ esac\
15620 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15621 && mv -f "$cfgfile.tmp" "$cfgfile" \
15622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15623 test 0 -eq $? || _lt_function_replace_fail=:
15624
15625
15626 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15627 func_xform ()\
15628 {\
15629 func_xform_result=${1%.*}.lo\
15630 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15631 && mv -f "$cfgfile.tmp" "$cfgfile" \
15632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15633 test 0 -eq $? || _lt_function_replace_fail=:
15634
15635
15636 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15637 func_arith ()\
15638 {\
15639 func_arith_result=$(( $* ))\
15640 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15641 && mv -f "$cfgfile.tmp" "$cfgfile" \
15642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15643 test 0 -eq $? || _lt_function_replace_fail=:
15644
15645
15646 sed -e '/^func_len ()$/,/^} # func_len /c\
15647 func_len ()\
15648 {\
15649 func_len_result=${#1}\
15650 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15651 && mv -f "$cfgfile.tmp" "$cfgfile" \
15652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15653 test 0 -eq $? || _lt_function_replace_fail=:
15654
15655 fi
15656
15657 if test x"$lt_shell_append" = xyes; then
15658 sed -e '/^func_append ()$/,/^} # func_append /c\
15659 func_append ()\
15660 {\
15661 eval "${1}+=\\${2}"\
15662 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15663 && mv -f "$cfgfile.tmp" "$cfgfile" \
15664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15665 test 0 -eq $? || _lt_function_replace_fail=:
15666
15667
15668 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15669 func_append_quoted ()\
15670 {\
15671 \ func_quote_for_eval "${2}"\
15672 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15673 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15674 && mv -f "$cfgfile.tmp" "$cfgfile" \
15675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15676 test 0 -eq $? || _lt_function_replace_fail=:
15677
15678
15679 # Save a `func_append' function call where possible by direct use of '+='
15680 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15681 && mv -f "$cfgfile.tmp" "$cfgfile" \
15682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15683 test 0 -eq $? || _lt_function_replace_fail=:
15684 else
15685 # Save a `func_append' function call even when '+=' is not available
15686 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15687 && mv -f "$cfgfile.tmp" "$cfgfile" \
15688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15689 test 0 -eq $? || _lt_function_replace_fail=:
15690 fi
15691
15692 if test x"$_lt_function_replace_fail" = x":"; then
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15694 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15695 fi
15696
15697
15698 mv -f "$cfgfile" "$ofile" ||
15699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15700 chmod +x "$ofile"
15701
15702 ;;
15703
15704 esac
15705 done # for ac_tag
15706
15707
15708 as_fn_exit 0
15709 _ACEOF
15710 ac_clean_files=$ac_clean_files_save
15711
15712 test $ac_write_fail = 0 ||
15713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15714
15715
15716 # configure is writing to config.log, and then calls config.status.
15717 # config.status does its own redirection, appending to config.log.
15718 # Unfortunately, on DOS this fails, as config.log is still kept open
15719 # by configure, so config.status won't be able to write to it; its
15720 # output is simply discarded. So we exec the FD to /dev/null,
15721 # effectively closing config.log, so it can be properly (re)opened and
15722 # appended to by config.status. When coming back to configure, we
15723 # need to make the FD available again.
15724 if test "$no_create" != yes; then
15725 ac_cs_success=:
15726 ac_config_status_args=
15727 test "$silent" = yes &&
15728 ac_config_status_args="$ac_config_status_args --quiet"
15729 exec 5>/dev/null
15730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15731 exec 5>>config.log
15732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15733 # would make configure fail if this is the last instruction.
15734 $ac_cs_success || as_fn_exit 1
15735 fi
15736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15739 fi
15740