]> jfr.im git - solanum.git/blob - libratbox/configure
Merge pull request #2 from TheChrisAM/patch-1
[solanum.git] / libratbox / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libratbox devel.
4 #
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
250 $0: including any error possibly output before this
251 $0: message. Then install a modern shell, or manually run
252 $0: the script under such a shell if you do have one."
253 fi
254 exit 1
255 fi
256 fi
257 fi
258 SHELL=${CONFIG_SHELL-/bin/sh}
259 export SHELL
260 # Unset more variables known to interfere with behavior of common tools.
261 CLICOLOR_FORCE= GREP_OPTIONS=
262 unset CLICOLOR_FORCE GREP_OPTIONS
263
264 ## --------------------- ##
265 ## M4sh Shell Functions. ##
266 ## --------------------- ##
267 # as_fn_unset VAR
268 # ---------------
269 # Portably unset VAR.
270 as_fn_unset ()
271 {
272 { eval $1=; unset $1;}
273 }
274 as_unset=as_fn_unset
275
276 # as_fn_set_status STATUS
277 # -----------------------
278 # Set $? to STATUS, without forking.
279 as_fn_set_status ()
280 {
281 return $1
282 } # as_fn_set_status
283
284 # as_fn_exit STATUS
285 # -----------------
286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 as_fn_exit ()
288 {
289 set +e
290 as_fn_set_status $1
291 exit $1
292 } # as_fn_exit
293
294 # as_fn_mkdir_p
295 # -------------
296 # Create "$as_dir" as a directory, including parents if necessary.
297 as_fn_mkdir_p ()
298 {
299
300 case $as_dir in #(
301 -*) as_dir=./$as_dir;;
302 esac
303 test -d "$as_dir" || eval $as_mkdir_p || {
304 as_dirs=
305 while :; do
306 case $as_dir in #(
307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 *) as_qdir=$as_dir;;
309 esac
310 as_dirs="'$as_qdir' $as_dirs"
311 as_dir=`$as_dirname -- "$as_dir" ||
312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
313 X"$as_dir" : 'X\(//\)[^/]' \| \
314 X"$as_dir" : 'X\(//\)$' \| \
315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
316 $as_echo X"$as_dir" |
317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\/\)[^/].*/{
322 s//\1/
323 q
324 }
325 /^X\(\/\/\)$/{
326 s//\1/
327 q
328 }
329 /^X\(\/\).*/{
330 s//\1/
331 q
332 }
333 s/.*/./; q'`
334 test -d "$as_dir" && break
335 done
336 test -z "$as_dirs" || eval "mkdir $as_dirs"
337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338
339
340 } # as_fn_mkdir_p
341 # as_fn_append VAR VALUE
342 # ----------------------
343 # Append the text in VALUE to the end of the definition contained in VAR. Take
344 # advantage of any shell optimizations that allow amortized linear growth over
345 # repeated appends, instead of the typical quadratic growth present in naive
346 # implementations.
347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
348 eval 'as_fn_append ()
349 {
350 eval $1+=\$2
351 }'
352 else
353 as_fn_append ()
354 {
355 eval $1=\$$1\$2
356 }
357 fi # as_fn_append
358
359 # as_fn_arith ARG...
360 # ------------------
361 # Perform arithmetic evaluation on the ARGs, and store the result in the
362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
363 # must be portable across $(()) and expr.
364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 eval 'as_fn_arith ()
366 {
367 as_val=$(( $* ))
368 }'
369 else
370 as_fn_arith ()
371 {
372 as_val=`expr "$@" || test $? -eq 1`
373 }
374 fi # as_fn_arith
375
376
377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
378 # ----------------------------------------
379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
381 # script with STATUS, using 1 if that was 0.
382 as_fn_error ()
383 {
384 as_status=$1; test $as_status -eq 0 && as_status=1
385 if test "$4"; then
386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
388 fi
389 $as_echo "$as_me: error: $2" >&2
390 as_fn_exit $as_status
391 } # as_fn_error
392
393 if expr a : '\(a\)' >/dev/null 2>&1 &&
394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
395 as_expr=expr
396 else
397 as_expr=false
398 fi
399
400 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
401 as_basename=basename
402 else
403 as_basename=false
404 fi
405
406 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
407 as_dirname=dirname
408 else
409 as_dirname=false
410 fi
411
412 as_me=`$as_basename -- "$0" ||
413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
414 X"$0" : 'X\(//\)$' \| \
415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
416 $as_echo X/"$0" |
417 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 s//\1/
419 q
420 }
421 /^X\/\(\/\/\)$/{
422 s//\1/
423 q
424 }
425 /^X\/\(\/\).*/{
426 s//\1/
427 q
428 }
429 s/.*/./; q'`
430
431 # Avoid depending upon Character Ranges.
432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
435 as_cr_digits='0123456789'
436 as_cr_alnum=$as_cr_Letters$as_cr_digits
437
438
439 as_lineno_1=$LINENO as_lineno_1a=$LINENO
440 as_lineno_2=$LINENO as_lineno_2a=$LINENO
441 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
442 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
443 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
444 sed -n '
445 p
446 /[$]LINENO/=
447 ' <$as_myself |
448 sed '
449 s/[$]LINENO.*/&-/
450 t lineno
451 b
452 :lineno
453 N
454 :loop
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 t loop
457 s/-\n.*//
458 ' >$as_me.lineno &&
459 chmod +x "$as_me.lineno" ||
460 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
461
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
468 }
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in #(((((
472 -n*)
473 case `echo 'xy\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 xy) ECHO_C='\c';;
476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 ECHO_T=' ';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 rm -f conf$$ conf$$.exe conf$$.file
484 if test -d conf$$.dir; then
485 rm -f conf$$.dir/conf$$.file
486 else
487 rm -f conf$$.dir
488 mkdir conf$$.dir 2>/dev/null
489 fi
490 if (echo >conf$$.file) 2>/dev/null; then
491 if ln -s conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s='ln -s'
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
499 elif ln conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s=ln
501 else
502 as_ln_s='cp -p'
503 fi
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p='mkdir -p "$as_dir"'
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
519 else
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
524 fi
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
536 '
537 fi
538 as_executable_p=$as_test_x
539
540 # Sed expression to map a string onto a valid CPP name.
541 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
542
543 # Sed expression to map a string onto a valid variable name.
544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
545
546 SHELL=${CONFIG_SHELL-/bin/sh}
547
548
549 test -n "$DJDIR" || exec 7<&0 </dev/null
550 exec 6>&1
551
552 # Name of the host.
553 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
554 # so uname gets run too.
555 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556
557 #
558 # Initializations.
559 #
560 ac_default_prefix=/usr/local
561 ac_clean_files=
562 ac_config_libobj_dir=.
563 LIBOBJS=
564 cross_compiling=no
565 subdirs=
566 MFLAGS=
567 MAKEFLAGS=
568
569 # Identity of this package.
570 PACKAGE_NAME='libratbox'
571 PACKAGE_TARNAME='libratbox'
572 PACKAGE_VERSION='devel'
573 PACKAGE_STRING='libratbox devel'
574 PACKAGE_BUGREPORT=''
575 PACKAGE_URL=''
576
577 ac_default_prefix=/usr/local/libratbox
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 # include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 # include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_header_list=
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 RB_PREFIX
620 SSL_LIBS
621 SSL_CFLAGS
622 SEDOBJ
623 PICFLAGS
624 ALLOCA
625 MINGW_FALSE
626 MINGW_TRUE
627 OTOOL64
628 OTOOL
629 LIPO
630 NMEDIT
631 DSYMUTIL
632 MANIFEST_TOOL
633 RANLIB
634 ac_ct_AR
635 AR
636 DLLTOOL
637 OBJDUMP
638 LN_S
639 NM
640 ac_ct_DUMPBIN
641 DUMPBIN
642 LD
643 FGREP
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 LIBTOOL
653 TOUCH
654 LN
655 MV
656 CP
657 RM
658 AS
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 SED
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 am__untar
683 am__tar
684 AMTAR
685 am__leading_dot
686 SET_MAKE
687 AWK
688 mkdir_p
689 MKDIR_P
690 INSTALL_STRIP_PROGRAM
691 STRIP
692 install_sh
693 MAKEINFO
694 AUTOHEADER
695 AUTOMAKE
696 AUTOCONF
697 ACLOCAL
698 VERSION
699 PACKAGE
700 CYGPATH_W
701 am__isrc
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 enable_dependency_tracking
747 enable_static
748 enable_shared
749 enable_maintainer_mode
750 with_pic
751 enable_fast_install
752 with_gnu_ld
753 with_sysroot
754 enable_libtool_lock
755 enable_ipv6
756 enable_openssl
757 enable_assert
758 enable_profile
759 enable_balloc
760 enable_warnings
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CPP'
771
772
773 # Initialize some variables set by options.
774 ac_init_help=
775 ac_init_version=false
776 ac_unrecognized_opts=
777 ac_unrecognized_sep=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
794
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
820
821 ac_prev=
822 ac_dashdash=
823 for ac_option
824 do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
836 esac
837
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
901
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1077
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1087
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1094
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1105
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1121
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 ;;
1177
1178 esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $? "missing argument to $ac_option"
1184 fi
1185
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1192 fi
1193
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1199 do
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used" >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1277 fi
1278 else
1279 ac_srcdir_defaulted=no
1280 fi
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 fi
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures libratbox devel to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1367
1368 cat <<\_ACEOF
1369
1370 Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of libratbox devel:";;
1384 esac
1385 cat <<\_ACEOF
1386
1387 Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --enable-static[=PKGS] build static libraries [default=no]
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-maintainer-mode enable make rules and dependencies not useful
1396 (and sometimes confusing) to the casual installer
1397 --enable-fast-install[=PKGS]
1398 optimize for fast installation [default=yes]
1399 --disable-libtool-lock avoid locking (might break parallel builds)
1400 --disable-ipv6 Disable IPv6 support
1401 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1402 --disable-openssl Disable OpenSSL support.
1403 --enable-assert Enable assert(). Choose between soft(warnings) and
1404 hard(aborts the daemon)
1405 --enable-profile Enable profiling
1406 --disable-balloc Disable the block allocator.
1407 --enable-warnings Enable all sorts of warnings for debugging.
1408
1409 Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1415 --with-sysroot=DIR Search for dependent libraries within DIR
1416 (or the compiler's sysroot if not specified).
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to the package provider.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 libratbox configure devel
1495 generated by GNU Autoconf 2.68
1496
1497 Copyright (C) 2010 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500
1501 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1502 _ACEOF
1503 exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1530 fi
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542 fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_try_cpp LINENO
1549 # ----------------------
1550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_cpp ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } > conftest.i && {
1570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 }; then :
1573 ac_retval=0
1574 else
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=1
1579 fi
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_cpp
1584
1585 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1586 # -------------------------------------------------------
1587 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1588 # the include files in INCLUDES and setting the cache variable VAR
1589 # accordingly.
1590 ac_fn_c_check_header_mongrel ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if eval \${$3+:} false; then :
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595 $as_echo_n "checking for $2... " >&6; }
1596 if eval \${$3+:} false; then :
1597 $as_echo_n "(cached) " >&6
1598 fi
1599 eval ac_res=\$$3
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1602 else
1603 # Is the header compilable?
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1605 $as_echo_n "checking $2 usability... " >&6; }
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 $4
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612 ac_header_compiler=yes
1613 else
1614 ac_header_compiler=no
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1618 $as_echo "$ac_header_compiler" >&6; }
1619
1620 # Is the header present?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1622 $as_echo_n "checking $2 presence... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_cpp "$LINENO"; then :
1628 ac_header_preproc=yes
1629 else
1630 ac_header_preproc=no
1631 fi
1632 rm -f conftest.err conftest.i conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1634 $as_echo "$ac_header_preproc" >&6; }
1635
1636 # So? What about this header?
1637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1638 yes:no: )
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1640 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 ;;
1644 no:yes:* )
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1646 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1648 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1650 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1652 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 ;;
1656 esac
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1661 else
1662 eval "$3=\$ac_header_compiler"
1663 fi
1664 eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_mongrel
1671
1672 # ac_fn_c_try_run LINENO
1673 # ----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675 # that executables *can* be run.
1676 ac_fn_c_try_run ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: program exited with status $ac_status" >&5
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=$ac_status
1707 fi
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_run
1713
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 $4
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732 eval "$3=yes"
1733 else
1734 eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_link
1790
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806 #define $2 innocuous_$2
1807
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1812
1813 #ifdef __STDC__
1814 # include <limits.h>
1815 #else
1816 # include <assert.h>
1817 #endif
1818
1819 #undef $2
1820
1821 /* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1824 #ifdef __cplusplus
1825 extern "C"
1826 #endif
1827 char $2 ();
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined __stub_$2 || defined __stub___$2
1832 choke me
1833 #endif
1834
1835 int
1836 main ()
1837 {
1838 return $2 ();
1839 ;
1840 return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_link "$LINENO"; then :
1844 eval "$3=yes"
1845 else
1846 eval "$3=no"
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext \
1849 conftest$ac_exeext conftest.$ac_ext
1850 fi
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_func
1857
1858 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1859 # -------------------------------------------
1860 # Tests whether TYPE exists after having included INCLUDES, setting cache
1861 # variable VAR accordingly.
1862 ac_fn_c_check_type ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 eval "$3=no"
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 $4
1874 int
1875 main ()
1876 {
1877 if (sizeof ($2))
1878 return 0;
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 int
1888 main ()
1889 {
1890 if (sizeof (($2)))
1891 return 0;
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897
1898 else
1899 eval "$3=yes"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_type
1911
1912 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1913 # ----------------------------------------------------
1914 # Tries to find if the field MEMBER exists in type AGGR, after including
1915 # INCLUDES, setting cache variable VAR accordingly.
1916 ac_fn_c_check_member ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1920 $as_echo_n "checking for $2.$3... " >&6; }
1921 if eval \${$4+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $5
1927 int
1928 main ()
1929 {
1930 static $2 ac_aggr;
1931 if (ac_aggr.$3)
1932 return 0;
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$4=yes"
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $5
1943 int
1944 main ()
1945 {
1946 static $2 ac_aggr;
1947 if (sizeof ac_aggr.$3)
1948 return 0;
1949 ;
1950 return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 eval "$4=yes"
1955 else
1956 eval "$4=no"
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 fi
1962 eval ac_res=\$$4
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_check_member
1968 cat >config.log <<_ACEOF
1969 This file contains any messages produced by compilers while
1970 running configure, to aid debugging if configure makes a mistake.
1971
1972 It was created by libratbox $as_me devel, which was
1973 generated by GNU Autoconf 2.68. Invocation command line was
1974
1975 $ $0 $@
1976
1977 _ACEOF
1978 exec 5>>config.log
1979 {
1980 cat <<_ASUNAME
1981 ## --------- ##
1982 ## Platform. ##
1983 ## --------- ##
1984
1985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990
1991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993
1994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1997 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001
2002 _ASUNAME
2003
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 $as_echo "PATH: $as_dir"
2010 done
2011 IFS=$as_save_IFS
2012
2013 } >&5
2014
2015 cat >&5 <<_ACEOF
2016
2017
2018 ## ----------- ##
2019 ## Core tests. ##
2020 ## ----------- ##
2021
2022 _ACEOF
2023
2024
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2030 ac_configure_args=
2031 ac_configure_args0=
2032 ac_configure_args1=
2033 ac_must_keep_next=false
2034 for ac_pass in 1 2
2035 do
2036 for ac_arg
2037 do
2038 case $ac_arg in
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2042 continue ;;
2043 *\'*)
2044 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 esac
2046 case $ac_pass in
2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048 2)
2049 as_fn_append ac_configure_args1 " '$ac_arg'"
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2052 else
2053 case $ac_arg in
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 esac
2061 ;;
2062 -* ) ac_must_keep_next=true ;;
2063 esac
2064 fi
2065 as_fn_append ac_configure_args " '$ac_arg'"
2066 ;;
2067 esac
2068 done
2069 done
2070 { ac_configure_args0=; unset ac_configure_args0;}
2071 { ac_configure_args1=; unset ac_configure_args1;}
2072
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2079 # Save into config.log some information that might help in debugging.
2080 {
2081 echo
2082
2083 $as_echo "## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##"
2086 echo
2087 # The following way of writing the cache mishandles newlines in values,
2088 (
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in #(
2092 *${as_nl}*)
2093 case $ac_var in #(
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 esac
2097 case $ac_var in #(
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2101 esac ;;
2102 esac
2103 done
2104 (set) 2>&1 |
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2107 sed -n \
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 ;; #(
2111 *)
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ;;
2114 esac |
2115 sort
2116 )
2117 echo
2118
2119 $as_echo "## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##"
2122 echo
2123 for ac_var in $ac_subst_vars
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 esac
2129 $as_echo "$ac_var='\''$ac_val'\''"
2130 done | sort
2131 echo
2132
2133 if test -n "$ac_subst_files"; then
2134 $as_echo "## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##"
2137 echo
2138 for ac_var in $ac_subst_files
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2147 fi
2148
2149 if test -s confdefs.h; then
2150 $as_echo "## ----------- ##
2151 ## confdefs.h. ##
2152 ## ----------- ##"
2153 echo
2154 cat confdefs.h
2155 echo
2156 fi
2157 test "$ac_signal" != 0 &&
2158 $as_echo "$as_me: caught signal $ac_signal"
2159 $as_echo "$as_me: exit $exit_status"
2160 } >&5
2161 rm -f core *.core core.conftest.* &&
2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 exit $exit_status
2164 ' 0
2165 for ac_signal in 1 2 13 15; do
2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2167 done
2168 ac_signal=0
2169
2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2171 rm -f -r conftest* confdefs.h
2172
2173 $as_echo "/* confdefs.h */" > confdefs.h
2174
2175 # Predefined preprocessor variables.
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
2199 _ACEOF
2200
2201
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2204 ac_site_file1=NONE
2205 ac_site_file2=NONE
2206 if test -n "$CONFIG_SITE"; then
2207 # We do not want a PATH search for config.site.
2208 case $CONFIG_SITE in #((
2209 -*) ac_site_file1=./$CONFIG_SITE;;
2210 */*) ac_site_file1=$CONFIG_SITE;;
2211 *) ac_site_file1=./$CONFIG_SITE;;
2212 esac
2213 elif test "x$prefix" != xNONE; then
2214 ac_site_file1=$prefix/share/config.site
2215 ac_site_file2=$prefix/etc/config.site
2216 else
2217 ac_site_file1=$ac_default_prefix/share/config.site
2218 ac_site_file2=$ac_default_prefix/etc/config.site
2219 fi
2220 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2221 do
2222 test "x$ac_site_file" = xNONE && continue
2223 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2225 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2226 sed 's/^/| /' "$ac_site_file" >&5
2227 . "$ac_site_file" \
2228 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230 as_fn_error $? "failed to load site script $ac_site_file
2231 See \`config.log' for more details" "$LINENO" 5; }
2232 fi
2233 done
2234
2235 if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240 $as_echo "$as_me: loading cache $cache_file" >&6;}
2241 case $cache_file in
2242 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2243 *) . "./$cache_file";;
2244 esac
2245 fi
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248 $as_echo "$as_me: creating cache $cache_file" >&6;}
2249 >$cache_file
2250 fi
2251
2252 as_fn_append ac_header_list " stdlib.h"
2253 as_fn_append ac_header_list " unistd.h"
2254 as_fn_append ac_header_list " sys/param.h"
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 fi
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323 am__api_version='1.11'
2324
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354 # Find a good install program. We prefer a C program (faster),
2355 # so one script is as good as another. But avoid the broken or
2356 # incompatible versions:
2357 # SysV /etc/install, /usr/sbin/install
2358 # SunOS /usr/etc/install
2359 # IRIX /sbin/install
2360 # AIX /bin/install
2361 # AmigaOS /C/install, which installs bootblocks on floppy discs
2362 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365 # OS/2's system install, which has a completely different semantic
2366 # ./install, which can be erroneously created by make from ./install.sh.
2367 # Reject install programs that cannot install multiple files.
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2369 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2370 if test -z "$INSTALL"; then
2371 if ${ac_cv_path_install+:} false; then :
2372 $as_echo_n "(cached) " >&6
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 # Account for people who put trailing slashes in PATH elements.
2380 case $as_dir/ in #((
2381 ./ | .// | /[cC]/* | \
2382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2384 /usr/ucb/* ) ;;
2385 *)
2386 # OSF1 and SCO ODT 3.0 have their own names for install.
2387 # Don't use installbsd from OSF since it installs stuff as root
2388 # by default.
2389 for ac_prog in ginstall scoinst install; do
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2392 if test $ac_prog = install &&
2393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394 # AIX install. It has an incompatible calling convention.
2395 :
2396 elif test $ac_prog = install &&
2397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398 # program-specific install script used by HP pwplus--don't use.
2399 :
2400 else
2401 rm -rf conftest.one conftest.two conftest.dir
2402 echo one > conftest.one
2403 echo two > conftest.two
2404 mkdir conftest.dir
2405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406 test -s conftest.one && test -s conftest.two &&
2407 test -s conftest.dir/conftest.one &&
2408 test -s conftest.dir/conftest.two
2409 then
2410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411 break 3
2412 fi
2413 fi
2414 fi
2415 done
2416 done
2417 ;;
2418 esac
2419
2420 done
2421 IFS=$as_save_IFS
2422
2423 rm -rf conftest.one conftest.two conftest.dir
2424
2425 fi
2426 if test "${ac_cv_path_install+set}" = set; then
2427 INSTALL=$ac_cv_path_install
2428 else
2429 # As a last resort, use the slow shell script. Don't cache a
2430 # value for INSTALL within a source directory, because that will
2431 # break other packages using the cache if that directory is
2432 # removed, or if the value is a relative name.
2433 INSTALL=$ac_install_sh
2434 fi
2435 fi
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2437 $as_echo "$INSTALL" >&6; }
2438
2439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440 # It thinks the first close brace ends the variable substitution.
2441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
2443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
2445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2448 $as_echo_n "checking whether build environment is sane... " >&6; }
2449 # Just in case
2450 sleep 1
2451 echo timestamp > conftest.file
2452 # Reject unsafe characters in $srcdir or the absolute working directory
2453 # name. Accept space and tab only in the latter.
2454 am_lf='
2455 '
2456 case `pwd` in
2457 *[\\\"\#\$\&\'\`$am_lf]*)
2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2459 esac
2460 case $srcdir in
2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2462 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2463 esac
2464
2465 # Do `set' in a subshell so we don't clobber the current shell's
2466 # arguments. Must try -L first in case configure is actually a
2467 # symlink; some systems play weird games with the mod time of symlinks
2468 # (eg FreeBSD returns the mod time of the symlink's containing
2469 # directory).
2470 if (
2471 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2472 if test "$*" = "X"; then
2473 # -L didn't work.
2474 set X `ls -t "$srcdir/configure" conftest.file`
2475 fi
2476 rm -f conftest.file
2477 if test "$*" != "X $srcdir/configure conftest.file" \
2478 && test "$*" != "X conftest.file $srcdir/configure"; then
2479
2480 # If neither matched, then we have a broken ls. This can happen
2481 # if, for instance, CONFIG_SHELL is bash and it inherits a
2482 # broken ls alias from the environment. This has actually
2483 # happened. Such a system could not be considered "sane".
2484 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2485 alias in your environment" "$LINENO" 5
2486 fi
2487
2488 test "$2" = conftest.file
2489 )
2490 then
2491 # Ok.
2492 :
2493 else
2494 as_fn_error $? "newly created file is older than distributed files!
2495 Check your system clock" "$LINENO" 5
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498 $as_echo "yes" >&6; }
2499 test "$program_prefix" != NONE &&
2500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501 # Use a double $ so make ignores it.
2502 test "$program_suffix" != NONE &&
2503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504 # Double any \ or $.
2505 # By default was `s,x,x', remove it if useless.
2506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2508
2509 # expand $ac_aux_dir to an absolute path
2510 am_aux_dir=`cd $ac_aux_dir && pwd`
2511
2512 if test x"${MISSING+set}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516 *)
2517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518 esac
2519 fi
2520 # Use eval to expand $SHELL
2521 if eval "$MISSING --run true"; then
2522 am_missing_run="$MISSING --run "
2523 else
2524 am_missing_run=
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2526 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2527 fi
2528
2529 if test x"${install_sh}" != xset; then
2530 case $am_aux_dir in
2531 *\ * | *\ *)
2532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533 *)
2534 install_sh="\${SHELL} $am_aux_dir/install-sh"
2535 esac
2536 fi
2537
2538 # Installed binaries are usually stripped using `strip' when the user
2539 # run `make install-strip'. However `strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the `STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_STRIP+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574 $as_echo "$STRIP" >&6; }
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580
2581 fi
2582 if test -z "$ac_cv_prog_STRIP"; then
2583 ac_ct_STRIP=$STRIP
2584 # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614 $as_echo "$ac_ct_STRIP" >&6; }
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620 if test "x$ac_ct_STRIP" = x; then
2621 STRIP=":"
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627 ac_tool_warned=yes ;;
2628 esac
2629 STRIP=$ac_ct_STRIP
2630 fi
2631 else
2632 STRIP="$ac_cv_prog_STRIP"
2633 fi
2634
2635 fi
2636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640 if test -z "$MKDIR_P"; then
2641 if ${ac_cv_path_mkdir+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_prog in mkdir gmkdir; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653 'mkdir (GNU coreutils) '* | \
2654 'mkdir (coreutils) '* | \
2655 'mkdir (fileutils) '4.1*)
2656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657 break 3;;
2658 esac
2659 done
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665
2666 test -d ./--version && rmdir ./--version
2667 if test "${ac_cv_path_mkdir+set}" = set; then
2668 MKDIR_P="$ac_cv_path_mkdir -p"
2669 else
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for MKDIR_P within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 MKDIR_P="$ac_install_sh -d"
2675 fi
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678 $as_echo "$MKDIR_P" >&6; }
2679
2680 mkdir_p="$MKDIR_P"
2681 case $mkdir_p in
2682 [\\/$]* | ?:[\\/]*) ;;
2683 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2684 esac
2685
2686 for ac_prog in gawk mawk nawk awk
2687 do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_AWK+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$AWK"; then
2696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_AWK="$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 AWK=$ac_cv_prog_AWK
2716 if test -n "$AWK"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2718 $as_echo "$AWK" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725 test -n "$AWK" && break
2726 done
2727
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2729 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2730 set x ${MAKE-make}
2731 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2732 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 cat >conftest.make <<\_ACEOF
2736 SHELL = /bin/sh
2737 all:
2738 @echo '@@@%%%=$(MAKE)=@@@%%%'
2739 _ACEOF
2740 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2742 *@@@%%%=?*=@@@%%%*)
2743 eval ac_cv_prog_make_${ac_make}_set=yes;;
2744 *)
2745 eval ac_cv_prog_make_${ac_make}_set=no;;
2746 esac
2747 rm -f conftest.make
2748 fi
2749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2751 $as_echo "yes" >&6; }
2752 SET_MAKE=
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 SET_MAKE="MAKE=${MAKE-make}"
2757 fi
2758
2759 rm -rf .tst 2>/dev/null
2760 mkdir .tst 2>/dev/null
2761 if test -d .tst; then
2762 am__leading_dot=.
2763 else
2764 am__leading_dot=_
2765 fi
2766 rmdir .tst 2>/dev/null
2767
2768 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770 # is not polluted with repeated "-I."
2771 am__isrc=' -I$(srcdir)'
2772 # test to see if srcdir already configured
2773 if test -f $srcdir/config.status; then
2774 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2775 fi
2776 fi
2777
2778 # test whether we have cygpath
2779 if test -z "$CYGPATH_W"; then
2780 if (cygpath --version) >/dev/null 2>/dev/null; then
2781 CYGPATH_W='cygpath -w'
2782 else
2783 CYGPATH_W=echo
2784 fi
2785 fi
2786
2787
2788 # Define the identity of the package.
2789 PACKAGE=libratbox
2790 VERSION=devel
2791
2792
2793 # Some tools Automake needs.
2794
2795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
2809 # We need awk for the "check" target. The system "awk" is bad on
2810 # some platforms.
2811 # Always define AMTAR for backward compatibility.
2812
2813 AMTAR=${AMTAR-"${am_missing_run}tar"}
2814
2815 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2816
2817
2818
2819
2820
2821
2822 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2823
2824
2825
2826 DEPDIR="${am__leading_dot}deps"
2827
2828 ac_config_commands="$ac_config_commands depfiles"
2829
2830
2831 am_make=${MAKE-make}
2832 cat > confinc << 'END'
2833 am__doit:
2834 @echo this is the am__doit target
2835 .PHONY: am__doit
2836 END
2837 # If we don't find an include directive, just comment out the code.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2839 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2840 am__include="#"
2841 am__quote=
2842 _am_result=none
2843 # First try GNU make style include.
2844 echo "include confinc" > confmf
2845 # Ignore all kinds of additional output from `make'.
2846 case `$am_make -s -f confmf 2> /dev/null` in #(
2847 *the\ am__doit\ target*)
2848 am__include=include
2849 am__quote=
2850 _am_result=GNU
2851 ;;
2852 esac
2853 # Now try BSD make style include.
2854 if test "$am__include" = "#"; then
2855 echo '.include "confinc"' > confmf
2856 case `$am_make -s -f confmf 2> /dev/null` in #(
2857 *the\ am__doit\ target*)
2858 am__include=.include
2859 am__quote="\""
2860 _am_result=BSD
2861 ;;
2862 esac
2863 fi
2864
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2867 $as_echo "$_am_result" >&6; }
2868 rm -f confinc confmf
2869
2870 # Check whether --enable-dependency-tracking was given.
2871 if test "${enable_dependency_tracking+set}" = set; then :
2872 enableval=$enable_dependency_tracking;
2873 fi
2874
2875 if test "x$enable_dependency_tracking" != xno; then
2876 am_depcomp="$ac_aux_dir/depcomp"
2877 AMDEPBACKSLASH='\'
2878 fi
2879 if test "x$enable_dependency_tracking" != xno; then
2880 AMDEP_TRUE=
2881 AMDEP_FALSE='#'
2882 else
2883 AMDEP_TRUE='#'
2884 AMDEP_FALSE=
2885 fi
2886
2887
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935 set dummy gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_ac_ct_CC="gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962 if test -n "$ac_ct_CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964 $as_echo "$ac_ct_CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CC=$ac_ct_CC
2980 fi
2981 else
2982 CC="$ac_cv_prog_CC"
2983 fi
2984
2985 if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_CC="${ac_tool_prefix}cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 fi
3026 if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028 set dummy cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 ac_prog_rejected=no
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3048 fi
3049 ac_cv_prog_CC="cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067 fi
3068 fi
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 fi
3082 if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in cl.exe
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 test -n "$CC" && break
3124 done
3125 fi
3126 if test -z "$CC"; then
3127 ac_ct_CC=$CC
3128 for ac_prog in cl.exe
3129 do
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 test -n "$ac_ct_CC" && break
3168 done
3169
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179 CC=$ac_ct_CC
3180 fi
3181 fi
3182
3183 fi
3184
3185
3186 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $? "no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details" "$LINENO" 5; }
3190
3191 # Provide some information about the compiler.
3192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193 set X $ac_compile
3194 ac_compiler=$2
3195 for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204 ac_status=$?
3205 if test -s conftest.err; then
3206 sed '10a\
3207 ... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
3210 fi
3211 rm -f conftest.er1 conftest.err
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 done
3215
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 ac_clean_files_save=$ac_clean_files
3228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3229 # Try to create an executable without -o first, disregard a.out.
3230 # It will help us diagnose broken compilers, and finding out an intuition
3231 # of exeext.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233 $as_echo_n "checking whether the C compiler works... " >&6; }
3234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236 # The possible output files:
3237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
3239 ac_rmfiles=
3240 for ac_file in $ac_files
3241 do
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246 done
3247 rm -f $ac_rmfiles
3248
3249 if { { ac_try="$ac_link_default"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link_default") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3263 # so that the user can short-circuit this test for compilers unknown to
3264 # Autoconf.
3265 for ac_file in $ac_files ''
3266 do
3267 test -f "$ac_file" || continue
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270 ;;
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 fi
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
3285 break;;
3286 * )
3287 break;;
3288 esac
3289 done
3290 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
3292 else
3293 ac_file=''
3294 fi
3295 if test -z "$ac_file"; then :
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error 77 "C compiler cannot create executables
3304 See \`config.log' for more details" "$LINENO" 5; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307 $as_echo "yes" >&6; }
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310 $as_echo_n "checking for C compiler default output file name... " >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312 $as_echo "$ac_file" >&6; }
3313 ac_exeext=$ac_cv_exeext
3314
3315 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3318 $as_echo_n "checking for suffix of executables... " >&6; }
3319 if { { ac_try="$ac_link"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332 # work properly (i.e., refer to `conftest.exe'), while it won't with
3333 # `rm'.
3334 for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342 done
3343 else
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 fi
3349 rm -f conftest conftest$ac_cv_exeext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3351 $as_echo "$ac_cv_exeext" >&6; }
3352
3353 rm -f conftest.$ac_ext
3354 EXEEXT=$ac_cv_exeext
3355 ac_exeext=$EXEEXT
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #include <stdio.h>
3359 int
3360 main ()
3361 {
3362 FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 ac_clean_files="$ac_clean_files conftest.out"
3370 # Check that the compiler produces executables we can run. If not, either
3371 # the compiler is broken, or we cross compile.
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373 $as_echo_n "checking whether we are cross compiling... " >&6; }
3374 if test "$cross_compiling" != yes; then
3375 { { ac_try="$ac_link"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 if { ac_try='./conftest$ac_cv_exeext'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3397 cross_compiling=no
3398 else
3399 if test "$cross_compiling" = maybe; then
3400 cross_compiling=yes
3401 else
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details" "$LINENO" 5; }
3407 fi
3408 fi
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411 $as_echo "$cross_compiling" >&6; }
3412
3413 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414 ac_clean_files=$ac_clean_files_save
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3416 $as_echo_n "checking for suffix of object files... " >&6; }
3417 if ${ac_cv_objext+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.o conftest.obj
3432 if { { ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_compile") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 for ac_file in conftest.o conftest.obj conftest.*; do
3444 test -f "$ac_file" || continue;
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 break;;
3449 esac
3450 done
3451 else
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot compute suffix of object files: cannot compile
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 fi
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3463 $as_echo "$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3465 ac_objext=$OBJEXT
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3467 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3468 if ${ac_cv_c_compiler_gnu+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477 #ifndef __GNUC__
3478 choke me
3479 #endif
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_compiler_gnu=yes
3487 else
3488 ac_compiler_gnu=no
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3492
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3495 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496 if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498 else
3499 GCC=
3500 fi
3501 ac_test_CFLAGS=${CFLAGS+set}
3502 ac_save_CFLAGS=$CFLAGS
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3505 if ${ac_cv_prog_cc_g+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_g=yes
3525 else
3526 CFLAGS=""
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529
3530 int
3531 main ()
3532 {
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539
3540 else
3541 ac_c_werror_flag=$ac_save_c_werror_flag
3542 CFLAGS="-g"
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_g=yes
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3565 $as_echo "$ac_cv_prog_cc_g" >&6; }
3566 if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574 else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3582 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3583 if ${ac_cv_prog_cc_c89+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 ac_cv_prog_cc_c89=no
3587 ac_save_CC=$CC
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590 #include <stdarg.h>
3591 #include <stdio.h>
3592 #include <sys/types.h>
3593 #include <sys/stat.h>
3594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595 struct buf { int x; };
3596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597 static char *e (p, i)
3598 char **p;
3599 int i;
3600 {
3601 return p[i];
3602 }
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3604 {
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3611 }
3612
3613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std. */
3620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
3622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623 inside strings and character constants. */
3624 #define FOO(x) 'x'
3625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626
3627 int test (int i, double x);
3628 struct s1 {int (*f) (int a);};
3629 struct s2 {int (*f) (double a);};
3630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 int argc;
3632 char **argv;
3633 int
3634 main ()
3635 {
3636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643 do
3644 CC="$ac_save_CC $ac_arg"
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_c89=$ac_arg
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
3650 done
3651 rm -f conftest.$ac_ext
3652 CC=$ac_save_CC
3653
3654 fi
3655 # AC_CACHE_VAL
3656 case "x$ac_cv_prog_cc_c89" in
3657 x)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3659 $as_echo "none needed" >&6; } ;;
3660 xno)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 $as_echo "unsupported" >&6; } ;;
3663 *)
3664 CC="$CC $ac_cv_prog_cc_c89"
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3667 esac
3668 if test "x$ac_cv_prog_cc_c89" != xno; then :
3669
3670 fi
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
3678 depcc="$CC" am_compiler_list=
3679
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3681 $as_echo_n "checking dependency style of $depcc... " >&6; }
3682 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3686 # We make a subdir and do the tests there. Otherwise we can end up
3687 # making bogus files that we don't know about and never remove. For
3688 # instance it was reported that on HP-UX the gcc test will end up
3689 # making a dummy file named `D' -- because `-MD' means `put the output
3690 # in D'.
3691 mkdir conftest.dir
3692 # Copy depcomp to subdir because otherwise we won't find it if we're
3693 # using a relative directory.
3694 cp "$am_depcomp" conftest.dir
3695 cd conftest.dir
3696 # We will build objects and dependencies in a subdirectory because
3697 # it helps to detect inapplicable dependency modes. For instance
3698 # both Tru64's cc and ICC support -MD to output dependencies as a
3699 # side effect of compilation, but ICC will put the dependencies in
3700 # the current directory while Tru64 will put them in the object
3701 # directory.
3702 mkdir sub
3703
3704 am_cv_CC_dependencies_compiler_type=none
3705 if test "$am_compiler_list" = ""; then
3706 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3707 fi
3708 am__universal=false
3709 case " $depcc " in #(
3710 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3711 esac
3712
3713 for depmode in $am_compiler_list; do
3714 # Setup a source with many dependencies, because some compilers
3715 # like to wrap large dependency lists on column 80 (with \), and
3716 # we should not choose a depcomp mode which is confused by this.
3717 #
3718 # We need to recreate these files for each test, as the compiler may
3719 # overwrite some of them when testing with obscure command lines.
3720 # This happens at least with the AIX C compiler.
3721 : > sub/conftest.c
3722 for i in 1 2 3 4 5 6; do
3723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3724 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3725 # Solaris 8's {/usr,}/bin/sh.
3726 touch sub/conftst$i.h
3727 done
3728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3729
3730 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3731 # mode. It turns out that the SunPro C++ compiler does not properly
3732 # handle `-M -o', and we need to detect this. Also, some Intel
3733 # versions had trouble with output in subdirs
3734 am__obj=sub/conftest.${OBJEXT-o}
3735 am__minus_obj="-o $am__obj"
3736 case $depmode in
3737 gcc)
3738 # This depmode causes a compiler race in universal mode.
3739 test "$am__universal" = false || continue
3740 ;;
3741 nosideeffect)
3742 # after this tag, mechanisms are not by side-effect, so they'll
3743 # only be used when explicitly requested
3744 if test "x$enable_dependency_tracking" = xyes; then
3745 continue
3746 else
3747 break
3748 fi
3749 ;;
3750 msvisualcpp | msvcmsys)
3751 # This compiler won't grok `-c -o', but also, the minuso test has
3752 # not run yet. These depmodes are late enough in the game, and
3753 # so weak that their functioning should not be impacted.
3754 am__obj=conftest.${OBJEXT-o}
3755 am__minus_obj=
3756 ;;
3757 none) break ;;
3758 esac
3759 if depmode=$depmode \
3760 source=sub/conftest.c object=$am__obj \
3761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3762 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3763 >/dev/null 2>conftest.err &&
3764 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3765 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3766 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3767 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3768 # icc doesn't choke on unknown options, it will just issue warnings
3769 # or remarks (even with -Werror). So we grep stderr for any message
3770 # that says an option was ignored or not supported.
3771 # When given -MP, icc 7.0 and 7.1 complain thusly:
3772 # icc: Command line warning: ignoring option '-M'; no argument required
3773 # The diagnosis changed in icc 8.0:
3774 # icc: Command line remark: option '-MP' not supported
3775 if (grep 'ignoring option' conftest.err ||
3776 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3777 am_cv_CC_dependencies_compiler_type=$depmode
3778 break
3779 fi
3780 fi
3781 done
3782
3783 cd ..
3784 rm -rf conftest.dir
3785 else
3786 am_cv_CC_dependencies_compiler_type=none
3787 fi
3788
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3791 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3792 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3793
3794 if
3795 test "x$enable_dependency_tracking" != xno \
3796 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3797 am__fastdepCC_TRUE=
3798 am__fastdepCC_FALSE='#'
3799 else
3800 am__fastdepCC_TRUE='#'
3801 am__fastdepCC_FALSE=
3802 fi
3803
3804
3805
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3815 CPP=
3816 fi
3817 if test -z "$CPP"; then
3818 if ${ac_cv_prog_CPP+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 # Double quotes because CPP needs to be expanded
3822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3823 do
3824 ac_preproc_ok=false
3825 for ac_c_preproc_warn_flag in '' yes
3826 do
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #ifdef __STDC__
3836 # include <limits.h>
3837 #else
3838 # include <assert.h>
3839 #endif
3840 Syntax error
3841 _ACEOF
3842 if ac_fn_c_try_cpp "$LINENO"; then :
3843
3844 else
3845 # Broken: fails on valid input.
3846 continue
3847 fi
3848 rm -f conftest.err conftest.i conftest.$ac_ext
3849
3850 # OK, works on sane cases. Now check whether nonexistent headers
3851 # can be detected and how.
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <ac_nonexistent.h>
3855 _ACEOF
3856 if ac_fn_c_try_cpp "$LINENO"; then :
3857 # Broken: success on invalid input.
3858 continue
3859 else
3860 # Passes both tests.
3861 ac_preproc_ok=:
3862 break
3863 fi
3864 rm -f conftest.err conftest.i conftest.$ac_ext
3865
3866 done
3867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3868 rm -f conftest.i conftest.err conftest.$ac_ext
3869 if $ac_preproc_ok; then :
3870 break
3871 fi
3872
3873 done
3874 ac_cv_prog_CPP=$CPP
3875
3876 fi
3877 CPP=$ac_cv_prog_CPP
3878 else
3879 ac_cv_prog_CPP=$CPP
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3882 $as_echo "$CPP" >&6; }
3883 ac_preproc_ok=false
3884 for ac_c_preproc_warn_flag in '' yes
3885 do
3886 # Use a header file that comes with gcc, so configuring glibc
3887 # with a fresh cross-compiler works.
3888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 # <limits.h> exists even on freestanding compilers.
3890 # On the NeXT, cc -E runs the code through the compiler's parser,
3891 # not just through cpp. "Syntax error" is here to catch this case.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894 #ifdef __STDC__
3895 # include <limits.h>
3896 #else
3897 # include <assert.h>
3898 #endif
3899 Syntax error
3900 _ACEOF
3901 if ac_fn_c_try_cpp "$LINENO"; then :
3902
3903 else
3904 # Broken: fails on valid input.
3905 continue
3906 fi
3907 rm -f conftest.err conftest.i conftest.$ac_ext
3908
3909 # OK, works on sane cases. Now check whether nonexistent headers
3910 # can be detected and how.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <ac_nonexistent.h>
3914 _ACEOF
3915 if ac_fn_c_try_cpp "$LINENO"; then :
3916 # Broken: success on invalid input.
3917 continue
3918 else
3919 # Passes both tests.
3920 ac_preproc_ok=:
3921 break
3922 fi
3923 rm -f conftest.err conftest.i conftest.$ac_ext
3924
3925 done
3926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3927 rm -f conftest.i conftest.err conftest.$ac_ext
3928 if $ac_preproc_ok; then :
3929
3930 else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3945 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3946 if ${ac_cv_path_GREP+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -z "$GREP"; then
3950 ac_path_GREP_found=false
3951 # Loop through the user's path and test for each of PROGNAME-LIST
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_prog in grep ggrep; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3960 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3961 # Check for GNU ac_path_GREP and select it if it is found.
3962 # Check for GNU $ac_path_GREP
3963 case `"$ac_path_GREP" --version 2>&1` in
3964 *GNU*)
3965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3966 *)
3967 ac_count=0
3968 $as_echo_n 0123456789 >"conftest.in"
3969 while :
3970 do
3971 cat "conftest.in" "conftest.in" >"conftest.tmp"
3972 mv "conftest.tmp" "conftest.in"
3973 cp "conftest.in" "conftest.nl"
3974 $as_echo 'GREP' >> "conftest.nl"
3975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977 as_fn_arith $ac_count + 1 && ac_count=$as_val
3978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_GREP="$ac_path_GREP"
3981 ac_path_GREP_max=$ac_count
3982 fi
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3985 done
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987 esac
3988
3989 $ac_path_GREP_found && break 3
3990 done
3991 done
3992 done
3993 IFS=$as_save_IFS
3994 if test -z "$ac_cv_path_GREP"; then
3995 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3996 fi
3997 else
3998 ac_cv_path_GREP=$GREP
3999 fi
4000
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4003 $as_echo "$ac_cv_path_GREP" >&6; }
4004 GREP="$ac_cv_path_GREP"
4005
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4008 $as_echo_n "checking for egrep... " >&6; }
4009 if ${ac_cv_path_EGREP+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4014 else
4015 if test -z "$EGREP"; then
4016 ac_path_EGREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in egrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
4028 # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4030 *GNU*)
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032 *)
4033 ac_count=0
4034 $as_echo_n 0123456789 >"conftest.in"
4035 while :
4036 do
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 $as_echo 'EGREP' >> "conftest.nl"
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 as_fn_arith $ac_count + 1 && ac_count=$as_val
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4048 fi
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4051 done
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055 $ac_path_EGREP_found && break 3
4056 done
4057 done
4058 done
4059 IFS=$as_save_IFS
4060 if test -z "$ac_cv_path_EGREP"; then
4061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4062 fi
4063 else
4064 ac_cv_path_EGREP=$EGREP
4065 fi
4066
4067 fi
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4070 $as_echo "$ac_cv_path_EGREP" >&6; }
4071 EGREP="$ac_cv_path_EGREP"
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4075 $as_echo_n "checking for ANSI C header files... " >&6; }
4076 if ${ac_cv_header_stdc+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <stdlib.h>
4082 #include <stdarg.h>
4083 #include <string.h>
4084 #include <float.h>
4085
4086 int
4087 main ()
4088 {
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_header_stdc=yes
4096 else
4097 ac_cv_header_stdc=no
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100
4101 if test $ac_cv_header_stdc = yes; then
4102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #include <string.h>
4106
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "memchr" >/dev/null 2>&1; then :
4110
4111 else
4112 ac_cv_header_stdc=no
4113 fi
4114 rm -f conftest*
4115
4116 fi
4117
4118 if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <stdlib.h>
4123
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "free" >/dev/null 2>&1; then :
4127
4128 else
4129 ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest*
4132
4133 fi
4134
4135 if test $ac_cv_header_stdc = yes; then
4136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4137 if test "$cross_compiling" = yes; then :
4138 :
4139 else
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #include <ctype.h>
4143 #include <stdlib.h>
4144 #if ((' ' & 0x0FF) == 0x020)
4145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4147 #else
4148 # define ISLOWER(c) \
4149 (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4153 #endif
4154
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4156 int
4157 main ()
4158 {
4159 int i;
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4163 return 2;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_run "$LINENO"; then :
4168
4169 else
4170 ac_cv_header_stdc=no
4171 fi
4172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4173 conftest.$ac_objext conftest.beam conftest.$ac_ext
4174 fi
4175
4176 fi
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4179 $as_echo "$ac_cv_header_stdc" >&6; }
4180 if test $ac_cv_header_stdc = yes; then
4181
4182 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4183
4184 fi
4185
4186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4189 do :
4190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4192 "
4193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4194 cat >>confdefs.h <<_ACEOF
4195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4196 _ACEOF
4197
4198 fi
4199
4200 done
4201
4202
4203
4204 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4205 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4206 MINIX=yes
4207 else
4208 MINIX=
4209 fi
4210
4211
4212 if test "$MINIX" = yes; then
4213
4214 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4215
4216
4217 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4218
4219
4220 $as_echo "#define _MINIX 1" >>confdefs.h
4221
4222 fi
4223
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4226 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4227 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232
4233 # define __EXTENSIONS__ 1
4234 $ac_includes_default
4235 int
4236 main ()
4237 {
4238
4239 ;
4240 return 0;
4241 }
4242 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_safe_to_define___extensions__=yes
4245 else
4246 ac_cv_safe_to_define___extensions__=no
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4251 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4252 test $ac_cv_safe_to_define___extensions__ = yes &&
4253 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4254
4255 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4256
4257 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4258
4259 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4260
4261 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4262
4263
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4267 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4268 if ${ac_cv_prog_cc_c99+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 ac_cv_prog_cc_c99=no
4272 ac_save_CC=$CC
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <stdarg.h>
4276 #include <stdbool.h>
4277 #include <stdlib.h>
4278 #include <wchar.h>
4279 #include <stdio.h>
4280
4281 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4282 #define debug(...) fprintf (stderr, __VA_ARGS__)
4283 #define showlist(...) puts (#__VA_ARGS__)
4284 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4285 static void
4286 test_varargs_macros (void)
4287 {
4288 int x = 1234;
4289 int y = 5678;
4290 debug ("Flag");
4291 debug ("X = %d\n", x);
4292 showlist (The first, second, and third items.);
4293 report (x>y, "x is %d but y is %d", x, y);
4294 }
4295
4296 // Check long long types.
4297 #define BIG64 18446744073709551615ull
4298 #define BIG32 4294967295ul
4299 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4300 #if !BIG_OK
4301 your preprocessor is broken;
4302 #endif
4303 #if BIG_OK
4304 #else
4305 your preprocessor is broken;
4306 #endif
4307 static long long int bignum = -9223372036854775807LL;
4308 static unsigned long long int ubignum = BIG64;
4309
4310 struct incomplete_array
4311 {
4312 int datasize;
4313 double data[];
4314 };
4315
4316 struct named_init {
4317 int number;
4318 const wchar_t *name;
4319 double average;
4320 };
4321
4322 typedef const char *ccp;
4323
4324 static inline int
4325 test_restrict (ccp restrict text)
4326 {
4327 // See if C++-style comments work.
4328 // Iterate through items via the restricted pointer.
4329 // Also check for declarations in for loops.
4330 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4331 continue;
4332 return 0;
4333 }
4334
4335 // Check varargs and va_copy.
4336 static void
4337 test_varargs (const char *format, ...)
4338 {
4339 va_list args;
4340 va_start (args, format);
4341 va_list args_copy;
4342 va_copy (args_copy, args);
4343
4344 const char *str;
4345 int number;
4346 float fnumber;
4347
4348 while (*format)
4349 {
4350 switch (*format++)
4351 {
4352 case 's': // string
4353 str = va_arg (args_copy, const char *);
4354 break;
4355 case 'd': // int
4356 number = va_arg (args_copy, int);
4357 break;
4358 case 'f': // float
4359 fnumber = va_arg (args_copy, double);
4360 break;
4361 default:
4362 break;
4363 }
4364 }
4365 va_end (args_copy);
4366 va_end (args);
4367 }
4368
4369 int
4370 main ()
4371 {
4372
4373 // Check bool.
4374 _Bool success = false;
4375
4376 // Check restrict.
4377 if (test_restrict ("String literal") == 0)
4378 success = true;
4379 char *restrict newvar = "Another string";
4380
4381 // Check varargs.
4382 test_varargs ("s, d' f .", "string", 65, 34.234);
4383 test_varargs_macros ();
4384
4385 // Check flexible array members.
4386 struct incomplete_array *ia =
4387 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4388 ia->datasize = 10;
4389 for (int i = 0; i < ia->datasize; ++i)
4390 ia->data[i] = i * 1.234;
4391
4392 // Check named initializers.
4393 struct named_init ni = {
4394 .number = 34,
4395 .name = L"Test wide string",
4396 .average = 543.34343,
4397 };
4398
4399 ni.number = 58;
4400
4401 int dynamic_array[ni.number];
4402 dynamic_array[ni.number - 1] = 543;
4403
4404 // work around unused variable warnings
4405 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4406 || dynamic_array[ni.number - 1] != 543);
4407
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4413 do
4414 CC="$ac_save_CC $ac_arg"
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_prog_cc_c99=$ac_arg
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext
4419 test "x$ac_cv_prog_cc_c99" != "xno" && break
4420 done
4421 rm -f conftest.$ac_ext
4422 CC=$ac_save_CC
4423
4424 fi
4425 # AC_CACHE_VAL
4426 case "x$ac_cv_prog_cc_c99" in
4427 x)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4429 $as_echo "none needed" >&6; } ;;
4430 xno)
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4432 $as_echo "unsupported" >&6; } ;;
4433 *)
4434 CC="$CC $ac_cv_prog_cc_c99"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4436 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4437 esac
4438 if test "x$ac_cv_prog_cc_c99" != xno; then :
4439
4440 fi
4441
4442
4443
4444 if test x"$ac_cv_prog_cc_c99" = "xno"; then
4445 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4446 fi
4447
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4451 $as_echo_n "checking for egrep... " >&6; }
4452 if ${ac_cv_path_EGREP+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4456 then ac_cv_path_EGREP="$GREP -E"
4457 else
4458 if test -z "$EGREP"; then
4459 ac_path_EGREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in egrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4470 # Check for GNU ac_path_EGREP and select it if it is found.
4471 # Check for GNU $ac_path_EGREP
4472 case `"$ac_path_EGREP" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4475 *)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'EGREP' >> "conftest.nl"
4484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_EGREP="$ac_path_EGREP"
4490 ac_path_EGREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498 $ac_path_EGREP_found && break 3
4499 done
4500 done
4501 done
4502 IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_EGREP"; then
4504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 fi
4506 else
4507 ac_cv_path_EGREP=$EGREP
4508 fi
4509
4510 fi
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4513 $as_echo "$ac_cv_path_EGREP" >&6; }
4514 EGREP="$ac_cv_path_EGREP"
4515
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4518 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4519 if ${ac_cv_path_SED+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4523 for ac_i in 1 2 3 4 5 6 7; do
4524 ac_script="$ac_script$as_nl$ac_script"
4525 done
4526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4527 { ac_script=; unset ac_script;}
4528 if test -z "$SED"; then
4529 ac_path_SED_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_prog in sed gsed; do
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4540 # Check for GNU ac_path_SED and select it if it is found.
4541 # Check for GNU $ac_path_SED
4542 case `"$ac_path_SED" --version 2>&1` in
4543 *GNU*)
4544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4545 *)
4546 ac_count=0
4547 $as_echo_n 0123456789 >"conftest.in"
4548 while :
4549 do
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 $as_echo '' >> "conftest.nl"
4554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556 as_fn_arith $ac_count + 1 && ac_count=$as_val
4557 if test $ac_count -gt ${ac_path_SED_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_SED="$ac_path_SED"
4560 ac_path_SED_max=$ac_count
4561 fi
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
4564 done
4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568 $ac_path_SED_found && break 3
4569 done
4570 done
4571 done
4572 IFS=$as_save_IFS
4573 if test -z "$ac_cv_path_SED"; then
4574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4575 fi
4576 else
4577 ac_cv_path_SED=$SED
4578 fi
4579
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4582 $as_echo "$ac_cv_path_SED" >&6; }
4583 SED="$ac_cv_path_SED"
4584 rm -f conftest.sed
4585
4586
4587 F77=no
4588 CXX=no
4589 GCJ=no
4590
4591 # Check whether --enable-static was given.
4592 if test "${enable_static+set}" = set; then :
4593 enableval=$enable_static; p=${PACKAGE-default}
4594 case $enableval in
4595 yes) enable_static=yes ;;
4596 no) enable_static=no ;;
4597 *)
4598 enable_static=no
4599 # Look at the argument we got. We use all the common list separators.
4600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4601 for pkg in $enableval; do
4602 IFS="$lt_save_ifs"
4603 if test "X$pkg" = "X$p"; then
4604 enable_static=yes
4605 fi
4606 done
4607 IFS="$lt_save_ifs"
4608 ;;
4609 esac
4610 else
4611 enable_static=no
4612 fi
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622 # Check whether --enable-shared was given.
4623 if test "${enable_shared+set}" = set; then :
4624 enableval=$enable_shared; p=${PACKAGE-default}
4625 case $enableval in
4626 yes) enable_shared=yes ;;
4627 no) enable_shared=no ;;
4628 *)
4629 enable_shared=no
4630 # Look at the argument we got. We use all the common list separators.
4631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4632 for pkg in $enableval; do
4633 IFS="$lt_save_ifs"
4634 if test "X$pkg" = "X$p"; then
4635 enable_shared=yes
4636 fi
4637 done
4638 IFS="$lt_save_ifs"
4639 ;;
4640 esac
4641 else
4642 enable_shared=yes
4643 fi
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4655 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4656 # Check whether --enable-maintainer-mode was given.
4657 if test "${enable_maintainer_mode+set}" = set; then :
4658 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4659 else
4660 USE_MAINTAINER_MODE=no
4661 fi
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4664 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4665 if test $USE_MAINTAINER_MODE = yes; then
4666 MAINTAINER_MODE_TRUE=
4667 MAINTAINER_MODE_FALSE='#'
4668 else
4669 MAINTAINER_MODE_TRUE='#'
4670 MAINTAINER_MODE_FALSE=
4671 fi
4672
4673 MAINT=$MAINTAINER_MODE_TRUE
4674
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4678 $as_echo_n "checking for library containing strerror... " >&6; }
4679 if ${ac_cv_search_strerror+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 ac_func_search_save_LIBS=$LIBS
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685
4686 /* Override any GCC internal prototype to avoid an error.
4687 Use char because int might match the return type of a GCC
4688 builtin and then its argument prototype would still apply. */
4689 #ifdef __cplusplus
4690 extern "C"
4691 #endif
4692 char strerror ();
4693 int
4694 main ()
4695 {
4696 return strerror ();
4697 ;
4698 return 0;
4699 }
4700 _ACEOF
4701 for ac_lib in '' cposix; do
4702 if test -z "$ac_lib"; then
4703 ac_res="none required"
4704 else
4705 ac_res=-l$ac_lib
4706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4707 fi
4708 if ac_fn_c_try_link "$LINENO"; then :
4709 ac_cv_search_strerror=$ac_res
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext
4713 if ${ac_cv_search_strerror+:} false; then :
4714 break
4715 fi
4716 done
4717 if ${ac_cv_search_strerror+:} false; then :
4718
4719 else
4720 ac_cv_search_strerror=no
4721 fi
4722 rm conftest.$ac_ext
4723 LIBS=$ac_func_search_save_LIBS
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4726 $as_echo "$ac_cv_search_strerror" >&6; }
4727 ac_res=$ac_cv_search_strerror
4728 if test "$ac_res" != no; then :
4729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4730
4731 fi
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4734 $as_echo_n "checking for inline... " >&6; }
4735 if ${ac_cv_c_inline+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 ac_cv_c_inline=no
4739 for ac_kw in inline __inline__ __inline; do
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 #ifndef __cplusplus
4743 typedef int foo_t;
4744 static $ac_kw foo_t static_foo () {return 0; }
4745 $ac_kw foo_t foo () {return 0; }
4746 #endif
4747
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_c_inline=$ac_kw
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 test "$ac_cv_c_inline" != no && break
4754 done
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4758 $as_echo "$ac_cv_c_inline" >&6; }
4759
4760 case $ac_cv_c_inline in
4761 inline | yes) ;;
4762 *)
4763 case $ac_cv_c_inline in
4764 no) ac_val=;;
4765 *) ac_val=$ac_cv_c_inline;;
4766 esac
4767 cat >>confdefs.h <<_ACEOF
4768 #ifndef __cplusplus
4769 #define inline $ac_val
4770 #endif
4771 _ACEOF
4772 ;;
4773 esac
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4776 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4777 if ${ac_cv_c_const+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782
4783 int
4784 main ()
4785 {
4786 /* FIXME: Include the comments suggested by Paul. */
4787 #ifndef __cplusplus
4788 /* Ultrix mips cc rejects this. */
4789 typedef int charset[2];
4790 const charset cs;
4791 /* SunOS 4.1.1 cc rejects this. */
4792 char const *const *pcpcc;
4793 char **ppc;
4794 /* NEC SVR4.0.2 mips cc rejects this. */
4795 struct point {int x, y;};
4796 static struct point const zero = {0,0};
4797 /* AIX XL C 1.02.0.0 rejects this.
4798 It does not let you subtract one const X* pointer from another in
4799 an arm of an if-expression whose if-part is not a constant
4800 expression */
4801 const char *g = "string";
4802 pcpcc = &g + (g ? g-g : 0);
4803 /* HPUX 7.0 cc rejects these. */
4804 ++pcpcc;
4805 ppc = (char**) pcpcc;
4806 pcpcc = (char const *const *) ppc;
4807 { /* SCO 3.2v4 cc rejects this. */
4808 char *t;
4809 char const *s = 0 ? (char *) 0 : (char const *) 0;
4810
4811 *t++ = 0;
4812 if (s) return 0;
4813 }
4814 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4815 int x[] = {25, 17};
4816 const int *foo = &x[0];
4817 ++foo;
4818 }
4819 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4820 typedef const int *iptr;
4821 iptr p = 0;
4822 ++p;
4823 }
4824 { /* AIX XL C 1.02.0.0 rejects this saying
4825 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4826 struct s { int j; const int *ap[3]; };
4827 struct s *b; b->j = 5;
4828 }
4829 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4830 const int foo = 10;
4831 if (!foo) return 0;
4832 }
4833 return !cs[0] && !zero.x;
4834 #endif
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_c_const=yes
4842 else
4843 ac_cv_c_const=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4848 $as_echo "$ac_cv_c_const" >&6; }
4849 if test $ac_cv_c_const = no; then
4850
4851 $as_echo "#define const /**/" >>confdefs.h
4852
4853 fi
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4856 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4857 if ${ac_cv_c_bigendian+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 ac_cv_c_bigendian=unknown
4861 # See if we're dealing with a universal compiler.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #ifndef __APPLE_CC__
4865 not a universal capable compiler
4866 #endif
4867 typedef int dummy;
4868
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871
4872 # Check for potential -arch flags. It is not universal unless
4873 # there are at least two -arch flags with different values.
4874 ac_arch=
4875 ac_prev=
4876 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4877 if test -n "$ac_prev"; then
4878 case $ac_word in
4879 i?86 | x86_64 | ppc | ppc64)
4880 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4881 ac_arch=$ac_word
4882 else
4883 ac_cv_c_bigendian=universal
4884 break
4885 fi
4886 ;;
4887 esac
4888 ac_prev=
4889 elif test "x$ac_word" = "x-arch"; then
4890 ac_prev=arch
4891 fi
4892 done
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 if test $ac_cv_c_bigendian = unknown; then
4896 # See if sys/param.h defines the BYTE_ORDER macro.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <sys/types.h>
4900 #include <sys/param.h>
4901
4902 int
4903 main ()
4904 {
4905 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4906 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4907 && LITTLE_ENDIAN)
4908 bogus endian macros
4909 #endif
4910
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_compile "$LINENO"; then :
4916 # It does; now see whether it defined to BIG_ENDIAN or not.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 #include <sys/param.h>
4921
4922 int
4923 main ()
4924 {
4925 #if BYTE_ORDER != BIG_ENDIAN
4926 not big endian
4927 #endif
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_cv_c_bigendian=yes
4935 else
4936 ac_cv_c_bigendian=no
4937 fi
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 fi
4942 if test $ac_cv_c_bigendian = unknown; then
4943 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <limits.h>
4947
4948 int
4949 main ()
4950 {
4951 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4952 bogus endian macros
4953 #endif
4954
4955 ;
4956 return 0;
4957 }
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 # It does; now see whether it defined to _BIG_ENDIAN or not.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <limits.h>
4964
4965 int
4966 main ()
4967 {
4968 #ifndef _BIG_ENDIAN
4969 not big endian
4970 #endif
4971
4972 ;
4973 return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_c_bigendian=yes
4978 else
4979 ac_cv_c_bigendian=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 if test $ac_cv_c_bigendian = unknown; then
4986 # Compile a test program.
4987 if test "$cross_compiling" = yes; then :
4988 # Try to guess by grepping values from an object file.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 short int ascii_mm[] =
4992 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4993 short int ascii_ii[] =
4994 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4995 int use_ascii (int i) {
4996 return ascii_mm[i] + ascii_ii[i];
4997 }
4998 short int ebcdic_ii[] =
4999 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5000 short int ebcdic_mm[] =
5001 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5002 int use_ebcdic (int i) {
5003 return ebcdic_mm[i] + ebcdic_ii[i];
5004 }
5005 extern int foo;
5006
5007 int
5008 main ()
5009 {
5010 return use_ascii (foo) == use_ebcdic (foo);
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5017 ac_cv_c_bigendian=yes
5018 fi
5019 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5020 if test "$ac_cv_c_bigendian" = unknown; then
5021 ac_cv_c_bigendian=no
5022 else
5023 # finding both strings is unlikely to happen, but who knows?
5024 ac_cv_c_bigendian=unknown
5025 fi
5026 fi
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 else
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 $ac_includes_default
5033 int
5034 main ()
5035 {
5036
5037 /* Are we little or big endian? From Harbison&Steele. */
5038 union
5039 {
5040 long int l;
5041 char c[sizeof (long int)];
5042 } u;
5043 u.l = 1;
5044 return u.c[sizeof (long int) - 1] == 1;
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_run "$LINENO"; then :
5051 ac_cv_c_bigendian=no
5052 else
5053 ac_cv_c_bigendian=yes
5054 fi
5055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5056 conftest.$ac_objext conftest.beam conftest.$ac_ext
5057 fi
5058
5059 fi
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5062 $as_echo "$ac_cv_c_bigendian" >&6; }
5063 case $ac_cv_c_bigendian in #(
5064 yes)
5065 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5066 ;; #(
5067 no)
5068 ;; #(
5069 universal)
5070
5071 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5072
5073 ;; #(
5074 *)
5075 as_fn_error $? "unknown endianness
5076 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5077 esac
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5080 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5081 set x ${MAKE-make}
5082 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5083 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 cat >conftest.make <<\_ACEOF
5087 SHELL = /bin/sh
5088 all:
5089 @echo '@@@%%%=$(MAKE)=@@@%%%'
5090 _ACEOF
5091 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5092 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5093 *@@@%%%=?*=@@@%%%*)
5094 eval ac_cv_prog_make_${ac_make}_set=yes;;
5095 *)
5096 eval ac_cv_prog_make_${ac_make}_set=no;;
5097 esac
5098 rm -f conftest.make
5099 fi
5100 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5102 $as_echo "yes" >&6; }
5103 SET_MAKE=
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 SET_MAKE="MAKE=${MAKE-make}"
5108 fi
5109
5110
5111 # Extract the first word of "automake", so it can be a program name with args.
5112 set dummy automake; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_AUTOMAKE+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 case $AUTOMAKE in
5119 [\\/]* | ?:[\\/]*)
5120 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5121 ;;
5122 *)
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 ;;
5139 esac
5140 fi
5141 AUTOMAKE=$ac_cv_path_AUTOMAKE
5142 if test -n "$AUTOMAKE"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5144 $as_echo "$AUTOMAKE" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 # Extract the first word of "aclocal", so it can be a program name with args.
5152 set dummy aclocal; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_path_ACLOCAL+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 case $ACLOCAL in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 ;;
5179 esac
5180 fi
5181 ACLOCAL=$ac_cv_path_ACLOCAL
5182 if test -n "$ACLOCAL"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5184 $as_echo "$ACLOCAL" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 # Extract the first word of "autoheader", so it can be a program name with args.
5192 set dummy autoheader; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_AUTOHEADER+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 case $AUTOHEADER in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 ;;
5219 esac
5220 fi
5221 AUTOHEADER=$ac_cv_path_AUTOHEADER
5222 if test -n "$AUTOHEADER"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5224 $as_echo "$AUTOHEADER" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "as", so it can be a program name with args.
5232 set dummy as; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_path_AS+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 case $AS in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_AS="$AS" # Let the user override the test with a path.
5241 ;;
5242 *)
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 ;;
5259 esac
5260 fi
5261 AS=$ac_cv_path_AS
5262 if test -n "$AS"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5264 $as_echo "$AS" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 # Extract the first word of "rm", so it can be a program name with args.
5272 set dummy rm; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_path_RM+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 case $RM in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5281 ;;
5282 *)
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 ;;
5299 esac
5300 fi
5301 RM=$ac_cv_path_RM
5302 if test -n "$RM"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5304 $as_echo "$RM" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5308 fi
5309
5310
5311 # Extract the first word of "cp", so it can be a program name with args.
5312 set dummy cp; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_path_CP+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 case $CP in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5321 ;;
5322 *)
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 ;;
5339 esac
5340 fi
5341 CP=$ac_cv_path_CP
5342 if test -n "$CP"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5344 $as_echo "$CP" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350
5351 # Extract the first word of "mv", so it can be a program name with args.
5352 set dummy mv; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_path_MV+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 case $MV in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5361 ;;
5362 *)
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 ;;
5379 esac
5380 fi
5381 MV=$ac_cv_path_MV
5382 if test -n "$MV"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5384 $as_echo "$MV" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 # Extract the first word of "ln", so it can be a program name with args.
5392 set dummy ln; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_LN+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $LN in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 ;;
5419 esac
5420 fi
5421 LN=$ac_cv_path_LN
5422 if test -n "$LN"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5424 $as_echo "$LN" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 # Extract the first word of "touch", so it can be a program name with args.
5432 set dummy touch; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_path_TOUCH+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 case $TOUCH in
5439 [\\/]* | ?:[\\/]*)
5440 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5441 ;;
5442 *)
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454 done
5455 done
5456 IFS=$as_save_IFS
5457
5458 ;;
5459 esac
5460 fi
5461 TOUCH=$ac_cv_path_TOUCH
5462 if test -n "$TOUCH"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5464 $as_echo "$TOUCH" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477
5478 case `pwd` in
5479 *\ * | *\ *)
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5481 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5482 esac
5483
5484
5485
5486 macro_version='2.4.2'
5487 macro_revision='1.3337'
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 ltmain="$ac_aux_dir/ltmain.sh"
5502
5503 # Make sure we can run config.sub.
5504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5505 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5508 $as_echo_n "checking build system type... " >&6; }
5509 if ${ac_cv_build+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_build_alias=$build_alias
5513 test "x$ac_build_alias" = x &&
5514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5515 test "x$ac_build_alias" = x &&
5516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5519
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5522 $as_echo "$ac_cv_build" >&6; }
5523 case $ac_cv_build in
5524 *-*-*) ;;
5525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5526 esac
5527 build=$ac_cv_build
5528 ac_save_IFS=$IFS; IFS='-'
5529 set x $ac_cv_build
5530 shift
5531 build_cpu=$1
5532 build_vendor=$2
5533 shift; shift
5534 # Remember, the first character of IFS is used to create $*,
5535 # except with old shells:
5536 build_os=$*
5537 IFS=$ac_save_IFS
5538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5542 $as_echo_n "checking host system type... " >&6; }
5543 if ${ac_cv_host+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test "x$host_alias" = x; then
5547 ac_cv_host=$ac_cv_build
5548 else
5549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5551 fi
5552
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5555 $as_echo "$ac_cv_host" >&6; }
5556 case $ac_cv_host in
5557 *-*-*) ;;
5558 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5559 esac
5560 host=$ac_cv_host
5561 ac_save_IFS=$IFS; IFS='-'
5562 set x $ac_cv_host
5563 shift
5564 host_cpu=$1
5565 host_vendor=$2
5566 shift; shift
5567 # Remember, the first character of IFS is used to create $*,
5568 # except with old shells:
5569 host_os=$*
5570 IFS=$ac_save_IFS
5571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5572
5573
5574 # Backslashify metacharacters that are still active within
5575 # double-quoted strings.
5576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5577
5578 # Same as above, but do not quote variable references.
5579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5580
5581 # Sed substitution to delay expansion of an escaped shell variable in a
5582 # double_quote_subst'ed string.
5583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5584
5585 # Sed substitution to delay expansion of an escaped single quote.
5586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5587
5588 # Sed substitution to avoid accidental globbing in evaled expressions
5589 no_glob_subst='s/\*/\\\*/g'
5590
5591 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596 $as_echo_n "checking how to print strings... " >&6; }
5597 # Test print first, because it will be a builtin if present.
5598 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5600 ECHO='print -r --'
5601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5602 ECHO='printf %s\n'
5603 else
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5606 {
5607 eval 'cat <<_LTECHO_EOF
5608 $1
5609 _LTECHO_EOF'
5610 }
5611 ECHO='func_fallback_echo'
5612 fi
5613
5614 # func_echo_all arg...
5615 # Invoke $ECHO with all args, space-separated.
5616 func_echo_all ()
5617 {
5618 $ECHO ""
5619 }
5620
5621 case "$ECHO" in
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623 $as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625 $as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627 $as_echo "cat" >&6; } ;;
5628 esac
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5645 if ${ac_cv_path_SED+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5651 done
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in sed gsed; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5665 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5666 # Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668 case `"$ac_path_SED" --version 2>&1` in
5669 *GNU*)
5670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5671 *)
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5675 do
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED="$ac_path_SED"
5686 ac_path_SED_max=$ac_count
5687 fi
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5693
5694 $ac_path_SED_found && break 3
5695 done
5696 done
5697 done
5698 IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_SED"; then
5700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5701 fi
5702 else
5703 ac_cv_path_SED=$SED
5704 fi
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 $as_echo "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5710 rm -f conftest.sed
5711
5712 test -z "$SED" && SED=sed
5713 Xsed="$SED -e 1s/^X//"
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5726 $as_echo_n "checking for fgrep... " >&6; }
5727 if ${ac_cv_path_FGREP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5731 then ac_cv_path_FGREP="$GREP -F"
5732 else
5733 if test -z "$FGREP"; then
5734 ac_path_FGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738 do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in fgrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5744 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5745 # Check for GNU ac_path_FGREP and select it if it is found.
5746 # Check for GNU $ac_path_FGREP
5747 case `"$ac_path_FGREP" --version 2>&1` in
5748 *GNU*)
5749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5750 *)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'FGREP' >> "conftest.nl"
5759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_FGREP="$ac_path_FGREP"
5765 ac_path_FGREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771 esac
5772
5773 $ac_path_FGREP_found && break 3
5774 done
5775 done
5776 done
5777 IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_FGREP"; then
5779 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5780 fi
5781 else
5782 ac_cv_path_FGREP=$FGREP
5783 fi
5784
5785 fi
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5788 $as_echo "$ac_cv_path_FGREP" >&6; }
5789 FGREP="$ac_cv_path_FGREP"
5790
5791
5792 test -z "$GREP" && GREP=grep
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 # Check whether --with-gnu-ld was given.
5813 if test "${with_gnu_ld+set}" = set; then :
5814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5815 else
5816 with_gnu_ld=no
5817 fi
5818
5819 ac_prog=ld
5820 if test "$GCC" = yes; then
5821 # Check if gcc -print-prog-name=ld gives a path.
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5823 $as_echo_n "checking for ld used by $CC... " >&6; }
5824 case $host in
5825 *-*-mingw*)
5826 # gcc leaves a trailing carriage return which upsets mingw
5827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5828 *)
5829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5830 esac
5831 case $ac_prog in
5832 # Accept absolute paths.
5833 [\\/]* | ?:[\\/]*)
5834 re_direlt='/[^/][^/]*/\.\./'
5835 # Canonicalize the pathname of ld
5836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5839 done
5840 test -z "$LD" && LD="$ac_prog"
5841 ;;
5842 "")
5843 # If it fails, then pretend we aren't using GCC.
5844 ac_prog=ld
5845 ;;
5846 *)
5847 # If it is relative, then search for the first ld in PATH.
5848 with_gnu_ld=unknown
5849 ;;
5850 esac
5851 elif test "$with_gnu_ld" = yes; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5853 $as_echo_n "checking for GNU ld... " >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5856 $as_echo_n "checking for non-GNU ld... " >&6; }
5857 fi
5858 if ${lt_cv_path_LD+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -z "$LD"; then
5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5867 lt_cv_path_LD="$ac_dir/$ac_prog"
5868 # Check to see if the program is GNU ld. I'd rather use --version,
5869 # but apparently some variants of GNU ld only accept -v.
5870 # Break only if it was the GNU/non-GNU ld that we prefer.
5871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5872 *GNU* | *'with BFD'*)
5873 test "$with_gnu_ld" != no && break
5874 ;;
5875 *)
5876 test "$with_gnu_ld" != yes && break
5877 ;;
5878 esac
5879 fi
5880 done
5881 IFS="$lt_save_ifs"
5882 else
5883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5884 fi
5885 fi
5886
5887 LD="$lt_cv_path_LD"
5888 if test -n "$LD"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5890 $as_echo "$LD" >&6; }
5891 else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5898 if ${lt_cv_prog_gnu_ld+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5902 case `$LD -v 2>&1 </dev/null` in
5903 *GNU* | *'with BFD'*)
5904 lt_cv_prog_gnu_ld=yes
5905 ;;
5906 *)
5907 lt_cv_prog_gnu_ld=no
5908 ;;
5909 esac
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5912 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5913 with_gnu_ld=$lt_cv_prog_gnu_ld
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5924 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5925 if ${lt_cv_path_NM+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$NM"; then
5929 # Let the user override the test.
5930 lt_cv_path_NM="$NM"
5931 else
5932 lt_nm_to_check="${ac_tool_prefix}nm"
5933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5934 lt_nm_to_check="$lt_nm_to_check nm"
5935 fi
5936 for lt_tmp_nm in $lt_nm_to_check; do
5937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5939 IFS="$lt_save_ifs"
5940 test -z "$ac_dir" && ac_dir=.
5941 tmp_nm="$ac_dir/$lt_tmp_nm"
5942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5943 # Check to see if the nm accepts a BSD-compat flag.
5944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5945 # nm: unknown option "B" ignored
5946 # Tru64's nm complains that /dev/null is an invalid object file
5947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5948 */dev/null* | *'Invalid file or object type'*)
5949 lt_cv_path_NM="$tmp_nm -B"
5950 break
5951 ;;
5952 *)
5953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5954 */dev/null*)
5955 lt_cv_path_NM="$tmp_nm -p"
5956 break
5957 ;;
5958 *)
5959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5960 continue # so that we can try to find one that supports BSD flags
5961 ;;
5962 esac
5963 ;;
5964 esac
5965 fi
5966 done
5967 IFS="$lt_save_ifs"
5968 done
5969 : ${lt_cv_path_NM=no}
5970 fi
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5973 $as_echo "$lt_cv_path_NM" >&6; }
5974 if test "$lt_cv_path_NM" != "no"; then
5975 NM="$lt_cv_path_NM"
5976 else
5977 # Didn't find any BSD compatible name lister, look for dumpbin.
5978 if test -n "$DUMPBIN"; then :
5979 # Let the user override the test.
5980 else
5981 if test -n "$ac_tool_prefix"; then
5982 for ac_prog in dumpbin "link -dump"
5983 do
5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_DUMPBIN+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$DUMPBIN"; then
5992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 DUMPBIN=$ac_cv_prog_DUMPBIN
6012 if test -n "$DUMPBIN"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6014 $as_echo "$DUMPBIN" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021 test -n "$DUMPBIN" && break
6022 done
6023 fi
6024 if test -z "$DUMPBIN"; then
6025 ac_ct_DUMPBIN=$DUMPBIN
6026 for ac_prog in dumpbin "link -dump"
6027 do
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$ac_ct_DUMPBIN"; then
6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6058 $as_echo "$ac_ct_DUMPBIN" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 test -n "$ac_ct_DUMPBIN" && break
6066 done
6067
6068 if test "x$ac_ct_DUMPBIN" = x; then
6069 DUMPBIN=":"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077 DUMPBIN=$ac_ct_DUMPBIN
6078 fi
6079 fi
6080
6081 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6082 *COFF*)
6083 DUMPBIN="$DUMPBIN -symbols"
6084 ;;
6085 *)
6086 DUMPBIN=:
6087 ;;
6088 esac
6089 fi
6090
6091 if test "$DUMPBIN" != ":"; then
6092 NM="$DUMPBIN"
6093 fi
6094 fi
6095 test -z "$NM" && NM=nm
6096
6097
6098
6099
6100
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6103 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6104 if ${lt_cv_nm_interface+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 lt_cv_nm_interface="BSD nm"
6108 echo "int some_variable = 0;" > conftest.$ac_ext
6109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6110 (eval "$ac_compile" 2>conftest.err)
6111 cat conftest.err >&5
6112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6114 cat conftest.err >&5
6115 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6116 cat conftest.out >&5
6117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6118 lt_cv_nm_interface="MS dumpbin"
6119 fi
6120 rm -f conftest*
6121 fi
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6123 $as_echo "$lt_cv_nm_interface" >&6; }
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6126 $as_echo_n "checking whether ln -s works... " >&6; }
6127 LN_S=$as_ln_s
6128 if test "$LN_S" = "ln -s"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130 $as_echo "yes" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6133 $as_echo "no, using $LN_S" >&6; }
6134 fi
6135
6136 # find the maximum length of command line arguments
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6138 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6139 if ${lt_cv_sys_max_cmd_len+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 i=0
6143 teststring="ABCD"
6144
6145 case $build_os in
6146 msdosdjgpp*)
6147 # On DJGPP, this test can blow up pretty badly due to problems in libc
6148 # (any single argument exceeding 2000 bytes causes a buffer overrun
6149 # during glob expansion). Even if it were fixed, the result of this
6150 # check would be larger than it should be.
6151 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6152 ;;
6153
6154 gnu*)
6155 # Under GNU Hurd, this test is not required because there is
6156 # no limit to the length of command line arguments.
6157 # Libtool will interpret -1 as no limit whatsoever
6158 lt_cv_sys_max_cmd_len=-1;
6159 ;;
6160
6161 cygwin* | mingw* | cegcc*)
6162 # On Win9x/ME, this test blows up -- it succeeds, but takes
6163 # about 5 minutes as the teststring grows exponentially.
6164 # Worse, since 9x/ME are not pre-emptively multitasking,
6165 # you end up with a "frozen" computer, even though with patience
6166 # the test eventually succeeds (with a max line length of 256k).
6167 # Instead, let's just punt: use the minimum linelength reported by
6168 # all of the supported platforms: 8192 (on NT/2K/XP).
6169 lt_cv_sys_max_cmd_len=8192;
6170 ;;
6171
6172 mint*)
6173 # On MiNT this can take a long time and run out of memory.
6174 lt_cv_sys_max_cmd_len=8192;
6175 ;;
6176
6177 amigaos*)
6178 # On AmigaOS with pdksh, this test takes hours, literally.
6179 # So we just punt and use a minimum line length of 8192.
6180 lt_cv_sys_max_cmd_len=8192;
6181 ;;
6182
6183 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184 # This has been around since 386BSD, at least. Likely further.
6185 if test -x /sbin/sysctl; then
6186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187 elif test -x /usr/sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6189 else
6190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6191 fi
6192 # And add a safety zone
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195 ;;
6196
6197 interix*)
6198 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199 lt_cv_sys_max_cmd_len=196608
6200 ;;
6201
6202 os2*)
6203 # The test takes a long time on OS/2.
6204 lt_cv_sys_max_cmd_len=8192
6205 ;;
6206
6207 osf*)
6208 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6209 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6210 # nice to cause kernel panics so lets avoid the loop below.
6211 # First set a reasonable default.
6212 lt_cv_sys_max_cmd_len=16384
6213 #
6214 if test -x /sbin/sysconfig; then
6215 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6216 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6217 esac
6218 fi
6219 ;;
6220 sco3.2v5*)
6221 lt_cv_sys_max_cmd_len=102400
6222 ;;
6223 sysv5* | sco5v6* | sysv4.2uw2*)
6224 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6225 if test -n "$kargmax"; then
6226 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6227 else
6228 lt_cv_sys_max_cmd_len=32768
6229 fi
6230 ;;
6231 *)
6232 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6233 if test -n "$lt_cv_sys_max_cmd_len"; then
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6236 else
6237 # Make teststring a little bigger before we do anything with it.
6238 # a 1K string should be a reasonable start.
6239 for i in 1 2 3 4 5 6 7 8 ; do
6240 teststring=$teststring$teststring
6241 done
6242 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6243 # If test is not a shell built-in, we'll probably end up computing a
6244 # maximum length that is only half of the actual maximum length, but
6245 # we can't tell.
6246 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6247 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6248 test $i != 17 # 1/2 MB should be enough
6249 do
6250 i=`expr $i + 1`
6251 teststring=$teststring$teststring
6252 done
6253 # Only check the string length outside the loop.
6254 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6255 teststring=
6256 # Add a significant safety factor because C++ compilers can tack on
6257 # massive amounts of additional arguments before passing them to the
6258 # linker. It appears as though 1/2 is a usable value.
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6260 fi
6261 ;;
6262 esac
6263
6264 fi
6265
6266 if test -n $lt_cv_sys_max_cmd_len ; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6268 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6271 $as_echo "none" >&6; }
6272 fi
6273 max_cmd_len=$lt_cv_sys_max_cmd_len
6274
6275
6276
6277
6278
6279
6280 : ${CP="cp -f"}
6281 : ${MV="mv -f"}
6282 : ${RM="rm -f"}
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6285 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6286 # Try some XSI features
6287 xsi_shell=no
6288 ( _lt_dummy="a/b/c"
6289 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6290 = c,a/b,b/c, \
6291 && eval 'test $(( 1 + 1 )) -eq 2 \
6292 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6293 && xsi_shell=yes
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6295 $as_echo "$xsi_shell" >&6; }
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6299 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6300 lt_shell_append=no
6301 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6302 >/dev/null 2>&1 \
6303 && lt_shell_append=yes
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6305 $as_echo "$lt_shell_append" >&6; }
6306
6307
6308 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6309 lt_unset=unset
6310 else
6311 lt_unset=false
6312 fi
6313
6314
6315
6316
6317
6318 # test EBCDIC or ASCII
6319 case `echo X|tr X '\101'` in
6320 A) # ASCII based system
6321 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6322 lt_SP2NL='tr \040 \012'
6323 lt_NL2SP='tr \015\012 \040\040'
6324 ;;
6325 *) # EBCDIC based system
6326 lt_SP2NL='tr \100 \n'
6327 lt_NL2SP='tr \r\n \100\100'
6328 ;;
6329 esac
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6340 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6341 if ${lt_cv_to_host_file_cmd+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 case $host in
6345 *-*-mingw* )
6346 case $build in
6347 *-*-mingw* ) # actually msys
6348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6349 ;;
6350 *-*-cygwin* )
6351 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6352 ;;
6353 * ) # otherwise, assume *nix
6354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6355 ;;
6356 esac
6357 ;;
6358 *-*-cygwin* )
6359 case $build in
6360 *-*-mingw* ) # actually msys
6361 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6362 ;;
6363 *-*-cygwin* )
6364 lt_cv_to_host_file_cmd=func_convert_file_noop
6365 ;;
6366 * ) # otherwise, assume *nix
6367 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6368 ;;
6369 esac
6370 ;;
6371 * ) # unhandled hosts (and "normal" native builds)
6372 lt_cv_to_host_file_cmd=func_convert_file_noop
6373 ;;
6374 esac
6375
6376 fi
6377
6378 to_host_file_cmd=$lt_cv_to_host_file_cmd
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6380 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6381
6382
6383
6384
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6387 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6388 if ${lt_cv_to_tool_file_cmd+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 #assume ordinary cross tools, or native build.
6392 lt_cv_to_tool_file_cmd=func_convert_file_noop
6393 case $host in
6394 *-*-mingw* )
6395 case $build in
6396 *-*-mingw* ) # actually msys
6397 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6398 ;;
6399 esac
6400 ;;
6401 esac
6402
6403 fi
6404
6405 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6407 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6414 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6415 if ${lt_cv_ld_reload_flag+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 lt_cv_ld_reload_flag='-r'
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6421 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6422 reload_flag=$lt_cv_ld_reload_flag
6423 case $reload_flag in
6424 "" | " "*) ;;
6425 *) reload_flag=" $reload_flag" ;;
6426 esac
6427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6428 case $host_os in
6429 cygwin* | mingw* | pw32* | cegcc*)
6430 if test "$GCC" != yes; then
6431 reload_cmds=false
6432 fi
6433 ;;
6434 darwin*)
6435 if test "$GCC" = yes; then
6436 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6437 else
6438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6439 fi
6440 ;;
6441 esac
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_OBJDUMP+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$OBJDUMP"; then
6460 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 OBJDUMP=$ac_cv_prog_OBJDUMP
6480 if test -n "$OBJDUMP"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6482 $as_echo "$OBJDUMP" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488
6489 fi
6490 if test -z "$ac_cv_prog_OBJDUMP"; then
6491 ac_ct_OBJDUMP=$OBJDUMP
6492 # Extract the first word of "objdump", so it can be a program name with args.
6493 set dummy objdump; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$ac_ct_OBJDUMP"; then
6500 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6520 if test -n "$ac_ct_OBJDUMP"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6522 $as_echo "$ac_ct_OBJDUMP" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528 if test "x$ac_ct_OBJDUMP" = x; then
6529 OBJDUMP="false"
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537 OBJDUMP=$ac_ct_OBJDUMP
6538 fi
6539 else
6540 OBJDUMP="$ac_cv_prog_OBJDUMP"
6541 fi
6542
6543 test -z "$OBJDUMP" && OBJDUMP=objdump
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6554 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6555 if ${lt_cv_deplibs_check_method+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 lt_cv_file_magic_cmd='$MAGIC_CMD'
6559 lt_cv_file_magic_test_file=
6560 lt_cv_deplibs_check_method='unknown'
6561 # Need to set the preceding variable on all platforms that support
6562 # interlibrary dependencies.
6563 # 'none' -- dependencies not supported.
6564 # `unknown' -- same as none, but documents that we really don't know.
6565 # 'pass_all' -- all dependencies passed with no checks.
6566 # 'test_compile' -- check by making test program.
6567 # 'file_magic [[regex]]' -- check by looking for files in library path
6568 # which responds to the $file_magic_cmd with a given extended regex.
6569 # If you have `file' or equivalent on your system and you're not sure
6570 # whether `pass_all' will *always* work, you probably want this one.
6571
6572 case $host_os in
6573 aix[4-9]*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 beos*)
6578 lt_cv_deplibs_check_method=pass_all
6579 ;;
6580
6581 bsdi[45]*)
6582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6583 lt_cv_file_magic_cmd='/usr/bin/file -L'
6584 lt_cv_file_magic_test_file=/shlib/libc.so
6585 ;;
6586
6587 cygwin*)
6588 # func_win32_libid is a shell function defined in ltmain.sh
6589 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6590 lt_cv_file_magic_cmd='func_win32_libid'
6591 ;;
6592
6593 mingw* | pw32*)
6594 # Base MSYS/MinGW do not provide the 'file' command needed by
6595 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6596 # unless we find 'file', for example because we are cross-compiling.
6597 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6598 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6600 lt_cv_file_magic_cmd='func_win32_libid'
6601 else
6602 # Keep this pattern in sync with the one in func_win32_libid.
6603 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6604 lt_cv_file_magic_cmd='$OBJDUMP -f'
6605 fi
6606 ;;
6607
6608 cegcc*)
6609 # use the weaker test based on 'objdump'. See mingw*.
6610 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6611 lt_cv_file_magic_cmd='$OBJDUMP -f'
6612 ;;
6613
6614 darwin* | rhapsody*)
6615 lt_cv_deplibs_check_method=pass_all
6616 ;;
6617
6618 freebsd* | dragonfly*)
6619 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6620 case $host_cpu in
6621 i*86 )
6622 # Not sure whether the presence of OpenBSD here was a mistake.
6623 # Let's accept both of them until this is cleared up.
6624 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6625 lt_cv_file_magic_cmd=/usr/bin/file
6626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6627 ;;
6628 esac
6629 else
6630 lt_cv_deplibs_check_method=pass_all
6631 fi
6632 ;;
6633
6634 gnu*)
6635 lt_cv_deplibs_check_method=pass_all
6636 ;;
6637
6638 haiku*)
6639 lt_cv_deplibs_check_method=pass_all
6640 ;;
6641
6642 hpux10.20* | hpux11*)
6643 lt_cv_file_magic_cmd=/usr/bin/file
6644 case $host_cpu in
6645 ia64*)
6646 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6647 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6648 ;;
6649 hppa*64*)
6650 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]'
6651 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6652 ;;
6653 *)
6654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6655 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6656 ;;
6657 esac
6658 ;;
6659
6660 interix[3-9]*)
6661 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6663 ;;
6664
6665 irix5* | irix6* | nonstopux*)
6666 case $LD in
6667 *-32|*"-32 ") libmagic=32-bit;;
6668 *-n32|*"-n32 ") libmagic=N32;;
6669 *-64|*"-64 ") libmagic=64-bit;;
6670 *) libmagic=never-match;;
6671 esac
6672 lt_cv_deplibs_check_method=pass_all
6673 ;;
6674
6675 # This must be glibc/ELF.
6676 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679
6680 netbsd*)
6681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6683 else
6684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6685 fi
6686 ;;
6687
6688 newos6*)
6689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6690 lt_cv_file_magic_cmd=/usr/bin/file
6691 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6692 ;;
6693
6694 *nto* | *qnx*)
6695 lt_cv_deplibs_check_method=pass_all
6696 ;;
6697
6698 openbsd*)
6699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6701 else
6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6703 fi
6704 ;;
6705
6706 osf3* | osf4* | osf5*)
6707 lt_cv_deplibs_check_method=pass_all
6708 ;;
6709
6710 rdos*)
6711 lt_cv_deplibs_check_method=pass_all
6712 ;;
6713
6714 solaris*)
6715 lt_cv_deplibs_check_method=pass_all
6716 ;;
6717
6718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
6721
6722 sysv4 | sysv4.3*)
6723 case $host_vendor in
6724 motorola)
6725 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]'
6726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6727 ;;
6728 ncr)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
6731 sequent)
6732 lt_cv_file_magic_cmd='/bin/file'
6733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6734 ;;
6735 sni)
6736 lt_cv_file_magic_cmd='/bin/file'
6737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6738 lt_cv_file_magic_test_file=/lib/libc.so
6739 ;;
6740 siemens)
6741 lt_cv_deplibs_check_method=pass_all
6742 ;;
6743 pc)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746 esac
6747 ;;
6748
6749 tpf*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752 esac
6753
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6756 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6757
6758 file_magic_glob=
6759 want_nocaseglob=no
6760 if test "$build" = "$host"; then
6761 case $host_os in
6762 mingw* | pw32*)
6763 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6764 want_nocaseglob=yes
6765 else
6766 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6767 fi
6768 ;;
6769 esac
6770 fi
6771
6772 file_magic_cmd=$lt_cv_file_magic_cmd
6773 deplibs_check_method=$lt_cv_deplibs_check_method
6774 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_DLLTOOL+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$DLLTOOL"; then
6806 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 DLLTOOL=$ac_cv_prog_DLLTOOL
6826 if test -n "$DLLTOOL"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6828 $as_echo "$DLLTOOL" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_DLLTOOL"; then
6837 ac_ct_DLLTOOL=$DLLTOOL
6838 # Extract the first word of "dlltool", so it can be a program name with args.
6839 set dummy dlltool; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_DLLTOOL"; then
6846 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6866 if test -n "$ac_ct_DLLTOOL"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6868 $as_echo "$ac_ct_DLLTOOL" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874 if test "x$ac_ct_DLLTOOL" = x; then
6875 DLLTOOL="false"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 DLLTOOL=$ac_ct_DLLTOOL
6884 fi
6885 else
6886 DLLTOOL="$ac_cv_prog_DLLTOOL"
6887 fi
6888
6889 test -z "$DLLTOOL" && DLLTOOL=dlltool
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6901 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6902 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 lt_cv_sharedlib_from_linklib_cmd='unknown'
6906
6907 case $host_os in
6908 cygwin* | mingw* | pw32* | cegcc*)
6909 # two different shell functions defined in ltmain.sh
6910 # decide which to use based on capabilities of $DLLTOOL
6911 case `$DLLTOOL --help 2>&1` in
6912 *--identify-strict*)
6913 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6914 ;;
6915 *)
6916 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6917 ;;
6918 esac
6919 ;;
6920 *)
6921 # fallback: assume linklib IS sharedlib
6922 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6923 ;;
6924 esac
6925
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6928 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6929 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6930 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6931
6932
6933
6934
6935
6936
6937
6938 if test -n "$ac_tool_prefix"; then
6939 for ac_prog in ar
6940 do
6941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_AR+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$AR"; then
6949 ac_cv_prog_AR="$AR" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 AR=$ac_cv_prog_AR
6969 if test -n "$AR"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6971 $as_echo "$AR" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977
6978 test -n "$AR" && break
6979 done
6980 fi
6981 if test -z "$AR"; then
6982 ac_ct_AR=$AR
6983 for ac_prog in ar
6984 do
6985 # Extract the first word of "$ac_prog", so it can be a program name with args.
6986 set dummy $ac_prog; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$ac_ct_AR"; then
6993 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_ac_ct_AR="$ac_prog"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7013 if test -n "$ac_ct_AR"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7015 $as_echo "$ac_ct_AR" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021
7022 test -n "$ac_ct_AR" && break
7023 done
7024
7025 if test "x$ac_ct_AR" = x; then
7026 AR="false"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 AR=$ac_ct_AR
7035 fi
7036 fi
7037
7038 : ${AR=ar}
7039 : ${AR_FLAGS=cru}
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7052 $as_echo_n "checking for archiver @FILE support... " >&6; }
7053 if ${lt_cv_ar_at_file+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 lt_cv_ar_at_file=no
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059
7060 int
7061 main ()
7062 {
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069 echo conftest.$ac_objext > conftest.lst
7070 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7072 (eval $lt_ar_try) 2>&5
7073 ac_status=$?
7074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7075 test $ac_status = 0; }
7076 if test "$ac_status" -eq 0; then
7077 # Ensure the archiver fails upon bogus file names.
7078 rm -f conftest.$ac_objext libconftest.a
7079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7080 (eval $lt_ar_try) 2>&5
7081 ac_status=$?
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }
7084 if test "$ac_status" -ne 0; then
7085 lt_cv_ar_at_file=@
7086 fi
7087 fi
7088 rm -f conftest.* libconftest.a
7089
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7095 $as_echo "$lt_cv_ar_at_file" >&6; }
7096
7097 if test "x$lt_cv_ar_at_file" = xno; then
7098 archiver_list_spec=
7099 else
7100 archiver_list_spec=$lt_cv_ar_at_file
7101 fi
7102
7103
7104
7105
7106
7107
7108
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}strip; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_STRIP+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$STRIP"; then
7118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 STRIP=$ac_cv_prog_STRIP
7138 if test -n "$STRIP"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7140 $as_echo "$STRIP" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_STRIP"; then
7149 ac_ct_STRIP=$STRIP
7150 # Extract the first word of "strip", so it can be a program name with args.
7151 set dummy strip; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_STRIP"; then
7158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_STRIP="strip"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7178 if test -n "$ac_ct_STRIP"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7180 $as_echo "$ac_ct_STRIP" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_STRIP" = x; then
7187 STRIP=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 STRIP=$ac_ct_STRIP
7196 fi
7197 else
7198 STRIP="$ac_cv_prog_STRIP"
7199 fi
7200
7201 test -z "$STRIP" && STRIP=:
7202
7203
7204
7205
7206
7207
7208 if test -n "$ac_tool_prefix"; then
7209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_RANLIB+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 if test -n "$RANLIB"; then
7217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 RANLIB=$ac_cv_prog_RANLIB
7237 if test -n "$RANLIB"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7239 $as_echo "$RANLIB" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245
7246 fi
7247 if test -z "$ac_cv_prog_RANLIB"; then
7248 ac_ct_RANLIB=$RANLIB
7249 # Extract the first word of "ranlib", so it can be a program name with args.
7250 set dummy ranlib; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 if test -n "$ac_ct_RANLIB"; then
7257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_prog_ac_ct_RANLIB="ranlib"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7277 if test -n "$ac_ct_RANLIB"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7279 $as_echo "$ac_ct_RANLIB" >&6; }
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285 if test "x$ac_ct_RANLIB" = x; then
7286 RANLIB=":"
7287 else
7288 case $cross_compiling:$ac_tool_warned in
7289 yes:)
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292 ac_tool_warned=yes ;;
7293 esac
7294 RANLIB=$ac_ct_RANLIB
7295 fi
7296 else
7297 RANLIB="$ac_cv_prog_RANLIB"
7298 fi
7299
7300 test -z "$RANLIB" && RANLIB=:
7301
7302
7303
7304
7305
7306
7307 # Determine commands to create old-style static archives.
7308 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7309 old_postinstall_cmds='chmod 644 $oldlib'
7310 old_postuninstall_cmds=
7311
7312 if test -n "$RANLIB"; then
7313 case $host_os in
7314 openbsd*)
7315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7316 ;;
7317 *)
7318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7319 ;;
7320 esac
7321 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7322 fi
7323
7324 case $host_os in
7325 darwin*)
7326 lock_old_archive_extraction=yes ;;
7327 *)
7328 lock_old_archive_extraction=no ;;
7329 esac
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 # If no C compiler was specified, use CC.
7370 LTCC=${LTCC-"$CC"}
7371
7372 # If no C compiler flags were specified, use CFLAGS.
7373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7374
7375 # Allow CC to be a program name with arguments.
7376 compiler=$CC
7377
7378
7379 # Check for command to grab the raw symbol name followed by C symbol from nm.
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7381 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7382 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385
7386 # These are sane defaults that work on at least a few old systems.
7387 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7388
7389 # Character class describing NM global symbol codes.
7390 symcode='[BCDEGRST]'
7391
7392 # Regexp to match symbols that can be accessed directly from C.
7393 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7394
7395 # Define system-specific variables.
7396 case $host_os in
7397 aix*)
7398 symcode='[BCDT]'
7399 ;;
7400 cygwin* | mingw* | pw32* | cegcc*)
7401 symcode='[ABCDGISTW]'
7402 ;;
7403 hpux*)
7404 if test "$host_cpu" = ia64; then
7405 symcode='[ABCDEGRST]'
7406 fi
7407 ;;
7408 irix* | nonstopux*)
7409 symcode='[BCDEGRST]'
7410 ;;
7411 osf*)
7412 symcode='[BCDEGQRST]'
7413 ;;
7414 solaris*)
7415 symcode='[BDRT]'
7416 ;;
7417 sco3.2v5*)
7418 symcode='[DT]'
7419 ;;
7420 sysv4.2uw2*)
7421 symcode='[DT]'
7422 ;;
7423 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7424 symcode='[ABDT]'
7425 ;;
7426 sysv4)
7427 symcode='[DFNSTU]'
7428 ;;
7429 esac
7430
7431 # If we're using GNU nm, then use its standard symbol codes.
7432 case `$NM -V 2>&1` in
7433 *GNU* | *'with BFD'*)
7434 symcode='[ABCDGIRSTW]' ;;
7435 esac
7436
7437 # Transform an extracted symbol line into a proper C declaration.
7438 # Some systems (esp. on ia64) link data and code symbols differently,
7439 # so use this general approach.
7440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7441
7442 # Transform an extracted symbol line into symbol name and symbol address
7443 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7444 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'"
7445
7446 # Handle CRLF in mingw tool chain
7447 opt_cr=
7448 case $build_os in
7449 mingw*)
7450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7451 ;;
7452 esac
7453
7454 # Try without a prefix underscore, then with it.
7455 for ac_symprfx in "" "_"; do
7456
7457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7458 symxfrm="\\1 $ac_symprfx\\2 \\2"
7459
7460 # Write the raw and C identifiers.
7461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462 # Fake it for dumpbin and say T for any non-static function
7463 # and D for any global variable.
7464 # Also find C++ and __fastcall symbols from MSVC++,
7465 # which start with @ or ?.
7466 lt_cv_sys_global_symbol_pipe="$AWK '"\
7467 " {last_section=section; section=\$ 3};"\
7468 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7470 " \$ 0!~/External *\|/{next};"\
7471 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7472 " {if(hide[section]) next};"\
7473 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7474 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7475 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7476 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7477 " ' prfx=^$ac_symprfx"
7478 else
7479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7480 fi
7481 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7482
7483 # Check to see that the pipe works correctly.
7484 pipe_works=no
7485
7486 rm -f conftest*
7487 cat > conftest.$ac_ext <<_LT_EOF
7488 #ifdef __cplusplus
7489 extern "C" {
7490 #endif
7491 char nm_test_var;
7492 void nm_test_func(void);
7493 void nm_test_func(void){}
7494 #ifdef __cplusplus
7495 }
7496 #endif
7497 int main(){nm_test_var='a';nm_test_func();return(0);}
7498 _LT_EOF
7499
7500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7501 (eval $ac_compile) 2>&5
7502 ac_status=$?
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; then
7505 # Now try to grab the symbols.
7506 nlist=conftest.nm
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7508 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; } && test -s "$nlist"; then
7512 # Try sorting and uniquifying the output.
7513 if sort "$nlist" | uniq > "$nlist"T; then
7514 mv -f "$nlist"T "$nlist"
7515 else
7516 rm -f "$nlist"T
7517 fi
7518
7519 # Make sure that we snagged all the symbols we need.
7520 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7521 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7522 cat <<_LT_EOF > conftest.$ac_ext
7523 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7524 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7525 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7526 relocations are performed -- see ld's documentation on pseudo-relocs. */
7527 # define LT_DLSYM_CONST
7528 #elif defined(__osf__)
7529 /* This system does not cope well with relocations in const data. */
7530 # define LT_DLSYM_CONST
7531 #else
7532 # define LT_DLSYM_CONST const
7533 #endif
7534
7535 #ifdef __cplusplus
7536 extern "C" {
7537 #endif
7538
7539 _LT_EOF
7540 # Now generate the symbol file.
7541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7542
7543 cat <<_LT_EOF >> conftest.$ac_ext
7544
7545 /* The mapping between symbol names and symbols. */
7546 LT_DLSYM_CONST struct {
7547 const char *name;
7548 void *address;
7549 }
7550 lt__PROGRAM__LTX_preloaded_symbols[] =
7551 {
7552 { "@PROGRAM@", (void *) 0 },
7553 _LT_EOF
7554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7555 cat <<\_LT_EOF >> conftest.$ac_ext
7556 {0, (void *) 0}
7557 };
7558
7559 /* This works around a problem in FreeBSD linker */
7560 #ifdef FREEBSD_WORKAROUND
7561 static const void *lt_preloaded_setup() {
7562 return lt__PROGRAM__LTX_preloaded_symbols;
7563 }
7564 #endif
7565
7566 #ifdef __cplusplus
7567 }
7568 #endif
7569 _LT_EOF
7570 # Now try linking the two files.
7571 mv conftest.$ac_objext conftstm.$ac_objext
7572 lt_globsym_save_LIBS=$LIBS
7573 lt_globsym_save_CFLAGS=$CFLAGS
7574 LIBS="conftstm.$ac_objext"
7575 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7577 (eval $ac_link) 2>&5
7578 ac_status=$?
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7581 pipe_works=yes
7582 fi
7583 LIBS=$lt_globsym_save_LIBS
7584 CFLAGS=$lt_globsym_save_CFLAGS
7585 else
7586 echo "cannot find nm_test_func in $nlist" >&5
7587 fi
7588 else
7589 echo "cannot find nm_test_var in $nlist" >&5
7590 fi
7591 else
7592 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7593 fi
7594 else
7595 echo "$progname: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 fi
7598 rm -rf conftest* conftst*
7599
7600 # Do not use the global_symbol_pipe unless it works.
7601 if test "$pipe_works" = yes; then
7602 break
7603 else
7604 lt_cv_sys_global_symbol_pipe=
7605 fi
7606 done
7607
7608 fi
7609
7610 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7611 lt_cv_sys_global_symbol_to_cdecl=
7612 fi
7613 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7615 $as_echo "failed" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7618 $as_echo "ok" >&6; }
7619 fi
7620
7621 # Response file support.
7622 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7623 nm_file_list_spec='@'
7624 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7625 nm_file_list_spec='@'
7626 fi
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7655 $as_echo_n "checking for sysroot... " >&6; }
7656
7657 # Check whether --with-sysroot was given.
7658 if test "${with_sysroot+set}" = set; then :
7659 withval=$with_sysroot;
7660 else
7661 with_sysroot=no
7662 fi
7663
7664
7665 lt_sysroot=
7666 case ${with_sysroot} in #(
7667 yes)
7668 if test "$GCC" = yes; then
7669 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7670 fi
7671 ;; #(
7672 /*)
7673 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7674 ;; #(
7675 no|'')
7676 ;; #(
7677 *)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7679 $as_echo "${with_sysroot}" >&6; }
7680 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7681 ;;
7682 esac
7683
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7685 $as_echo "${lt_sysroot:-no}" >&6; }
7686
7687
7688
7689
7690
7691 # Check whether --enable-libtool-lock was given.
7692 if test "${enable_libtool_lock+set}" = set; then :
7693 enableval=$enable_libtool_lock;
7694 fi
7695
7696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7697
7698 # Some flags need to be propagated to the compiler or linker for good
7699 # libtool support.
7700 case $host in
7701 ia64-*-hpux*)
7702 # Find out which ABI we are using.
7703 echo 'int i;' > conftest.$ac_ext
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705 (eval $ac_compile) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.$ac_objext` in
7710 *ELF-32*)
7711 HPUX_IA64_MODE="32"
7712 ;;
7713 *ELF-64*)
7714 HPUX_IA64_MODE="64"
7715 ;;
7716 esac
7717 fi
7718 rm -rf conftest*
7719 ;;
7720 *-*-irix6*)
7721 # Find out which ABI we are using.
7722 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724 (eval $ac_compile) 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 if test "$lt_cv_prog_gnu_ld" = yes; then
7729 case `/usr/bin/file conftest.$ac_objext` in
7730 *32-bit*)
7731 LD="${LD-ld} -melf32bsmip"
7732 ;;
7733 *N32*)
7734 LD="${LD-ld} -melf32bmipn32"
7735 ;;
7736 *64-bit*)
7737 LD="${LD-ld} -melf64bmip"
7738 ;;
7739 esac
7740 else
7741 case `/usr/bin/file conftest.$ac_objext` in
7742 *32-bit*)
7743 LD="${LD-ld} -32"
7744 ;;
7745 *N32*)
7746 LD="${LD-ld} -n32"
7747 ;;
7748 *64-bit*)
7749 LD="${LD-ld} -64"
7750 ;;
7751 esac
7752 fi
7753 fi
7754 rm -rf conftest*
7755 ;;
7756
7757 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7758 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7759 # Find out which ABI we are using.
7760 echo 'int i;' > conftest.$ac_ext
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762 (eval $ac_compile) 2>&5
7763 ac_status=$?
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; }; then
7766 case `/usr/bin/file conftest.o` in
7767 *32-bit*)
7768 case $host in
7769 x86_64-*kfreebsd*-gnu)
7770 LD="${LD-ld} -m elf_i386_fbsd"
7771 ;;
7772 x86_64-*linux*)
7773 LD="${LD-ld} -m elf_i386"
7774 ;;
7775 ppc64-*linux*|powerpc64-*linux*)
7776 LD="${LD-ld} -m elf32ppclinux"
7777 ;;
7778 s390x-*linux*)
7779 LD="${LD-ld} -m elf_s390"
7780 ;;
7781 sparc64-*linux*)
7782 LD="${LD-ld} -m elf32_sparc"
7783 ;;
7784 esac
7785 ;;
7786 *64-bit*)
7787 case $host in
7788 x86_64-*kfreebsd*-gnu)
7789 LD="${LD-ld} -m elf_x86_64_fbsd"
7790 ;;
7791 x86_64-*linux*)
7792 LD="${LD-ld} -m elf_x86_64"
7793 ;;
7794 ppc*-*linux*|powerpc*-*linux*)
7795 LD="${LD-ld} -m elf64ppc"
7796 ;;
7797 s390*-*linux*|s390*-*tpf*)
7798 LD="${LD-ld} -m elf64_s390"
7799 ;;
7800 sparc*-*linux*)
7801 LD="${LD-ld} -m elf64_sparc"
7802 ;;
7803 esac
7804 ;;
7805 esac
7806 fi
7807 rm -rf conftest*
7808 ;;
7809
7810 *-*-sco3.2v5*)
7811 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7812 SAVE_CFLAGS="$CFLAGS"
7813 CFLAGS="$CFLAGS -belf"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7815 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7816 if ${lt_cv_cc_needs_belf+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827
7828 int
7829 main ()
7830 {
7831
7832 ;
7833 return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837 lt_cv_cc_needs_belf=yes
7838 else
7839 lt_cv_cc_needs_belf=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
7843 ac_ext=c
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849 fi
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7851 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7852 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7853 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7854 CFLAGS="$SAVE_CFLAGS"
7855 fi
7856 ;;
7857 *-*solaris*)
7858 # Find out which ABI we are using.
7859 echo 'int i;' > conftest.$ac_ext
7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861 (eval $ac_compile) 2>&5
7862 ac_status=$?
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; }; then
7865 case `/usr/bin/file conftest.o` in
7866 *64-bit*)
7867 case $lt_cv_prog_gnu_ld in
7868 yes*)
7869 case $host in
7870 i?86-*-solaris*)
7871 LD="${LD-ld} -m elf_x86_64"
7872 ;;
7873 sparc*-*-solaris*)
7874 LD="${LD-ld} -m elf64_sparc"
7875 ;;
7876 esac
7877 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7878 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7879 LD="${LD-ld}_sol2"
7880 fi
7881 ;;
7882 *)
7883 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7884 LD="${LD-ld} -64"
7885 fi
7886 ;;
7887 esac
7888 ;;
7889 esac
7890 fi
7891 rm -rf conftest*
7892 ;;
7893 esac
7894
7895 need_locks="$enable_libtool_lock"
7896
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}mt; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$MANIFEST_TOOL"; then
7906 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7926 if test -n "$MANIFEST_TOOL"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7928 $as_echo "$MANIFEST_TOOL" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934
7935 fi
7936 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7937 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7938 # Extract the first word of "mt", so it can be a program name with args.
7939 set dummy mt; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$ac_ct_MANIFEST_TOOL"; then
7946 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959 done
7960 done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7966 if test -n "$ac_ct_MANIFEST_TOOL"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7968 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7975 MANIFEST_TOOL=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7984 fi
7985 else
7986 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7987 fi
7988
7989 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7991 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7992 if ${lt_cv_path_mainfest_tool+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 lt_cv_path_mainfest_tool=no
7996 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7997 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7998 cat conftest.err >&5
7999 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8000 lt_cv_path_mainfest_tool=yes
8001 fi
8002 rm -f conftest*
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8005 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8006 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8007 MANIFEST_TOOL=:
8008 fi
8009
8010
8011
8012
8013
8014
8015 case $host_os in
8016 rhapsody* | darwin*)
8017 if test -n "$ac_tool_prefix"; then
8018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if test -n "$DSYMUTIL"; then
8026 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8046 if test -n "$DSYMUTIL"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8048 $as_echo "$DSYMUTIL" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055 fi
8056 if test -z "$ac_cv_prog_DSYMUTIL"; then
8057 ac_ct_DSYMUTIL=$DSYMUTIL
8058 # Extract the first word of "dsymutil", so it can be a program name with args.
8059 set dummy dsymutil; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$ac_ct_DSYMUTIL"; then
8066 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083 fi
8084 fi
8085 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8086 if test -n "$ac_ct_DSYMUTIL"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8088 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 fi
8093
8094 if test "x$ac_ct_DSYMUTIL" = x; then
8095 DSYMUTIL=":"
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098 yes:)
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101 ac_tool_warned=yes ;;
8102 esac
8103 DSYMUTIL=$ac_ct_DSYMUTIL
8104 fi
8105 else
8106 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8107 fi
8108
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_prog_NMEDIT+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 if test -n "$NMEDIT"; then
8118 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131 done
8132 done
8133 IFS=$as_save_IFS
8134
8135 fi
8136 fi
8137 NMEDIT=$ac_cv_prog_NMEDIT
8138 if test -n "$NMEDIT"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8140 $as_echo "$NMEDIT" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 fi
8145
8146
8147 fi
8148 if test -z "$ac_cv_prog_NMEDIT"; then
8149 ac_ct_NMEDIT=$NMEDIT
8150 # Extract the first word of "nmedit", so it can be a program name with args.
8151 set dummy nmedit; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 if test -n "$ac_ct_NMEDIT"; then
8158 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8159 else
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 for as_dir in $PATH
8162 do
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
8165 for ac_exec_ext in '' $ac_executable_extensions; do
8166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8167 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 break 2
8170 fi
8171 done
8172 done
8173 IFS=$as_save_IFS
8174
8175 fi
8176 fi
8177 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8178 if test -n "$ac_ct_NMEDIT"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8180 $as_echo "$ac_ct_NMEDIT" >&6; }
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8184 fi
8185
8186 if test "x$ac_ct_NMEDIT" = x; then
8187 NMEDIT=":"
8188 else
8189 case $cross_compiling:$ac_tool_warned in
8190 yes:)
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8193 ac_tool_warned=yes ;;
8194 esac
8195 NMEDIT=$ac_ct_NMEDIT
8196 fi
8197 else
8198 NMEDIT="$ac_cv_prog_NMEDIT"
8199 fi
8200
8201 if test -n "$ac_tool_prefix"; then
8202 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8203 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if ${ac_cv_prog_LIPO+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$LIPO"; then
8210 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 LIPO=$ac_cv_prog_LIPO
8230 if test -n "$LIPO"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8232 $as_echo "$LIPO" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239 fi
8240 if test -z "$ac_cv_prog_LIPO"; then
8241 ac_ct_LIPO=$LIPO
8242 # Extract the first word of "lipo", so it can be a program name with args.
8243 set dummy lipo; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 if test -n "$ac_ct_LIPO"; then
8250 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8251 else
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8254 do
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_prog_ac_ct_LIPO="lipo"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8262 fi
8263 done
8264 done
8265 IFS=$as_save_IFS
8266
8267 fi
8268 fi
8269 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8270 if test -n "$ac_ct_LIPO"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8272 $as_echo "$ac_ct_LIPO" >&6; }
8273 else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8276 fi
8277
8278 if test "x$ac_ct_LIPO" = x; then
8279 LIPO=":"
8280 else
8281 case $cross_compiling:$ac_tool_warned in
8282 yes:)
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8285 ac_tool_warned=yes ;;
8286 esac
8287 LIPO=$ac_ct_LIPO
8288 fi
8289 else
8290 LIPO="$ac_cv_prog_LIPO"
8291 fi
8292
8293 if test -n "$ac_tool_prefix"; then
8294 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}otool; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_OTOOL+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$OTOOL"; then
8302 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 OTOOL=$ac_cv_prog_OTOOL
8322 if test -n "$OTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8324 $as_echo "$OTOOL" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_OTOOL"; then
8333 ac_ct_OTOOL=$OTOOL
8334 # Extract the first word of "otool", so it can be a program name with args.
8335 set dummy otool; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 if test -n "$ac_ct_OTOOL"; then
8342 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_ac_ct_OTOOL="otool"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8354 fi
8355 done
8356 done
8357 IFS=$as_save_IFS
8358
8359 fi
8360 fi
8361 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8362 if test -n "$ac_ct_OTOOL"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8364 $as_echo "$ac_ct_OTOOL" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8368 fi
8369
8370 if test "x$ac_ct_OTOOL" = x; then
8371 OTOOL=":"
8372 else
8373 case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379 OTOOL=$ac_ct_OTOOL
8380 fi
8381 else
8382 OTOOL="$ac_cv_prog_OTOOL"
8383 fi
8384
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_OTOOL64+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 if test -n "$OTOOL64"; then
8394 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 OTOOL64=$ac_cv_prog_OTOOL64
8414 if test -n "$OTOOL64"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8416 $as_echo "$OTOOL64" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_prog_OTOOL64"; then
8425 ac_ct_OTOOL64=$OTOOL64
8426 # Extract the first word of "otool64", so it can be a program name with args.
8427 set dummy otool64; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$ac_ct_OTOOL64"; then
8434 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_ac_ct_OTOOL64="otool64"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8446 fi
8447 done
8448 done
8449 IFS=$as_save_IFS
8450
8451 fi
8452 fi
8453 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8454 if test -n "$ac_ct_OTOOL64"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8456 $as_echo "$ac_ct_OTOOL64" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462 if test "x$ac_ct_OTOOL64" = x; then
8463 OTOOL64=":"
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471 OTOOL64=$ac_ct_OTOOL64
8472 fi
8473 else
8474 OTOOL64="$ac_cv_prog_OTOOL64"
8475 fi
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8504 $as_echo_n "checking for -single_module linker flag... " >&6; }
8505 if ${lt_cv_apple_cc_single_mod+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 lt_cv_apple_cc_single_mod=no
8509 if test -z "${LT_MULTI_MODULE}"; then
8510 # By default we will add the -single_module flag. You can override
8511 # by either setting the environment variable LT_MULTI_MODULE
8512 # non-empty at configure time, or by adding -multi_module to the
8513 # link flags.
8514 rm -rf libconftest.dylib*
8515 echo "int foo(void){return 1;}" > conftest.c
8516 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8517 -dynamiclib -Wl,-single_module conftest.c" >&5
8518 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8519 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8520 _lt_result=$?
8521 # If there is a non-empty error log, and "single_module"
8522 # appears in it, assume the flag caused a linker warning
8523 if test -s conftest.err && $GREP single_module conftest.err; then
8524 cat conftest.err >&5
8525 # Otherwise, if the output was created with a 0 exit code from
8526 # the compiler, it worked.
8527 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8528 lt_cv_apple_cc_single_mod=yes
8529 else
8530 cat conftest.err >&5
8531 fi
8532 rm -rf libconftest.dylib*
8533 rm -f conftest.*
8534 fi
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8537 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8540 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8541 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 lt_cv_ld_exported_symbols_list=no
8545 save_LDFLAGS=$LDFLAGS
8546 echo "_main" > conftest.sym
8547 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550
8551 int
8552 main ()
8553 {
8554
8555 ;
8556 return 0;
8557 }
8558 _ACEOF
8559 if ac_fn_c_try_link "$LINENO"; then :
8560 lt_cv_ld_exported_symbols_list=yes
8561 else
8562 lt_cv_ld_exported_symbols_list=no
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 LDFLAGS="$save_LDFLAGS"
8567
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8570 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8571
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8573 $as_echo_n "checking for -force_load linker flag... " >&6; }
8574 if ${lt_cv_ld_force_load+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 lt_cv_ld_force_load=no
8578 cat > conftest.c << _LT_EOF
8579 int forced_loaded() { return 2;}
8580 _LT_EOF
8581 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8582 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8583 echo "$AR cru libconftest.a conftest.o" >&5
8584 $AR cru libconftest.a conftest.o 2>&5
8585 echo "$RANLIB libconftest.a" >&5
8586 $RANLIB libconftest.a 2>&5
8587 cat > conftest.c << _LT_EOF
8588 int main() { return 0;}
8589 _LT_EOF
8590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8592 _lt_result=$?
8593 if test -s conftest.err && $GREP force_load conftest.err; then
8594 cat conftest.err >&5
8595 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8596 lt_cv_ld_force_load=yes
8597 else
8598 cat conftest.err >&5
8599 fi
8600 rm -f conftest.err libconftest.a conftest conftest.c
8601 rm -rf conftest.dSYM
8602
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8605 $as_echo "$lt_cv_ld_force_load" >&6; }
8606 case $host_os in
8607 rhapsody* | darwin1.[012])
8608 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8609 darwin1.*)
8610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8611 darwin*) # darwin 5.x on
8612 # if running on 10.5 or later, the deployment target defaults
8613 # to the OS version, if on x86, and 10.4, the deployment
8614 # target defaults to 10.4. Don't you love it?
8615 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8616 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8618 10.[012]*)
8619 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8620 10.*)
8621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8622 esac
8623 ;;
8624 esac
8625 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8626 _lt_dar_single_mod='$single_module'
8627 fi
8628 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8629 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8630 else
8631 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8632 fi
8633 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8634 _lt_dsymutil='~$DSYMUTIL $lib || :'
8635 else
8636 _lt_dsymutil=
8637 fi
8638 ;;
8639 esac
8640
8641 for ac_header in dlfcn.h
8642 do :
8643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8644 "
8645 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DLFCN_H 1
8648 _ACEOF
8649
8650 fi
8651
8652 done
8653
8654
8655
8656
8657
8658 # Set options
8659
8660
8661
8662 enable_dlopen=no
8663
8664
8665 enable_win32_dll=no
8666
8667
8668
8669
8670
8671 # Check whether --with-pic was given.
8672 if test "${with_pic+set}" = set; then :
8673 withval=$with_pic; lt_p=${PACKAGE-default}
8674 case $withval in
8675 yes|no) pic_mode=$withval ;;
8676 *)
8677 pic_mode=default
8678 # Look at the argument we got. We use all the common list separators.
8679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8680 for lt_pkg in $withval; do
8681 IFS="$lt_save_ifs"
8682 if test "X$lt_pkg" = "X$lt_p"; then
8683 pic_mode=yes
8684 fi
8685 done
8686 IFS="$lt_save_ifs"
8687 ;;
8688 esac
8689 else
8690 pic_mode=default
8691 fi
8692
8693
8694 test -z "$pic_mode" && pic_mode=default
8695
8696
8697
8698
8699
8700
8701
8702 # Check whether --enable-fast-install was given.
8703 if test "${enable_fast_install+set}" = set; then :
8704 enableval=$enable_fast_install; p=${PACKAGE-default}
8705 case $enableval in
8706 yes) enable_fast_install=yes ;;
8707 no) enable_fast_install=no ;;
8708 *)
8709 enable_fast_install=no
8710 # Look at the argument we got. We use all the common list separators.
8711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8712 for pkg in $enableval; do
8713 IFS="$lt_save_ifs"
8714 if test "X$pkg" = "X$p"; then
8715 enable_fast_install=yes
8716 fi
8717 done
8718 IFS="$lt_save_ifs"
8719 ;;
8720 esac
8721 else
8722 enable_fast_install=yes
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 # This can be used to rebuild libtool when needed
8736 LIBTOOL_DEPS="$ltmain"
8737
8738 # Always use our own libtool.
8739 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770 test -z "$LN_S" && LN_S="ln -s"
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785 if test -n "${ZSH_VERSION+set}" ; then
8786 setopt NO_GLOB_SUBST
8787 fi
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8790 $as_echo_n "checking for objdir... " >&6; }
8791 if ${lt_cv_objdir+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 rm -f .libs 2>/dev/null
8795 mkdir .libs 2>/dev/null
8796 if test -d .libs; then
8797 lt_cv_objdir=.libs
8798 else
8799 # MS-DOS does not allow filenames that begin with a dot.
8800 lt_cv_objdir=_libs
8801 fi
8802 rmdir .libs 2>/dev/null
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8805 $as_echo "$lt_cv_objdir" >&6; }
8806 objdir=$lt_cv_objdir
8807
8808
8809
8810
8811
8812 cat >>confdefs.h <<_ACEOF
8813 #define LT_OBJDIR "$lt_cv_objdir/"
8814 _ACEOF
8815
8816
8817
8818
8819 case $host_os in
8820 aix3*)
8821 # AIX sometimes has problems with the GCC collect2 program. For some
8822 # reason, if we set the COLLECT_NAMES environment variable, the problems
8823 # vanish in a puff of smoke.
8824 if test "X${COLLECT_NAMES+set}" != Xset; then
8825 COLLECT_NAMES=
8826 export COLLECT_NAMES
8827 fi
8828 ;;
8829 esac
8830
8831 # Global variables:
8832 ofile=libtool
8833 can_build_shared=yes
8834
8835 # All known linkers require a `.a' archive for static linking (except MSVC,
8836 # which needs '.lib').
8837 libext=a
8838
8839 with_gnu_ld="$lt_cv_prog_gnu_ld"
8840
8841 old_CC="$CC"
8842 old_CFLAGS="$CFLAGS"
8843
8844 # Set sane defaults for various variables
8845 test -z "$CC" && CC=cc
8846 test -z "$LTCC" && LTCC=$CC
8847 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8848 test -z "$LD" && LD=ld
8849 test -z "$ac_objext" && ac_objext=o
8850
8851 for cc_temp in $compiler""; do
8852 case $cc_temp in
8853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8855 \-*) ;;
8856 *) break;;
8857 esac
8858 done
8859 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8860
8861
8862 # Only perform the check for file, if the check method requires it
8863 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8864 case $deplibs_check_method in
8865 file_magic*)
8866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8868 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8869 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 case $MAGIC_CMD in
8873 [\\/*] | ?:[\\/]*)
8874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8875 ;;
8876 *)
8877 lt_save_MAGIC_CMD="$MAGIC_CMD"
8878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8880 for ac_dir in $ac_dummy; do
8881 IFS="$lt_save_ifs"
8882 test -z "$ac_dir" && ac_dir=.
8883 if test -f $ac_dir/${ac_tool_prefix}file; then
8884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8885 if test -n "$file_magic_test_file"; then
8886 case $deplibs_check_method in
8887 "file_magic "*)
8888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8891 $EGREP "$file_magic_regex" > /dev/null; then
8892 :
8893 else
8894 cat <<_LT_EOF 1>&2
8895
8896 *** Warning: the command libtool uses to detect shared libraries,
8897 *** $file_magic_cmd, produces output that libtool cannot recognize.
8898 *** The result is that libtool may fail to recognize shared libraries
8899 *** as such. This will affect the creation of libtool libraries that
8900 *** depend on shared libraries, but programs linked with such libtool
8901 *** libraries will work regardless of this problem. Nevertheless, you
8902 *** may want to report the problem to your system manager and/or to
8903 *** bug-libtool@gnu.org
8904
8905 _LT_EOF
8906 fi ;;
8907 esac
8908 fi
8909 break
8910 fi
8911 done
8912 IFS="$lt_save_ifs"
8913 MAGIC_CMD="$lt_save_MAGIC_CMD"
8914 ;;
8915 esac
8916 fi
8917
8918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8919 if test -n "$MAGIC_CMD"; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8921 $as_echo "$MAGIC_CMD" >&6; }
8922 else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8925 fi
8926
8927
8928
8929
8930
8931 if test -z "$lt_cv_path_MAGIC_CMD"; then
8932 if test -n "$ac_tool_prefix"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8934 $as_echo_n "checking for file... " >&6; }
8935 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 case $MAGIC_CMD in
8939 [\\/*] | ?:[\\/]*)
8940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8941 ;;
8942 *)
8943 lt_save_MAGIC_CMD="$MAGIC_CMD"
8944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8946 for ac_dir in $ac_dummy; do
8947 IFS="$lt_save_ifs"
8948 test -z "$ac_dir" && ac_dir=.
8949 if test -f $ac_dir/file; then
8950 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8951 if test -n "$file_magic_test_file"; then
8952 case $deplibs_check_method in
8953 "file_magic "*)
8954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8957 $EGREP "$file_magic_regex" > /dev/null; then
8958 :
8959 else
8960 cat <<_LT_EOF 1>&2
8961
8962 *** Warning: the command libtool uses to detect shared libraries,
8963 *** $file_magic_cmd, produces output that libtool cannot recognize.
8964 *** The result is that libtool may fail to recognize shared libraries
8965 *** as such. This will affect the creation of libtool libraries that
8966 *** depend on shared libraries, but programs linked with such libtool
8967 *** libraries will work regardless of this problem. Nevertheless, you
8968 *** may want to report the problem to your system manager and/or to
8969 *** bug-libtool@gnu.org
8970
8971 _LT_EOF
8972 fi ;;
8973 esac
8974 fi
8975 break
8976 fi
8977 done
8978 IFS="$lt_save_ifs"
8979 MAGIC_CMD="$lt_save_MAGIC_CMD"
8980 ;;
8981 esac
8982 fi
8983
8984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8985 if test -n "$MAGIC_CMD"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8987 $as_echo "$MAGIC_CMD" >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8991 fi
8992
8993
8994 else
8995 MAGIC_CMD=:
8996 fi
8997 fi
8998
8999 fi
9000 ;;
9001 esac
9002
9003 # Use C for the default configuration in the libtool script
9004
9005 lt_save_CC="$CC"
9006 ac_ext=c
9007 ac_cpp='$CPP $CPPFLAGS'
9008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011
9012
9013 # Source file extension for C test sources.
9014 ac_ext=c
9015
9016 # Object file extension for compiled C test sources.
9017 objext=o
9018 objext=$objext
9019
9020 # Code to be used in simple compile tests
9021 lt_simple_compile_test_code="int some_variable = 0;"
9022
9023 # Code to be used in simple link tests
9024 lt_simple_link_test_code='int main(){return(0);}'
9025
9026
9027
9028
9029
9030
9031
9032 # If no C compiler was specified, use CC.
9033 LTCC=${LTCC-"$CC"}
9034
9035 # If no C compiler flags were specified, use CFLAGS.
9036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9037
9038 # Allow CC to be a program name with arguments.
9039 compiler=$CC
9040
9041 # Save the default compiler, since it gets overwritten when the other
9042 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9043 compiler_DEFAULT=$CC
9044
9045 # save warnings/boilerplate of simple test code
9046 ac_outfile=conftest.$ac_objext
9047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9049 _lt_compiler_boilerplate=`cat conftest.err`
9050 $RM conftest*
9051
9052 ac_outfile=conftest.$ac_objext
9053 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9055 _lt_linker_boilerplate=`cat conftest.err`
9056 $RM -r conftest*
9057
9058
9059 if test -n "$compiler"; then
9060
9061 lt_prog_compiler_no_builtin_flag=
9062
9063 if test "$GCC" = yes; then
9064 case $cc_basename in
9065 nvcc*)
9066 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9067 *)
9068 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9069 esac
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9072 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9073 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 lt_cv_prog_compiler_rtti_exceptions=no
9077 ac_outfile=conftest.$ac_objext
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079 lt_compiler_flag="-fno-rtti -fno-exceptions"
9080 # Insert the option either (1) after the last *FLAGS variable, or
9081 # (2) before a word containing "conftest.", or (3) at the end.
9082 # Note that $ac_compile itself does not contain backslashes and begins
9083 # with a dollar sign (not a hyphen), so the echo should work correctly.
9084 # The option is referenced via a variable to avoid confusing sed.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
9089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9090 (eval "$lt_compile" 2>conftest.err)
9091 ac_status=$?
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 if (exit $ac_status) && test -s "$ac_outfile"; then
9095 # The compiler can only warn and ignore the option if not recognized
9096 # So say no if there are warnings other than the usual output.
9097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler_rtti_exceptions=yes
9101 fi
9102 fi
9103 $RM conftest*
9104
9105 fi
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9107 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9108
9109 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9111 else
9112 :
9113 fi
9114
9115 fi
9116
9117
9118
9119
9120
9121
9122 lt_prog_compiler_wl=
9123 lt_prog_compiler_pic=
9124 lt_prog_compiler_static=
9125
9126
9127 if test "$GCC" = yes; then
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_static='-static'
9130
9131 case $host_os in
9132 aix*)
9133 # All AIX code is PIC.
9134 if test "$host_cpu" = ia64; then
9135 # AIX 5 now supports IA64 processor
9136 lt_prog_compiler_static='-Bstatic'
9137 fi
9138 ;;
9139
9140 amigaos*)
9141 case $host_cpu in
9142 powerpc)
9143 # see comment about AmigaOS4 .so support
9144 lt_prog_compiler_pic='-fPIC'
9145 ;;
9146 m68k)
9147 # FIXME: we need at least 68020 code to build shared libraries, but
9148 # adding the `-m68020' flag to GCC prevents building anything better,
9149 # like `-m68040'.
9150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9151 ;;
9152 esac
9153 ;;
9154
9155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9156 # PIC is the default for these OSes.
9157 ;;
9158
9159 mingw* | cygwin* | pw32* | os2* | cegcc*)
9160 # This hack is so that the source file can tell whether it is being
9161 # built for inclusion in a dll (and should export symbols for example).
9162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9163 # (--disable-auto-import) libraries
9164 lt_prog_compiler_pic='-DDLL_EXPORT'
9165 ;;
9166
9167 darwin* | rhapsody*)
9168 # PIC is the default on this platform
9169 # Common symbols not allowed in MH_DYLIB files
9170 lt_prog_compiler_pic='-fno-common'
9171 ;;
9172
9173 haiku*)
9174 # PIC is the default for Haiku.
9175 # The "-static" flag exists, but is broken.
9176 lt_prog_compiler_static=
9177 ;;
9178
9179 hpux*)
9180 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9181 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9182 # sets the default TLS model and affects inlining.
9183 case $host_cpu in
9184 hppa*64*)
9185 # +Z the default
9186 ;;
9187 *)
9188 lt_prog_compiler_pic='-fPIC'
9189 ;;
9190 esac
9191 ;;
9192
9193 interix[3-9]*)
9194 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9195 # Instead, we relocate shared libraries at runtime.
9196 ;;
9197
9198 msdosdjgpp*)
9199 # Just because we use GCC doesn't mean we suddenly get shared libraries
9200 # on systems that don't support them.
9201 lt_prog_compiler_can_build_shared=no
9202 enable_shared=no
9203 ;;
9204
9205 *nto* | *qnx*)
9206 # QNX uses GNU C++, but need to define -shared option too, otherwise
9207 # it will coredump.
9208 lt_prog_compiler_pic='-fPIC -shared'
9209 ;;
9210
9211 sysv4*MP*)
9212 if test -d /usr/nec; then
9213 lt_prog_compiler_pic=-Kconform_pic
9214 fi
9215 ;;
9216
9217 *)
9218 lt_prog_compiler_pic='-fPIC'
9219 ;;
9220 esac
9221
9222 case $cc_basename in
9223 nvcc*) # Cuda Compiler Driver 2.2
9224 lt_prog_compiler_wl='-Xlinker '
9225 if test -n "$lt_prog_compiler_pic"; then
9226 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9227 fi
9228 ;;
9229 esac
9230 else
9231 # PORTME Check for flag to pass linker flags through the system compiler.
9232 case $host_os in
9233 aix*)
9234 lt_prog_compiler_wl='-Wl,'
9235 if test "$host_cpu" = ia64; then
9236 # AIX 5 now supports IA64 processor
9237 lt_prog_compiler_static='-Bstatic'
9238 else
9239 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9240 fi
9241 ;;
9242
9243 mingw* | cygwin* | pw32* | os2* | cegcc*)
9244 # This hack is so that the source file can tell whether it is being
9245 # built for inclusion in a dll (and should export symbols for example).
9246 lt_prog_compiler_pic='-DDLL_EXPORT'
9247 ;;
9248
9249 hpux9* | hpux10* | hpux11*)
9250 lt_prog_compiler_wl='-Wl,'
9251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9252 # not for PA HP-UX.
9253 case $host_cpu in
9254 hppa*64*|ia64*)
9255 # +Z the default
9256 ;;
9257 *)
9258 lt_prog_compiler_pic='+Z'
9259 ;;
9260 esac
9261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9262 lt_prog_compiler_static='${wl}-a ${wl}archive'
9263 ;;
9264
9265 irix5* | irix6* | nonstopux*)
9266 lt_prog_compiler_wl='-Wl,'
9267 # PIC (with -KPIC) is the default.
9268 lt_prog_compiler_static='-non_shared'
9269 ;;
9270
9271 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9272 case $cc_basename in
9273 # old Intel for x86_64 which still supported -KPIC.
9274 ecc*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-KPIC'
9277 lt_prog_compiler_static='-static'
9278 ;;
9279 # icc used to be incompatible with GCC.
9280 # ICC 10 doesn't accept -KPIC any more.
9281 icc* | ifort*)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-fPIC'
9284 lt_prog_compiler_static='-static'
9285 ;;
9286 # Lahey Fortran 8.1.
9287 lf95*)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='--shared'
9290 lt_prog_compiler_static='--static'
9291 ;;
9292 nagfor*)
9293 # NAG Fortran compiler
9294 lt_prog_compiler_wl='-Wl,-Wl,,'
9295 lt_prog_compiler_pic='-PIC'
9296 lt_prog_compiler_static='-Bstatic'
9297 ;;
9298 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9299 # Portland Group compilers (*not* the Pentium gcc compiler,
9300 # which looks to be a dead project)
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_pic='-fpic'
9303 lt_prog_compiler_static='-Bstatic'
9304 ;;
9305 ccc*)
9306 lt_prog_compiler_wl='-Wl,'
9307 # All Alpha code is PIC.
9308 lt_prog_compiler_static='-non_shared'
9309 ;;
9310 xl* | bgxl* | bgf* | mpixl*)
9311 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='-qpic'
9314 lt_prog_compiler_static='-qstaticlink'
9315 ;;
9316 *)
9317 case `$CC -V 2>&1 | sed 5q` in
9318 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9319 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
9322 lt_prog_compiler_wl=''
9323 ;;
9324 *Sun\ F* | *Sun*Fortran*)
9325 lt_prog_compiler_pic='-KPIC'
9326 lt_prog_compiler_static='-Bstatic'
9327 lt_prog_compiler_wl='-Qoption ld '
9328 ;;
9329 *Sun\ C*)
9330 # Sun C 5.9
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 lt_prog_compiler_wl='-Wl,'
9334 ;;
9335 *Intel*\ [CF]*Compiler*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_pic='-fPIC'
9338 lt_prog_compiler_static='-static'
9339 ;;
9340 *Portland\ Group*)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='-fpic'
9343 lt_prog_compiler_static='-Bstatic'
9344 ;;
9345 esac
9346 ;;
9347 esac
9348 ;;
9349
9350 newsos6)
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 *nto* | *qnx*)
9356 # QNX uses GNU C++, but need to define -shared option too, otherwise
9357 # it will coredump.
9358 lt_prog_compiler_pic='-fPIC -shared'
9359 ;;
9360
9361 osf3* | osf4* | osf5*)
9362 lt_prog_compiler_wl='-Wl,'
9363 # All OSF/1 code is PIC.
9364 lt_prog_compiler_static='-non_shared'
9365 ;;
9366
9367 rdos*)
9368 lt_prog_compiler_static='-non_shared'
9369 ;;
9370
9371 solaris*)
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 case $cc_basename in
9375 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9376 lt_prog_compiler_wl='-Qoption ld ';;
9377 *)
9378 lt_prog_compiler_wl='-Wl,';;
9379 esac
9380 ;;
9381
9382 sunos4*)
9383 lt_prog_compiler_wl='-Qoption ld '
9384 lt_prog_compiler_pic='-PIC'
9385 lt_prog_compiler_static='-Bstatic'
9386 ;;
9387
9388 sysv4 | sysv4.2uw2* | sysv4.3*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-KPIC'
9391 lt_prog_compiler_static='-Bstatic'
9392 ;;
9393
9394 sysv4*MP*)
9395 if test -d /usr/nec ;then
9396 lt_prog_compiler_pic='-Kconform_pic'
9397 lt_prog_compiler_static='-Bstatic'
9398 fi
9399 ;;
9400
9401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 ;;
9406
9407 unicos*)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_can_build_shared=no
9410 ;;
9411
9412 uts4*)
9413 lt_prog_compiler_pic='-pic'
9414 lt_prog_compiler_static='-Bstatic'
9415 ;;
9416
9417 *)
9418 lt_prog_compiler_can_build_shared=no
9419 ;;
9420 esac
9421 fi
9422
9423 case $host_os in
9424 # For platforms which do not support PIC, -DPIC is meaningless:
9425 *djgpp*)
9426 lt_prog_compiler_pic=
9427 ;;
9428 *)
9429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9430 ;;
9431 esac
9432
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9434 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9435 if ${lt_cv_prog_compiler_pic+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9441 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9442 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9443
9444 #
9445 # Check to make sure the PIC flag actually works.
9446 #
9447 if test -n "$lt_prog_compiler_pic"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9449 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9450 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 lt_cv_prog_compiler_pic_works=no
9454 ac_outfile=conftest.$ac_objext
9455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9457 # Insert the option either (1) after the last *FLAGS variable, or
9458 # (2) before a word containing "conftest.", or (3) at the end.
9459 # Note that $ac_compile itself does not contain backslashes and begins
9460 # with a dollar sign (not a hyphen), so the echo should work correctly.
9461 # The option is referenced via a variable to avoid confusing sed.
9462 lt_compile=`echo "$ac_compile" | $SED \
9463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9465 -e 's:$: $lt_compiler_flag:'`
9466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9467 (eval "$lt_compile" 2>conftest.err)
9468 ac_status=$?
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 if (exit $ac_status) && test -s "$ac_outfile"; then
9472 # The compiler can only warn and ignore the option if not recognized
9473 # So say no if there are warnings other than the usual output.
9474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler_pic_works=yes
9478 fi
9479 fi
9480 $RM conftest*
9481
9482 fi
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9484 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9485
9486 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9487 case $lt_prog_compiler_pic in
9488 "" | " "*) ;;
9489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9490 esac
9491 else
9492 lt_prog_compiler_pic=
9493 lt_prog_compiler_can_build_shared=no
9494 fi
9495
9496 fi
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508 #
9509 # Check to make sure the static flag actually works.
9510 #
9511 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9513 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9514 if ${lt_cv_prog_compiler_static_works+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 lt_cv_prog_compiler_static_works=no
9518 save_LDFLAGS="$LDFLAGS"
9519 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9520 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9522 # The linker can only warn and ignore the option if not recognized
9523 # So say no if there are warnings
9524 if test -s conftest.err; then
9525 # Append any errors to the config.log.
9526 cat conftest.err 1>&5
9527 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9529 if diff conftest.exp conftest.er2 >/dev/null; then
9530 lt_cv_prog_compiler_static_works=yes
9531 fi
9532 else
9533 lt_cv_prog_compiler_static_works=yes
9534 fi
9535 fi
9536 $RM -r conftest*
9537 LDFLAGS="$save_LDFLAGS"
9538
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9541 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9542
9543 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9544 :
9545 else
9546 lt_prog_compiler_static=
9547 fi
9548
9549
9550
9551
9552
9553
9554
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9556 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9557 if ${lt_cv_prog_compiler_c_o+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 lt_cv_prog_compiler_c_o=no
9561 $RM -r conftest 2>/dev/null
9562 mkdir conftest
9563 cd conftest
9564 mkdir out
9565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9566
9567 lt_compiler_flag="-o out/conftest2.$ac_objext"
9568 # Insert the option either (1) after the last *FLAGS variable, or
9569 # (2) before a word containing "conftest.", or (3) at the end.
9570 # Note that $ac_compile itself does not contain backslashes and begins
9571 # with a dollar sign (not a hyphen), so the echo should work correctly.
9572 lt_compile=`echo "$ac_compile" | $SED \
9573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9575 -e 's:$: $lt_compiler_flag:'`
9576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9577 (eval "$lt_compile" 2>out/conftest.err)
9578 ac_status=$?
9579 cat out/conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9582 then
9583 # The compiler can only warn and ignore the option if not recognized
9584 # So say no if there are warnings
9585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9588 lt_cv_prog_compiler_c_o=yes
9589 fi
9590 fi
9591 chmod u+w . 2>&5
9592 $RM conftest*
9593 # SGI C++ compiler will create directory out/ii_files/ for
9594 # template instantiation
9595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9596 $RM out/* && rmdir out
9597 cd ..
9598 $RM -r conftest
9599 $RM conftest*
9600
9601 fi
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9604
9605
9606
9607
9608
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9612 if ${lt_cv_prog_compiler_c_o+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 lt_cv_prog_compiler_c_o=no
9616 $RM -r conftest 2>/dev/null
9617 mkdir conftest
9618 cd conftest
9619 mkdir out
9620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9621
9622 lt_compiler_flag="-o out/conftest2.$ac_objext"
9623 # Insert the option either (1) after the last *FLAGS variable, or
9624 # (2) before a word containing "conftest.", or (3) at the end.
9625 # Note that $ac_compile itself does not contain backslashes and begins
9626 # with a dollar sign (not a hyphen), so the echo should work correctly.
9627 lt_compile=`echo "$ac_compile" | $SED \
9628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9630 -e 's:$: $lt_compiler_flag:'`
9631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9632 (eval "$lt_compile" 2>out/conftest.err)
9633 ac_status=$?
9634 cat out/conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9637 then
9638 # The compiler can only warn and ignore the option if not recognized
9639 # So say no if there are warnings
9640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9643 lt_cv_prog_compiler_c_o=yes
9644 fi
9645 fi
9646 chmod u+w . 2>&5
9647 $RM conftest*
9648 # SGI C++ compiler will create directory out/ii_files/ for
9649 # template instantiation
9650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9651 $RM out/* && rmdir out
9652 cd ..
9653 $RM -r conftest
9654 $RM conftest*
9655
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9658 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9659
9660
9661
9662
9663 hard_links="nottested"
9664 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9665 # do not overwrite the value of need_locks provided by the user
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9667 $as_echo_n "checking if we can lock with hard links... " >&6; }
9668 hard_links=yes
9669 $RM conftest*
9670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9671 touch conftest.a
9672 ln conftest.a conftest.b 2>&5 || hard_links=no
9673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9675 $as_echo "$hard_links" >&6; }
9676 if test "$hard_links" = no; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9678 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9679 need_locks=warn
9680 fi
9681 else
9682 need_locks=no
9683 fi
9684
9685
9686
9687
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9691 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9692
9693 runpath_var=
9694 allow_undefined_flag=
9695 always_export_symbols=no
9696 archive_cmds=
9697 archive_expsym_cmds=
9698 compiler_needs_object=no
9699 enable_shared_with_static_runtimes=no
9700 export_dynamic_flag_spec=
9701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9702 hardcode_automatic=no
9703 hardcode_direct=no
9704 hardcode_direct_absolute=no
9705 hardcode_libdir_flag_spec=
9706 hardcode_libdir_separator=
9707 hardcode_minus_L=no
9708 hardcode_shlibpath_var=unsupported
9709 inherit_rpath=no
9710 link_all_deplibs=unknown
9711 module_cmds=
9712 module_expsym_cmds=
9713 old_archive_from_new_cmds=
9714 old_archive_from_expsyms_cmds=
9715 thread_safe_flag_spec=
9716 whole_archive_flag_spec=
9717 # include_expsyms should be a list of space-separated symbols to be *always*
9718 # included in the symbol list
9719 include_expsyms=
9720 # exclude_expsyms can be an extended regexp of symbols to exclude
9721 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9722 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9723 # as well as any symbol that contains `d'.
9724 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9725 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9726 # platforms (ab)use it in PIC code, but their linkers get confused if
9727 # the symbol is explicitly referenced. Since portable code cannot
9728 # rely on this symbol name, it's probably fine to never include it in
9729 # preloaded symbol tables.
9730 # Exclude shared library initialization/finalization symbols.
9731 extract_expsyms_cmds=
9732
9733 case $host_os in
9734 cygwin* | mingw* | pw32* | cegcc*)
9735 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9736 # When not using gcc, we currently assume that we are using
9737 # Microsoft Visual C++.
9738 if test "$GCC" != yes; then
9739 with_gnu_ld=no
9740 fi
9741 ;;
9742 interix*)
9743 # we just hope/assume this is gcc and not c89 (= MSVC++)
9744 with_gnu_ld=yes
9745 ;;
9746 openbsd*)
9747 with_gnu_ld=no
9748 ;;
9749 esac
9750
9751 ld_shlibs=yes
9752
9753 # On some targets, GNU ld is compatible enough with the native linker
9754 # that we're better off using the native interface for both.
9755 lt_use_gnu_ld_interface=no
9756 if test "$with_gnu_ld" = yes; then
9757 case $host_os in
9758 aix*)
9759 # The AIX port of GNU ld has always aspired to compatibility
9760 # with the native linker. However, as the warning in the GNU ld
9761 # block says, versions before 2.19.5* couldn't really create working
9762 # shared libraries, regardless of the interface used.
9763 case `$LD -v 2>&1` in
9764 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9765 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9766 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9767 *)
9768 lt_use_gnu_ld_interface=yes
9769 ;;
9770 esac
9771 ;;
9772 *)
9773 lt_use_gnu_ld_interface=yes
9774 ;;
9775 esac
9776 fi
9777
9778 if test "$lt_use_gnu_ld_interface" = yes; then
9779 # If archive_cmds runs LD, not CC, wlarc should be empty
9780 wlarc='${wl}'
9781
9782 # Set some defaults for GNU ld with shared library support. These
9783 # are reset later if shared libraries are not supported. Putting them
9784 # here allows them to be overridden if necessary.
9785 runpath_var=LD_RUN_PATH
9786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9787 export_dynamic_flag_spec='${wl}--export-dynamic'
9788 # ancient GNU ld didn't support --whole-archive et. al.
9789 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9790 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9791 else
9792 whole_archive_flag_spec=
9793 fi
9794 supports_anon_versioning=no
9795 case `$LD -v 2>&1` in
9796 *GNU\ gold*) supports_anon_versioning=yes ;;
9797 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9800 *\ 2.11.*) ;; # other 2.11 versions
9801 *) supports_anon_versioning=yes ;;
9802 esac
9803
9804 # See if GNU ld supports shared libraries.
9805 case $host_os in
9806 aix[3-9]*)
9807 # On AIX/PPC, the GNU linker is very broken
9808 if test "$host_cpu" != ia64; then
9809 ld_shlibs=no
9810 cat <<_LT_EOF 1>&2
9811
9812 *** Warning: the GNU linker, at least up to release 2.19, is reported
9813 *** to be unable to reliably create shared libraries on AIX.
9814 *** Therefore, libtool is disabling shared libraries support. If you
9815 *** really care for shared libraries, you may want to install binutils
9816 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9817 *** You will then need to restart the configuration process.
9818
9819 _LT_EOF
9820 fi
9821 ;;
9822
9823 amigaos*)
9824 case $host_cpu in
9825 powerpc)
9826 # see comment about AmigaOS4 .so support
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 archive_expsym_cmds=''
9829 ;;
9830 m68k)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9834 ;;
9835 esac
9836 ;;
9837
9838 beos*)
9839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9840 allow_undefined_flag=unsupported
9841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9842 # support --undefined. This deserves some investigation. FIXME
9843 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844 else
9845 ld_shlibs=no
9846 fi
9847 ;;
9848
9849 cygwin* | mingw* | pw32* | cegcc*)
9850 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9851 # as there is no search path for DLLs.
9852 hardcode_libdir_flag_spec='-L$libdir'
9853 export_dynamic_flag_spec='${wl}--export-all-symbols'
9854 allow_undefined_flag=unsupported
9855 always_export_symbols=no
9856 enable_shared_with_static_runtimes=yes
9857 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'
9858 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9859
9860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9862 # If the export-symbols file already is a .def file (1st line
9863 # is EXPORTS), use it as is; otherwise, prepend...
9864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9865 cp $export_symbols $output_objdir/$soname.def;
9866 else
9867 echo EXPORTS > $output_objdir/$soname.def;
9868 cat $export_symbols >> $output_objdir/$soname.def;
9869 fi~
9870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9871 else
9872 ld_shlibs=no
9873 fi
9874 ;;
9875
9876 haiku*)
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 link_all_deplibs=yes
9879 ;;
9880
9881 interix[3-9]*)
9882 hardcode_direct=no
9883 hardcode_shlibpath_var=no
9884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9885 export_dynamic_flag_spec='${wl}-E'
9886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9887 # Instead, shared libraries are loaded at an image base (0x10000000 by
9888 # default) and relocated if they conflict, which is a slow very memory
9889 # consuming and fragmenting process. To avoid this, we pick a random,
9890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9893 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'
9894 ;;
9895
9896 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9897 tmp_diet=no
9898 if test "$host_os" = linux-dietlibc; then
9899 case $cc_basename in
9900 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9901 esac
9902 fi
9903 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9904 && test "$tmp_diet" = no
9905 then
9906 tmp_addflag=' $pic_flag'
9907 tmp_sharedflag='-shared'
9908 case $cc_basename,$host_cpu in
9909 pgcc*) # Portland Group C compiler
9910 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'
9911 tmp_addflag=' $pic_flag'
9912 ;;
9913 pgf77* | pgf90* | pgf95* | pgfortran*)
9914 # Portland Group f77 and f90 compilers
9915 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'
9916 tmp_addflag=' $pic_flag -Mnomain' ;;
9917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9918 tmp_addflag=' -i_dynamic' ;;
9919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9920 tmp_addflag=' -i_dynamic -nofor_main' ;;
9921 ifc* | ifort*) # Intel Fortran compiler
9922 tmp_addflag=' -nofor_main' ;;
9923 lf95*) # Lahey Fortran 8.1
9924 whole_archive_flag_spec=
9925 tmp_sharedflag='--shared' ;;
9926 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9927 tmp_sharedflag='-qmkshrobj'
9928 tmp_addflag= ;;
9929 nvcc*) # Cuda Compiler Driver 2.2
9930 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'
9931 compiler_needs_object=yes
9932 ;;
9933 esac
9934 case `$CC -V 2>&1 | sed 5q` in
9935 *Sun\ C*) # Sun C 5.9
9936 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'
9937 compiler_needs_object=yes
9938 tmp_sharedflag='-G' ;;
9939 *Sun\ F*) # Sun Fortran 8.3
9940 tmp_sharedflag='-G' ;;
9941 esac
9942 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9943
9944 if test "x$supports_anon_versioning" = xyes; then
9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9947 echo "local: *; };" >> $output_objdir/$libname.ver~
9948 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9949 fi
9950
9951 case $cc_basename in
9952 xlf* | bgf* | bgxlf* | mpixlf*)
9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9957 if test "x$supports_anon_versioning" = xyes; then
9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9960 echo "local: *; };" >> $output_objdir/$libname.ver~
9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9962 fi
9963 ;;
9964 esac
9965 else
9966 ld_shlibs=no
9967 fi
9968 ;;
9969
9970 netbsd*)
9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9973 wlarc=
9974 else
9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9977 fi
9978 ;;
9979
9980 solaris*)
9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9982 ld_shlibs=no
9983 cat <<_LT_EOF 1>&2
9984
9985 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9986 *** create shared libraries on Solaris systems. Therefore, libtool
9987 *** is disabling shared libraries support. We urge you to upgrade GNU
9988 *** binutils to release 2.9.1 or newer. Another option is to modify
9989 *** your PATH or compiler configuration so that the native linker is
9990 *** used, and then restart.
9991
9992 _LT_EOF
9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9996 else
9997 ld_shlibs=no
9998 fi
9999 ;;
10000
10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10002 case `$LD -v 2>&1` in
10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10004 ld_shlibs=no
10005 cat <<_LT_EOF 1>&2
10006
10007 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10008 *** reliably create shared libraries on SCO systems. Therefore, libtool
10009 *** is disabling shared libraries support. We urge you to upgrade GNU
10010 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10011 *** your PATH or compiler configuration so that the native linker is
10012 *** used, and then restart.
10013
10014 _LT_EOF
10015 ;;
10016 *)
10017 # For security reasons, it is highly recommended that you always
10018 # use absolute paths for naming shared libraries, and exclude the
10019 # DT_RUNPATH tag from executables and libraries. But doing so
10020 # requires that you compile everything twice, which is a pain.
10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10025 else
10026 ld_shlibs=no
10027 fi
10028 ;;
10029 esac
10030 ;;
10031
10032 sunos4*)
10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 wlarc=
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 *)
10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10043 else
10044 ld_shlibs=no
10045 fi
10046 ;;
10047 esac
10048
10049 if test "$ld_shlibs" = no; then
10050 runpath_var=
10051 hardcode_libdir_flag_spec=
10052 export_dynamic_flag_spec=
10053 whole_archive_flag_spec=
10054 fi
10055 else
10056 # PORTME fill in a description of your system's linker (not GNU ld)
10057 case $host_os in
10058 aix3*)
10059 allow_undefined_flag=unsupported
10060 always_export_symbols=yes
10061 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'
10062 # Note: this linker hardcodes the directories in LIBPATH if there
10063 # are no directories specified by -L.
10064 hardcode_minus_L=yes
10065 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10066 # Neither direct hardcoding nor static linking is supported with a
10067 # broken collect2.
10068 hardcode_direct=unsupported
10069 fi
10070 ;;
10071
10072 aix[4-9]*)
10073 if test "$host_cpu" = ia64; then
10074 # On IA64, the linker does run time linking by default, so we don't
10075 # have to do anything special.
10076 aix_use_runtimelinking=no
10077 exp_sym_flag='-Bexport'
10078 no_entry_flag=""
10079 else
10080 # If we're using GNU nm, then we don't want the "-C" option.
10081 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10082 # Also, AIX nm treats weak defined symbols like other global
10083 # defined symbols, whereas GNU nm marks them as "W".
10084 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10085 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'
10086 else
10087 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'
10088 fi
10089 aix_use_runtimelinking=no
10090
10091 # Test if we are trying to use run time linking or normal
10092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10093 # need to do runtime linking.
10094 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10095 for ld_flag in $LDFLAGS; do
10096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10097 aix_use_runtimelinking=yes
10098 break
10099 fi
10100 done
10101 ;;
10102 esac
10103
10104 exp_sym_flag='-bexport'
10105 no_entry_flag='-bnoentry'
10106 fi
10107
10108 # When large executables or shared objects are built, AIX ld can
10109 # have problems creating the table of contents. If linking a library
10110 # or program results in "error TOC overflow" add -mminimal-toc to
10111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10113
10114 archive_cmds=''
10115 hardcode_direct=yes
10116 hardcode_direct_absolute=yes
10117 hardcode_libdir_separator=':'
10118 link_all_deplibs=yes
10119 file_list_spec='${wl}-f,'
10120
10121 if test "$GCC" = yes; then
10122 case $host_os in aix4.[012]|aix4.[012].*)
10123 # We only want to do this on AIX 4.2 and lower, the check
10124 # below for broken collect2 doesn't work under 4.3+
10125 collect2name=`${CC} -print-prog-name=collect2`
10126 if test -f "$collect2name" &&
10127 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10128 then
10129 # We have reworked collect2
10130 :
10131 else
10132 # We have old collect2
10133 hardcode_direct=unsupported
10134 # It fails to find uninstalled libraries when the uninstalled
10135 # path is not listed in the libpath. Setting hardcode_minus_L
10136 # to unsupported forces relinking
10137 hardcode_minus_L=yes
10138 hardcode_libdir_flag_spec='-L$libdir'
10139 hardcode_libdir_separator=
10140 fi
10141 ;;
10142 esac
10143 shared_flag='-shared'
10144 if test "$aix_use_runtimelinking" = yes; then
10145 shared_flag="$shared_flag "'${wl}-G'
10146 fi
10147 else
10148 # not using gcc
10149 if test "$host_cpu" = ia64; then
10150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10151 # chokes on -Wl,-G. The following line is correct:
10152 shared_flag='-G'
10153 else
10154 if test "$aix_use_runtimelinking" = yes; then
10155 shared_flag='${wl}-G'
10156 else
10157 shared_flag='${wl}-bM:SRE'
10158 fi
10159 fi
10160 fi
10161
10162 export_dynamic_flag_spec='${wl}-bexpall'
10163 # It seems that -bexpall does not export symbols beginning with
10164 # underscore (_), so it is better to generate a list of symbols to export.
10165 always_export_symbols=yes
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # Warning - without using the other runtime loading flags (-brtl),
10168 # -berok will link without error, but may produce a broken library.
10169 allow_undefined_flag='-berok'
10170 # Determine the default libpath from the value encoded in an
10171 # empty executable.
10172 if test "${lt_cv_aix_libpath+set}" = set; then
10173 aix_libpath=$lt_cv_aix_libpath
10174 else
10175 if ${lt_cv_aix_libpath_+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180
10181 int
10182 main ()
10183 {
10184
10185 ;
10186 return 0;
10187 }
10188 _ACEOF
10189 if ac_fn_c_try_link "$LINENO"; then :
10190
10191 lt_aix_libpath_sed='
10192 /Import File Strings/,/^$/ {
10193 /^0/ {
10194 s/^0 *\([^ ]*\) *$/\1/
10195 p
10196 }
10197 }'
10198 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10199 # Check for a 64-bit object if we didn't find anything.
10200 if test -z "$lt_cv_aix_libpath_"; then
10201 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 fi
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 if test -z "$lt_cv_aix_libpath_"; then
10207 lt_cv_aix_libpath_="/usr/lib:/lib"
10208 fi
10209
10210 fi
10211
10212 aix_libpath=$lt_cv_aix_libpath_
10213 fi
10214
10215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10216 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"
10217 else
10218 if test "$host_cpu" = ia64; then
10219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10220 allow_undefined_flag="-z nodefs"
10221 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"
10222 else
10223 # Determine the default libpath from the value encoded in an
10224 # empty executable.
10225 if test "${lt_cv_aix_libpath+set}" = set; then
10226 aix_libpath=$lt_cv_aix_libpath
10227 else
10228 if ${lt_cv_aix_libpath_+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233
10234 int
10235 main ()
10236 {
10237
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 if ac_fn_c_try_link "$LINENO"; then :
10243
10244 lt_aix_libpath_sed='
10245 /Import File Strings/,/^$/ {
10246 /^0/ {
10247 s/^0 *\([^ ]*\) *$/\1/
10248 p
10249 }
10250 }'
10251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10252 # Check for a 64-bit object if we didn't find anything.
10253 if test -z "$lt_cv_aix_libpath_"; then
10254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10255 fi
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 if test -z "$lt_cv_aix_libpath_"; then
10260 lt_cv_aix_libpath_="/usr/lib:/lib"
10261 fi
10262
10263 fi
10264
10265 aix_libpath=$lt_cv_aix_libpath_
10266 fi
10267
10268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10269 # Warning - without using the other run time loading flags,
10270 # -berok will link without error, but may produce a broken library.
10271 no_undefined_flag=' ${wl}-bernotok'
10272 allow_undefined_flag=' ${wl}-berok'
10273 if test "$with_gnu_ld" = yes; then
10274 # We only use this code for GNU lds that support --whole-archive.
10275 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10276 else
10277 # Exported symbols can be pulled into shared objects from archives
10278 whole_archive_flag_spec='$convenience'
10279 fi
10280 archive_cmds_need_lc=yes
10281 # This is similar to how AIX traditionally builds its shared libraries.
10282 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'
10283 fi
10284 fi
10285 ;;
10286
10287 amigaos*)
10288 case $host_cpu in
10289 powerpc)
10290 # see comment about AmigaOS4 .so support
10291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292 archive_expsym_cmds=''
10293 ;;
10294 m68k)
10295 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)'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_minus_L=yes
10298 ;;
10299 esac
10300 ;;
10301
10302 bsdi[45]*)
10303 export_dynamic_flag_spec=-rdynamic
10304 ;;
10305
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # When not using gcc, we currently assume that we are using
10308 # Microsoft Visual C++.
10309 # hardcode_libdir_flag_spec is actually meaningless, as there is
10310 # no search path for DLLs.
10311 case $cc_basename in
10312 cl*)
10313 # Native MSVC
10314 hardcode_libdir_flag_spec=' '
10315 allow_undefined_flag=unsupported
10316 always_export_symbols=yes
10317 file_list_spec='@'
10318 # Tell ltmain to make .lib files, not .a files.
10319 libext=lib
10320 # Tell ltmain to make .dll files, not .so files.
10321 shrext_cmds=".dll"
10322 # FIXME: Setting linknames here is a bad hack.
10323 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10325 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10326 else
10327 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10328 fi~
10329 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10330 linknames='
10331 # The linker will not automatically build a static lib if we build a DLL.
10332 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10333 enable_shared_with_static_runtimes=yes
10334 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10336 # Don't use ranlib
10337 old_postinstall_cmds='chmod 644 $oldlib'
10338 postlink_cmds='lt_outputfile="@OUTPUT@"~
10339 lt_tool_outputfile="@TOOL_OUTPUT@"~
10340 case $lt_outputfile in
10341 *.exe|*.EXE) ;;
10342 *)
10343 lt_outputfile="$lt_outputfile.exe"
10344 lt_tool_outputfile="$lt_tool_outputfile.exe"
10345 ;;
10346 esac~
10347 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10348 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10349 $RM "$lt_outputfile.manifest";
10350 fi'
10351 ;;
10352 *)
10353 # Assume MSVC wrapper
10354 hardcode_libdir_flag_spec=' '
10355 allow_undefined_flag=unsupported
10356 # Tell ltmain to make .lib files, not .a files.
10357 libext=lib
10358 # Tell ltmain to make .dll files, not .so files.
10359 shrext_cmds=".dll"
10360 # FIXME: Setting linknames here is a bad hack.
10361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10362 # The linker will automatically build a .lib file if we build a DLL.
10363 old_archive_from_new_cmds='true'
10364 # FIXME: Should let the user specify the lib program.
10365 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10366 enable_shared_with_static_runtimes=yes
10367 ;;
10368 esac
10369 ;;
10370
10371 darwin* | rhapsody*)
10372
10373
10374 archive_cmds_need_lc=no
10375 hardcode_direct=no
10376 hardcode_automatic=yes
10377 hardcode_shlibpath_var=unsupported
10378 if test "$lt_cv_ld_force_load" = "yes"; then
10379 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\"`'
10380
10381 else
10382 whole_archive_flag_spec=''
10383 fi
10384 link_all_deplibs=yes
10385 allow_undefined_flag="$_lt_dar_allow_undefined"
10386 case $cc_basename in
10387 ifort*) _lt_dar_can_shared=yes ;;
10388 *) _lt_dar_can_shared=$GCC ;;
10389 esac
10390 if test "$_lt_dar_can_shared" = "yes"; then
10391 output_verbose_link_cmd=func_echo_all
10392 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10393 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10394 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}"
10395 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}"
10396
10397 else
10398 ld_shlibs=no
10399 fi
10400
10401 ;;
10402
10403 dgux*)
10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405 hardcode_libdir_flag_spec='-L$libdir'
10406 hardcode_shlibpath_var=no
10407 ;;
10408
10409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10410 # support. Future versions do this automatically, but an explicit c++rt0.o
10411 # does not break anything, and helps significantly (at the cost of a little
10412 # extra space).
10413 freebsd2.2*)
10414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10415 hardcode_libdir_flag_spec='-R$libdir'
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
10418 ;;
10419
10420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10421 freebsd2.*)
10422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10423 hardcode_direct=yes
10424 hardcode_minus_L=yes
10425 hardcode_shlibpath_var=no
10426 ;;
10427
10428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10429 freebsd* | dragonfly*)
10430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10431 hardcode_libdir_flag_spec='-R$libdir'
10432 hardcode_direct=yes
10433 hardcode_shlibpath_var=no
10434 ;;
10435
10436 hpux9*)
10437 if test "$GCC" = yes; then
10438 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'
10439 else
10440 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'
10441 fi
10442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10443 hardcode_libdir_separator=:
10444 hardcode_direct=yes
10445
10446 # hardcode_minus_L: Not really in the search PATH,
10447 # but as the default location of the library.
10448 hardcode_minus_L=yes
10449 export_dynamic_flag_spec='${wl}-E'
10450 ;;
10451
10452 hpux10*)
10453 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10454 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10455 else
10456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10457 fi
10458 if test "$with_gnu_ld" = no; then
10459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10460 hardcode_libdir_separator=:
10461 hardcode_direct=yes
10462 hardcode_direct_absolute=yes
10463 export_dynamic_flag_spec='${wl}-E'
10464 # hardcode_minus_L: Not really in the search PATH,
10465 # but as the default location of the library.
10466 hardcode_minus_L=yes
10467 fi
10468 ;;
10469
10470 hpux11*)
10471 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10472 case $host_cpu in
10473 hppa*64*)
10474 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 ;;
10476 ia64*)
10477 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10478 ;;
10479 *)
10480 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10481 ;;
10482 esac
10483 else
10484 case $host_cpu in
10485 hppa*64*)
10486 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10487 ;;
10488 ia64*)
10489 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10490 ;;
10491 *)
10492
10493 # Older versions of the 11.00 compiler do not understand -b yet
10494 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10496 $as_echo_n "checking if $CC understands -b... " >&6; }
10497 if ${lt_cv_prog_compiler__b+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 lt_cv_prog_compiler__b=no
10501 save_LDFLAGS="$LDFLAGS"
10502 LDFLAGS="$LDFLAGS -b"
10503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10505 # The linker can only warn and ignore the option if not recognized
10506 # So say no if there are warnings
10507 if test -s conftest.err; then
10508 # Append any errors to the config.log.
10509 cat conftest.err 1>&5
10510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10512 if diff conftest.exp conftest.er2 >/dev/null; then
10513 lt_cv_prog_compiler__b=yes
10514 fi
10515 else
10516 lt_cv_prog_compiler__b=yes
10517 fi
10518 fi
10519 $RM -r conftest*
10520 LDFLAGS="$save_LDFLAGS"
10521
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10524 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10525
10526 if test x"$lt_cv_prog_compiler__b" = xyes; then
10527 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10528 else
10529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10530 fi
10531
10532 ;;
10533 esac
10534 fi
10535 if test "$with_gnu_ld" = no; then
10536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10537 hardcode_libdir_separator=:
10538
10539 case $host_cpu in
10540 hppa*64*|ia64*)
10541 hardcode_direct=no
10542 hardcode_shlibpath_var=no
10543 ;;
10544 *)
10545 hardcode_direct=yes
10546 hardcode_direct_absolute=yes
10547 export_dynamic_flag_spec='${wl}-E'
10548
10549 # hardcode_minus_L: Not really in the search PATH,
10550 # but as the default location of the library.
10551 hardcode_minus_L=yes
10552 ;;
10553 esac
10554 fi
10555 ;;
10556
10557 irix5* | irix6* | nonstopux*)
10558 if test "$GCC" = yes; then
10559 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'
10560 # Try to use the -exported_symbol ld option, if it does not
10561 # work, assume that -exports_file does not work either and
10562 # implicitly export all symbols.
10563 # This should be the same for all languages, so no per-tag cache variable.
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10565 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10566 if ${lt_cv_irix_exported_symbol+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 save_LDFLAGS="$LDFLAGS"
10570 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 int foo (void) { return 0; }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 lt_cv_irix_exported_symbol=yes
10577 else
10578 lt_cv_irix_exported_symbol=no
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LDFLAGS="$save_LDFLAGS"
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10585 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10586 if test "$lt_cv_irix_exported_symbol" = yes; then
10587 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'
10588 fi
10589 else
10590 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'
10591 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'
10592 fi
10593 archive_cmds_need_lc='no'
10594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10595 hardcode_libdir_separator=:
10596 inherit_rpath=yes
10597 link_all_deplibs=yes
10598 ;;
10599
10600 netbsd*)
10601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10603 else
10604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10605 fi
10606 hardcode_libdir_flag_spec='-R$libdir'
10607 hardcode_direct=yes
10608 hardcode_shlibpath_var=no
10609 ;;
10610
10611 newsos6)
10612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_direct=yes
10614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615 hardcode_libdir_separator=:
10616 hardcode_shlibpath_var=no
10617 ;;
10618
10619 *nto* | *qnx*)
10620 ;;
10621
10622 openbsd*)
10623 if test -f /usr/libexec/ld.so; then
10624 hardcode_direct=yes
10625 hardcode_shlibpath_var=no
10626 hardcode_direct_absolute=yes
10627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10629 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10631 export_dynamic_flag_spec='${wl}-E'
10632 else
10633 case $host_os in
10634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10636 hardcode_libdir_flag_spec='-R$libdir'
10637 ;;
10638 *)
10639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10641 ;;
10642 esac
10643 fi
10644 else
10645 ld_shlibs=no
10646 fi
10647 ;;
10648
10649 os2*)
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_minus_L=yes
10652 allow_undefined_flag=unsupported
10653 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'
10654 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10655 ;;
10656
10657 osf3*)
10658 if test "$GCC" = yes; then
10659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10660 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'
10661 else
10662 allow_undefined_flag=' -expect_unresolved \*'
10663 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'
10664 fi
10665 archive_cmds_need_lc='no'
10666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10667 hardcode_libdir_separator=:
10668 ;;
10669
10670 osf4* | osf5*) # as osf3* with the addition of -msym flag
10671 if test "$GCC" = yes; then
10672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10673 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'
10674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10675 else
10676 allow_undefined_flag=' -expect_unresolved \*'
10677 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'
10678 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~
10679 $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'
10680
10681 # Both c and cxx compiler support -rpath directly
10682 hardcode_libdir_flag_spec='-rpath $libdir'
10683 fi
10684 archive_cmds_need_lc='no'
10685 hardcode_libdir_separator=:
10686 ;;
10687
10688 solaris*)
10689 no_undefined_flag=' -z defs'
10690 if test "$GCC" = yes; then
10691 wlarc='${wl}'
10692 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10694 $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'
10695 else
10696 case `$CC -V 2>&1` in
10697 *"Compilers 5.0"*)
10698 wlarc=''
10699 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10702 ;;
10703 *)
10704 wlarc='${wl}'
10705 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10707 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10708 ;;
10709 esac
10710 fi
10711 hardcode_libdir_flag_spec='-R$libdir'
10712 hardcode_shlibpath_var=no
10713 case $host_os in
10714 solaris2.[0-5] | solaris2.[0-5].*) ;;
10715 *)
10716 # The compiler driver will combine and reorder linker options,
10717 # but understands `-z linker_flag'. GCC discards it without `$wl',
10718 # but is careful enough not to reorder.
10719 # Supported since Solaris 2.6 (maybe 2.5.1?)
10720 if test "$GCC" = yes; then
10721 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10722 else
10723 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10724 fi
10725 ;;
10726 esac
10727 link_all_deplibs=yes
10728 ;;
10729
10730 sunos4*)
10731 if test "x$host_vendor" = xsequent; then
10732 # Use $CC to link under sequent, because it throws in some extra .o
10733 # files that make .init and .fini sections work.
10734 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10735 else
10736 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10737 fi
10738 hardcode_libdir_flag_spec='-L$libdir'
10739 hardcode_direct=yes
10740 hardcode_minus_L=yes
10741 hardcode_shlibpath_var=no
10742 ;;
10743
10744 sysv4)
10745 case $host_vendor in
10746 sni)
10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748 hardcode_direct=yes # is this really true???
10749 ;;
10750 siemens)
10751 ## LD is ld it makes a PLAMLIB
10752 ## CC just makes a GrossModule.
10753 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10754 reload_cmds='$CC -r -o $output$reload_objs'
10755 hardcode_direct=no
10756 ;;
10757 motorola)
10758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10759 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10760 ;;
10761 esac
10762 runpath_var='LD_RUN_PATH'
10763 hardcode_shlibpath_var=no
10764 ;;
10765
10766 sysv4.3*)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_shlibpath_var=no
10769 export_dynamic_flag_spec='-Bexport'
10770 ;;
10771
10772 sysv4*MP*)
10773 if test -d /usr/nec; then
10774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_shlibpath_var=no
10776 runpath_var=LD_RUN_PATH
10777 hardcode_runpath_var=yes
10778 ld_shlibs=yes
10779 fi
10780 ;;
10781
10782 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10783 no_undefined_flag='${wl}-z,text'
10784 archive_cmds_need_lc=no
10785 hardcode_shlibpath_var=no
10786 runpath_var='LD_RUN_PATH'
10787
10788 if test "$GCC" = yes; then
10789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 else
10792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794 fi
10795 ;;
10796
10797 sysv5* | sco3.2v5* | sco5v6*)
10798 # Note: We can NOT use -z defs as we might desire, because we do not
10799 # link with -lc, and that would cause any symbols used from libc to
10800 # always be unresolved, which means just about no library would
10801 # ever link correctly. If we're not using GNU ld we use -z text
10802 # though, which does catch some bad symbols but isn't as heavy-handed
10803 # as -z defs.
10804 no_undefined_flag='${wl}-z,text'
10805 allow_undefined_flag='${wl}-z,nodefs'
10806 archive_cmds_need_lc=no
10807 hardcode_shlibpath_var=no
10808 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10809 hardcode_libdir_separator=':'
10810 link_all_deplibs=yes
10811 export_dynamic_flag_spec='${wl}-Bexport'
10812 runpath_var='LD_RUN_PATH'
10813
10814 if test "$GCC" = yes; then
10815 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 else
10818 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820 fi
10821 ;;
10822
10823 uts4*)
10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_libdir_flag_spec='-L$libdir'
10826 hardcode_shlibpath_var=no
10827 ;;
10828
10829 *)
10830 ld_shlibs=no
10831 ;;
10832 esac
10833
10834 if test x$host_vendor = xsni; then
10835 case $host in
10836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10837 export_dynamic_flag_spec='${wl}-Blargedynsym'
10838 ;;
10839 esac
10840 fi
10841 fi
10842
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10844 $as_echo "$ld_shlibs" >&6; }
10845 test "$ld_shlibs" = no && can_build_shared=no
10846
10847 with_gnu_ld=$with_gnu_ld
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863 #
10864 # Do we need to explicitly link libc?
10865 #
10866 case "x$archive_cmds_need_lc" in
10867 x|xyes)
10868 # Assume -lc should be added
10869 archive_cmds_need_lc=yes
10870
10871 if test "$enable_shared" = yes && test "$GCC" = yes; then
10872 case $archive_cmds in
10873 *'~'*)
10874 # FIXME: we may have to deal with multi-command sequences.
10875 ;;
10876 '$CC '*)
10877 # Test whether the compiler implicitly links with -lc since on some
10878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10879 # to ld, don't add -lc before -lgcc.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10881 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10882 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 $RM conftest*
10886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10887
10888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10889 (eval $ac_compile) 2>&5
10890 ac_status=$?
10891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892 test $ac_status = 0; } 2>conftest.err; then
10893 soname=conftest
10894 lib=conftest
10895 libobjs=conftest.$ac_objext
10896 deplibs=
10897 wl=$lt_prog_compiler_wl
10898 pic_flag=$lt_prog_compiler_pic
10899 compiler_flags=-v
10900 linker_flags=-v
10901 verstring=
10902 output_objdir=.
10903 libname=conftest
10904 lt_save_allow_undefined_flag=$allow_undefined_flag
10905 allow_undefined_flag=
10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10907 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10908 ac_status=$?
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; }
10911 then
10912 lt_cv_archive_cmds_need_lc=no
10913 else
10914 lt_cv_archive_cmds_need_lc=yes
10915 fi
10916 allow_undefined_flag=$lt_save_allow_undefined_flag
10917 else
10918 cat conftest.err 1>&5
10919 fi
10920 $RM conftest*
10921
10922 fi
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10924 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10925 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10926 ;;
10927 esac
10928 fi
10929 ;;
10930 esac
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11084 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11085
11086 if test "$GCC" = yes; then
11087 case $host_os in
11088 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11089 *) lt_awk_arg="/^libraries:/" ;;
11090 esac
11091 case $host_os in
11092 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11093 *) lt_sed_strip_eq="s,=/,/,g" ;;
11094 esac
11095 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11096 case $lt_search_path_spec in
11097 *\;*)
11098 # if the path contains ";" then we assume it to be the separator
11099 # otherwise default to the standard path separator (i.e. ":") - it is
11100 # assumed that no part of a normal pathname contains ";" but that should
11101 # okay in the real world where ";" in dirpaths is itself problematic.
11102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11103 ;;
11104 *)
11105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11106 ;;
11107 esac
11108 # Ok, now we have the path, separated by spaces, we can step through it
11109 # and add multilib dir if necessary.
11110 lt_tmp_lt_search_path_spec=
11111 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11112 for lt_sys_path in $lt_search_path_spec; do
11113 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11115 else
11116 test -d "$lt_sys_path" && \
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11118 fi
11119 done
11120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11121 BEGIN {RS=" "; FS="/|\n";} {
11122 lt_foo="";
11123 lt_count=0;
11124 for (lt_i = NF; lt_i > 0; lt_i--) {
11125 if ($lt_i != "" && $lt_i != ".") {
11126 if ($lt_i == "..") {
11127 lt_count++;
11128 } else {
11129 if (lt_count == 0) {
11130 lt_foo="/" $lt_i lt_foo;
11131 } else {
11132 lt_count--;
11133 }
11134 }
11135 }
11136 }
11137 if (lt_foo != "") { lt_freq[lt_foo]++; }
11138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11139 }'`
11140 # AWK program above erroneously prepends '/' to C:/dos/paths
11141 # for these hosts.
11142 case $host_os in
11143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11144 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11145 esac
11146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11147 else
11148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11149 fi
11150 library_names_spec=
11151 libname_spec='lib$name'
11152 soname_spec=
11153 shrext_cmds=".so"
11154 postinstall_cmds=
11155 postuninstall_cmds=
11156 finish_cmds=
11157 finish_eval=
11158 shlibpath_var=
11159 shlibpath_overrides_runpath=unknown
11160 version_type=none
11161 dynamic_linker="$host_os ld.so"
11162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11163 need_lib_prefix=unknown
11164 hardcode_into_libs=no
11165
11166 # when you set need_version to no, make sure it does not cause -set_version
11167 # flags to be left without arguments
11168 need_version=unknown
11169
11170 case $host_os in
11171 aix3*)
11172 version_type=linux # correct to gnu/linux during the next big refactor
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11174 shlibpath_var=LIBPATH
11175
11176 # AIX 3 has no versioning support, so we append a major version to the name.
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 ;;
11179
11180 aix[4-9]*)
11181 version_type=linux # correct to gnu/linux during the next big refactor
11182 need_lib_prefix=no
11183 need_version=no
11184 hardcode_into_libs=yes
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 supports IA64
11187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 else
11190 # With GCC up to 2.95.x, collect2 would create an import file
11191 # for dependence libraries. The import file would start with
11192 # the line `#! .'. This would cause the generated library to
11193 # depend on `.', always an invalid library. This was fixed in
11194 # development snapshots of GCC prior to 3.0.
11195 case $host_os in
11196 aix4 | aix4.[01] | aix4.[01].*)
11197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11198 echo ' yes '
11199 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11200 :
11201 else
11202 can_build_shared=no
11203 fi
11204 ;;
11205 esac
11206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11207 # soname into executable. Probably we can add versioning support to
11208 # collect2, so additional links can be useful in future.
11209 if test "$aix_use_runtimelinking" = yes; then
11210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11211 # instead of lib<name>.a to let people know that these are not
11212 # typical AIX shared libraries.
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 else
11215 # We preserve .a as extension for shared libraries through AIX4.2
11216 # and later when we are not doing run time linking.
11217 library_names_spec='${libname}${release}.a $libname.a'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 fi
11220 shlibpath_var=LIBPATH
11221 fi
11222 ;;
11223
11224 amigaos*)
11225 case $host_cpu in
11226 powerpc)
11227 # Since July 2007 AmigaOS4 officially supports .so libraries.
11228 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 ;;
11231 m68k)
11232 library_names_spec='$libname.ixlibrary $libname.a'
11233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11234 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'
11235 ;;
11236 esac
11237 ;;
11238
11239 beos*)
11240 library_names_spec='${libname}${shared_ext}'
11241 dynamic_linker="$host_os ld.so"
11242 shlibpath_var=LIBRARY_PATH
11243 ;;
11244
11245 bsdi[45]*)
11246 version_type=linux # correct to gnu/linux during the next big refactor
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11254 # the default ld.so.conf also contains /usr/contrib/lib and
11255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11256 # libtool to hard-code these into programs
11257 ;;
11258
11259 cygwin* | mingw* | pw32* | cegcc*)
11260 version_type=windows
11261 shrext_cmds=".dll"
11262 need_version=no
11263 need_lib_prefix=no
11264
11265 case $GCC,$cc_basename in
11266 yes,*)
11267 # gcc
11268 library_names_spec='$libname.dll.a'
11269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11270 postinstall_cmds='base_file=`basename \${file}`~
11271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11272 dldir=$destdir/`dirname \$dlpath`~
11273 test -d \$dldir || mkdir -p \$dldir~
11274 $install_prog $dir/$dlname \$dldir/$dlname~
11275 chmod a+x \$dldir/$dlname~
11276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11278 fi'
11279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11280 dlpath=$dir/\$dldll~
11281 $RM \$dlpath'
11282 shlibpath_overrides_runpath=yes
11283
11284 case $host_os in
11285 cygwin*)
11286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11288
11289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11290 ;;
11291 mingw* | cegcc*)
11292 # MinGW DLLs use traditional 'lib' prefix
11293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11294 ;;
11295 pw32*)
11296 # pw32 DLLs use 'pw' prefix rather than 'lib'
11297 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11298 ;;
11299 esac
11300 dynamic_linker='Win32 ld.exe'
11301 ;;
11302
11303 *,cl*)
11304 # Native MSVC
11305 libname_spec='$name'
11306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11307 library_names_spec='${libname}.dll.lib'
11308
11309 case $build_os in
11310 mingw*)
11311 sys_lib_search_path_spec=
11312 lt_save_ifs=$IFS
11313 IFS=';'
11314 for lt_path in $LIB
11315 do
11316 IFS=$lt_save_ifs
11317 # Let DOS variable expansion print the short 8.3 style file name.
11318 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11319 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11320 done
11321 IFS=$lt_save_ifs
11322 # Convert to MSYS style.
11323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11324 ;;
11325 cygwin*)
11326 # Convert to unix form, then to dos form, then back to unix form
11327 # but this time dos style (no spaces!) so that the unix form looks
11328 # like /cygdrive/c/PROGRA~1:/cygdr...
11329 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11330 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11331 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332 ;;
11333 *)
11334 sys_lib_search_path_spec="$LIB"
11335 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11336 # It is most probably a Windows format PATH.
11337 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11338 else
11339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11340 fi
11341 # FIXME: find the short name or the path components, as spaces are
11342 # common. (e.g. "Program Files" -> "PROGRA~1")
11343 ;;
11344 esac
11345
11346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11347 postinstall_cmds='base_file=`basename \${file}`~
11348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11349 dldir=$destdir/`dirname \$dlpath`~
11350 test -d \$dldir || mkdir -p \$dldir~
11351 $install_prog $dir/$dlname \$dldir/$dlname'
11352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11353 dlpath=$dir/\$dldll~
11354 $RM \$dlpath'
11355 shlibpath_overrides_runpath=yes
11356 dynamic_linker='Win32 link.exe'
11357 ;;
11358
11359 *)
11360 # Assume MSVC wrapper
11361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11362 dynamic_linker='Win32 ld.exe'
11363 ;;
11364 esac
11365 # FIXME: first we should search . and the directory the executable is in
11366 shlibpath_var=PATH
11367 ;;
11368
11369 darwin* | rhapsody*)
11370 dynamic_linker="$host_os dyld"
11371 version_type=darwin
11372 need_lib_prefix=no
11373 need_version=no
11374 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11375 soname_spec='${libname}${release}${major}$shared_ext'
11376 shlibpath_overrides_runpath=yes
11377 shlibpath_var=DYLD_LIBRARY_PATH
11378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11379
11380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11382 ;;
11383
11384 dgux*)
11385 version_type=linux # correct to gnu/linux during the next big refactor
11386 need_lib_prefix=no
11387 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 ;;
11392
11393 freebsd* | dragonfly*)
11394 # DragonFly does not have aout. When/if they implement a new
11395 # versioning mechanism, adjust this.
11396 if test -x /usr/bin/objformat; then
11397 objformat=`/usr/bin/objformat`
11398 else
11399 case $host_os in
11400 freebsd[23].*) objformat=aout ;;
11401 *) objformat=elf ;;
11402 esac
11403 fi
11404 version_type=freebsd-$objformat
11405 case $version_type in
11406 freebsd-elf*)
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11408 need_version=no
11409 need_lib_prefix=no
11410 ;;
11411 freebsd-*)
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11413 need_version=yes
11414 ;;
11415 esac
11416 shlibpath_var=LD_LIBRARY_PATH
11417 case $host_os in
11418 freebsd2.*)
11419 shlibpath_overrides_runpath=yes
11420 ;;
11421 freebsd3.[01]* | freebsdelf3.[01]*)
11422 shlibpath_overrides_runpath=yes
11423 hardcode_into_libs=yes
11424 ;;
11425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11427 shlibpath_overrides_runpath=no
11428 hardcode_into_libs=yes
11429 ;;
11430 *) # from 4.6 on, and DragonFly
11431 shlibpath_overrides_runpath=yes
11432 hardcode_into_libs=yes
11433 ;;
11434 esac
11435 ;;
11436
11437 gnu*)
11438 version_type=linux # correct to gnu/linux during the next big refactor
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=no
11445 hardcode_into_libs=yes
11446 ;;
11447
11448 haiku*)
11449 version_type=linux # correct to gnu/linux during the next big refactor
11450 need_lib_prefix=no
11451 need_version=no
11452 dynamic_linker="$host_os runtime_loader"
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11458 hardcode_into_libs=yes
11459 ;;
11460
11461 hpux9* | hpux10* | hpux11*)
11462 # Give a soname corresponding to the major version so that dld.sl refuses to
11463 # link against other versions.
11464 version_type=sunos
11465 need_lib_prefix=no
11466 need_version=no
11467 case $host_cpu in
11468 ia64*)
11469 shrext_cmds='.so'
11470 hardcode_into_libs=yes
11471 dynamic_linker="$host_os dld.so"
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 if test "X$HPUX_IA64_MODE" = X32; then
11477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11478 else
11479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11480 fi
11481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482 ;;
11483 hppa*64*)
11484 shrext_cmds='.sl'
11485 hardcode_into_libs=yes
11486 dynamic_linker="$host_os dld.sl"
11487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11493 ;;
11494 *)
11495 shrext_cmds='.sl'
11496 dynamic_linker="$host_os dld.sl"
11497 shlibpath_var=SHLIB_PATH
11498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 ;;
11502 esac
11503 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11504 postinstall_cmds='chmod 555 $lib'
11505 # or fails outright, so override atomically:
11506 install_override_mode=555
11507 ;;
11508
11509 interix[3-9]*)
11510 version_type=linux # correct to gnu/linux during the next big refactor
11511 need_lib_prefix=no
11512 need_version=no
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=no
11518 hardcode_into_libs=yes
11519 ;;
11520
11521 irix5* | irix6* | nonstopux*)
11522 case $host_os in
11523 nonstopux*) version_type=nonstopux ;;
11524 *)
11525 if test "$lt_cv_prog_gnu_ld" = yes; then
11526 version_type=linux # correct to gnu/linux during the next big refactor
11527 else
11528 version_type=irix
11529 fi ;;
11530 esac
11531 need_lib_prefix=no
11532 need_version=no
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11535 case $host_os in
11536 irix5* | nonstopux*)
11537 libsuff= shlibsuff=
11538 ;;
11539 *)
11540 case $LD in # libtool.m4 will add one of these switches to LD
11541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11542 libsuff= shlibsuff= libmagic=32-bit;;
11543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11544 libsuff=32 shlibsuff=N32 libmagic=N32;;
11545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11547 *) libsuff= shlibsuff= libmagic=never-match;;
11548 esac
11549 ;;
11550 esac
11551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11552 shlibpath_overrides_runpath=no
11553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11555 hardcode_into_libs=yes
11556 ;;
11557
11558 # No shared lib support for Linux oldld, aout, or coff.
11559 linux*oldld* | linux*aout* | linux*coff*)
11560 dynamic_linker=no
11561 ;;
11562
11563 # This must be glibc/ELF.
11564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11565 version_type=linux # correct to gnu/linux during the next big refactor
11566 need_lib_prefix=no
11567 need_version=no
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573
11574 # Some binutils ld are patched to set DT_RUNPATH
11575 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 lt_cv_shlibpath_overrides_runpath=no
11579 save_LDFLAGS=$LDFLAGS
11580 save_libdir=$libdir
11581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585
11586 int
11587 main ()
11588 {
11589
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11596 lt_cv_shlibpath_overrides_runpath=yes
11597 fi
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LDFLAGS=$save_LDFLAGS
11602 libdir=$save_libdir
11603
11604 fi
11605
11606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11607
11608 # This implies no fast_install, which is unacceptable.
11609 # Some rework will be needed to allow for fast_install
11610 # before this can be enabled.
11611 hardcode_into_libs=yes
11612
11613 # Append ld.so.conf contents to the search path
11614 if test -f /etc/ld.so.conf; then
11615 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' ' '`
11616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11617 fi
11618
11619 # We used to test for /lib/ld.so.1 and disable shared libraries on
11620 # powerpc, because MkLinux only supported shared libraries with the
11621 # GNU dynamic linker. Since this was broken with cross compilers,
11622 # most powerpc-linux boxes support dynamic linking these days and
11623 # people can always --disable-shared, the test was removed, and we
11624 # assume the GNU/Linux dynamic linker is in use.
11625 dynamic_linker='GNU/Linux ld.so'
11626 ;;
11627
11628 netbsd*)
11629 version_type=sunos
11630 need_lib_prefix=no
11631 need_version=no
11632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635 dynamic_linker='NetBSD (a.out) ld.so'
11636 else
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 dynamic_linker='NetBSD ld.elf_so'
11640 fi
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11644 ;;
11645
11646 newsos6)
11647 version_type=linux # correct to gnu/linux during the next big refactor
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 ;;
11652
11653 *nto* | *qnx*)
11654 version_type=qnx
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11662 dynamic_linker='ldqnx.so'
11663 ;;
11664
11665 openbsd*)
11666 version_type=sunos
11667 sys_lib_dlsearch_path_spec="/usr/lib"
11668 need_lib_prefix=no
11669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11670 case $host_os in
11671 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11672 *) need_version=no ;;
11673 esac
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11678 case $host_os in
11679 openbsd2.[89] | openbsd2.[89].*)
11680 shlibpath_overrides_runpath=no
11681 ;;
11682 *)
11683 shlibpath_overrides_runpath=yes
11684 ;;
11685 esac
11686 else
11687 shlibpath_overrides_runpath=yes
11688 fi
11689 ;;
11690
11691 os2*)
11692 libname_spec='$name'
11693 shrext_cmds=".dll"
11694 need_lib_prefix=no
11695 library_names_spec='$libname${shared_ext} $libname.a'
11696 dynamic_linker='OS/2 ld.exe'
11697 shlibpath_var=LIBPATH
11698 ;;
11699
11700 osf3* | osf4* | osf5*)
11701 version_type=osf
11702 need_lib_prefix=no
11703 need_version=no
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11709 ;;
11710
11711 rdos*)
11712 dynamic_linker=no
11713 ;;
11714
11715 solaris*)
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11723 hardcode_into_libs=yes
11724 # ldd complains unless libraries are executable
11725 postinstall_cmds='chmod +x $lib'
11726 ;;
11727
11728 sunos4*)
11729 version_type=sunos
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 shlibpath_overrides_runpath=yes
11734 if test "$with_gnu_ld" = yes; then
11735 need_lib_prefix=no
11736 fi
11737 need_version=yes
11738 ;;
11739
11740 sysv4 | sysv4.3*)
11741 version_type=linux # correct to gnu/linux during the next big refactor
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 case $host_vendor in
11746 sni)
11747 shlibpath_overrides_runpath=no
11748 need_lib_prefix=no
11749 runpath_var=LD_RUN_PATH
11750 ;;
11751 siemens)
11752 need_lib_prefix=no
11753 ;;
11754 motorola)
11755 need_lib_prefix=no
11756 need_version=no
11757 shlibpath_overrides_runpath=no
11758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11759 ;;
11760 esac
11761 ;;
11762
11763 sysv4*MP*)
11764 if test -d /usr/nec ;then
11765 version_type=linux # correct to gnu/linux during the next big refactor
11766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11767 soname_spec='$libname${shared_ext}.$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 fi
11770 ;;
11771
11772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11773 version_type=freebsd-elf
11774 need_lib_prefix=no
11775 need_version=no
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=yes
11780 hardcode_into_libs=yes
11781 if test "$with_gnu_ld" = yes; then
11782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11783 else
11784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11785 case $host_os in
11786 sco3.2v5*)
11787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11788 ;;
11789 esac
11790 fi
11791 sys_lib_dlsearch_path_spec='/usr/lib'
11792 ;;
11793
11794 tpf*)
11795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11796 version_type=linux # correct to gnu/linux during the next big refactor
11797 need_lib_prefix=no
11798 need_version=no
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11803 ;;
11804
11805 uts4*)
11806 version_type=linux # correct to gnu/linux during the next big refactor
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 ;;
11811
11812 *)
11813 dynamic_linker=no
11814 ;;
11815 esac
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11817 $as_echo "$dynamic_linker" >&6; }
11818 test "$dynamic_linker" = no && can_build_shared=no
11819
11820 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11821 if test "$GCC" = yes; then
11822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11823 fi
11824
11825 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11827 fi
11828 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11829 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11830 fi
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11924 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11925 hardcode_action=
11926 if test -n "$hardcode_libdir_flag_spec" ||
11927 test -n "$runpath_var" ||
11928 test "X$hardcode_automatic" = "Xyes" ; then
11929
11930 # We can hardcode non-existent directories.
11931 if test "$hardcode_direct" != no &&
11932 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11933 # have to relink, otherwise we might link with an installed library
11934 # when we should be linking with a yet-to-be-installed one
11935 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11936 test "$hardcode_minus_L" != no; then
11937 # Linking always hardcodes the temporary library directory.
11938 hardcode_action=relink
11939 else
11940 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11941 hardcode_action=immediate
11942 fi
11943 else
11944 # We cannot hardcode anything, or else we can only hardcode existing
11945 # directories.
11946 hardcode_action=unsupported
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11949 $as_echo "$hardcode_action" >&6; }
11950
11951 if test "$hardcode_action" = relink ||
11952 test "$inherit_rpath" = yes; then
11953 # Fast installation is not supported
11954 enable_fast_install=no
11955 elif test "$shlibpath_overrides_runpath" = yes ||
11956 test "$enable_shared" = no; then
11957 # Fast installation is not necessary
11958 enable_fast_install=needless
11959 fi
11960
11961
11962
11963
11964
11965
11966 if test "x$enable_dlopen" != xyes; then
11967 enable_dlopen=unknown
11968 enable_dlopen_self=unknown
11969 enable_dlopen_self_static=unknown
11970 else
11971 lt_cv_dlopen=no
11972 lt_cv_dlopen_libs=
11973
11974 case $host_os in
11975 beos*)
11976 lt_cv_dlopen="load_add_on"
11977 lt_cv_dlopen_libs=
11978 lt_cv_dlopen_self=yes
11979 ;;
11980
11981 mingw* | pw32* | cegcc*)
11982 lt_cv_dlopen="LoadLibrary"
11983 lt_cv_dlopen_libs=
11984 ;;
11985
11986 cygwin*)
11987 lt_cv_dlopen="dlopen"
11988 lt_cv_dlopen_libs=
11989 ;;
11990
11991 darwin*)
11992 # if libdl is installed we need to link against it
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11994 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11995 if ${ac_cv_lib_dl_dlopen+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-ldl $LIBS"
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002
12003 /* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 char dlopen ();
12010 int
12011 main ()
12012 {
12013 return dlopen ();
12014 ;
12015 return 0;
12016 }
12017 _ACEOF
12018 if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_lib_dl_dlopen=yes
12020 else
12021 ac_cv_lib_dl_dlopen=no
12022 fi
12023 rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12026 fi
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12028 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12029 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12031 else
12032
12033 lt_cv_dlopen="dyld"
12034 lt_cv_dlopen_libs=
12035 lt_cv_dlopen_self=yes
12036
12037 fi
12038
12039 ;;
12040
12041 *)
12042 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12043 if test "x$ac_cv_func_shl_load" = xyes; then :
12044 lt_cv_dlopen="shl_load"
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12047 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12048 if ${ac_cv_lib_dld_shl_load+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-ldld $LIBS"
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12059 #ifdef __cplusplus
12060 extern "C"
12061 #endif
12062 char shl_load ();
12063 int
12064 main ()
12065 {
12066 return shl_load ();
12067 ;
12068 return 0;
12069 }
12070 _ACEOF
12071 if ac_fn_c_try_link "$LINENO"; then :
12072 ac_cv_lib_dld_shl_load=yes
12073 else
12074 ac_cv_lib_dld_shl_load=no
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078 LIBS=$ac_check_lib_save_LIBS
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12081 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12082 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12083 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12084 else
12085 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12086 if test "x$ac_cv_func_dlopen" = xyes; then :
12087 lt_cv_dlopen="dlopen"
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12090 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12091 if ${ac_cv_lib_dl_dlopen+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-ldl $LIBS"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char dlopen ();
12106 int
12107 main ()
12108 {
12109 return dlopen ();
12110 ;
12111 return 0;
12112 }
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_lib_dl_dlopen=yes
12116 else
12117 ac_cv_lib_dl_dlopen=no
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LIBS=$ac_check_lib_save_LIBS
12122 fi
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12124 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12125 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12129 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12130 if ${ac_cv_lib_svld_dlopen+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-lsvld $LIBS"
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12137
12138 /* Override any GCC internal prototype to avoid an error.
12139 Use char because int might match the return type of a GCC
12140 builtin and then its argument prototype would still apply. */
12141 #ifdef __cplusplus
12142 extern "C"
12143 #endif
12144 char dlopen ();
12145 int
12146 main ()
12147 {
12148 return dlopen ();
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_lib_svld_dlopen=yes
12155 else
12156 ac_cv_lib_svld_dlopen=no
12157 fi
12158 rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160 LIBS=$ac_check_lib_save_LIBS
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12163 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12164 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12168 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12169 if ${ac_cv_lib_dld_dld_link+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-ldld $LIBS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char dld_link ();
12184 int
12185 main ()
12186 {
12187 return dld_link ();
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_lib_dld_dld_link=yes
12194 else
12195 ac_cv_lib_dld_dld_link=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12202 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12203 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12205 fi
12206
12207
12208 fi
12209
12210
12211 fi
12212
12213
12214 fi
12215
12216
12217 fi
12218
12219
12220 fi
12221
12222 ;;
12223 esac
12224
12225 if test "x$lt_cv_dlopen" != xno; then
12226 enable_dlopen=yes
12227 else
12228 enable_dlopen=no
12229 fi
12230
12231 case $lt_cv_dlopen in
12232 dlopen)
12233 save_CPPFLAGS="$CPPFLAGS"
12234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12235
12236 save_LDFLAGS="$LDFLAGS"
12237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12238
12239 save_LIBS="$LIBS"
12240 LIBS="$lt_cv_dlopen_libs $LIBS"
12241
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12243 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12244 if ${lt_cv_dlopen_self+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 if test "$cross_compiling" = yes; then :
12248 lt_cv_dlopen_self=cross
12249 else
12250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12251 lt_status=$lt_dlunknown
12252 cat > conftest.$ac_ext <<_LT_EOF
12253 #line $LINENO "configure"
12254 #include "confdefs.h"
12255
12256 #if HAVE_DLFCN_H
12257 #include <dlfcn.h>
12258 #endif
12259
12260 #include <stdio.h>
12261
12262 #ifdef RTLD_GLOBAL
12263 # define LT_DLGLOBAL RTLD_GLOBAL
12264 #else
12265 # ifdef DL_GLOBAL
12266 # define LT_DLGLOBAL DL_GLOBAL
12267 # else
12268 # define LT_DLGLOBAL 0
12269 # endif
12270 #endif
12271
12272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12273 find out it does not work in some platform. */
12274 #ifndef LT_DLLAZY_OR_NOW
12275 # ifdef RTLD_LAZY
12276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12277 # else
12278 # ifdef DL_LAZY
12279 # define LT_DLLAZY_OR_NOW DL_LAZY
12280 # else
12281 # ifdef RTLD_NOW
12282 # define LT_DLLAZY_OR_NOW RTLD_NOW
12283 # else
12284 # ifdef DL_NOW
12285 # define LT_DLLAZY_OR_NOW DL_NOW
12286 # else
12287 # define LT_DLLAZY_OR_NOW 0
12288 # endif
12289 # endif
12290 # endif
12291 # endif
12292 #endif
12293
12294 /* When -fvisbility=hidden is used, assume the code has been annotated
12295 correspondingly for the symbols needed. */
12296 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12297 int fnord () __attribute__((visibility("default")));
12298 #endif
12299
12300 int fnord () { return 42; }
12301 int main ()
12302 {
12303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12304 int status = $lt_dlunknown;
12305
12306 if (self)
12307 {
12308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12309 else
12310 {
12311 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12312 else puts (dlerror ());
12313 }
12314 /* dlclose (self); */
12315 }
12316 else
12317 puts (dlerror ());
12318
12319 return status;
12320 }
12321 _LT_EOF
12322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12323 (eval $ac_link) 2>&5
12324 ac_status=$?
12325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12326 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12327 (./conftest; exit; ) >&5 2>/dev/null
12328 lt_status=$?
12329 case x$lt_status in
12330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12333 esac
12334 else :
12335 # compilation failed
12336 lt_cv_dlopen_self=no
12337 fi
12338 fi
12339 rm -fr conftest*
12340
12341
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12344 $as_echo "$lt_cv_dlopen_self" >&6; }
12345
12346 if test "x$lt_cv_dlopen_self" = xyes; then
12347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12349 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12350 if ${lt_cv_dlopen_self_static+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 if test "$cross_compiling" = yes; then :
12354 lt_cv_dlopen_self_static=cross
12355 else
12356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12357 lt_status=$lt_dlunknown
12358 cat > conftest.$ac_ext <<_LT_EOF
12359 #line $LINENO "configure"
12360 #include "confdefs.h"
12361
12362 #if HAVE_DLFCN_H
12363 #include <dlfcn.h>
12364 #endif
12365
12366 #include <stdio.h>
12367
12368 #ifdef RTLD_GLOBAL
12369 # define LT_DLGLOBAL RTLD_GLOBAL
12370 #else
12371 # ifdef DL_GLOBAL
12372 # define LT_DLGLOBAL DL_GLOBAL
12373 # else
12374 # define LT_DLGLOBAL 0
12375 # endif
12376 #endif
12377
12378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12379 find out it does not work in some platform. */
12380 #ifndef LT_DLLAZY_OR_NOW
12381 # ifdef RTLD_LAZY
12382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12383 # else
12384 # ifdef DL_LAZY
12385 # define LT_DLLAZY_OR_NOW DL_LAZY
12386 # else
12387 # ifdef RTLD_NOW
12388 # define LT_DLLAZY_OR_NOW RTLD_NOW
12389 # else
12390 # ifdef DL_NOW
12391 # define LT_DLLAZY_OR_NOW DL_NOW
12392 # else
12393 # define LT_DLLAZY_OR_NOW 0
12394 # endif
12395 # endif
12396 # endif
12397 # endif
12398 #endif
12399
12400 /* When -fvisbility=hidden is used, assume the code has been annotated
12401 correspondingly for the symbols needed. */
12402 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12403 int fnord () __attribute__((visibility("default")));
12404 #endif
12405
12406 int fnord () { return 42; }
12407 int main ()
12408 {
12409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12410 int status = $lt_dlunknown;
12411
12412 if (self)
12413 {
12414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12415 else
12416 {
12417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12418 else puts (dlerror ());
12419 }
12420 /* dlclose (self); */
12421 }
12422 else
12423 puts (dlerror ());
12424
12425 return status;
12426 }
12427 _LT_EOF
12428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12429 (eval $ac_link) 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12433 (./conftest; exit; ) >&5 2>/dev/null
12434 lt_status=$?
12435 case x$lt_status in
12436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12438 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12439 esac
12440 else :
12441 # compilation failed
12442 lt_cv_dlopen_self_static=no
12443 fi
12444 fi
12445 rm -fr conftest*
12446
12447
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12450 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12451 fi
12452
12453 CPPFLAGS="$save_CPPFLAGS"
12454 LDFLAGS="$save_LDFLAGS"
12455 LIBS="$save_LIBS"
12456 ;;
12457 esac
12458
12459 case $lt_cv_dlopen_self in
12460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12461 *) enable_dlopen_self=unknown ;;
12462 esac
12463
12464 case $lt_cv_dlopen_self_static in
12465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12466 *) enable_dlopen_self_static=unknown ;;
12467 esac
12468 fi
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486 striplib=
12487 old_striplib=
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12489 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12490 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494 $as_echo "yes" >&6; }
12495 else
12496 # FIXME - insert some real tests, host_os isn't really good enough
12497 case $host_os in
12498 darwin*)
12499 if test -n "$STRIP" ; then
12500 striplib="$STRIP -x"
12501 old_striplib="$STRIP -S"
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503 $as_echo "yes" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508 ;;
12509 *)
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 ;;
12513 esac
12514 fi
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527 # Report which library types will actually be built
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12529 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12531 $as_echo "$can_build_shared" >&6; }
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12534 $as_echo_n "checking whether to build shared libraries... " >&6; }
12535 test "$can_build_shared" = "no" && enable_shared=no
12536
12537 # On AIX, shared libraries and static libraries use the same namespace, and
12538 # are all built from PIC.
12539 case $host_os in
12540 aix3*)
12541 test "$enable_shared" = yes && enable_static=no
12542 if test -n "$RANLIB"; then
12543 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12544 postinstall_cmds='$RANLIB $lib'
12545 fi
12546 ;;
12547
12548 aix[4-9]*)
12549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12550 test "$enable_shared" = yes && enable_static=no
12551 fi
12552 ;;
12553 esac
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12555 $as_echo "$enable_shared" >&6; }
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12558 $as_echo_n "checking whether to build static libraries... " >&6; }
12559 # Make sure either enable_shared or enable_static is yes.
12560 test "$enable_shared" = yes || enable_static=yes
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12562 $as_echo "$enable_static" >&6; }
12563
12564
12565
12566
12567 fi
12568 ac_ext=c
12569 ac_cpp='$CPP $CPPFLAGS'
12570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12573
12574 CC="$lt_save_CC"
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590 ac_config_commands="$ac_config_commands libtool"
12591
12592
12593
12594
12595 # Only expand once:
12596
12597
12598
12599 LIBTOOL="$LIBTOOL --silent"
12600
12601 case "$host_os" in
12602 *cygwin*)
12603
12604 cat >>confdefs.h <<_ACEOF
12605 #define CYGWIN 1
12606 _ACEOF
12607
12608
12609 cat >>confdefs.h <<_ACEOF
12610 #define WINDOWS 1
12611 _ACEOF
12612
12613 ;;
12614 *mingw*)
12615
12616 cat >>confdefs.h <<_ACEOF
12617 #define MINGW 1
12618 _ACEOF
12619
12620
12621 cat >>confdefs.h <<_ACEOF
12622 #define WINDOWS 1
12623 _ACEOF
12624
12625 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12626 if test "x$ac_cv_header_windows_h" = xyes; then :
12627
12628 else
12629 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
12630 fi
12631
12632
12633 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12634 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12635
12636 else
12637 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
12638 fi
12639
12640
12641
12642 cat >>confdefs.h <<_ACEOF
12643 #define HAVE_WINSOCK2_H 1
12644 _ACEOF
12645
12646
12647 cat >>confdefs.h <<_ACEOF
12648 #define HAVE_WINSOCK_H 1
12649 _ACEOF
12650
12651 LIBS="$LIBS -lws2_32 -liphlpapi"
12652 is_mingw="yes"
12653 ;;
12654 *interix*)
12655 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12656 ;;
12657 *solaris*)
12658 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12659 ;;
12660 *)
12661 ;;
12662 esac
12663
12664 if test "$is_mingw" = "yes"; then
12665 MINGW_TRUE=
12666 MINGW_FALSE='#'
12667 else
12668 MINGW_TRUE='#'
12669 MINGW_FALSE=
12670 fi
12671
12672
12673
12674 # backwards support for IRC_CFLAGS
12675 CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
12676
12677 if test "$libexecdir" = '${exec_prefix}/libexec' &&
12678 test "$localstatedir" = '${prefix}/var'; then
12679 libexecdir='${bindir}'
12680 localstatedir='${prefix}'
12681 fi
12682
12683 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12684 if test "x$ac_cv_type_pid_t" = xyes; then :
12685
12686 else
12687
12688 cat >>confdefs.h <<_ACEOF
12689 #define pid_t int
12690 _ACEOF
12691
12692 fi
12693
12694 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12695 if test "x$ac_cv_type_size_t" = xyes; then :
12696
12697 else
12698
12699 cat >>confdefs.h <<_ACEOF
12700 #define size_t unsigned int
12701 _ACEOF
12702
12703 fi
12704
12705 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12706 if test "x$ac_cv_type_ssize_t" = xyes; then :
12707
12708 else
12709
12710 cat >>confdefs.h <<_ACEOF
12711 #define ssize_t int
12712 _ACEOF
12713
12714 fi
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12717 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12718 if ${ac_cv_type_uid_t+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #include <sys/types.h>
12724
12725 _ACEOF
12726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727 $EGREP "uid_t" >/dev/null 2>&1; then :
12728 ac_cv_type_uid_t=yes
12729 else
12730 ac_cv_type_uid_t=no
12731 fi
12732 rm -f conftest*
12733
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12736 $as_echo "$ac_cv_type_uid_t" >&6; }
12737 if test $ac_cv_type_uid_t = no; then
12738
12739 $as_echo "#define uid_t int" >>confdefs.h
12740
12741
12742 $as_echo "#define gid_t int" >>confdefs.h
12743
12744 fi
12745
12746
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12749 $as_echo_n "checking for ANSI C header files... " >&6; }
12750 if ${ac_cv_header_stdc+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <stdlib.h>
12756 #include <stdarg.h>
12757 #include <string.h>
12758 #include <float.h>
12759
12760 int
12761 main ()
12762 {
12763
12764 ;
12765 return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_compile "$LINENO"; then :
12769 ac_cv_header_stdc=yes
12770 else
12771 ac_cv_header_stdc=no
12772 fi
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774
12775 if test $ac_cv_header_stdc = yes; then
12776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #include <string.h>
12780
12781 _ACEOF
12782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12783 $EGREP "memchr" >/dev/null 2>&1; then :
12784
12785 else
12786 ac_cv_header_stdc=no
12787 fi
12788 rm -f conftest*
12789
12790 fi
12791
12792 if test $ac_cv_header_stdc = yes; then
12793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <stdlib.h>
12797
12798 _ACEOF
12799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12800 $EGREP "free" >/dev/null 2>&1; then :
12801
12802 else
12803 ac_cv_header_stdc=no
12804 fi
12805 rm -f conftest*
12806
12807 fi
12808
12809 if test $ac_cv_header_stdc = yes; then
12810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12811 if test "$cross_compiling" = yes; then :
12812 :
12813 else
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12816 #include <ctype.h>
12817 #include <stdlib.h>
12818 #if ((' ' & 0x0FF) == 0x020)
12819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12821 #else
12822 # define ISLOWER(c) \
12823 (('a' <= (c) && (c) <= 'i') \
12824 || ('j' <= (c) && (c) <= 'r') \
12825 || ('s' <= (c) && (c) <= 'z'))
12826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12827 #endif
12828
12829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12830 int
12831 main ()
12832 {
12833 int i;
12834 for (i = 0; i < 256; i++)
12835 if (XOR (islower (i), ISLOWER (i))
12836 || toupper (i) != TOUPPER (i))
12837 return 2;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_run "$LINENO"; then :
12842
12843 else
12844 ac_cv_header_stdc=no
12845 fi
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12847 conftest.$ac_objext conftest.beam conftest.$ac_ext
12848 fi
12849
12850 fi
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12853 $as_echo "$ac_cv_header_stdc" >&6; }
12854 if test $ac_cv_header_stdc = yes; then
12855
12856 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12857
12858 fi
12859
12860
12861 for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h linux/tcp.h
12862 do :
12863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12864 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12866 cat >>confdefs.h <<_ACEOF
12867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12868 _ACEOF
12869
12870 fi
12871
12872 done
12873
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12875 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12876 if ${ac_cv_header_time+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881 #include <sys/types.h>
12882 #include <sys/time.h>
12883 #include <time.h>
12884
12885 int
12886 main ()
12887 {
12888 if ((struct tm *) 0)
12889 return 0;
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"; then :
12895 ac_cv_header_time=yes
12896 else
12897 ac_cv_header_time=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12902 $as_echo "$ac_cv_header_time" >&6; }
12903 if test $ac_cv_header_time = yes; then
12904
12905 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12906
12907 fi
12908
12909
12910
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12912 $as_echo_n "checking for library containing socket... " >&6; }
12913 if ${ac_cv_search_socket+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 ac_func_search_save_LIBS=$LIBS
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char socket ();
12927 int
12928 main ()
12929 {
12930 return socket ();
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 for ac_lib in '' socket; do
12936 if test -z "$ac_lib"; then
12937 ac_res="none required"
12938 else
12939 ac_res=-l$ac_lib
12940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12941 fi
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 ac_cv_search_socket=$ac_res
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext
12947 if ${ac_cv_search_socket+:} false; then :
12948 break
12949 fi
12950 done
12951 if ${ac_cv_search_socket+:} false; then :
12952
12953 else
12954 ac_cv_search_socket=no
12955 fi
12956 rm conftest.$ac_ext
12957 LIBS=$ac_func_search_save_LIBS
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12960 $as_echo "$ac_cv_search_socket" >&6; }
12961 ac_res=$ac_cv_search_socket
12962 if test "$ac_res" != no; then :
12963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12964
12965 fi
12966
12967
12968
12969 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12970 #ifdef HAVE_SYS_TYPES_H
12971 #include <sys/types.h>
12972 #endif
12973 #ifdef HAVE_SYS_SOCKET_H
12974 #include <sys/socket.h>
12975 #endif
12976 #ifdef HAVE_WINSOCK2_H
12977 #include <winsock2.h>
12978 #endif
12979
12980 "
12981 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12982
12983 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
12984
12985 fi
12986
12987
12988 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12989 #include <sys/socket.h>
12990 "
12991 if test "x$ac_cv_type_socklen_t" = xyes; then :
12992 rb_cv_socklen_t=socklen_t
12993 else
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12996 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12997 if ${rb_cv_socklen_t+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000
13001 # Systems have either "struct sockaddr *" or
13002 # "void *" as the second argument to getpeername
13003 rb_cv_socklen_t=
13004 for arg2 in "struct sockaddr" void; do
13005 for t in int size_t unsigned long "unsigned long"; do
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008
13009 #ifdef HAVE_SYS_TYPES_H
13010 #include <sys/types.h>
13011 #endif
13012 #ifdef HAVE_SYS_SOCKET_H
13013 #include <sys/socket.h>
13014 #endif
13015 #ifdef HAVE_WINSOCK2_H
13016 #include <winsock2.h>
13017 #endif
13018 int getpeername (int, $arg2 *, $t *);
13019
13020 int
13021 main ()
13022 {
13023
13024 $t len;
13025 getpeername(0,0,&len);
13026
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_compile "$LINENO"; then :
13032
13033 rb_cv_socklen_t="$t"
13034 break
13035
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 done
13039 done
13040
13041 if test "x$rb_cv_socklen_t" = x; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13043 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13044 rb_cv_socklen_t=int
13045 fi
13046
13047 fi
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13050 $as_echo "$rb_cv_socklen_t" >&6; }
13051 fi
13052
13053
13054 rb_socklen_t=$rb_cv_socklen_t
13055
13056
13057
13058
13059
13060 # Check whether --enable-ipv6 was given.
13061 if test "${enable_ipv6+set}" = set; then :
13062 enableval=$enable_ipv6; ipv6=$enableval
13063 else
13064 ipv6=yes
13065 fi
13066
13067
13068 if test x$ipv6 != xyes; then
13069 have_v6="no"
13070 else
13071
13072 have_v6=yes
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13075 $as_echo_n "checking for INET6 protocol support... " >&6; }
13076 if ${rb_cv_proto_inet6+:} false; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13082
13083 #include <sys/types.h>
13084 #include <sys/socket.h>
13085
13086 #ifndef PF_INET6
13087 #error Missing PF_INET6
13088 #endif
13089 #ifndef AF_INET6
13090 #error Mlssing AF_INET6
13091 #endif
13092
13093 _ACEOF
13094 if ac_fn_c_try_cpp "$LINENO"; then :
13095
13096 rb_cv_proto_inet6=yes
13097
13098 else
13099
13100 rb_cv_proto_inet6=no
13101
13102 fi
13103 rm -f conftest.err conftest.i conftest.$ac_ext
13104
13105 fi
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13107 $as_echo "$rb_cv_proto_inet6" >&6; }
13108
13109 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13110
13111 else :
13112
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13114 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13115 have_v6=no
13116
13117 fi
13118
13119
13120 if test "X$have_v6" = "Xyes"; then
13121
13122 rb_have_sockaddr_in6=
13123 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13124 #include <sys/types.h>
13125 #include <sys/socket.h>
13126 #include <netinet/in.h>
13127
13128 "
13129 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13130
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_STRUCT_SOCKADDR_IN6 1
13133 _ACEOF
13134
13135
13136 rb_have_sockaddr_in6=yes
13137
13138 else
13139
13140 rb_have_sockaddr_in6=no
13141
13142 fi
13143
13144
13145 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13146
13147 else :
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13150 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13151 have_v6=no
13152
13153 fi
13154
13155 fi
13156
13157 fi
13158
13159 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13160 #include <sys/types.h>
13161 #include <sys/socket.h>
13162
13163 "
13164 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13165
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13168 _ACEOF
13169
13170
13171 rb_have_sockaddr_storage=yes
13172
13173 fi
13174
13175
13176
13177 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13178 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13179
13180 else
13181 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13182 fi
13183
13184
13185
13186 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13187 #include <sys/socket.h>
13188 "
13189 if test "x$ac_cv_type_sa_family_t" = xyes; then :
13190
13191 else
13192
13193 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13194
13195 fi
13196
13197
13198
13199 for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
13200 do :
13201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13203 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13204 cat >>confdefs.h <<_ACEOF
13205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13206 _ACEOF
13207
13208 fi
13209 done
13210
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13213 $as_echo_n "checking for library containing nanosleep... " >&6; }
13214 if ${ac_cv_search_nanosleep+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 ac_func_search_save_LIBS=$LIBS
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220
13221 /* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 char nanosleep ();
13228 int
13229 main ()
13230 {
13231 return nanosleep ();
13232 ;
13233 return 0;
13234 }
13235 _ACEOF
13236 for ac_lib in '' rt posix4; do
13237 if test -z "$ac_lib"; then
13238 ac_res="none required"
13239 else
13240 ac_res=-l$ac_lib
13241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13242 fi
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_search_nanosleep=$ac_res
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext
13248 if ${ac_cv_search_nanosleep+:} false; then :
13249 break
13250 fi
13251 done
13252 if ${ac_cv_search_nanosleep+:} false; then :
13253
13254 else
13255 ac_cv_search_nanosleep=no
13256 fi
13257 rm conftest.$ac_ext
13258 LIBS=$ac_func_search_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13261 $as_echo "$ac_cv_search_nanosleep" >&6; }
13262 ac_res=$ac_cv_search_nanosleep
13263 if test "$ac_res" != no; then :
13264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13265
13266 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13267
13268 fi
13269
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13271 $as_echo_n "checking for library containing timer_create... " >&6; }
13272 if ${ac_cv_search_timer_create+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 ac_func_search_save_LIBS=$LIBS
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char timer_create ();
13286 int
13287 main ()
13288 {
13289 return timer_create ();
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 for ac_lib in '' rt; do
13295 if test -z "$ac_lib"; then
13296 ac_res="none required"
13297 else
13298 ac_res=-l$ac_lib
13299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 fi
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 ac_cv_search_timer_create=$ac_res
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext
13306 if ${ac_cv_search_timer_create+:} false; then :
13307 break
13308 fi
13309 done
13310 if ${ac_cv_search_timer_create+:} false; then :
13311
13312 else
13313 ac_cv_search_timer_create=no
13314 fi
13315 rm conftest.$ac_ext
13316 LIBS=$ac_func_search_save_LIBS
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13319 $as_echo "$ac_cv_search_timer_create" >&6; }
13320 ac_res=$ac_cv_search_timer_create
13321 if test "$ac_res" != no; then :
13322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13323
13324 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
13325
13326 fi
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13329 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
13330 if ${rb__cv_timer_create_works+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 if test "$cross_compiling" = yes; then :
13334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13336 as_fn_error $? "cannot run test program while cross compiling
13337 See \`config.log' for more details" "$LINENO" 5; }
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341
13342 #ifdef HAVE_TIME_H
13343 #include <time.h>
13344 #endif
13345 #ifdef HAVE_SIGNAL_H
13346 #include <signal.h>
13347 #endif
13348 #ifdef HAVE_UNISTD_H
13349 #include <unistd.h>
13350 #endif
13351 int main(int argc, char *argv[])
13352 {
13353 #if HAVE_TIMER_CREATE
13354 struct sigevent ev;
13355 timer_t timer;
13356 ev.sigev_notify = SIGEV_SIGNAL;
13357 ev.sigev_signo = SIGVTALRM;
13358 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13359 return 1;
13360 }
13361 #else
13362 return 1;
13363 #endif
13364 return 0;
13365 }
13366
13367 _ACEOF
13368 if ac_fn_c_try_run "$LINENO"; then :
13369 rb__cv_timer_create_works=yes
13370 else
13371 rb__cv_timer_create_works=no
13372 fi
13373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13374 conftest.$ac_objext conftest.beam conftest.$ac_ext
13375 fi
13376
13377
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13380 $as_echo "$rb__cv_timer_create_works" >&6; }
13381 case $rb__cv_timer_create_works in
13382 yes)
13383 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13384 ;;
13385 esac
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13388 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
13389 if ${rb__cv_timerfd_create_works+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 if test "$cross_compiling" = yes; then :
13393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13395 as_fn_error $? "cannot run test program while cross compiling
13396 See \`config.log' for more details" "$LINENO" 5; }
13397 else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400
13401 #ifdef HAVE_TIME_H
13402 #include <time.h>
13403 #endif
13404 #ifdef HAVE_SIGNAL_H
13405 #include <signal.h>
13406 #endif
13407 #ifdef HAVE_UNISTD_H
13408 #include <unistd.h>
13409 #endif
13410 #ifdef HAVE_SYS_TIMERFD_H
13411 #include <sys/timerfd.h>
13412 #endif
13413 int main(int argc, char *argv[])
13414 {
13415 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13416 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13417 return 1;
13418 }
13419 #else
13420 return 1;
13421 #endif
13422 return 0;
13423 }
13424
13425 _ACEOF
13426 if ac_fn_c_try_run "$LINENO"; then :
13427 rb__cv_timerfd_create_works=yes
13428 else
13429 rb__cv_timerfd_create_works=no
13430 fi
13431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13432 conftest.$ac_objext conftest.beam conftest.$ac_ext
13433 fi
13434
13435
13436 fi
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13438 $as_echo "$rb__cv_timerfd_create_works" >&6; }
13439 case $rb__cv_timerfd_create_works in
13440 yes)
13441 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13442 ;;
13443 esac
13444
13445
13446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13447 # for constant arguments. Useless!
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13449 $as_echo_n "checking for working alloca.h... " >&6; }
13450 if ${ac_cv_working_alloca_h+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <alloca.h>
13456 int
13457 main ()
13458 {
13459 char *p = (char *) alloca (2 * sizeof (int));
13460 if (p) return 0;
13461 ;
13462 return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_working_alloca_h=yes
13467 else
13468 ac_cv_working_alloca_h=no
13469 fi
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472 fi
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13474 $as_echo "$ac_cv_working_alloca_h" >&6; }
13475 if test $ac_cv_working_alloca_h = yes; then
13476
13477 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13478
13479 fi
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13482 $as_echo_n "checking for alloca... " >&6; }
13483 if ${ac_cv_func_alloca_works+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #ifdef __GNUC__
13489 # define alloca __builtin_alloca
13490 #else
13491 # ifdef _MSC_VER
13492 # include <malloc.h>
13493 # define alloca _alloca
13494 # else
13495 # ifdef HAVE_ALLOCA_H
13496 # include <alloca.h>
13497 # else
13498 # ifdef _AIX
13499 #pragma alloca
13500 # else
13501 # ifndef alloca /* predefined by HP cc +Olibcalls */
13502 void *alloca (size_t);
13503 # endif
13504 # endif
13505 # endif
13506 # endif
13507 #endif
13508
13509 int
13510 main ()
13511 {
13512 char *p = (char *) alloca (1);
13513 if (p) return 0;
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 ac_cv_func_alloca_works=yes
13520 else
13521 ac_cv_func_alloca_works=no
13522 fi
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13527 $as_echo "$ac_cv_func_alloca_works" >&6; }
13528
13529 if test $ac_cv_func_alloca_works = yes; then
13530
13531 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13532
13533 else
13534 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13535 # that cause trouble. Some versions do not even contain alloca or
13536 # contain a buggy version. If you still want to use their alloca,
13537 # use ar to extract alloca.o from them instead of compiling alloca.c.
13538
13539 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13540
13541 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13542
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13545 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13546 if ${ac_cv_os_cray+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 #if defined CRAY && ! defined CRAY2
13552 webecray
13553 #else
13554 wenotbecray
13555 #endif
13556
13557 _ACEOF
13558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13559 $EGREP "webecray" >/dev/null 2>&1; then :
13560 ac_cv_os_cray=yes
13561 else
13562 ac_cv_os_cray=no
13563 fi
13564 rm -f conftest*
13565
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13568 $as_echo "$ac_cv_os_cray" >&6; }
13569 if test $ac_cv_os_cray = yes; then
13570 for ac_func in _getb67 GETB67 getb67; do
13571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13572 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13573 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13574
13575 cat >>confdefs.h <<_ACEOF
13576 #define CRAY_STACKSEG_END $ac_func
13577 _ACEOF
13578
13579 break
13580 fi
13581
13582 done
13583 fi
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13586 $as_echo_n "checking stack direction for C alloca... " >&6; }
13587 if ${ac_cv_c_stack_direction+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 if test "$cross_compiling" = yes; then :
13591 ac_cv_c_stack_direction=0
13592 else
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 $ac_includes_default
13596 int
13597 find_stack_direction ()
13598 {
13599 static char *addr = 0;
13600 auto char dummy;
13601 if (addr == 0)
13602 {
13603 addr = &dummy;
13604 return find_stack_direction ();
13605 }
13606 else
13607 return (&dummy > addr) ? 1 : -1;
13608 }
13609
13610 int
13611 main ()
13612 {
13613 return find_stack_direction () < 0;
13614 }
13615 _ACEOF
13616 if ac_fn_c_try_run "$LINENO"; then :
13617 ac_cv_c_stack_direction=1
13618 else
13619 ac_cv_c_stack_direction=-1
13620 fi
13621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13622 conftest.$ac_objext conftest.beam conftest.$ac_ext
13623 fi
13624
13625 fi
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13627 $as_echo "$ac_cv_c_stack_direction" >&6; }
13628 cat >>confdefs.h <<_ACEOF
13629 #define STACK_DIRECTION $ac_cv_c_stack_direction
13630 _ACEOF
13631
13632
13633 fi
13634
13635 for ac_header in vfork.h
13636 do :
13637 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13638 if test "x$ac_cv_header_vfork_h" = xyes; then :
13639 cat >>confdefs.h <<_ACEOF
13640 #define HAVE_VFORK_H 1
13641 _ACEOF
13642
13643 fi
13644
13645 done
13646
13647 for ac_func in fork vfork
13648 do :
13649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13651 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13652 cat >>confdefs.h <<_ACEOF
13653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13654 _ACEOF
13655
13656 fi
13657 done
13658
13659 if test "x$ac_cv_func_fork" = xyes; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13661 $as_echo_n "checking for working fork... " >&6; }
13662 if ${ac_cv_func_fork_works+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test "$cross_compiling" = yes; then :
13666 ac_cv_func_fork_works=cross
13667 else
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 $ac_includes_default
13671 int
13672 main ()
13673 {
13674
13675 /* By Ruediger Kuhlmann. */
13676 return fork () < 0;
13677
13678 ;
13679 return 0;
13680 }
13681 _ACEOF
13682 if ac_fn_c_try_run "$LINENO"; then :
13683 ac_cv_func_fork_works=yes
13684 else
13685 ac_cv_func_fork_works=no
13686 fi
13687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13688 conftest.$ac_objext conftest.beam conftest.$ac_ext
13689 fi
13690
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13693 $as_echo "$ac_cv_func_fork_works" >&6; }
13694
13695 else
13696 ac_cv_func_fork_works=$ac_cv_func_fork
13697 fi
13698 if test "x$ac_cv_func_fork_works" = xcross; then
13699 case $host in
13700 *-*-amigaos* | *-*-msdosdjgpp*)
13701 # Override, as these systems have only a dummy fork() stub
13702 ac_cv_func_fork_works=no
13703 ;;
13704 *)
13705 ac_cv_func_fork_works=yes
13706 ;;
13707 esac
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13709 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13710 fi
13711 ac_cv_func_vfork_works=$ac_cv_func_vfork
13712 if test "x$ac_cv_func_vfork" = xyes; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13714 $as_echo_n "checking for working vfork... " >&6; }
13715 if ${ac_cv_func_vfork_works+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 if test "$cross_compiling" = yes; then :
13719 ac_cv_func_vfork_works=cross
13720 else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723 /* Thanks to Paul Eggert for this test. */
13724 $ac_includes_default
13725 #include <sys/wait.h>
13726 #ifdef HAVE_VFORK_H
13727 # include <vfork.h>
13728 #endif
13729 /* On some sparc systems, changes by the child to local and incoming
13730 argument registers are propagated back to the parent. The compiler
13731 is told about this with #include <vfork.h>, but some compilers
13732 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13733 static variable whose address is put into a register that is
13734 clobbered by the vfork. */
13735 static void
13736 #ifdef __cplusplus
13737 sparc_address_test (int arg)
13738 # else
13739 sparc_address_test (arg) int arg;
13740 #endif
13741 {
13742 static pid_t child;
13743 if (!child) {
13744 child = vfork ();
13745 if (child < 0) {
13746 perror ("vfork");
13747 _exit(2);
13748 }
13749 if (!child) {
13750 arg = getpid();
13751 write(-1, "", 0);
13752 _exit (arg);
13753 }
13754 }
13755 }
13756
13757 int
13758 main ()
13759 {
13760 pid_t parent = getpid ();
13761 pid_t child;
13762
13763 sparc_address_test (0);
13764
13765 child = vfork ();
13766
13767 if (child == 0) {
13768 /* Here is another test for sparc vfork register problems. This
13769 test uses lots of local variables, at least as many local
13770 variables as main has allocated so far including compiler
13771 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13772 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13773 reuse the register of parent for one of the local variables,
13774 since it will think that parent can't possibly be used any more
13775 in this routine. Assigning to the local variable will thus
13776 munge parent in the parent process. */
13777 pid_t
13778 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13779 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13780 /* Convince the compiler that p..p7 are live; otherwise, it might
13781 use the same hardware register for all 8 local variables. */
13782 if (p != p1 || p != p2 || p != p3 || p != p4
13783 || p != p5 || p != p6 || p != p7)
13784 _exit(1);
13785
13786 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13787 from child file descriptors. If the child closes a descriptor
13788 before it execs or exits, this munges the parent's descriptor
13789 as well. Test for this by closing stdout in the child. */
13790 _exit(close(fileno(stdout)) != 0);
13791 } else {
13792 int status;
13793 struct stat st;
13794
13795 while (wait(&status) != child)
13796 ;
13797 return (
13798 /* Was there some problem with vforking? */
13799 child < 0
13800
13801 /* Did the child fail? (This shouldn't happen.) */
13802 || status
13803
13804 /* Did the vfork/compiler bug occur? */
13805 || parent != getpid()
13806
13807 /* Did the file descriptor bug occur? */
13808 || fstat(fileno(stdout), &st) != 0
13809 );
13810 }
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_run "$LINENO"; then :
13814 ac_cv_func_vfork_works=yes
13815 else
13816 ac_cv_func_vfork_works=no
13817 fi
13818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13819 conftest.$ac_objext conftest.beam conftest.$ac_ext
13820 fi
13821
13822 fi
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13824 $as_echo "$ac_cv_func_vfork_works" >&6; }
13825
13826 fi;
13827 if test "x$ac_cv_func_fork_works" = xcross; then
13828 ac_cv_func_vfork_works=$ac_cv_func_vfork
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13830 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13831 fi
13832
13833 if test "x$ac_cv_func_vfork_works" = xyes; then
13834
13835 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13836
13837 else
13838
13839 $as_echo "#define vfork fork" >>confdefs.h
13840
13841 fi
13842 if test "x$ac_cv_func_fork_works" = xyes; then
13843
13844 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13845
13846 fi
13847
13848
13849
13850
13851 for ac_header in $ac_header_list
13852 do :
13853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13855 "
13856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13859 _ACEOF
13860
13861 fi
13862
13863 done
13864
13865
13866
13867
13868
13869
13870
13871
13872 for ac_func in getpagesize
13873 do :
13874 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13875 if test "x$ac_cv_func_getpagesize" = xyes; then :
13876 cat >>confdefs.h <<_ACEOF
13877 #define HAVE_GETPAGESIZE 1
13878 _ACEOF
13879
13880 fi
13881 done
13882
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13884 $as_echo_n "checking for working mmap... " >&6; }
13885 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 if test "$cross_compiling" = yes; then :
13889 ac_cv_func_mmap_fixed_mapped=no
13890 else
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893 $ac_includes_default
13894 /* malloc might have been renamed as rpl_malloc. */
13895 #undef malloc
13896
13897 /* Thanks to Mike Haertel and Jim Avera for this test.
13898 Here is a matrix of mmap possibilities:
13899 mmap private not fixed
13900 mmap private fixed at somewhere currently unmapped
13901 mmap private fixed at somewhere already mapped
13902 mmap shared not fixed
13903 mmap shared fixed at somewhere currently unmapped
13904 mmap shared fixed at somewhere already mapped
13905 For private mappings, we should verify that changes cannot be read()
13906 back from the file, nor mmap's back from the file at a different
13907 address. (There have been systems where private was not correctly
13908 implemented like the infamous i386 svr4.0, and systems where the
13909 VM page cache was not coherent with the file system buffer cache
13910 like early versions of FreeBSD and possibly contemporary NetBSD.)
13911 For shared mappings, we should conversely verify that changes get
13912 propagated back to all the places they're supposed to be.
13913
13914 Grep wants private fixed already mapped.
13915 The main things grep needs to know about mmap are:
13916 * does it exist and is it safe to write into the mmap'd area
13917 * how to use it (BSD variants) */
13918
13919 #include <fcntl.h>
13920 #include <sys/mman.h>
13921
13922 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13923 char *malloc ();
13924 #endif
13925
13926 /* This mess was copied from the GNU getpagesize.h. */
13927 #ifndef HAVE_GETPAGESIZE
13928 # ifdef _SC_PAGESIZE
13929 # define getpagesize() sysconf(_SC_PAGESIZE)
13930 # else /* no _SC_PAGESIZE */
13931 # ifdef HAVE_SYS_PARAM_H
13932 # include <sys/param.h>
13933 # ifdef EXEC_PAGESIZE
13934 # define getpagesize() EXEC_PAGESIZE
13935 # else /* no EXEC_PAGESIZE */
13936 # ifdef NBPG
13937 # define getpagesize() NBPG * CLSIZE
13938 # ifndef CLSIZE
13939 # define CLSIZE 1
13940 # endif /* no CLSIZE */
13941 # else /* no NBPG */
13942 # ifdef NBPC
13943 # define getpagesize() NBPC
13944 # else /* no NBPC */
13945 # ifdef PAGESIZE
13946 # define getpagesize() PAGESIZE
13947 # endif /* PAGESIZE */
13948 # endif /* no NBPC */
13949 # endif /* no NBPG */
13950 # endif /* no EXEC_PAGESIZE */
13951 # else /* no HAVE_SYS_PARAM_H */
13952 # define getpagesize() 8192 /* punt totally */
13953 # endif /* no HAVE_SYS_PARAM_H */
13954 # endif /* no _SC_PAGESIZE */
13955
13956 #endif /* no HAVE_GETPAGESIZE */
13957
13958 int
13959 main ()
13960 {
13961 char *data, *data2, *data3;
13962 const char *cdata2;
13963 int i, pagesize;
13964 int fd, fd2;
13965
13966 pagesize = getpagesize ();
13967
13968 /* First, make a file with some known garbage in it. */
13969 data = (char *) malloc (pagesize);
13970 if (!data)
13971 return 1;
13972 for (i = 0; i < pagesize; ++i)
13973 *(data + i) = rand ();
13974 umask (0);
13975 fd = creat ("conftest.mmap", 0600);
13976 if (fd < 0)
13977 return 2;
13978 if (write (fd, data, pagesize) != pagesize)
13979 return 3;
13980 close (fd);
13981
13982 /* Next, check that the tail of a page is zero-filled. File must have
13983 non-zero length, otherwise we risk SIGBUS for entire page. */
13984 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13985 if (fd2 < 0)
13986 return 4;
13987 cdata2 = "";
13988 if (write (fd2, cdata2, 1) != 1)
13989 return 5;
13990 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13991 if (data2 == MAP_FAILED)
13992 return 6;
13993 for (i = 0; i < pagesize; ++i)
13994 if (*(data2 + i))
13995 return 7;
13996 close (fd2);
13997 if (munmap (data2, pagesize))
13998 return 8;
13999
14000 /* Next, try to mmap the file at a fixed address which already has
14001 something else allocated at it. If we can, also make sure that
14002 we see the same garbage. */
14003 fd = open ("conftest.mmap", O_RDWR);
14004 if (fd < 0)
14005 return 9;
14006 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14007 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14008 return 10;
14009 for (i = 0; i < pagesize; ++i)
14010 if (*(data + i) != *(data2 + i))
14011 return 11;
14012
14013 /* Finally, make sure that changes to the mapped area do not
14014 percolate back to the file as seen by read(). (This is a bug on
14015 some variants of i386 svr4.0.) */
14016 for (i = 0; i < pagesize; ++i)
14017 *(data2 + i) = *(data2 + i) + 1;
14018 data3 = (char *) malloc (pagesize);
14019 if (!data3)
14020 return 12;
14021 if (read (fd, data3, pagesize) != pagesize)
14022 return 13;
14023 for (i = 0; i < pagesize; ++i)
14024 if (*(data + i) != *(data3 + i))
14025 return 14;
14026 close (fd);
14027 return 0;
14028 }
14029 _ACEOF
14030 if ac_fn_c_try_run "$LINENO"; then :
14031 ac_cv_func_mmap_fixed_mapped=yes
14032 else
14033 ac_cv_func_mmap_fixed_mapped=no
14034 fi
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14036 conftest.$ac_objext conftest.beam conftest.$ac_ext
14037 fi
14038
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14041 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14043
14044 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14045
14046 fi
14047 rm -f conftest.mmap conftest.txt
14048
14049
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14051 $as_echo_n "checking for /dev/poll... " >&6; }
14052 if test -c "/dev/poll"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14054 $as_echo "yes" >&6; }
14055
14056 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14057
14058 else
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14061 fi
14062
14063
14064 if test "$is_mingw" = "yes"; then
14065
14066 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14067
14068 fi
14069
14070
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14072 $as_echo_n "checking for OpenSSL... " >&6; }
14073 # Check whether --enable-openssl was given.
14074 if test "${enable_openssl+set}" = set; then :
14075 enableval=$enable_openssl; cf_enable_openssl=$enableval
14076 else
14077 cf_enable_openssl="auto"
14078 fi
14079
14080
14081 if test "$cf_enable_openssl" != "no" ; then
14082 cf_openssl_basedir=""
14083 if test "$cf_enable_openssl" != "auto" &&
14084 test "$cf_enable_openssl" != "yes" ; then
14085 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14086 else
14087 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14088 /usr/local/openssl ; do
14089 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14090 cf_openssl_basedir="${dirs}"
14091 break
14092 fi
14093 done
14094 unset dirs
14095 fi
14096 if test ! -z "$cf_openssl_basedir"; then
14097 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14098 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14099 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14100 else
14101 cf_openssl_basedir=""
14102 fi
14103 else
14104 if test -f "/usr/include/openssl/opensslv.h" ; then
14105 cf_openssl_basedir="/usr"
14106 fi
14107 fi
14108
14109 if test ! -z "$cf_openssl_basedir"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14111 $as_echo "$cf_openssl_basedir" >&6; }
14112 cf_enable_openssl="yes"
14113 else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14115 $as_echo "not found. Specify a correct path?" >&6; }
14116 cf_enable_openssl="no"
14117 fi
14118 unset cf_openssl_basedir
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14121 $as_echo "disabled" >&6; }
14122 fi
14123
14124 save_CPPFLAGS="$CPPFLAGS"
14125 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14126 save_LIBS="$LIBS"
14127 LIBS="$LIBS $SSL_LIBS"
14128 if test "$cf_enable_openssl" != no; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14130 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14131 if test "$cross_compiling" = yes; then :
14132 cf_enable_openssl=no
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 #include <openssl/opensslv.h>
14137 #include <stdlib.h>
14138 int
14139 main ()
14140 {
14141 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14142 exit(0); else exit(1);
14143 ;
14144 return 0;
14145 }
14146 _ACEOF
14147 if ac_fn_c_try_run "$LINENO"; then :
14148 cf_enable_openssl=yes
14149 else
14150 cf_enable_openssl=no
14151 fi
14152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14153 conftest.$ac_objext conftest.beam conftest.$ac_ext
14154 fi
14155
14156
14157 if test "$cf_enable_openssl" != no; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14159 $as_echo "found" >&6; }
14160 else
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14162 $as_echo "no - OpenSSL support disabled" >&6; }
14163 fi
14164
14165 fi
14166
14167
14168 if test "$cf_enable_openssl" != no; then
14169 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14171 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14172 if ${ac_cv_lib_crypto_RAND_status+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 ac_check_lib_save_LIBS=$LIBS
14176 LIBS="-lcrypto $LIBS"
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14183 #ifdef __cplusplus
14184 extern "C"
14185 #endif
14186 char RAND_status ();
14187 int
14188 main ()
14189 {
14190 return RAND_status ();
14191 ;
14192 return 0;
14193 }
14194 _ACEOF
14195 if ac_fn_c_try_link "$LINENO"; then :
14196 ac_cv_lib_crypto_RAND_status=yes
14197 else
14198 ac_cv_lib_crypto_RAND_status=no
14199 fi
14200 rm -f core conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 LIBS=$ac_check_lib_save_LIBS
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14205 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14206 if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
14207 cf_enable_openssl=yes
14208 else
14209 cf_enable_openssl=no
14210 fi
14211
14212 fi
14213
14214 if test "$cf_enable_openssl" != no; then
14215 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14217 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14218 if ${ac_cv_lib_ssl_SSL_read+:} false; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 ac_check_lib_save_LIBS=$LIBS
14222 LIBS="-lssl -lcrypto $LIBS"
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225
14226 /* Override any GCC internal prototype to avoid an error.
14227 Use char because int might match the return type of a GCC
14228 builtin and then its argument prototype would still apply. */
14229 #ifdef __cplusplus
14230 extern "C"
14231 #endif
14232 char SSL_read ();
14233 int
14234 main ()
14235 {
14236 return SSL_read ();
14237 ;
14238 return 0;
14239 }
14240 _ACEOF
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 ac_cv_lib_ssl_SSL_read=yes
14243 else
14244 ac_cv_lib_ssl_SSL_read=no
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14248 LIBS=$ac_check_lib_save_LIBS
14249 fi
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14251 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
14252 if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
14253 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
14254 else
14255 cf_enable_openssl=no
14256 fi
14257
14258 fi
14259
14260
14261
14262 if test x"$cf_enable_openssl" != xno; then
14263
14264 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14265
14266 SSL_TYPE="openssl"
14267 fi
14268
14269
14270
14271
14272 CPPFLAGS="$save_CPPFLAGS"
14273 LIBS="$save_LIBS"
14274
14275
14276
14277
14278
14279
14280 # Check whether --enable-assert was given.
14281 if test "${enable_assert+set}" = set; then :
14282 enableval=$enable_assert; assert=$enableval
14283 else
14284 assert=no
14285 fi
14286
14287
14288 if test "$assert" = no; then
14289
14290 $as_echo "#define NDEBUG 1" >>confdefs.h
14291
14292 elif test "$assert" = soft; then
14293
14294 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
14295
14296
14297 $as_echo "#define NDEBUG 1" >>confdefs.h
14298
14299 elif test "$assert" = yes; then
14300 assert = "hard";
14301 fi
14302
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14304 $as_echo_n "checking if you want to do a profile build... " >&6; }
14305 # Check whether --enable-profile was given.
14306 if test "${enable_profile+set}" = set; then :
14307 enableval=$enable_profile; profile=$enableval
14308 else
14309 profile=no
14310 fi
14311
14312
14313 if test "$profile" = yes; then
14314 if test "$ac_cv_c_compiler_gnu" = yes; then
14315 CFLAGS="$CFLAGS -pg -static"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14317 $as_echo "yes, adding -pg -static" >&6; }
14318
14319 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14320
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14323 $as_echo "no, profile builds only work with gcc" >&6; }
14324 fi
14325 else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14328 fi
14329
14330 # Check whether --enable-balloc was given.
14331 if test "${enable_balloc+set}" = set; then :
14332 enableval=$enable_balloc; balloc=$enableval
14333 else
14334 balloc=yes
14335 fi
14336
14337
14338 if test "$balloc" = no; then
14339
14340 $as_echo "#define NOBALLOC 1" >>confdefs.h
14341
14342 fi
14343
14344 # Check whether --enable-warnings was given.
14345 if test "${enable_warnings+set}" = set; then :
14346 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
14347 fi
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357 if test "$prefix" = "NONE"; then
14358
14359 cat >>confdefs.h <<_ACEOF
14360 #define RB_PREFIX "$ac_default_prefix"
14361 _ACEOF
14362
14363
14364 else
14365
14366
14367 prefix=`echo $prefix | sed 's/\/$//'`
14368
14369 cat >>confdefs.h <<_ACEOF
14370 #define RB_PREFIX "$prefix"
14371 _ACEOF
14372
14373
14374 fi
14375
14376
14377
14378 ac_config_commands="$ac_config_commands include/librb-config.h"
14379
14380
14381
14382 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
14383
14384
14385 cat >confcache <<\_ACEOF
14386 # This file is a shell script that caches the results of configure
14387 # tests run on this system so they can be shared between configure
14388 # scripts and configure runs, see configure's option --config-cache.
14389 # It is not useful on other systems. If it contains results you don't
14390 # want to keep, you may remove or edit it.
14391 #
14392 # config.status only pays attention to the cache file if you give it
14393 # the --recheck option to rerun configure.
14394 #
14395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14397 # following values.
14398
14399 _ACEOF
14400
14401 # The following way of writing the cache mishandles newlines in values,
14402 # but we know of no workaround that is simple, portable, and efficient.
14403 # So, we kill variables containing newlines.
14404 # Ultrix sh set writes to stderr and can't be redirected directly,
14405 # and sets the high bit in the cache file unless we assign to the vars.
14406 (
14407 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14408 eval ac_val=\$$ac_var
14409 case $ac_val in #(
14410 *${as_nl}*)
14411 case $ac_var in #(
14412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14414 esac
14415 case $ac_var in #(
14416 _ | IFS | as_nl) ;; #(
14417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14418 *) { eval $ac_var=; unset $ac_var;} ;;
14419 esac ;;
14420 esac
14421 done
14422
14423 (set) 2>&1 |
14424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14425 *${as_nl}ac_space=\ *)
14426 # `set' does not quote correctly, so add quotes: double-quote
14427 # substitution turns \\\\ into \\, and sed turns \\ into \.
14428 sed -n \
14429 "s/'/'\\\\''/g;
14430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14431 ;; #(
14432 *)
14433 # `set' quotes correctly as required by POSIX, so do not add quotes.
14434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14435 ;;
14436 esac |
14437 sort
14438 ) |
14439 sed '
14440 /^ac_cv_env_/b end
14441 t clear
14442 :clear
14443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14444 t end
14445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14446 :end' >>confcache
14447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14448 if test -w "$cache_file"; then
14449 if test "x$cache_file" != "x/dev/null"; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14451 $as_echo "$as_me: updating cache $cache_file" >&6;}
14452 if test ! -f "$cache_file" || test -h "$cache_file"; then
14453 cat confcache >"$cache_file"
14454 else
14455 case $cache_file in #(
14456 */* | ?:*)
14457 mv -f confcache "$cache_file"$$ &&
14458 mv -f "$cache_file"$$ "$cache_file" ;; #(
14459 *)
14460 mv -f confcache "$cache_file" ;;
14461 esac
14462 fi
14463 fi
14464 else
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14466 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14467 fi
14468 fi
14469 rm -f confcache
14470
14471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14472 # Let make expand exec_prefix.
14473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14474
14475 DEFS=-DHAVE_CONFIG_H
14476
14477 ac_libobjs=
14478 ac_ltlibobjs=
14479 U=
14480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14481 # 1. Remove the extension, and $U if already installed.
14482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14485 # will be set to the directory where LIBOBJS objects are built.
14486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14488 done
14489 LIBOBJS=$ac_libobjs
14490
14491 LTLIBOBJS=$ac_ltlibobjs
14492
14493
14494 if test -n "$EXEEXT"; then
14495 am__EXEEXT_TRUE=
14496 am__EXEEXT_FALSE='#'
14497 else
14498 am__EXEEXT_TRUE='#'
14499 am__EXEEXT_FALSE=
14500 fi
14501
14502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14503 as_fn_error $? "conditional \"AMDEP\" was never defined.
14504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14505 fi
14506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14507 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14509 fi
14510 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14511 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14513 fi
14514
14515 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14516 as_fn_error $? "conditional \"MINGW\" was never defined.
14517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14518 fi
14519
14520 : "${CONFIG_STATUS=./config.status}"
14521 ac_write_fail=0
14522 ac_clean_files_save=$ac_clean_files
14523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14525 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14526 as_write_fail=0
14527 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14528 #! $SHELL
14529 # Generated by $as_me.
14530 # Run this file to recreate the current configuration.
14531 # Compiler output produced by configure, useful for debugging
14532 # configure, is in config.log if it exists.
14533
14534 debug=false
14535 ac_cs_recheck=false
14536 ac_cs_silent=false
14537
14538 SHELL=\${CONFIG_SHELL-$SHELL}
14539 export SHELL
14540 _ASEOF
14541 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14542 ## -------------------- ##
14543 ## M4sh Initialization. ##
14544 ## -------------------- ##
14545
14546 # Be more Bourne compatible
14547 DUALCASE=1; export DUALCASE # for MKS sh
14548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14549 emulate sh
14550 NULLCMD=:
14551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14552 # is contrary to our usage. Disable this feature.
14553 alias -g '${1+"$@"}'='"$@"'
14554 setopt NO_GLOB_SUBST
14555 else
14556 case `(set -o) 2>/dev/null` in #(
14557 *posix*) :
14558 set -o posix ;; #(
14559 *) :
14560 ;;
14561 esac
14562 fi
14563
14564
14565 as_nl='
14566 '
14567 export as_nl
14568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14569 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14572 # Prefer a ksh shell builtin over an external printf program on Solaris,
14573 # but without wasting forks for bash or zsh.
14574 if test -z "$BASH_VERSION$ZSH_VERSION" \
14575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14576 as_echo='print -r --'
14577 as_echo_n='print -rn --'
14578 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14579 as_echo='printf %s\n'
14580 as_echo_n='printf %s'
14581 else
14582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14584 as_echo_n='/usr/ucb/echo -n'
14585 else
14586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14587 as_echo_n_body='eval
14588 arg=$1;
14589 case $arg in #(
14590 *"$as_nl"*)
14591 expr "X$arg" : "X\\(.*\\)$as_nl";
14592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14593 esac;
14594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14595 '
14596 export as_echo_n_body
14597 as_echo_n='sh -c $as_echo_n_body as_echo'
14598 fi
14599 export as_echo_body
14600 as_echo='sh -c $as_echo_body as_echo'
14601 fi
14602
14603 # The user is always right.
14604 if test "${PATH_SEPARATOR+set}" != set; then
14605 PATH_SEPARATOR=:
14606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14608 PATH_SEPARATOR=';'
14609 }
14610 fi
14611
14612
14613 # IFS
14614 # We need space, tab and new line, in precisely that order. Quoting is
14615 # there to prevent editors from complaining about space-tab.
14616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14617 # splitting by setting IFS to empty value.)
14618 IFS=" "" $as_nl"
14619
14620 # Find who we are. Look in the path if we contain no directory separator.
14621 as_myself=
14622 case $0 in #((
14623 *[\\/]* ) as_myself=$0 ;;
14624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14630 done
14631 IFS=$as_save_IFS
14632
14633 ;;
14634 esac
14635 # We did not find ourselves, most probably we were run as `sh COMMAND'
14636 # in which case we are not to be found in the path.
14637 if test "x$as_myself" = x; then
14638 as_myself=$0
14639 fi
14640 if test ! -f "$as_myself"; then
14641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14642 exit 1
14643 fi
14644
14645 # Unset variables that we do not need and which cause bugs (e.g. in
14646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14647 # suppresses any "Segmentation fault" message there. '((' could
14648 # trigger a bug in pdksh 5.2.14.
14649 for as_var in BASH_ENV ENV MAIL MAILPATH
14650 do eval test x\${$as_var+set} = xset \
14651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14652 done
14653 PS1='$ '
14654 PS2='> '
14655 PS4='+ '
14656
14657 # NLS nuisances.
14658 LC_ALL=C
14659 export LC_ALL
14660 LANGUAGE=C
14661 export LANGUAGE
14662
14663 # CDPATH.
14664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14665
14666
14667 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14668 # ----------------------------------------
14669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14671 # script with STATUS, using 1 if that was 0.
14672 as_fn_error ()
14673 {
14674 as_status=$1; test $as_status -eq 0 && as_status=1
14675 if test "$4"; then
14676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14678 fi
14679 $as_echo "$as_me: error: $2" >&2
14680 as_fn_exit $as_status
14681 } # as_fn_error
14682
14683
14684 # as_fn_set_status STATUS
14685 # -----------------------
14686 # Set $? to STATUS, without forking.
14687 as_fn_set_status ()
14688 {
14689 return $1
14690 } # as_fn_set_status
14691
14692 # as_fn_exit STATUS
14693 # -----------------
14694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14695 as_fn_exit ()
14696 {
14697 set +e
14698 as_fn_set_status $1
14699 exit $1
14700 } # as_fn_exit
14701
14702 # as_fn_unset VAR
14703 # ---------------
14704 # Portably unset VAR.
14705 as_fn_unset ()
14706 {
14707 { eval $1=; unset $1;}
14708 }
14709 as_unset=as_fn_unset
14710 # as_fn_append VAR VALUE
14711 # ----------------------
14712 # Append the text in VALUE to the end of the definition contained in VAR. Take
14713 # advantage of any shell optimizations that allow amortized linear growth over
14714 # repeated appends, instead of the typical quadratic growth present in naive
14715 # implementations.
14716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14717 eval 'as_fn_append ()
14718 {
14719 eval $1+=\$2
14720 }'
14721 else
14722 as_fn_append ()
14723 {
14724 eval $1=\$$1\$2
14725 }
14726 fi # as_fn_append
14727
14728 # as_fn_arith ARG...
14729 # ------------------
14730 # Perform arithmetic evaluation on the ARGs, and store the result in the
14731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14732 # must be portable across $(()) and expr.
14733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14734 eval 'as_fn_arith ()
14735 {
14736 as_val=$(( $* ))
14737 }'
14738 else
14739 as_fn_arith ()
14740 {
14741 as_val=`expr "$@" || test $? -eq 1`
14742 }
14743 fi # as_fn_arith
14744
14745
14746 if expr a : '\(a\)' >/dev/null 2>&1 &&
14747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14748 as_expr=expr
14749 else
14750 as_expr=false
14751 fi
14752
14753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14754 as_basename=basename
14755 else
14756 as_basename=false
14757 fi
14758
14759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14760 as_dirname=dirname
14761 else
14762 as_dirname=false
14763 fi
14764
14765 as_me=`$as_basename -- "$0" ||
14766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14767 X"$0" : 'X\(//\)$' \| \
14768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14769 $as_echo X/"$0" |
14770 sed '/^.*\/\([^/][^/]*\)\/*$/{
14771 s//\1/
14772 q
14773 }
14774 /^X\/\(\/\/\)$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\/\(\/\).*/{
14779 s//\1/
14780 q
14781 }
14782 s/.*/./; q'`
14783
14784 # Avoid depending upon Character Ranges.
14785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14788 as_cr_digits='0123456789'
14789 as_cr_alnum=$as_cr_Letters$as_cr_digits
14790
14791 ECHO_C= ECHO_N= ECHO_T=
14792 case `echo -n x` in #(((((
14793 -n*)
14794 case `echo 'xy\c'` in
14795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14796 xy) ECHO_C='\c';;
14797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14798 ECHO_T=' ';;
14799 esac;;
14800 *)
14801 ECHO_N='-n';;
14802 esac
14803
14804 rm -f conf$$ conf$$.exe conf$$.file
14805 if test -d conf$$.dir; then
14806 rm -f conf$$.dir/conf$$.file
14807 else
14808 rm -f conf$$.dir
14809 mkdir conf$$.dir 2>/dev/null
14810 fi
14811 if (echo >conf$$.file) 2>/dev/null; then
14812 if ln -s conf$$.file conf$$ 2>/dev/null; then
14813 as_ln_s='ln -s'
14814 # ... but there are two gotchas:
14815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14817 # In both cases, we have to default to `cp -p'.
14818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14819 as_ln_s='cp -p'
14820 elif ln conf$$.file conf$$ 2>/dev/null; then
14821 as_ln_s=ln
14822 else
14823 as_ln_s='cp -p'
14824 fi
14825 else
14826 as_ln_s='cp -p'
14827 fi
14828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14829 rmdir conf$$.dir 2>/dev/null
14830
14831
14832 # as_fn_mkdir_p
14833 # -------------
14834 # Create "$as_dir" as a directory, including parents if necessary.
14835 as_fn_mkdir_p ()
14836 {
14837
14838 case $as_dir in #(
14839 -*) as_dir=./$as_dir;;
14840 esac
14841 test -d "$as_dir" || eval $as_mkdir_p || {
14842 as_dirs=
14843 while :; do
14844 case $as_dir in #(
14845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14846 *) as_qdir=$as_dir;;
14847 esac
14848 as_dirs="'$as_qdir' $as_dirs"
14849 as_dir=`$as_dirname -- "$as_dir" ||
14850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14851 X"$as_dir" : 'X\(//\)[^/]' \| \
14852 X"$as_dir" : 'X\(//\)$' \| \
14853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14854 $as_echo X"$as_dir" |
14855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14856 s//\1/
14857 q
14858 }
14859 /^X\(\/\/\)[^/].*/{
14860 s//\1/
14861 q
14862 }
14863 /^X\(\/\/\)$/{
14864 s//\1/
14865 q
14866 }
14867 /^X\(\/\).*/{
14868 s//\1/
14869 q
14870 }
14871 s/.*/./; q'`
14872 test -d "$as_dir" && break
14873 done
14874 test -z "$as_dirs" || eval "mkdir $as_dirs"
14875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14876
14877
14878 } # as_fn_mkdir_p
14879 if mkdir -p . 2>/dev/null; then
14880 as_mkdir_p='mkdir -p "$as_dir"'
14881 else
14882 test -d ./-p && rmdir ./-p
14883 as_mkdir_p=false
14884 fi
14885
14886 if test -x / >/dev/null 2>&1; then
14887 as_test_x='test -x'
14888 else
14889 if ls -dL / >/dev/null 2>&1; then
14890 as_ls_L_option=L
14891 else
14892 as_ls_L_option=
14893 fi
14894 as_test_x='
14895 eval sh -c '\''
14896 if test -d "$1"; then
14897 test -d "$1/.";
14898 else
14899 case $1 in #(
14900 -*)set "./$1";;
14901 esac;
14902 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14903 ???[sx]*):;;*)false;;esac;fi
14904 '\'' sh
14905 '
14906 fi
14907 as_executable_p=$as_test_x
14908
14909 # Sed expression to map a string onto a valid CPP name.
14910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14911
14912 # Sed expression to map a string onto a valid variable name.
14913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14914
14915
14916 exec 6>&1
14917 ## ----------------------------------- ##
14918 ## Main body of $CONFIG_STATUS script. ##
14919 ## ----------------------------------- ##
14920 _ASEOF
14921 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14922
14923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924 # Save the log message, to keep $0 and so on meaningful, and to
14925 # report actual input values of CONFIG_FILES etc. instead of their
14926 # values after options handling.
14927 ac_log="
14928 This file was extended by libratbox $as_me devel, which was
14929 generated by GNU Autoconf 2.68. Invocation command line was
14930
14931 CONFIG_FILES = $CONFIG_FILES
14932 CONFIG_HEADERS = $CONFIG_HEADERS
14933 CONFIG_LINKS = $CONFIG_LINKS
14934 CONFIG_COMMANDS = $CONFIG_COMMANDS
14935 $ $0 $@
14936
14937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14938 "
14939
14940 _ACEOF
14941
14942 case $ac_config_files in *"
14943 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14944 esac
14945
14946 case $ac_config_headers in *"
14947 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14948 esac
14949
14950
14951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952 # Files that config.status was made for.
14953 config_files="$ac_config_files"
14954 config_headers="$ac_config_headers"
14955 config_commands="$ac_config_commands"
14956
14957 _ACEOF
14958
14959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14960 ac_cs_usage="\
14961 \`$as_me' instantiates files and other configuration actions
14962 from templates according to the current configuration. Unless the files
14963 and actions are specified as TAGs, all are instantiated by default.
14964
14965 Usage: $0 [OPTION]... [TAG]...
14966
14967 -h, --help print this help, then exit
14968 -V, --version print version number and configuration settings, then exit
14969 --config print configuration, then exit
14970 -q, --quiet, --silent
14971 do not print progress messages
14972 -d, --debug don't remove temporary files
14973 --recheck update $as_me by reconfiguring in the same conditions
14974 --file=FILE[:TEMPLATE]
14975 instantiate the configuration file FILE
14976 --header=FILE[:TEMPLATE]
14977 instantiate the configuration header FILE
14978
14979 Configuration files:
14980 $config_files
14981
14982 Configuration headers:
14983 $config_headers
14984
14985 Configuration commands:
14986 $config_commands
14987
14988 Report bugs to the package provider."
14989
14990 _ACEOF
14991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14992 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14993 ac_cs_version="\\
14994 libratbox config.status devel
14995 configured by $0, generated by GNU Autoconf 2.68,
14996 with options \\"\$ac_cs_config\\"
14997
14998 Copyright (C) 2010 Free Software Foundation, Inc.
14999 This config.status script is free software; the Free Software Foundation
15000 gives unlimited permission to copy, distribute and modify it."
15001
15002 ac_pwd='$ac_pwd'
15003 srcdir='$srcdir'
15004 INSTALL='$INSTALL'
15005 MKDIR_P='$MKDIR_P'
15006 AWK='$AWK'
15007 test -n "\$AWK" || AWK=awk
15008 _ACEOF
15009
15010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15011 # The default lists apply if the user does not specify any file.
15012 ac_need_defaults=:
15013 while test $# != 0
15014 do
15015 case $1 in
15016 --*=?*)
15017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15019 ac_shift=:
15020 ;;
15021 --*=)
15022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15023 ac_optarg=
15024 ac_shift=:
15025 ;;
15026 *)
15027 ac_option=$1
15028 ac_optarg=$2
15029 ac_shift=shift
15030 ;;
15031 esac
15032
15033 case $ac_option in
15034 # Handling of the options.
15035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15036 ac_cs_recheck=: ;;
15037 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15038 $as_echo "$ac_cs_version"; exit ;;
15039 --config | --confi | --conf | --con | --co | --c )
15040 $as_echo "$ac_cs_config"; exit ;;
15041 --debug | --debu | --deb | --de | --d | -d )
15042 debug=: ;;
15043 --file | --fil | --fi | --f )
15044 $ac_shift
15045 case $ac_optarg in
15046 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15047 '') as_fn_error $? "missing file argument" ;;
15048 esac
15049 as_fn_append CONFIG_FILES " '$ac_optarg'"
15050 ac_need_defaults=false;;
15051 --header | --heade | --head | --hea )
15052 $ac_shift
15053 case $ac_optarg in
15054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15055 esac
15056 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15057 ac_need_defaults=false;;
15058 --he | --h)
15059 # Conflict between --help and --header
15060 as_fn_error $? "ambiguous option: \`$1'
15061 Try \`$0 --help' for more information.";;
15062 --help | --hel | -h )
15063 $as_echo "$ac_cs_usage"; exit ;;
15064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15065 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15066 ac_cs_silent=: ;;
15067
15068 # This is an error.
15069 -*) as_fn_error $? "unrecognized option: \`$1'
15070 Try \`$0 --help' for more information." ;;
15071
15072 *) as_fn_append ac_config_targets " $1"
15073 ac_need_defaults=false ;;
15074
15075 esac
15076 shift
15077 done
15078
15079 ac_configure_extra_args=
15080
15081 if $ac_cs_silent; then
15082 exec 6>/dev/null
15083 ac_configure_extra_args="$ac_configure_extra_args --silent"
15084 fi
15085
15086 _ACEOF
15087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088 if \$ac_cs_recheck; then
15089 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15090 shift
15091 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15092 CONFIG_SHELL='$SHELL'
15093 export CONFIG_SHELL
15094 exec "\$@"
15095 fi
15096
15097 _ACEOF
15098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15099 exec 5>>config.log
15100 {
15101 echo
15102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15103 ## Running $as_me. ##
15104 _ASBOX
15105 $as_echo "$ac_log"
15106 } >&5
15107
15108 _ACEOF
15109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15110 #
15111 # INIT-COMMANDS
15112 #
15113 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15114
15115
15116 # The HP-UX ksh and POSIX shell print the target directory to stdout
15117 # if CDPATH is set.
15118 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15119
15120 sed_quote_subst='$sed_quote_subst'
15121 double_quote_subst='$double_quote_subst'
15122 delay_variable_subst='$delay_variable_subst'
15123 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15124 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15125 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15126 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15127 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15128 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15129 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15130 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15131 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15132 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15133 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15134 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15135 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15136 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15137 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15138 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15139 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15140 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15141 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15142 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15143 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15144 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15145 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15146 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15147 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15148 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15149 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15150 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15151 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15152 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15153 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15154 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15155 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15156 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15157 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15158 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15159 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15160 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15161 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15162 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15163 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15164 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15165 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15166 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15167 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15168 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15169 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15170 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15171 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15172 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15173 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15174 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15175 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15176 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15177 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15178 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15179 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"`'
15180 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15181 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15182 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15183 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15184 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15185 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15186 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15187 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15188 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15189 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15190 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15191 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15192 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15193 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15194 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15195 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15196 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15197 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15198 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15199 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15200 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15201 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15202 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15203 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15204 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15205 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15206 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15207 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15208 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15209 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15210 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15211 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15212 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15213 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15214 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15215 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15216 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15217 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15218 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15219 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15220 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15221 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15222 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15223 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15224 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15225 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15226 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15227 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15228 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15229 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15230 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15231 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15232 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15233 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15234 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15235 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15236 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15237 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15238 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15239 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15240 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15241 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15242 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15243 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15244 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15245 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15246 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15247 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15248 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15249 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15250 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15251 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15252 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15253
15254 LTCC='$LTCC'
15255 LTCFLAGS='$LTCFLAGS'
15256 compiler='$compiler_DEFAULT'
15257
15258 # A function that is used when there is no print builtin or printf.
15259 func_fallback_echo ()
15260 {
15261 eval 'cat <<_LTECHO_EOF
15262 \$1
15263 _LTECHO_EOF'
15264 }
15265
15266 # Quote evaled strings.
15267 for var in SHELL \
15268 ECHO \
15269 PATH_SEPARATOR \
15270 SED \
15271 GREP \
15272 EGREP \
15273 FGREP \
15274 LD \
15275 NM \
15276 LN_S \
15277 lt_SP2NL \
15278 lt_NL2SP \
15279 reload_flag \
15280 OBJDUMP \
15281 deplibs_check_method \
15282 file_magic_cmd \
15283 file_magic_glob \
15284 want_nocaseglob \
15285 DLLTOOL \
15286 sharedlib_from_linklib_cmd \
15287 AR \
15288 AR_FLAGS \
15289 archiver_list_spec \
15290 STRIP \
15291 RANLIB \
15292 CC \
15293 CFLAGS \
15294 compiler \
15295 lt_cv_sys_global_symbol_pipe \
15296 lt_cv_sys_global_symbol_to_cdecl \
15297 lt_cv_sys_global_symbol_to_c_name_address \
15298 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15299 nm_file_list_spec \
15300 lt_prog_compiler_no_builtin_flag \
15301 lt_prog_compiler_pic \
15302 lt_prog_compiler_wl \
15303 lt_prog_compiler_static \
15304 lt_cv_prog_compiler_c_o \
15305 need_locks \
15306 MANIFEST_TOOL \
15307 DSYMUTIL \
15308 NMEDIT \
15309 LIPO \
15310 OTOOL \
15311 OTOOL64 \
15312 shrext_cmds \
15313 export_dynamic_flag_spec \
15314 whole_archive_flag_spec \
15315 compiler_needs_object \
15316 with_gnu_ld \
15317 allow_undefined_flag \
15318 no_undefined_flag \
15319 hardcode_libdir_flag_spec \
15320 hardcode_libdir_separator \
15321 exclude_expsyms \
15322 include_expsyms \
15323 file_list_spec \
15324 variables_saved_for_relink \
15325 libname_spec \
15326 library_names_spec \
15327 soname_spec \
15328 install_override_mode \
15329 finish_eval \
15330 old_striplib \
15331 striplib; do
15332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15333 *[\\\\\\\`\\"\\\$]*)
15334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15335 ;;
15336 *)
15337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15338 ;;
15339 esac
15340 done
15341
15342 # Double-quote double-evaled strings.
15343 for var in reload_cmds \
15344 old_postinstall_cmds \
15345 old_postuninstall_cmds \
15346 old_archive_cmds \
15347 extract_expsyms_cmds \
15348 old_archive_from_new_cmds \
15349 old_archive_from_expsyms_cmds \
15350 archive_cmds \
15351 archive_expsym_cmds \
15352 module_cmds \
15353 module_expsym_cmds \
15354 export_symbols_cmds \
15355 prelink_cmds \
15356 postlink_cmds \
15357 postinstall_cmds \
15358 postuninstall_cmds \
15359 finish_cmds \
15360 sys_lib_search_path_spec \
15361 sys_lib_dlsearch_path_spec; do
15362 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15363 *[\\\\\\\`\\"\\\$]*)
15364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15365 ;;
15366 *)
15367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15368 ;;
15369 esac
15370 done
15371
15372 ac_aux_dir='$ac_aux_dir'
15373 xsi_shell='$xsi_shell'
15374 lt_shell_append='$lt_shell_append'
15375
15376 # See if we are running on zsh, and set the options which allow our
15377 # commands through without removal of \ escapes INIT.
15378 if test -n "\${ZSH_VERSION+set}" ; then
15379 setopt NO_GLOB_SUBST
15380 fi
15381
15382
15383 PACKAGE='$PACKAGE'
15384 VERSION='$VERSION'
15385 TIMESTAMP='$TIMESTAMP'
15386 RM='$RM'
15387 ofile='$ofile'
15388
15389
15390
15391
15392 if test x$ac_cv_header_stdc = xyes; then
15393 rb_header_stdc=yes
15394 fi
15395 if test x$ac_cv_header_stdlib_h = xyes; then
15396 rb_header_stdlib_h=yes
15397 fi
15398 if test x$ac_cv_header_string_h = xyes; then
15399 rb_header_string_h=yes
15400 fi
15401 if test x$ac_cv_header_memory_h = xyes; then
15402 rb_header_memory_h=yes
15403 fi
15404 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15405 rb_alloca_h="$ac_cv_working_alloca_h"
15406 else
15407 rb_alloc_h="$ac_cv_header_alloca_h"
15408 fi
15409 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15410 rb_sockaddr_sa_len=yes
15411 fi
15412 if test x$ac_cv_header_sys_socket_h = xyes; then
15413 rb_sys_socket_h=yes
15414 fi
15415 if test x$ac_cv_header_sys_types_h = xyes; then
15416 rb_sys_types_h=yes
15417 fi
15418 if test x$ac_cv_header_sys_stat_h = xyes; then
15419 rb_sys_stat_h=yes
15420 fi
15421 if test x$ac_cv_header_sys_time_h = xyes; then
15422 rb_sys_time_h=yes
15423 fi
15424 if test x$ac_cv_header_time = xyes; then
15425 rb_time_h=yes
15426 fi
15427
15428 if test x$ac_cv_header_stdint_h = xyes; then
15429 rb_stdint_h=yes
15430 fi
15431 if test x$ac_cv_header_inttypes_h = xyes; then
15432 rb_inttypes_h=yes
15433 fi
15434 if test x$ac_cv_header_netinet_in_h = xyes; then
15435 rb_netinet_in_h=yes
15436 fi
15437
15438 if test x$ac_cv_header_crypt_h = xyes; then
15439 rb_crypt_h=yes
15440 fi
15441 if test x$ac_cv_header_errno_h = xyes; then
15442 rb_errno_h=yes
15443 fi
15444 if test x$ac_cv_header_unistd_h = xyes; then
15445 rb_unistd_h=yes
15446 fi
15447 if test x$ac_cv_header_windows_h = xyes; then
15448 rb_windows_h=yes
15449 fi
15450 if test x$ac_cv_header_winsock2_h = xyes; then
15451 rb_winsock2_h=yes
15452 fi
15453
15454 rb_socklen_t=$rb_socklen_t
15455
15456 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15457 rb_sockaddr_storage="yes"
15458 else
15459 rb_sockaddr_storage="no"
15460 fi
15461
15462 rb_have_ipv6="$have_v6"
15463
15464 rb_mv="$MV"
15465 rb_rm="$RM"
15466
15467
15468
15469
15470
15471
15472 _ACEOF
15473
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475
15476 # Handling of arguments.
15477 for ac_config_target in $ac_config_targets
15478 do
15479 case $ac_config_target in
15480 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
15481 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15482 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15483 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
15484 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15485 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15486 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
15487
15488 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15489 esac
15490 done
15491
15492
15493 # If the user did not use the arguments to specify the items to instantiate,
15494 # then the envvar interface is used. Set only those that are not.
15495 # We use the long form for the default assignment because of an extremely
15496 # bizarre bug on SunOS 4.1.3.
15497 if $ac_need_defaults; then
15498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15501 fi
15502
15503 # Have a temporary directory for convenience. Make it in the build tree
15504 # simply because there is no reason against having it here, and in addition,
15505 # creating and moving files from /tmp can sometimes cause problems.
15506 # Hook for its removal unless debugging.
15507 # Note that there is a small window in which the directory will not be cleaned:
15508 # after its creation but before its name has been assigned to `$tmp'.
15509 $debug ||
15510 {
15511 tmp= ac_tmp=
15512 trap 'exit_status=$?
15513 : "${ac_tmp:=$tmp}"
15514 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15515 ' 0
15516 trap 'as_fn_exit 1' 1 2 13 15
15517 }
15518 # Create a (secure) tmp directory for tmp files.
15519
15520 {
15521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15522 test -d "$tmp"
15523 } ||
15524 {
15525 tmp=./conf$$-$RANDOM
15526 (umask 077 && mkdir "$tmp")
15527 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15528 ac_tmp=$tmp
15529
15530 # Set up the scripts for CONFIG_FILES section.
15531 # No need to generate them if there are no CONFIG_FILES.
15532 # This happens for instance with `./config.status config.h'.
15533 if test -n "$CONFIG_FILES"; then
15534
15535
15536 ac_cr=`echo X | tr X '\015'`
15537 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15538 # But we know of no other shell where ac_cr would be empty at this
15539 # point, so we can use a bashism as a fallback.
15540 if test "x$ac_cr" = x; then
15541 eval ac_cr=\$\'\\r\'
15542 fi
15543 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15544 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15545 ac_cs_awk_cr='\\r'
15546 else
15547 ac_cs_awk_cr=$ac_cr
15548 fi
15549
15550 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15551 _ACEOF
15552
15553
15554 {
15555 echo "cat >conf$$subs.awk <<_ACEOF" &&
15556 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15557 echo "_ACEOF"
15558 } >conf$$subs.sh ||
15559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15560 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15561 ac_delim='%!_!# '
15562 for ac_last_try in false false false false false :; do
15563 . ./conf$$subs.sh ||
15564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15565
15566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15567 if test $ac_delim_n = $ac_delim_num; then
15568 break
15569 elif $ac_last_try; then
15570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15571 else
15572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15573 fi
15574 done
15575 rm -f conf$$subs.sh
15576
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15579 _ACEOF
15580 sed -n '
15581 h
15582 s/^/S["/; s/!.*/"]=/
15583 p
15584 g
15585 s/^[^!]*!//
15586 :repl
15587 t repl
15588 s/'"$ac_delim"'$//
15589 t delim
15590 :nl
15591 h
15592 s/\(.\{148\}\)..*/\1/
15593 t more1
15594 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15595 p
15596 n
15597 b repl
15598 :more1
15599 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15600 p
15601 g
15602 s/.\{148\}//
15603 t nl
15604 :delim
15605 h
15606 s/\(.\{148\}\)..*/\1/
15607 t more2
15608 s/["\\]/\\&/g; s/^/"/; s/$/"/
15609 p
15610 b
15611 :more2
15612 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15613 p
15614 g
15615 s/.\{148\}//
15616 t delim
15617 ' <conf$$subs.awk | sed '
15618 /^[^""]/{
15619 N
15620 s/\n//
15621 }
15622 ' >>$CONFIG_STATUS || ac_write_fail=1
15623 rm -f conf$$subs.awk
15624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625 _ACAWK
15626 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15627 for (key in S) S_is_set[key] = 1
15628 FS = "\a"
15629
15630 }
15631 {
15632 line = $ 0
15633 nfields = split(line, field, "@")
15634 substed = 0
15635 len = length(field[1])
15636 for (i = 2; i < nfields; i++) {
15637 key = field[i]
15638 keylen = length(key)
15639 if (S_is_set[key]) {
15640 value = S[key]
15641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15642 len += length(value) + length(field[++i])
15643 substed = 1
15644 } else
15645 len += 1 + keylen
15646 }
15647
15648 print line
15649 }
15650
15651 _ACAWK
15652 _ACEOF
15653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15656 else
15657 cat
15658 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15659 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15660 _ACEOF
15661
15662 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15663 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15664 # trailing colons and then remove the whole line if VPATH becomes empty
15665 # (actually we leave an empty line to preserve line numbers).
15666 if test "x$srcdir" = x.; then
15667 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15668 h
15669 s///
15670 s/^/:/
15671 s/[ ]*$/:/
15672 s/:\$(srcdir):/:/g
15673 s/:\${srcdir}:/:/g
15674 s/:@srcdir@:/:/g
15675 s/^:*//
15676 s/:*$//
15677 x
15678 s/\(=[ ]*\).*/\1/
15679 G
15680 s/\n//
15681 s/^[^=]*=[ ]*$//
15682 }'
15683 fi
15684
15685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15686 fi # test -n "$CONFIG_FILES"
15687
15688 # Set up the scripts for CONFIG_HEADERS section.
15689 # No need to generate them if there are no CONFIG_HEADERS.
15690 # This happens for instance with `./config.status Makefile'.
15691 if test -n "$CONFIG_HEADERS"; then
15692 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15693 BEGIN {
15694 _ACEOF
15695
15696 # Transform confdefs.h into an awk script `defines.awk', embedded as
15697 # here-document in config.status, that substitutes the proper values into
15698 # config.h.in to produce config.h.
15699
15700 # Create a delimiter string that does not exist in confdefs.h, to ease
15701 # handling of long lines.
15702 ac_delim='%!_!# '
15703 for ac_last_try in false false :; do
15704 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15705 if test -z "$ac_tt"; then
15706 break
15707 elif $ac_last_try; then
15708 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15709 else
15710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15711 fi
15712 done
15713
15714 # For the awk script, D is an array of macro values keyed by name,
15715 # likewise P contains macro parameters if any. Preserve backslash
15716 # newline sequences.
15717
15718 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15719 sed -n '
15720 s/.\{148\}/&'"$ac_delim"'/g
15721 t rset
15722 :rset
15723 s/^[ ]*#[ ]*define[ ][ ]*/ /
15724 t def
15725 d
15726 :def
15727 s/\\$//
15728 t bsnl
15729 s/["\\]/\\&/g
15730 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15731 D["\1"]=" \3"/p
15732 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15733 d
15734 :bsnl
15735 s/["\\]/\\&/g
15736 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15737 D["\1"]=" \3\\\\\\n"\\/p
15738 t cont
15739 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15740 t cont
15741 d
15742 :cont
15743 n
15744 s/.\{148\}/&'"$ac_delim"'/g
15745 t clear
15746 :clear
15747 s/\\$//
15748 t bsnlc
15749 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15750 d
15751 :bsnlc
15752 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15753 b cont
15754 ' <confdefs.h | sed '
15755 s/'"$ac_delim"'/"\\\
15756 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15757
15758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15759 for (key in D) D_is_set[key] = 1
15760 FS = "\a"
15761 }
15762 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15763 line = \$ 0
15764 split(line, arg, " ")
15765 if (arg[1] == "#") {
15766 defundef = arg[2]
15767 mac1 = arg[3]
15768 } else {
15769 defundef = substr(arg[1], 2)
15770 mac1 = arg[2]
15771 }
15772 split(mac1, mac2, "(") #)
15773 macro = mac2[1]
15774 prefix = substr(line, 1, index(line, defundef) - 1)
15775 if (D_is_set[macro]) {
15776 # Preserve the white space surrounding the "#".
15777 print prefix "define", macro P[macro] D[macro]
15778 next
15779 } else {
15780 # Replace #undef with comments. This is necessary, for example,
15781 # in the case of _POSIX_SOURCE, which is predefined and required
15782 # on some systems where configure will not decide to define it.
15783 if (defundef == "undef") {
15784 print "/*", prefix defundef, macro, "*/"
15785 next
15786 }
15787 }
15788 }
15789 { print }
15790 _ACAWK
15791 _ACEOF
15792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15793 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15794 fi # test -n "$CONFIG_HEADERS"
15795
15796
15797 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15798 shift
15799 for ac_tag
15800 do
15801 case $ac_tag in
15802 :[FHLC]) ac_mode=$ac_tag; continue;;
15803 esac
15804 case $ac_mode$ac_tag in
15805 :[FHL]*:*);;
15806 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15807 :[FH]-) ac_tag=-:-;;
15808 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15809 esac
15810 ac_save_IFS=$IFS
15811 IFS=:
15812 set x $ac_tag
15813 IFS=$ac_save_IFS
15814 shift
15815 ac_file=$1
15816 shift
15817
15818 case $ac_mode in
15819 :L) ac_source=$1;;
15820 :[FH])
15821 ac_file_inputs=
15822 for ac_f
15823 do
15824 case $ac_f in
15825 -) ac_f="$ac_tmp/stdin";;
15826 *) # Look for the file first in the build tree, then in the source tree
15827 # (if the path is not absolute). The absolute path cannot be DOS-style,
15828 # because $ac_f cannot contain `:'.
15829 test -f "$ac_f" ||
15830 case $ac_f in
15831 [\\/$]*) false;;
15832 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15833 esac ||
15834 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15835 esac
15836 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15837 as_fn_append ac_file_inputs " '$ac_f'"
15838 done
15839
15840 # Let's still pretend it is `configure' which instantiates (i.e., don't
15841 # use $as_me), people would be surprised to read:
15842 # /* config.h. Generated by config.status. */
15843 configure_input='Generated from '`
15844 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15845 `' by configure.'
15846 if test x"$ac_file" != x-; then
15847 configure_input="$ac_file. $configure_input"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15849 $as_echo "$as_me: creating $ac_file" >&6;}
15850 fi
15851 # Neutralize special characters interpreted by sed in replacement strings.
15852 case $configure_input in #(
15853 *\&* | *\|* | *\\* )
15854 ac_sed_conf_input=`$as_echo "$configure_input" |
15855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15856 *) ac_sed_conf_input=$configure_input;;
15857 esac
15858
15859 case $ac_tag in
15860 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15862 esac
15863 ;;
15864 esac
15865
15866 ac_dir=`$as_dirname -- "$ac_file" ||
15867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868 X"$ac_file" : 'X\(//\)[^/]' \| \
15869 X"$ac_file" : 'X\(//\)$' \| \
15870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15871 $as_echo X"$ac_file" |
15872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\/\)[^/].*/{
15877 s//\1/
15878 q
15879 }
15880 /^X\(\/\/\)$/{
15881 s//\1/
15882 q
15883 }
15884 /^X\(\/\).*/{
15885 s//\1/
15886 q
15887 }
15888 s/.*/./; q'`
15889 as_dir="$ac_dir"; as_fn_mkdir_p
15890 ac_builddir=.
15891
15892 case "$ac_dir" in
15893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894 *)
15895 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15896 # A ".." for each directory in $ac_dir_suffix.
15897 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15898 case $ac_top_builddir_sub in
15899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15901 esac ;;
15902 esac
15903 ac_abs_top_builddir=$ac_pwd
15904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15905 # for backward compatibility:
15906 ac_top_builddir=$ac_top_build_prefix
15907
15908 case $srcdir in
15909 .) # We are building in place.
15910 ac_srcdir=.
15911 ac_top_srcdir=$ac_top_builddir_sub
15912 ac_abs_top_srcdir=$ac_pwd ;;
15913 [\\/]* | ?:[\\/]* ) # Absolute name.
15914 ac_srcdir=$srcdir$ac_dir_suffix;
15915 ac_top_srcdir=$srcdir
15916 ac_abs_top_srcdir=$srcdir ;;
15917 *) # Relative name.
15918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15919 ac_top_srcdir=$ac_top_build_prefix$srcdir
15920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15921 esac
15922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15923
15924
15925 case $ac_mode in
15926 :F)
15927 #
15928 # CONFIG_FILE
15929 #
15930
15931 case $INSTALL in
15932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15934 esac
15935 ac_MKDIR_P=$MKDIR_P
15936 case $MKDIR_P in
15937 [\\/$]* | ?:[\\/]* ) ;;
15938 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15939 esac
15940 _ACEOF
15941
15942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15943 # If the template does not know about datarootdir, expand it.
15944 # FIXME: This hack should be removed a few years after 2.60.
15945 ac_datarootdir_hack=; ac_datarootdir_seen=
15946 ac_sed_dataroot='
15947 /datarootdir/ {
15948 p
15949 q
15950 }
15951 /@datadir@/p
15952 /@docdir@/p
15953 /@infodir@/p
15954 /@localedir@/p
15955 /@mandir@/p'
15956 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15957 *datarootdir*) ac_datarootdir_seen=yes;;
15958 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15960 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15961 _ACEOF
15962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15963 ac_datarootdir_hack='
15964 s&@datadir@&$datadir&g
15965 s&@docdir@&$docdir&g
15966 s&@infodir@&$infodir&g
15967 s&@localedir@&$localedir&g
15968 s&@mandir@&$mandir&g
15969 s&\\\${datarootdir}&$datarootdir&g' ;;
15970 esac
15971 _ACEOF
15972
15973 # Neutralize VPATH when `$srcdir' = `.'.
15974 # Shell code in configure.ac might set extrasub.
15975 # FIXME: do we really want to maintain this feature?
15976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15977 ac_sed_extra="$ac_vpsub
15978 $extrasub
15979 _ACEOF
15980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981 :t
15982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15983 s|@configure_input@|$ac_sed_conf_input|;t t
15984 s&@top_builddir@&$ac_top_builddir_sub&;t t
15985 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15986 s&@srcdir@&$ac_srcdir&;t t
15987 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15988 s&@top_srcdir@&$ac_top_srcdir&;t t
15989 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15990 s&@builddir@&$ac_builddir&;t t
15991 s&@abs_builddir@&$ac_abs_builddir&;t t
15992 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15993 s&@INSTALL@&$ac_INSTALL&;t t
15994 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15995 $ac_datarootdir_hack
15996 "
15997 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15998 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15999
16000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16001 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16003 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005 which seems to be undefined. Please make sure it is defined" >&5
16006 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16007 which seems to be undefined. Please make sure it is defined" >&2;}
16008
16009 rm -f "$ac_tmp/stdin"
16010 case $ac_file in
16011 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16012 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16013 esac \
16014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16015 ;;
16016 :H)
16017 #
16018 # CONFIG_HEADER
16019 #
16020 if test x"$ac_file" != x-; then
16021 {
16022 $as_echo "/* $configure_input */" \
16023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16024 } >"$ac_tmp/config.h" \
16025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16026 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16028 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16029 else
16030 rm -f "$ac_file"
16031 mv "$ac_tmp/config.h" "$ac_file" \
16032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16033 fi
16034 else
16035 $as_echo "/* $configure_input */" \
16036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16037 || as_fn_error $? "could not create -" "$LINENO" 5
16038 fi
16039 # Compute "$ac_file"'s index in $config_headers.
16040 _am_arg="$ac_file"
16041 _am_stamp_count=1
16042 for _am_header in $config_headers :; do
16043 case $_am_header in
16044 $_am_arg | $_am_arg:* )
16045 break ;;
16046 * )
16047 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16048 esac
16049 done
16050 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16051 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16052 X"$_am_arg" : 'X\(//\)[^/]' \| \
16053 X"$_am_arg" : 'X\(//\)$' \| \
16054 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16055 $as_echo X"$_am_arg" |
16056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16057 s//\1/
16058 q
16059 }
16060 /^X\(\/\/\)[^/].*/{
16061 s//\1/
16062 q
16063 }
16064 /^X\(\/\/\)$/{
16065 s//\1/
16066 q
16067 }
16068 /^X\(\/\).*/{
16069 s//\1/
16070 q
16071 }
16072 s/.*/./; q'`/stamp-h$_am_stamp_count
16073 ;;
16074
16075 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16076 $as_echo "$as_me: executing $ac_file commands" >&6;}
16077 ;;
16078 esac
16079
16080
16081 case $ac_file$ac_mode in
16082 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16083 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16084 # are listed without --file. Let's play safe and only enable the eval
16085 # if we detect the quoting.
16086 case $CONFIG_FILES in
16087 *\'*) eval set x "$CONFIG_FILES" ;;
16088 *) set x $CONFIG_FILES ;;
16089 esac
16090 shift
16091 for mf
16092 do
16093 # Strip MF so we end up with the name of the file.
16094 mf=`echo "$mf" | sed -e 's/:.*$//'`
16095 # Check whether this is an Automake generated Makefile or not.
16096 # We used to match only the files named `Makefile.in', but
16097 # some people rename them; so instead we look at the file content.
16098 # Grep'ing the first line is not enough: some people post-process
16099 # each Makefile.in and add a new line on top of each file to say so.
16100 # Grep'ing the whole file is not good either: AIX grep has a line
16101 # limit of 2048, but all sed's we know have understand at least 4000.
16102 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16103 dirpart=`$as_dirname -- "$mf" ||
16104 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16105 X"$mf" : 'X\(//\)[^/]' \| \
16106 X"$mf" : 'X\(//\)$' \| \
16107 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16108 $as_echo X"$mf" |
16109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16110 s//\1/
16111 q
16112 }
16113 /^X\(\/\/\)[^/].*/{
16114 s//\1/
16115 q
16116 }
16117 /^X\(\/\/\)$/{
16118 s//\1/
16119 q
16120 }
16121 /^X\(\/\).*/{
16122 s//\1/
16123 q
16124 }
16125 s/.*/./; q'`
16126 else
16127 continue
16128 fi
16129 # Extract the definition of DEPDIR, am__include, and am__quote
16130 # from the Makefile without running `make'.
16131 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16132 test -z "$DEPDIR" && continue
16133 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16134 test -z "am__include" && continue
16135 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16136 # When using ansi2knr, U may be empty or an underscore; expand it
16137 U=`sed -n 's/^U = //p' < "$mf"`
16138 # Find all dependency output files, they are included files with
16139 # $(DEPDIR) in their names. We invoke sed twice because it is the
16140 # simplest approach to changing $(DEPDIR) to its actual value in the
16141 # expansion.
16142 for file in `sed -n "
16143 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16144 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16145 # Make sure the directory exists.
16146 test -f "$dirpart/$file" && continue
16147 fdir=`$as_dirname -- "$file" ||
16148 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16149 X"$file" : 'X\(//\)[^/]' \| \
16150 X"$file" : 'X\(//\)$' \| \
16151 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16152 $as_echo X"$file" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16154 s//\1/
16155 q
16156 }
16157 /^X\(\/\/\)[^/].*/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)$/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\).*/{
16166 s//\1/
16167 q
16168 }
16169 s/.*/./; q'`
16170 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16171 # echo "creating $dirpart/$file"
16172 echo '# dummy' > "$dirpart/$file"
16173 done
16174 done
16175 }
16176 ;;
16177 "libtool":C)
16178
16179 # See if we are running on zsh, and set the options which allow our
16180 # commands through without removal of \ escapes.
16181 if test -n "${ZSH_VERSION+set}" ; then
16182 setopt NO_GLOB_SUBST
16183 fi
16184
16185 cfgfile="${ofile}T"
16186 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16187 $RM "$cfgfile"
16188
16189 cat <<_LT_EOF >> "$cfgfile"
16190 #! $SHELL
16191
16192 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16193 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16195 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16196 #
16197 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16198 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16199 # Foundation, Inc.
16200 # Written by Gordon Matzigkeit, 1996
16201 #
16202 # This file is part of GNU Libtool.
16203 #
16204 # GNU Libtool is free software; you can redistribute it and/or
16205 # modify it under the terms of the GNU General Public License as
16206 # published by the Free Software Foundation; either version 2 of
16207 # the License, or (at your option) any later version.
16208 #
16209 # As a special exception to the GNU General Public License,
16210 # if you distribute this file as part of a program or library that
16211 # is built using GNU Libtool, you may include this file under the
16212 # same distribution terms that you use for the rest of that program.
16213 #
16214 # GNU Libtool is distributed in the hope that it will be useful,
16215 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16216 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16217 # GNU General Public License for more details.
16218 #
16219 # You should have received a copy of the GNU General Public License
16220 # along with GNU Libtool; see the file COPYING. If not, a copy
16221 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16222 # obtained by writing to the Free Software Foundation, Inc.,
16223 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16224
16225
16226 # The names of the tagged configurations supported by this script.
16227 available_tags=""
16228
16229 # ### BEGIN LIBTOOL CONFIG
16230
16231 # Whether or not to build static libraries.
16232 build_old_libs=$enable_static
16233
16234 # Whether or not to build shared libraries.
16235 build_libtool_libs=$enable_shared
16236
16237 # Which release of libtool.m4 was used?
16238 macro_version=$macro_version
16239 macro_revision=$macro_revision
16240
16241 # What type of objects to build.
16242 pic_mode=$pic_mode
16243
16244 # Whether or not to optimize for fast installation.
16245 fast_install=$enable_fast_install
16246
16247 # Shell to use when invoking shell scripts.
16248 SHELL=$lt_SHELL
16249
16250 # An echo program that protects backslashes.
16251 ECHO=$lt_ECHO
16252
16253 # The PATH separator for the build system.
16254 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16255
16256 # The host system.
16257 host_alias=$host_alias
16258 host=$host
16259 host_os=$host_os
16260
16261 # The build system.
16262 build_alias=$build_alias
16263 build=$build
16264 build_os=$build_os
16265
16266 # A sed program that does not truncate output.
16267 SED=$lt_SED
16268
16269 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16270 Xsed="\$SED -e 1s/^X//"
16271
16272 # A grep program that handles long lines.
16273 GREP=$lt_GREP
16274
16275 # An ERE matcher.
16276 EGREP=$lt_EGREP
16277
16278 # A literal string matcher.
16279 FGREP=$lt_FGREP
16280
16281 # A BSD- or MS-compatible name lister.
16282 NM=$lt_NM
16283
16284 # Whether we need soft or hard links.
16285 LN_S=$lt_LN_S
16286
16287 # What is the maximum length of a command?
16288 max_cmd_len=$max_cmd_len
16289
16290 # Object file suffix (normally "o").
16291 objext=$ac_objext
16292
16293 # Executable file suffix (normally "").
16294 exeext=$exeext
16295
16296 # whether the shell understands "unset".
16297 lt_unset=$lt_unset
16298
16299 # turn spaces into newlines.
16300 SP2NL=$lt_lt_SP2NL
16301
16302 # turn newlines into spaces.
16303 NL2SP=$lt_lt_NL2SP
16304
16305 # convert \$build file names to \$host format.
16306 to_host_file_cmd=$lt_cv_to_host_file_cmd
16307
16308 # convert \$build files to toolchain format.
16309 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16310
16311 # An object symbol dumper.
16312 OBJDUMP=$lt_OBJDUMP
16313
16314 # Method to check whether dependent libraries are shared objects.
16315 deplibs_check_method=$lt_deplibs_check_method
16316
16317 # Command to use when deplibs_check_method = "file_magic".
16318 file_magic_cmd=$lt_file_magic_cmd
16319
16320 # How to find potential files when deplibs_check_method = "file_magic".
16321 file_magic_glob=$lt_file_magic_glob
16322
16323 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16324 want_nocaseglob=$lt_want_nocaseglob
16325
16326 # DLL creation program.
16327 DLLTOOL=$lt_DLLTOOL
16328
16329 # Command to associate shared and link libraries.
16330 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16331
16332 # The archiver.
16333 AR=$lt_AR
16334
16335 # Flags to create an archive.
16336 AR_FLAGS=$lt_AR_FLAGS
16337
16338 # How to feed a file listing to the archiver.
16339 archiver_list_spec=$lt_archiver_list_spec
16340
16341 # A symbol stripping program.
16342 STRIP=$lt_STRIP
16343
16344 # Commands used to install an old-style archive.
16345 RANLIB=$lt_RANLIB
16346 old_postinstall_cmds=$lt_old_postinstall_cmds
16347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16348
16349 # Whether to use a lock for old archive extraction.
16350 lock_old_archive_extraction=$lock_old_archive_extraction
16351
16352 # A C compiler.
16353 LTCC=$lt_CC
16354
16355 # LTCC compiler flags.
16356 LTCFLAGS=$lt_CFLAGS
16357
16358 # Take the output of nm and produce a listing of raw symbols and C names.
16359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16360
16361 # Transform the output of nm in a proper C declaration.
16362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16363
16364 # Transform the output of nm in a C name address pair.
16365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16366
16367 # Transform the output of nm in a C name address pair when lib prefix is needed.
16368 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16369
16370 # Specify filename containing input files for \$NM.
16371 nm_file_list_spec=$lt_nm_file_list_spec
16372
16373 # The root where to search for dependent libraries,and in which our libraries should be installed.
16374 lt_sysroot=$lt_sysroot
16375
16376 # The name of the directory that contains temporary libtool files.
16377 objdir=$objdir
16378
16379 # Used to examine libraries when file_magic_cmd begins with "file".
16380 MAGIC_CMD=$MAGIC_CMD
16381
16382 # Must we lock files when doing compilation?
16383 need_locks=$lt_need_locks
16384
16385 # Manifest tool.
16386 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16387
16388 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16389 DSYMUTIL=$lt_DSYMUTIL
16390
16391 # Tool to change global to local symbols on Mac OS X.
16392 NMEDIT=$lt_NMEDIT
16393
16394 # Tool to manipulate fat objects and archives on Mac OS X.
16395 LIPO=$lt_LIPO
16396
16397 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16398 OTOOL=$lt_OTOOL
16399
16400 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16401 OTOOL64=$lt_OTOOL64
16402
16403 # Old archive suffix (normally "a").
16404 libext=$libext
16405
16406 # Shared library suffix (normally ".so").
16407 shrext_cmds=$lt_shrext_cmds
16408
16409 # The commands to extract the exported symbol list from a shared archive.
16410 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16411
16412 # Variables whose values should be saved in libtool wrapper scripts and
16413 # restored at link time.
16414 variables_saved_for_relink=$lt_variables_saved_for_relink
16415
16416 # Do we need the "lib" prefix for modules?
16417 need_lib_prefix=$need_lib_prefix
16418
16419 # Do we need a version for libraries?
16420 need_version=$need_version
16421
16422 # Library versioning type.
16423 version_type=$version_type
16424
16425 # Shared library runtime path variable.
16426 runpath_var=$runpath_var
16427
16428 # Shared library path variable.
16429 shlibpath_var=$shlibpath_var
16430
16431 # Is shlibpath searched before the hard-coded library search path?
16432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16433
16434 # Format of library name prefix.
16435 libname_spec=$lt_libname_spec
16436
16437 # List of archive names. First name is the real one, the rest are links.
16438 # The last name is the one that the linker finds with -lNAME
16439 library_names_spec=$lt_library_names_spec
16440
16441 # The coded name of the library, if different from the real name.
16442 soname_spec=$lt_soname_spec
16443
16444 # Permission mode override for installation of shared libraries.
16445 install_override_mode=$lt_install_override_mode
16446
16447 # Command to use after installation of a shared archive.
16448 postinstall_cmds=$lt_postinstall_cmds
16449
16450 # Command to use after uninstallation of a shared archive.
16451 postuninstall_cmds=$lt_postuninstall_cmds
16452
16453 # Commands used to finish a libtool library installation in a directory.
16454 finish_cmds=$lt_finish_cmds
16455
16456 # As "finish_cmds", except a single script fragment to be evaled but
16457 # not shown.
16458 finish_eval=$lt_finish_eval
16459
16460 # Whether we should hardcode library paths into libraries.
16461 hardcode_into_libs=$hardcode_into_libs
16462
16463 # Compile-time system search path for libraries.
16464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16465
16466 # Run-time system search path for libraries.
16467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16468
16469 # Whether dlopen is supported.
16470 dlopen_support=$enable_dlopen
16471
16472 # Whether dlopen of programs is supported.
16473 dlopen_self=$enable_dlopen_self
16474
16475 # Whether dlopen of statically linked programs is supported.
16476 dlopen_self_static=$enable_dlopen_self_static
16477
16478 # Commands to strip libraries.
16479 old_striplib=$lt_old_striplib
16480 striplib=$lt_striplib
16481
16482
16483 # The linker used to build libraries.
16484 LD=$lt_LD
16485
16486 # How to create reloadable object files.
16487 reload_flag=$lt_reload_flag
16488 reload_cmds=$lt_reload_cmds
16489
16490 # Commands used to build an old-style archive.
16491 old_archive_cmds=$lt_old_archive_cmds
16492
16493 # A language specific compiler.
16494 CC=$lt_compiler
16495
16496 # Is the compiler the GNU compiler?
16497 with_gcc=$GCC
16498
16499 # Compiler flag to turn off builtin functions.
16500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16501
16502 # Additional compiler flags for building library objects.
16503 pic_flag=$lt_lt_prog_compiler_pic
16504
16505 # How to pass a linker flag through the compiler.
16506 wl=$lt_lt_prog_compiler_wl
16507
16508 # Compiler flag to prevent dynamic linking.
16509 link_static_flag=$lt_lt_prog_compiler_static
16510
16511 # Does compiler simultaneously support -c and -o options?
16512 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16513
16514 # Whether or not to add -lc for building shared libraries.
16515 build_libtool_need_lc=$archive_cmds_need_lc
16516
16517 # Whether or not to disallow shared libs when runtime libs are static.
16518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16519
16520 # Compiler flag to allow reflexive dlopens.
16521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16522
16523 # Compiler flag to generate shared objects directly from archives.
16524 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16525
16526 # Whether the compiler copes with passing no objects directly.
16527 compiler_needs_object=$lt_compiler_needs_object
16528
16529 # Create an old-style archive from a shared archive.
16530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16531
16532 # Create a temporary old-style archive to link instead of a shared archive.
16533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16534
16535 # Commands used to build a shared archive.
16536 archive_cmds=$lt_archive_cmds
16537 archive_expsym_cmds=$lt_archive_expsym_cmds
16538
16539 # Commands used to build a loadable module if different from building
16540 # a shared archive.
16541 module_cmds=$lt_module_cmds
16542 module_expsym_cmds=$lt_module_expsym_cmds
16543
16544 # Whether we are building with GNU ld or not.
16545 with_gnu_ld=$lt_with_gnu_ld
16546
16547 # Flag that allows shared libraries with undefined symbols to be built.
16548 allow_undefined_flag=$lt_allow_undefined_flag
16549
16550 # Flag that enforces no undefined symbols.
16551 no_undefined_flag=$lt_no_undefined_flag
16552
16553 # Flag to hardcode \$libdir into a binary during linking.
16554 # This must work even if \$libdir does not exist
16555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16556
16557 # Whether we need a single "-rpath" flag with a separated argument.
16558 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16559
16560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16561 # DIR into the resulting binary.
16562 hardcode_direct=$hardcode_direct
16563
16564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16565 # DIR into the resulting binary and the resulting library dependency is
16566 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16567 # library is relocated.
16568 hardcode_direct_absolute=$hardcode_direct_absolute
16569
16570 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16571 # into the resulting binary.
16572 hardcode_minus_L=$hardcode_minus_L
16573
16574 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16575 # into the resulting binary.
16576 hardcode_shlibpath_var=$hardcode_shlibpath_var
16577
16578 # Set to "yes" if building a shared library automatically hardcodes DIR
16579 # into the library and all subsequent libraries and executables linked
16580 # against it.
16581 hardcode_automatic=$hardcode_automatic
16582
16583 # Set to yes if linker adds runtime paths of dependent libraries
16584 # to runtime path list.
16585 inherit_rpath=$inherit_rpath
16586
16587 # Whether libtool must link a program against all its dependency libraries.
16588 link_all_deplibs=$link_all_deplibs
16589
16590 # Set to "yes" if exported symbols are required.
16591 always_export_symbols=$always_export_symbols
16592
16593 # The commands to list exported symbols.
16594 export_symbols_cmds=$lt_export_symbols_cmds
16595
16596 # Symbols that should not be listed in the preloaded symbols.
16597 exclude_expsyms=$lt_exclude_expsyms
16598
16599 # Symbols that must always be exported.
16600 include_expsyms=$lt_include_expsyms
16601
16602 # Commands necessary for linking programs (against libraries) with templates.
16603 prelink_cmds=$lt_prelink_cmds
16604
16605 # Commands necessary for finishing linking programs.
16606 postlink_cmds=$lt_postlink_cmds
16607
16608 # Specify filename containing input files.
16609 file_list_spec=$lt_file_list_spec
16610
16611 # How to hardcode a shared library path into an executable.
16612 hardcode_action=$hardcode_action
16613
16614 # ### END LIBTOOL CONFIG
16615
16616 _LT_EOF
16617
16618 case $host_os in
16619 aix3*)
16620 cat <<\_LT_EOF >> "$cfgfile"
16621 # AIX sometimes has problems with the GCC collect2 program. For some
16622 # reason, if we set the COLLECT_NAMES environment variable, the problems
16623 # vanish in a puff of smoke.
16624 if test "X${COLLECT_NAMES+set}" != Xset; then
16625 COLLECT_NAMES=
16626 export COLLECT_NAMES
16627 fi
16628 _LT_EOF
16629 ;;
16630 esac
16631
16632
16633 ltmain="$ac_aux_dir/ltmain.sh"
16634
16635
16636 # We use sed instead of cat because bash on DJGPP gets confused if
16637 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16638 # text mode, it properly converts lines to CR/LF. This bash problem
16639 # is reportedly fixed, but why not run on old versions too?
16640 sed '$q' "$ltmain" >> "$cfgfile" \
16641 || (rm -f "$cfgfile"; exit 1)
16642
16643 if test x"$xsi_shell" = xyes; then
16644 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16645 func_dirname ()\
16646 {\
16647 \ case ${1} in\
16648 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16649 \ * ) func_dirname_result="${3}" ;;\
16650 \ esac\
16651 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16652 && mv -f "$cfgfile.tmp" "$cfgfile" \
16653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16654 test 0 -eq $? || _lt_function_replace_fail=:
16655
16656
16657 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16658 func_basename ()\
16659 {\
16660 \ func_basename_result="${1##*/}"\
16661 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16662 && mv -f "$cfgfile.tmp" "$cfgfile" \
16663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16664 test 0 -eq $? || _lt_function_replace_fail=:
16665
16666
16667 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16668 func_dirname_and_basename ()\
16669 {\
16670 \ case ${1} in\
16671 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16672 \ * ) func_dirname_result="${3}" ;;\
16673 \ esac\
16674 \ func_basename_result="${1##*/}"\
16675 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16676 && mv -f "$cfgfile.tmp" "$cfgfile" \
16677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16678 test 0 -eq $? || _lt_function_replace_fail=:
16679
16680
16681 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16682 func_stripname ()\
16683 {\
16684 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16685 \ # positional parameters, so assign one to ordinary parameter first.\
16686 \ func_stripname_result=${3}\
16687 \ func_stripname_result=${func_stripname_result#"${1}"}\
16688 \ func_stripname_result=${func_stripname_result%"${2}"}\
16689 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16690 && mv -f "$cfgfile.tmp" "$cfgfile" \
16691 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16692 test 0 -eq $? || _lt_function_replace_fail=:
16693
16694
16695 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16696 func_split_long_opt ()\
16697 {\
16698 \ func_split_long_opt_name=${1%%=*}\
16699 \ func_split_long_opt_arg=${1#*=}\
16700 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16701 && mv -f "$cfgfile.tmp" "$cfgfile" \
16702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16703 test 0 -eq $? || _lt_function_replace_fail=:
16704
16705
16706 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16707 func_split_short_opt ()\
16708 {\
16709 \ func_split_short_opt_arg=${1#??}\
16710 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16711 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16712 && mv -f "$cfgfile.tmp" "$cfgfile" \
16713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16714 test 0 -eq $? || _lt_function_replace_fail=:
16715
16716
16717 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16718 func_lo2o ()\
16719 {\
16720 \ case ${1} in\
16721 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16722 \ *) func_lo2o_result=${1} ;;\
16723 \ esac\
16724 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16725 && mv -f "$cfgfile.tmp" "$cfgfile" \
16726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16727 test 0 -eq $? || _lt_function_replace_fail=:
16728
16729
16730 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16731 func_xform ()\
16732 {\
16733 func_xform_result=${1%.*}.lo\
16734 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16735 && mv -f "$cfgfile.tmp" "$cfgfile" \
16736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16737 test 0 -eq $? || _lt_function_replace_fail=:
16738
16739
16740 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16741 func_arith ()\
16742 {\
16743 func_arith_result=$(( $* ))\
16744 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16745 && mv -f "$cfgfile.tmp" "$cfgfile" \
16746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747 test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750 sed -e '/^func_len ()$/,/^} # func_len /c\
16751 func_len ()\
16752 {\
16753 func_len_result=${#1}\
16754 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16755 && mv -f "$cfgfile.tmp" "$cfgfile" \
16756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16757 test 0 -eq $? || _lt_function_replace_fail=:
16758
16759 fi
16760
16761 if test x"$lt_shell_append" = xyes; then
16762 sed -e '/^func_append ()$/,/^} # func_append /c\
16763 func_append ()\
16764 {\
16765 eval "${1}+=\\${2}"\
16766 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16767 && mv -f "$cfgfile.tmp" "$cfgfile" \
16768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16769 test 0 -eq $? || _lt_function_replace_fail=:
16770
16771
16772 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16773 func_append_quoted ()\
16774 {\
16775 \ func_quote_for_eval "${2}"\
16776 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16777 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16778 && mv -f "$cfgfile.tmp" "$cfgfile" \
16779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780 test 0 -eq $? || _lt_function_replace_fail=:
16781
16782
16783 # Save a `func_append' function call where possible by direct use of '+='
16784 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16785 && mv -f "$cfgfile.tmp" "$cfgfile" \
16786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16787 test 0 -eq $? || _lt_function_replace_fail=:
16788 else
16789 # Save a `func_append' function call even when '+=' is not available
16790 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16791 && mv -f "$cfgfile.tmp" "$cfgfile" \
16792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16793 test 0 -eq $? || _lt_function_replace_fail=:
16794 fi
16795
16796 if test x"$_lt_function_replace_fail" = x":"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16798 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16799 fi
16800
16801
16802 mv -f "$cfgfile" "$ofile" ||
16803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16804 chmod +x "$ofile"
16805
16806 ;;
16807 "include/librb-config.h":C)
16808 outfile=include/librb-config.h.tmp
16809 cat > $outfile <<\_______EOF
16810 /*
16811 * librb-config.h: libratbox config file. Please modify configure.ac
16812 */
16813
16814 #ifndef __LIBRB_CONFIG_H
16815 #define __LIBRB_CONFIG_H
16816
16817 _______EOF
16818
16819 if test "x$rb_have_ipv6" = "xyes"; then
16820 echo "#define RB_IPV6 1" >> $outfile
16821 fi
16822
16823 if test "x$rb_windows_h" = "xyes"; then
16824 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
16825 echo '#include <windows.h>' >> $outfile
16826 echo '#include <winsock2.h>' >> $outfile
16827 echo '#include <iphlpapi.h>' >> $outfile
16828 fi
16829
16830 if test "x$rb_alloca_h" = "xyes"; then
16831 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
16832 fi
16833
16834 if test "x$rb_header_stdc" = "xyes"; then
16835 echo '#include <stdlib.h>' >> $outfile
16836 echo '#include <stddef.h>' >> $outfile
16837 elif test "x$rb_header_stdlib" = "xyes"; then
16838 echo '#include <stdlib.h>' >> $outfile
16839 fi
16840
16841 if test "x$rb_header_string_h" = "xyes"; then
16842 echo '#include <string.h>' >> $outfile
16843 fi
16844
16845 if test "x$rb_stdint_h" = "xyes"; then
16846 echo '#include <stdint.h>' >> $outfile
16847 fi
16848
16849 if test "x$rb_inttypes_h" = "xyes"; then
16850 echo '#include <inttypes.h>' >> $outfile
16851 fi
16852
16853 if test "x$rb_sys_types_h" = "xyes"; then
16854 echo '#include <sys/types.h>' >> $outfile
16855 fi
16856 if test "x$rb_sys_time_h" = "xyes"; then
16857 echo '#include <sys/time.h>' >> $outfile
16858 fi
16859 if test "x$rb_sys_stat_h" = "xyes"; then
16860 echo '#include <sys/stat.h>' >> $outfile
16861 fi
16862 if test "x$rb_time_h" = "xyes"; then
16863 echo '#include <time.h>' >> $outfile
16864 fi
16865
16866 if test "x$rb_sys_socket_h" = "xyes"; then
16867 echo '#include <sys/socket.h>' >> $outfile
16868 fi
16869
16870 if test "x$rb_netinet_in_h" = "xyes"; then
16871 echo '#include <netinet/in.h>' >> $outfile
16872 fi
16873
16874 if test "x$rb_arpa_inet_h" = "xyes"; then
16875 echo '#include <arpa/inet.h>' >> $outfile
16876 fi
16877
16878 if test "x$rb_unistd_h" = "xyes"; then
16879 echo '#include <unistd.h>' >> $outfile
16880 fi
16881
16882 if test "x$rb_crypt_h" = "xyes"; then
16883 echo '#include <crypt.h>' >> $outfile
16884 fi
16885
16886 if test "x$rb_errno_h" = "xyes"; then
16887 echo '#include <errno.h>' >> $outfile
16888 fi
16889
16890 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16891
16892
16893 if test "x$rb_sockaddr_sa_len" = "xyes"; then
16894 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16895 fi
16896
16897 if test "x$rb_sockaddr_storage" = "xyes"; then
16898 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16899 else
16900 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
16901 fi
16902
16903 cat >> $outfile <<\_______EOF
16904 #endif /* __LIBRB_CONFIG_H */
16905 _______EOF
16906
16907 if cmp -s $outfile include/librb-config.h; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
16909 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
16910 ${rb_rm} -f $outfile
16911 else
16912 ${rb_mv} $outfile include/librb-config.h
16913 fi
16914
16915 ;;
16916
16917 esac
16918 done # for ac_tag
16919
16920
16921 as_fn_exit 0
16922 _ACEOF
16923 ac_clean_files=$ac_clean_files_save
16924
16925 test $ac_write_fail = 0 ||
16926 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16927
16928
16929 # configure is writing to config.log, and then calls config.status.
16930 # config.status does its own redirection, appending to config.log.
16931 # Unfortunately, on DOS this fails, as config.log is still kept open
16932 # by configure, so config.status won't be able to write to it; its
16933 # output is simply discarded. So we exec the FD to /dev/null,
16934 # effectively closing config.log, so it can be properly (re)opened and
16935 # appended to by config.status. When coming back to configure, we
16936 # need to make the FD available again.
16937 if test "$no_create" != yes; then
16938 ac_cs_success=:
16939 ac_config_status_args=
16940 test "$silent" = yes &&
16941 ac_config_status_args="$ac_config_status_args --quiet"
16942 exec 5>/dev/null
16943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16944 exec 5>>config.log
16945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16946 # would make configure fail if this is the last instruction.
16947 $ac_cs_success || as_fn_exit 1
16948 fi
16949 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16951 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16952 fi
16953
16954
16955
16956 echo
16957 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16958 echo
16959
16960 echo "Installing into: $prefix"
16961
16962 echo "IPv6 support ................... $have_v6"
16963 echo "Assert debugging ............... $assert"
16964 echo "Block allocator ................ $balloc"
16965 echo "SSL Type........................ $SSL_TYPE"
16966 echo
16967