]> jfr.im git - solanum.git/blob - libratbox/configure
Port ircd-seven banfowards to charybdis.
[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 GNUTLS_LIBS
625 GNUTLS_CFLAGS
626 PKG_CONFIG
627 ALLOCA
628 MINGW_FALSE
629 MINGW_TRUE
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
636 RANLIB
637 ac_ct_AR
638 AR
639 DLLTOOL
640 OBJDUMP
641 LN_S
642 NM
643 ac_ct_DUMPBIN
644 DUMPBIN
645 LD
646 FGREP
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 LIBTOOL
656 TOUCH
657 LN
658 MV
659 CP
660 RM
661 AS
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 SED
666 EGREP
667 GREP
668 CPP
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_dependency_tracking
750 enable_static
751 enable_shared
752 enable_maintainer_mode
753 with_pic
754 enable_fast_install
755 with_gnu_ld
756 with_sysroot
757 enable_libtool_lock
758 enable_ipv6
759 enable_openssl
760 enable_gnutls
761 enable_assert
762 enable_profile
763 enable_balloc
764 enable_warnings
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP
775 PKG_CONFIG
776 GNUTLS_CFLAGS
777 GNUTLS_LIBS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures libratbox devel to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of libratbox devel:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-static[=PKGS] build static libraries [default=no]
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-maintainer-mode enable make rules and dependencies not useful
1403 (and sometimes confusing) to the casual installer
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --disable-ipv6 Disable IPv6 support
1408 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1409 --disable-openssl Disable OpenSSL support.
1410 --enable-gnutls Enable GnuTLS support.
1411 --disable-gnutls Disable GnuTLS support.
1412 --enable-assert Enable assert(). Choose between soft(warnings) and
1413 hard(aborts the daemon)
1414 --enable-profile Enable profiling
1415 --disable-balloc Disable the block allocator.
1416 --enable-warnings Enable all sorts of warnings for debugging.
1417
1418 Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-pic try to use only PIC/non-PIC objects [default=use
1422 both]
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1424 --with-sysroot=DIR Search for dependent libraries within DIR
1425 (or the compiler's sysroot if not specified).
1426
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
1436 PKG_CONFIG path to pkg-config utility
1437 GNUTLS_CFLAGS
1438 C compiler flags for GNUTLS, overriding pkg-config
1439 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 libratbox configure devel
1508 generated by GNU Autoconf 2.68
1509
1510 Copyright (C) 2010 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513
1514 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_cpp ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_cpp
1597
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1602 # accordingly.
1603 ac_fn_c_check_header_mongrel ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if eval \${$3+:} false; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611 fi
1612 eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1615 else
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1626 else
1627 ac_header_compiler=no
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1632
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1642 else
1643 ac_header_preproc=no
1644 fi
1645 rm -f conftest.err conftest.i conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1648
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 yes:no: )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 ;;
1657 no:yes:* )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ;;
1669 esac
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 eval "$3=\$ac_header_compiler"
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_mongrel
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 $4
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745 eval "$3=yes"
1746 else
1747 eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_link ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 $as_test_x conftest$ac_exeext
1786 }; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793 fi
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_link
1803
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814 else
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819 #define $2 innocuous_$2
1820
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1825
1826 #ifdef __STDC__
1827 # include <limits.h>
1828 #else
1829 # include <assert.h>
1830 #endif
1831
1832 #undef $2
1833
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1837 #ifdef __cplusplus
1838 extern "C"
1839 #endif
1840 char $2 ();
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1845 choke me
1846 #endif
1847
1848 int
1849 main ()
1850 {
1851 return $2 ();
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_link "$LINENO"; then :
1857 eval "$3=yes"
1858 else
1859 eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_func
1870
1871 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1872 # -------------------------------------------
1873 # Tests whether TYPE exists after having included INCLUDES, setting cache
1874 # variable VAR accordingly.
1875 ac_fn_c_check_type ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 eval "$3=no"
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main ()
1902 {
1903 if (sizeof (($2)))
1904 return 0;
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910
1911 else
1912 eval "$3=yes"
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_type
1924
1925 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1926 # ----------------------------------------------------
1927 # Tries to find if the field MEMBER exists in type AGGR, after including
1928 # INCLUDES, setting cache variable VAR accordingly.
1929 ac_fn_c_check_member ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1933 $as_echo_n "checking for $2.$3... " >&6; }
1934 if eval \${$4+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $5
1940 int
1941 main ()
1942 {
1943 static $2 ac_aggr;
1944 if (ac_aggr.$3)
1945 return 0;
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$4=yes"
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $5
1956 int
1957 main ()
1958 {
1959 static $2 ac_aggr;
1960 if (sizeof ac_aggr.$3)
1961 return 0;
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 eval "$4=yes"
1968 else
1969 eval "$4=no"
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 eval ac_res=\$$4
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980 } # ac_fn_c_check_member
1981 cat >config.log <<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1984
1985 It was created by libratbox $as_me devel, which was
1986 generated by GNU Autoconf 2.68. Invocation command line was
1987
1988 $ $0 $@
1989
1990 _ACEOF
1991 exec 5>>config.log
1992 {
1993 cat <<_ASUNAME
1994 ## --------- ##
1995 ## Platform. ##
1996 ## --------- ##
1997
1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003
2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006
2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014
2015 _ASUNAME
2016
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 $as_echo "PATH: $as_dir"
2023 done
2024 IFS=$as_save_IFS
2025
2026 } >&5
2027
2028 cat >&5 <<_ACEOF
2029
2030
2031 ## ----------- ##
2032 ## Core tests. ##
2033 ## ----------- ##
2034
2035 _ACEOF
2036
2037
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2043 ac_configure_args=
2044 ac_configure_args0=
2045 ac_configure_args1=
2046 ac_must_keep_next=false
2047 for ac_pass in 1 2
2048 do
2049 for ac_arg
2050 do
2051 case $ac_arg in
2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2054 | -silent | --silent | --silen | --sile | --sil)
2055 continue ;;
2056 *\'*)
2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2058 esac
2059 case $ac_pass in
2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 2)
2062 as_fn_append ac_configure_args1 " '$ac_arg'"
2063 if test $ac_must_keep_next = true; then
2064 ac_must_keep_next=false # Got value, back to normal.
2065 else
2066 case $ac_arg in
2067 *=* | --config-cache | -C | -disable-* | --disable-* \
2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2070 | -with-* | --with-* | -without-* | --without-* | --x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2073 esac
2074 ;;
2075 -* ) ac_must_keep_next=true ;;
2076 esac
2077 fi
2078 as_fn_append ac_configure_args " '$ac_arg'"
2079 ;;
2080 esac
2081 done
2082 done
2083 { ac_configure_args0=; unset ac_configure_args0;}
2084 { ac_configure_args1=; unset ac_configure_args1;}
2085
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2093 {
2094 echo
2095
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2099 echo
2100 # The following way of writing the cache mishandles newlines in values,
2101 (
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in #(
2105 *${as_nl}*)
2106 case $ac_var in #(
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 esac
2110 case $ac_var in #(
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2114 esac ;;
2115 esac
2116 done
2117 (set) 2>&1 |
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2120 sed -n \
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 ;; #(
2124 *)
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 ;;
2127 esac |
2128 sort
2129 )
2130 echo
2131
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2135 echo
2136 for ac_var in $ac_subst_vars
2137 do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 esac
2142 $as_echo "$ac_var='\''$ac_val'\''"
2143 done | sort
2144 echo
2145
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2150 echo
2151 for ac_var in $ac_subst_files
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2160 fi
2161
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2164 ## confdefs.h. ##
2165 ## ----------- ##"
2166 echo
2167 cat confdefs.h
2168 echo
2169 fi
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2173 } >&5
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 exit $exit_status
2177 ' 0
2178 for ac_signal in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2180 done
2181 ac_signal=0
2182
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest* confdefs.h
2185
2186 $as_echo "/* confdefs.h */" > confdefs.h
2187
2188 # Predefined preprocessor variables.
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2212 _ACEOF
2213
2214
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2217 ac_site_file1=NONE
2218 ac_site_file2=NONE
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1=./$CONFIG_SITE;;
2223 */*) ac_site_file1=$CONFIG_SITE;;
2224 *) ac_site_file1=./$CONFIG_SITE;;
2225 esac
2226 elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2229 else
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2232 fi
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 do
2235 test "x$ac_site_file" = xNONE && continue
2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2240 . "$ac_site_file" \
2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $? "failed to load site script $ac_site_file
2244 See \`config.log' for more details" "$LINENO" 5; }
2245 fi
2246 done
2247
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2254 case $cache_file in
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2257 esac
2258 fi
2259 else
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2262 >$cache_file
2263 fi
2264
2265 as_fn_append ac_header_list " stdlib.h"
2266 as_fn_append ac_header_list " unistd.h"
2267 as_fn_append ac_header_list " sys/param.h"
2268 # Check that the precious variables saved in the cache have kept the same
2269 # value.
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,set)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315 esac
2316 fi
2317 done
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 fi
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336 am__api_version='1.11'
2337
2338 ac_aux_dir=
2339 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2340 if test -f "$ac_dir/install-sh"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/install-sh -c"
2343 break
2344 elif test -f "$ac_dir/install.sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install.sh -c"
2347 break
2348 elif test -f "$ac_dir/shtool"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/shtool install -c"
2351 break
2352 fi
2353 done
2354 if test -z "$ac_aux_dir"; then
2355 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2356 fi
2357
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2365
2366
2367 # Find a good install program. We prefer a C program (faster),
2368 # so one script is as good as another. But avoid the broken or
2369 # incompatible versions:
2370 # SysV /etc/install, /usr/sbin/install
2371 # SunOS /usr/etc/install
2372 # IRIX /sbin/install
2373 # AIX /bin/install
2374 # AmigaOS /C/install, which installs bootblocks on floppy discs
2375 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378 # OS/2's system install, which has a completely different semantic
2379 # ./install, which can be erroneously created by make from ./install.sh.
2380 # Reject install programs that cannot install multiple files.
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2382 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2383 if test -z "$INSTALL"; then
2384 if ${ac_cv_path_install+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 # Account for people who put trailing slashes in PATH elements.
2393 case $as_dir/ in #((
2394 ./ | .// | /[cC]/* | \
2395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2396 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2397 /usr/ucb/* ) ;;
2398 *)
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2401 # by default.
2402 for ac_prog in ginstall scoinst install; do
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2405 if test $ac_prog = install &&
2406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # AIX install. It has an incompatible calling convention.
2408 :
2409 elif test $ac_prog = install &&
2410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # program-specific install script used by HP pwplus--don't use.
2412 :
2413 else
2414 rm -rf conftest.one conftest.two conftest.dir
2415 echo one > conftest.one
2416 echo two > conftest.two
2417 mkdir conftest.dir
2418 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2419 test -s conftest.one && test -s conftest.two &&
2420 test -s conftest.dir/conftest.one &&
2421 test -s conftest.dir/conftest.two
2422 then
2423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2424 break 3
2425 fi
2426 fi
2427 fi
2428 done
2429 done
2430 ;;
2431 esac
2432
2433 done
2434 IFS=$as_save_IFS
2435
2436 rm -rf conftest.one conftest.two conftest.dir
2437
2438 fi
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL=$ac_cv_path_install
2441 else
2442 # As a last resort, use the slow shell script. Don't cache a
2443 # value for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the value is a relative name.
2446 INSTALL=$ac_install_sh
2447 fi
2448 fi
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2450 $as_echo "$INSTALL" >&6; }
2451
2452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453 # It thinks the first close brace ends the variable substitution.
2454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455
2456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2457
2458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2461 $as_echo_n "checking whether build environment is sane... " >&6; }
2462 # Just in case
2463 sleep 1
2464 echo timestamp > conftest.file
2465 # Reject unsafe characters in $srcdir or the absolute working directory
2466 # name. Accept space and tab only in the latter.
2467 am_lf='
2468 '
2469 case `pwd` in
2470 *[\\\"\#\$\&\'\`$am_lf]*)
2471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2472 esac
2473 case $srcdir in
2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2475 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2476 esac
2477
2478 # Do `set' in a subshell so we don't clobber the current shell's
2479 # arguments. Must try -L first in case configure is actually a
2480 # symlink; some systems play weird games with the mod time of symlinks
2481 # (eg FreeBSD returns the mod time of the symlink's containing
2482 # directory).
2483 if (
2484 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2485 if test "$*" = "X"; then
2486 # -L didn't work.
2487 set X `ls -t "$srcdir/configure" conftest.file`
2488 fi
2489 rm -f conftest.file
2490 if test "$*" != "X $srcdir/configure conftest.file" \
2491 && test "$*" != "X conftest.file $srcdir/configure"; then
2492
2493 # If neither matched, then we have a broken ls. This can happen
2494 # if, for instance, CONFIG_SHELL is bash and it inherits a
2495 # broken ls alias from the environment. This has actually
2496 # happened. Such a system could not be considered "sane".
2497 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2498 alias in your environment" "$LINENO" 5
2499 fi
2500
2501 test "$2" = conftest.file
2502 )
2503 then
2504 # Ok.
2505 :
2506 else
2507 as_fn_error $? "newly created file is older than distributed files!
2508 Check your system clock" "$LINENO" 5
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511 $as_echo "yes" >&6; }
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522 # expand $ac_aux_dir to an absolute path
2523 am_aux_dir=`cd $ac_aux_dir && pwd`
2524
2525 if test x"${MISSING+set}" != xset; then
2526 case $am_aux_dir in
2527 *\ * | *\ *)
2528 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2529 *)
2530 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2531 esac
2532 fi
2533 # Use eval to expand $SHELL
2534 if eval "$MISSING --run true"; then
2535 am_missing_run="$MISSING --run "
2536 else
2537 am_missing_run=
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2539 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2540 fi
2541
2542 if test x"${install_sh}" != xset; then
2543 case $am_aux_dir in
2544 *\ * | *\ *)
2545 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2546 *)
2547 install_sh="\${SHELL} $am_aux_dir/install-sh"
2548 esac
2549 fi
2550
2551 # Installed binaries are usually stripped using `strip' when the user
2552 # run `make install-strip'. However `strip' might not be the right
2553 # tool to use in cross-compilation environments, therefore Automake
2554 # will honor the `STRIP' environment variable to overrule this program.
2555 if test "$cross_compiling" != no; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}strip; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_STRIP+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test -n "$STRIP"; then
2565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 STRIP=$ac_cv_prog_STRIP
2585 if test -n "$STRIP"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2587 $as_echo "$STRIP" >&6; }
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2591 fi
2592
2593
2594 fi
2595 if test -z "$ac_cv_prog_STRIP"; then
2596 ac_ct_STRIP=$STRIP
2597 # Extract the first word of "strip", so it can be a program name with args.
2598 set dummy strip; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$ac_ct_STRIP"; then
2605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_STRIP="strip"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2625 if test -n "$ac_ct_STRIP"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2627 $as_echo "$ac_ct_STRIP" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633 if test "x$ac_ct_STRIP" = x; then
2634 STRIP=":"
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642 STRIP=$ac_ct_STRIP
2643 fi
2644 else
2645 STRIP="$ac_cv_prog_STRIP"
2646 fi
2647
2648 fi
2649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2652 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2653 if test -z "$MKDIR_P"; then
2654 if ${ac_cv_path_mkdir+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_prog in mkdir gmkdir; do
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2665 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2666 'mkdir (GNU coreutils) '* | \
2667 'mkdir (coreutils) '* | \
2668 'mkdir (fileutils) '4.1*)
2669 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2670 break 3;;
2671 esac
2672 done
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678
2679 test -d ./--version && rmdir ./--version
2680 if test "${ac_cv_path_mkdir+set}" = set; then
2681 MKDIR_P="$ac_cv_path_mkdir -p"
2682 else
2683 # As a last resort, use the slow shell script. Don't cache a
2684 # value for MKDIR_P within a source directory, because that will
2685 # break other packages using the cache if that directory is
2686 # removed, or if the value is a relative name.
2687 MKDIR_P="$ac_install_sh -d"
2688 fi
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2691 $as_echo "$MKDIR_P" >&6; }
2692
2693 mkdir_p="$MKDIR_P"
2694 case $mkdir_p in
2695 [\\/$]* | ?:[\\/]*) ;;
2696 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2697 esac
2698
2699 for ac_prog in gawk mawk nawk awk
2700 do
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_AWK+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$AWK"; then
2709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_AWK="$ac_prog"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 AWK=$ac_cv_prog_AWK
2729 if test -n "$AWK"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2731 $as_echo "$AWK" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738 test -n "$AWK" && break
2739 done
2740
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2742 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2743 set x ${MAKE-make}
2744 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2745 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat >conftest.make <<\_ACEOF
2749 SHELL = /bin/sh
2750 all:
2751 @echo '@@@%%%=$(MAKE)=@@@%%%'
2752 _ACEOF
2753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2754 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2755 *@@@%%%=?*=@@@%%%*)
2756 eval ac_cv_prog_make_${ac_make}_set=yes;;
2757 *)
2758 eval ac_cv_prog_make_${ac_make}_set=no;;
2759 esac
2760 rm -f conftest.make
2761 fi
2762 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2765 SET_MAKE=
2766 else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 SET_MAKE="MAKE=${MAKE-make}"
2770 fi
2771
2772 rm -rf .tst 2>/dev/null
2773 mkdir .tst 2>/dev/null
2774 if test -d .tst; then
2775 am__leading_dot=.
2776 else
2777 am__leading_dot=_
2778 fi
2779 rmdir .tst 2>/dev/null
2780
2781 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2782 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2783 # is not polluted with repeated "-I."
2784 am__isrc=' -I$(srcdir)'
2785 # test to see if srcdir already configured
2786 if test -f $srcdir/config.status; then
2787 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2788 fi
2789 fi
2790
2791 # test whether we have cygpath
2792 if test -z "$CYGPATH_W"; then
2793 if (cygpath --version) >/dev/null 2>/dev/null; then
2794 CYGPATH_W='cygpath -w'
2795 else
2796 CYGPATH_W=echo
2797 fi
2798 fi
2799
2800
2801 # Define the identity of the package.
2802 PACKAGE=libratbox
2803 VERSION=devel
2804
2805
2806 # Some tools Automake needs.
2807
2808 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
2822 # We need awk for the "check" target. The system "awk" is bad on
2823 # some platforms.
2824 # Always define AMTAR for backward compatibility.
2825
2826 AMTAR=${AMTAR-"${am_missing_run}tar"}
2827
2828 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2829
2830
2831
2832
2833
2834
2835 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2836
2837
2838
2839 DEPDIR="${am__leading_dot}deps"
2840
2841 ac_config_commands="$ac_config_commands depfiles"
2842
2843
2844 am_make=${MAKE-make}
2845 cat > confinc << 'END'
2846 am__doit:
2847 @echo this is the am__doit target
2848 .PHONY: am__doit
2849 END
2850 # If we don't find an include directive, just comment out the code.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2852 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2853 am__include="#"
2854 am__quote=
2855 _am_result=none
2856 # First try GNU make style include.
2857 echo "include confinc" > confmf
2858 # Ignore all kinds of additional output from `make'.
2859 case `$am_make -s -f confmf 2> /dev/null` in #(
2860 *the\ am__doit\ target*)
2861 am__include=include
2862 am__quote=
2863 _am_result=GNU
2864 ;;
2865 esac
2866 # Now try BSD make style include.
2867 if test "$am__include" = "#"; then
2868 echo '.include "confinc"' > confmf
2869 case `$am_make -s -f confmf 2> /dev/null` in #(
2870 *the\ am__doit\ target*)
2871 am__include=.include
2872 am__quote="\""
2873 _am_result=BSD
2874 ;;
2875 esac
2876 fi
2877
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2880 $as_echo "$_am_result" >&6; }
2881 rm -f confinc confmf
2882
2883 # Check whether --enable-dependency-tracking was given.
2884 if test "${enable_dependency_tracking+set}" = set; then :
2885 enableval=$enable_dependency_tracking;
2886 fi
2887
2888 if test "x$enable_dependency_tracking" != xno; then
2889 am_depcomp="$ac_aux_dir/depcomp"
2890 AMDEPBACKSLASH='\'
2891 fi
2892 if test "x$enable_dependency_tracking" != xno; then
2893 AMDEP_TRUE=
2894 AMDEP_FALSE='#'
2895 else
2896 AMDEP_TRUE='#'
2897 AMDEP_FALSE=
2898 fi
2899
2900
2901 ac_ext=c
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906 if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2908 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_CC+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 fi
2945 if test -z "$ac_cv_prog_CC"; then
2946 ac_ct_CC=$CC
2947 # Extract the first word of "gcc", so it can be a program name with args.
2948 set dummy gcc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$ac_ct_CC"; then
2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_ac_ct_CC="gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 $as_echo "$ac_ct_CC" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983 if test "x$ac_ct_CC" = x; then
2984 CC=""
2985 else
2986 case $cross_compiling:$ac_tool_warned in
2987 yes:)
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990 ac_tool_warned=yes ;;
2991 esac
2992 CC=$ac_ct_CC
2993 fi
2994 else
2995 CC="$ac_cv_prog_CC"
2996 fi
2997
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}cc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC="${ac_tool_prefix}cc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 fi
3039 if test -z "$CC"; then
3040 # Extract the first word of "cc", so it can be a program name with args.
3041 set dummy cc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 ac_prog_rejected=no
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3059 ac_prog_rejected=yes
3060 continue
3061 fi
3062 ac_cv_prog_CC="cc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 if test $ac_prog_rejected = yes; then
3071 # We found a bogon in the path, so make sure we never use it.
3072 set dummy $ac_cv_prog_CC
3073 shift
3074 if test $# != 0; then
3075 # We chose a different compiler from the bogus one.
3076 # However, it has the same basename, so the bogon will be chosen
3077 # first if we set CC to just the basename; use the full file name.
3078 shift
3079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 fi
3081 fi
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 for ac_prog in cl.exe
3098 do
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 test -n "$CC" && break
3137 done
3138 fi
3139 if test -z "$CC"; then
3140 ac_ct_CC=$CC
3141 for ac_prog in cl.exe
3142 do
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_ac_ct_CC="$ac_prog"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173 $as_echo "$ac_ct_CC" >&6; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 test -n "$ac_ct_CC" && break
3181 done
3182
3183 if test "x$ac_ct_CC" = x; then
3184 CC=""
3185 else
3186 case $cross_compiling:$ac_tool_warned in
3187 yes:)
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned=yes ;;
3191 esac
3192 CC=$ac_ct_CC
3193 fi
3194 fi
3195
3196 fi
3197
3198
3199 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $? "no acceptable C compiler found in \$PATH
3202 See \`config.log' for more details" "$LINENO" 5; }
3203
3204 # Provide some information about the compiler.
3205 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3206 set X $ac_compile
3207 ac_compiler=$2
3208 for ac_option in --version -v -V -qversion; do
3209 { { ac_try="$ac_compiler $ac_option >&5"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3217 ac_status=$?
3218 if test -s conftest.err; then
3219 sed '10a\
3220 ... rest of stderr output deleted ...
3221 10q' conftest.err >conftest.er1
3222 cat conftest.er1 >&5
3223 fi
3224 rm -f conftest.er1 conftest.err
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }
3227 done
3228
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231
3232 int
3233 main ()
3234 {
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 ac_clean_files_save=$ac_clean_files
3241 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3242 # Try to create an executable without -o first, disregard a.out.
3243 # It will help us diagnose broken compilers, and finding out an intuition
3244 # of exeext.
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3246 $as_echo_n "checking whether the C compiler works... " >&6; }
3247 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3248
3249 # The possible output files:
3250 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251
3252 ac_rmfiles=
3253 for ac_file in $ac_files
3254 do
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3258 esac
3259 done
3260 rm -f $ac_rmfiles
3261
3262 if { { ac_try="$ac_link_default"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link_default") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3274 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3275 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3276 # so that the user can short-circuit this test for compilers unknown to
3277 # Autoconf.
3278 for ac_file in $ac_files ''
3279 do
3280 test -f "$ac_file" || continue
3281 case $ac_file in
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3283 ;;
3284 [ab].out )
3285 # We found the default executable, but exeext='' is most
3286 # certainly right.
3287 break;;
3288 *.* )
3289 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3290 then :; else
3291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 fi
3293 # We set ac_cv_exeext here because the later test for it is not
3294 # safe: cross compilers may not add the suffix if given an `-o'
3295 # argument, so we may need to know it at that point already.
3296 # Even if this section looks crufty: it has the advantage of
3297 # actually working.
3298 break;;
3299 * )
3300 break;;
3301 esac
3302 done
3303 test "$ac_cv_exeext" = no && ac_cv_exeext=
3304
3305 else
3306 ac_file=''
3307 fi
3308 if test -z "$ac_file"; then :
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error 77 "C compiler cannot create executables
3317 See \`config.log' for more details" "$LINENO" 5; }
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 $as_echo_n "checking for C compiler default output file name... " >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3325 $as_echo "$ac_file" >&6; }
3326 ac_exeext=$ac_cv_exeext
3327
3328 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3329 ac_clean_files=$ac_clean_files_save
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3331 $as_echo_n "checking for suffix of executables... " >&6; }
3332 if { { ac_try="$ac_link"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_link") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3344 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3345 # work properly (i.e., refer to `conftest.exe'), while it won't with
3346 # `rm'.
3347 for ac_file in conftest.exe conftest conftest.*; do
3348 test -f "$ac_file" || continue
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 break;;
3353 * ) break;;
3354 esac
3355 done
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3360 See \`config.log' for more details" "$LINENO" 5; }
3361 fi
3362 rm -f conftest conftest$ac_cv_exeext
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3364 $as_echo "$ac_cv_exeext" >&6; }
3365
3366 rm -f conftest.$ac_ext
3367 EXEEXT=$ac_cv_exeext
3368 ac_exeext=$EXEEXT
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371 #include <stdio.h>
3372 int
3373 main ()
3374 {
3375 FILE *f = fopen ("conftest.out", "w");
3376 return ferror (f) || fclose (f) != 0;
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 ac_clean_files="$ac_clean_files conftest.out"
3383 # Check that the compiler produces executables we can run. If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3386 $as_echo_n "checking whether we are cross compiling... " >&6; }
3387 if test "$cross_compiling" != yes; then
3388 { { ac_try="$ac_link"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3399 if { ac_try='./conftest$ac_cv_exeext'
3400 { { case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; }; then
3410 cross_compiling=no
3411 else
3412 if test "$cross_compiling" = maybe; then
3413 cross_compiling=yes
3414 else
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot run C compiled programs.
3418 If you meant to cross compile, use \`--host'.
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 fi
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3424 $as_echo "$cross_compiling" >&6; }
3425
3426 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3427 ac_clean_files=$ac_clean_files_save
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3429 $as_echo_n "checking for suffix of object files... " >&6; }
3430 if ${ac_cv_objext+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.o conftest.obj
3445 if { { ac_try="$ac_compile"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_compile") 2>&5
3453 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 for ac_file in conftest.o conftest.obj conftest.*; do
3457 test -f "$ac_file" || continue;
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461 break;;
3462 esac
3463 done
3464 else
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details" "$LINENO" 5; }
3472 fi
3473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3476 $as_echo "$ac_cv_objext" >&6; }
3477 OBJEXT=$ac_cv_objext
3478 ac_objext=$OBJEXT
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3480 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3481 if ${ac_cv_c_compiler_gnu+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486
3487 int
3488 main ()
3489 {
3490 #ifndef __GNUC__
3491 choke me
3492 #endif
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_compiler_gnu=yes
3500 else
3501 ac_compiler_gnu=no
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3508 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3509 if test $ac_compiler_gnu = yes; then
3510 GCC=yes
3511 else
3512 GCC=
3513 fi
3514 ac_test_CFLAGS=${CFLAGS+set}
3515 ac_save_CFLAGS=$CFLAGS
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3517 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3518 if ${ac_cv_prog_cc_g+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 ac_save_c_werror_flag=$ac_c_werror_flag
3522 ac_c_werror_flag=yes
3523 ac_cv_prog_cc_g=no
3524 CFLAGS="-g"
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527
3528 int
3529 main ()
3530 {
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_cv_prog_cc_g=yes
3538 else
3539 CFLAGS=""
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542
3543 int
3544 main ()
3545 {
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552
3553 else
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3555 CFLAGS="-g"
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568 ac_cv_prog_cc_g=yes
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 fi
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3578 $as_echo "$ac_cv_prog_cc_g" >&6; }
3579 if test "$ac_test_CFLAGS" = set; then
3580 CFLAGS=$ac_save_CFLAGS
3581 elif test $ac_cv_prog_cc_g = yes; then
3582 if test "$GCC" = yes; then
3583 CFLAGS="-g -O2"
3584 else
3585 CFLAGS="-g"
3586 fi
3587 else
3588 if test "$GCC" = yes; then
3589 CFLAGS="-O2"
3590 else
3591 CFLAGS=
3592 fi
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3595 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3596 if ${ac_cv_prog_cc_c89+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 ac_cv_prog_cc_c89=no
3600 ac_save_CC=$CC
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 #include <stdarg.h>
3604 #include <stdio.h>
3605 #include <sys/types.h>
3606 #include <sys/stat.h>
3607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608 struct buf { int x; };
3609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610 static char *e (p, i)
3611 char **p;
3612 int i;
3613 {
3614 return p[i];
3615 }
3616 static char *f (char * (*g) (char **, int), char **p, ...)
3617 {
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3624 }
3625
3626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634
3635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3637 #define FOO(x) 'x'
3638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639
3640 int test (int i, double x);
3641 struct s1 {int (*f) (int a);};
3642 struct s2 {int (*f) (double a);};
3643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644 int argc;
3645 char **argv;
3646 int
3647 main ()
3648 {
3649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656 do
3657 CC="$ac_save_CC $ac_arg"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_prog_cc_c89=$ac_arg
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC
3666
3667 fi
3668 # AC_CACHE_VAL
3669 case "x$ac_cv_prog_cc_c89" in
3670 x)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3673 xno)
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3676 *)
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680 esac
3681 if test "x$ac_cv_prog_cc_c89" != xno; then :
3682
3683 fi
3684
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691 depcc="$CC" am_compiler_list=
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694 $as_echo_n "checking dependency style of $depcc... " >&6; }
3695 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3703 # in D'.
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738 # Solaris 8's {/usr,}/bin/sh.
3739 touch sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
3749 case $depmode in
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
3754 nosideeffect)
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
3763 msvisualcpp | msvcmsys)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
3770 none) break ;;
3771 esac
3772 if depmode=$depmode \
3773 source=sub/conftest.c object=$am__obj \
3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3776 >/dev/null 2>conftest.err &&
3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
3798 else
3799 am_cv_CC_dependencies_compiler_type=none
3800 fi
3801
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
3807 if
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_TRUE=
3811 am__fastdepCC_FALSE='#'
3812 else
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
3815 fi
3816
3817
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3829 fi
3830 if test -z "$CPP"; then
3831 if ${ac_cv_prog_CPP+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 # Double quotes because CPP needs to be expanded
3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3836 do
3837 ac_preproc_ok=false
3838 for ac_c_preproc_warn_flag in '' yes
3839 do
3840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #ifdef __STDC__
3849 # include <limits.h>
3850 #else
3851 # include <assert.h>
3852 #endif
3853 Syntax error
3854 _ACEOF
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856
3857 else
3858 # Broken: fails on valid input.
3859 continue
3860 fi
3861 rm -f conftest.err conftest.i conftest.$ac_ext
3862
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <ac_nonexistent.h>
3868 _ACEOF
3869 if ac_fn_c_try_cpp "$LINENO"; then :
3870 # Broken: success on invalid input.
3871 continue
3872 else
3873 # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3876 fi
3877 rm -f conftest.err conftest.i conftest.$ac_ext
3878
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.i conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then :
3883 break
3884 fi
3885
3886 done
3887 ac_cv_prog_CPP=$CPP
3888
3889 fi
3890 CPP=$ac_cv_prog_CPP
3891 else
3892 ac_cv_prog_CPP=$CPP
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3895 $as_echo "$CPP" >&6; }
3896 ac_preproc_ok=false
3897 for ac_c_preproc_warn_flag in '' yes
3898 do
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #ifdef __STDC__
3908 # include <limits.h>
3909 #else
3910 # include <assert.h>
3911 #endif
3912 Syntax error
3913 _ACEOF
3914 if ac_fn_c_try_cpp "$LINENO"; then :
3915
3916 else
3917 # Broken: fails on valid input.
3918 continue
3919 fi
3920 rm -f conftest.err conftest.i conftest.$ac_ext
3921
3922 # OK, works on sane cases. Now check whether nonexistent headers
3923 # can be detected and how.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3927 _ACEOF
3928 if ac_fn_c_try_cpp "$LINENO"; then :
3929 # Broken: success on invalid input.
3930 continue
3931 else
3932 # Passes both tests.
3933 ac_preproc_ok=:
3934 break
3935 fi
3936 rm -f conftest.err conftest.i conftest.$ac_ext
3937
3938 done
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.i conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then :
3942
3943 else
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details" "$LINENO" 5; }
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3959 if ${ac_cv_path_GREP+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -z "$GREP"; then
3963 ac_path_GREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in grep ggrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
3975 # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3977 *GNU*)
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979 *)
3980 ac_count=0
3981 $as_echo_n 0123456789 >"conftest.in"
3982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'GREP' >> "conftest.nl"
3988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 as_fn_arith $ac_count + 1 && ac_count=$as_val
3991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
3995 fi
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 esac
4001
4002 $ac_path_GREP_found && break 3
4003 done
4004 done
4005 done
4006 IFS=$as_save_IFS
4007 if test -z "$ac_cv_path_GREP"; then
4008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4009 fi
4010 else
4011 ac_cv_path_GREP=$GREP
4012 fi
4013
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4016 $as_echo "$ac_cv_path_GREP" >&6; }
4017 GREP="$ac_cv_path_GREP"
4018
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4021 $as_echo_n "checking for egrep... " >&6; }
4022 if ${ac_cv_path_EGREP+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4026 then ac_cv_path_EGREP="$GREP -E"
4027 else
4028 if test -z "$EGREP"; then
4029 ac_path_EGREP_found=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4033 do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in egrep; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4040 # Check for GNU ac_path_EGREP and select it if it is found.
4041 # Check for GNU $ac_path_EGREP
4042 case `"$ac_path_EGREP" --version 2>&1` in
4043 *GNU*)
4044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4045 *)
4046 ac_count=0
4047 $as_echo_n 0123456789 >"conftest.in"
4048 while :
4049 do
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo 'EGREP' >> "conftest.nl"
4054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
4057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_EGREP="$ac_path_EGREP"
4060 ac_path_EGREP_max=$ac_count
4061 fi
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4064 done
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066 esac
4067
4068 $ac_path_EGREP_found && break 3
4069 done
4070 done
4071 done
4072 IFS=$as_save_IFS
4073 if test -z "$ac_cv_path_EGREP"; then
4074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4075 fi
4076 else
4077 ac_cv_path_EGREP=$EGREP
4078 fi
4079
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4083 $as_echo "$ac_cv_path_EGREP" >&6; }
4084 EGREP="$ac_cv_path_EGREP"
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4088 $as_echo_n "checking for ANSI C header files... " >&6; }
4089 if ${ac_cv_header_stdc+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_header_stdc=yes
4109 else
4110 ac_cv_header_stdc=no
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113
4114 if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #include <string.h>
4119
4120 _ACEOF
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "memchr" >/dev/null 2>&1; then :
4123
4124 else
4125 ac_cv_header_stdc=no
4126 fi
4127 rm -f conftest*
4128
4129 fi
4130
4131 if test $ac_cv_header_stdc = yes; then
4132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <stdlib.h>
4136
4137 _ACEOF
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "free" >/dev/null 2>&1; then :
4140
4141 else
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest*
4145
4146 fi
4147
4148 if test $ac_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150 if test "$cross_compiling" = yes; then :
4151 :
4152 else
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ctype.h>
4156 #include <stdlib.h>
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160 #else
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #endif
4167
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169 int
4170 main ()
4171 {
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_run "$LINENO"; then :
4181
4182 else
4183 ac_cv_header_stdc=no
4184 fi
4185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4186 conftest.$ac_objext conftest.beam conftest.$ac_ext
4187 fi
4188
4189 fi
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4192 $as_echo "$ac_cv_header_stdc" >&6; }
4193 if test $ac_cv_header_stdc = yes; then
4194
4195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4196
4197 fi
4198
4199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4201 inttypes.h stdint.h unistd.h
4202 do :
4203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4205 "
4206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4207 cat >>confdefs.h <<_ACEOF
4208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 _ACEOF
4210
4211 fi
4212
4213 done
4214
4215
4216
4217 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4218 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4219 MINIX=yes
4220 else
4221 MINIX=
4222 fi
4223
4224
4225 if test "$MINIX" = yes; then
4226
4227 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4228
4229
4230 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4231
4232
4233 $as_echo "#define _MINIX 1" >>confdefs.h
4234
4235 fi
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4239 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4240 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245
4246 # define __EXTENSIONS__ 1
4247 $ac_includes_default
4248 int
4249 main ()
4250 {
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_safe_to_define___extensions__=yes
4258 else
4259 ac_cv_safe_to_define___extensions__=no
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4264 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4265 test $ac_cv_safe_to_define___extensions__ = yes &&
4266 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4267
4268 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4269
4270 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4271
4272 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4273
4274 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4275
4276
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4280 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4281 if ${ac_cv_prog_cc_c99+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 ac_cv_prog_cc_c99=no
4285 ac_save_CC=$CC
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <stdarg.h>
4289 #include <stdbool.h>
4290 #include <stdlib.h>
4291 #include <wchar.h>
4292 #include <stdio.h>
4293
4294 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4295 #define debug(...) fprintf (stderr, __VA_ARGS__)
4296 #define showlist(...) puts (#__VA_ARGS__)
4297 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4298 static void
4299 test_varargs_macros (void)
4300 {
4301 int x = 1234;
4302 int y = 5678;
4303 debug ("Flag");
4304 debug ("X = %d\n", x);
4305 showlist (The first, second, and third items.);
4306 report (x>y, "x is %d but y is %d", x, y);
4307 }
4308
4309 // Check long long types.
4310 #define BIG64 18446744073709551615ull
4311 #define BIG32 4294967295ul
4312 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4313 #if !BIG_OK
4314 your preprocessor is broken;
4315 #endif
4316 #if BIG_OK
4317 #else
4318 your preprocessor is broken;
4319 #endif
4320 static long long int bignum = -9223372036854775807LL;
4321 static unsigned long long int ubignum = BIG64;
4322
4323 struct incomplete_array
4324 {
4325 int datasize;
4326 double data[];
4327 };
4328
4329 struct named_init {
4330 int number;
4331 const wchar_t *name;
4332 double average;
4333 };
4334
4335 typedef const char *ccp;
4336
4337 static inline int
4338 test_restrict (ccp restrict text)
4339 {
4340 // See if C++-style comments work.
4341 // Iterate through items via the restricted pointer.
4342 // Also check for declarations in for loops.
4343 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4344 continue;
4345 return 0;
4346 }
4347
4348 // Check varargs and va_copy.
4349 static void
4350 test_varargs (const char *format, ...)
4351 {
4352 va_list args;
4353 va_start (args, format);
4354 va_list args_copy;
4355 va_copy (args_copy, args);
4356
4357 const char *str;
4358 int number;
4359 float fnumber;
4360
4361 while (*format)
4362 {
4363 switch (*format++)
4364 {
4365 case 's': // string
4366 str = va_arg (args_copy, const char *);
4367 break;
4368 case 'd': // int
4369 number = va_arg (args_copy, int);
4370 break;
4371 case 'f': // float
4372 fnumber = va_arg (args_copy, double);
4373 break;
4374 default:
4375 break;
4376 }
4377 }
4378 va_end (args_copy);
4379 va_end (args);
4380 }
4381
4382 int
4383 main ()
4384 {
4385
4386 // Check bool.
4387 _Bool success = false;
4388
4389 // Check restrict.
4390 if (test_restrict ("String literal") == 0)
4391 success = true;
4392 char *restrict newvar = "Another string";
4393
4394 // Check varargs.
4395 test_varargs ("s, d' f .", "string", 65, 34.234);
4396 test_varargs_macros ();
4397
4398 // Check flexible array members.
4399 struct incomplete_array *ia =
4400 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4401 ia->datasize = 10;
4402 for (int i = 0; i < ia->datasize; ++i)
4403 ia->data[i] = i * 1.234;
4404
4405 // Check named initializers.
4406 struct named_init ni = {
4407 .number = 34,
4408 .name = L"Test wide string",
4409 .average = 543.34343,
4410 };
4411
4412 ni.number = 58;
4413
4414 int dynamic_array[ni.number];
4415 dynamic_array[ni.number - 1] = 543;
4416
4417 // work around unused variable warnings
4418 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4419 || dynamic_array[ni.number - 1] != 543);
4420
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4426 do
4427 CC="$ac_save_CC $ac_arg"
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_prog_cc_c99=$ac_arg
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext
4432 test "x$ac_cv_prog_cc_c99" != "xno" && break
4433 done
4434 rm -f conftest.$ac_ext
4435 CC=$ac_save_CC
4436
4437 fi
4438 # AC_CACHE_VAL
4439 case "x$ac_cv_prog_cc_c99" in
4440 x)
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442 $as_echo "none needed" >&6; } ;;
4443 xno)
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4445 $as_echo "unsupported" >&6; } ;;
4446 *)
4447 CC="$CC $ac_cv_prog_cc_c99"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4449 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4450 esac
4451 if test "x$ac_cv_prog_cc_c99" != xno; then :
4452
4453 fi
4454
4455
4456
4457 if test x"$ac_cv_prog_cc_c99" = "xno"; then
4458 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4459 fi
4460
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4464 $as_echo_n "checking for egrep... " >&6; }
4465 if ${ac_cv_path_EGREP+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4469 then ac_cv_path_EGREP="$GREP -E"
4470 else
4471 if test -z "$EGREP"; then
4472 ac_path_EGREP_found=false
4473 # Loop through the user's path and test for each of PROGNAME-LIST
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4476 do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_prog in egrep; do
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4482 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4483 # Check for GNU ac_path_EGREP and select it if it is found.
4484 # Check for GNU $ac_path_EGREP
4485 case `"$ac_path_EGREP" --version 2>&1` in
4486 *GNU*)
4487 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4488 *)
4489 ac_count=0
4490 $as_echo_n 0123456789 >"conftest.in"
4491 while :
4492 do
4493 cat "conftest.in" "conftest.in" >"conftest.tmp"
4494 mv "conftest.tmp" "conftest.in"
4495 cp "conftest.in" "conftest.nl"
4496 $as_echo 'EGREP' >> "conftest.nl"
4497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499 as_fn_arith $ac_count + 1 && ac_count=$as_val
4500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4501 # Best one so far, save it but keep looking for a better one
4502 ac_cv_path_EGREP="$ac_path_EGREP"
4503 ac_path_EGREP_max=$ac_count
4504 fi
4505 # 10*(2^10) chars as input seems more than enough
4506 test $ac_count -gt 10 && break
4507 done
4508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 esac
4510
4511 $ac_path_EGREP_found && break 3
4512 done
4513 done
4514 done
4515 IFS=$as_save_IFS
4516 if test -z "$ac_cv_path_EGREP"; then
4517 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4518 fi
4519 else
4520 ac_cv_path_EGREP=$EGREP
4521 fi
4522
4523 fi
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4526 $as_echo "$ac_cv_path_EGREP" >&6; }
4527 EGREP="$ac_cv_path_EGREP"
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4531 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4532 if ${ac_cv_path_SED+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4536 for ac_i in 1 2 3 4 5 6 7; do
4537 ac_script="$ac_script$as_nl$ac_script"
4538 done
4539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4540 { ac_script=; unset ac_script;}
4541 if test -z "$SED"; then
4542 ac_path_SED_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in sed gsed; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4553 # Check for GNU ac_path_SED and select it if it is found.
4554 # Check for GNU $ac_path_SED
4555 case `"$ac_path_SED" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4558 *)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo '' >> "conftest.nl"
4567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_SED_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_SED="$ac_path_SED"
4573 ac_path_SED_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581 $ac_path_SED_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_SED"; then
4587 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4588 fi
4589 else
4590 ac_cv_path_SED=$SED
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4595 $as_echo "$ac_cv_path_SED" >&6; }
4596 SED="$ac_cv_path_SED"
4597 rm -f conftest.sed
4598
4599
4600 F77=no
4601 CXX=no
4602 GCJ=no
4603
4604 # Check whether --enable-static was given.
4605 if test "${enable_static+set}" = set; then :
4606 enableval=$enable_static; p=${PACKAGE-default}
4607 case $enableval in
4608 yes) enable_static=yes ;;
4609 no) enable_static=no ;;
4610 *)
4611 enable_static=no
4612 # Look at the argument we got. We use all the common list separators.
4613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4614 for pkg in $enableval; do
4615 IFS="$lt_save_ifs"
4616 if test "X$pkg" = "X$p"; then
4617 enable_static=yes
4618 fi
4619 done
4620 IFS="$lt_save_ifs"
4621 ;;
4622 esac
4623 else
4624 enable_static=no
4625 fi
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 # Check whether --enable-shared was given.
4636 if test "${enable_shared+set}" = set; then :
4637 enableval=$enable_shared; p=${PACKAGE-default}
4638 case $enableval in
4639 yes) enable_shared=yes ;;
4640 no) enable_shared=no ;;
4641 *)
4642 enable_shared=no
4643 # Look at the argument we got. We use all the common list separators.
4644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4645 for pkg in $enableval; do
4646 IFS="$lt_save_ifs"
4647 if test "X$pkg" = "X$p"; then
4648 enable_shared=yes
4649 fi
4650 done
4651 IFS="$lt_save_ifs"
4652 ;;
4653 esac
4654 else
4655 enable_shared=yes
4656 fi
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4668 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4669 # Check whether --enable-maintainer-mode was given.
4670 if test "${enable_maintainer_mode+set}" = set; then :
4671 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4672 else
4673 USE_MAINTAINER_MODE=no
4674 fi
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4677 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4678 if test $USE_MAINTAINER_MODE = yes; then
4679 MAINTAINER_MODE_TRUE=
4680 MAINTAINER_MODE_FALSE='#'
4681 else
4682 MAINTAINER_MODE_TRUE='#'
4683 MAINTAINER_MODE_FALSE=
4684 fi
4685
4686 MAINT=$MAINTAINER_MODE_TRUE
4687
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4691 $as_echo_n "checking for library containing strerror... " >&6; }
4692 if ${ac_cv_search_strerror+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_func_search_save_LIBS=$LIBS
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698
4699 /* Override any GCC internal prototype to avoid an error.
4700 Use char because int might match the return type of a GCC
4701 builtin and then its argument prototype would still apply. */
4702 #ifdef __cplusplus
4703 extern "C"
4704 #endif
4705 char strerror ();
4706 int
4707 main ()
4708 {
4709 return strerror ();
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 for ac_lib in '' cposix; do
4715 if test -z "$ac_lib"; then
4716 ac_res="none required"
4717 else
4718 ac_res=-l$ac_lib
4719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4720 fi
4721 if ac_fn_c_try_link "$LINENO"; then :
4722 ac_cv_search_strerror=$ac_res
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext \
4725 conftest$ac_exeext
4726 if ${ac_cv_search_strerror+:} false; then :
4727 break
4728 fi
4729 done
4730 if ${ac_cv_search_strerror+:} false; then :
4731
4732 else
4733 ac_cv_search_strerror=no
4734 fi
4735 rm conftest.$ac_ext
4736 LIBS=$ac_func_search_save_LIBS
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4739 $as_echo "$ac_cv_search_strerror" >&6; }
4740 ac_res=$ac_cv_search_strerror
4741 if test "$ac_res" != no; then :
4742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4743
4744 fi
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4747 $as_echo_n "checking for inline... " >&6; }
4748 if ${ac_cv_c_inline+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 ac_cv_c_inline=no
4752 for ac_kw in inline __inline__ __inline; do
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 #ifndef __cplusplus
4756 typedef int foo_t;
4757 static $ac_kw foo_t static_foo () {return 0; }
4758 $ac_kw foo_t foo () {return 0; }
4759 #endif
4760
4761 _ACEOF
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_c_inline=$ac_kw
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 test "$ac_cv_c_inline" != no && break
4767 done
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4771 $as_echo "$ac_cv_c_inline" >&6; }
4772
4773 case $ac_cv_c_inline in
4774 inline | yes) ;;
4775 *)
4776 case $ac_cv_c_inline in
4777 no) ac_val=;;
4778 *) ac_val=$ac_cv_c_inline;;
4779 esac
4780 cat >>confdefs.h <<_ACEOF
4781 #ifndef __cplusplus
4782 #define inline $ac_val
4783 #endif
4784 _ACEOF
4785 ;;
4786 esac
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4789 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4790 if ${ac_cv_c_const+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795
4796 int
4797 main ()
4798 {
4799 /* FIXME: Include the comments suggested by Paul. */
4800 #ifndef __cplusplus
4801 /* Ultrix mips cc rejects this. */
4802 typedef int charset[2];
4803 const charset cs;
4804 /* SunOS 4.1.1 cc rejects this. */
4805 char const *const *pcpcc;
4806 char **ppc;
4807 /* NEC SVR4.0.2 mips cc rejects this. */
4808 struct point {int x, y;};
4809 static struct point const zero = {0,0};
4810 /* AIX XL C 1.02.0.0 rejects this.
4811 It does not let you subtract one const X* pointer from another in
4812 an arm of an if-expression whose if-part is not a constant
4813 expression */
4814 const char *g = "string";
4815 pcpcc = &g + (g ? g-g : 0);
4816 /* HPUX 7.0 cc rejects these. */
4817 ++pcpcc;
4818 ppc = (char**) pcpcc;
4819 pcpcc = (char const *const *) ppc;
4820 { /* SCO 3.2v4 cc rejects this. */
4821 char *t;
4822 char const *s = 0 ? (char *) 0 : (char const *) 0;
4823
4824 *t++ = 0;
4825 if (s) return 0;
4826 }
4827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4828 int x[] = {25, 17};
4829 const int *foo = &x[0];
4830 ++foo;
4831 }
4832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4833 typedef const int *iptr;
4834 iptr p = 0;
4835 ++p;
4836 }
4837 { /* AIX XL C 1.02.0.0 rejects this saying
4838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4839 struct s { int j; const int *ap[3]; };
4840 struct s *b; b->j = 5;
4841 }
4842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4843 const int foo = 10;
4844 if (!foo) return 0;
4845 }
4846 return !cs[0] && !zero.x;
4847 #endif
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 if ac_fn_c_try_compile "$LINENO"; then :
4854 ac_cv_c_const=yes
4855 else
4856 ac_cv_c_const=no
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4861 $as_echo "$ac_cv_c_const" >&6; }
4862 if test $ac_cv_c_const = no; then
4863
4864 $as_echo "#define const /**/" >>confdefs.h
4865
4866 fi
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4869 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4870 if ${ac_cv_c_bigendian+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 ac_cv_c_bigendian=unknown
4874 # See if we're dealing with a universal compiler.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #ifndef __APPLE_CC__
4878 not a universal capable compiler
4879 #endif
4880 typedef int dummy;
4881
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884
4885 # Check for potential -arch flags. It is not universal unless
4886 # there are at least two -arch flags with different values.
4887 ac_arch=
4888 ac_prev=
4889 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4890 if test -n "$ac_prev"; then
4891 case $ac_word in
4892 i?86 | x86_64 | ppc | ppc64)
4893 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4894 ac_arch=$ac_word
4895 else
4896 ac_cv_c_bigendian=universal
4897 break
4898 fi
4899 ;;
4900 esac
4901 ac_prev=
4902 elif test "x$ac_word" = "x-arch"; then
4903 ac_prev=arch
4904 fi
4905 done
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 if test $ac_cv_c_bigendian = unknown; then
4909 # See if sys/param.h defines the BYTE_ORDER macro.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <sys/types.h>
4913 #include <sys/param.h>
4914
4915 int
4916 main ()
4917 {
4918 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4919 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4920 && LITTLE_ENDIAN)
4921 bogus endian macros
4922 #endif
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 # It does; now see whether it defined to BIG_ENDIAN or not.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 #include <sys/param.h>
4934
4935 int
4936 main ()
4937 {
4938 #if BYTE_ORDER != BIG_ENDIAN
4939 not big endian
4940 #endif
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"; then :
4947 ac_cv_c_bigendian=yes
4948 else
4949 ac_cv_c_bigendian=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 fi
4955 if test $ac_cv_c_bigendian = unknown; then
4956 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 #include <limits.h>
4960
4961 int
4962 main ()
4963 {
4964 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4965 bogus endian macros
4966 #endif
4967
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_compile "$LINENO"; then :
4973 # It does; now see whether it defined to _BIG_ENDIAN or not.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 #include <limits.h>
4977
4978 int
4979 main ()
4980 {
4981 #ifndef _BIG_ENDIAN
4982 not big endian
4983 #endif
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_cv_c_bigendian=yes
4991 else
4992 ac_cv_c_bigendian=no
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 if test $ac_cv_c_bigendian = unknown; then
4999 # Compile a test program.
5000 if test "$cross_compiling" = yes; then :
5001 # Try to guess by grepping values from an object file.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 short int ascii_mm[] =
5005 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5006 short int ascii_ii[] =
5007 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5008 int use_ascii (int i) {
5009 return ascii_mm[i] + ascii_ii[i];
5010 }
5011 short int ebcdic_ii[] =
5012 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5013 short int ebcdic_mm[] =
5014 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5015 int use_ebcdic (int i) {
5016 return ebcdic_mm[i] + ebcdic_ii[i];
5017 }
5018 extern int foo;
5019
5020 int
5021 main ()
5022 {
5023 return use_ascii (foo) == use_ebcdic (foo);
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5030 ac_cv_c_bigendian=yes
5031 fi
5032 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5033 if test "$ac_cv_c_bigendian" = unknown; then
5034 ac_cv_c_bigendian=no
5035 else
5036 # finding both strings is unlikely to happen, but who knows?
5037 ac_cv_c_bigendian=unknown
5038 fi
5039 fi
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 $ac_includes_default
5046 int
5047 main ()
5048 {
5049
5050 /* Are we little or big endian? From Harbison&Steele. */
5051 union
5052 {
5053 long int l;
5054 char c[sizeof (long int)];
5055 } u;
5056 u.l = 1;
5057 return u.c[sizeof (long int) - 1] == 1;
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_run "$LINENO"; then :
5064 ac_cv_c_bigendian=no
5065 else
5066 ac_cv_c_bigendian=yes
5067 fi
5068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5069 conftest.$ac_objext conftest.beam conftest.$ac_ext
5070 fi
5071
5072 fi
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5075 $as_echo "$ac_cv_c_bigendian" >&6; }
5076 case $ac_cv_c_bigendian in #(
5077 yes)
5078 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5079 ;; #(
5080 no)
5081 ;; #(
5082 universal)
5083
5084 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5085
5086 ;; #(
5087 *)
5088 as_fn_error $? "unknown endianness
5089 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5090 esac
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5093 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5094 set x ${MAKE-make}
5095 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5096 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 cat >conftest.make <<\_ACEOF
5100 SHELL = /bin/sh
5101 all:
5102 @echo '@@@%%%=$(MAKE)=@@@%%%'
5103 _ACEOF
5104 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5105 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5106 *@@@%%%=?*=@@@%%%*)
5107 eval ac_cv_prog_make_${ac_make}_set=yes;;
5108 *)
5109 eval ac_cv_prog_make_${ac_make}_set=no;;
5110 esac
5111 rm -f conftest.make
5112 fi
5113 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115 $as_echo "yes" >&6; }
5116 SET_MAKE=
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 SET_MAKE="MAKE=${MAKE-make}"
5121 fi
5122
5123
5124 # Extract the first word of "automake", so it can be a program name with args.
5125 set dummy automake; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_path_AUTOMAKE+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 case $AUTOMAKE in
5132 [\\/]* | ?:[\\/]*)
5133 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5134 ;;
5135 *)
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 ;;
5152 esac
5153 fi
5154 AUTOMAKE=$ac_cv_path_AUTOMAKE
5155 if test -n "$AUTOMAKE"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5157 $as_echo "$AUTOMAKE" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164 # Extract the first word of "aclocal", so it can be a program name with args.
5165 set dummy aclocal; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_path_ACLOCAL+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 case $ACLOCAL in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5174 ;;
5175 *)
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187 done
5188 done
5189 IFS=$as_save_IFS
5190
5191 ;;
5192 esac
5193 fi
5194 ACLOCAL=$ac_cv_path_ACLOCAL
5195 if test -n "$ACLOCAL"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5197 $as_echo "$ACLOCAL" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 # Extract the first word of "autoheader", so it can be a program name with args.
5205 set dummy autoheader; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_AUTOHEADER+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 case $AUTOHEADER in
5212 [\\/]* | ?:[\\/]*)
5213 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5214 ;;
5215 *)
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 ;;
5232 esac
5233 fi
5234 AUTOHEADER=$ac_cv_path_AUTOHEADER
5235 if test -n "$AUTOHEADER"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5237 $as_echo "$AUTOHEADER" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5242
5243
5244 # Extract the first word of "as", so it can be a program name with args.
5245 set dummy as; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_path_AS+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 case $AS in
5252 [\\/]* | ?:[\\/]*)
5253 ac_cv_path_AS="$AS" # Let the user override the test with a path.
5254 ;;
5255 *)
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 ;;
5272 esac
5273 fi
5274 AS=$ac_cv_path_AS
5275 if test -n "$AS"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5277 $as_echo "$AS" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5281 fi
5282
5283
5284 # Extract the first word of "rm", so it can be a program name with args.
5285 set dummy rm; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_path_RM+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 case $RM in
5292 [\\/]* | ?:[\\/]*)
5293 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5294 ;;
5295 *)
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5306 fi
5307 done
5308 done
5309 IFS=$as_save_IFS
5310
5311 ;;
5312 esac
5313 fi
5314 RM=$ac_cv_path_RM
5315 if test -n "$RM"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5317 $as_echo "$RM" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324 # Extract the first word of "cp", so it can be a program name with args.
5325 set dummy cp; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_path_CP+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 case $CP in
5332 [\\/]* | ?:[\\/]*)
5333 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5334 ;;
5335 *)
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351 ;;
5352 esac
5353 fi
5354 CP=$ac_cv_path_CP
5355 if test -n "$CP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5357 $as_echo "$CP" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363
5364 # Extract the first word of "mv", so it can be a program name with args.
5365 set dummy mv; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_path_MV+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 case $MV in
5372 [\\/]* | ?:[\\/]*)
5373 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5374 ;;
5375 *)
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5386 fi
5387 done
5388 done
5389 IFS=$as_save_IFS
5390
5391 ;;
5392 esac
5393 fi
5394 MV=$ac_cv_path_MV
5395 if test -n "$MV"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5397 $as_echo "$MV" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403
5404 # Extract the first word of "ln", so it can be a program name with args.
5405 set dummy ln; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_path_LN+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 case $LN in
5412 [\\/]* | ?:[\\/]*)
5413 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5414 ;;
5415 *)
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 ;;
5432 esac
5433 fi
5434 LN=$ac_cv_path_LN
5435 if test -n "$LN"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5437 $as_echo "$LN" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444 # Extract the first word of "touch", so it can be a program name with args.
5445 set dummy touch; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_path_TOUCH+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 case $TOUCH in
5452 [\\/]* | ?:[\\/]*)
5453 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5454 ;;
5455 *)
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 ;;
5472 esac
5473 fi
5474 TOUCH=$ac_cv_path_TOUCH
5475 if test -n "$TOUCH"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5477 $as_echo "$TOUCH" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 ac_ext=c
5485 ac_cpp='$CPP $CPPFLAGS'
5486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489
5490
5491 case `pwd` in
5492 *\ * | *\ *)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5494 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5495 esac
5496
5497
5498
5499 macro_version='2.4'
5500 macro_revision='1.3293'
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 ltmain="$ac_aux_dir/ltmain.sh"
5515
5516 # Make sure we can run config.sub.
5517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5518 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5521 $as_echo_n "checking build system type... " >&6; }
5522 if ${ac_cv_build+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 ac_build_alias=$build_alias
5526 test "x$ac_build_alias" = x &&
5527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5528 test "x$ac_build_alias" = x &&
5529 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5530 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5532
5533 fi
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5535 $as_echo "$ac_cv_build" >&6; }
5536 case $ac_cv_build in
5537 *-*-*) ;;
5538 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5539 esac
5540 build=$ac_cv_build
5541 ac_save_IFS=$IFS; IFS='-'
5542 set x $ac_cv_build
5543 shift
5544 build_cpu=$1
5545 build_vendor=$2
5546 shift; shift
5547 # Remember, the first character of IFS is used to create $*,
5548 # except with old shells:
5549 build_os=$*
5550 IFS=$ac_save_IFS
5551 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5555 $as_echo_n "checking host system type... " >&6; }
5556 if ${ac_cv_host+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test "x$host_alias" = x; then
5560 ac_cv_host=$ac_cv_build
5561 else
5562 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5564 fi
5565
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5568 $as_echo "$ac_cv_host" >&6; }
5569 case $ac_cv_host in
5570 *-*-*) ;;
5571 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5572 esac
5573 host=$ac_cv_host
5574 ac_save_IFS=$IFS; IFS='-'
5575 set x $ac_cv_host
5576 shift
5577 host_cpu=$1
5578 host_vendor=$2
5579 shift; shift
5580 # Remember, the first character of IFS is used to create $*,
5581 # except with old shells:
5582 host_os=$*
5583 IFS=$ac_save_IFS
5584 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5585
5586
5587 # Backslashify metacharacters that are still active within
5588 # double-quoted strings.
5589 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5590
5591 # Same as above, but do not quote variable references.
5592 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5593
5594 # Sed substitution to delay expansion of an escaped shell variable in a
5595 # double_quote_subst'ed string.
5596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5597
5598 # Sed substitution to delay expansion of an escaped single quote.
5599 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5600
5601 # Sed substitution to avoid accidental globbing in evaled expressions
5602 no_glob_subst='s/\*/\\\*/g'
5603
5604 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5605 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5609 $as_echo_n "checking how to print strings... " >&6; }
5610 # Test print first, because it will be a builtin if present.
5611 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5613 ECHO='print -r --'
5614 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5615 ECHO='printf %s\n'
5616 else
5617 # Use this function as a fallback that always works.
5618 func_fallback_echo ()
5619 {
5620 eval 'cat <<_LTECHO_EOF
5621 $1
5622 _LTECHO_EOF'
5623 }
5624 ECHO='func_fallback_echo'
5625 fi
5626
5627 # func_echo_all arg...
5628 # Invoke $ECHO with all args, space-separated.
5629 func_echo_all ()
5630 {
5631 $ECHO ""
5632 }
5633
5634 case "$ECHO" in
5635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5636 $as_echo "printf" >&6; } ;;
5637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5638 $as_echo "print -r" >&6; } ;;
5639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5640 $as_echo "cat" >&6; } ;;
5641 esac
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5657 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5658 if ${ac_cv_path_SED+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5662 for ac_i in 1 2 3 4 5 6 7; do
5663 ac_script="$ac_script$as_nl$ac_script"
5664 done
5665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5666 { ac_script=; unset ac_script;}
5667 if test -z "$SED"; then
5668 ac_path_SED_found=false
5669 # Loop through the user's path and test for each of PROGNAME-LIST
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_prog in sed gsed; do
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5678 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5679 # Check for GNU ac_path_SED and select it if it is found.
5680 # Check for GNU $ac_path_SED
5681 case `"$ac_path_SED" --version 2>&1` in
5682 *GNU*)
5683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5684 *)
5685 ac_count=0
5686 $as_echo_n 0123456789 >"conftest.in"
5687 while :
5688 do
5689 cat "conftest.in" "conftest.in" >"conftest.tmp"
5690 mv "conftest.tmp" "conftest.in"
5691 cp "conftest.in" "conftest.nl"
5692 $as_echo '' >> "conftest.nl"
5693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5695 as_fn_arith $ac_count + 1 && ac_count=$as_val
5696 if test $ac_count -gt ${ac_path_SED_max-0}; then
5697 # Best one so far, save it but keep looking for a better one
5698 ac_cv_path_SED="$ac_path_SED"
5699 ac_path_SED_max=$ac_count
5700 fi
5701 # 10*(2^10) chars as input seems more than enough
5702 test $ac_count -gt 10 && break
5703 done
5704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5705 esac
5706
5707 $ac_path_SED_found && break 3
5708 done
5709 done
5710 done
5711 IFS=$as_save_IFS
5712 if test -z "$ac_cv_path_SED"; then
5713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5714 fi
5715 else
5716 ac_cv_path_SED=$SED
5717 fi
5718
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5721 $as_echo "$ac_cv_path_SED" >&6; }
5722 SED="$ac_cv_path_SED"
5723 rm -f conftest.sed
5724
5725 test -z "$SED" && SED=sed
5726 Xsed="$SED -e 1s/^X//"
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5739 $as_echo_n "checking for fgrep... " >&6; }
5740 if ${ac_cv_path_FGREP+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5744 then ac_cv_path_FGREP="$GREP -F"
5745 else
5746 if test -z "$FGREP"; then
5747 ac_path_FGREP_found=false
5748 # Loop through the user's path and test for each of PROGNAME-LIST
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5751 do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_prog in fgrep; do
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5757 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5758 # Check for GNU ac_path_FGREP and select it if it is found.
5759 # Check for GNU $ac_path_FGREP
5760 case `"$ac_path_FGREP" --version 2>&1` in
5761 *GNU*)
5762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5763 *)
5764 ac_count=0
5765 $as_echo_n 0123456789 >"conftest.in"
5766 while :
5767 do
5768 cat "conftest.in" "conftest.in" >"conftest.tmp"
5769 mv "conftest.tmp" "conftest.in"
5770 cp "conftest.in" "conftest.nl"
5771 $as_echo 'FGREP' >> "conftest.nl"
5772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5774 as_fn_arith $ac_count + 1 && ac_count=$as_val
5775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5776 # Best one so far, save it but keep looking for a better one
5777 ac_cv_path_FGREP="$ac_path_FGREP"
5778 ac_path_FGREP_max=$ac_count
5779 fi
5780 # 10*(2^10) chars as input seems more than enough
5781 test $ac_count -gt 10 && break
5782 done
5783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5784 esac
5785
5786 $ac_path_FGREP_found && break 3
5787 done
5788 done
5789 done
5790 IFS=$as_save_IFS
5791 if test -z "$ac_cv_path_FGREP"; then
5792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5793 fi
5794 else
5795 ac_cv_path_FGREP=$FGREP
5796 fi
5797
5798 fi
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5801 $as_echo "$ac_cv_path_FGREP" >&6; }
5802 FGREP="$ac_cv_path_FGREP"
5803
5804
5805 test -z "$GREP" && GREP=grep
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 # Check whether --with-gnu-ld was given.
5826 if test "${with_gnu_ld+set}" = set; then :
5827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5828 else
5829 with_gnu_ld=no
5830 fi
5831
5832 ac_prog=ld
5833 if test "$GCC" = yes; then
5834 # Check if gcc -print-prog-name=ld gives a path.
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5836 $as_echo_n "checking for ld used by $CC... " >&6; }
5837 case $host in
5838 *-*-mingw*)
5839 # gcc leaves a trailing carriage return which upsets mingw
5840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5841 *)
5842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5843 esac
5844 case $ac_prog in
5845 # Accept absolute paths.
5846 [\\/]* | ?:[\\/]*)
5847 re_direlt='/[^/][^/]*/\.\./'
5848 # Canonicalize the pathname of ld
5849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5852 done
5853 test -z "$LD" && LD="$ac_prog"
5854 ;;
5855 "")
5856 # If it fails, then pretend we aren't using GCC.
5857 ac_prog=ld
5858 ;;
5859 *)
5860 # If it is relative, then search for the first ld in PATH.
5861 with_gnu_ld=unknown
5862 ;;
5863 esac
5864 elif test "$with_gnu_ld" = yes; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5866 $as_echo_n "checking for GNU ld... " >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5869 $as_echo_n "checking for non-GNU ld... " >&6; }
5870 fi
5871 if ${lt_cv_path_LD+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -z "$LD"; then
5875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5876 for ac_dir in $PATH; do
5877 IFS="$lt_save_ifs"
5878 test -z "$ac_dir" && ac_dir=.
5879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5880 lt_cv_path_LD="$ac_dir/$ac_prog"
5881 # Check to see if the program is GNU ld. I'd rather use --version,
5882 # but apparently some variants of GNU ld only accept -v.
5883 # Break only if it was the GNU/non-GNU ld that we prefer.
5884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5885 *GNU* | *'with BFD'*)
5886 test "$with_gnu_ld" != no && break
5887 ;;
5888 *)
5889 test "$with_gnu_ld" != yes && break
5890 ;;
5891 esac
5892 fi
5893 done
5894 IFS="$lt_save_ifs"
5895 else
5896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5897 fi
5898 fi
5899
5900 LD="$lt_cv_path_LD"
5901 if test -n "$LD"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5903 $as_echo "$LD" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5911 if ${lt_cv_prog_gnu_ld+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5915 case `$LD -v 2>&1 </dev/null` in
5916 *GNU* | *'with BFD'*)
5917 lt_cv_prog_gnu_ld=yes
5918 ;;
5919 *)
5920 lt_cv_prog_gnu_ld=no
5921 ;;
5922 esac
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5926 with_gnu_ld=$lt_cv_prog_gnu_ld
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5938 if ${lt_cv_path_NM+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$NM"; then
5942 # Let the user override the test.
5943 lt_cv_path_NM="$NM"
5944 else
5945 lt_nm_to_check="${ac_tool_prefix}nm"
5946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5947 lt_nm_to_check="$lt_nm_to_check nm"
5948 fi
5949 for lt_tmp_nm in $lt_nm_to_check; do
5950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5952 IFS="$lt_save_ifs"
5953 test -z "$ac_dir" && ac_dir=.
5954 tmp_nm="$ac_dir/$lt_tmp_nm"
5955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5956 # Check to see if the nm accepts a BSD-compat flag.
5957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5958 # nm: unknown option "B" ignored
5959 # Tru64's nm complains that /dev/null is an invalid object file
5960 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5961 */dev/null* | *'Invalid file or object type'*)
5962 lt_cv_path_NM="$tmp_nm -B"
5963 break
5964 ;;
5965 *)
5966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5967 */dev/null*)
5968 lt_cv_path_NM="$tmp_nm -p"
5969 break
5970 ;;
5971 *)
5972 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5973 continue # so that we can try to find one that supports BSD flags
5974 ;;
5975 esac
5976 ;;
5977 esac
5978 fi
5979 done
5980 IFS="$lt_save_ifs"
5981 done
5982 : ${lt_cv_path_NM=no}
5983 fi
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5986 $as_echo "$lt_cv_path_NM" >&6; }
5987 if test "$lt_cv_path_NM" != "no"; then
5988 NM="$lt_cv_path_NM"
5989 else
5990 # Didn't find any BSD compatible name lister, look for dumpbin.
5991 if test -n "$DUMPBIN"; then :
5992 # Let the user override the test.
5993 else
5994 if test -n "$ac_tool_prefix"; then
5995 for ac_prog in dumpbin "link -dump"
5996 do
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_DUMPBIN+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if test -n "$DUMPBIN"; then
6005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6017 fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 DUMPBIN=$ac_cv_prog_DUMPBIN
6025 if test -n "$DUMPBIN"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6027 $as_echo "$DUMPBIN" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033
6034 test -n "$DUMPBIN" && break
6035 done
6036 fi
6037 if test -z "$DUMPBIN"; then
6038 ac_ct_DUMPBIN=$DUMPBIN
6039 for ac_prog in dumpbin "link -dump"
6040 do
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy $ac_prog; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$ac_ct_DUMPBIN"; then
6049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6069 if test -n "$ac_ct_DUMPBIN"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6071 $as_echo "$ac_ct_DUMPBIN" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 test -n "$ac_ct_DUMPBIN" && break
6079 done
6080
6081 if test "x$ac_ct_DUMPBIN" = x; then
6082 DUMPBIN=":"
6083 else
6084 case $cross_compiling:$ac_tool_warned in
6085 yes:)
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090 DUMPBIN=$ac_ct_DUMPBIN
6091 fi
6092 fi
6093
6094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6095 *COFF*)
6096 DUMPBIN="$DUMPBIN -symbols"
6097 ;;
6098 *)
6099 DUMPBIN=:
6100 ;;
6101 esac
6102 fi
6103
6104 if test "$DUMPBIN" != ":"; then
6105 NM="$DUMPBIN"
6106 fi
6107 fi
6108 test -z "$NM" && NM=nm
6109
6110
6111
6112
6113
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6116 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6117 if ${lt_cv_nm_interface+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 lt_cv_nm_interface="BSD nm"
6121 echo "int some_variable = 0;" > conftest.$ac_ext
6122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6123 (eval "$ac_compile" 2>conftest.err)
6124 cat conftest.err >&5
6125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6127 cat conftest.err >&5
6128 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6129 cat conftest.out >&5
6130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6131 lt_cv_nm_interface="MS dumpbin"
6132 fi
6133 rm -f conftest*
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6136 $as_echo "$lt_cv_nm_interface" >&6; }
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6139 $as_echo_n "checking whether ln -s works... " >&6; }
6140 LN_S=$as_ln_s
6141 if test "$LN_S" = "ln -s"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6143 $as_echo "yes" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6146 $as_echo "no, using $LN_S" >&6; }
6147 fi
6148
6149 # find the maximum length of command line arguments
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6151 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6152 if ${lt_cv_sys_max_cmd_len+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 i=0
6156 teststring="ABCD"
6157
6158 case $build_os in
6159 msdosdjgpp*)
6160 # On DJGPP, this test can blow up pretty badly due to problems in libc
6161 # (any single argument exceeding 2000 bytes causes a buffer overrun
6162 # during glob expansion). Even if it were fixed, the result of this
6163 # check would be larger than it should be.
6164 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6165 ;;
6166
6167 gnu*)
6168 # Under GNU Hurd, this test is not required because there is
6169 # no limit to the length of command line arguments.
6170 # Libtool will interpret -1 as no limit whatsoever
6171 lt_cv_sys_max_cmd_len=-1;
6172 ;;
6173
6174 cygwin* | mingw* | cegcc*)
6175 # On Win9x/ME, this test blows up -- it succeeds, but takes
6176 # about 5 minutes as the teststring grows exponentially.
6177 # Worse, since 9x/ME are not pre-emptively multitasking,
6178 # you end up with a "frozen" computer, even though with patience
6179 # the test eventually succeeds (with a max line length of 256k).
6180 # Instead, let's just punt: use the minimum linelength reported by
6181 # all of the supported platforms: 8192 (on NT/2K/XP).
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
6185 mint*)
6186 # On MiNT this can take a long time and run out of memory.
6187 lt_cv_sys_max_cmd_len=8192;
6188 ;;
6189
6190 amigaos*)
6191 # On AmigaOS with pdksh, this test takes hours, literally.
6192 # So we just punt and use a minimum line length of 8192.
6193 lt_cv_sys_max_cmd_len=8192;
6194 ;;
6195
6196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6197 # This has been around since 386BSD, at least. Likely further.
6198 if test -x /sbin/sysctl; then
6199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6200 elif test -x /usr/sbin/sysctl; then
6201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6202 else
6203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6204 fi
6205 # And add a safety zone
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6208 ;;
6209
6210 interix*)
6211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6212 lt_cv_sys_max_cmd_len=196608
6213 ;;
6214
6215 osf*)
6216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6218 # nice to cause kernel panics so lets avoid the loop below.
6219 # First set a reasonable default.
6220 lt_cv_sys_max_cmd_len=16384
6221 #
6222 if test -x /sbin/sysconfig; then
6223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6225 esac
6226 fi
6227 ;;
6228 sco3.2v5*)
6229 lt_cv_sys_max_cmd_len=102400
6230 ;;
6231 sysv5* | sco5v6* | sysv4.2uw2*)
6232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6233 if test -n "$kargmax"; then
6234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6235 else
6236 lt_cv_sys_max_cmd_len=32768
6237 fi
6238 ;;
6239 *)
6240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6241 if test -n "$lt_cv_sys_max_cmd_len"; then
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244 else
6245 # Make teststring a little bigger before we do anything with it.
6246 # a 1K string should be a reasonable start.
6247 for i in 1 2 3 4 5 6 7 8 ; do
6248 teststring=$teststring$teststring
6249 done
6250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6251 # If test is not a shell built-in, we'll probably end up computing a
6252 # maximum length that is only half of the actual maximum length, but
6253 # we can't tell.
6254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6256 test $i != 17 # 1/2 MB should be enough
6257 do
6258 i=`expr $i + 1`
6259 teststring=$teststring$teststring
6260 done
6261 # Only check the string length outside the loop.
6262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6263 teststring=
6264 # Add a significant safety factor because C++ compilers can tack on
6265 # massive amounts of additional arguments before passing them to the
6266 # linker. It appears as though 1/2 is a usable value.
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6268 fi
6269 ;;
6270 esac
6271
6272 fi
6273
6274 if test -n $lt_cv_sys_max_cmd_len ; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6279 $as_echo "none" >&6; }
6280 fi
6281 max_cmd_len=$lt_cv_sys_max_cmd_len
6282
6283
6284
6285
6286
6287
6288 : ${CP="cp -f"}
6289 : ${MV="mv -f"}
6290 : ${RM="rm -f"}
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6294 # Try some XSI features
6295 xsi_shell=no
6296 ( _lt_dummy="a/b/c"
6297 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6298 = c,a/b,b/c, \
6299 && eval 'test $(( 1 + 1 )) -eq 2 \
6300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6301 && xsi_shell=yes
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6303 $as_echo "$xsi_shell" >&6; }
6304
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6308 lt_shell_append=no
6309 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6310 >/dev/null 2>&1 \
6311 && lt_shell_append=yes
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6313 $as_echo "$lt_shell_append" >&6; }
6314
6315
6316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6317 lt_unset=unset
6318 else
6319 lt_unset=false
6320 fi
6321
6322
6323
6324
6325
6326 # test EBCDIC or ASCII
6327 case `echo X|tr X '\101'` in
6328 A) # ASCII based system
6329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6330 lt_SP2NL='tr \040 \012'
6331 lt_NL2SP='tr \015\012 \040\040'
6332 ;;
6333 *) # EBCDIC based system
6334 lt_SP2NL='tr \100 \n'
6335 lt_NL2SP='tr \r\n \100\100'
6336 ;;
6337 esac
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6348 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6349 if ${lt_cv_to_host_file_cmd+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 case $host in
6353 *-*-mingw* )
6354 case $build in
6355 *-*-mingw* ) # actually msys
6356 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6357 ;;
6358 *-*-cygwin* )
6359 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6360 ;;
6361 * ) # otherwise, assume *nix
6362 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6363 ;;
6364 esac
6365 ;;
6366 *-*-cygwin* )
6367 case $build in
6368 *-*-mingw* ) # actually msys
6369 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6370 ;;
6371 *-*-cygwin* )
6372 lt_cv_to_host_file_cmd=func_convert_file_noop
6373 ;;
6374 * ) # otherwise, assume *nix
6375 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6376 ;;
6377 esac
6378 ;;
6379 * ) # unhandled hosts (and "normal" native builds)
6380 lt_cv_to_host_file_cmd=func_convert_file_noop
6381 ;;
6382 esac
6383
6384 fi
6385
6386 to_host_file_cmd=$lt_cv_to_host_file_cmd
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6388 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6389
6390
6391
6392
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6395 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6396 if ${lt_cv_to_tool_file_cmd+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 #assume ordinary cross tools, or native build.
6400 lt_cv_to_tool_file_cmd=func_convert_file_noop
6401 case $host in
6402 *-*-mingw* )
6403 case $build in
6404 *-*-mingw* ) # actually msys
6405 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6406 ;;
6407 esac
6408 ;;
6409 esac
6410
6411 fi
6412
6413 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6415 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6416
6417
6418
6419
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6422 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6423 if ${lt_cv_ld_reload_flag+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 lt_cv_ld_reload_flag='-r'
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6429 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6430 reload_flag=$lt_cv_ld_reload_flag
6431 case $reload_flag in
6432 "" | " "*) ;;
6433 *) reload_flag=" $reload_flag" ;;
6434 esac
6435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6436 case $host_os in
6437 cygwin* | mingw* | pw32* | cegcc*)
6438 if test "$GCC" != yes; then
6439 reload_cmds=false
6440 fi
6441 ;;
6442 darwin*)
6443 if test "$GCC" = yes; then
6444 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6445 else
6446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6447 fi
6448 ;;
6449 esac
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_OBJDUMP+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$OBJDUMP"; then
6468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 OBJDUMP=$ac_cv_prog_OBJDUMP
6488 if test -n "$OBJDUMP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6490 $as_echo "$OBJDUMP" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_OBJDUMP"; then
6499 ac_ct_OBJDUMP=$OBJDUMP
6500 # Extract the first word of "objdump", so it can be a program name with args.
6501 set dummy objdump; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_OBJDUMP"; then
6508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6528 if test -n "$ac_ct_OBJDUMP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6530 $as_echo "$ac_ct_OBJDUMP" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536 if test "x$ac_ct_OBJDUMP" = x; then
6537 OBJDUMP="false"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545 OBJDUMP=$ac_ct_OBJDUMP
6546 fi
6547 else
6548 OBJDUMP="$ac_cv_prog_OBJDUMP"
6549 fi
6550
6551 test -z "$OBJDUMP" && OBJDUMP=objdump
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6562 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6563 if ${lt_cv_deplibs_check_method+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 lt_cv_file_magic_cmd='$MAGIC_CMD'
6567 lt_cv_file_magic_test_file=
6568 lt_cv_deplibs_check_method='unknown'
6569 # Need to set the preceding variable on all platforms that support
6570 # interlibrary dependencies.
6571 # 'none' -- dependencies not supported.
6572 # `unknown' -- same as none, but documents that we really don't know.
6573 # 'pass_all' -- all dependencies passed with no checks.
6574 # 'test_compile' -- check by making test program.
6575 # 'file_magic [[regex]]' -- check by looking for files in library path
6576 # which responds to the $file_magic_cmd with a given extended regex.
6577 # If you have `file' or equivalent on your system and you're not sure
6578 # whether `pass_all' will *always* work, you probably want this one.
6579
6580 case $host_os in
6581 aix[4-9]*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
6584
6585 beos*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 bsdi[45]*)
6590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6591 lt_cv_file_magic_cmd='/usr/bin/file -L'
6592 lt_cv_file_magic_test_file=/shlib/libc.so
6593 ;;
6594
6595 cygwin*)
6596 # func_win32_libid is a shell function defined in ltmain.sh
6597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598 lt_cv_file_magic_cmd='func_win32_libid'
6599 ;;
6600
6601 mingw* | pw32*)
6602 # Base MSYS/MinGW do not provide the 'file' command needed by
6603 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6604 # unless we find 'file', for example because we are cross-compiling.
6605 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6606 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6608 lt_cv_file_magic_cmd='func_win32_libid'
6609 else
6610 # Keep this pattern in sync with the one in func_win32_libid.
6611 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6612 lt_cv_file_magic_cmd='$OBJDUMP -f'
6613 fi
6614 ;;
6615
6616 cegcc*)
6617 # use the weaker test based on 'objdump'. See mingw*.
6618 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6619 lt_cv_file_magic_cmd='$OBJDUMP -f'
6620 ;;
6621
6622 darwin* | rhapsody*)
6623 lt_cv_deplibs_check_method=pass_all
6624 ;;
6625
6626 freebsd* | dragonfly*)
6627 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6628 case $host_cpu in
6629 i*86 )
6630 # Not sure whether the presence of OpenBSD here was a mistake.
6631 # Let's accept both of them until this is cleared up.
6632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6633 lt_cv_file_magic_cmd=/usr/bin/file
6634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6635 ;;
6636 esac
6637 else
6638 lt_cv_deplibs_check_method=pass_all
6639 fi
6640 ;;
6641
6642 gnu*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645
6646 haiku*)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649
6650 hpux10.20* | hpux11*)
6651 lt_cv_file_magic_cmd=/usr/bin/file
6652 case $host_cpu in
6653 ia64*)
6654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6655 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6656 ;;
6657 hppa*64*)
6658 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]'
6659 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6660 ;;
6661 *)
6662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6663 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6664 ;;
6665 esac
6666 ;;
6667
6668 interix[3-9]*)
6669 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6671 ;;
6672
6673 irix5* | irix6* | nonstopux*)
6674 case $LD in
6675 *-32|*"-32 ") libmagic=32-bit;;
6676 *-n32|*"-n32 ") libmagic=N32;;
6677 *-64|*"-64 ") libmagic=64-bit;;
6678 *) libmagic=never-match;;
6679 esac
6680 lt_cv_deplibs_check_method=pass_all
6681 ;;
6682
6683 # This must be Linux ELF.
6684 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687
6688 netbsd*)
6689 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6691 else
6692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6693 fi
6694 ;;
6695
6696 newos6*)
6697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6698 lt_cv_file_magic_cmd=/usr/bin/file
6699 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6700 ;;
6701
6702 *nto* | *qnx*)
6703 lt_cv_deplibs_check_method=pass_all
6704 ;;
6705
6706 openbsd*)
6707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6709 else
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6711 fi
6712 ;;
6713
6714 osf3* | osf4* | osf5*)
6715 lt_cv_deplibs_check_method=pass_all
6716 ;;
6717
6718 rdos*)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
6721
6722 solaris*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725
6726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6727 lt_cv_deplibs_check_method=pass_all
6728 ;;
6729
6730 sysv4 | sysv4.3*)
6731 case $host_vendor in
6732 motorola)
6733 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]'
6734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6735 ;;
6736 ncr)
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739 sequent)
6740 lt_cv_file_magic_cmd='/bin/file'
6741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6742 ;;
6743 sni)
6744 lt_cv_file_magic_cmd='/bin/file'
6745 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6746 lt_cv_file_magic_test_file=/lib/libc.so
6747 ;;
6748 siemens)
6749 lt_cv_deplibs_check_method=pass_all
6750 ;;
6751 pc)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 esac
6755 ;;
6756
6757 tpf*)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 esac
6761
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6764 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6765
6766 file_magic_glob=
6767 want_nocaseglob=no
6768 if test "$build" = "$host"; then
6769 case $host_os in
6770 mingw* | pw32*)
6771 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6772 want_nocaseglob=yes
6773 else
6774 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6775 fi
6776 ;;
6777 esac
6778 fi
6779
6780 file_magic_cmd=$lt_cv_file_magic_cmd
6781 deplibs_check_method=$lt_cv_deplibs_check_method
6782 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_DLLTOOL+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$DLLTOOL"; then
6814 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 DLLTOOL=$ac_cv_prog_DLLTOOL
6834 if test -n "$DLLTOOL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6836 $as_echo "$DLLTOOL" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_DLLTOOL"; then
6845 ac_ct_DLLTOOL=$DLLTOOL
6846 # Extract the first word of "dlltool", so it can be a program name with args.
6847 set dummy dlltool; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$ac_ct_DLLTOOL"; then
6854 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6874 if test -n "$ac_ct_DLLTOOL"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6876 $as_echo "$ac_ct_DLLTOOL" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882 if test "x$ac_ct_DLLTOOL" = x; then
6883 DLLTOOL="false"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891 DLLTOOL=$ac_ct_DLLTOOL
6892 fi
6893 else
6894 DLLTOOL="$ac_cv_prog_DLLTOOL"
6895 fi
6896
6897 test -z "$DLLTOOL" && DLLTOOL=dlltool
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6909 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6910 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 lt_cv_sharedlib_from_linklib_cmd='unknown'
6914
6915 case $host_os in
6916 cygwin* | mingw* | pw32* | cegcc*)
6917 # two different shell functions defined in ltmain.sh
6918 # decide which to use based on capabilities of $DLLTOOL
6919 case `$DLLTOOL --help 2>&1` in
6920 *--identify-strict*)
6921 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6922 ;;
6923 *)
6924 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6925 ;;
6926 esac
6927 ;;
6928 *)
6929 # fallback: assume linklib IS sharedlib
6930 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6931 ;;
6932 esac
6933
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6936 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6937 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6938 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6939
6940
6941
6942
6943
6944
6945
6946 if test -n "$ac_tool_prefix"; then
6947 for ac_prog in ar
6948 do
6949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_AR+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$AR"; then
6957 ac_cv_prog_AR="$AR" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 AR=$ac_cv_prog_AR
6977 if test -n "$AR"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6979 $as_echo "$AR" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 test -n "$AR" && break
6987 done
6988 fi
6989 if test -z "$AR"; then
6990 ac_ct_AR=$AR
6991 for ac_prog in ar
6992 do
6993 # Extract the first word of "$ac_prog", so it can be a program name with args.
6994 set dummy $ac_prog; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$ac_ct_AR"; then
7001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_ac_ct_AR="$ac_prog"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7021 if test -n "$ac_ct_AR"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7023 $as_echo "$ac_ct_AR" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 test -n "$ac_ct_AR" && break
7031 done
7032
7033 if test "x$ac_ct_AR" = x; then
7034 AR="false"
7035 else
7036 case $cross_compiling:$ac_tool_warned in
7037 yes:)
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042 AR=$ac_ct_AR
7043 fi
7044 fi
7045
7046 : ${AR=ar}
7047 : ${AR_FLAGS=cru}
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7060 $as_echo_n "checking for archiver @FILE support... " >&6; }
7061 if ${lt_cv_ar_at_file+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 lt_cv_ar_at_file=no
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067
7068 int
7069 main ()
7070 {
7071
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 if ac_fn_c_try_compile "$LINENO"; then :
7077 echo conftest.$ac_objext > conftest.lst
7078 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
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" -eq 0; then
7085 # Ensure the archiver fails upon bogus file names.
7086 rm -f conftest.$ac_objext libconftest.a
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7088 (eval $lt_ar_try) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }
7092 if test "$ac_status" -ne 0; then
7093 lt_cv_ar_at_file=@
7094 fi
7095 fi
7096 rm -f conftest.* libconftest.a
7097
7098 fi
7099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7100
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7103 $as_echo "$lt_cv_ar_at_file" >&6; }
7104
7105 if test "x$lt_cv_ar_at_file" = xno; then
7106 archiver_list_spec=
7107 else
7108 archiver_list_spec=$lt_cv_ar_at_file
7109 fi
7110
7111
7112
7113
7114
7115
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}strip; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_STRIP+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$STRIP"; then
7126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 STRIP=$ac_cv_prog_STRIP
7146 if test -n "$STRIP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7148 $as_echo "$STRIP" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_STRIP"; then
7157 ac_ct_STRIP=$STRIP
7158 # Extract the first word of "strip", so it can be a program name with args.
7159 set dummy strip; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$ac_ct_STRIP"; then
7166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_ac_ct_STRIP="strip"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7186 if test -n "$ac_ct_STRIP"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7188 $as_echo "$ac_ct_STRIP" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194 if test "x$ac_ct_STRIP" = x; then
7195 STRIP=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203 STRIP=$ac_ct_STRIP
7204 fi
7205 else
7206 STRIP="$ac_cv_prog_STRIP"
7207 fi
7208
7209 test -z "$STRIP" && STRIP=:
7210
7211
7212
7213
7214
7215
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_RANLIB+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 if test -n "$RANLIB"; then
7225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 RANLIB=$ac_cv_prog_RANLIB
7245 if test -n "$RANLIB"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7247 $as_echo "$RANLIB" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_RANLIB"; then
7256 ac_ct_RANLIB=$RANLIB
7257 # Extract the first word of "ranlib", so it can be a program name with args.
7258 set dummy ranlib; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 if test -n "$ac_ct_RANLIB"; then
7265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_ac_ct_RANLIB="ranlib"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278 done
7279 done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7285 if test -n "$ac_ct_RANLIB"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7287 $as_echo "$ac_ct_RANLIB" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293 if test "x$ac_ct_RANLIB" = x; then
7294 RANLIB=":"
7295 else
7296 case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302 RANLIB=$ac_ct_RANLIB
7303 fi
7304 else
7305 RANLIB="$ac_cv_prog_RANLIB"
7306 fi
7307
7308 test -z "$RANLIB" && RANLIB=:
7309
7310
7311
7312
7313
7314
7315 # Determine commands to create old-style static archives.
7316 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7317 old_postinstall_cmds='chmod 644 $oldlib'
7318 old_postuninstall_cmds=
7319
7320 if test -n "$RANLIB"; then
7321 case $host_os in
7322 openbsd*)
7323 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7324 ;;
7325 *)
7326 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7327 ;;
7328 esac
7329 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7330 fi
7331
7332 case $host_os in
7333 darwin*)
7334 lock_old_archive_extraction=yes ;;
7335 *)
7336 lock_old_archive_extraction=no ;;
7337 esac
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
7370
7371
7372
7373
7374
7375
7376
7377 # If no C compiler was specified, use CC.
7378 LTCC=${LTCC-"$CC"}
7379
7380 # If no C compiler flags were specified, use CFLAGS.
7381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7382
7383 # Allow CC to be a program name with arguments.
7384 compiler=$CC
7385
7386
7387 # Check for command to grab the raw symbol name followed by C symbol from nm.
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7389 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7390 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393
7394 # These are sane defaults that work on at least a few old systems.
7395 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7396
7397 # Character class describing NM global symbol codes.
7398 symcode='[BCDEGRST]'
7399
7400 # Regexp to match symbols that can be accessed directly from C.
7401 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7402
7403 # Define system-specific variables.
7404 case $host_os in
7405 aix*)
7406 symcode='[BCDT]'
7407 ;;
7408 cygwin* | mingw* | pw32* | cegcc*)
7409 symcode='[ABCDGISTW]'
7410 ;;
7411 hpux*)
7412 if test "$host_cpu" = ia64; then
7413 symcode='[ABCDEGRST]'
7414 fi
7415 ;;
7416 irix* | nonstopux*)
7417 symcode='[BCDEGRST]'
7418 ;;
7419 osf*)
7420 symcode='[BCDEGQRST]'
7421 ;;
7422 solaris*)
7423 symcode='[BDRT]'
7424 ;;
7425 sco3.2v5*)
7426 symcode='[DT]'
7427 ;;
7428 sysv4.2uw2*)
7429 symcode='[DT]'
7430 ;;
7431 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7432 symcode='[ABDT]'
7433 ;;
7434 sysv4)
7435 symcode='[DFNSTU]'
7436 ;;
7437 esac
7438
7439 # If we're using GNU nm, then use its standard symbol codes.
7440 case `$NM -V 2>&1` in
7441 *GNU* | *'with BFD'*)
7442 symcode='[ABCDGIRSTW]' ;;
7443 esac
7444
7445 # Transform an extracted symbol line into a proper C declaration.
7446 # Some systems (esp. on ia64) link data and code symbols differently,
7447 # so use this general approach.
7448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7449
7450 # Transform an extracted symbol line into symbol name and symbol address
7451 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7452 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'"
7453
7454 # Handle CRLF in mingw tool chain
7455 opt_cr=
7456 case $build_os in
7457 mingw*)
7458 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7459 ;;
7460 esac
7461
7462 # Try without a prefix underscore, then with it.
7463 for ac_symprfx in "" "_"; do
7464
7465 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7466 symxfrm="\\1 $ac_symprfx\\2 \\2"
7467
7468 # Write the raw and C identifiers.
7469 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7470 # Fake it for dumpbin and say T for any non-static function
7471 # and D for any global variable.
7472 # Also find C++ and __fastcall symbols from MSVC++,
7473 # which start with @ or ?.
7474 lt_cv_sys_global_symbol_pipe="$AWK '"\
7475 " {last_section=section; section=\$ 3};"\
7476 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7477 " \$ 0!~/External *\|/{next};"\
7478 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7479 " {if(hide[section]) next};"\
7480 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7481 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7482 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7483 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7484 " ' prfx=^$ac_symprfx"
7485 else
7486 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7487 fi
7488 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7489
7490 # Check to see that the pipe works correctly.
7491 pipe_works=no
7492
7493 rm -f conftest*
7494 cat > conftest.$ac_ext <<_LT_EOF
7495 #ifdef __cplusplus
7496 extern "C" {
7497 #endif
7498 char nm_test_var;
7499 void nm_test_func(void);
7500 void nm_test_func(void){}
7501 #ifdef __cplusplus
7502 }
7503 #endif
7504 int main(){nm_test_var='a';nm_test_func();return(0);}
7505 _LT_EOF
7506
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508 (eval $ac_compile) 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 # Now try to grab the symbols.
7513 nlist=conftest.nm
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7515 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7516 ac_status=$?
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; } && test -s "$nlist"; then
7519 # Try sorting and uniquifying the output.
7520 if sort "$nlist" | uniq > "$nlist"T; then
7521 mv -f "$nlist"T "$nlist"
7522 else
7523 rm -f "$nlist"T
7524 fi
7525
7526 # Make sure that we snagged all the symbols we need.
7527 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7528 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7529 cat <<_LT_EOF > conftest.$ac_ext
7530 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7531 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7532 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7533 relocations are performed -- see ld's documentation on pseudo-relocs. */
7534 # define LT_DLSYM_CONST
7535 #elif defined(__osf__)
7536 /* This system does not cope well with relocations in const data. */
7537 # define LT_DLSYM_CONST
7538 #else
7539 # define LT_DLSYM_CONST const
7540 #endif
7541
7542 #ifdef __cplusplus
7543 extern "C" {
7544 #endif
7545
7546 _LT_EOF
7547 # Now generate the symbol file.
7548 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7549
7550 cat <<_LT_EOF >> conftest.$ac_ext
7551
7552 /* The mapping between symbol names and symbols. */
7553 LT_DLSYM_CONST struct {
7554 const char *name;
7555 void *address;
7556 }
7557 lt__PROGRAM__LTX_preloaded_symbols[] =
7558 {
7559 { "@PROGRAM@", (void *) 0 },
7560 _LT_EOF
7561 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7562 cat <<\_LT_EOF >> conftest.$ac_ext
7563 {0, (void *) 0}
7564 };
7565
7566 /* This works around a problem in FreeBSD linker */
7567 #ifdef FREEBSD_WORKAROUND
7568 static const void *lt_preloaded_setup() {
7569 return lt__PROGRAM__LTX_preloaded_symbols;
7570 }
7571 #endif
7572
7573 #ifdef __cplusplus
7574 }
7575 #endif
7576 _LT_EOF
7577 # Now try linking the two files.
7578 mv conftest.$ac_objext conftstm.$ac_objext
7579 lt_globsym_save_LIBS=$LIBS
7580 lt_globsym_save_CFLAGS=$CFLAGS
7581 LIBS="conftstm.$ac_objext"
7582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7584 (eval $ac_link) 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7588 pipe_works=yes
7589 fi
7590 LIBS=$lt_globsym_save_LIBS
7591 CFLAGS=$lt_globsym_save_CFLAGS
7592 else
7593 echo "cannot find nm_test_func in $nlist" >&5
7594 fi
7595 else
7596 echo "cannot find nm_test_var in $nlist" >&5
7597 fi
7598 else
7599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7600 fi
7601 else
7602 echo "$progname: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 fi
7605 rm -rf conftest* conftst*
7606
7607 # Do not use the global_symbol_pipe unless it works.
7608 if test "$pipe_works" = yes; then
7609 break
7610 else
7611 lt_cv_sys_global_symbol_pipe=
7612 fi
7613 done
7614
7615 fi
7616
7617 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7618 lt_cv_sys_global_symbol_to_cdecl=
7619 fi
7620 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7622 $as_echo "failed" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7625 $as_echo "ok" >&6; }
7626 fi
7627
7628 # Response file support.
7629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7630 nm_file_list_spec='@'
7631 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7632 nm_file_list_spec='@'
7633 fi
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7662 $as_echo_n "checking for sysroot... " >&6; }
7663
7664 # Check whether --with-sysroot was given.
7665 if test "${with_sysroot+set}" = set; then :
7666 withval=$with_sysroot;
7667 else
7668 with_sysroot=no
7669 fi
7670
7671
7672 lt_sysroot=
7673 case ${with_sysroot} in #(
7674 yes)
7675 if test "$GCC" = yes; then
7676 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7677 fi
7678 ;; #(
7679 /*)
7680 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7681 ;; #(
7682 no|'')
7683 ;; #(
7684 *)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7686 $as_echo "${with_sysroot}" >&6; }
7687 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7688 ;;
7689 esac
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7692 $as_echo "${lt_sysroot:-no}" >&6; }
7693
7694
7695
7696
7697
7698 # Check whether --enable-libtool-lock was given.
7699 if test "${enable_libtool_lock+set}" = set; then :
7700 enableval=$enable_libtool_lock;
7701 fi
7702
7703 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7704
7705 # Some flags need to be propagated to the compiler or linker for good
7706 # libtool support.
7707 case $host in
7708 ia64-*-hpux*)
7709 # Find out which ABI we are using.
7710 echo 'int i;' > conftest.$ac_ext
7711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7712 (eval $ac_compile) 2>&5
7713 ac_status=$?
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; }; then
7716 case `/usr/bin/file conftest.$ac_objext` in
7717 *ELF-32*)
7718 HPUX_IA64_MODE="32"
7719 ;;
7720 *ELF-64*)
7721 HPUX_IA64_MODE="64"
7722 ;;
7723 esac
7724 fi
7725 rm -rf conftest*
7726 ;;
7727 *-*-irix6*)
7728 # Find out which ABI we are using.
7729 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7731 (eval $ac_compile) 2>&5
7732 ac_status=$?
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; then
7735 if test "$lt_cv_prog_gnu_ld" = yes; then
7736 case `/usr/bin/file conftest.$ac_objext` in
7737 *32-bit*)
7738 LD="${LD-ld} -melf32bsmip"
7739 ;;
7740 *N32*)
7741 LD="${LD-ld} -melf32bmipn32"
7742 ;;
7743 *64-bit*)
7744 LD="${LD-ld} -melf64bmip"
7745 ;;
7746 esac
7747 else
7748 case `/usr/bin/file conftest.$ac_objext` in
7749 *32-bit*)
7750 LD="${LD-ld} -32"
7751 ;;
7752 *N32*)
7753 LD="${LD-ld} -n32"
7754 ;;
7755 *64-bit*)
7756 LD="${LD-ld} -64"
7757 ;;
7758 esac
7759 fi
7760 fi
7761 rm -rf conftest*
7762 ;;
7763
7764 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7765 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7766 # Find out which ABI we are using.
7767 echo 'int i;' > conftest.$ac_ext
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769 (eval $ac_compile) 2>&5
7770 ac_status=$?
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; }; then
7773 case `/usr/bin/file conftest.o` in
7774 *32-bit*)
7775 case $host in
7776 x86_64-*kfreebsd*-gnu)
7777 LD="${LD-ld} -m elf_i386_fbsd"
7778 ;;
7779 x86_64-*linux*)
7780 LD="${LD-ld} -m elf_i386"
7781 ;;
7782 ppc64-*linux*|powerpc64-*linux*)
7783 LD="${LD-ld} -m elf32ppclinux"
7784 ;;
7785 s390x-*linux*)
7786 LD="${LD-ld} -m elf_s390"
7787 ;;
7788 sparc64-*linux*)
7789 LD="${LD-ld} -m elf32_sparc"
7790 ;;
7791 esac
7792 ;;
7793 *64-bit*)
7794 case $host in
7795 x86_64-*kfreebsd*-gnu)
7796 LD="${LD-ld} -m elf_x86_64_fbsd"
7797 ;;
7798 x86_64-*linux*)
7799 LD="${LD-ld} -m elf_x86_64"
7800 ;;
7801 ppc*-*linux*|powerpc*-*linux*)
7802 LD="${LD-ld} -m elf64ppc"
7803 ;;
7804 s390*-*linux*|s390*-*tpf*)
7805 LD="${LD-ld} -m elf64_s390"
7806 ;;
7807 sparc*-*linux*)
7808 LD="${LD-ld} -m elf64_sparc"
7809 ;;
7810 esac
7811 ;;
7812 esac
7813 fi
7814 rm -rf conftest*
7815 ;;
7816
7817 *-*-sco3.2v5*)
7818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7819 SAVE_CFLAGS="$CFLAGS"
7820 CFLAGS="$CFLAGS -belf"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7822 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7823 if ${lt_cv_cc_needs_belf+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 ac_ext=c
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834
7835 int
7836 main ()
7837 {
7838
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_link "$LINENO"; then :
7844 lt_cv_cc_needs_belf=yes
7845 else
7846 lt_cv_cc_needs_belf=no
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 ac_ext=c
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7858 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7859 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7861 CFLAGS="$SAVE_CFLAGS"
7862 fi
7863 ;;
7864 sparc*-*solaris*)
7865 # Find out which ABI we are using.
7866 echo 'int i;' > conftest.$ac_ext
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7868 (eval $ac_compile) 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 case `/usr/bin/file conftest.o` in
7873 *64-bit*)
7874 case $lt_cv_prog_gnu_ld in
7875 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7876 *)
7877 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7878 LD="${LD-ld} -64"
7879 fi
7880 ;;
7881 esac
7882 ;;
7883 esac
7884 fi
7885 rm -rf conftest*
7886 ;;
7887 esac
7888
7889 need_locks="$enable_libtool_lock"
7890
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}mt; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$MANIFEST_TOOL"; then
7900 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7920 if test -n "$MANIFEST_TOOL"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7922 $as_echo "$MANIFEST_TOOL" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928
7929 fi
7930 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7931 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7932 # Extract the first word of "mt", so it can be a program name with args.
7933 set dummy mt; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 if test -n "$ac_ct_MANIFEST_TOOL"; then
7940 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7960 if test -n "$ac_ct_MANIFEST_TOOL"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7962 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7969 MANIFEST_TOOL=":"
7970 else
7971 case $cross_compiling:$ac_tool_warned in
7972 yes:)
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7976 esac
7977 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7978 fi
7979 else
7980 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7981 fi
7982
7983 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7985 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7986 if ${lt_cv_path_mainfest_tool+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 lt_cv_path_mainfest_tool=no
7990 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7991 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7992 cat conftest.err >&5
7993 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7994 lt_cv_path_mainfest_tool=yes
7995 fi
7996 rm -f conftest*
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7999 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8000 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8001 MANIFEST_TOOL=:
8002 fi
8003
8004
8005
8006
8007
8008
8009 case $host_os in
8010 rhapsody* | darwin*)
8011 if test -n "$ac_tool_prefix"; then
8012 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8013 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$DSYMUTIL"; then
8020 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8040 if test -n "$DSYMUTIL"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8042 $as_echo "$DSYMUTIL" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047
8048
8049 fi
8050 if test -z "$ac_cv_prog_DSYMUTIL"; then
8051 ac_ct_DSYMUTIL=$DSYMUTIL
8052 # Extract the first word of "dsymutil", so it can be a program name with args.
8053 set dummy dsymutil; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 if test -n "$ac_ct_DSYMUTIL"; then
8060 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073 done
8074 done
8075 IFS=$as_save_IFS
8076
8077 fi
8078 fi
8079 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8080 if test -n "$ac_ct_DSYMUTIL"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8082 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088 if test "x$ac_ct_DSYMUTIL" = x; then
8089 DSYMUTIL=":"
8090 else
8091 case $cross_compiling:$ac_tool_warned in
8092 yes:)
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8095 ac_tool_warned=yes ;;
8096 esac
8097 DSYMUTIL=$ac_ct_DSYMUTIL
8098 fi
8099 else
8100 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8101 fi
8102
8103 if test -n "$ac_tool_prefix"; then
8104 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8105 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_prog_NMEDIT+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 if test -n "$NMEDIT"; then
8112 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 NMEDIT=$ac_cv_prog_NMEDIT
8132 if test -n "$NMEDIT"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8134 $as_echo "$NMEDIT" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139
8140
8141 fi
8142 if test -z "$ac_cv_prog_NMEDIT"; then
8143 ac_ct_NMEDIT=$NMEDIT
8144 # Extract the first word of "nmedit", so it can be a program name with args.
8145 set dummy nmedit; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 if test -n "$ac_ct_NMEDIT"; then
8152 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8164 fi
8165 done
8166 done
8167 IFS=$as_save_IFS
8168
8169 fi
8170 fi
8171 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8172 if test -n "$ac_ct_NMEDIT"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8174 $as_echo "$ac_ct_NMEDIT" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178 fi
8179
8180 if test "x$ac_ct_NMEDIT" = x; then
8181 NMEDIT=":"
8182 else
8183 case $cross_compiling:$ac_tool_warned in
8184 yes:)
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8187 ac_tool_warned=yes ;;
8188 esac
8189 NMEDIT=$ac_ct_NMEDIT
8190 fi
8191 else
8192 NMEDIT="$ac_cv_prog_NMEDIT"
8193 fi
8194
8195 if test -n "$ac_tool_prefix"; then
8196 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8197 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if ${ac_cv_prog_LIPO+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 if test -n "$LIPO"; then
8204 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8208 do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 fi
8222 fi
8223 LIPO=$ac_cv_prog_LIPO
8224 if test -n "$LIPO"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8226 $as_echo "$LIPO" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231
8232
8233 fi
8234 if test -z "$ac_cv_prog_LIPO"; then
8235 ac_ct_LIPO=$LIPO
8236 # Extract the first word of "lipo", so it can be a program name with args.
8237 set dummy lipo; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$ac_ct_LIPO"; then
8244 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_prog_ac_ct_LIPO="lipo"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 fi
8262 fi
8263 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8264 if test -n "$ac_ct_LIPO"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8266 $as_echo "$ac_ct_LIPO" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8270 fi
8271
8272 if test "x$ac_ct_LIPO" = x; then
8273 LIPO=":"
8274 else
8275 case $cross_compiling:$ac_tool_warned in
8276 yes:)
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8279 ac_tool_warned=yes ;;
8280 esac
8281 LIPO=$ac_ct_LIPO
8282 fi
8283 else
8284 LIPO="$ac_cv_prog_LIPO"
8285 fi
8286
8287 if test -n "$ac_tool_prefix"; then
8288 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8289 set dummy ${ac_tool_prefix}otool; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_prog_OTOOL+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 if test -n "$OTOOL"; then
8296 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8297 else
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8300 do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8308 fi
8309 done
8310 done
8311 IFS=$as_save_IFS
8312
8313 fi
8314 fi
8315 OTOOL=$ac_cv_prog_OTOOL
8316 if test -n "$OTOOL"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8318 $as_echo "$OTOOL" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8322 fi
8323
8324
8325 fi
8326 if test -z "$ac_cv_prog_OTOOL"; then
8327 ac_ct_OTOOL=$OTOOL
8328 # Extract the first word of "otool", so it can be a program name with args.
8329 set dummy otool; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$ac_ct_OTOOL"; then
8336 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_ac_ct_OTOOL="otool"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353 fi
8354 fi
8355 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8356 if test -n "$ac_ct_OTOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8358 $as_echo "$ac_ct_OTOOL" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362 fi
8363
8364 if test "x$ac_ct_OTOOL" = x; then
8365 OTOOL=":"
8366 else
8367 case $cross_compiling:$ac_tool_warned in
8368 yes:)
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8371 ac_tool_warned=yes ;;
8372 esac
8373 OTOOL=$ac_ct_OTOOL
8374 fi
8375 else
8376 OTOOL="$ac_cv_prog_OTOOL"
8377 fi
8378
8379 if test -n "$ac_tool_prefix"; then
8380 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8381 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_OTOOL64+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 if test -n "$OTOOL64"; then
8388 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401 done
8402 done
8403 IFS=$as_save_IFS
8404
8405 fi
8406 fi
8407 OTOOL64=$ac_cv_prog_OTOOL64
8408 if test -n "$OTOOL64"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8410 $as_echo "$OTOOL64" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417 fi
8418 if test -z "$ac_cv_prog_OTOOL64"; then
8419 ac_ct_OTOOL64=$OTOOL64
8420 # Extract the first word of "otool64", so it can be a program name with args.
8421 set dummy otool64; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 if test -n "$ac_ct_OTOOL64"; then
8428 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_ac_ct_OTOOL64="otool64"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8440 fi
8441 done
8442 done
8443 IFS=$as_save_IFS
8444
8445 fi
8446 fi
8447 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8448 if test -n "$ac_ct_OTOOL64"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8450 $as_echo "$ac_ct_OTOOL64" >&6; }
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456 if test "x$ac_ct_OTOOL64" = x; then
8457 OTOOL64=":"
8458 else
8459 case $cross_compiling:$ac_tool_warned in
8460 yes:)
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8463 ac_tool_warned=yes ;;
8464 esac
8465 OTOOL64=$ac_ct_OTOOL64
8466 fi
8467 else
8468 OTOOL64="$ac_cv_prog_OTOOL64"
8469 fi
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8498 $as_echo_n "checking for -single_module linker flag... " >&6; }
8499 if ${lt_cv_apple_cc_single_mod+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 lt_cv_apple_cc_single_mod=no
8503 if test -z "${LT_MULTI_MODULE}"; then
8504 # By default we will add the -single_module flag. You can override
8505 # by either setting the environment variable LT_MULTI_MODULE
8506 # non-empty at configure time, or by adding -multi_module to the
8507 # link flags.
8508 rm -rf libconftest.dylib*
8509 echo "int foo(void){return 1;}" > conftest.c
8510 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8511 -dynamiclib -Wl,-single_module conftest.c" >&5
8512 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8513 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8514 _lt_result=$?
8515 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8516 lt_cv_apple_cc_single_mod=yes
8517 else
8518 cat conftest.err >&5
8519 fi
8520 rm -rf libconftest.dylib*
8521 rm -f conftest.*
8522 fi
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8525 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8527 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8528 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 lt_cv_ld_exported_symbols_list=no
8532 save_LDFLAGS=$LDFLAGS
8533 echo "_main" > conftest.sym
8534 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537
8538 int
8539 main ()
8540 {
8541
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_link "$LINENO"; then :
8547 lt_cv_ld_exported_symbols_list=yes
8548 else
8549 lt_cv_ld_exported_symbols_list=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553 LDFLAGS="$save_LDFLAGS"
8554
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8557 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8559 $as_echo_n "checking for -force_load linker flag... " >&6; }
8560 if ${lt_cv_ld_force_load+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 lt_cv_ld_force_load=no
8564 cat > conftest.c << _LT_EOF
8565 int forced_loaded() { return 2;}
8566 _LT_EOF
8567 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8568 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8569 echo "$AR cru libconftest.a conftest.o" >&5
8570 $AR cru libconftest.a conftest.o 2>&5
8571 echo "$RANLIB libconftest.a" >&5
8572 $RANLIB libconftest.a 2>&5
8573 cat > conftest.c << _LT_EOF
8574 int main() { return 0;}
8575 _LT_EOF
8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8578 _lt_result=$?
8579 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8580 lt_cv_ld_force_load=yes
8581 else
8582 cat conftest.err >&5
8583 fi
8584 rm -f conftest.err libconftest.a conftest conftest.c
8585 rm -rf conftest.dSYM
8586
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8589 $as_echo "$lt_cv_ld_force_load" >&6; }
8590 case $host_os in
8591 rhapsody* | darwin1.[012])
8592 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8593 darwin1.*)
8594 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8595 darwin*) # darwin 5.x on
8596 # if running on 10.5 or later, the deployment target defaults
8597 # to the OS version, if on x86, and 10.4, the deployment
8598 # target defaults to 10.4. Don't you love it?
8599 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8600 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8602 10.[012]*)
8603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8604 10.*)
8605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8606 esac
8607 ;;
8608 esac
8609 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8610 _lt_dar_single_mod='$single_module'
8611 fi
8612 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8613 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8614 else
8615 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8616 fi
8617 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8618 _lt_dsymutil='~$DSYMUTIL $lib || :'
8619 else
8620 _lt_dsymutil=
8621 fi
8622 ;;
8623 esac
8624
8625 for ac_header in dlfcn.h
8626 do :
8627 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8628 "
8629 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8630 cat >>confdefs.h <<_ACEOF
8631 #define HAVE_DLFCN_H 1
8632 _ACEOF
8633
8634 fi
8635
8636 done
8637
8638
8639
8640
8641
8642 # Set options
8643
8644
8645
8646 enable_dlopen=no
8647
8648
8649 enable_win32_dll=no
8650
8651
8652
8653
8654
8655 # Check whether --with-pic was given.
8656 if test "${with_pic+set}" = set; then :
8657 withval=$with_pic; pic_mode="$withval"
8658 else
8659 pic_mode=default
8660 fi
8661
8662
8663 test -z "$pic_mode" && pic_mode=default
8664
8665
8666
8667
8668
8669
8670
8671 # Check whether --enable-fast-install was given.
8672 if test "${enable_fast_install+set}" = set; then :
8673 enableval=$enable_fast_install; p=${PACKAGE-default}
8674 case $enableval in
8675 yes) enable_fast_install=yes ;;
8676 no) enable_fast_install=no ;;
8677 *)
8678 enable_fast_install=no
8679 # Look at the argument we got. We use all the common list separators.
8680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8681 for pkg in $enableval; do
8682 IFS="$lt_save_ifs"
8683 if test "X$pkg" = "X$p"; then
8684 enable_fast_install=yes
8685 fi
8686 done
8687 IFS="$lt_save_ifs"
8688 ;;
8689 esac
8690 else
8691 enable_fast_install=yes
8692 fi
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 # This can be used to rebuild libtool when needed
8705 LIBTOOL_DEPS="$ltmain"
8706
8707 # Always use our own libtool.
8708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 test -z "$LN_S" && LN_S="ln -s"
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 if test -n "${ZSH_VERSION+set}" ; then
8751 setopt NO_GLOB_SUBST
8752 fi
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8755 $as_echo_n "checking for objdir... " >&6; }
8756 if ${lt_cv_objdir+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 rm -f .libs 2>/dev/null
8760 mkdir .libs 2>/dev/null
8761 if test -d .libs; then
8762 lt_cv_objdir=.libs
8763 else
8764 # MS-DOS does not allow filenames that begin with a dot.
8765 lt_cv_objdir=_libs
8766 fi
8767 rmdir .libs 2>/dev/null
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8770 $as_echo "$lt_cv_objdir" >&6; }
8771 objdir=$lt_cv_objdir
8772
8773
8774
8775
8776
8777 cat >>confdefs.h <<_ACEOF
8778 #define LT_OBJDIR "$lt_cv_objdir/"
8779 _ACEOF
8780
8781
8782
8783
8784 case $host_os in
8785 aix3*)
8786 # AIX sometimes has problems with the GCC collect2 program. For some
8787 # reason, if we set the COLLECT_NAMES environment variable, the problems
8788 # vanish in a puff of smoke.
8789 if test "X${COLLECT_NAMES+set}" != Xset; then
8790 COLLECT_NAMES=
8791 export COLLECT_NAMES
8792 fi
8793 ;;
8794 esac
8795
8796 # Global variables:
8797 ofile=libtool
8798 can_build_shared=yes
8799
8800 # All known linkers require a `.a' archive for static linking (except MSVC,
8801 # which needs '.lib').
8802 libext=a
8803
8804 with_gnu_ld="$lt_cv_prog_gnu_ld"
8805
8806 old_CC="$CC"
8807 old_CFLAGS="$CFLAGS"
8808
8809 # Set sane defaults for various variables
8810 test -z "$CC" && CC=cc
8811 test -z "$LTCC" && LTCC=$CC
8812 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8813 test -z "$LD" && LD=ld
8814 test -z "$ac_objext" && ac_objext=o
8815
8816 for cc_temp in $compiler""; do
8817 case $cc_temp in
8818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8820 \-*) ;;
8821 *) break;;
8822 esac
8823 done
8824 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8825
8826
8827 # Only perform the check for file, if the check method requires it
8828 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8829 case $deplibs_check_method in
8830 file_magic*)
8831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8833 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8834 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 case $MAGIC_CMD in
8838 [\\/*] | ?:[\\/]*)
8839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8840 ;;
8841 *)
8842 lt_save_MAGIC_CMD="$MAGIC_CMD"
8843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8845 for ac_dir in $ac_dummy; do
8846 IFS="$lt_save_ifs"
8847 test -z "$ac_dir" && ac_dir=.
8848 if test -f $ac_dir/${ac_tool_prefix}file; then
8849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8850 if test -n "$file_magic_test_file"; then
8851 case $deplibs_check_method in
8852 "file_magic "*)
8853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8856 $EGREP "$file_magic_regex" > /dev/null; then
8857 :
8858 else
8859 cat <<_LT_EOF 1>&2
8860
8861 *** Warning: the command libtool uses to detect shared libraries,
8862 *** $file_magic_cmd, produces output that libtool cannot recognize.
8863 *** The result is that libtool may fail to recognize shared libraries
8864 *** as such. This will affect the creation of libtool libraries that
8865 *** depend on shared libraries, but programs linked with such libtool
8866 *** libraries will work regardless of this problem. Nevertheless, you
8867 *** may want to report the problem to your system manager and/or to
8868 *** bug-libtool@gnu.org
8869
8870 _LT_EOF
8871 fi ;;
8872 esac
8873 fi
8874 break
8875 fi
8876 done
8877 IFS="$lt_save_ifs"
8878 MAGIC_CMD="$lt_save_MAGIC_CMD"
8879 ;;
8880 esac
8881 fi
8882
8883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8884 if test -n "$MAGIC_CMD"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8886 $as_echo "$MAGIC_CMD" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891
8892
8893
8894
8895
8896 if test -z "$lt_cv_path_MAGIC_CMD"; then
8897 if test -n "$ac_tool_prefix"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8899 $as_echo_n "checking for file... " >&6; }
8900 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 case $MAGIC_CMD in
8904 [\\/*] | ?:[\\/]*)
8905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8906 ;;
8907 *)
8908 lt_save_MAGIC_CMD="$MAGIC_CMD"
8909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8911 for ac_dir in $ac_dummy; do
8912 IFS="$lt_save_ifs"
8913 test -z "$ac_dir" && ac_dir=.
8914 if test -f $ac_dir/file; then
8915 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8916 if test -n "$file_magic_test_file"; then
8917 case $deplibs_check_method in
8918 "file_magic "*)
8919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8922 $EGREP "$file_magic_regex" > /dev/null; then
8923 :
8924 else
8925 cat <<_LT_EOF 1>&2
8926
8927 *** Warning: the command libtool uses to detect shared libraries,
8928 *** $file_magic_cmd, produces output that libtool cannot recognize.
8929 *** The result is that libtool may fail to recognize shared libraries
8930 *** as such. This will affect the creation of libtool libraries that
8931 *** depend on shared libraries, but programs linked with such libtool
8932 *** libraries will work regardless of this problem. Nevertheless, you
8933 *** may want to report the problem to your system manager and/or to
8934 *** bug-libtool@gnu.org
8935
8936 _LT_EOF
8937 fi ;;
8938 esac
8939 fi
8940 break
8941 fi
8942 done
8943 IFS="$lt_save_ifs"
8944 MAGIC_CMD="$lt_save_MAGIC_CMD"
8945 ;;
8946 esac
8947 fi
8948
8949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8950 if test -n "$MAGIC_CMD"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8952 $as_echo "$MAGIC_CMD" >&6; }
8953 else
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8956 fi
8957
8958
8959 else
8960 MAGIC_CMD=:
8961 fi
8962 fi
8963
8964 fi
8965 ;;
8966 esac
8967
8968 # Use C for the default configuration in the libtool script
8969
8970 lt_save_CC="$CC"
8971 ac_ext=c
8972 ac_cpp='$CPP $CPPFLAGS'
8973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8976
8977
8978 # Source file extension for C test sources.
8979 ac_ext=c
8980
8981 # Object file extension for compiled C test sources.
8982 objext=o
8983 objext=$objext
8984
8985 # Code to be used in simple compile tests
8986 lt_simple_compile_test_code="int some_variable = 0;"
8987
8988 # Code to be used in simple link tests
8989 lt_simple_link_test_code='int main(){return(0);}'
8990
8991
8992
8993
8994
8995
8996
8997 # If no C compiler was specified, use CC.
8998 LTCC=${LTCC-"$CC"}
8999
9000 # If no C compiler flags were specified, use CFLAGS.
9001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9002
9003 # Allow CC to be a program name with arguments.
9004 compiler=$CC
9005
9006 # Save the default compiler, since it gets overwritten when the other
9007 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9008 compiler_DEFAULT=$CC
9009
9010 # save warnings/boilerplate of simple test code
9011 ac_outfile=conftest.$ac_objext
9012 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9014 _lt_compiler_boilerplate=`cat conftest.err`
9015 $RM conftest*
9016
9017 ac_outfile=conftest.$ac_objext
9018 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9020 _lt_linker_boilerplate=`cat conftest.err`
9021 $RM -r conftest*
9022
9023
9024 if test -n "$compiler"; then
9025
9026 lt_prog_compiler_no_builtin_flag=
9027
9028 if test "$GCC" = yes; then
9029 case $cc_basename in
9030 nvcc*)
9031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9032 *)
9033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9034 esac
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9037 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9038 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 lt_cv_prog_compiler_rtti_exceptions=no
9042 ac_outfile=conftest.$ac_objext
9043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044 lt_compiler_flag="-fno-rtti -fno-exceptions"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 # The option is referenced via a variable to avoid confusing sed.
9050 lt_compile=`echo "$ac_compile" | $SED \
9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053 -e 's:$: $lt_compiler_flag:'`
9054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9055 (eval "$lt_compile" 2>conftest.err)
9056 ac_status=$?
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 if (exit $ac_status) && test -s "$ac_outfile"; then
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings other than the usual output.
9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_rtti_exceptions=yes
9066 fi
9067 fi
9068 $RM conftest*
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9072 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9073
9074 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9076 else
9077 :
9078 fi
9079
9080 fi
9081
9082
9083
9084
9085
9086
9087 lt_prog_compiler_wl=
9088 lt_prog_compiler_pic=
9089 lt_prog_compiler_static=
9090
9091
9092 if test "$GCC" = yes; then
9093 lt_prog_compiler_wl='-Wl,'
9094 lt_prog_compiler_static='-static'
9095
9096 case $host_os in
9097 aix*)
9098 # All AIX code is PIC.
9099 if test "$host_cpu" = ia64; then
9100 # AIX 5 now supports IA64 processor
9101 lt_prog_compiler_static='-Bstatic'
9102 fi
9103 ;;
9104
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 lt_prog_compiler_pic='-fPIC'
9110 ;;
9111 m68k)
9112 # FIXME: we need at least 68020 code to build shared libraries, but
9113 # adding the `-m68020' flag to GCC prevents building anything better,
9114 # like `-m68040'.
9115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9116 ;;
9117 esac
9118 ;;
9119
9120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9121 # PIC is the default for these OSes.
9122 ;;
9123
9124 mingw* | cygwin* | pw32* | os2* | cegcc*)
9125 # This hack is so that the source file can tell whether it is being
9126 # built for inclusion in a dll (and should export symbols for example).
9127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9128 # (--disable-auto-import) libraries
9129 lt_prog_compiler_pic='-DDLL_EXPORT'
9130 ;;
9131
9132 darwin* | rhapsody*)
9133 # PIC is the default on this platform
9134 # Common symbols not allowed in MH_DYLIB files
9135 lt_prog_compiler_pic='-fno-common'
9136 ;;
9137
9138 haiku*)
9139 # PIC is the default for Haiku.
9140 # The "-static" flag exists, but is broken.
9141 lt_prog_compiler_static=
9142 ;;
9143
9144 hpux*)
9145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9147 # sets the default TLS model and affects inlining.
9148 case $host_cpu in
9149 hppa*64*)
9150 # +Z the default
9151 ;;
9152 *)
9153 lt_prog_compiler_pic='-fPIC'
9154 ;;
9155 esac
9156 ;;
9157
9158 interix[3-9]*)
9159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160 # Instead, we relocate shared libraries at runtime.
9161 ;;
9162
9163 msdosdjgpp*)
9164 # Just because we use GCC doesn't mean we suddenly get shared libraries
9165 # on systems that don't support them.
9166 lt_prog_compiler_can_build_shared=no
9167 enable_shared=no
9168 ;;
9169
9170 *nto* | *qnx*)
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9172 # it will coredump.
9173 lt_prog_compiler_pic='-fPIC -shared'
9174 ;;
9175
9176 sysv4*MP*)
9177 if test -d /usr/nec; then
9178 lt_prog_compiler_pic=-Kconform_pic
9179 fi
9180 ;;
9181
9182 *)
9183 lt_prog_compiler_pic='-fPIC'
9184 ;;
9185 esac
9186
9187 case $cc_basename in
9188 nvcc*) # Cuda Compiler Driver 2.2
9189 lt_prog_compiler_wl='-Xlinker '
9190 lt_prog_compiler_pic='-Xcompiler -fPIC'
9191 ;;
9192 esac
9193 else
9194 # PORTME Check for flag to pass linker flags through the system compiler.
9195 case $host_os in
9196 aix*)
9197 lt_prog_compiler_wl='-Wl,'
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static='-Bstatic'
9201 else
9202 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9203 fi
9204 ;;
9205
9206 mingw* | cygwin* | pw32* | os2* | cegcc*)
9207 # This hack is so that the source file can tell whether it is being
9208 # built for inclusion in a dll (and should export symbols for example).
9209 lt_prog_compiler_pic='-DDLL_EXPORT'
9210 ;;
9211
9212 hpux9* | hpux10* | hpux11*)
9213 lt_prog_compiler_wl='-Wl,'
9214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9215 # not for PA HP-UX.
9216 case $host_cpu in
9217 hppa*64*|ia64*)
9218 # +Z the default
9219 ;;
9220 *)
9221 lt_prog_compiler_pic='+Z'
9222 ;;
9223 esac
9224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9225 lt_prog_compiler_static='${wl}-a ${wl}archive'
9226 ;;
9227
9228 irix5* | irix6* | nonstopux*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # PIC (with -KPIC) is the default.
9231 lt_prog_compiler_static='-non_shared'
9232 ;;
9233
9234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9235 case $cc_basename in
9236 # old Intel for x86_64 which still supported -KPIC.
9237 ecc*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-static'
9241 ;;
9242 # icc used to be incompatible with GCC.
9243 # ICC 10 doesn't accept -KPIC any more.
9244 icc* | ifort*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='-fPIC'
9247 lt_prog_compiler_static='-static'
9248 ;;
9249 # Lahey Fortran 8.1.
9250 lf95*)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='--shared'
9253 lt_prog_compiler_static='--static'
9254 ;;
9255 nagfor*)
9256 # NAG Fortran compiler
9257 lt_prog_compiler_wl='-Wl,-Wl,,'
9258 lt_prog_compiler_pic='-PIC'
9259 lt_prog_compiler_static='-Bstatic'
9260 ;;
9261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9262 # Portland Group compilers (*not* the Pentium gcc compiler,
9263 # which looks to be a dead project)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='-fpic'
9266 lt_prog_compiler_static='-Bstatic'
9267 ;;
9268 ccc*)
9269 lt_prog_compiler_wl='-Wl,'
9270 # All Alpha code is PIC.
9271 lt_prog_compiler_static='-non_shared'
9272 ;;
9273 xl* | bgxl* | bgf* | mpixl*)
9274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-qpic'
9277 lt_prog_compiler_static='-qstaticlink'
9278 ;;
9279 *)
9280 case `$CC -V 2>&1 | sed 5q` in
9281 *Sun\ F* | *Sun*Fortran*)
9282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 lt_prog_compiler_wl=''
9286 ;;
9287 *Sun\ C*)
9288 # Sun C 5.9
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
9291 lt_prog_compiler_wl='-Wl,'
9292 ;;
9293 esac
9294 ;;
9295 esac
9296 ;;
9297
9298 newsos6)
9299 lt_prog_compiler_pic='-KPIC'
9300 lt_prog_compiler_static='-Bstatic'
9301 ;;
9302
9303 *nto* | *qnx*)
9304 # QNX uses GNU C++, but need to define -shared option too, otherwise
9305 # it will coredump.
9306 lt_prog_compiler_pic='-fPIC -shared'
9307 ;;
9308
9309 osf3* | osf4* | osf5*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # All OSF/1 code is PIC.
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
9314
9315 rdos*)
9316 lt_prog_compiler_static='-non_shared'
9317 ;;
9318
9319 solaris*)
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
9322 case $cc_basename in
9323 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9324 lt_prog_compiler_wl='-Qoption ld ';;
9325 *)
9326 lt_prog_compiler_wl='-Wl,';;
9327 esac
9328 ;;
9329
9330 sunos4*)
9331 lt_prog_compiler_wl='-Qoption ld '
9332 lt_prog_compiler_pic='-PIC'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335
9336 sysv4 | sysv4.2uw2* | sysv4.3*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 ;;
9341
9342 sysv4*MP*)
9343 if test -d /usr/nec ;then
9344 lt_prog_compiler_pic='-Kconform_pic'
9345 lt_prog_compiler_static='-Bstatic'
9346 fi
9347 ;;
9348
9349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 unicos*)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_can_build_shared=no
9358 ;;
9359
9360 uts4*)
9361 lt_prog_compiler_pic='-pic'
9362 lt_prog_compiler_static='-Bstatic'
9363 ;;
9364
9365 *)
9366 lt_prog_compiler_can_build_shared=no
9367 ;;
9368 esac
9369 fi
9370
9371 case $host_os in
9372 # For platforms which do not support PIC, -DPIC is meaningless:
9373 *djgpp*)
9374 lt_prog_compiler_pic=
9375 ;;
9376 *)
9377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9378 ;;
9379 esac
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9382 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9383 if ${lt_cv_prog_compiler_pic+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9387 fi
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9389 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9390 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9391
9392 #
9393 # Check to make sure the PIC flag actually works.
9394 #
9395 if test -n "$lt_prog_compiler_pic"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9397 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9398 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 lt_cv_prog_compiler_pic_works=no
9402 ac_outfile=conftest.$ac_objext
9403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9405 # Insert the option either (1) after the last *FLAGS variable, or
9406 # (2) before a word containing "conftest.", or (3) at the end.
9407 # Note that $ac_compile itself does not contain backslashes and begins
9408 # with a dollar sign (not a hyphen), so the echo should work correctly.
9409 # The option is referenced via a variable to avoid confusing sed.
9410 lt_compile=`echo "$ac_compile" | $SED \
9411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9413 -e 's:$: $lt_compiler_flag:'`
9414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9415 (eval "$lt_compile" 2>conftest.err)
9416 ac_status=$?
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 if (exit $ac_status) && test -s "$ac_outfile"; then
9420 # The compiler can only warn and ignore the option if not recognized
9421 # So say no if there are warnings other than the usual output.
9422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9425 lt_cv_prog_compiler_pic_works=yes
9426 fi
9427 fi
9428 $RM conftest*
9429
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9432 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9433
9434 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9435 case $lt_prog_compiler_pic in
9436 "" | " "*) ;;
9437 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9438 esac
9439 else
9440 lt_prog_compiler_pic=
9441 lt_prog_compiler_can_build_shared=no
9442 fi
9443
9444 fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456 #
9457 # Check to make sure the static flag actually works.
9458 #
9459 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9461 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9462 if ${lt_cv_prog_compiler_static_works+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 lt_cv_prog_compiler_static_works=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler_static_works=yes
9479 fi
9480 else
9481 lt_cv_prog_compiler_static_works=yes
9482 fi
9483 fi
9484 $RM -r conftest*
9485 LDFLAGS="$save_LDFLAGS"
9486
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9489 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9490
9491 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9492 :
9493 else
9494 lt_prog_compiler_static=
9495 fi
9496
9497
9498
9499
9500
9501
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9504 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9505 if ${lt_cv_prog_compiler_c_o+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 lt_cv_prog_compiler_c_o=no
9509 $RM -r conftest 2>/dev/null
9510 mkdir conftest
9511 cd conftest
9512 mkdir out
9513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9514
9515 lt_compiler_flag="-o out/conftest2.$ac_objext"
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 lt_compile=`echo "$ac_compile" | $SED \
9521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523 -e 's:$: $lt_compiler_flag:'`
9524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9525 (eval "$lt_compile" 2>out/conftest.err)
9526 ac_status=$?
9527 cat out/conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9530 then
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings
9533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_c_o=yes
9537 fi
9538 fi
9539 chmod u+w . 2>&5
9540 $RM conftest*
9541 # SGI C++ compiler will create directory out/ii_files/ for
9542 # template instantiation
9543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9544 $RM out/* && rmdir out
9545 cd ..
9546 $RM -r conftest
9547 $RM conftest*
9548
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9551 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9552
9553
9554
9555
9556
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9560 if ${lt_cv_prog_compiler_c_o+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 lt_cv_prog_compiler_c_o=no
9564 $RM -r conftest 2>/dev/null
9565 mkdir conftest
9566 cd conftest
9567 mkdir out
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570 lt_compiler_flag="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580 (eval "$lt_compile" 2>out/conftest.err)
9581 ac_status=$?
9582 cat out/conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9585 then
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_c_o=yes
9592 fi
9593 fi
9594 chmod u+w . 2>&5
9595 $RM conftest*
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599 $RM out/* && rmdir out
9600 cd ..
9601 $RM -r conftest
9602 $RM conftest*
9603
9604 fi
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9607
9608
9609
9610
9611 hard_links="nottested"
9612 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9613 # do not overwrite the value of need_locks provided by the user
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9615 $as_echo_n "checking if we can lock with hard links... " >&6; }
9616 hard_links=yes
9617 $RM conftest*
9618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9619 touch conftest.a
9620 ln conftest.a conftest.b 2>&5 || hard_links=no
9621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9623 $as_echo "$hard_links" >&6; }
9624 if test "$hard_links" = no; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9626 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9627 need_locks=warn
9628 fi
9629 else
9630 need_locks=no
9631 fi
9632
9633
9634
9635
9636
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9640
9641 runpath_var=
9642 allow_undefined_flag=
9643 always_export_symbols=no
9644 archive_cmds=
9645 archive_expsym_cmds=
9646 compiler_needs_object=no
9647 enable_shared_with_static_runtimes=no
9648 export_dynamic_flag_spec=
9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9650 hardcode_automatic=no
9651 hardcode_direct=no
9652 hardcode_direct_absolute=no
9653 hardcode_libdir_flag_spec=
9654 hardcode_libdir_flag_spec_ld=
9655 hardcode_libdir_separator=
9656 hardcode_minus_L=no
9657 hardcode_shlibpath_var=unsupported
9658 inherit_rpath=no
9659 link_all_deplibs=unknown
9660 module_cmds=
9661 module_expsym_cmds=
9662 old_archive_from_new_cmds=
9663 old_archive_from_expsyms_cmds=
9664 thread_safe_flag_spec=
9665 whole_archive_flag_spec=
9666 # include_expsyms should be a list of space-separated symbols to be *always*
9667 # included in the symbol list
9668 include_expsyms=
9669 # exclude_expsyms can be an extended regexp of symbols to exclude
9670 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9672 # as well as any symbol that contains `d'.
9673 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9675 # platforms (ab)use it in PIC code, but their linkers get confused if
9676 # the symbol is explicitly referenced. Since portable code cannot
9677 # rely on this symbol name, it's probably fine to never include it in
9678 # preloaded symbol tables.
9679 # Exclude shared library initialization/finalization symbols.
9680 extract_expsyms_cmds=
9681
9682 case $host_os in
9683 cygwin* | mingw* | pw32* | cegcc*)
9684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9685 # When not using gcc, we currently assume that we are using
9686 # Microsoft Visual C++.
9687 if test "$GCC" != yes; then
9688 with_gnu_ld=no
9689 fi
9690 ;;
9691 interix*)
9692 # we just hope/assume this is gcc and not c89 (= MSVC++)
9693 with_gnu_ld=yes
9694 ;;
9695 openbsd*)
9696 with_gnu_ld=no
9697 ;;
9698 esac
9699
9700 ld_shlibs=yes
9701
9702 # On some targets, GNU ld is compatible enough with the native linker
9703 # that we're better off using the native interface for both.
9704 lt_use_gnu_ld_interface=no
9705 if test "$with_gnu_ld" = yes; then
9706 case $host_os in
9707 aix*)
9708 # The AIX port of GNU ld has always aspired to compatibility
9709 # with the native linker. However, as the warning in the GNU ld
9710 # block says, versions before 2.19.5* couldn't really create working
9711 # shared libraries, regardless of the interface used.
9712 case `$LD -v 2>&1` in
9713 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9714 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9715 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9716 *)
9717 lt_use_gnu_ld_interface=yes
9718 ;;
9719 esac
9720 ;;
9721 *)
9722 lt_use_gnu_ld_interface=yes
9723 ;;
9724 esac
9725 fi
9726
9727 if test "$lt_use_gnu_ld_interface" = yes; then
9728 # If archive_cmds runs LD, not CC, wlarc should be empty
9729 wlarc='${wl}'
9730
9731 # Set some defaults for GNU ld with shared library support. These
9732 # are reset later if shared libraries are not supported. Putting them
9733 # here allows them to be overridden if necessary.
9734 runpath_var=LD_RUN_PATH
9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9736 export_dynamic_flag_spec='${wl}--export-dynamic'
9737 # ancient GNU ld didn't support --whole-archive et. al.
9738 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9739 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9740 else
9741 whole_archive_flag_spec=
9742 fi
9743 supports_anon_versioning=no
9744 case `$LD -v 2>&1` in
9745 *GNU\ gold*) supports_anon_versioning=yes ;;
9746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9749 *\ 2.11.*) ;; # other 2.11 versions
9750 *) supports_anon_versioning=yes ;;
9751 esac
9752
9753 # See if GNU ld supports shared libraries.
9754 case $host_os in
9755 aix[3-9]*)
9756 # On AIX/PPC, the GNU linker is very broken
9757 if test "$host_cpu" != ia64; then
9758 ld_shlibs=no
9759 cat <<_LT_EOF 1>&2
9760
9761 *** Warning: the GNU linker, at least up to release 2.19, is reported
9762 *** to be unable to reliably create shared libraries on AIX.
9763 *** Therefore, libtool is disabling shared libraries support. If you
9764 *** really care for shared libraries, you may want to install binutils
9765 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9766 *** You will then need to restart the configuration process.
9767
9768 _LT_EOF
9769 fi
9770 ;;
9771
9772 amigaos*)
9773 case $host_cpu in
9774 powerpc)
9775 # see comment about AmigaOS4 .so support
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds=''
9778 ;;
9779 m68k)
9780 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)'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_minus_L=yes
9783 ;;
9784 esac
9785 ;;
9786
9787 beos*)
9788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789 allow_undefined_flag=unsupported
9790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9791 # support --undefined. This deserves some investigation. FIXME
9792 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 else
9794 ld_shlibs=no
9795 fi
9796 ;;
9797
9798 cygwin* | mingw* | pw32* | cegcc*)
9799 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9800 # as there is no search path for DLLs.
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 export_dynamic_flag_spec='${wl}--export-all-symbols'
9803 allow_undefined_flag=unsupported
9804 always_export_symbols=no
9805 enable_shared_with_static_runtimes=yes
9806 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'
9807 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9808
9809 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9811 # If the export-symbols file already is a .def file (1st line
9812 # is EXPORTS), use it as is; otherwise, prepend...
9813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9814 cp $export_symbols $output_objdir/$soname.def;
9815 else
9816 echo EXPORTS > $output_objdir/$soname.def;
9817 cat $export_symbols >> $output_objdir/$soname.def;
9818 fi~
9819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9820 else
9821 ld_shlibs=no
9822 fi
9823 ;;
9824
9825 haiku*)
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 link_all_deplibs=yes
9828 ;;
9829
9830 interix[3-9]*)
9831 hardcode_direct=no
9832 hardcode_shlibpath_var=no
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec='${wl}-E'
9835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9836 # Instead, shared libraries are loaded at an image base (0x10000000 by
9837 # default) and relocated if they conflict, which is a slow very memory
9838 # consuming and fragmenting process. To avoid this, we pick a random,
9839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9842 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'
9843 ;;
9844
9845 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9846 tmp_diet=no
9847 if test "$host_os" = linux-dietlibc; then
9848 case $cc_basename in
9849 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9850 esac
9851 fi
9852 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9853 && test "$tmp_diet" = no
9854 then
9855 tmp_addflag=' $pic_flag'
9856 tmp_sharedflag='-shared'
9857 case $cc_basename,$host_cpu in
9858 pgcc*) # Portland Group C compiler
9859 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'
9860 tmp_addflag=' $pic_flag'
9861 ;;
9862 pgf77* | pgf90* | pgf95* | pgfortran*)
9863 # Portland Group f77 and f90 compilers
9864 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'
9865 tmp_addflag=' $pic_flag -Mnomain' ;;
9866 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9867 tmp_addflag=' -i_dynamic' ;;
9868 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9869 tmp_addflag=' -i_dynamic -nofor_main' ;;
9870 ifc* | ifort*) # Intel Fortran compiler
9871 tmp_addflag=' -nofor_main' ;;
9872 lf95*) # Lahey Fortran 8.1
9873 whole_archive_flag_spec=
9874 tmp_sharedflag='--shared' ;;
9875 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9876 tmp_sharedflag='-qmkshrobj'
9877 tmp_addflag= ;;
9878 nvcc*) # Cuda Compiler Driver 2.2
9879 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'
9880 compiler_needs_object=yes
9881 ;;
9882 esac
9883 case `$CC -V 2>&1 | sed 5q` in
9884 *Sun\ C*) # Sun C 5.9
9885 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'
9886 compiler_needs_object=yes
9887 tmp_sharedflag='-G' ;;
9888 *Sun\ F*) # Sun Fortran 8.3
9889 tmp_sharedflag='-G' ;;
9890 esac
9891 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892
9893 if test "x$supports_anon_versioning" = xyes; then
9894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9896 echo "local: *; };" >> $output_objdir/$libname.ver~
9897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9898 fi
9899
9900 case $cc_basename in
9901 xlf* | bgf* | bgxlf* | mpixlf*)
9902 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9903 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9904 hardcode_libdir_flag_spec=
9905 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9906 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9907 if test "x$supports_anon_versioning" = xyes; then
9908 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9910 echo "local: *; };" >> $output_objdir/$libname.ver~
9911 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9912 fi
9913 ;;
9914 esac
9915 else
9916 ld_shlibs=no
9917 fi
9918 ;;
9919
9920 netbsd*)
9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9922 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9923 wlarc=
9924 else
9925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9927 fi
9928 ;;
9929
9930 solaris*)
9931 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9932 ld_shlibs=no
9933 cat <<_LT_EOF 1>&2
9934
9935 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9936 *** create shared libraries on Solaris systems. Therefore, libtool
9937 *** is disabling shared libraries support. We urge you to upgrade GNU
9938 *** binutils to release 2.9.1 or newer. Another option is to modify
9939 *** your PATH or compiler configuration so that the native linker is
9940 *** used, and then restart.
9941
9942 _LT_EOF
9943 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9945 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9946 else
9947 ld_shlibs=no
9948 fi
9949 ;;
9950
9951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9952 case `$LD -v 2>&1` in
9953 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9954 ld_shlibs=no
9955 cat <<_LT_EOF 1>&2
9956
9957 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9958 *** reliably create shared libraries on SCO systems. Therefore, libtool
9959 *** is disabling shared libraries support. We urge you to upgrade GNU
9960 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9961 *** your PATH or compiler configuration so that the native linker is
9962 *** used, and then restart.
9963
9964 _LT_EOF
9965 ;;
9966 *)
9967 # For security reasons, it is highly recommended that you always
9968 # use absolute paths for naming shared libraries, and exclude the
9969 # DT_RUNPATH tag from executables and libraries. But doing so
9970 # requires that you compile everything twice, which is a pain.
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9975 else
9976 ld_shlibs=no
9977 fi
9978 ;;
9979 esac
9980 ;;
9981
9982 sunos4*)
9983 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9984 wlarc=
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 *)
9990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9991 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9993 else
9994 ld_shlibs=no
9995 fi
9996 ;;
9997 esac
9998
9999 if test "$ld_shlibs" = no; then
10000 runpath_var=
10001 hardcode_libdir_flag_spec=
10002 export_dynamic_flag_spec=
10003 whole_archive_flag_spec=
10004 fi
10005 else
10006 # PORTME fill in a description of your system's linker (not GNU ld)
10007 case $host_os in
10008 aix3*)
10009 allow_undefined_flag=unsupported
10010 always_export_symbols=yes
10011 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'
10012 # Note: this linker hardcodes the directories in LIBPATH if there
10013 # are no directories specified by -L.
10014 hardcode_minus_L=yes
10015 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10016 # Neither direct hardcoding nor static linking is supported with a
10017 # broken collect2.
10018 hardcode_direct=unsupported
10019 fi
10020 ;;
10021
10022 aix[4-9]*)
10023 if test "$host_cpu" = ia64; then
10024 # On IA64, the linker does run time linking by default, so we don't
10025 # have to do anything special.
10026 aix_use_runtimelinking=no
10027 exp_sym_flag='-Bexport'
10028 no_entry_flag=""
10029 else
10030 # If we're using GNU nm, then we don't want the "-C" option.
10031 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10032 # Also, AIX nm treats weak defined symbols like other global
10033 # defined symbols, whereas GNU nm marks them as "W".
10034 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10035 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'
10036 else
10037 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'
10038 fi
10039 aix_use_runtimelinking=no
10040
10041 # Test if we are trying to use run time linking or normal
10042 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10043 # need to do runtime linking.
10044 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10045 for ld_flag in $LDFLAGS; do
10046 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10047 aix_use_runtimelinking=yes
10048 break
10049 fi
10050 done
10051 ;;
10052 esac
10053
10054 exp_sym_flag='-bexport'
10055 no_entry_flag='-bnoentry'
10056 fi
10057
10058 # When large executables or shared objects are built, AIX ld can
10059 # have problems creating the table of contents. If linking a library
10060 # or program results in "error TOC overflow" add -mminimal-toc to
10061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10063
10064 archive_cmds=''
10065 hardcode_direct=yes
10066 hardcode_direct_absolute=yes
10067 hardcode_libdir_separator=':'
10068 link_all_deplibs=yes
10069 file_list_spec='${wl}-f,'
10070
10071 if test "$GCC" = yes; then
10072 case $host_os in aix4.[012]|aix4.[012].*)
10073 # We only want to do this on AIX 4.2 and lower, the check
10074 # below for broken collect2 doesn't work under 4.3+
10075 collect2name=`${CC} -print-prog-name=collect2`
10076 if test -f "$collect2name" &&
10077 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10078 then
10079 # We have reworked collect2
10080 :
10081 else
10082 # We have old collect2
10083 hardcode_direct=unsupported
10084 # It fails to find uninstalled libraries when the uninstalled
10085 # path is not listed in the libpath. Setting hardcode_minus_L
10086 # to unsupported forces relinking
10087 hardcode_minus_L=yes
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_libdir_separator=
10090 fi
10091 ;;
10092 esac
10093 shared_flag='-shared'
10094 if test "$aix_use_runtimelinking" = yes; then
10095 shared_flag="$shared_flag "'${wl}-G'
10096 fi
10097 else
10098 # not using gcc
10099 if test "$host_cpu" = ia64; then
10100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10101 # chokes on -Wl,-G. The following line is correct:
10102 shared_flag='-G'
10103 else
10104 if test "$aix_use_runtimelinking" = yes; then
10105 shared_flag='${wl}-G'
10106 else
10107 shared_flag='${wl}-bM:SRE'
10108 fi
10109 fi
10110 fi
10111
10112 export_dynamic_flag_spec='${wl}-bexpall'
10113 # It seems that -bexpall does not export symbols beginning with
10114 # underscore (_), so it is better to generate a list of symbols to export.
10115 always_export_symbols=yes
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # Warning - without using the other runtime loading flags (-brtl),
10118 # -berok will link without error, but may produce a broken library.
10119 allow_undefined_flag='-berok'
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
10122 if test "${lt_cv_aix_libpath+set}" = set; then
10123 aix_libpath=$lt_cv_aix_libpath
10124 else
10125 if ${lt_cv_aix_libpath_+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130
10131 int
10132 main ()
10133 {
10134
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140
10141 lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10143 /^0/ {
10144 s/^0 *\([^ ]*\) *$/\1/
10145 p
10146 }
10147 }'
10148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$lt_cv_aix_libpath_"; then
10151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 fi
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 if test -z "$lt_cv_aix_libpath_"; then
10157 lt_cv_aix_libpath_="/usr/lib:/lib"
10158 fi
10159
10160 fi
10161
10162 aix_libpath=$lt_cv_aix_libpath_
10163 fi
10164
10165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10166 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"
10167 else
10168 if test "$host_cpu" = ia64; then
10169 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10170 allow_undefined_flag="-z nodefs"
10171 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"
10172 else
10173 # Determine the default libpath from the value encoded in an
10174 # empty executable.
10175 if test "${lt_cv_aix_libpath+set}" = set; then
10176 aix_libpath=$lt_cv_aix_libpath
10177 else
10178 if ${lt_cv_aix_libpath_+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10183
10184 int
10185 main ()
10186 {
10187
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 if ac_fn_c_try_link "$LINENO"; then :
10193
10194 lt_aix_libpath_sed='
10195 /Import File Strings/,/^$/ {
10196 /^0/ {
10197 s/^0 *\([^ ]*\) *$/\1/
10198 p
10199 }
10200 }'
10201 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 # Check for a 64-bit object if we didn't find anything.
10203 if test -z "$lt_cv_aix_libpath_"; then
10204 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10205 fi
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 if test -z "$lt_cv_aix_libpath_"; then
10210 lt_cv_aix_libpath_="/usr/lib:/lib"
10211 fi
10212
10213 fi
10214
10215 aix_libpath=$lt_cv_aix_libpath_
10216 fi
10217
10218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10219 # Warning - without using the other run time loading flags,
10220 # -berok will link without error, but may produce a broken library.
10221 no_undefined_flag=' ${wl}-bernotok'
10222 allow_undefined_flag=' ${wl}-berok'
10223 if test "$with_gnu_ld" = yes; then
10224 # We only use this code for GNU lds that support --whole-archive.
10225 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10226 else
10227 # Exported symbols can be pulled into shared objects from archives
10228 whole_archive_flag_spec='$convenience'
10229 fi
10230 archive_cmds_need_lc=yes
10231 # This is similar to how AIX traditionally builds its shared libraries.
10232 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'
10233 fi
10234 fi
10235 ;;
10236
10237 amigaos*)
10238 case $host_cpu in
10239 powerpc)
10240 # see comment about AmigaOS4 .so support
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242 archive_expsym_cmds=''
10243 ;;
10244 m68k)
10245 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)'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_minus_L=yes
10248 ;;
10249 esac
10250 ;;
10251
10252 bsdi[45]*)
10253 export_dynamic_flag_spec=-rdynamic
10254 ;;
10255
10256 cygwin* | mingw* | pw32* | cegcc*)
10257 # When not using gcc, we currently assume that we are using
10258 # Microsoft Visual C++.
10259 # hardcode_libdir_flag_spec is actually meaningless, as there is
10260 # no search path for DLLs.
10261 case $cc_basename in
10262 cl*)
10263 # Native MSVC
10264 hardcode_libdir_flag_spec=' '
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=yes
10267 file_list_spec='@'
10268 # Tell ltmain to make .lib files, not .a files.
10269 libext=lib
10270 # Tell ltmain to make .dll files, not .so files.
10271 shrext_cmds=".dll"
10272 # FIXME: Setting linknames here is a bad hack.
10273 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10274 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10275 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10276 else
10277 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10278 fi~
10279 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10280 linknames='
10281 # The linker will not automatically build a static lib if we build a DLL.
10282 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10283 enable_shared_with_static_runtimes=yes
10284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10285 # Don't use ranlib
10286 old_postinstall_cmds='chmod 644 $oldlib'
10287 postlink_cmds='lt_outputfile="@OUTPUT@"~
10288 lt_tool_outputfile="@TOOL_OUTPUT@"~
10289 case $lt_outputfile in
10290 *.exe|*.EXE) ;;
10291 *)
10292 lt_outputfile="$lt_outputfile.exe"
10293 lt_tool_outputfile="$lt_tool_outputfile.exe"
10294 ;;
10295 esac~
10296 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10297 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10298 $RM "$lt_outputfile.manifest";
10299 fi'
10300 ;;
10301 *)
10302 # Assume MSVC wrapper
10303 hardcode_libdir_flag_spec=' '
10304 allow_undefined_flag=unsupported
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=".dll"
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10311 # The linker will automatically build a .lib file if we build a DLL.
10312 old_archive_from_new_cmds='true'
10313 # FIXME: Should let the user specify the lib program.
10314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10315 enable_shared_with_static_runtimes=yes
10316 ;;
10317 esac
10318 ;;
10319
10320 darwin* | rhapsody*)
10321
10322
10323 archive_cmds_need_lc=no
10324 hardcode_direct=no
10325 hardcode_automatic=yes
10326 hardcode_shlibpath_var=unsupported
10327 if test "$lt_cv_ld_force_load" = "yes"; then
10328 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\"`'
10329 else
10330 whole_archive_flag_spec=''
10331 fi
10332 link_all_deplibs=yes
10333 allow_undefined_flag="$_lt_dar_allow_undefined"
10334 case $cc_basename in
10335 ifort*) _lt_dar_can_shared=yes ;;
10336 *) _lt_dar_can_shared=$GCC ;;
10337 esac
10338 if test "$_lt_dar_can_shared" = "yes"; then
10339 output_verbose_link_cmd=func_echo_all
10340 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10341 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10342 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}"
10343 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}"
10344
10345 else
10346 ld_shlibs=no
10347 fi
10348
10349 ;;
10350
10351 dgux*)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_shlibpath_var=no
10355 ;;
10356
10357 freebsd1*)
10358 ld_shlibs=no
10359 ;;
10360
10361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10362 # support. Future versions do this automatically, but an explicit c++rt0.o
10363 # does not break anything, and helps significantly (at the cost of a little
10364 # extra space).
10365 freebsd2.2*)
10366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10367 hardcode_libdir_flag_spec='-R$libdir'
10368 hardcode_direct=yes
10369 hardcode_shlibpath_var=no
10370 ;;
10371
10372 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10373 freebsd2*)
10374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_direct=yes
10376 hardcode_minus_L=yes
10377 hardcode_shlibpath_var=no
10378 ;;
10379
10380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10381 freebsd* | dragonfly*)
10382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10383 hardcode_libdir_flag_spec='-R$libdir'
10384 hardcode_direct=yes
10385 hardcode_shlibpath_var=no
10386 ;;
10387
10388 hpux9*)
10389 if test "$GCC" = yes; then
10390 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'
10391 else
10392 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'
10393 fi
10394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10395 hardcode_libdir_separator=:
10396 hardcode_direct=yes
10397
10398 # hardcode_minus_L: Not really in the search PATH,
10399 # but as the default location of the library.
10400 hardcode_minus_L=yes
10401 export_dynamic_flag_spec='${wl}-E'
10402 ;;
10403
10404 hpux10*)
10405 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10406 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10407 else
10408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10409 fi
10410 if test "$with_gnu_ld" = no; then
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_flag_spec_ld='+b $libdir'
10413 hardcode_libdir_separator=:
10414 hardcode_direct=yes
10415 hardcode_direct_absolute=yes
10416 export_dynamic_flag_spec='${wl}-E'
10417 # hardcode_minus_L: Not really in the search PATH,
10418 # but as the default location of the library.
10419 hardcode_minus_L=yes
10420 fi
10421 ;;
10422
10423 hpux11*)
10424 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10425 case $host_cpu in
10426 hppa*64*)
10427 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 ;;
10429 ia64*)
10430 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10431 ;;
10432 *)
10433 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10434 ;;
10435 esac
10436 else
10437 case $host_cpu in
10438 hppa*64*)
10439 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10440 ;;
10441 ia64*)
10442 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10443 ;;
10444 *)
10445
10446 # Older versions of the 11.00 compiler do not understand -b yet
10447 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10449 $as_echo_n "checking if $CC understands -b... " >&6; }
10450 if ${lt_cv_prog_compiler__b+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 lt_cv_prog_compiler__b=no
10454 save_LDFLAGS="$LDFLAGS"
10455 LDFLAGS="$LDFLAGS -b"
10456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10458 # The linker can only warn and ignore the option if not recognized
10459 # So say no if there are warnings
10460 if test -s conftest.err; then
10461 # Append any errors to the config.log.
10462 cat conftest.err 1>&5
10463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10465 if diff conftest.exp conftest.er2 >/dev/null; then
10466 lt_cv_prog_compiler__b=yes
10467 fi
10468 else
10469 lt_cv_prog_compiler__b=yes
10470 fi
10471 fi
10472 $RM -r conftest*
10473 LDFLAGS="$save_LDFLAGS"
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10477 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10478
10479 if test x"$lt_cv_prog_compiler__b" = xyes; then
10480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10481 else
10482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10483 fi
10484
10485 ;;
10486 esac
10487 fi
10488 if test "$with_gnu_ld" = no; then
10489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491
10492 case $host_cpu in
10493 hppa*64*|ia64*)
10494 hardcode_direct=no
10495 hardcode_shlibpath_var=no
10496 ;;
10497 *)
10498 hardcode_direct=yes
10499 hardcode_direct_absolute=yes
10500 export_dynamic_flag_spec='${wl}-E'
10501
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
10504 hardcode_minus_L=yes
10505 ;;
10506 esac
10507 fi
10508 ;;
10509
10510 irix5* | irix6* | nonstopux*)
10511 if test "$GCC" = yes; then
10512 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'
10513 # Try to use the -exported_symbol ld option, if it does not
10514 # work, assume that -exports_file does not work either and
10515 # implicitly export all symbols.
10516 # This should be the same for all languages, so no per-tag cache variable.
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10518 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10519 if ${lt_cv_irix_exported_symbol+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 save_LDFLAGS="$LDFLAGS"
10523 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 int foo (void) { return 0; }
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"; then :
10529 lt_cv_irix_exported_symbol=yes
10530 else
10531 lt_cv_irix_exported_symbol=no
10532 fi
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 LDFLAGS="$save_LDFLAGS"
10536 fi
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10538 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10539 if test "$lt_cv_irix_exported_symbol" = yes; then
10540 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'
10541 fi
10542 else
10543 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'
10544 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'
10545 fi
10546 archive_cmds_need_lc='no'
10547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10548 hardcode_libdir_separator=:
10549 inherit_rpath=yes
10550 link_all_deplibs=yes
10551 ;;
10552
10553 netbsd*)
10554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10556 else
10557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10558 fi
10559 hardcode_libdir_flag_spec='-R$libdir'
10560 hardcode_direct=yes
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 newsos6)
10565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 hardcode_direct=yes
10567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10568 hardcode_libdir_separator=:
10569 hardcode_shlibpath_var=no
10570 ;;
10571
10572 *nto* | *qnx*)
10573 ;;
10574
10575 openbsd*)
10576 if test -f /usr/libexec/ld.so; then
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10579 hardcode_direct_absolute=yes
10580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10584 export_dynamic_flag_spec='${wl}-E'
10585 else
10586 case $host_os in
10587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_libdir_flag_spec='-R$libdir'
10590 ;;
10591 *)
10592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10594 ;;
10595 esac
10596 fi
10597 else
10598 ld_shlibs=no
10599 fi
10600 ;;
10601
10602 os2*)
10603 hardcode_libdir_flag_spec='-L$libdir'
10604 hardcode_minus_L=yes
10605 allow_undefined_flag=unsupported
10606 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'
10607 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10608 ;;
10609
10610 osf3*)
10611 if test "$GCC" = yes; then
10612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10613 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'
10614 else
10615 allow_undefined_flag=' -expect_unresolved \*'
10616 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'
10617 fi
10618 archive_cmds_need_lc='no'
10619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10620 hardcode_libdir_separator=:
10621 ;;
10622
10623 osf4* | osf5*) # as osf3* with the addition of -msym flag
10624 if test "$GCC" = yes; then
10625 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10626 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'
10627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10628 else
10629 allow_undefined_flag=' -expect_unresolved \*'
10630 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'
10631 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~
10632 $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'
10633
10634 # Both c and cxx compiler support -rpath directly
10635 hardcode_libdir_flag_spec='-rpath $libdir'
10636 fi
10637 archive_cmds_need_lc='no'
10638 hardcode_libdir_separator=:
10639 ;;
10640
10641 solaris*)
10642 no_undefined_flag=' -z defs'
10643 if test "$GCC" = yes; then
10644 wlarc='${wl}'
10645 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10647 $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'
10648 else
10649 case `$CC -V 2>&1` in
10650 *"Compilers 5.0"*)
10651 wlarc=''
10652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10655 ;;
10656 *)
10657 wlarc='${wl}'
10658 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10661 ;;
10662 esac
10663 fi
10664 hardcode_libdir_flag_spec='-R$libdir'
10665 hardcode_shlibpath_var=no
10666 case $host_os in
10667 solaris2.[0-5] | solaris2.[0-5].*) ;;
10668 *)
10669 # The compiler driver will combine and reorder linker options,
10670 # but understands `-z linker_flag'. GCC discards it without `$wl',
10671 # but is careful enough not to reorder.
10672 # Supported since Solaris 2.6 (maybe 2.5.1?)
10673 if test "$GCC" = yes; then
10674 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10675 else
10676 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10677 fi
10678 ;;
10679 esac
10680 link_all_deplibs=yes
10681 ;;
10682
10683 sunos4*)
10684 if test "x$host_vendor" = xsequent; then
10685 # Use $CC to link under sequent, because it throws in some extra .o
10686 # files that make .init and .fini sections work.
10687 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10688 else
10689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10690 fi
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_direct=yes
10693 hardcode_minus_L=yes
10694 hardcode_shlibpath_var=no
10695 ;;
10696
10697 sysv4)
10698 case $host_vendor in
10699 sni)
10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct=yes # is this really true???
10702 ;;
10703 siemens)
10704 ## LD is ld it makes a PLAMLIB
10705 ## CC just makes a GrossModule.
10706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10707 reload_cmds='$CC -r -o $output$reload_objs'
10708 hardcode_direct=no
10709 ;;
10710 motorola)
10711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10713 ;;
10714 esac
10715 runpath_var='LD_RUN_PATH'
10716 hardcode_shlibpath_var=no
10717 ;;
10718
10719 sysv4.3*)
10720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721 hardcode_shlibpath_var=no
10722 export_dynamic_flag_spec='-Bexport'
10723 ;;
10724
10725 sysv4*MP*)
10726 if test -d /usr/nec; then
10727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728 hardcode_shlibpath_var=no
10729 runpath_var=LD_RUN_PATH
10730 hardcode_runpath_var=yes
10731 ld_shlibs=yes
10732 fi
10733 ;;
10734
10735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10736 no_undefined_flag='${wl}-z,text'
10737 archive_cmds_need_lc=no
10738 hardcode_shlibpath_var=no
10739 runpath_var='LD_RUN_PATH'
10740
10741 if test "$GCC" = yes; then
10742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 else
10745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 fi
10748 ;;
10749
10750 sysv5* | sco3.2v5* | sco5v6*)
10751 # Note: We can NOT use -z defs as we might desire, because we do not
10752 # link with -lc, and that would cause any symbols used from libc to
10753 # always be unresolved, which means just about no library would
10754 # ever link correctly. If we're not using GNU ld we use -z text
10755 # though, which does catch some bad symbols but isn't as heavy-handed
10756 # as -z defs.
10757 no_undefined_flag='${wl}-z,text'
10758 allow_undefined_flag='${wl}-z,nodefs'
10759 archive_cmds_need_lc=no
10760 hardcode_shlibpath_var=no
10761 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10762 hardcode_libdir_separator=':'
10763 link_all_deplibs=yes
10764 export_dynamic_flag_spec='${wl}-Bexport'
10765 runpath_var='LD_RUN_PATH'
10766
10767 if test "$GCC" = yes; then
10768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 fi
10774 ;;
10775
10776 uts4*)
10777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_libdir_flag_spec='-L$libdir'
10779 hardcode_shlibpath_var=no
10780 ;;
10781
10782 *)
10783 ld_shlibs=no
10784 ;;
10785 esac
10786
10787 if test x$host_vendor = xsni; then
10788 case $host in
10789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10790 export_dynamic_flag_spec='${wl}-Blargedynsym'
10791 ;;
10792 esac
10793 fi
10794 fi
10795
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10797 $as_echo "$ld_shlibs" >&6; }
10798 test "$ld_shlibs" = no && can_build_shared=no
10799
10800 with_gnu_ld=$with_gnu_ld
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 #
10817 # Do we need to explicitly link libc?
10818 #
10819 case "x$archive_cmds_need_lc" in
10820 x|xyes)
10821 # Assume -lc should be added
10822 archive_cmds_need_lc=yes
10823
10824 if test "$enable_shared" = yes && test "$GCC" = yes; then
10825 case $archive_cmds in
10826 *'~'*)
10827 # FIXME: we may have to deal with multi-command sequences.
10828 ;;
10829 '$CC '*)
10830 # Test whether the compiler implicitly links with -lc since on some
10831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10832 # to ld, don't add -lc before -lgcc.
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10835 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 $RM conftest*
10839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10840
10841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10842 (eval $ac_compile) 2>&5
10843 ac_status=$?
10844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10845 test $ac_status = 0; } 2>conftest.err; then
10846 soname=conftest
10847 lib=conftest
10848 libobjs=conftest.$ac_objext
10849 deplibs=
10850 wl=$lt_prog_compiler_wl
10851 pic_flag=$lt_prog_compiler_pic
10852 compiler_flags=-v
10853 linker_flags=-v
10854 verstring=
10855 output_objdir=.
10856 libname=conftest
10857 lt_save_allow_undefined_flag=$allow_undefined_flag
10858 allow_undefined_flag=
10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10860 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10861 ac_status=$?
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; }
10864 then
10865 lt_cv_archive_cmds_need_lc=no
10866 else
10867 lt_cv_archive_cmds_need_lc=yes
10868 fi
10869 allow_undefined_flag=$lt_save_allow_undefined_flag
10870 else
10871 cat conftest.err 1>&5
10872 fi
10873 $RM conftest*
10874
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10877 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10878 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10879 ;;
10880 esac
10881 fi
10882 ;;
10883 esac
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11043
11044 if test "$GCC" = yes; then
11045 case $host_os in
11046 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11047 *) lt_awk_arg="/^libraries:/" ;;
11048 esac
11049 case $host_os in
11050 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11051 *) lt_sed_strip_eq="s,=/,/,g" ;;
11052 esac
11053 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11054 case $lt_search_path_spec in
11055 *\;*)
11056 # if the path contains ";" then we assume it to be the separator
11057 # otherwise default to the standard path separator (i.e. ":") - it is
11058 # assumed that no part of a normal pathname contains ";" but that should
11059 # okay in the real world where ";" in dirpaths is itself problematic.
11060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11061 ;;
11062 *)
11063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11064 ;;
11065 esac
11066 # Ok, now we have the path, separated by spaces, we can step through it
11067 # and add multilib dir if necessary.
11068 lt_tmp_lt_search_path_spec=
11069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11070 for lt_sys_path in $lt_search_path_spec; do
11071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11073 else
11074 test -d "$lt_sys_path" && \
11075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11076 fi
11077 done
11078 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11079 BEGIN {RS=" "; FS="/|\n";} {
11080 lt_foo="";
11081 lt_count=0;
11082 for (lt_i = NF; lt_i > 0; lt_i--) {
11083 if ($lt_i != "" && $lt_i != ".") {
11084 if ($lt_i == "..") {
11085 lt_count++;
11086 } else {
11087 if (lt_count == 0) {
11088 lt_foo="/" $lt_i lt_foo;
11089 } else {
11090 lt_count--;
11091 }
11092 }
11093 }
11094 }
11095 if (lt_foo != "") { lt_freq[lt_foo]++; }
11096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11097 }'`
11098 # AWK program above erroneously prepends '/' to C:/dos/paths
11099 # for these hosts.
11100 case $host_os in
11101 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11103 esac
11104 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11105 else
11106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11107 fi
11108 library_names_spec=
11109 libname_spec='lib$name'
11110 soname_spec=
11111 shrext_cmds=".so"
11112 postinstall_cmds=
11113 postuninstall_cmds=
11114 finish_cmds=
11115 finish_eval=
11116 shlibpath_var=
11117 shlibpath_overrides_runpath=unknown
11118 version_type=none
11119 dynamic_linker="$host_os ld.so"
11120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11121 need_lib_prefix=unknown
11122 hardcode_into_libs=no
11123
11124 # when you set need_version to no, make sure it does not cause -set_version
11125 # flags to be left without arguments
11126 need_version=unknown
11127
11128 case $host_os in
11129 aix3*)
11130 version_type=linux
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11132 shlibpath_var=LIBPATH
11133
11134 # AIX 3 has no versioning support, so we append a major version to the name.
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 ;;
11137
11138 aix[4-9]*)
11139 version_type=linux
11140 need_lib_prefix=no
11141 need_version=no
11142 hardcode_into_libs=yes
11143 if test "$host_cpu" = ia64; then
11144 # AIX 5 supports IA64
11145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 else
11148 # With GCC up to 2.95.x, collect2 would create an import file
11149 # for dependence libraries. The import file would start with
11150 # the line `#! .'. This would cause the generated library to
11151 # depend on `.', always an invalid library. This was fixed in
11152 # development snapshots of GCC prior to 3.0.
11153 case $host_os in
11154 aix4 | aix4.[01] | aix4.[01].*)
11155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11156 echo ' yes '
11157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11158 :
11159 else
11160 can_build_shared=no
11161 fi
11162 ;;
11163 esac
11164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11165 # soname into executable. Probably we can add versioning support to
11166 # collect2, so additional links can be useful in future.
11167 if test "$aix_use_runtimelinking" = yes; then
11168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11169 # instead of lib<name>.a to let people know that these are not
11170 # typical AIX shared libraries.
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 else
11173 # We preserve .a as extension for shared libraries through AIX4.2
11174 # and later when we are not doing run time linking.
11175 library_names_spec='${libname}${release}.a $libname.a'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 fi
11178 shlibpath_var=LIBPATH
11179 fi
11180 ;;
11181
11182 amigaos*)
11183 case $host_cpu in
11184 powerpc)
11185 # Since July 2007 AmigaOS4 officially supports .so libraries.
11186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 ;;
11189 m68k)
11190 library_names_spec='$libname.ixlibrary $libname.a'
11191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11192 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'
11193 ;;
11194 esac
11195 ;;
11196
11197 beos*)
11198 library_names_spec='${libname}${shared_ext}'
11199 dynamic_linker="$host_os ld.so"
11200 shlibpath_var=LIBRARY_PATH
11201 ;;
11202
11203 bsdi[45]*)
11204 version_type=linux
11205 need_version=no
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11212 # the default ld.so.conf also contains /usr/contrib/lib and
11213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11214 # libtool to hard-code these into programs
11215 ;;
11216
11217 cygwin* | mingw* | pw32* | cegcc*)
11218 version_type=windows
11219 shrext_cmds=".dll"
11220 need_version=no
11221 need_lib_prefix=no
11222
11223 case $GCC,$cc_basename in
11224 yes,*)
11225 # gcc
11226 library_names_spec='$libname.dll.a'
11227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11228 postinstall_cmds='base_file=`basename \${file}`~
11229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11230 dldir=$destdir/`dirname \$dlpath`~
11231 test -d \$dldir || mkdir -p \$dldir~
11232 $install_prog $dir/$dlname \$dldir/$dlname~
11233 chmod a+x \$dldir/$dlname~
11234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11236 fi'
11237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11238 dlpath=$dir/\$dldll~
11239 $RM \$dlpath'
11240 shlibpath_overrides_runpath=yes
11241
11242 case $host_os in
11243 cygwin*)
11244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11246
11247 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11248 ;;
11249 mingw* | cegcc*)
11250 # MinGW DLLs use traditional 'lib' prefix
11251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11252 ;;
11253 pw32*)
11254 # pw32 DLLs use 'pw' prefix rather than 'lib'
11255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11256 ;;
11257 esac
11258 dynamic_linker='Win32 ld.exe'
11259 ;;
11260
11261 *,cl*)
11262 # Native MSVC
11263 libname_spec='$name'
11264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11265 library_names_spec='${libname}.dll.lib'
11266
11267 case $build_os in
11268 mingw*)
11269 sys_lib_search_path_spec=
11270 lt_save_ifs=$IFS
11271 IFS=';'
11272 for lt_path in $LIB
11273 do
11274 IFS=$lt_save_ifs
11275 # Let DOS variable expansion print the short 8.3 style file name.
11276 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11277 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11278 done
11279 IFS=$lt_save_ifs
11280 # Convert to MSYS style.
11281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11282 ;;
11283 cygwin*)
11284 # Convert to unix form, then to dos form, then back to unix form
11285 # but this time dos style (no spaces!) so that the unix form looks
11286 # like /cygdrive/c/PROGRA~1:/cygdr...
11287 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11288 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11289 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11290 ;;
11291 *)
11292 sys_lib_search_path_spec="$LIB"
11293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11294 # It is most probably a Windows format PATH.
11295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11296 else
11297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11298 fi
11299 # FIXME: find the short name or the path components, as spaces are
11300 # common. (e.g. "Program Files" -> "PROGRA~1")
11301 ;;
11302 esac
11303
11304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11305 postinstall_cmds='base_file=`basename \${file}`~
11306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11307 dldir=$destdir/`dirname \$dlpath`~
11308 test -d \$dldir || mkdir -p \$dldir~
11309 $install_prog $dir/$dlname \$dldir/$dlname'
11310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11311 dlpath=$dir/\$dldll~
11312 $RM \$dlpath'
11313 shlibpath_overrides_runpath=yes
11314 dynamic_linker='Win32 link.exe'
11315 ;;
11316
11317 *)
11318 # Assume MSVC wrapper
11319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11320 dynamic_linker='Win32 ld.exe'
11321 ;;
11322 esac
11323 # FIXME: first we should search . and the directory the executable is in
11324 shlibpath_var=PATH
11325 ;;
11326
11327 darwin* | rhapsody*)
11328 dynamic_linker="$host_os dyld"
11329 version_type=darwin
11330 need_lib_prefix=no
11331 need_version=no
11332 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11333 soname_spec='${libname}${release}${major}$shared_ext'
11334 shlibpath_overrides_runpath=yes
11335 shlibpath_var=DYLD_LIBRARY_PATH
11336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11337
11338 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11340 ;;
11341
11342 dgux*)
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 ;;
11350
11351 freebsd1*)
11352 dynamic_linker=no
11353 ;;
11354
11355 freebsd* | dragonfly*)
11356 # DragonFly does not have aout. When/if they implement a new
11357 # versioning mechanism, adjust this.
11358 if test -x /usr/bin/objformat; then
11359 objformat=`/usr/bin/objformat`
11360 else
11361 case $host_os in
11362 freebsd[123]*) objformat=aout ;;
11363 *) objformat=elf ;;
11364 esac
11365 fi
11366 version_type=freebsd-$objformat
11367 case $version_type in
11368 freebsd-elf*)
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11370 need_version=no
11371 need_lib_prefix=no
11372 ;;
11373 freebsd-*)
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11375 need_version=yes
11376 ;;
11377 esac
11378 shlibpath_var=LD_LIBRARY_PATH
11379 case $host_os in
11380 freebsd2*)
11381 shlibpath_overrides_runpath=yes
11382 ;;
11383 freebsd3.[01]* | freebsdelf3.[01]*)
11384 shlibpath_overrides_runpath=yes
11385 hardcode_into_libs=yes
11386 ;;
11387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11389 shlibpath_overrides_runpath=no
11390 hardcode_into_libs=yes
11391 ;;
11392 *) # from 4.6 on, and DragonFly
11393 shlibpath_overrides_runpath=yes
11394 hardcode_into_libs=yes
11395 ;;
11396 esac
11397 ;;
11398
11399 gnu*)
11400 version_type=linux
11401 need_lib_prefix=no
11402 need_version=no
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 hardcode_into_libs=yes
11407 ;;
11408
11409 haiku*)
11410 version_type=linux
11411 need_lib_prefix=no
11412 need_version=no
11413 dynamic_linker="$host_os runtime_loader"
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 shlibpath_var=LIBRARY_PATH
11417 shlibpath_overrides_runpath=yes
11418 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11419 hardcode_into_libs=yes
11420 ;;
11421
11422 hpux9* | hpux10* | hpux11*)
11423 # Give a soname corresponding to the major version so that dld.sl refuses to
11424 # link against other versions.
11425 version_type=sunos
11426 need_lib_prefix=no
11427 need_version=no
11428 case $host_cpu in
11429 ia64*)
11430 shrext_cmds='.so'
11431 hardcode_into_libs=yes
11432 dynamic_linker="$host_os dld.so"
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 if test "X$HPUX_IA64_MODE" = X32; then
11438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11439 else
11440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11441 fi
11442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11443 ;;
11444 hppa*64*)
11445 shrext_cmds='.sl'
11446 hardcode_into_libs=yes
11447 dynamic_linker="$host_os dld.sl"
11448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11454 ;;
11455 *)
11456 shrext_cmds='.sl'
11457 dynamic_linker="$host_os dld.sl"
11458 shlibpath_var=SHLIB_PATH
11459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 ;;
11463 esac
11464 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11465 postinstall_cmds='chmod 555 $lib'
11466 # or fails outright, so override atomically:
11467 install_override_mode=555
11468 ;;
11469
11470 interix[3-9]*)
11471 version_type=linux
11472 need_lib_prefix=no
11473 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 ;;
11481
11482 irix5* | irix6* | nonstopux*)
11483 case $host_os in
11484 nonstopux*) version_type=nonstopux ;;
11485 *)
11486 if test "$lt_cv_prog_gnu_ld" = yes; then
11487 version_type=linux
11488 else
11489 version_type=irix
11490 fi ;;
11491 esac
11492 need_lib_prefix=no
11493 need_version=no
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 case $host_os in
11497 irix5* | nonstopux*)
11498 libsuff= shlibsuff=
11499 ;;
11500 *)
11501 case $LD in # libtool.m4 will add one of these switches to LD
11502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11503 libsuff= shlibsuff= libmagic=32-bit;;
11504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11505 libsuff=32 shlibsuff=N32 libmagic=N32;;
11506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11507 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11508 *) libsuff= shlibsuff= libmagic=never-match;;
11509 esac
11510 ;;
11511 esac
11512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11513 shlibpath_overrides_runpath=no
11514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11516 hardcode_into_libs=yes
11517 ;;
11518
11519 # No shared lib support for Linux oldld, aout, or coff.
11520 linux*oldld* | linux*aout* | linux*coff*)
11521 dynamic_linker=no
11522 ;;
11523
11524 # This must be Linux ELF.
11525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11526 version_type=linux
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
11534
11535 # Some binutils ld are patched to set DT_RUNPATH
11536 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 lt_cv_shlibpath_overrides_runpath=no
11540 save_LDFLAGS=$LDFLAGS
11541 save_libdir=$libdir
11542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546
11547 int
11548 main ()
11549 {
11550
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11557 lt_cv_shlibpath_overrides_runpath=yes
11558 fi
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LDFLAGS=$save_LDFLAGS
11563 libdir=$save_libdir
11564
11565 fi
11566
11567 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11568
11569 # This implies no fast_install, which is unacceptable.
11570 # Some rework will be needed to allow for fast_install
11571 # before this can be enabled.
11572 hardcode_into_libs=yes
11573
11574 # Append ld.so.conf contents to the search path
11575 if test -f /etc/ld.so.conf; then
11576 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' ' '`
11577 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11578 fi
11579
11580 # We used to test for /lib/ld.so.1 and disable shared libraries on
11581 # powerpc, because MkLinux only supported shared libraries with the
11582 # GNU dynamic linker. Since this was broken with cross compilers,
11583 # most powerpc-linux boxes support dynamic linking these days and
11584 # people can always --disable-shared, the test was removed, and we
11585 # assume the GNU/Linux dynamic linker is in use.
11586 dynamic_linker='GNU/Linux ld.so'
11587 ;;
11588
11589 netbsd*)
11590 version_type=sunos
11591 need_lib_prefix=no
11592 need_version=no
11593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11596 dynamic_linker='NetBSD (a.out) ld.so'
11597 else
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 dynamic_linker='NetBSD ld.elf_so'
11601 fi
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes
11604 hardcode_into_libs=yes
11605 ;;
11606
11607 newsos6)
11608 version_type=linux
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath=yes
11612 ;;
11613
11614 *nto* | *qnx*)
11615 version_type=qnx
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 shlibpath_overrides_runpath=no
11622 hardcode_into_libs=yes
11623 dynamic_linker='ldqnx.so'
11624 ;;
11625
11626 openbsd*)
11627 version_type=sunos
11628 sys_lib_dlsearch_path_spec="/usr/lib"
11629 need_lib_prefix=no
11630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11631 case $host_os in
11632 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11633 *) need_version=no ;;
11634 esac
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11639 case $host_os in
11640 openbsd2.[89] | openbsd2.[89].*)
11641 shlibpath_overrides_runpath=no
11642 ;;
11643 *)
11644 shlibpath_overrides_runpath=yes
11645 ;;
11646 esac
11647 else
11648 shlibpath_overrides_runpath=yes
11649 fi
11650 ;;
11651
11652 os2*)
11653 libname_spec='$name'
11654 shrext_cmds=".dll"
11655 need_lib_prefix=no
11656 library_names_spec='$libname${shared_ext} $libname.a'
11657 dynamic_linker='OS/2 ld.exe'
11658 shlibpath_var=LIBPATH
11659 ;;
11660
11661 osf3* | osf4* | osf5*)
11662 version_type=osf
11663 need_lib_prefix=no
11664 need_version=no
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11670 ;;
11671
11672 rdos*)
11673 dynamic_linker=no
11674 ;;
11675
11676 solaris*)
11677 version_type=linux
11678 need_lib_prefix=no
11679 need_version=no
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 soname_spec='${libname}${release}${shared_ext}$major'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=yes
11684 hardcode_into_libs=yes
11685 # ldd complains unless libraries are executable
11686 postinstall_cmds='chmod +x $lib'
11687 ;;
11688
11689 sunos4*)
11690 version_type=sunos
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 if test "$with_gnu_ld" = yes; then
11696 need_lib_prefix=no
11697 fi
11698 need_version=yes
11699 ;;
11700
11701 sysv4 | sysv4.3*)
11702 version_type=linux
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 case $host_vendor in
11707 sni)
11708 shlibpath_overrides_runpath=no
11709 need_lib_prefix=no
11710 runpath_var=LD_RUN_PATH
11711 ;;
11712 siemens)
11713 need_lib_prefix=no
11714 ;;
11715 motorola)
11716 need_lib_prefix=no
11717 need_version=no
11718 shlibpath_overrides_runpath=no
11719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11720 ;;
11721 esac
11722 ;;
11723
11724 sysv4*MP*)
11725 if test -d /usr/nec ;then
11726 version_type=linux
11727 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11728 soname_spec='$libname${shared_ext}.$major'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 fi
11731 ;;
11732
11733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11734 version_type=freebsd-elf
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11742 if test "$with_gnu_ld" = yes; then
11743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11744 else
11745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11746 case $host_os in
11747 sco3.2v5*)
11748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11749 ;;
11750 esac
11751 fi
11752 sys_lib_dlsearch_path_spec='/usr/lib'
11753 ;;
11754
11755 tpf*)
11756 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11757 version_type=linux
11758 need_lib_prefix=no
11759 need_version=no
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=no
11763 hardcode_into_libs=yes
11764 ;;
11765
11766 uts4*)
11767 version_type=linux
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 ;;
11772
11773 *)
11774 dynamic_linker=no
11775 ;;
11776 esac
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11778 $as_echo "$dynamic_linker" >&6; }
11779 test "$dynamic_linker" = no && can_build_shared=no
11780
11781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11782 if test "$GCC" = yes; then
11783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11784 fi
11785
11786 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11787 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11788 fi
11789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11790 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11791 fi
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11885 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11886 hardcode_action=
11887 if test -n "$hardcode_libdir_flag_spec" ||
11888 test -n "$runpath_var" ||
11889 test "X$hardcode_automatic" = "Xyes" ; then
11890
11891 # We can hardcode non-existent directories.
11892 if test "$hardcode_direct" != no &&
11893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894 # have to relink, otherwise we might link with an installed library
11895 # when we should be linking with a yet-to-be-installed one
11896 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11897 test "$hardcode_minus_L" != no; then
11898 # Linking always hardcodes the temporary library directory.
11899 hardcode_action=relink
11900 else
11901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902 hardcode_action=immediate
11903 fi
11904 else
11905 # We cannot hardcode anything, or else we can only hardcode existing
11906 # directories.
11907 hardcode_action=unsupported
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11910 $as_echo "$hardcode_action" >&6; }
11911
11912 if test "$hardcode_action" = relink ||
11913 test "$inherit_rpath" = yes; then
11914 # Fast installation is not supported
11915 enable_fast_install=no
11916 elif test "$shlibpath_overrides_runpath" = yes ||
11917 test "$enable_shared" = no; then
11918 # Fast installation is not necessary
11919 enable_fast_install=needless
11920 fi
11921
11922
11923
11924
11925
11926
11927 if test "x$enable_dlopen" != xyes; then
11928 enable_dlopen=unknown
11929 enable_dlopen_self=unknown
11930 enable_dlopen_self_static=unknown
11931 else
11932 lt_cv_dlopen=no
11933 lt_cv_dlopen_libs=
11934
11935 case $host_os in
11936 beos*)
11937 lt_cv_dlopen="load_add_on"
11938 lt_cv_dlopen_libs=
11939 lt_cv_dlopen_self=yes
11940 ;;
11941
11942 mingw* | pw32* | cegcc*)
11943 lt_cv_dlopen="LoadLibrary"
11944 lt_cv_dlopen_libs=
11945 ;;
11946
11947 cygwin*)
11948 lt_cv_dlopen="dlopen"
11949 lt_cv_dlopen_libs=
11950 ;;
11951
11952 darwin*)
11953 # if libdl is installed we need to link against it
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11955 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11956 if ${ac_cv_lib_dl_dlopen+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-ldl $LIBS"
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char dlopen ();
11971 int
11972 main ()
11973 {
11974 return dlopen ();
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_lib_dl_dlopen=yes
11981 else
11982 ac_cv_lib_dl_dlopen=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11989 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11990 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992 else
11993
11994 lt_cv_dlopen="dyld"
11995 lt_cv_dlopen_libs=
11996 lt_cv_dlopen_self=yes
11997
11998 fi
11999
12000 ;;
12001
12002 *)
12003 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12004 if test "x$ac_cv_func_shl_load" = xyes; then :
12005 lt_cv_dlopen="shl_load"
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12008 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12009 if ${ac_cv_lib_dld_shl_load+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-ldld $LIBS"
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016
12017 /* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
12020 #ifdef __cplusplus
12021 extern "C"
12022 #endif
12023 char shl_load ();
12024 int
12025 main ()
12026 {
12027 return shl_load ();
12028 ;
12029 return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_c_try_link "$LINENO"; then :
12033 ac_cv_lib_dld_shl_load=yes
12034 else
12035 ac_cv_lib_dld_shl_load=no
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS=$ac_check_lib_save_LIBS
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12042 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12043 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12044 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12045 else
12046 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12047 if test "x$ac_cv_func_dlopen" = xyes; then :
12048 lt_cv_dlopen="dlopen"
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12052 if ${ac_cv_lib_dl_dlopen+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-ldl $LIBS"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 char dlopen ();
12067 int
12068 main ()
12069 {
12070 return dlopen ();
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_lib_dl_dlopen=yes
12077 else
12078 ac_cv_lib_dl_dlopen=no
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12085 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12086 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12090 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12091 if ${ac_cv_lib_svld_dlopen+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-lsvld $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_svld_dlopen=yes
12116 else
12117 ac_cv_lib_svld_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_svld_dlopen" >&5
12124 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12125 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12129 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12130 if ${ac_cv_lib_dld_dld_link+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-ldld $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 dld_link ();
12145 int
12146 main ()
12147 {
12148 return dld_link ();
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_lib_dld_dld_link=yes
12155 else
12156 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
12163 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12164 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12165 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12166 fi
12167
12168
12169 fi
12170
12171
12172 fi
12173
12174
12175 fi
12176
12177
12178 fi
12179
12180
12181 fi
12182
12183 ;;
12184 esac
12185
12186 if test "x$lt_cv_dlopen" != xno; then
12187 enable_dlopen=yes
12188 else
12189 enable_dlopen=no
12190 fi
12191
12192 case $lt_cv_dlopen in
12193 dlopen)
12194 save_CPPFLAGS="$CPPFLAGS"
12195 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12196
12197 save_LDFLAGS="$LDFLAGS"
12198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12199
12200 save_LIBS="$LIBS"
12201 LIBS="$lt_cv_dlopen_libs $LIBS"
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12204 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12205 if ${lt_cv_dlopen_self+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test "$cross_compiling" = yes; then :
12209 lt_cv_dlopen_self=cross
12210 else
12211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12212 lt_status=$lt_dlunknown
12213 cat > conftest.$ac_ext <<_LT_EOF
12214 #line $LINENO "configure"
12215 #include "confdefs.h"
12216
12217 #if HAVE_DLFCN_H
12218 #include <dlfcn.h>
12219 #endif
12220
12221 #include <stdio.h>
12222
12223 #ifdef RTLD_GLOBAL
12224 # define LT_DLGLOBAL RTLD_GLOBAL
12225 #else
12226 # ifdef DL_GLOBAL
12227 # define LT_DLGLOBAL DL_GLOBAL
12228 # else
12229 # define LT_DLGLOBAL 0
12230 # endif
12231 #endif
12232
12233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12234 find out it does not work in some platform. */
12235 #ifndef LT_DLLAZY_OR_NOW
12236 # ifdef RTLD_LAZY
12237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12238 # else
12239 # ifdef DL_LAZY
12240 # define LT_DLLAZY_OR_NOW DL_LAZY
12241 # else
12242 # ifdef RTLD_NOW
12243 # define LT_DLLAZY_OR_NOW RTLD_NOW
12244 # else
12245 # ifdef DL_NOW
12246 # define LT_DLLAZY_OR_NOW DL_NOW
12247 # else
12248 # define LT_DLLAZY_OR_NOW 0
12249 # endif
12250 # endif
12251 # endif
12252 # endif
12253 #endif
12254
12255 /* When -fvisbility=hidden is used, assume the code has been annotated
12256 correspondingly for the symbols needed. */
12257 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12258 int fnord () __attribute__((visibility("default")));
12259 #endif
12260
12261 int fnord () { return 42; }
12262 int main ()
12263 {
12264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12265 int status = $lt_dlunknown;
12266
12267 if (self)
12268 {
12269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12270 else
12271 {
12272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12273 else puts (dlerror ());
12274 }
12275 /* dlclose (self); */
12276 }
12277 else
12278 puts (dlerror ());
12279
12280 return status;
12281 }
12282 _LT_EOF
12283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12284 (eval $ac_link) 2>&5
12285 ac_status=$?
12286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12288 (./conftest; exit; ) >&5 2>/dev/null
12289 lt_status=$?
12290 case x$lt_status in
12291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12293 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12294 esac
12295 else :
12296 # compilation failed
12297 lt_cv_dlopen_self=no
12298 fi
12299 fi
12300 rm -fr conftest*
12301
12302
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12305 $as_echo "$lt_cv_dlopen_self" >&6; }
12306
12307 if test "x$lt_cv_dlopen_self" = xyes; then
12308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12310 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12311 if ${lt_cv_dlopen_self_static+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 if test "$cross_compiling" = yes; then :
12315 lt_cv_dlopen_self_static=cross
12316 else
12317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12318 lt_status=$lt_dlunknown
12319 cat > conftest.$ac_ext <<_LT_EOF
12320 #line $LINENO "configure"
12321 #include "confdefs.h"
12322
12323 #if HAVE_DLFCN_H
12324 #include <dlfcn.h>
12325 #endif
12326
12327 #include <stdio.h>
12328
12329 #ifdef RTLD_GLOBAL
12330 # define LT_DLGLOBAL RTLD_GLOBAL
12331 #else
12332 # ifdef DL_GLOBAL
12333 # define LT_DLGLOBAL DL_GLOBAL
12334 # else
12335 # define LT_DLGLOBAL 0
12336 # endif
12337 #endif
12338
12339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12340 find out it does not work in some platform. */
12341 #ifndef LT_DLLAZY_OR_NOW
12342 # ifdef RTLD_LAZY
12343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12344 # else
12345 # ifdef DL_LAZY
12346 # define LT_DLLAZY_OR_NOW DL_LAZY
12347 # else
12348 # ifdef RTLD_NOW
12349 # define LT_DLLAZY_OR_NOW RTLD_NOW
12350 # else
12351 # ifdef DL_NOW
12352 # define LT_DLLAZY_OR_NOW DL_NOW
12353 # else
12354 # define LT_DLLAZY_OR_NOW 0
12355 # endif
12356 # endif
12357 # endif
12358 # endif
12359 #endif
12360
12361 /* When -fvisbility=hidden is used, assume the code has been annotated
12362 correspondingly for the symbols needed. */
12363 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12364 int fnord () __attribute__((visibility("default")));
12365 #endif
12366
12367 int fnord () { return 42; }
12368 int main ()
12369 {
12370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12371 int status = $lt_dlunknown;
12372
12373 if (self)
12374 {
12375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12376 else
12377 {
12378 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12379 else puts (dlerror ());
12380 }
12381 /* dlclose (self); */
12382 }
12383 else
12384 puts (dlerror ());
12385
12386 return status;
12387 }
12388 _LT_EOF
12389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12390 (eval $ac_link) 2>&5
12391 ac_status=$?
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12394 (./conftest; exit; ) >&5 2>/dev/null
12395 lt_status=$?
12396 case x$lt_status in
12397 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12398 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12399 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12400 esac
12401 else :
12402 # compilation failed
12403 lt_cv_dlopen_self_static=no
12404 fi
12405 fi
12406 rm -fr conftest*
12407
12408
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12411 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12412 fi
12413
12414 CPPFLAGS="$save_CPPFLAGS"
12415 LDFLAGS="$save_LDFLAGS"
12416 LIBS="$save_LIBS"
12417 ;;
12418 esac
12419
12420 case $lt_cv_dlopen_self in
12421 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12422 *) enable_dlopen_self=unknown ;;
12423 esac
12424
12425 case $lt_cv_dlopen_self_static in
12426 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12427 *) enable_dlopen_self_static=unknown ;;
12428 esac
12429 fi
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447 striplib=
12448 old_striplib=
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12450 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12451 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12452 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12453 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456 else
12457 # FIXME - insert some real tests, host_os isn't really good enough
12458 case $host_os in
12459 darwin*)
12460 if test -n "$STRIP" ; then
12461 striplib="$STRIP -x"
12462 old_striplib="$STRIP -S"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12464 $as_echo "yes" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469 ;;
12470 *)
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 ;;
12474 esac
12475 fi
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488 # Report which library types will actually be built
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12490 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12492 $as_echo "$can_build_shared" >&6; }
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12495 $as_echo_n "checking whether to build shared libraries... " >&6; }
12496 test "$can_build_shared" = "no" && enable_shared=no
12497
12498 # On AIX, shared libraries and static libraries use the same namespace, and
12499 # are all built from PIC.
12500 case $host_os in
12501 aix3*)
12502 test "$enable_shared" = yes && enable_static=no
12503 if test -n "$RANLIB"; then
12504 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12505 postinstall_cmds='$RANLIB $lib'
12506 fi
12507 ;;
12508
12509 aix[4-9]*)
12510 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12511 test "$enable_shared" = yes && enable_static=no
12512 fi
12513 ;;
12514 esac
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12516 $as_echo "$enable_shared" >&6; }
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12519 $as_echo_n "checking whether to build static libraries... " >&6; }
12520 # Make sure either enable_shared or enable_static is yes.
12521 test "$enable_shared" = yes || enable_static=yes
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12523 $as_echo "$enable_static" >&6; }
12524
12525
12526
12527
12528 fi
12529 ac_ext=c
12530 ac_cpp='$CPP $CPPFLAGS'
12531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12534
12535 CC="$lt_save_CC"
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549 ac_config_commands="$ac_config_commands libtool"
12550
12551
12552
12553
12554 # Only expand once:
12555
12556
12557
12558 LIBTOOL="$LIBTOOL --silent"
12559
12560 case "$host_os" in
12561 *cygwin*)
12562
12563 cat >>confdefs.h <<_ACEOF
12564 #define CYGWIN 1
12565 _ACEOF
12566
12567
12568 cat >>confdefs.h <<_ACEOF
12569 #define WINDOWS 1
12570 _ACEOF
12571
12572 ;;
12573 *mingw*)
12574
12575 cat >>confdefs.h <<_ACEOF
12576 #define MINGW 1
12577 _ACEOF
12578
12579
12580 cat >>confdefs.h <<_ACEOF
12581 #define WINDOWS 1
12582 _ACEOF
12583
12584 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12585 if test "x$ac_cv_header_windows_h" = xyes; then :
12586
12587 else
12588 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
12589 fi
12590
12591
12592 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12593 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12594
12595 else
12596 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
12597 fi
12598
12599
12600
12601 cat >>confdefs.h <<_ACEOF
12602 #define HAVE_WINSOCK2_H 1
12603 _ACEOF
12604
12605
12606 cat >>confdefs.h <<_ACEOF
12607 #define HAVE_WINSOCK_H 1
12608 _ACEOF
12609
12610 LIBS="$LIBS -lws2_32 -liphlpapi"
12611 is_mingw="yes"
12612 ;;
12613 *interix*)
12614 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12615 ;;
12616 *solaris*)
12617 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12618 ;;
12619 *)
12620 ;;
12621 esac
12622
12623 if test "$is_mingw" = "yes"; then
12624 MINGW_TRUE=
12625 MINGW_FALSE='#'
12626 else
12627 MINGW_TRUE='#'
12628 MINGW_FALSE=
12629 fi
12630
12631
12632
12633 # backwards support for IRC_CFLAGS
12634 CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
12635
12636 if test "$libexecdir" = '${exec_prefix}/libexec' &&
12637 test "$localstatedir" = '${prefix}/var'; then
12638 libexecdir='${bindir}'
12639 localstatedir='${prefix}'
12640 fi
12641
12642 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12643 if test "x$ac_cv_type_pid_t" = xyes; then :
12644
12645 else
12646
12647 cat >>confdefs.h <<_ACEOF
12648 #define pid_t int
12649 _ACEOF
12650
12651 fi
12652
12653 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12654 if test "x$ac_cv_type_size_t" = xyes; then :
12655
12656 else
12657
12658 cat >>confdefs.h <<_ACEOF
12659 #define size_t unsigned int
12660 _ACEOF
12661
12662 fi
12663
12664 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12665 if test "x$ac_cv_type_ssize_t" = xyes; then :
12666
12667 else
12668
12669 cat >>confdefs.h <<_ACEOF
12670 #define ssize_t int
12671 _ACEOF
12672
12673 fi
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12676 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12677 if ${ac_cv_type_uid_t+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682 #include <sys/types.h>
12683
12684 _ACEOF
12685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12686 $EGREP "uid_t" >/dev/null 2>&1; then :
12687 ac_cv_type_uid_t=yes
12688 else
12689 ac_cv_type_uid_t=no
12690 fi
12691 rm -f conftest*
12692
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12695 $as_echo "$ac_cv_type_uid_t" >&6; }
12696 if test $ac_cv_type_uid_t = no; then
12697
12698 $as_echo "#define uid_t int" >>confdefs.h
12699
12700
12701 $as_echo "#define gid_t int" >>confdefs.h
12702
12703 fi
12704
12705
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12708 $as_echo_n "checking for ANSI C header files... " >&6; }
12709 if ${ac_cv_header_stdc+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #include <stdlib.h>
12715 #include <stdarg.h>
12716 #include <string.h>
12717 #include <float.h>
12718
12719 int
12720 main ()
12721 {
12722
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 if ac_fn_c_try_compile "$LINENO"; then :
12728 ac_cv_header_stdc=yes
12729 else
12730 ac_cv_header_stdc=no
12731 fi
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733
12734 if test $ac_cv_header_stdc = yes; then
12735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 #include <string.h>
12739
12740 _ACEOF
12741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12742 $EGREP "memchr" >/dev/null 2>&1; then :
12743
12744 else
12745 ac_cv_header_stdc=no
12746 fi
12747 rm -f conftest*
12748
12749 fi
12750
12751 if test $ac_cv_header_stdc = yes; then
12752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <stdlib.h>
12756
12757 _ACEOF
12758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12759 $EGREP "free" >/dev/null 2>&1; then :
12760
12761 else
12762 ac_cv_header_stdc=no
12763 fi
12764 rm -f conftest*
12765
12766 fi
12767
12768 if test $ac_cv_header_stdc = yes; then
12769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12770 if test "$cross_compiling" = yes; then :
12771 :
12772 else
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 #include <ctype.h>
12776 #include <stdlib.h>
12777 #if ((' ' & 0x0FF) == 0x020)
12778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12780 #else
12781 # define ISLOWER(c) \
12782 (('a' <= (c) && (c) <= 'i') \
12783 || ('j' <= (c) && (c) <= 'r') \
12784 || ('s' <= (c) && (c) <= 'z'))
12785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12786 #endif
12787
12788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12789 int
12790 main ()
12791 {
12792 int i;
12793 for (i = 0; i < 256; i++)
12794 if (XOR (islower (i), ISLOWER (i))
12795 || toupper (i) != TOUPPER (i))
12796 return 2;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_run "$LINENO"; then :
12801
12802 else
12803 ac_cv_header_stdc=no
12804 fi
12805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12806 conftest.$ac_objext conftest.beam conftest.$ac_ext
12807 fi
12808
12809 fi
12810 fi
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12812 $as_echo "$ac_cv_header_stdc" >&6; }
12813 if test $ac_cv_header_stdc = yes; then
12814
12815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12816
12817 fi
12818
12819
12820 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
12821 do :
12822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12825 cat >>confdefs.h <<_ACEOF
12826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12827 _ACEOF
12828
12829 fi
12830
12831 done
12832
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12834 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12835 if ${ac_cv_header_time+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 #include <sys/types.h>
12841 #include <sys/time.h>
12842 #include <time.h>
12843
12844 int
12845 main ()
12846 {
12847 if ((struct tm *) 0)
12848 return 0;
12849 ;
12850 return 0;
12851 }
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_cv_header_time=yes
12855 else
12856 ac_cv_header_time=no
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12861 $as_echo "$ac_cv_header_time" >&6; }
12862 if test $ac_cv_header_time = yes; then
12863
12864 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12865
12866 fi
12867
12868
12869
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12871 $as_echo_n "checking for library containing socket... " >&6; }
12872 if ${ac_cv_search_socket+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 ac_func_search_save_LIBS=$LIBS
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char socket ();
12886 int
12887 main ()
12888 {
12889 return socket ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 for ac_lib in '' socket; do
12895 if test -z "$ac_lib"; then
12896 ac_res="none required"
12897 else
12898 ac_res=-l$ac_lib
12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12900 fi
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_search_socket=$ac_res
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext
12906 if ${ac_cv_search_socket+:} false; then :
12907 break
12908 fi
12909 done
12910 if ${ac_cv_search_socket+:} false; then :
12911
12912 else
12913 ac_cv_search_socket=no
12914 fi
12915 rm conftest.$ac_ext
12916 LIBS=$ac_func_search_save_LIBS
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12919 $as_echo "$ac_cv_search_socket" >&6; }
12920 ac_res=$ac_cv_search_socket
12921 if test "$ac_res" != no; then :
12922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12923
12924 fi
12925
12926
12927
12928 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12929 #ifdef HAVE_SYS_TYPES_H
12930 #include <sys/types.h>
12931 #endif
12932 #ifdef HAVE_SYS_SOCKET_H
12933 #include <sys/socket.h>
12934 #endif
12935 #ifdef HAVE_WINSOCK2_H
12936 #include <winsock2.h>
12937 #endif
12938
12939 "
12940 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12941
12942 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
12943
12944 fi
12945
12946
12947 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12948 #include <sys/socket.h>
12949 "
12950 if test "x$ac_cv_type_socklen_t" = xyes; then :
12951 rb_cv_socklen_t=socklen_t
12952 else
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12955 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12956 if ${rb_cv_socklen_t+:} false; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959
12960 # Systems have either "struct sockaddr *" or
12961 # "void *" as the second argument to getpeername
12962 rb_cv_socklen_t=
12963 for arg2 in "struct sockaddr" void; do
12964 for t in int size_t unsigned long "unsigned long"; do
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967
12968 #ifdef HAVE_SYS_TYPES_H
12969 #include <sys/types.h>
12970 #endif
12971 #ifdef HAVE_SYS_SOCKET_H
12972 #include <sys/socket.h>
12973 #endif
12974 #ifdef HAVE_WINSOCK2_H
12975 #include <winsock2.h>
12976 #endif
12977 int getpeername (int, $arg2 *, $t *);
12978
12979 int
12980 main ()
12981 {
12982
12983 $t len;
12984 getpeername(0,0,&len);
12985
12986 ;
12987 return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991
12992 rb_cv_socklen_t="$t"
12993 break
12994
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 done
12998 done
12999
13000 if test "x$rb_cv_socklen_t" = x; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13002 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13003 rb_cv_socklen_t=int
13004 fi
13005
13006 fi
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13009 $as_echo "$rb_cv_socklen_t" >&6; }
13010 fi
13011
13012
13013 rb_socklen_t=$rb_cv_socklen_t
13014
13015
13016
13017
13018
13019 # Check whether --enable-ipv6 was given.
13020 if test "${enable_ipv6+set}" = set; then :
13021 enableval=$enable_ipv6; ipv6=$enableval
13022 else
13023 ipv6=yes
13024 fi
13025
13026
13027 if test x$ipv6 != xyes; then
13028 have_v6="no"
13029 else
13030
13031 have_v6=yes
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13034 $as_echo_n "checking for INET6 protocol support... " >&6; }
13035 if ${rb_cv_proto_inet6+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041
13042 #include <sys/types.h>
13043 #include <sys/socket.h>
13044
13045 #ifndef PF_INET6
13046 #error Missing PF_INET6
13047 #endif
13048 #ifndef AF_INET6
13049 #error Mlssing AF_INET6
13050 #endif
13051
13052 _ACEOF
13053 if ac_fn_c_try_cpp "$LINENO"; then :
13054
13055 rb_cv_proto_inet6=yes
13056
13057 else
13058
13059 rb_cv_proto_inet6=no
13060
13061 fi
13062 rm -f conftest.err conftest.i conftest.$ac_ext
13063
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13066 $as_echo "$rb_cv_proto_inet6" >&6; }
13067
13068 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13069
13070 else :
13071
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13073 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13074 have_v6=no
13075
13076 fi
13077
13078
13079 if test "X$have_v6" = "Xyes"; then
13080
13081 rb_have_sockaddr_in6=
13082 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13083 #include <sys/types.h>
13084 #include <sys/socket.h>
13085 #include <netinet/in.h>
13086
13087 "
13088 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13089
13090 cat >>confdefs.h <<_ACEOF
13091 #define HAVE_STRUCT_SOCKADDR_IN6 1
13092 _ACEOF
13093
13094
13095 rb_have_sockaddr_in6=yes
13096
13097 else
13098
13099 rb_have_sockaddr_in6=no
13100
13101 fi
13102
13103
13104 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13105
13106 else :
13107
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13109 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13110 have_v6=no
13111
13112 fi
13113
13114 fi
13115
13116 fi
13117
13118 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13119 #include <sys/types.h>
13120 #include <sys/socket.h>
13121
13122 "
13123 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13124
13125 cat >>confdefs.h <<_ACEOF
13126 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13127 _ACEOF
13128
13129
13130 rb_have_sockaddr_storage=yes
13131
13132 fi
13133
13134
13135
13136 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13137 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13138
13139 else
13140 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13141 fi
13142
13143
13144
13145 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13146 #include <sys/socket.h>
13147 "
13148 if test "x$ac_cv_type_sa_family_t" = xyes; then :
13149
13150 else
13151
13152 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13153
13154 fi
13155
13156
13157
13158 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
13159 do :
13160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13163 cat >>confdefs.h <<_ACEOF
13164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13165 _ACEOF
13166
13167 fi
13168 done
13169
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13172 $as_echo_n "checking for library containing nanosleep... " >&6; }
13173 if ${ac_cv_search_nanosleep+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 ac_func_search_save_LIBS=$LIBS
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char nanosleep ();
13187 int
13188 main ()
13189 {
13190 return nanosleep ();
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 for ac_lib in '' rt posix4; do
13196 if test -z "$ac_lib"; then
13197 ac_res="none required"
13198 else
13199 ac_res=-l$ac_lib
13200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13201 fi
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 ac_cv_search_nanosleep=$ac_res
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext
13207 if ${ac_cv_search_nanosleep+:} false; then :
13208 break
13209 fi
13210 done
13211 if ${ac_cv_search_nanosleep+:} false; then :
13212
13213 else
13214 ac_cv_search_nanosleep=no
13215 fi
13216 rm conftest.$ac_ext
13217 LIBS=$ac_func_search_save_LIBS
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13220 $as_echo "$ac_cv_search_nanosleep" >&6; }
13221 ac_res=$ac_cv_search_nanosleep
13222 if test "$ac_res" != no; then :
13223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13224
13225 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13226
13227 fi
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13230 $as_echo_n "checking for library containing timer_create... " >&6; }
13231 if ${ac_cv_search_timer_create+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_func_search_save_LIBS=$LIBS
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237
13238 /* Override any GCC internal prototype to avoid an error.
13239 Use char because int might match the return type of a GCC
13240 builtin and then its argument prototype would still apply. */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char timer_create ();
13245 int
13246 main ()
13247 {
13248 return timer_create ();
13249 ;
13250 return 0;
13251 }
13252 _ACEOF
13253 for ac_lib in '' rt; do
13254 if test -z "$ac_lib"; then
13255 ac_res="none required"
13256 else
13257 ac_res=-l$ac_lib
13258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13259 fi
13260 if ac_fn_c_try_link "$LINENO"; then :
13261 ac_cv_search_timer_create=$ac_res
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext
13265 if ${ac_cv_search_timer_create+:} false; then :
13266 break
13267 fi
13268 done
13269 if ${ac_cv_search_timer_create+:} false; then :
13270
13271 else
13272 ac_cv_search_timer_create=no
13273 fi
13274 rm conftest.$ac_ext
13275 LIBS=$ac_func_search_save_LIBS
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13278 $as_echo "$ac_cv_search_timer_create" >&6; }
13279 ac_res=$ac_cv_search_timer_create
13280 if test "$ac_res" != no; then :
13281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282
13283 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
13284
13285 fi
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13288 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
13289 if ${rb__cv_timer_create_works+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test "$cross_compiling" = yes; then :
13293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13295 as_fn_error $? "cannot run test program while cross compiling
13296 See \`config.log' for more details" "$LINENO" 5; }
13297 else
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 #ifdef HAVE_TIME_H
13302 #include <time.h>
13303 #endif
13304 #ifdef HAVE_SIGNAL_H
13305 #include <signal.h>
13306 #endif
13307 #ifdef HAVE_UNISTD_H
13308 #include <unistd.h>
13309 #endif
13310 int main(int argc, char *argv[])
13311 {
13312 #if HAVE_TIMER_CREATE
13313 struct sigevent ev;
13314 timer_t timer;
13315 ev.sigev_notify = SIGEV_SIGNAL;
13316 ev.sigev_signo = SIGVTALRM;
13317 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13318 return 1;
13319 }
13320 #else
13321 return 1;
13322 #endif
13323 return 0;
13324 }
13325
13326 _ACEOF
13327 if ac_fn_c_try_run "$LINENO"; then :
13328 rb__cv_timer_create_works=yes
13329 else
13330 rb__cv_timer_create_works=no
13331 fi
13332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13333 conftest.$ac_objext conftest.beam conftest.$ac_ext
13334 fi
13335
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13339 $as_echo "$rb__cv_timer_create_works" >&6; }
13340 case $rb__cv_timer_create_works in
13341 yes)
13342 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13343 ;;
13344 esac
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13347 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
13348 if ${rb__cv_timerfd_create_works+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test "$cross_compiling" = yes; then :
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13354 as_fn_error $? "cannot run test program while cross compiling
13355 See \`config.log' for more details" "$LINENO" 5; }
13356 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359
13360 #ifdef HAVE_TIME_H
13361 #include <time.h>
13362 #endif
13363 #ifdef HAVE_SIGNAL_H
13364 #include <signal.h>
13365 #endif
13366 #ifdef HAVE_UNISTD_H
13367 #include <unistd.h>
13368 #endif
13369 #ifdef HAVE_SYS_TIMERFD_H
13370 #include <sys/timerfd.h>
13371 #endif
13372 int main(int argc, char *argv[])
13373 {
13374 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13375 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13376 return 1;
13377 }
13378 #else
13379 return 1;
13380 #endif
13381 return 0;
13382 }
13383
13384 _ACEOF
13385 if ac_fn_c_try_run "$LINENO"; then :
13386 rb__cv_timerfd_create_works=yes
13387 else
13388 rb__cv_timerfd_create_works=no
13389 fi
13390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13391 conftest.$ac_objext conftest.beam conftest.$ac_ext
13392 fi
13393
13394
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13397 $as_echo "$rb__cv_timerfd_create_works" >&6; }
13398 case $rb__cv_timerfd_create_works in
13399 yes)
13400 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13401 ;;
13402 esac
13403
13404
13405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13406 # for constant arguments. Useless!
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13408 $as_echo_n "checking for working alloca.h... " >&6; }
13409 if ${ac_cv_working_alloca_h+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <alloca.h>
13415 int
13416 main ()
13417 {
13418 char *p = (char *) alloca (2 * sizeof (int));
13419 if (p) return 0;
13420 ;
13421 return 0;
13422 }
13423 _ACEOF
13424 if ac_fn_c_try_link "$LINENO"; then :
13425 ac_cv_working_alloca_h=yes
13426 else
13427 ac_cv_working_alloca_h=no
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13433 $as_echo "$ac_cv_working_alloca_h" >&6; }
13434 if test $ac_cv_working_alloca_h = yes; then
13435
13436 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13437
13438 fi
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13441 $as_echo_n "checking for alloca... " >&6; }
13442 if ${ac_cv_func_alloca_works+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 #ifdef __GNUC__
13448 # define alloca __builtin_alloca
13449 #else
13450 # ifdef _MSC_VER
13451 # include <malloc.h>
13452 # define alloca _alloca
13453 # else
13454 # ifdef HAVE_ALLOCA_H
13455 # include <alloca.h>
13456 # else
13457 # ifdef _AIX
13458 #pragma alloca
13459 # else
13460 # ifndef alloca /* predefined by HP cc +Olibcalls */
13461 void *alloca (size_t);
13462 # endif
13463 # endif
13464 # endif
13465 # endif
13466 #endif
13467
13468 int
13469 main ()
13470 {
13471 char *p = (char *) alloca (1);
13472 if (p) return 0;
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"; then :
13478 ac_cv_func_alloca_works=yes
13479 else
13480 ac_cv_func_alloca_works=no
13481 fi
13482 rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13486 $as_echo "$ac_cv_func_alloca_works" >&6; }
13487
13488 if test $ac_cv_func_alloca_works = yes; then
13489
13490 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13491
13492 else
13493 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13494 # that cause trouble. Some versions do not even contain alloca or
13495 # contain a buggy version. If you still want to use their alloca,
13496 # use ar to extract alloca.o from them instead of compiling alloca.c.
13497
13498 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13499
13500 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13501
13502
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13504 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13505 if ${ac_cv_os_cray+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 #if defined CRAY && ! defined CRAY2
13511 webecray
13512 #else
13513 wenotbecray
13514 #endif
13515
13516 _ACEOF
13517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518 $EGREP "webecray" >/dev/null 2>&1; then :
13519 ac_cv_os_cray=yes
13520 else
13521 ac_cv_os_cray=no
13522 fi
13523 rm -f conftest*
13524
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13527 $as_echo "$ac_cv_os_cray" >&6; }
13528 if test $ac_cv_os_cray = yes; then
13529 for ac_func in _getb67 GETB67 getb67; do
13530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13533
13534 cat >>confdefs.h <<_ACEOF
13535 #define CRAY_STACKSEG_END $ac_func
13536 _ACEOF
13537
13538 break
13539 fi
13540
13541 done
13542 fi
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13545 $as_echo_n "checking stack direction for C alloca... " >&6; }
13546 if ${ac_cv_c_stack_direction+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 if test "$cross_compiling" = yes; then :
13550 ac_cv_c_stack_direction=0
13551 else
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 int
13556 find_stack_direction ()
13557 {
13558 static char *addr = 0;
13559 auto char dummy;
13560 if (addr == 0)
13561 {
13562 addr = &dummy;
13563 return find_stack_direction ();
13564 }
13565 else
13566 return (&dummy > addr) ? 1 : -1;
13567 }
13568
13569 int
13570 main ()
13571 {
13572 return find_stack_direction () < 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_run "$LINENO"; then :
13576 ac_cv_c_stack_direction=1
13577 else
13578 ac_cv_c_stack_direction=-1
13579 fi
13580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13581 conftest.$ac_objext conftest.beam conftest.$ac_ext
13582 fi
13583
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13586 $as_echo "$ac_cv_c_stack_direction" >&6; }
13587 cat >>confdefs.h <<_ACEOF
13588 #define STACK_DIRECTION $ac_cv_c_stack_direction
13589 _ACEOF
13590
13591
13592 fi
13593
13594 for ac_header in vfork.h
13595 do :
13596 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13597 if test "x$ac_cv_header_vfork_h" = xyes; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_VFORK_H 1
13600 _ACEOF
13601
13602 fi
13603
13604 done
13605
13606 for ac_func in fork vfork
13607 do :
13608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13610 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13611 cat >>confdefs.h <<_ACEOF
13612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13613 _ACEOF
13614
13615 fi
13616 done
13617
13618 if test "x$ac_cv_func_fork" = xyes; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13620 $as_echo_n "checking for working fork... " >&6; }
13621 if ${ac_cv_func_fork_works+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test "$cross_compiling" = yes; then :
13625 ac_cv_func_fork_works=cross
13626 else
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 $ac_includes_default
13630 int
13631 main ()
13632 {
13633
13634 /* By Ruediger Kuhlmann. */
13635 return fork () < 0;
13636
13637 ;
13638 return 0;
13639 }
13640 _ACEOF
13641 if ac_fn_c_try_run "$LINENO"; then :
13642 ac_cv_func_fork_works=yes
13643 else
13644 ac_cv_func_fork_works=no
13645 fi
13646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13647 conftest.$ac_objext conftest.beam conftest.$ac_ext
13648 fi
13649
13650 fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13652 $as_echo "$ac_cv_func_fork_works" >&6; }
13653
13654 else
13655 ac_cv_func_fork_works=$ac_cv_func_fork
13656 fi
13657 if test "x$ac_cv_func_fork_works" = xcross; then
13658 case $host in
13659 *-*-amigaos* | *-*-msdosdjgpp*)
13660 # Override, as these systems have only a dummy fork() stub
13661 ac_cv_func_fork_works=no
13662 ;;
13663 *)
13664 ac_cv_func_fork_works=yes
13665 ;;
13666 esac
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13668 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13669 fi
13670 ac_cv_func_vfork_works=$ac_cv_func_vfork
13671 if test "x$ac_cv_func_vfork" = xyes; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13673 $as_echo_n "checking for working vfork... " >&6; }
13674 if ${ac_cv_func_vfork_works+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 if test "$cross_compiling" = yes; then :
13678 ac_cv_func_vfork_works=cross
13679 else
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 /* Thanks to Paul Eggert for this test. */
13683 $ac_includes_default
13684 #include <sys/wait.h>
13685 #ifdef HAVE_VFORK_H
13686 # include <vfork.h>
13687 #endif
13688 /* On some sparc systems, changes by the child to local and incoming
13689 argument registers are propagated back to the parent. The compiler
13690 is told about this with #include <vfork.h>, but some compilers
13691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13692 static variable whose address is put into a register that is
13693 clobbered by the vfork. */
13694 static void
13695 #ifdef __cplusplus
13696 sparc_address_test (int arg)
13697 # else
13698 sparc_address_test (arg) int arg;
13699 #endif
13700 {
13701 static pid_t child;
13702 if (!child) {
13703 child = vfork ();
13704 if (child < 0) {
13705 perror ("vfork");
13706 _exit(2);
13707 }
13708 if (!child) {
13709 arg = getpid();
13710 write(-1, "", 0);
13711 _exit (arg);
13712 }
13713 }
13714 }
13715
13716 int
13717 main ()
13718 {
13719 pid_t parent = getpid ();
13720 pid_t child;
13721
13722 sparc_address_test (0);
13723
13724 child = vfork ();
13725
13726 if (child == 0) {
13727 /* Here is another test for sparc vfork register problems. This
13728 test uses lots of local variables, at least as many local
13729 variables as main has allocated so far including compiler
13730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13732 reuse the register of parent for one of the local variables,
13733 since it will think that parent can't possibly be used any more
13734 in this routine. Assigning to the local variable will thus
13735 munge parent in the parent process. */
13736 pid_t
13737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13739 /* Convince the compiler that p..p7 are live; otherwise, it might
13740 use the same hardware register for all 8 local variables. */
13741 if (p != p1 || p != p2 || p != p3 || p != p4
13742 || p != p5 || p != p6 || p != p7)
13743 _exit(1);
13744
13745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13746 from child file descriptors. If the child closes a descriptor
13747 before it execs or exits, this munges the parent's descriptor
13748 as well. Test for this by closing stdout in the child. */
13749 _exit(close(fileno(stdout)) != 0);
13750 } else {
13751 int status;
13752 struct stat st;
13753
13754 while (wait(&status) != child)
13755 ;
13756 return (
13757 /* Was there some problem with vforking? */
13758 child < 0
13759
13760 /* Did the child fail? (This shouldn't happen.) */
13761 || status
13762
13763 /* Did the vfork/compiler bug occur? */
13764 || parent != getpid()
13765
13766 /* Did the file descriptor bug occur? */
13767 || fstat(fileno(stdout), &st) != 0
13768 );
13769 }
13770 }
13771 _ACEOF
13772 if ac_fn_c_try_run "$LINENO"; then :
13773 ac_cv_func_vfork_works=yes
13774 else
13775 ac_cv_func_vfork_works=no
13776 fi
13777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13778 conftest.$ac_objext conftest.beam conftest.$ac_ext
13779 fi
13780
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13783 $as_echo "$ac_cv_func_vfork_works" >&6; }
13784
13785 fi;
13786 if test "x$ac_cv_func_fork_works" = xcross; then
13787 ac_cv_func_vfork_works=$ac_cv_func_vfork
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13789 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13790 fi
13791
13792 if test "x$ac_cv_func_vfork_works" = xyes; then
13793
13794 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13795
13796 else
13797
13798 $as_echo "#define vfork fork" >>confdefs.h
13799
13800 fi
13801 if test "x$ac_cv_func_fork_works" = xyes; then
13802
13803 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13804
13805 fi
13806
13807
13808
13809
13810 for ac_header in $ac_header_list
13811 do :
13812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13813 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13814 "
13815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13816 cat >>confdefs.h <<_ACEOF
13817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13818 _ACEOF
13819
13820 fi
13821
13822 done
13823
13824
13825
13826
13827
13828
13829
13830
13831 for ac_func in getpagesize
13832 do :
13833 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13834 if test "x$ac_cv_func_getpagesize" = xyes; then :
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_GETPAGESIZE 1
13837 _ACEOF
13838
13839 fi
13840 done
13841
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13843 $as_echo_n "checking for working mmap... " >&6; }
13844 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 if test "$cross_compiling" = yes; then :
13848 ac_cv_func_mmap_fixed_mapped=no
13849 else
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 $ac_includes_default
13853 /* malloc might have been renamed as rpl_malloc. */
13854 #undef malloc
13855
13856 /* Thanks to Mike Haertel and Jim Avera for this test.
13857 Here is a matrix of mmap possibilities:
13858 mmap private not fixed
13859 mmap private fixed at somewhere currently unmapped
13860 mmap private fixed at somewhere already mapped
13861 mmap shared not fixed
13862 mmap shared fixed at somewhere currently unmapped
13863 mmap shared fixed at somewhere already mapped
13864 For private mappings, we should verify that changes cannot be read()
13865 back from the file, nor mmap's back from the file at a different
13866 address. (There have been systems where private was not correctly
13867 implemented like the infamous i386 svr4.0, and systems where the
13868 VM page cache was not coherent with the file system buffer cache
13869 like early versions of FreeBSD and possibly contemporary NetBSD.)
13870 For shared mappings, we should conversely verify that changes get
13871 propagated back to all the places they're supposed to be.
13872
13873 Grep wants private fixed already mapped.
13874 The main things grep needs to know about mmap are:
13875 * does it exist and is it safe to write into the mmap'd area
13876 * how to use it (BSD variants) */
13877
13878 #include <fcntl.h>
13879 #include <sys/mman.h>
13880
13881 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13882 char *malloc ();
13883 #endif
13884
13885 /* This mess was copied from the GNU getpagesize.h. */
13886 #ifndef HAVE_GETPAGESIZE
13887 # ifdef _SC_PAGESIZE
13888 # define getpagesize() sysconf(_SC_PAGESIZE)
13889 # else /* no _SC_PAGESIZE */
13890 # ifdef HAVE_SYS_PARAM_H
13891 # include <sys/param.h>
13892 # ifdef EXEC_PAGESIZE
13893 # define getpagesize() EXEC_PAGESIZE
13894 # else /* no EXEC_PAGESIZE */
13895 # ifdef NBPG
13896 # define getpagesize() NBPG * CLSIZE
13897 # ifndef CLSIZE
13898 # define CLSIZE 1
13899 # endif /* no CLSIZE */
13900 # else /* no NBPG */
13901 # ifdef NBPC
13902 # define getpagesize() NBPC
13903 # else /* no NBPC */
13904 # ifdef PAGESIZE
13905 # define getpagesize() PAGESIZE
13906 # endif /* PAGESIZE */
13907 # endif /* no NBPC */
13908 # endif /* no NBPG */
13909 # endif /* no EXEC_PAGESIZE */
13910 # else /* no HAVE_SYS_PARAM_H */
13911 # define getpagesize() 8192 /* punt totally */
13912 # endif /* no HAVE_SYS_PARAM_H */
13913 # endif /* no _SC_PAGESIZE */
13914
13915 #endif /* no HAVE_GETPAGESIZE */
13916
13917 int
13918 main ()
13919 {
13920 char *data, *data2, *data3;
13921 const char *cdata2;
13922 int i, pagesize;
13923 int fd, fd2;
13924
13925 pagesize = getpagesize ();
13926
13927 /* First, make a file with some known garbage in it. */
13928 data = (char *) malloc (pagesize);
13929 if (!data)
13930 return 1;
13931 for (i = 0; i < pagesize; ++i)
13932 *(data + i) = rand ();
13933 umask (0);
13934 fd = creat ("conftest.mmap", 0600);
13935 if (fd < 0)
13936 return 2;
13937 if (write (fd, data, pagesize) != pagesize)
13938 return 3;
13939 close (fd);
13940
13941 /* Next, check that the tail of a page is zero-filled. File must have
13942 non-zero length, otherwise we risk SIGBUS for entire page. */
13943 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13944 if (fd2 < 0)
13945 return 4;
13946 cdata2 = "";
13947 if (write (fd2, cdata2, 1) != 1)
13948 return 5;
13949 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13950 if (data2 == MAP_FAILED)
13951 return 6;
13952 for (i = 0; i < pagesize; ++i)
13953 if (*(data2 + i))
13954 return 7;
13955 close (fd2);
13956 if (munmap (data2, pagesize))
13957 return 8;
13958
13959 /* Next, try to mmap the file at a fixed address which already has
13960 something else allocated at it. If we can, also make sure that
13961 we see the same garbage. */
13962 fd = open ("conftest.mmap", O_RDWR);
13963 if (fd < 0)
13964 return 9;
13965 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13966 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13967 return 10;
13968 for (i = 0; i < pagesize; ++i)
13969 if (*(data + i) != *(data2 + i))
13970 return 11;
13971
13972 /* Finally, make sure that changes to the mapped area do not
13973 percolate back to the file as seen by read(). (This is a bug on
13974 some variants of i386 svr4.0.) */
13975 for (i = 0; i < pagesize; ++i)
13976 *(data2 + i) = *(data2 + i) + 1;
13977 data3 = (char *) malloc (pagesize);
13978 if (!data3)
13979 return 12;
13980 if (read (fd, data3, pagesize) != pagesize)
13981 return 13;
13982 for (i = 0; i < pagesize; ++i)
13983 if (*(data + i) != *(data3 + i))
13984 return 14;
13985 close (fd);
13986 return 0;
13987 }
13988 _ACEOF
13989 if ac_fn_c_try_run "$LINENO"; then :
13990 ac_cv_func_mmap_fixed_mapped=yes
13991 else
13992 ac_cv_func_mmap_fixed_mapped=no
13993 fi
13994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13995 conftest.$ac_objext conftest.beam conftest.$ac_ext
13996 fi
13997
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14000 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14001 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14002
14003 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14004
14005 fi
14006 rm -f conftest.mmap conftest.txt
14007
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14010 $as_echo_n "checking for /dev/poll... " >&6; }
14011 if test -c "/dev/poll"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013 $as_echo "yes" >&6; }
14014
14015 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14016
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14020 fi
14021
14022
14023 if test "$is_mingw" = "yes"; then
14024
14025 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14026
14027 fi
14028
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14031 $as_echo_n "checking for OpenSSL... " >&6; }
14032 # Check whether --enable-openssl was given.
14033 if test "${enable_openssl+set}" = set; then :
14034 enableval=$enable_openssl; cf_enable_openssl=$enableval
14035 else
14036 cf_enable_openssl="auto"
14037 fi
14038
14039
14040 if test "$cf_enable_openssl" != "no" ; then
14041 cf_openssl_basedir=""
14042 if test "$cf_enable_openssl" != "auto" &&
14043 test "$cf_enable_openssl" != "yes" ; then
14044 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14045 else
14046 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14047 /usr/local/openssl ; do
14048 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14049 cf_openssl_basedir="${dirs}"
14050 break
14051 fi
14052 done
14053 unset dirs
14054 fi
14055 if test ! -z "$cf_openssl_basedir"; then
14056 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14057 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14058 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14059 else
14060 cf_openssl_basedir=""
14061 fi
14062 else
14063 if test -f "/usr/include/openssl/opensslv.h" ; then
14064 cf_openssl_basedir="/usr"
14065 fi
14066 fi
14067
14068 if test ! -z "$cf_openssl_basedir"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14070 $as_echo "$cf_openssl_basedir" >&6; }
14071 cf_enable_openssl="yes"
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14074 $as_echo "not found. Specify a correct path?" >&6; }
14075 cf_enable_openssl="no"
14076 fi
14077 unset cf_openssl_basedir
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14080 $as_echo "disabled" >&6; }
14081 fi
14082
14083 save_CPPFLAGS="$CPPFLAGS"
14084 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14085 save_LIBS="$LIBS"
14086 LIBS="$LIBS $SSL_LIBS"
14087 if test "$cf_enable_openssl" != no; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14089 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14090 if test "$cross_compiling" = yes; then :
14091 cf_enable_openssl=no
14092 else
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <openssl/opensslv.h>
14096 #include <stdlib.h>
14097 int
14098 main ()
14099 {
14100 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14101 exit(0); else exit(1);
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_c_try_run "$LINENO"; then :
14107 cf_enable_openssl=yes
14108 else
14109 cf_enable_openssl=no
14110 fi
14111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14112 conftest.$ac_objext conftest.beam conftest.$ac_ext
14113 fi
14114
14115
14116 if test "$cf_enable_openssl" != no; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14118 $as_echo "found" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14121 $as_echo "no - OpenSSL support disabled" >&6; }
14122 fi
14123
14124 fi
14125
14126
14127 if test "$cf_enable_openssl" != no; then
14128 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14130 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14131 if ${ac_cv_lib_crypto_RAND_status+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lcrypto $LIBS"
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char RAND_status ();
14146 int
14147 main ()
14148 {
14149 return RAND_status ();
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 ac_cv_lib_crypto_RAND_status=yes
14156 else
14157 ac_cv_lib_crypto_RAND_status=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14164 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14165 if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
14166 cf_enable_openssl=yes
14167 else
14168 cf_enable_openssl=no
14169 fi
14170
14171 fi
14172
14173 if test "$cf_enable_openssl" != no; then
14174 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14176 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14177 if ${ac_cv_lib_ssl_SSL_read+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 ac_check_lib_save_LIBS=$LIBS
14181 LIBS="-lssl -lcrypto $LIBS"
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184
14185 /* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14188 #ifdef __cplusplus
14189 extern "C"
14190 #endif
14191 char SSL_read ();
14192 int
14193 main ()
14194 {
14195 return SSL_read ();
14196 ;
14197 return 0;
14198 }
14199 _ACEOF
14200 if ac_fn_c_try_link "$LINENO"; then :
14201 ac_cv_lib_ssl_SSL_read=yes
14202 else
14203 ac_cv_lib_ssl_SSL_read=no
14204 fi
14205 rm -f core conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
14207 LIBS=$ac_check_lib_save_LIBS
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14210 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
14211 if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
14212 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
14213 else
14214 cf_enable_openssl=no
14215 fi
14216
14217 fi
14218
14219
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14222 $as_echo_n "checking for GnuTLS... " >&6; }
14223 # Check whether --enable-gnutls was given.
14224 if test "${enable_gnutls+set}" = set; then :
14225 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
14226 else
14227 cf_enable_gnutls="auto"
14228 fi
14229
14230
14231 if test "$cf_enable_gnutls" != no; then
14232
14233
14234 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14235 if test -n "$ac_tool_prefix"; then
14236 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14237 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 $as_echo_n "checking for $ac_word... " >&6; }
14240 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 case $PKG_CONFIG in
14244 [\\/]* | ?:[\\/]*)
14245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14246 ;;
14247 *)
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14250 do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 break 2
14258 fi
14259 done
14260 done
14261 IFS=$as_save_IFS
14262
14263 ;;
14264 esac
14265 fi
14266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14267 if test -n "$PKG_CONFIG"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14269 $as_echo "$PKG_CONFIG" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275
14276 fi
14277 if test -z "$ac_cv_path_PKG_CONFIG"; then
14278 ac_pt_PKG_CONFIG=$PKG_CONFIG
14279 # Extract the first word of "pkg-config", so it can be a program name with args.
14280 set dummy pkg-config; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 case $ac_pt_PKG_CONFIG in
14287 [\\/]* | ?:[\\/]*)
14288 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14289 ;;
14290 *)
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14293 do
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14298 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14301 fi
14302 done
14303 done
14304 IFS=$as_save_IFS
14305
14306 ;;
14307 esac
14308 fi
14309 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14310 if test -n "$ac_pt_PKG_CONFIG"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14312 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 fi
14317
14318 if test "x$ac_pt_PKG_CONFIG" = x; then
14319 PKG_CONFIG=""
14320 else
14321 case $cross_compiling:$ac_tool_warned in
14322 yes:)
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325 ac_tool_warned=yes ;;
14326 esac
14327 PKG_CONFIG=$ac_pt_PKG_CONFIG
14328 fi
14329 else
14330 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14331 fi
14332
14333 fi
14334 if test -n "$PKG_CONFIG"; then
14335 _pkg_min_version=0.9.0
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14337 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14338 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14341 else
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14344 PKG_CONFIG=""
14345 fi
14346
14347 fi
14348
14349 pkg_failed=no
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14351 $as_echo_n "checking for GNUTLS... " >&6; }
14352
14353 if test -n "$GNUTLS_CFLAGS"; then
14354 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
14355 elif test -n "$PKG_CONFIG"; then
14356 if test -n "$PKG_CONFIG" && \
14357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14358 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14359 ac_status=$?
14360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14361 test $ac_status = 0; }; then
14362 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
14363 else
14364 pkg_failed=yes
14365 fi
14366 else
14367 pkg_failed=untried
14368 fi
14369 if test -n "$GNUTLS_LIBS"; then
14370 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
14371 elif test -n "$PKG_CONFIG"; then
14372 if test -n "$PKG_CONFIG" && \
14373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14374 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14375 ac_status=$?
14376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377 test $ac_status = 0; }; then
14378 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
14379 else
14380 pkg_failed=yes
14381 fi
14382 else
14383 pkg_failed=untried
14384 fi
14385
14386
14387
14388 if test $pkg_failed = yes; then
14389
14390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14391 _pkg_short_errors_supported=yes
14392 else
14393 _pkg_short_errors_supported=no
14394 fi
14395 if test $_pkg_short_errors_supported = yes; then
14396 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
14397 else
14398 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
14399 fi
14400 # Put the nasty error message in config.log where it belongs
14401 echo "$GNUTLS_PKG_ERRORS" >&5
14402
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 cf_enable_gnutls="no"
14406 elif test $pkg_failed = untried; then
14407 cf_enable_gnutls="no"
14408 else
14409 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
14410 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412 $as_echo "yes" >&6; }
14413
14414 cf_enable_gnutls="yes"
14415
14416 fi
14417 fi
14418
14419 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14420 cf_enable_gnutls="no"
14421 fi
14422
14423 if test x"$cf_enable_openssl" != xno; then
14424
14425 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14426
14427 GNUTLS_CFLAGS=""
14428 GNUTLS_LIBS=""
14429 SSL_TYPE="openssl"
14430 elif test x"$cf_enable_gnutls" != xno; then
14431
14432 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
14433
14434 SSL_LIBS=""
14435 SSL_CFLAGS=""
14436 SSL_TYPE="gnutls"
14437 fi
14438
14439
14440
14441
14442 CPPFLAGS="$save_CPPFLAGS"
14443 LIBS="$save_LIBS"
14444
14445
14446
14447
14448
14449
14450 # Check whether --enable-assert was given.
14451 if test "${enable_assert+set}" = set; then :
14452 enableval=$enable_assert; assert=$enableval
14453 else
14454 assert=no
14455 fi
14456
14457
14458 if test "$assert" = no; then
14459
14460 $as_echo "#define NDEBUG 1" >>confdefs.h
14461
14462 elif test "$assert" = soft; then
14463
14464 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
14465
14466
14467 $as_echo "#define NDEBUG 1" >>confdefs.h
14468
14469 elif test "$assert" = yes; then
14470 assert = "hard";
14471 fi
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14474 $as_echo_n "checking if you want to do a profile build... " >&6; }
14475 # Check whether --enable-profile was given.
14476 if test "${enable_profile+set}" = set; then :
14477 enableval=$enable_profile; profile=$enableval
14478 else
14479 profile=no
14480 fi
14481
14482
14483 if test "$profile" = yes; then
14484 if test "$ac_cv_c_compiler_gnu" = yes; then
14485 CFLAGS="$CFLAGS -pg -static"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14487 $as_echo "yes, adding -pg -static" >&6; }
14488
14489 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14490
14491 else
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14493 $as_echo "no, profile builds only work with gcc" >&6; }
14494 fi
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14498 fi
14499
14500 # Check whether --enable-balloc was given.
14501 if test "${enable_balloc+set}" = set; then :
14502 enableval=$enable_balloc; balloc=$enableval
14503 else
14504 balloc=yes
14505 fi
14506
14507
14508 if test "$balloc" = no; then
14509
14510 $as_echo "#define NOBALLOC 1" >>confdefs.h
14511
14512 fi
14513
14514 # Check whether --enable-warnings was given.
14515 if test "${enable_warnings+set}" = set; then :
14516 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"
14517 fi
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529 if test "$prefix" = "NONE"; then
14530
14531 cat >>confdefs.h <<_ACEOF
14532 #define RB_PREFIX "$ac_default_prefix"
14533 _ACEOF
14534
14535
14536 else
14537
14538
14539 prefix=`echo $prefix | sed 's/\/$//'`
14540
14541 cat >>confdefs.h <<_ACEOF
14542 #define RB_PREFIX "$prefix"
14543 _ACEOF
14544
14545
14546 fi
14547
14548
14549
14550 ac_config_commands="$ac_config_commands include/librb-config.h"
14551
14552
14553
14554 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
14555
14556
14557 cat >confcache <<\_ACEOF
14558 # This file is a shell script that caches the results of configure
14559 # tests run on this system so they can be shared between configure
14560 # scripts and configure runs, see configure's option --config-cache.
14561 # It is not useful on other systems. If it contains results you don't
14562 # want to keep, you may remove or edit it.
14563 #
14564 # config.status only pays attention to the cache file if you give it
14565 # the --recheck option to rerun configure.
14566 #
14567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14569 # following values.
14570
14571 _ACEOF
14572
14573 # The following way of writing the cache mishandles newlines in values,
14574 # but we know of no workaround that is simple, portable, and efficient.
14575 # So, we kill variables containing newlines.
14576 # Ultrix sh set writes to stderr and can't be redirected directly,
14577 # and sets the high bit in the cache file unless we assign to the vars.
14578 (
14579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14580 eval ac_val=\$$ac_var
14581 case $ac_val in #(
14582 *${as_nl}*)
14583 case $ac_var in #(
14584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14586 esac
14587 case $ac_var in #(
14588 _ | IFS | as_nl) ;; #(
14589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14590 *) { eval $ac_var=; unset $ac_var;} ;;
14591 esac ;;
14592 esac
14593 done
14594
14595 (set) 2>&1 |
14596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14597 *${as_nl}ac_space=\ *)
14598 # `set' does not quote correctly, so add quotes: double-quote
14599 # substitution turns \\\\ into \\, and sed turns \\ into \.
14600 sed -n \
14601 "s/'/'\\\\''/g;
14602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14603 ;; #(
14604 *)
14605 # `set' quotes correctly as required by POSIX, so do not add quotes.
14606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14607 ;;
14608 esac |
14609 sort
14610 ) |
14611 sed '
14612 /^ac_cv_env_/b end
14613 t clear
14614 :clear
14615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14616 t end
14617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14618 :end' >>confcache
14619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14620 if test -w "$cache_file"; then
14621 if test "x$cache_file" != "x/dev/null"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14623 $as_echo "$as_me: updating cache $cache_file" >&6;}
14624 if test ! -f "$cache_file" || test -h "$cache_file"; then
14625 cat confcache >"$cache_file"
14626 else
14627 case $cache_file in #(
14628 */* | ?:*)
14629 mv -f confcache "$cache_file"$$ &&
14630 mv -f "$cache_file"$$ "$cache_file" ;; #(
14631 *)
14632 mv -f confcache "$cache_file" ;;
14633 esac
14634 fi
14635 fi
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14639 fi
14640 fi
14641 rm -f confcache
14642
14643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14644 # Let make expand exec_prefix.
14645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14646
14647 DEFS=-DHAVE_CONFIG_H
14648
14649 ac_libobjs=
14650 ac_ltlibobjs=
14651 U=
14652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14653 # 1. Remove the extension, and $U if already installed.
14654 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14655 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14657 # will be set to the directory where LIBOBJS objects are built.
14658 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14659 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14660 done
14661 LIBOBJS=$ac_libobjs
14662
14663 LTLIBOBJS=$ac_ltlibobjs
14664
14665
14666 if test -n "$EXEEXT"; then
14667 am__EXEEXT_TRUE=
14668 am__EXEEXT_FALSE='#'
14669 else
14670 am__EXEEXT_TRUE='#'
14671 am__EXEEXT_FALSE=
14672 fi
14673
14674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14675 as_fn_error $? "conditional \"AMDEP\" was never defined.
14676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14677 fi
14678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14679 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681 fi
14682 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14683 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14685 fi
14686
14687 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14688 as_fn_error $? "conditional \"MINGW\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690 fi
14691
14692 : "${CONFIG_STATUS=./config.status}"
14693 ac_write_fail=0
14694 ac_clean_files_save=$ac_clean_files
14695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14697 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14698 as_write_fail=0
14699 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14700 #! $SHELL
14701 # Generated by $as_me.
14702 # Run this file to recreate the current configuration.
14703 # Compiler output produced by configure, useful for debugging
14704 # configure, is in config.log if it exists.
14705
14706 debug=false
14707 ac_cs_recheck=false
14708 ac_cs_silent=false
14709
14710 SHELL=\${CONFIG_SHELL-$SHELL}
14711 export SHELL
14712 _ASEOF
14713 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14714 ## -------------------- ##
14715 ## M4sh Initialization. ##
14716 ## -------------------- ##
14717
14718 # Be more Bourne compatible
14719 DUALCASE=1; export DUALCASE # for MKS sh
14720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14721 emulate sh
14722 NULLCMD=:
14723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14724 # is contrary to our usage. Disable this feature.
14725 alias -g '${1+"$@"}'='"$@"'
14726 setopt NO_GLOB_SUBST
14727 else
14728 case `(set -o) 2>/dev/null` in #(
14729 *posix*) :
14730 set -o posix ;; #(
14731 *) :
14732 ;;
14733 esac
14734 fi
14735
14736
14737 as_nl='
14738 '
14739 export as_nl
14740 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14741 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14744 # Prefer a ksh shell builtin over an external printf program on Solaris,
14745 # but without wasting forks for bash or zsh.
14746 if test -z "$BASH_VERSION$ZSH_VERSION" \
14747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14748 as_echo='print -r --'
14749 as_echo_n='print -rn --'
14750 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14751 as_echo='printf %s\n'
14752 as_echo_n='printf %s'
14753 else
14754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14756 as_echo_n='/usr/ucb/echo -n'
14757 else
14758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14759 as_echo_n_body='eval
14760 arg=$1;
14761 case $arg in #(
14762 *"$as_nl"*)
14763 expr "X$arg" : "X\\(.*\\)$as_nl";
14764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14765 esac;
14766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14767 '
14768 export as_echo_n_body
14769 as_echo_n='sh -c $as_echo_n_body as_echo'
14770 fi
14771 export as_echo_body
14772 as_echo='sh -c $as_echo_body as_echo'
14773 fi
14774
14775 # The user is always right.
14776 if test "${PATH_SEPARATOR+set}" != set; then
14777 PATH_SEPARATOR=:
14778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14780 PATH_SEPARATOR=';'
14781 }
14782 fi
14783
14784
14785 # IFS
14786 # We need space, tab and new line, in precisely that order. Quoting is
14787 # there to prevent editors from complaining about space-tab.
14788 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14789 # splitting by setting IFS to empty value.)
14790 IFS=" "" $as_nl"
14791
14792 # Find who we are. Look in the path if we contain no directory separator.
14793 as_myself=
14794 case $0 in #((
14795 *[\\/]* ) as_myself=$0 ;;
14796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14798 do
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14802 done
14803 IFS=$as_save_IFS
14804
14805 ;;
14806 esac
14807 # We did not find ourselves, most probably we were run as `sh COMMAND'
14808 # in which case we are not to be found in the path.
14809 if test "x$as_myself" = x; then
14810 as_myself=$0
14811 fi
14812 if test ! -f "$as_myself"; then
14813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14814 exit 1
14815 fi
14816
14817 # Unset variables that we do not need and which cause bugs (e.g. in
14818 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14819 # suppresses any "Segmentation fault" message there. '((' could
14820 # trigger a bug in pdksh 5.2.14.
14821 for as_var in BASH_ENV ENV MAIL MAILPATH
14822 do eval test x\${$as_var+set} = xset \
14823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14824 done
14825 PS1='$ '
14826 PS2='> '
14827 PS4='+ '
14828
14829 # NLS nuisances.
14830 LC_ALL=C
14831 export LC_ALL
14832 LANGUAGE=C
14833 export LANGUAGE
14834
14835 # CDPATH.
14836 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14837
14838
14839 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14840 # ----------------------------------------
14841 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14842 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14843 # script with STATUS, using 1 if that was 0.
14844 as_fn_error ()
14845 {
14846 as_status=$1; test $as_status -eq 0 && as_status=1
14847 if test "$4"; then
14848 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14850 fi
14851 $as_echo "$as_me: error: $2" >&2
14852 as_fn_exit $as_status
14853 } # as_fn_error
14854
14855
14856 # as_fn_set_status STATUS
14857 # -----------------------
14858 # Set $? to STATUS, without forking.
14859 as_fn_set_status ()
14860 {
14861 return $1
14862 } # as_fn_set_status
14863
14864 # as_fn_exit STATUS
14865 # -----------------
14866 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14867 as_fn_exit ()
14868 {
14869 set +e
14870 as_fn_set_status $1
14871 exit $1
14872 } # as_fn_exit
14873
14874 # as_fn_unset VAR
14875 # ---------------
14876 # Portably unset VAR.
14877 as_fn_unset ()
14878 {
14879 { eval $1=; unset $1;}
14880 }
14881 as_unset=as_fn_unset
14882 # as_fn_append VAR VALUE
14883 # ----------------------
14884 # Append the text in VALUE to the end of the definition contained in VAR. Take
14885 # advantage of any shell optimizations that allow amortized linear growth over
14886 # repeated appends, instead of the typical quadratic growth present in naive
14887 # implementations.
14888 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14889 eval 'as_fn_append ()
14890 {
14891 eval $1+=\$2
14892 }'
14893 else
14894 as_fn_append ()
14895 {
14896 eval $1=\$$1\$2
14897 }
14898 fi # as_fn_append
14899
14900 # as_fn_arith ARG...
14901 # ------------------
14902 # Perform arithmetic evaluation on the ARGs, and store the result in the
14903 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14904 # must be portable across $(()) and expr.
14905 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14906 eval 'as_fn_arith ()
14907 {
14908 as_val=$(( $* ))
14909 }'
14910 else
14911 as_fn_arith ()
14912 {
14913 as_val=`expr "$@" || test $? -eq 1`
14914 }
14915 fi # as_fn_arith
14916
14917
14918 if expr a : '\(a\)' >/dev/null 2>&1 &&
14919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14920 as_expr=expr
14921 else
14922 as_expr=false
14923 fi
14924
14925 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14926 as_basename=basename
14927 else
14928 as_basename=false
14929 fi
14930
14931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14932 as_dirname=dirname
14933 else
14934 as_dirname=false
14935 fi
14936
14937 as_me=`$as_basename -- "$0" ||
14938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14939 X"$0" : 'X\(//\)$' \| \
14940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14941 $as_echo X/"$0" |
14942 sed '/^.*\/\([^/][^/]*\)\/*$/{
14943 s//\1/
14944 q
14945 }
14946 /^X\/\(\/\/\)$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\/\(\/\).*/{
14951 s//\1/
14952 q
14953 }
14954 s/.*/./; q'`
14955
14956 # Avoid depending upon Character Ranges.
14957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14960 as_cr_digits='0123456789'
14961 as_cr_alnum=$as_cr_Letters$as_cr_digits
14962
14963 ECHO_C= ECHO_N= ECHO_T=
14964 case `echo -n x` in #(((((
14965 -n*)
14966 case `echo 'xy\c'` in
14967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14968 xy) ECHO_C='\c';;
14969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14970 ECHO_T=' ';;
14971 esac;;
14972 *)
14973 ECHO_N='-n';;
14974 esac
14975
14976 rm -f conf$$ conf$$.exe conf$$.file
14977 if test -d conf$$.dir; then
14978 rm -f conf$$.dir/conf$$.file
14979 else
14980 rm -f conf$$.dir
14981 mkdir conf$$.dir 2>/dev/null
14982 fi
14983 if (echo >conf$$.file) 2>/dev/null; then
14984 if ln -s conf$$.file conf$$ 2>/dev/null; then
14985 as_ln_s='ln -s'
14986 # ... but there are two gotchas:
14987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14989 # In both cases, we have to default to `cp -p'.
14990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14991 as_ln_s='cp -p'
14992 elif ln conf$$.file conf$$ 2>/dev/null; then
14993 as_ln_s=ln
14994 else
14995 as_ln_s='cp -p'
14996 fi
14997 else
14998 as_ln_s='cp -p'
14999 fi
15000 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15001 rmdir conf$$.dir 2>/dev/null
15002
15003
15004 # as_fn_mkdir_p
15005 # -------------
15006 # Create "$as_dir" as a directory, including parents if necessary.
15007 as_fn_mkdir_p ()
15008 {
15009
15010 case $as_dir in #(
15011 -*) as_dir=./$as_dir;;
15012 esac
15013 test -d "$as_dir" || eval $as_mkdir_p || {
15014 as_dirs=
15015 while :; do
15016 case $as_dir in #(
15017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15018 *) as_qdir=$as_dir;;
15019 esac
15020 as_dirs="'$as_qdir' $as_dirs"
15021 as_dir=`$as_dirname -- "$as_dir" ||
15022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15023 X"$as_dir" : 'X\(//\)[^/]' \| \
15024 X"$as_dir" : 'X\(//\)$' \| \
15025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15026 $as_echo X"$as_dir" |
15027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15028 s//\1/
15029 q
15030 }
15031 /^X\(\/\/\)[^/].*/{
15032 s//\1/
15033 q
15034 }
15035 /^X\(\/\/\)$/{
15036 s//\1/
15037 q
15038 }
15039 /^X\(\/\).*/{
15040 s//\1/
15041 q
15042 }
15043 s/.*/./; q'`
15044 test -d "$as_dir" && break
15045 done
15046 test -z "$as_dirs" || eval "mkdir $as_dirs"
15047 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15048
15049
15050 } # as_fn_mkdir_p
15051 if mkdir -p . 2>/dev/null; then
15052 as_mkdir_p='mkdir -p "$as_dir"'
15053 else
15054 test -d ./-p && rmdir ./-p
15055 as_mkdir_p=false
15056 fi
15057
15058 if test -x / >/dev/null 2>&1; then
15059 as_test_x='test -x'
15060 else
15061 if ls -dL / >/dev/null 2>&1; then
15062 as_ls_L_option=L
15063 else
15064 as_ls_L_option=
15065 fi
15066 as_test_x='
15067 eval sh -c '\''
15068 if test -d "$1"; then
15069 test -d "$1/.";
15070 else
15071 case $1 in #(
15072 -*)set "./$1";;
15073 esac;
15074 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15075 ???[sx]*):;;*)false;;esac;fi
15076 '\'' sh
15077 '
15078 fi
15079 as_executable_p=$as_test_x
15080
15081 # Sed expression to map a string onto a valid CPP name.
15082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15083
15084 # Sed expression to map a string onto a valid variable name.
15085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15086
15087
15088 exec 6>&1
15089 ## ----------------------------------- ##
15090 ## Main body of $CONFIG_STATUS script. ##
15091 ## ----------------------------------- ##
15092 _ASEOF
15093 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15094
15095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096 # Save the log message, to keep $0 and so on meaningful, and to
15097 # report actual input values of CONFIG_FILES etc. instead of their
15098 # values after options handling.
15099 ac_log="
15100 This file was extended by libratbox $as_me devel, which was
15101 generated by GNU Autoconf 2.68. Invocation command line was
15102
15103 CONFIG_FILES = $CONFIG_FILES
15104 CONFIG_HEADERS = $CONFIG_HEADERS
15105 CONFIG_LINKS = $CONFIG_LINKS
15106 CONFIG_COMMANDS = $CONFIG_COMMANDS
15107 $ $0 $@
15108
15109 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15110 "
15111
15112 _ACEOF
15113
15114 case $ac_config_files in *"
15115 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15116 esac
15117
15118 case $ac_config_headers in *"
15119 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15120 esac
15121
15122
15123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 # Files that config.status was made for.
15125 config_files="$ac_config_files"
15126 config_headers="$ac_config_headers"
15127 config_commands="$ac_config_commands"
15128
15129 _ACEOF
15130
15131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132 ac_cs_usage="\
15133 \`$as_me' instantiates files and other configuration actions
15134 from templates according to the current configuration. Unless the files
15135 and actions are specified as TAGs, all are instantiated by default.
15136
15137 Usage: $0 [OPTION]... [TAG]...
15138
15139 -h, --help print this help, then exit
15140 -V, --version print version number and configuration settings, then exit
15141 --config print configuration, then exit
15142 -q, --quiet, --silent
15143 do not print progress messages
15144 -d, --debug don't remove temporary files
15145 --recheck update $as_me by reconfiguring in the same conditions
15146 --file=FILE[:TEMPLATE]
15147 instantiate the configuration file FILE
15148 --header=FILE[:TEMPLATE]
15149 instantiate the configuration header FILE
15150
15151 Configuration files:
15152 $config_files
15153
15154 Configuration headers:
15155 $config_headers
15156
15157 Configuration commands:
15158 $config_commands
15159
15160 Report bugs to the package provider."
15161
15162 _ACEOF
15163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15164 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15165 ac_cs_version="\\
15166 libratbox config.status devel
15167 configured by $0, generated by GNU Autoconf 2.68,
15168 with options \\"\$ac_cs_config\\"
15169
15170 Copyright (C) 2010 Free Software Foundation, Inc.
15171 This config.status script is free software; the Free Software Foundation
15172 gives unlimited permission to copy, distribute and modify it."
15173
15174 ac_pwd='$ac_pwd'
15175 srcdir='$srcdir'
15176 INSTALL='$INSTALL'
15177 MKDIR_P='$MKDIR_P'
15178 AWK='$AWK'
15179 test -n "\$AWK" || AWK=awk
15180 _ACEOF
15181
15182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 # The default lists apply if the user does not specify any file.
15184 ac_need_defaults=:
15185 while test $# != 0
15186 do
15187 case $1 in
15188 --*=?*)
15189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15191 ac_shift=:
15192 ;;
15193 --*=)
15194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15195 ac_optarg=
15196 ac_shift=:
15197 ;;
15198 *)
15199 ac_option=$1
15200 ac_optarg=$2
15201 ac_shift=shift
15202 ;;
15203 esac
15204
15205 case $ac_option in
15206 # Handling of the options.
15207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15208 ac_cs_recheck=: ;;
15209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210 $as_echo "$ac_cs_version"; exit ;;
15211 --config | --confi | --conf | --con | --co | --c )
15212 $as_echo "$ac_cs_config"; exit ;;
15213 --debug | --debu | --deb | --de | --d | -d )
15214 debug=: ;;
15215 --file | --fil | --fi | --f )
15216 $ac_shift
15217 case $ac_optarg in
15218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15219 '') as_fn_error $? "missing file argument" ;;
15220 esac
15221 as_fn_append CONFIG_FILES " '$ac_optarg'"
15222 ac_need_defaults=false;;
15223 --header | --heade | --head | --hea )
15224 $ac_shift
15225 case $ac_optarg in
15226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15227 esac
15228 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15229 ac_need_defaults=false;;
15230 --he | --h)
15231 # Conflict between --help and --header
15232 as_fn_error $? "ambiguous option: \`$1'
15233 Try \`$0 --help' for more information.";;
15234 --help | --hel | -h )
15235 $as_echo "$ac_cs_usage"; exit ;;
15236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15238 ac_cs_silent=: ;;
15239
15240 # This is an error.
15241 -*) as_fn_error $? "unrecognized option: \`$1'
15242 Try \`$0 --help' for more information." ;;
15243
15244 *) as_fn_append ac_config_targets " $1"
15245 ac_need_defaults=false ;;
15246
15247 esac
15248 shift
15249 done
15250
15251 ac_configure_extra_args=
15252
15253 if $ac_cs_silent; then
15254 exec 6>/dev/null
15255 ac_configure_extra_args="$ac_configure_extra_args --silent"
15256 fi
15257
15258 _ACEOF
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260 if \$ac_cs_recheck; then
15261 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15262 shift
15263 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15264 CONFIG_SHELL='$SHELL'
15265 export CONFIG_SHELL
15266 exec "\$@"
15267 fi
15268
15269 _ACEOF
15270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271 exec 5>>config.log
15272 {
15273 echo
15274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15275 ## Running $as_me. ##
15276 _ASBOX
15277 $as_echo "$ac_log"
15278 } >&5
15279
15280 _ACEOF
15281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15282 #
15283 # INIT-COMMANDS
15284 #
15285 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15286
15287
15288 # The HP-UX ksh and POSIX shell print the target directory to stdout
15289 # if CDPATH is set.
15290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15291
15292 sed_quote_subst='$sed_quote_subst'
15293 double_quote_subst='$double_quote_subst'
15294 delay_variable_subst='$delay_variable_subst'
15295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15297 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15298 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15300 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15301 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15302 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15303 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15304 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15305 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15306 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15307 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15308 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15309 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15310 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15311 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15312 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15313 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15314 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15315 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15316 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15317 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15318 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15319 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15320 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15321 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15322 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15323 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15324 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15325 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15326 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15327 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15328 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15329 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15330 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15331 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15332 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15333 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15334 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15335 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15336 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15337 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15338 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15339 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15340 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15341 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15342 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15343 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15344 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15345 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15346 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15347 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15348 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15349 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15350 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"`'
15351 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15352 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15353 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15354 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15355 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15356 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15357 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15358 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15359 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15360 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15361 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15362 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15363 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15364 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15365 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15366 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15367 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15368 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15369 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15370 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15371 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15372 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15373 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15374 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15375 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15376 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15377 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15378 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15379 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15380 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15381 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15382 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15383 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15384 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15385 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15386 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15387 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15388 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15389 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15390 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15391 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15392 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15393 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15394 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15395 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15396 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15397 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15398 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15399 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15400 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15401 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15402 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15403 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15404 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15405 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15406 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15407 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15408 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15409 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15410 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15411 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15412 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15413 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15414 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15415 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15416 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15417 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15418 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15419 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15420 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15421 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15422 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15423 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15424 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15425
15426 LTCC='$LTCC'
15427 LTCFLAGS='$LTCFLAGS'
15428 compiler='$compiler_DEFAULT'
15429
15430 # A function that is used when there is no print builtin or printf.
15431 func_fallback_echo ()
15432 {
15433 eval 'cat <<_LTECHO_EOF
15434 \$1
15435 _LTECHO_EOF'
15436 }
15437
15438 # Quote evaled strings.
15439 for var in SHELL \
15440 ECHO \
15441 SED \
15442 GREP \
15443 EGREP \
15444 FGREP \
15445 LD \
15446 NM \
15447 LN_S \
15448 lt_SP2NL \
15449 lt_NL2SP \
15450 reload_flag \
15451 OBJDUMP \
15452 deplibs_check_method \
15453 file_magic_cmd \
15454 file_magic_glob \
15455 want_nocaseglob \
15456 DLLTOOL \
15457 sharedlib_from_linklib_cmd \
15458 AR \
15459 AR_FLAGS \
15460 archiver_list_spec \
15461 STRIP \
15462 RANLIB \
15463 CC \
15464 CFLAGS \
15465 compiler \
15466 lt_cv_sys_global_symbol_pipe \
15467 lt_cv_sys_global_symbol_to_cdecl \
15468 lt_cv_sys_global_symbol_to_c_name_address \
15469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15470 nm_file_list_spec \
15471 lt_prog_compiler_no_builtin_flag \
15472 lt_prog_compiler_pic \
15473 lt_prog_compiler_wl \
15474 lt_prog_compiler_static \
15475 lt_cv_prog_compiler_c_o \
15476 need_locks \
15477 MANIFEST_TOOL \
15478 DSYMUTIL \
15479 NMEDIT \
15480 LIPO \
15481 OTOOL \
15482 OTOOL64 \
15483 shrext_cmds \
15484 export_dynamic_flag_spec \
15485 whole_archive_flag_spec \
15486 compiler_needs_object \
15487 with_gnu_ld \
15488 allow_undefined_flag \
15489 no_undefined_flag \
15490 hardcode_libdir_flag_spec \
15491 hardcode_libdir_flag_spec_ld \
15492 hardcode_libdir_separator \
15493 exclude_expsyms \
15494 include_expsyms \
15495 file_list_spec \
15496 variables_saved_for_relink \
15497 libname_spec \
15498 library_names_spec \
15499 soname_spec \
15500 install_override_mode \
15501 finish_eval \
15502 old_striplib \
15503 striplib; do
15504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15505 *[\\\\\\\`\\"\\\$]*)
15506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15507 ;;
15508 *)
15509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15510 ;;
15511 esac
15512 done
15513
15514 # Double-quote double-evaled strings.
15515 for var in reload_cmds \
15516 old_postinstall_cmds \
15517 old_postuninstall_cmds \
15518 old_archive_cmds \
15519 extract_expsyms_cmds \
15520 old_archive_from_new_cmds \
15521 old_archive_from_expsyms_cmds \
15522 archive_cmds \
15523 archive_expsym_cmds \
15524 module_cmds \
15525 module_expsym_cmds \
15526 export_symbols_cmds \
15527 prelink_cmds \
15528 postlink_cmds \
15529 postinstall_cmds \
15530 postuninstall_cmds \
15531 finish_cmds \
15532 sys_lib_search_path_spec \
15533 sys_lib_dlsearch_path_spec; do
15534 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15535 *[\\\\\\\`\\"\\\$]*)
15536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15537 ;;
15538 *)
15539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15540 ;;
15541 esac
15542 done
15543
15544 ac_aux_dir='$ac_aux_dir'
15545 xsi_shell='$xsi_shell'
15546 lt_shell_append='$lt_shell_append'
15547
15548 # See if we are running on zsh, and set the options which allow our
15549 # commands through without removal of \ escapes INIT.
15550 if test -n "\${ZSH_VERSION+set}" ; then
15551 setopt NO_GLOB_SUBST
15552 fi
15553
15554
15555 PACKAGE='$PACKAGE'
15556 VERSION='$VERSION'
15557 TIMESTAMP='$TIMESTAMP'
15558 RM='$RM'
15559 ofile='$ofile'
15560
15561
15562
15563
15564 if test x$ac_cv_header_stdc = xyes; then
15565 rb_header_stdc=yes
15566 fi
15567 if test x$ac_cv_header_stdlib_h = xyes; then
15568 rb_header_stdlib_h=yes
15569 fi
15570 if test x$ac_cv_header_string_h = xyes; then
15571 rb_header_string_h=yes
15572 fi
15573 if test x$ac_cv_header_memory_h = xyes; then
15574 rb_header_memory_h=yes
15575 fi
15576 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15577 rb_alloca_h="$ac_cv_working_alloca_h"
15578 else
15579 rb_alloc_h="$ac_cv_header_alloca_h"
15580 fi
15581 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15582 rb_sockaddr_sa_len=yes
15583 fi
15584 if test x$ac_cv_header_sys_socket_h = xyes; then
15585 rb_sys_socket_h=yes
15586 fi
15587 if test x$ac_cv_header_sys_types_h = xyes; then
15588 rb_sys_types_h=yes
15589 fi
15590 if test x$ac_cv_header_sys_stat_h = xyes; then
15591 rb_sys_stat_h=yes
15592 fi
15593 if test x$ac_cv_header_sys_time_h = xyes; then
15594 rb_sys_time_h=yes
15595 fi
15596 if test x$ac_cv_header_time = xyes; then
15597 rb_time_h=yes
15598 fi
15599
15600 if test x$ac_cv_header_stdint_h = xyes; then
15601 rb_stdint_h=yes
15602 fi
15603 if test x$ac_cv_header_inttypes_h = xyes; then
15604 rb_inttypes_h=yes
15605 fi
15606 if test x$ac_cv_header_netinet_in_h = xyes; then
15607 rb_netinet_in_h=yes
15608 fi
15609
15610 if test x$ac_cv_header_crypt_h = xyes; then
15611 rb_crypt_h=yes
15612 fi
15613 if test x$ac_cv_header_errno_h = xyes; then
15614 rb_errno_h=yes
15615 fi
15616 if test x$ac_cv_header_unistd_h = xyes; then
15617 rb_unistd_h=yes
15618 fi
15619 if test x$ac_cv_header_windows_h = xyes; then
15620 rb_windows_h=yes
15621 fi
15622 if test x$ac_cv_header_winsock2_h = xyes; then
15623 rb_winsock2_h=yes
15624 fi
15625
15626 rb_socklen_t=$rb_socklen_t
15627
15628 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15629 rb_sockaddr_storage="yes"
15630 else
15631 rb_sockaddr_storage="no"
15632 fi
15633
15634 rb_have_ipv6="$have_v6"
15635
15636 rb_mv="$MV"
15637 rb_rm="$RM"
15638
15639
15640
15641
15642
15643
15644 _ACEOF
15645
15646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15647
15648 # Handling of arguments.
15649 for ac_config_target in $ac_config_targets
15650 do
15651 case $ac_config_target in
15652 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
15653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15655 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
15656 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15658 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
15659
15660 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15661 esac
15662 done
15663
15664
15665 # If the user did not use the arguments to specify the items to instantiate,
15666 # then the envvar interface is used. Set only those that are not.
15667 # We use the long form for the default assignment because of an extremely
15668 # bizarre bug on SunOS 4.1.3.
15669 if $ac_need_defaults; then
15670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15671 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15672 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15673 fi
15674
15675 # Have a temporary directory for convenience. Make it in the build tree
15676 # simply because there is no reason against having it here, and in addition,
15677 # creating and moving files from /tmp can sometimes cause problems.
15678 # Hook for its removal unless debugging.
15679 # Note that there is a small window in which the directory will not be cleaned:
15680 # after its creation but before its name has been assigned to `$tmp'.
15681 $debug ||
15682 {
15683 tmp= ac_tmp=
15684 trap 'exit_status=$?
15685 : "${ac_tmp:=$tmp}"
15686 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15687 ' 0
15688 trap 'as_fn_exit 1' 1 2 13 15
15689 }
15690 # Create a (secure) tmp directory for tmp files.
15691
15692 {
15693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15694 test -d "$tmp"
15695 } ||
15696 {
15697 tmp=./conf$$-$RANDOM
15698 (umask 077 && mkdir "$tmp")
15699 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15700 ac_tmp=$tmp
15701
15702 # Set up the scripts for CONFIG_FILES section.
15703 # No need to generate them if there are no CONFIG_FILES.
15704 # This happens for instance with `./config.status config.h'.
15705 if test -n "$CONFIG_FILES"; then
15706
15707
15708 ac_cr=`echo X | tr X '\015'`
15709 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15710 # But we know of no other shell where ac_cr would be empty at this
15711 # point, so we can use a bashism as a fallback.
15712 if test "x$ac_cr" = x; then
15713 eval ac_cr=\$\'\\r\'
15714 fi
15715 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15717 ac_cs_awk_cr='\\r'
15718 else
15719 ac_cs_awk_cr=$ac_cr
15720 fi
15721
15722 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15723 _ACEOF
15724
15725
15726 {
15727 echo "cat >conf$$subs.awk <<_ACEOF" &&
15728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15729 echo "_ACEOF"
15730 } >conf$$subs.sh ||
15731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15733 ac_delim='%!_!# '
15734 for ac_last_try in false false false false false :; do
15735 . ./conf$$subs.sh ||
15736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15737
15738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15739 if test $ac_delim_n = $ac_delim_num; then
15740 break
15741 elif $ac_last_try; then
15742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15743 else
15744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15745 fi
15746 done
15747 rm -f conf$$subs.sh
15748
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15751 _ACEOF
15752 sed -n '
15753 h
15754 s/^/S["/; s/!.*/"]=/
15755 p
15756 g
15757 s/^[^!]*!//
15758 :repl
15759 t repl
15760 s/'"$ac_delim"'$//
15761 t delim
15762 :nl
15763 h
15764 s/\(.\{148\}\)..*/\1/
15765 t more1
15766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15767 p
15768 n
15769 b repl
15770 :more1
15771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15772 p
15773 g
15774 s/.\{148\}//
15775 t nl
15776 :delim
15777 h
15778 s/\(.\{148\}\)..*/\1/
15779 t more2
15780 s/["\\]/\\&/g; s/^/"/; s/$/"/
15781 p
15782 b
15783 :more2
15784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15785 p
15786 g
15787 s/.\{148\}//
15788 t delim
15789 ' <conf$$subs.awk | sed '
15790 /^[^""]/{
15791 N
15792 s/\n//
15793 }
15794 ' >>$CONFIG_STATUS || ac_write_fail=1
15795 rm -f conf$$subs.awk
15796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797 _ACAWK
15798 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15799 for (key in S) S_is_set[key] = 1
15800 FS = "\a"
15801
15802 }
15803 {
15804 line = $ 0
15805 nfields = split(line, field, "@")
15806 substed = 0
15807 len = length(field[1])
15808 for (i = 2; i < nfields; i++) {
15809 key = field[i]
15810 keylen = length(key)
15811 if (S_is_set[key]) {
15812 value = S[key]
15813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15814 len += length(value) + length(field[++i])
15815 substed = 1
15816 } else
15817 len += 1 + keylen
15818 }
15819
15820 print line
15821 }
15822
15823 _ACAWK
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15828 else
15829 cat
15830 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15831 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15832 _ACEOF
15833
15834 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15835 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15836 # trailing colons and then remove the whole line if VPATH becomes empty
15837 # (actually we leave an empty line to preserve line numbers).
15838 if test "x$srcdir" = x.; then
15839 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15840 h
15841 s///
15842 s/^/:/
15843 s/[ ]*$/:/
15844 s/:\$(srcdir):/:/g
15845 s/:\${srcdir}:/:/g
15846 s/:@srcdir@:/:/g
15847 s/^:*//
15848 s/:*$//
15849 x
15850 s/\(=[ ]*\).*/\1/
15851 G
15852 s/\n//
15853 s/^[^=]*=[ ]*$//
15854 }'
15855 fi
15856
15857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858 fi # test -n "$CONFIG_FILES"
15859
15860 # Set up the scripts for CONFIG_HEADERS section.
15861 # No need to generate them if there are no CONFIG_HEADERS.
15862 # This happens for instance with `./config.status Makefile'.
15863 if test -n "$CONFIG_HEADERS"; then
15864 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15865 BEGIN {
15866 _ACEOF
15867
15868 # Transform confdefs.h into an awk script `defines.awk', embedded as
15869 # here-document in config.status, that substitutes the proper values into
15870 # config.h.in to produce config.h.
15871
15872 # Create a delimiter string that does not exist in confdefs.h, to ease
15873 # handling of long lines.
15874 ac_delim='%!_!# '
15875 for ac_last_try in false false :; do
15876 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15877 if test -z "$ac_tt"; then
15878 break
15879 elif $ac_last_try; then
15880 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15881 else
15882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15883 fi
15884 done
15885
15886 # For the awk script, D is an array of macro values keyed by name,
15887 # likewise P contains macro parameters if any. Preserve backslash
15888 # newline sequences.
15889
15890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15891 sed -n '
15892 s/.\{148\}/&'"$ac_delim"'/g
15893 t rset
15894 :rset
15895 s/^[ ]*#[ ]*define[ ][ ]*/ /
15896 t def
15897 d
15898 :def
15899 s/\\$//
15900 t bsnl
15901 s/["\\]/\\&/g
15902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15903 D["\1"]=" \3"/p
15904 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15905 d
15906 :bsnl
15907 s/["\\]/\\&/g
15908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15909 D["\1"]=" \3\\\\\\n"\\/p
15910 t cont
15911 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15912 t cont
15913 d
15914 :cont
15915 n
15916 s/.\{148\}/&'"$ac_delim"'/g
15917 t clear
15918 :clear
15919 s/\\$//
15920 t bsnlc
15921 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15922 d
15923 :bsnlc
15924 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15925 b cont
15926 ' <confdefs.h | sed '
15927 s/'"$ac_delim"'/"\\\
15928 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15929
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 for (key in D) D_is_set[key] = 1
15932 FS = "\a"
15933 }
15934 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15935 line = \$ 0
15936 split(line, arg, " ")
15937 if (arg[1] == "#") {
15938 defundef = arg[2]
15939 mac1 = arg[3]
15940 } else {
15941 defundef = substr(arg[1], 2)
15942 mac1 = arg[2]
15943 }
15944 split(mac1, mac2, "(") #)
15945 macro = mac2[1]
15946 prefix = substr(line, 1, index(line, defundef) - 1)
15947 if (D_is_set[macro]) {
15948 # Preserve the white space surrounding the "#".
15949 print prefix "define", macro P[macro] D[macro]
15950 next
15951 } else {
15952 # Replace #undef with comments. This is necessary, for example,
15953 # in the case of _POSIX_SOURCE, which is predefined and required
15954 # on some systems where configure will not decide to define it.
15955 if (defundef == "undef") {
15956 print "/*", prefix defundef, macro, "*/"
15957 next
15958 }
15959 }
15960 }
15961 { print }
15962 _ACAWK
15963 _ACEOF
15964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15965 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15966 fi # test -n "$CONFIG_HEADERS"
15967
15968
15969 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15970 shift
15971 for ac_tag
15972 do
15973 case $ac_tag in
15974 :[FHLC]) ac_mode=$ac_tag; continue;;
15975 esac
15976 case $ac_mode$ac_tag in
15977 :[FHL]*:*);;
15978 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15979 :[FH]-) ac_tag=-:-;;
15980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15981 esac
15982 ac_save_IFS=$IFS
15983 IFS=:
15984 set x $ac_tag
15985 IFS=$ac_save_IFS
15986 shift
15987 ac_file=$1
15988 shift
15989
15990 case $ac_mode in
15991 :L) ac_source=$1;;
15992 :[FH])
15993 ac_file_inputs=
15994 for ac_f
15995 do
15996 case $ac_f in
15997 -) ac_f="$ac_tmp/stdin";;
15998 *) # Look for the file first in the build tree, then in the source tree
15999 # (if the path is not absolute). The absolute path cannot be DOS-style,
16000 # because $ac_f cannot contain `:'.
16001 test -f "$ac_f" ||
16002 case $ac_f in
16003 [\\/$]*) false;;
16004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16005 esac ||
16006 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16007 esac
16008 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16009 as_fn_append ac_file_inputs " '$ac_f'"
16010 done
16011
16012 # Let's still pretend it is `configure' which instantiates (i.e., don't
16013 # use $as_me), people would be surprised to read:
16014 # /* config.h. Generated by config.status. */
16015 configure_input='Generated from '`
16016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16017 `' by configure.'
16018 if test x"$ac_file" != x-; then
16019 configure_input="$ac_file. $configure_input"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16021 $as_echo "$as_me: creating $ac_file" >&6;}
16022 fi
16023 # Neutralize special characters interpreted by sed in replacement strings.
16024 case $configure_input in #(
16025 *\&* | *\|* | *\\* )
16026 ac_sed_conf_input=`$as_echo "$configure_input" |
16027 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16028 *) ac_sed_conf_input=$configure_input;;
16029 esac
16030
16031 case $ac_tag in
16032 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16034 esac
16035 ;;
16036 esac
16037
16038 ac_dir=`$as_dirname -- "$ac_file" ||
16039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040 X"$ac_file" : 'X\(//\)[^/]' \| \
16041 X"$ac_file" : 'X\(//\)$' \| \
16042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16043 $as_echo X"$ac_file" |
16044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045 s//\1/
16046 q
16047 }
16048 /^X\(\/\/\)[^/].*/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\/\)$/{
16053 s//\1/
16054 q
16055 }
16056 /^X\(\/\).*/{
16057 s//\1/
16058 q
16059 }
16060 s/.*/./; q'`
16061 as_dir="$ac_dir"; as_fn_mkdir_p
16062 ac_builddir=.
16063
16064 case "$ac_dir" in
16065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16066 *)
16067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16068 # A ".." for each directory in $ac_dir_suffix.
16069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16070 case $ac_top_builddir_sub in
16071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16073 esac ;;
16074 esac
16075 ac_abs_top_builddir=$ac_pwd
16076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16077 # for backward compatibility:
16078 ac_top_builddir=$ac_top_build_prefix
16079
16080 case $srcdir in
16081 .) # We are building in place.
16082 ac_srcdir=.
16083 ac_top_srcdir=$ac_top_builddir_sub
16084 ac_abs_top_srcdir=$ac_pwd ;;
16085 [\\/]* | ?:[\\/]* ) # Absolute name.
16086 ac_srcdir=$srcdir$ac_dir_suffix;
16087 ac_top_srcdir=$srcdir
16088 ac_abs_top_srcdir=$srcdir ;;
16089 *) # Relative name.
16090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16091 ac_top_srcdir=$ac_top_build_prefix$srcdir
16092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16093 esac
16094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16095
16096
16097 case $ac_mode in
16098 :F)
16099 #
16100 # CONFIG_FILE
16101 #
16102
16103 case $INSTALL in
16104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16106 esac
16107 ac_MKDIR_P=$MKDIR_P
16108 case $MKDIR_P in
16109 [\\/$]* | ?:[\\/]* ) ;;
16110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16111 esac
16112 _ACEOF
16113
16114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115 # If the template does not know about datarootdir, expand it.
16116 # FIXME: This hack should be removed a few years after 2.60.
16117 ac_datarootdir_hack=; ac_datarootdir_seen=
16118 ac_sed_dataroot='
16119 /datarootdir/ {
16120 p
16121 q
16122 }
16123 /@datadir@/p
16124 /@docdir@/p
16125 /@infodir@/p
16126 /@localedir@/p
16127 /@mandir@/p'
16128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16129 *datarootdir*) ac_datarootdir_seen=yes;;
16130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_datarootdir_hack='
16136 s&@datadir@&$datadir&g
16137 s&@docdir@&$docdir&g
16138 s&@infodir@&$infodir&g
16139 s&@localedir@&$localedir&g
16140 s&@mandir@&$mandir&g
16141 s&\\\${datarootdir}&$datarootdir&g' ;;
16142 esac
16143 _ACEOF
16144
16145 # Neutralize VPATH when `$srcdir' = `.'.
16146 # Shell code in configure.ac might set extrasub.
16147 # FIXME: do we really want to maintain this feature?
16148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149 ac_sed_extra="$ac_vpsub
16150 $extrasub
16151 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 :t
16154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16155 s|@configure_input@|$ac_sed_conf_input|;t t
16156 s&@top_builddir@&$ac_top_builddir_sub&;t t
16157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16158 s&@srcdir@&$ac_srcdir&;t t
16159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16160 s&@top_srcdir@&$ac_top_srcdir&;t t
16161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16162 s&@builddir@&$ac_builddir&;t t
16163 s&@abs_builddir@&$ac_abs_builddir&;t t
16164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16165 s&@INSTALL@&$ac_INSTALL&;t t
16166 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16167 $ac_datarootdir_hack
16168 "
16169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16170 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16171
16172 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16173 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16175 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16177 which seems to be undefined. Please make sure it is defined" >&5
16178 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16179 which seems to be undefined. Please make sure it is defined" >&2;}
16180
16181 rm -f "$ac_tmp/stdin"
16182 case $ac_file in
16183 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16184 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16185 esac \
16186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16187 ;;
16188 :H)
16189 #
16190 # CONFIG_HEADER
16191 #
16192 if test x"$ac_file" != x-; then
16193 {
16194 $as_echo "/* $configure_input */" \
16195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16196 } >"$ac_tmp/config.h" \
16197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16198 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16200 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16201 else
16202 rm -f "$ac_file"
16203 mv "$ac_tmp/config.h" "$ac_file" \
16204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16205 fi
16206 else
16207 $as_echo "/* $configure_input */" \
16208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16209 || as_fn_error $? "could not create -" "$LINENO" 5
16210 fi
16211 # Compute "$ac_file"'s index in $config_headers.
16212 _am_arg="$ac_file"
16213 _am_stamp_count=1
16214 for _am_header in $config_headers :; do
16215 case $_am_header in
16216 $_am_arg | $_am_arg:* )
16217 break ;;
16218 * )
16219 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16220 esac
16221 done
16222 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16223 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$_am_arg" : 'X\(//\)[^/]' \| \
16225 X"$_am_arg" : 'X\(//\)$' \| \
16226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16227 $as_echo X"$_am_arg" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)[^/].*/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\).*/{
16241 s//\1/
16242 q
16243 }
16244 s/.*/./; q'`/stamp-h$_am_stamp_count
16245 ;;
16246
16247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16248 $as_echo "$as_me: executing $ac_file commands" >&6;}
16249 ;;
16250 esac
16251
16252
16253 case $ac_file$ac_mode in
16254 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16255 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16256 # are listed without --file. Let's play safe and only enable the eval
16257 # if we detect the quoting.
16258 case $CONFIG_FILES in
16259 *\'*) eval set x "$CONFIG_FILES" ;;
16260 *) set x $CONFIG_FILES ;;
16261 esac
16262 shift
16263 for mf
16264 do
16265 # Strip MF so we end up with the name of the file.
16266 mf=`echo "$mf" | sed -e 's/:.*$//'`
16267 # Check whether this is an Automake generated Makefile or not.
16268 # We used to match only the files named `Makefile.in', but
16269 # some people rename them; so instead we look at the file content.
16270 # Grep'ing the first line is not enough: some people post-process
16271 # each Makefile.in and add a new line on top of each file to say so.
16272 # Grep'ing the whole file is not good either: AIX grep has a line
16273 # limit of 2048, but all sed's we know have understand at least 4000.
16274 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16275 dirpart=`$as_dirname -- "$mf" ||
16276 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277 X"$mf" : 'X\(//\)[^/]' \| \
16278 X"$mf" : 'X\(//\)$' \| \
16279 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16280 $as_echo X"$mf" |
16281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\/\)[^/].*/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\/\)$/{
16290 s//\1/
16291 q
16292 }
16293 /^X\(\/\).*/{
16294 s//\1/
16295 q
16296 }
16297 s/.*/./; q'`
16298 else
16299 continue
16300 fi
16301 # Extract the definition of DEPDIR, am__include, and am__quote
16302 # from the Makefile without running `make'.
16303 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16304 test -z "$DEPDIR" && continue
16305 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16306 test -z "am__include" && continue
16307 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16308 # When using ansi2knr, U may be empty or an underscore; expand it
16309 U=`sed -n 's/^U = //p' < "$mf"`
16310 # Find all dependency output files, they are included files with
16311 # $(DEPDIR) in their names. We invoke sed twice because it is the
16312 # simplest approach to changing $(DEPDIR) to its actual value in the
16313 # expansion.
16314 for file in `sed -n "
16315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16317 # Make sure the directory exists.
16318 test -f "$dirpart/$file" && continue
16319 fdir=`$as_dirname -- "$file" ||
16320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321 X"$file" : 'X\(//\)[^/]' \| \
16322 X"$file" : 'X\(//\)$' \| \
16323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16324 $as_echo X"$file" |
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16326 s//\1/
16327 q
16328 }
16329 /^X\(\/\/\)[^/].*/{
16330 s//\1/
16331 q
16332 }
16333 /^X\(\/\/\)$/{
16334 s//\1/
16335 q
16336 }
16337 /^X\(\/\).*/{
16338 s//\1/
16339 q
16340 }
16341 s/.*/./; q'`
16342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16343 # echo "creating $dirpart/$file"
16344 echo '# dummy' > "$dirpart/$file"
16345 done
16346 done
16347 }
16348 ;;
16349 "libtool":C)
16350
16351 # See if we are running on zsh, and set the options which allow our
16352 # commands through without removal of \ escapes.
16353 if test -n "${ZSH_VERSION+set}" ; then
16354 setopt NO_GLOB_SUBST
16355 fi
16356
16357 cfgfile="${ofile}T"
16358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16359 $RM "$cfgfile"
16360
16361 cat <<_LT_EOF >> "$cfgfile"
16362 #! $SHELL
16363
16364 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16365 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16368 #
16369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16370 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16371 # Inc.
16372 # Written by Gordon Matzigkeit, 1996
16373 #
16374 # This file is part of GNU Libtool.
16375 #
16376 # GNU Libtool is free software; you can redistribute it and/or
16377 # modify it under the terms of the GNU General Public License as
16378 # published by the Free Software Foundation; either version 2 of
16379 # the License, or (at your option) any later version.
16380 #
16381 # As a special exception to the GNU General Public License,
16382 # if you distribute this file as part of a program or library that
16383 # is built using GNU Libtool, you may include this file under the
16384 # same distribution terms that you use for the rest of that program.
16385 #
16386 # GNU Libtool is distributed in the hope that it will be useful,
16387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16389 # GNU General Public License for more details.
16390 #
16391 # You should have received a copy of the GNU General Public License
16392 # along with GNU Libtool; see the file COPYING. If not, a copy
16393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16394 # obtained by writing to the Free Software Foundation, Inc.,
16395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16396
16397
16398 # The names of the tagged configurations supported by this script.
16399 available_tags=""
16400
16401 # ### BEGIN LIBTOOL CONFIG
16402
16403 # Whether or not to build static libraries.
16404 build_old_libs=$enable_static
16405
16406 # Whether or not to build shared libraries.
16407 build_libtool_libs=$enable_shared
16408
16409 # Which release of libtool.m4 was used?
16410 macro_version=$macro_version
16411 macro_revision=$macro_revision
16412
16413 # What type of objects to build.
16414 pic_mode=$pic_mode
16415
16416 # Whether or not to optimize for fast installation.
16417 fast_install=$enable_fast_install
16418
16419 # Shell to use when invoking shell scripts.
16420 SHELL=$lt_SHELL
16421
16422 # An echo program that protects backslashes.
16423 ECHO=$lt_ECHO
16424
16425 # The host system.
16426 host_alias=$host_alias
16427 host=$host
16428 host_os=$host_os
16429
16430 # The build system.
16431 build_alias=$build_alias
16432 build=$build
16433 build_os=$build_os
16434
16435 # A sed program that does not truncate output.
16436 SED=$lt_SED
16437
16438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16439 Xsed="\$SED -e 1s/^X//"
16440
16441 # A grep program that handles long lines.
16442 GREP=$lt_GREP
16443
16444 # An ERE matcher.
16445 EGREP=$lt_EGREP
16446
16447 # A literal string matcher.
16448 FGREP=$lt_FGREP
16449
16450 # A BSD- or MS-compatible name lister.
16451 NM=$lt_NM
16452
16453 # Whether we need soft or hard links.
16454 LN_S=$lt_LN_S
16455
16456 # What is the maximum length of a command?
16457 max_cmd_len=$max_cmd_len
16458
16459 # Object file suffix (normally "o").
16460 objext=$ac_objext
16461
16462 # Executable file suffix (normally "").
16463 exeext=$exeext
16464
16465 # whether the shell understands "unset".
16466 lt_unset=$lt_unset
16467
16468 # turn spaces into newlines.
16469 SP2NL=$lt_lt_SP2NL
16470
16471 # turn newlines into spaces.
16472 NL2SP=$lt_lt_NL2SP
16473
16474 # convert \$build file names to \$host format.
16475 to_host_file_cmd=$lt_cv_to_host_file_cmd
16476
16477 # convert \$build files to toolchain format.
16478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16479
16480 # An object symbol dumper.
16481 OBJDUMP=$lt_OBJDUMP
16482
16483 # Method to check whether dependent libraries are shared objects.
16484 deplibs_check_method=$lt_deplibs_check_method
16485
16486 # Command to use when deplibs_check_method = "file_magic".
16487 file_magic_cmd=$lt_file_magic_cmd
16488
16489 # How to find potential files when deplibs_check_method = "file_magic".
16490 file_magic_glob=$lt_file_magic_glob
16491
16492 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16493 want_nocaseglob=$lt_want_nocaseglob
16494
16495 # DLL creation program.
16496 DLLTOOL=$lt_DLLTOOL
16497
16498 # Command to associate shared and link libraries.
16499 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16500
16501 # The archiver.
16502 AR=$lt_AR
16503
16504 # Flags to create an archive.
16505 AR_FLAGS=$lt_AR_FLAGS
16506
16507 # How to feed a file listing to the archiver.
16508 archiver_list_spec=$lt_archiver_list_spec
16509
16510 # A symbol stripping program.
16511 STRIP=$lt_STRIP
16512
16513 # Commands used to install an old-style archive.
16514 RANLIB=$lt_RANLIB
16515 old_postinstall_cmds=$lt_old_postinstall_cmds
16516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16517
16518 # Whether to use a lock for old archive extraction.
16519 lock_old_archive_extraction=$lock_old_archive_extraction
16520
16521 # A C compiler.
16522 LTCC=$lt_CC
16523
16524 # LTCC compiler flags.
16525 LTCFLAGS=$lt_CFLAGS
16526
16527 # Take the output of nm and produce a listing of raw symbols and C names.
16528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16529
16530 # Transform the output of nm in a proper C declaration.
16531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16532
16533 # Transform the output of nm in a C name address pair.
16534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16535
16536 # Transform the output of nm in a C name address pair when lib prefix is needed.
16537 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16538
16539 # Specify filename containing input files for \$NM.
16540 nm_file_list_spec=$lt_nm_file_list_spec
16541
16542 # The root where to search for dependent libraries,and in which our libraries should be installed.
16543 lt_sysroot=$lt_sysroot
16544
16545 # The name of the directory that contains temporary libtool files.
16546 objdir=$objdir
16547
16548 # Used to examine libraries when file_magic_cmd begins with "file".
16549 MAGIC_CMD=$MAGIC_CMD
16550
16551 # Must we lock files when doing compilation?
16552 need_locks=$lt_need_locks
16553
16554 # Manifest tool.
16555 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16556
16557 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16558 DSYMUTIL=$lt_DSYMUTIL
16559
16560 # Tool to change global to local symbols on Mac OS X.
16561 NMEDIT=$lt_NMEDIT
16562
16563 # Tool to manipulate fat objects and archives on Mac OS X.
16564 LIPO=$lt_LIPO
16565
16566 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16567 OTOOL=$lt_OTOOL
16568
16569 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16570 OTOOL64=$lt_OTOOL64
16571
16572 # Old archive suffix (normally "a").
16573 libext=$libext
16574
16575 # Shared library suffix (normally ".so").
16576 shrext_cmds=$lt_shrext_cmds
16577
16578 # The commands to extract the exported symbol list from a shared archive.
16579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16580
16581 # Variables whose values should be saved in libtool wrapper scripts and
16582 # restored at link time.
16583 variables_saved_for_relink=$lt_variables_saved_for_relink
16584
16585 # Do we need the "lib" prefix for modules?
16586 need_lib_prefix=$need_lib_prefix
16587
16588 # Do we need a version for libraries?
16589 need_version=$need_version
16590
16591 # Library versioning type.
16592 version_type=$version_type
16593
16594 # Shared library runtime path variable.
16595 runpath_var=$runpath_var
16596
16597 # Shared library path variable.
16598 shlibpath_var=$shlibpath_var
16599
16600 # Is shlibpath searched before the hard-coded library search path?
16601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16602
16603 # Format of library name prefix.
16604 libname_spec=$lt_libname_spec
16605
16606 # List of archive names. First name is the real one, the rest are links.
16607 # The last name is the one that the linker finds with -lNAME
16608 library_names_spec=$lt_library_names_spec
16609
16610 # The coded name of the library, if different from the real name.
16611 soname_spec=$lt_soname_spec
16612
16613 # Permission mode override for installation of shared libraries.
16614 install_override_mode=$lt_install_override_mode
16615
16616 # Command to use after installation of a shared archive.
16617 postinstall_cmds=$lt_postinstall_cmds
16618
16619 # Command to use after uninstallation of a shared archive.
16620 postuninstall_cmds=$lt_postuninstall_cmds
16621
16622 # Commands used to finish a libtool library installation in a directory.
16623 finish_cmds=$lt_finish_cmds
16624
16625 # As "finish_cmds", except a single script fragment to be evaled but
16626 # not shown.
16627 finish_eval=$lt_finish_eval
16628
16629 # Whether we should hardcode library paths into libraries.
16630 hardcode_into_libs=$hardcode_into_libs
16631
16632 # Compile-time system search path for libraries.
16633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16634
16635 # Run-time system search path for libraries.
16636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16637
16638 # Whether dlopen is supported.
16639 dlopen_support=$enable_dlopen
16640
16641 # Whether dlopen of programs is supported.
16642 dlopen_self=$enable_dlopen_self
16643
16644 # Whether dlopen of statically linked programs is supported.
16645 dlopen_self_static=$enable_dlopen_self_static
16646
16647 # Commands to strip libraries.
16648 old_striplib=$lt_old_striplib
16649 striplib=$lt_striplib
16650
16651
16652 # The linker used to build libraries.
16653 LD=$lt_LD
16654
16655 # How to create reloadable object files.
16656 reload_flag=$lt_reload_flag
16657 reload_cmds=$lt_reload_cmds
16658
16659 # Commands used to build an old-style archive.
16660 old_archive_cmds=$lt_old_archive_cmds
16661
16662 # A language specific compiler.
16663 CC=$lt_compiler
16664
16665 # Is the compiler the GNU compiler?
16666 with_gcc=$GCC
16667
16668 # Compiler flag to turn off builtin functions.
16669 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16670
16671 # Additional compiler flags for building library objects.
16672 pic_flag=$lt_lt_prog_compiler_pic
16673
16674 # How to pass a linker flag through the compiler.
16675 wl=$lt_lt_prog_compiler_wl
16676
16677 # Compiler flag to prevent dynamic linking.
16678 link_static_flag=$lt_lt_prog_compiler_static
16679
16680 # Does compiler simultaneously support -c and -o options?
16681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16682
16683 # Whether or not to add -lc for building shared libraries.
16684 build_libtool_need_lc=$archive_cmds_need_lc
16685
16686 # Whether or not to disallow shared libs when runtime libs are static.
16687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16688
16689 # Compiler flag to allow reflexive dlopens.
16690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16691
16692 # Compiler flag to generate shared objects directly from archives.
16693 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16694
16695 # Whether the compiler copes with passing no objects directly.
16696 compiler_needs_object=$lt_compiler_needs_object
16697
16698 # Create an old-style archive from a shared archive.
16699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16700
16701 # Create a temporary old-style archive to link instead of a shared archive.
16702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16703
16704 # Commands used to build a shared archive.
16705 archive_cmds=$lt_archive_cmds
16706 archive_expsym_cmds=$lt_archive_expsym_cmds
16707
16708 # Commands used to build a loadable module if different from building
16709 # a shared archive.
16710 module_cmds=$lt_module_cmds
16711 module_expsym_cmds=$lt_module_expsym_cmds
16712
16713 # Whether we are building with GNU ld or not.
16714 with_gnu_ld=$lt_with_gnu_ld
16715
16716 # Flag that allows shared libraries with undefined symbols to be built.
16717 allow_undefined_flag=$lt_allow_undefined_flag
16718
16719 # Flag that enforces no undefined symbols.
16720 no_undefined_flag=$lt_no_undefined_flag
16721
16722 # Flag to hardcode \$libdir into a binary during linking.
16723 # This must work even if \$libdir does not exist
16724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16725
16726 # If ld is used when linking, flag to hardcode \$libdir into a binary
16727 # during linking. This must work even if \$libdir does not exist.
16728 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16729
16730 # Whether we need a single "-rpath" flag with a separated argument.
16731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16732
16733 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16734 # DIR into the resulting binary.
16735 hardcode_direct=$hardcode_direct
16736
16737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16738 # DIR into the resulting binary and the resulting library dependency is
16739 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16740 # library is relocated.
16741 hardcode_direct_absolute=$hardcode_direct_absolute
16742
16743 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16744 # into the resulting binary.
16745 hardcode_minus_L=$hardcode_minus_L
16746
16747 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16748 # into the resulting binary.
16749 hardcode_shlibpath_var=$hardcode_shlibpath_var
16750
16751 # Set to "yes" if building a shared library automatically hardcodes DIR
16752 # into the library and all subsequent libraries and executables linked
16753 # against it.
16754 hardcode_automatic=$hardcode_automatic
16755
16756 # Set to yes if linker adds runtime paths of dependent libraries
16757 # to runtime path list.
16758 inherit_rpath=$inherit_rpath
16759
16760 # Whether libtool must link a program against all its dependency libraries.
16761 link_all_deplibs=$link_all_deplibs
16762
16763 # Set to "yes" if exported symbols are required.
16764 always_export_symbols=$always_export_symbols
16765
16766 # The commands to list exported symbols.
16767 export_symbols_cmds=$lt_export_symbols_cmds
16768
16769 # Symbols that should not be listed in the preloaded symbols.
16770 exclude_expsyms=$lt_exclude_expsyms
16771
16772 # Symbols that must always be exported.
16773 include_expsyms=$lt_include_expsyms
16774
16775 # Commands necessary for linking programs (against libraries) with templates.
16776 prelink_cmds=$lt_prelink_cmds
16777
16778 # Commands necessary for finishing linking programs.
16779 postlink_cmds=$lt_postlink_cmds
16780
16781 # Specify filename containing input files.
16782 file_list_spec=$lt_file_list_spec
16783
16784 # How to hardcode a shared library path into an executable.
16785 hardcode_action=$hardcode_action
16786
16787 # ### END LIBTOOL CONFIG
16788
16789 _LT_EOF
16790
16791 case $host_os in
16792 aix3*)
16793 cat <<\_LT_EOF >> "$cfgfile"
16794 # AIX sometimes has problems with the GCC collect2 program. For some
16795 # reason, if we set the COLLECT_NAMES environment variable, the problems
16796 # vanish in a puff of smoke.
16797 if test "X${COLLECT_NAMES+set}" != Xset; then
16798 COLLECT_NAMES=
16799 export COLLECT_NAMES
16800 fi
16801 _LT_EOF
16802 ;;
16803 esac
16804
16805
16806 ltmain="$ac_aux_dir/ltmain.sh"
16807
16808
16809 # We use sed instead of cat because bash on DJGPP gets confused if
16810 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16811 # text mode, it properly converts lines to CR/LF. This bash problem
16812 # is reportedly fixed, but why not run on old versions too?
16813 sed '$q' "$ltmain" >> "$cfgfile" \
16814 || (rm -f "$cfgfile"; exit 1)
16815
16816 if test x"$xsi_shell" = xyes; then
16817 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16818 func_dirname ()\
16819 {\
16820 \ case ${1} in\
16821 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16822 \ * ) func_dirname_result="${3}" ;;\
16823 \ esac\
16824 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16825 && mv -f "$cfgfile.tmp" "$cfgfile" \
16826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16827 test 0 -eq $? || _lt_function_replace_fail=:
16828
16829
16830 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16831 func_basename ()\
16832 {\
16833 \ func_basename_result="${1##*/}"\
16834 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16835 && mv -f "$cfgfile.tmp" "$cfgfile" \
16836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16837 test 0 -eq $? || _lt_function_replace_fail=:
16838
16839
16840 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16841 func_dirname_and_basename ()\
16842 {\
16843 \ case ${1} in\
16844 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16845 \ * ) func_dirname_result="${3}" ;;\
16846 \ esac\
16847 \ func_basename_result="${1##*/}"\
16848 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16849 && mv -f "$cfgfile.tmp" "$cfgfile" \
16850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16851 test 0 -eq $? || _lt_function_replace_fail=:
16852
16853
16854 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16855 func_stripname ()\
16856 {\
16857 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16858 \ # positional parameters, so assign one to ordinary parameter first.\
16859 \ func_stripname_result=${3}\
16860 \ func_stripname_result=${func_stripname_result#"${1}"}\
16861 \ func_stripname_result=${func_stripname_result%"${2}"}\
16862 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16863 && mv -f "$cfgfile.tmp" "$cfgfile" \
16864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16865 test 0 -eq $? || _lt_function_replace_fail=:
16866
16867
16868 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16869 func_split_long_opt ()\
16870 {\
16871 \ func_split_long_opt_name=${1%%=*}\
16872 \ func_split_long_opt_arg=${1#*=}\
16873 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16874 && mv -f "$cfgfile.tmp" "$cfgfile" \
16875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16876 test 0 -eq $? || _lt_function_replace_fail=:
16877
16878
16879 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16880 func_split_short_opt ()\
16881 {\
16882 \ func_split_short_opt_arg=${1#??}\
16883 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16884 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16885 && mv -f "$cfgfile.tmp" "$cfgfile" \
16886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16887 test 0 -eq $? || _lt_function_replace_fail=:
16888
16889
16890 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16891 func_lo2o ()\
16892 {\
16893 \ case ${1} in\
16894 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16895 \ *) func_lo2o_result=${1} ;;\
16896 \ esac\
16897 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16898 && mv -f "$cfgfile.tmp" "$cfgfile" \
16899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16900 test 0 -eq $? || _lt_function_replace_fail=:
16901
16902
16903 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16904 func_xform ()\
16905 {\
16906 func_xform_result=${1%.*}.lo\
16907 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16908 && mv -f "$cfgfile.tmp" "$cfgfile" \
16909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16910 test 0 -eq $? || _lt_function_replace_fail=:
16911
16912
16913 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16914 func_arith ()\
16915 {\
16916 func_arith_result=$(( $* ))\
16917 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16918 && mv -f "$cfgfile.tmp" "$cfgfile" \
16919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16920 test 0 -eq $? || _lt_function_replace_fail=:
16921
16922
16923 sed -e '/^func_len ()$/,/^} # func_len /c\
16924 func_len ()\
16925 {\
16926 func_len_result=${#1}\
16927 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16928 && mv -f "$cfgfile.tmp" "$cfgfile" \
16929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16930 test 0 -eq $? || _lt_function_replace_fail=:
16931
16932 fi
16933
16934 if test x"$lt_shell_append" = xyes; then
16935 sed -e '/^func_append ()$/,/^} # func_append /c\
16936 func_append ()\
16937 {\
16938 eval "${1}+=\\${2}"\
16939 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16940 && mv -f "$cfgfile.tmp" "$cfgfile" \
16941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16942 test 0 -eq $? || _lt_function_replace_fail=:
16943
16944
16945 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16946 func_append_quoted ()\
16947 {\
16948 \ func_quote_for_eval "${2}"\
16949 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16950 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16951 && mv -f "$cfgfile.tmp" "$cfgfile" \
16952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16953 test 0 -eq $? || _lt_function_replace_fail=:
16954
16955
16956 # Save a `func_append' function call where possible by direct use of '+='
16957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16958 && mv -f "$cfgfile.tmp" "$cfgfile" \
16959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16960 test 0 -eq $? || _lt_function_replace_fail=:
16961 else
16962 # Save a `func_append' function call even when '+=' is not available
16963 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16964 && mv -f "$cfgfile.tmp" "$cfgfile" \
16965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16966 test 0 -eq $? || _lt_function_replace_fail=:
16967 fi
16968
16969 if test x"$_lt_function_replace_fail" = x":"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16971 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16972 fi
16973
16974
16975 mv -f "$cfgfile" "$ofile" ||
16976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16977 chmod +x "$ofile"
16978
16979 ;;
16980 "include/librb-config.h":C)
16981 outfile=include/librb-config.h.tmp
16982 cat > $outfile <<\_______EOF
16983 /*
16984 * librb-config.h: libratbox config file. Please modify configure.ac
16985 */
16986
16987 #ifndef __LIBRB_CONFIG_H
16988 #define __LIBRB_CONFIG_H
16989
16990 _______EOF
16991
16992 if test "x$rb_have_ipv6" = "xyes"; then
16993 echo "#define RB_IPV6 1" >> $outfile
16994 fi
16995
16996 if test "x$rb_windows_h" = "xyes"; then
16997 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
16998 echo '#include <windows.h>' >> $outfile
16999 echo '#include <winsock2.h>' >> $outfile
17000 echo '#include <iphlpapi.h>' >> $outfile
17001 fi
17002
17003 if test "x$rb_alloca_h" = "xyes"; then
17004 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17005 fi
17006
17007 if test "x$rb_header_stdc" = "xyes"; then
17008 echo '#include <stdlib.h>' >> $outfile
17009 echo '#include <stddef.h>' >> $outfile
17010 elif test "x$rb_header_stdlib" = "xyes"; then
17011 echo '#include <stdlib.h>' >> $outfile
17012 fi
17013
17014 if test "x$rb_header_string_h" = "xyes"; then
17015 echo '#include <string.h>' >> $outfile
17016 fi
17017
17018 if test "x$rb_stdint_h" = "xyes"; then
17019 echo '#include <stdint.h>' >> $outfile
17020 fi
17021
17022 if test "x$rb_inttypes_h" = "xyes"; then
17023 echo '#include <inttypes.h>' >> $outfile
17024 fi
17025
17026 if test "x$rb_sys_types_h" = "xyes"; then
17027 echo '#include <sys/types.h>' >> $outfile
17028 fi
17029 if test "x$rb_sys_time_h" = "xyes"; then
17030 echo '#include <sys/time.h>' >> $outfile
17031 fi
17032 if test "x$rb_sys_stat_h" = "xyes"; then
17033 echo '#include <sys/stat.h>' >> $outfile
17034 fi
17035 if test "x$rb_time_h" = "xyes"; then
17036 echo '#include <time.h>' >> $outfile
17037 fi
17038
17039 if test "x$rb_sys_socket_h" = "xyes"; then
17040 echo '#include <sys/socket.h>' >> $outfile
17041 fi
17042
17043 if test "x$rb_netinet_in_h" = "xyes"; then
17044 echo '#include <netinet/in.h>' >> $outfile
17045 fi
17046
17047 if test "x$rb_arpa_inet_h" = "xyes"; then
17048 echo '#include <arpa/inet.h>' >> $outfile
17049 fi
17050
17051 if test "x$rb_unistd_h" = "xyes"; then
17052 echo '#include <unistd.h>' >> $outfile
17053 fi
17054
17055 if test "x$rb_crypt_h" = "xyes"; then
17056 echo '#include <crypt.h>' >> $outfile
17057 fi
17058
17059 if test "x$rb_errno_h" = "xyes"; then
17060 echo '#include <errno.h>' >> $outfile
17061 fi
17062
17063 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17064
17065
17066 if test "x$rb_sockaddr_sa_len" = "xyes"; then
17067 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17068 fi
17069
17070 if test "x$rb_sockaddr_storage" = "xyes"; then
17071 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17072 else
17073 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
17074 fi
17075
17076 cat >> $outfile <<\_______EOF
17077 #endif /* __LIBRB_CONFIG_H */
17078 _______EOF
17079
17080 if cmp -s $outfile include/librb-config.h; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
17082 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
17083 ${rb_rm} -f $outfile
17084 else
17085 ${rb_mv} $outfile include/librb-config.h
17086 fi
17087
17088 ;;
17089
17090 esac
17091 done # for ac_tag
17092
17093
17094 as_fn_exit 0
17095 _ACEOF
17096 ac_clean_files=$ac_clean_files_save
17097
17098 test $ac_write_fail = 0 ||
17099 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17100
17101
17102 # configure is writing to config.log, and then calls config.status.
17103 # config.status does its own redirection, appending to config.log.
17104 # Unfortunately, on DOS this fails, as config.log is still kept open
17105 # by configure, so config.status won't be able to write to it; its
17106 # output is simply discarded. So we exec the FD to /dev/null,
17107 # effectively closing config.log, so it can be properly (re)opened and
17108 # appended to by config.status. When coming back to configure, we
17109 # need to make the FD available again.
17110 if test "$no_create" != yes; then
17111 ac_cs_success=:
17112 ac_config_status_args=
17113 test "$silent" = yes &&
17114 ac_config_status_args="$ac_config_status_args --quiet"
17115 exec 5>/dev/null
17116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17117 exec 5>>config.log
17118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17119 # would make configure fail if this is the last instruction.
17120 $ac_cs_success || as_fn_exit 1
17121 fi
17122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17125 fi
17126
17127
17128
17129 echo
17130 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17131 echo
17132
17133 echo "Installing into: $prefix"
17134
17135 echo "IPv6 support ................... $have_v6"
17136 echo "Assert debugging ............... $assert"
17137 echo "Block allocator ................ $balloc"
17138 echo "SSL Type........................ $SSL_TYPE"
17139 echo
17140