]> jfr.im git - irc/rqf/shadowircd.git/blob - libratbox/configure
run autoconf, autoheader and make depend
[irc/rqf/shadowircd.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_LIBDIR
627 PKG_CONFIG_PATH
628 PKG_CONFIG
629 ALLOCA
630 MINGW_FALSE
631 MINGW_TRUE
632 OTOOL64
633 OTOOL
634 LIPO
635 NMEDIT
636 DSYMUTIL
637 MANIFEST_TOOL
638 RANLIB
639 ac_ct_AR
640 AR
641 DLLTOOL
642 OBJDUMP
643 LN_S
644 NM
645 ac_ct_DUMPBIN
646 DUMPBIN
647 LD
648 FGREP
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 LIBTOOL
658 TOUCH
659 LN
660 MV
661 CP
662 RM
663 AS
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 SED
668 EGREP
669 GREP
670 CPP
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_dependency_tracking
752 enable_static
753 enable_shared
754 enable_maintainer_mode
755 with_pic
756 enable_fast_install
757 with_gnu_ld
758 with_sysroot
759 enable_libtool_lock
760 enable_ipv6
761 enable_openssl
762 enable_gnutls
763 enable_assert
764 enable_profile
765 enable_balloc
766 enable_warnings
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP
777 PKG_CONFIG
778 PKG_CONFIG_PATH
779 PKG_CONFIG_LIBDIR
780 GNUTLS_CFLAGS
781 GNUTLS_LIBS'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used" >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures libratbox devel to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of libratbox devel:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --enable-static[=PKGS] build static libraries [default=no]
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --disable-ipv6 Disable IPv6 support
1412 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1413 --disable-openssl Disable OpenSSL support.
1414 --enable-gnutls Enable GnuTLS support.
1415 --disable-gnutls Disable GnuTLS support.
1416 --enable-assert Enable assert(). Choose between soft(warnings) and
1417 hard(aborts the daemon)
1418 --enable-profile Enable profiling
1419 --disable-balloc Disable the block allocator.
1420 --enable-warnings Enable all sorts of warnings for debugging.
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440 PKG_CONFIG path to pkg-config utility
1441 PKG_CONFIG_PATH
1442 directories to add to pkg-config's search path
1443 PKG_CONFIG_LIBDIR
1444 path overriding pkg-config's built-in search path
1445 GNUTLS_CFLAGS
1446 C compiler flags for GNUTLS, overriding pkg-config
1447 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to the package provider.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 libratbox configure devel
1516 generated by GNU Autoconf 2.68
1517
1518 Copyright (C) 2010 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521
1522 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_cpp ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_cpp conftest.$ac_ext"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } > conftest.i && {
1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 }; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_cpp
1605
1606 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1607 # -------------------------------------------------------
1608 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1609 # the include files in INCLUDES and setting the cache variable VAR
1610 # accordingly.
1611 ac_fn_c_check_header_mongrel ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if eval \${$3+:} false; then :
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619 fi
1620 eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 else
1624 # Is the header compilable?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1626 $as_echo_n "checking $2 usability... " >&6; }
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633 ac_header_compiler=yes
1634 else
1635 ac_header_compiler=no
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1639 $as_echo "$ac_header_compiler" >&6; }
1640
1641 # Is the header present?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1643 $as_echo_n "checking $2 presence... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_c_try_cpp "$LINENO"; then :
1649 ac_header_preproc=yes
1650 else
1651 ac_header_preproc=no
1652 fi
1653 rm -f conftest.err conftest.i conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1655 $as_echo "$ac_header_preproc" >&6; }
1656
1657 # So? What about this header?
1658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1659 yes:no: )
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1661 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ;;
1665 no:yes:* )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1667 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1669 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1671 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1673 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 ;;
1677 esac
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval \${$3+:} false; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 eval "$3=\$ac_header_compiler"
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } # ac_fn_c_check_header_mongrel
1692
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728 fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_run
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_try_link LINENO
1767 # -----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_link ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext conftest$ac_exeext
1773 if { { ac_try="$ac_link"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest$ac_exeext && {
1792 test "$cross_compiling" = yes ||
1793 $as_test_x conftest$ac_exeext
1794 }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_link
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_func
1878
1879 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1880 # -------------------------------------------
1881 # Tests whether TYPE exists after having included INCLUDES, setting cache
1882 # variable VAR accordingly.
1883 ac_fn_c_check_type ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 eval "$3=no"
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $4
1895 int
1896 main ()
1897 {
1898 if (sizeof ($2))
1899 return 0;
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof (($2)))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918
1919 else
1920 eval "$3=yes"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_type
1932
1933 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1934 # ----------------------------------------------------
1935 # Tries to find if the field MEMBER exists in type AGGR, after including
1936 # INCLUDES, setting cache variable VAR accordingly.
1937 ac_fn_c_check_member ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1941 $as_echo_n "checking for $2.$3... " >&6; }
1942 if eval \${$4+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $5
1948 int
1949 main ()
1950 {
1951 static $2 ac_aggr;
1952 if (ac_aggr.$3)
1953 return 0;
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$4=yes"
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $5
1964 int
1965 main ()
1966 {
1967 static $2 ac_aggr;
1968 if (sizeof ac_aggr.$3)
1969 return 0;
1970 ;
1971 return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$4=yes"
1976 else
1977 eval "$4=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$4
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_member
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1992
1993 It was created by libratbox $as_me devel, which was
1994 generated by GNU Autoconf 2.68. Invocation command line was
1995
1996 $ $0 $@
1997
1998 _ACEOF
1999 exec 5>>config.log
2000 {
2001 cat <<_ASUNAME
2002 ## --------- ##
2003 ## Platform. ##
2004 ## --------- ##
2005
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2014
2015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2022
2023 _ASUNAME
2024
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 $as_echo "PATH: $as_dir"
2031 done
2032 IFS=$as_save_IFS
2033
2034 } >&5
2035
2036 cat >&5 <<_ACEOF
2037
2038
2039 ## ----------- ##
2040 ## Core tests. ##
2041 ## ----------- ##
2042
2043 _ACEOF
2044
2045
2046 # Keep a trace of the command line.
2047 # Strip out --no-create and --no-recursion so they do not pile up.
2048 # Strip out --silent because we don't want to record it for future runs.
2049 # Also quote any args containing shell meta-characters.
2050 # Make two passes to allow for proper duplicate-argument suppression.
2051 ac_configure_args=
2052 ac_configure_args0=
2053 ac_configure_args1=
2054 ac_must_keep_next=false
2055 for ac_pass in 1 2
2056 do
2057 for ac_arg
2058 do
2059 case $ac_arg in
2060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062 | -silent | --silent | --silen | --sile | --sil)
2063 continue ;;
2064 *\'*)
2065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 esac
2067 case $ac_pass in
2068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2069 2)
2070 as_fn_append ac_configure_args1 " '$ac_arg'"
2071 if test $ac_must_keep_next = true; then
2072 ac_must_keep_next=false # Got value, back to normal.
2073 else
2074 case $ac_arg in
2075 *=* | --config-cache | -C | -disable-* | --disable-* \
2076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078 | -with-* | --with-* | -without-* | --without-* | --x)
2079 case "$ac_configure_args0 " in
2080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081 esac
2082 ;;
2083 -* ) ac_must_keep_next=true ;;
2084 esac
2085 fi
2086 as_fn_append ac_configure_args " '$ac_arg'"
2087 ;;
2088 esac
2089 done
2090 done
2091 { ac_configure_args0=; unset ac_configure_args0;}
2092 { ac_configure_args1=; unset ac_configure_args1;}
2093
2094 # When interrupted or exit'd, cleanup temporary files, and complete
2095 # config.log. We remove comments because anyway the quotes in there
2096 # would cause problems or look ugly.
2097 # WARNING: Use '\'' to represent an apostrophe within the trap.
2098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099 trap 'exit_status=$?
2100 # Save into config.log some information that might help in debugging.
2101 {
2102 echo
2103
2104 $as_echo "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107 echo
2108 # The following way of writing the cache mishandles newlines in values,
2109 (
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in #(
2113 *${as_nl}*)
2114 case $ac_var in #(
2115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117 esac
2118 case $ac_var in #(
2119 _ | IFS | as_nl) ;; #(
2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121 *) { eval $ac_var=; unset $ac_var;} ;;
2122 esac ;;
2123 esac
2124 done
2125 (set) 2>&1 |
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2128 sed -n \
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 ;; #(
2132 *)
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 ;;
2135 esac |
2136 sort
2137 )
2138 echo
2139
2140 $as_echo "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143 echo
2144 for ac_var in $ac_subst_vars
2145 do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2153
2154 if test -n "$ac_subst_files"; then
2155 $as_echo "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
2171 $as_echo "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174 echo
2175 cat confdefs.h
2176 echo
2177 fi
2178 test "$ac_signal" != 0 &&
2179 $as_echo "$as_me: caught signal $ac_signal"
2180 $as_echo "$as_me: exit $exit_status"
2181 } >&5
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 $as_echo "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_NAME "$PACKAGE_NAME"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_STRING "$PACKAGE_STRING"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_URL "$PACKAGE_URL"
2220 _ACEOF
2221
2222
2223 # Let the site file select an alternate cache file if it wants to.
2224 # Prefer an explicitly selected file to automatically selected ones.
2225 ac_site_file1=NONE
2226 ac_site_file2=NONE
2227 if test -n "$CONFIG_SITE"; then
2228 # We do not want a PATH search for config.site.
2229 case $CONFIG_SITE in #((
2230 -*) ac_site_file1=./$CONFIG_SITE;;
2231 */*) ac_site_file1=$CONFIG_SITE;;
2232 *) ac_site_file1=./$CONFIG_SITE;;
2233 esac
2234 elif test "x$prefix" != xNONE; then
2235 ac_site_file1=$prefix/share/config.site
2236 ac_site_file2=$prefix/etc/config.site
2237 else
2238 ac_site_file1=$ac_default_prefix/share/config.site
2239 ac_site_file2=$ac_default_prefix/etc/config.site
2240 fi
2241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2242 do
2243 test "x$ac_site_file" = xNONE && continue
2244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247 sed 's/^/| /' "$ac_site_file" >&5
2248 . "$ac_site_file" \
2249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 as_fn_error $? "failed to load site script $ac_site_file
2252 See \`config.log' for more details" "$LINENO" 5; }
2253 fi
2254 done
2255
2256 if test -r "$cache_file"; then
2257 # Some versions of bash will fail to source /dev/null (special files
2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262 case $cache_file in
2263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264 *) . "./$cache_file";;
2265 esac
2266 fi
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270 >$cache_file
2271 fi
2272
2273 as_fn_append ac_header_list " stdlib.h"
2274 as_fn_append ac_header_list " unistd.h"
2275 as_fn_append ac_header_list " sys/param.h"
2276 # Check that the precious variables saved in the cache have kept the same
2277 # value.
2278 ac_cache_corrupted=false
2279 for ac_var in $ac_precious_vars; do
2280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281 eval ac_new_set=\$ac_env_${ac_var}_set
2282 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283 eval ac_new_val=\$ac_env_${ac_var}_value
2284 case $ac_old_set,$ac_new_set in
2285 set,)
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2289 ,set)
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2292 ac_cache_corrupted=: ;;
2293 ,);;
2294 *)
2295 if test "x$ac_old_val" != "x$ac_new_val"; then
2296 # differences in whitespace do not lead to failure.
2297 ac_old_val_w=`echo x $ac_old_val`
2298 ac_new_val_w=`echo x $ac_new_val`
2299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2301 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302 ac_cache_corrupted=:
2303 else
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2305 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306 eval $ac_var=\$ac_old_val
2307 fi
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2309 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2311 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2312 fi;;
2313 esac
2314 # Pass precious variables to config.status.
2315 if test "$ac_new_set" = set; then
2316 case $ac_new_val in
2317 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318 *) ac_arg=$ac_var=$ac_new_val ;;
2319 esac
2320 case " $ac_configure_args " in
2321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2322 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323 esac
2324 fi
2325 done
2326 if $ac_cache_corrupted; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2330 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2331 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332 fi
2333 ## -------------------- ##
2334 ## Main body of script. ##
2335 ## -------------------- ##
2336
2337 ac_ext=c
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342
2343
2344 am__api_version='1.11'
2345
2346 ac_aux_dir=
2347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348 if test -f "$ac_dir/install-sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install-sh -c"
2351 break
2352 elif test -f "$ac_dir/install.sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install.sh -c"
2355 break
2356 elif test -f "$ac_dir/shtool"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/shtool install -c"
2359 break
2360 fi
2361 done
2362 if test -z "$ac_aux_dir"; then
2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2364 fi
2365
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2373
2374
2375 # Find a good install program. We prefer a C program (faster),
2376 # so one script is as good as another. But avoid the broken or
2377 # incompatible versions:
2378 # SysV /etc/install, /usr/sbin/install
2379 # SunOS /usr/etc/install
2380 # IRIX /sbin/install
2381 # AIX /bin/install
2382 # AmigaOS /C/install, which installs bootblocks on floppy discs
2383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386 # OS/2's system install, which has a completely different semantic
2387 # ./install, which can be erroneously created by make from ./install.sh.
2388 # Reject install programs that cannot install multiple files.
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2391 if test -z "$INSTALL"; then
2392 if ${ac_cv_path_install+:} false; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 # Account for people who put trailing slashes in PATH elements.
2401 case $as_dir/ in #((
2402 ./ | .// | /[cC]/* | \
2403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2404 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2405 /usr/ucb/* ) ;;
2406 *)
2407 # OSF1 and SCO ODT 3.0 have their own names for install.
2408 # Don't use installbsd from OSF since it installs stuff as root
2409 # by default.
2410 for ac_prog in ginstall scoinst install; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2413 if test $ac_prog = install &&
2414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # AIX install. It has an incompatible calling convention.
2416 :
2417 elif test $ac_prog = install &&
2418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # program-specific install script used by HP pwplus--don't use.
2420 :
2421 else
2422 rm -rf conftest.one conftest.two conftest.dir
2423 echo one > conftest.one
2424 echo two > conftest.two
2425 mkdir conftest.dir
2426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427 test -s conftest.one && test -s conftest.two &&
2428 test -s conftest.dir/conftest.one &&
2429 test -s conftest.dir/conftest.two
2430 then
2431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2432 break 3
2433 fi
2434 fi
2435 fi
2436 done
2437 done
2438 ;;
2439 esac
2440
2441 done
2442 IFS=$as_save_IFS
2443
2444 rm -rf conftest.one conftest.two conftest.dir
2445
2446 fi
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL=$ac_install_sh
2455 fi
2456 fi
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458 $as_echo "$INSTALL" >&6; }
2459
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2463
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2465
2466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469 $as_echo_n "checking whether build environment is sane... " >&6; }
2470 # Just in case
2471 sleep 1
2472 echo timestamp > conftest.file
2473 # Reject unsafe characters in $srcdir or the absolute working directory
2474 # name. Accept space and tab only in the latter.
2475 am_lf='
2476 '
2477 case `pwd` in
2478 *[\\\"\#\$\&\'\`$am_lf]*)
2479 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2480 esac
2481 case $srcdir in
2482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2483 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2484 esac
2485
2486 # Do `set' in a subshell so we don't clobber the current shell's
2487 # arguments. Must try -L first in case configure is actually a
2488 # symlink; some systems play weird games with the mod time of symlinks
2489 # (eg FreeBSD returns the mod time of the symlink's containing
2490 # directory).
2491 if (
2492 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2493 if test "$*" = "X"; then
2494 # -L didn't work.
2495 set X `ls -t "$srcdir/configure" conftest.file`
2496 fi
2497 rm -f conftest.file
2498 if test "$*" != "X $srcdir/configure conftest.file" \
2499 && test "$*" != "X conftest.file $srcdir/configure"; then
2500
2501 # If neither matched, then we have a broken ls. This can happen
2502 # if, for instance, CONFIG_SHELL is bash and it inherits a
2503 # broken ls alias from the environment. This has actually
2504 # happened. Such a system could not be considered "sane".
2505 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2506 alias in your environment" "$LINENO" 5
2507 fi
2508
2509 test "$2" = conftest.file
2510 )
2511 then
2512 # Ok.
2513 :
2514 else
2515 as_fn_error $? "newly created file is older than distributed files!
2516 Check your system clock" "$LINENO" 5
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2520 test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530 # expand $ac_aux_dir to an absolute path
2531 am_aux_dir=`cd $ac_aux_dir && pwd`
2532
2533 if test x"${MISSING+set}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537 *)
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539 esac
2540 fi
2541 # Use eval to expand $SHELL
2542 if eval "$MISSING --run true"; then
2543 am_missing_run="$MISSING --run "
2544 else
2545 am_missing_run=
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2547 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2548 fi
2549
2550 if test x"${install_sh}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554 *)
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2556 esac
2557 fi
2558
2559 # Installed binaries are usually stripped using `strip' when the user
2560 # run `make install-strip'. However `strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the `STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}strip; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_STRIP+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 STRIP=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595 $as_echo "$STRIP" >&6; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 fi
2603 if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635 $as_echo "$ac_ct_STRIP" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2649 esac
2650 STRIP=$ac_ct_STRIP
2651 fi
2652 else
2653 STRIP="$ac_cv_prog_STRIP"
2654 fi
2655
2656 fi
2657 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661 if test -z "$MKDIR_P"; then
2662 if ${ac_cv_path_mkdir+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_prog in mkdir gmkdir; do
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 break 3;;
2679 esac
2680 done
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686
2687 test -d ./--version && rmdir ./--version
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 MKDIR_P="$ac_install_sh -d"
2696 fi
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699 $as_echo "$MKDIR_P" >&6; }
2700
2701 mkdir_p="$MKDIR_P"
2702 case $mkdir_p in
2703 [\\/$]* | ?:[\\/]*) ;;
2704 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2705 esac
2706
2707 for ac_prog in gawk mawk nawk awk
2708 do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 AWK=$ac_cv_prog_AWK
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 test -n "$AWK" && break
2747 done
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2751 set x ${MAKE-make}
2752 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 cat >conftest.make <<\_ACEOF
2757 SHELL = /bin/sh
2758 all:
2759 @echo '@@@%%%=$(MAKE)=@@@%%%'
2760 _ACEOF
2761 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2762 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2763 *@@@%%%=?*=@@@%%%*)
2764 eval ac_cv_prog_make_${ac_make}_set=yes;;
2765 *)
2766 eval ac_cv_prog_make_${ac_make}_set=no;;
2767 esac
2768 rm -f conftest.make
2769 fi
2770 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773 SET_MAKE=
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 SET_MAKE="MAKE=${MAKE-make}"
2778 fi
2779
2780 rm -rf .tst 2>/dev/null
2781 mkdir .tst 2>/dev/null
2782 if test -d .tst; then
2783 am__leading_dot=.
2784 else
2785 am__leading_dot=_
2786 fi
2787 rmdir .tst 2>/dev/null
2788
2789 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791 # is not polluted with repeated "-I."
2792 am__isrc=' -I$(srcdir)'
2793 # test to see if srcdir already configured
2794 if test -f $srcdir/config.status; then
2795 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2796 fi
2797 fi
2798
2799 # test whether we have cygpath
2800 if test -z "$CYGPATH_W"; then
2801 if (cygpath --version) >/dev/null 2>/dev/null; then
2802 CYGPATH_W='cygpath -w'
2803 else
2804 CYGPATH_W=echo
2805 fi
2806 fi
2807
2808
2809 # Define the identity of the package.
2810 PACKAGE=libratbox
2811 VERSION=devel
2812
2813
2814 # Some tools Automake needs.
2815
2816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817
2818
2819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820
2821
2822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823
2824
2825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826
2827
2828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2829
2830 # We need awk for the "check" target. The system "awk" is bad on
2831 # some platforms.
2832 # Always define AMTAR for backward compatibility.
2833
2834 AMTAR=${AMTAR-"${am_missing_run}tar"}
2835
2836 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2837
2838
2839
2840
2841
2842
2843 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2844
2845
2846
2847 DEPDIR="${am__leading_dot}deps"
2848
2849 ac_config_commands="$ac_config_commands depfiles"
2850
2851
2852 am_make=${MAKE-make}
2853 cat > confinc << 'END'
2854 am__doit:
2855 @echo this is the am__doit target
2856 .PHONY: am__doit
2857 END
2858 # If we don't find an include directive, just comment out the code.
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2860 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2861 am__include="#"
2862 am__quote=
2863 _am_result=none
2864 # First try GNU make style include.
2865 echo "include confinc" > confmf
2866 # Ignore all kinds of additional output from `make'.
2867 case `$am_make -s -f confmf 2> /dev/null` in #(
2868 *the\ am__doit\ target*)
2869 am__include=include
2870 am__quote=
2871 _am_result=GNU
2872 ;;
2873 esac
2874 # Now try BSD make style include.
2875 if test "$am__include" = "#"; then
2876 echo '.include "confinc"' > confmf
2877 case `$am_make -s -f confmf 2> /dev/null` in #(
2878 *the\ am__doit\ target*)
2879 am__include=.include
2880 am__quote="\""
2881 _am_result=BSD
2882 ;;
2883 esac
2884 fi
2885
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2888 $as_echo "$_am_result" >&6; }
2889 rm -f confinc confmf
2890
2891 # Check whether --enable-dependency-tracking was given.
2892 if test "${enable_dependency_tracking+set}" = set; then :
2893 enableval=$enable_dependency_tracking;
2894 fi
2895
2896 if test "x$enable_dependency_tracking" != xno; then
2897 am_depcomp="$ac_aux_dir/depcomp"
2898 AMDEPBACKSLASH='\'
2899 fi
2900 if test "x$enable_dependency_tracking" != xno; then
2901 AMDEP_TRUE=
2902 AMDEP_FALSE='#'
2903 else
2904 AMDEP_TRUE='#'
2905 AMDEP_FALSE=
2906 fi
2907
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_CC+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 fi
2953 if test -z "$ac_cv_prog_CC"; then
2954 ac_ct_CC=$CC
2955 # Extract the first word of "gcc", so it can be a program name with args.
2956 set dummy gcc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="gcc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned=yes ;;
2999 esac
3000 CC=$ac_ct_CC
3001 fi
3002 else
3003 CC="$ac_cv_prog_CC"
3004 fi
3005
3006 if test -z "$CC"; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}cc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC="${ac_tool_prefix}cc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 fi
3047 if test -z "$CC"; then
3048 # Extract the first word of "cc", so it can be a program name with args.
3049 set dummy cc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 ac_prog_rejected=no
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3067 ac_prog_rejected=yes
3068 continue
3069 fi
3070 ac_cv_prog_CC="cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 if test $ac_prog_rejected = yes; then
3079 # We found a bogon in the path, so make sure we never use it.
3080 set dummy $ac_cv_prog_CC
3081 shift
3082 if test $# != 0; then
3083 # We chose a different compiler from the bogus one.
3084 # However, it has the same basename, so the bogon will be chosen
3085 # first if we set CC to just the basename; use the full file name.
3086 shift
3087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088 fi
3089 fi
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102 fi
3103 if test -z "$CC"; then
3104 if test -n "$ac_tool_prefix"; then
3105 for ac_prog in cl.exe
3106 do
3107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 test -n "$CC" && break
3145 done
3146 fi
3147 if test -z "$CC"; then
3148 ac_ct_CC=$CC
3149 for ac_prog in cl.exe
3150 do
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$ac_ct_CC"; then
3159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_ac_ct_CC="$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172 done
3173 done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3179 if test -n "$ac_ct_CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3181 $as_echo "$ac_ct_CC" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 test -n "$ac_ct_CC" && break
3189 done
3190
3191 if test "x$ac_ct_CC" = x; then
3192 CC=""
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200 CC=$ac_ct_CC
3201 fi
3202 fi
3203
3204 fi
3205
3206
3207 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "no acceptable C compiler found in \$PATH
3210 See \`config.log' for more details" "$LINENO" 5; }
3211
3212 # Provide some information about the compiler.
3213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3214 set X $ac_compile
3215 ac_compiler=$2
3216 for ac_option in --version -v -V -qversion; do
3217 { { ac_try="$ac_compiler $ac_option >&5"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3225 ac_status=$?
3226 if test -s conftest.err; then
3227 sed '10a\
3228 ... rest of stderr output deleted ...
3229 10q' conftest.err >conftest.er1
3230 cat conftest.er1 >&5
3231 fi
3232 rm -f conftest.er1 conftest.err
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }
3235 done
3236
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239
3240 int
3241 main ()
3242 {
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 ac_clean_files_save=$ac_clean_files
3249 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3250 # Try to create an executable without -o first, disregard a.out.
3251 # It will help us diagnose broken compilers, and finding out an intuition
3252 # of exeext.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3254 $as_echo_n "checking whether the C compiler works... " >&6; }
3255 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256
3257 # The possible output files:
3258 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3259
3260 ac_rmfiles=
3261 for ac_file in $ac_files
3262 do
3263 case $ac_file in
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3265 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3266 esac
3267 done
3268 rm -f $ac_rmfiles
3269
3270 if { { ac_try="$ac_link_default"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link_default") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3282 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3283 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3284 # so that the user can short-circuit this test for compilers unknown to
3285 # Autoconf.
3286 for ac_file in $ac_files ''
3287 do
3288 test -f "$ac_file" || continue
3289 case $ac_file in
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3291 ;;
3292 [ab].out )
3293 # We found the default executable, but exeext='' is most
3294 # certainly right.
3295 break;;
3296 *.* )
3297 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3298 then :; else
3299 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 fi
3301 # We set ac_cv_exeext here because the later test for it is not
3302 # safe: cross compilers may not add the suffix if given an `-o'
3303 # argument, so we may need to know it at that point already.
3304 # Even if this section looks crufty: it has the advantage of
3305 # actually working.
3306 break;;
3307 * )
3308 break;;
3309 esac
3310 done
3311 test "$ac_cv_exeext" = no && ac_cv_exeext=
3312
3313 else
3314 ac_file=''
3315 fi
3316 if test -z "$ac_file"; then :
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error 77 "C compiler cannot create executables
3325 See \`config.log' for more details" "$LINENO" 5; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3333 $as_echo "$ac_file" >&6; }
3334 ac_exeext=$ac_cv_exeext
3335
3336 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3337 ac_clean_files=$ac_clean_files_save
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3339 $as_echo_n "checking for suffix of executables... " >&6; }
3340 if { { ac_try="$ac_link"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_link") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3354 # `rm'.
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 break;;
3361 * ) break;;
3362 esac
3363 done
3364 else
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details" "$LINENO" 5; }
3369 fi
3370 rm -f conftest conftest$ac_cv_exeext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3372 $as_echo "$ac_cv_exeext" >&6; }
3373
3374 rm -f conftest.$ac_ext
3375 EXEEXT=$ac_cv_exeext
3376 ac_exeext=$EXEEXT
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379 #include <stdio.h>
3380 int
3381 main ()
3382 {
3383 FILE *f = fopen ("conftest.out", "w");
3384 return ferror (f) || fclose (f) != 0;
3385
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 ac_clean_files="$ac_clean_files conftest.out"
3391 # Check that the compiler produces executables we can run. If not, either
3392 # the compiler is broken, or we cross compile.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3394 $as_echo_n "checking whether we are cross compiling... " >&6; }
3395 if test "$cross_compiling" != yes; then
3396 { { ac_try="$ac_link"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 if { ac_try='./conftest$ac_cv_exeext'
3408 { { case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_try") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; }; then
3418 cross_compiling=no
3419 else
3420 if test "$cross_compiling" = maybe; then
3421 cross_compiling=yes
3422 else
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot run C compiled programs.
3426 If you meant to cross compile, use \`--host'.
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 fi
3429 fi
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3432 $as_echo "$cross_compiling" >&6; }
3433
3434 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3435 ac_clean_files=$ac_clean_files_save
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3437 $as_echo_n "checking for suffix of object files... " >&6; }
3438 if ${ac_cv_objext+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 rm -f conftest.o conftest.obj
3453 if { { ac_try="$ac_compile"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compile") 2>&5
3461 ac_status=$?
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }; then :
3464 for ac_file in conftest.o conftest.obj conftest.*; do
3465 test -f "$ac_file" || continue;
3466 case $ac_file in
3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3469 break;;
3470 esac
3471 done
3472 else
3473 $as_echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot compute suffix of object files: cannot compile
3479 See \`config.log' for more details" "$LINENO" 5; }
3480 fi
3481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3484 $as_echo "$ac_cv_objext" >&6; }
3485 OBJEXT=$ac_cv_objext
3486 ac_objext=$OBJEXT
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3488 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3489 if ${ac_cv_c_compiler_gnu+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498 #ifndef __GNUC__
3499 choke me
3500 #endif
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507 ac_compiler_gnu=yes
3508 else
3509 ac_compiler_gnu=no
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3517 if test $ac_compiler_gnu = yes; then
3518 GCC=yes
3519 else
3520 GCC=
3521 fi
3522 ac_test_CFLAGS=${CFLAGS+set}
3523 ac_save_CFLAGS=$CFLAGS
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3526 if ${ac_cv_prog_cc_g+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 ac_save_c_werror_flag=$ac_c_werror_flag
3530 ac_c_werror_flag=yes
3531 ac_cv_prog_cc_g=no
3532 CFLAGS="-g"
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_g=yes
3546 else
3547 CFLAGS=""
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560
3561 else
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563 CFLAGS="-g"
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_cv_prog_cc_g=yes
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3586 $as_echo "$ac_cv_prog_cc_g" >&6; }
3587 if test "$ac_test_CFLAGS" = set; then
3588 CFLAGS=$ac_save_CFLAGS
3589 elif test $ac_cv_prog_cc_g = yes; then
3590 if test "$GCC" = yes; then
3591 CFLAGS="-g -O2"
3592 else
3593 CFLAGS="-g"
3594 fi
3595 else
3596 if test "$GCC" = yes; then
3597 CFLAGS="-O2"
3598 else
3599 CFLAGS=
3600 fi
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3604 if ${ac_cv_prog_cc_c89+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_cv_prog_cc_c89=no
3608 ac_save_CC=$CC
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611 #include <stdarg.h>
3612 #include <stdio.h>
3613 #include <sys/types.h>
3614 #include <sys/stat.h>
3615 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3616 struct buf { int x; };
3617 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618 static char *e (p, i)
3619 char **p;
3620 int i;
3621 {
3622 return p[i];
3623 }
3624 static char *f (char * (*g) (char **, int), char **p, ...)
3625 {
3626 char *s;
3627 va_list v;
3628 va_start (v,p);
3629 s = g (p, va_arg (v,int));
3630 va_end (v);
3631 return s;
3632 }
3633
3634 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3635 function prototypes and stuff, but not '\xHH' hex character constants.
3636 These don't provoke an error unfortunately, instead are silently treated
3637 as 'x'. The following induces an error, until -std is added to get
3638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3639 array size at least. It's necessary to write '\x00'==0 to get something
3640 that's true only with -std. */
3641 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644 inside strings and character constants. */
3645 #define FOO(x) 'x'
3646 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648 int test (int i, double x);
3649 struct s1 {int (*f) (int a);};
3650 struct s2 {int (*f) (double a);};
3651 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652 int argc;
3653 char **argv;
3654 int
3655 main ()
3656 {
3657 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664 do
3665 CC="$ac_save_CC $ac_arg"
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_cv_prog_cc_c89=$ac_arg
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext
3670 test "x$ac_cv_prog_cc_c89" != "xno" && break
3671 done
3672 rm -f conftest.$ac_ext
3673 CC=$ac_save_CC
3674
3675 fi
3676 # AC_CACHE_VAL
3677 case "x$ac_cv_prog_cc_c89" in
3678 x)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680 $as_echo "none needed" >&6; } ;;
3681 xno)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683 $as_echo "unsupported" >&6; } ;;
3684 *)
3685 CC="$CC $ac_cv_prog_cc_c89"
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3687 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3688 esac
3689 if test "x$ac_cv_prog_cc_c89" != xno; then :
3690
3691 fi
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699 depcc="$CC" am_compiler_list=
3700
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3702 $as_echo_n "checking dependency style of $depcc... " >&6; }
3703 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3707 # We make a subdir and do the tests there. Otherwise we can end up
3708 # making bogus files that we don't know about and never remove. For
3709 # instance it was reported that on HP-UX the gcc test will end up
3710 # making a dummy file named `D' -- because `-MD' means `put the output
3711 # in D'.
3712 mkdir conftest.dir
3713 # Copy depcomp to subdir because otherwise we won't find it if we're
3714 # using a relative directory.
3715 cp "$am_depcomp" conftest.dir
3716 cd conftest.dir
3717 # We will build objects and dependencies in a subdirectory because
3718 # it helps to detect inapplicable dependency modes. For instance
3719 # both Tru64's cc and ICC support -MD to output dependencies as a
3720 # side effect of compilation, but ICC will put the dependencies in
3721 # the current directory while Tru64 will put them in the object
3722 # directory.
3723 mkdir sub
3724
3725 am_cv_CC_dependencies_compiler_type=none
3726 if test "$am_compiler_list" = ""; then
3727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 fi
3729 am__universal=false
3730 case " $depcc " in #(
3731 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3732 esac
3733
3734 for depmode in $am_compiler_list; do
3735 # Setup a source with many dependencies, because some compilers
3736 # like to wrap large dependency lists on column 80 (with \), and
3737 # we should not choose a depcomp mode which is confused by this.
3738 #
3739 # We need to recreate these files for each test, as the compiler may
3740 # overwrite some of them when testing with obscure command lines.
3741 # This happens at least with the AIX C compiler.
3742 : > sub/conftest.c
3743 for i in 1 2 3 4 5 6; do
3744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3746 # Solaris 8's {/usr,}/bin/sh.
3747 touch sub/conftst$i.h
3748 done
3749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750
3751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3752 # mode. It turns out that the SunPro C++ compiler does not properly
3753 # handle `-M -o', and we need to detect this. Also, some Intel
3754 # versions had trouble with output in subdirs
3755 am__obj=sub/conftest.${OBJEXT-o}
3756 am__minus_obj="-o $am__obj"
3757 case $depmode in
3758 gcc)
3759 # This depmode causes a compiler race in universal mode.
3760 test "$am__universal" = false || continue
3761 ;;
3762 nosideeffect)
3763 # after this tag, mechanisms are not by side-effect, so they'll
3764 # only be used when explicitly requested
3765 if test "x$enable_dependency_tracking" = xyes; then
3766 continue
3767 else
3768 break
3769 fi
3770 ;;
3771 msvisualcpp | msvcmsys)
3772 # This compiler won't grok `-c -o', but also, the minuso test has
3773 # not run yet. These depmodes are late enough in the game, and
3774 # so weak that their functioning should not be impacted.
3775 am__obj=conftest.${OBJEXT-o}
3776 am__minus_obj=
3777 ;;
3778 none) break ;;
3779 esac
3780 if depmode=$depmode \
3781 source=sub/conftest.c object=$am__obj \
3782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3784 >/dev/null 2>conftest.err &&
3785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3789 # icc doesn't choke on unknown options, it will just issue warnings
3790 # or remarks (even with -Werror). So we grep stderr for any message
3791 # that says an option was ignored or not supported.
3792 # When given -MP, icc 7.0 and 7.1 complain thusly:
3793 # icc: Command line warning: ignoring option '-M'; no argument required
3794 # The diagnosis changed in icc 8.0:
3795 # icc: Command line remark: option '-MP' not supported
3796 if (grep 'ignoring option' conftest.err ||
3797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3798 am_cv_CC_dependencies_compiler_type=$depmode
3799 break
3800 fi
3801 fi
3802 done
3803
3804 cd ..
3805 rm -rf conftest.dir
3806 else
3807 am_cv_CC_dependencies_compiler_type=none
3808 fi
3809
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3813 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3814
3815 if
3816 test "x$enable_dependency_tracking" != xno \
3817 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3818 am__fastdepCC_TRUE=
3819 am__fastdepCC_FALSE='#'
3820 else
3821 am__fastdepCC_TRUE='#'
3822 am__fastdepCC_FALSE=
3823 fi
3824
3825
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836 CPP=
3837 fi
3838 if test -z "$CPP"; then
3839 if ${ac_cv_prog_CPP+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844 do
3845 ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861 Syntax error
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864
3865 else
3866 # Broken: fails on valid input.
3867 continue
3868 fi
3869 rm -f conftest.err conftest.i conftest.$ac_ext
3870
3871 # OK, works on sane cases. Now check whether nonexistent headers
3872 # can be detected and how.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <ac_nonexistent.h>
3876 _ACEOF
3877 if ac_fn_c_try_cpp "$LINENO"; then :
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3884 fi
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3886
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.i conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then :
3891 break
3892 fi
3893
3894 done
3895 ac_cv_prog_CPP=$CPP
3896
3897 fi
3898 CPP=$ac_cv_prog_CPP
3899 else
3900 ac_cv_prog_CPP=$CPP
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3903 $as_echo "$CPP" >&6; }
3904 ac_preproc_ok=false
3905 for ac_c_preproc_warn_flag in '' yes
3906 do
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920 Syntax error
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923
3924 else
3925 # Broken: fails on valid input.
3926 continue
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3935 _ACEOF
3936 if ac_fn_c_try_cpp "$LINENO"; then :
3937 # Broken: success on invalid input.
3938 continue
3939 else
3940 # Passes both tests.
3941 ac_preproc_ok=:
3942 break
3943 fi
3944 rm -f conftest.err conftest.i conftest.$ac_ext
3945
3946 done
3947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948 rm -f conftest.i conftest.err conftest.$ac_ext
3949 if $ac_preproc_ok; then :
3950
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3967 if ${ac_cv_path_GREP+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -z "$GREP"; then
3971 ac_path_GREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in grep ggrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3982 # Check for GNU ac_path_GREP and select it if it is found.
3983 # Check for GNU $ac_path_GREP
3984 case `"$ac_path_GREP" --version 2>&1` in
3985 *GNU*)
3986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987 *)
3988 ac_count=0
3989 $as_echo_n 0123456789 >"conftest.in"
3990 while :
3991 do
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'GREP' >> "conftest.nl"
3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_GREP="$ac_path_GREP"
4002 ac_path_GREP_max=$ac_count
4003 fi
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4009
4010 $ac_path_GREP_found && break 3
4011 done
4012 done
4013 done
4014 IFS=$as_save_IFS
4015 if test -z "$ac_cv_path_GREP"; then
4016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017 fi
4018 else
4019 ac_cv_path_GREP=$GREP
4020 fi
4021
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4024 $as_echo "$ac_cv_path_GREP" >&6; }
4025 GREP="$ac_cv_path_GREP"
4026
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4029 $as_echo_n "checking for egrep... " >&6; }
4030 if ${ac_cv_path_EGREP+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034 then ac_cv_path_EGREP="$GREP -E"
4035 else
4036 if test -z "$EGREP"; then
4037 ac_path_EGREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in egrep; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4048 # Check for GNU ac_path_EGREP and select it if it is found.
4049 # Check for GNU $ac_path_EGREP
4050 case `"$ac_path_EGREP" --version 2>&1` in
4051 *GNU*)
4052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4053 *)
4054 ac_count=0
4055 $as_echo_n 0123456789 >"conftest.in"
4056 while :
4057 do
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
4061 $as_echo 'EGREP' >> "conftest.nl"
4062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
4065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_EGREP="$ac_path_EGREP"
4068 ac_path_EGREP_max=$ac_count
4069 fi
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4072 done
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 esac
4075
4076 $ac_path_EGREP_found && break 3
4077 done
4078 done
4079 done
4080 IFS=$as_save_IFS
4081 if test -z "$ac_cv_path_EGREP"; then
4082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4083 fi
4084 else
4085 ac_cv_path_EGREP=$EGREP
4086 fi
4087
4088 fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4091 $as_echo "$ac_cv_path_EGREP" >&6; }
4092 EGREP="$ac_cv_path_EGREP"
4093
4094
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4096 $as_echo_n "checking for ANSI C header files... " >&6; }
4097 if ${ac_cv_header_stdc+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <stdlib.h>
4103 #include <stdarg.h>
4104 #include <string.h>
4105 #include <float.h>
4106
4107 int
4108 main ()
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_header_stdc=yes
4117 else
4118 ac_cv_header_stdc=no
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121
4122 if test $ac_cv_header_stdc = yes; then
4123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <string.h>
4127
4128 _ACEOF
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "memchr" >/dev/null 2>&1; then :
4131
4132 else
4133 ac_cv_header_stdc=no
4134 fi
4135 rm -f conftest*
4136
4137 fi
4138
4139 if test $ac_cv_header_stdc = yes; then
4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <stdlib.h>
4144
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 $EGREP "free" >/dev/null 2>&1; then :
4148
4149 else
4150 ac_cv_header_stdc=no
4151 fi
4152 rm -f conftest*
4153
4154 fi
4155
4156 if test $ac_cv_header_stdc = yes; then
4157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158 if test "$cross_compiling" = yes; then :
4159 :
4160 else
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <ctype.h>
4164 #include <stdlib.h>
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 #else
4169 # define ISLOWER(c) \
4170 (('a' <= (c) && (c) <= 'i') \
4171 || ('j' <= (c) && (c) <= 'r') \
4172 || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #endif
4175
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4177 int
4178 main ()
4179 {
4180 int i;
4181 for (i = 0; i < 256; i++)
4182 if (XOR (islower (i), ISLOWER (i))
4183 || toupper (i) != TOUPPER (i))
4184 return 2;
4185 return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_run "$LINENO"; then :
4189
4190 else
4191 ac_cv_header_stdc=no
4192 fi
4193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4194 conftest.$ac_objext conftest.beam conftest.$ac_ext
4195 fi
4196
4197 fi
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4200 $as_echo "$ac_cv_header_stdc" >&6; }
4201 if test $ac_cv_header_stdc = yes; then
4202
4203 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4204
4205 fi
4206
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4209 inttypes.h stdint.h unistd.h
4210 do :
4211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4213 "
4214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4215 cat >>confdefs.h <<_ACEOF
4216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 _ACEOF
4218
4219 fi
4220
4221 done
4222
4223
4224
4225 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4226 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4227 MINIX=yes
4228 else
4229 MINIX=
4230 fi
4231
4232
4233 if test "$MINIX" = yes; then
4234
4235 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4236
4237
4238 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4239
4240
4241 $as_echo "#define _MINIX 1" >>confdefs.h
4242
4243 fi
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4247 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4248 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253
4254 # define __EXTENSIONS__ 1
4255 $ac_includes_default
4256 int
4257 main ()
4258 {
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_cv_safe_to_define___extensions__=yes
4266 else
4267 ac_cv_safe_to_define___extensions__=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4272 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4273 test $ac_cv_safe_to_define___extensions__ = yes &&
4274 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4275
4276 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4277
4278 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4279
4280 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4281
4282 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4283
4284
4285
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4288 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4289 if ${ac_cv_prog_cc_c99+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 ac_cv_prog_cc_c99=no
4293 ac_save_CC=$CC
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <stdarg.h>
4297 #include <stdbool.h>
4298 #include <stdlib.h>
4299 #include <wchar.h>
4300 #include <stdio.h>
4301
4302 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4303 #define debug(...) fprintf (stderr, __VA_ARGS__)
4304 #define showlist(...) puts (#__VA_ARGS__)
4305 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4306 static void
4307 test_varargs_macros (void)
4308 {
4309 int x = 1234;
4310 int y = 5678;
4311 debug ("Flag");
4312 debug ("X = %d\n", x);
4313 showlist (The first, second, and third items.);
4314 report (x>y, "x is %d but y is %d", x, y);
4315 }
4316
4317 // Check long long types.
4318 #define BIG64 18446744073709551615ull
4319 #define BIG32 4294967295ul
4320 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4321 #if !BIG_OK
4322 your preprocessor is broken;
4323 #endif
4324 #if BIG_OK
4325 #else
4326 your preprocessor is broken;
4327 #endif
4328 static long long int bignum = -9223372036854775807LL;
4329 static unsigned long long int ubignum = BIG64;
4330
4331 struct incomplete_array
4332 {
4333 int datasize;
4334 double data[];
4335 };
4336
4337 struct named_init {
4338 int number;
4339 const wchar_t *name;
4340 double average;
4341 };
4342
4343 typedef const char *ccp;
4344
4345 static inline int
4346 test_restrict (ccp restrict text)
4347 {
4348 // See if C++-style comments work.
4349 // Iterate through items via the restricted pointer.
4350 // Also check for declarations in for loops.
4351 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4352 continue;
4353 return 0;
4354 }
4355
4356 // Check varargs and va_copy.
4357 static void
4358 test_varargs (const char *format, ...)
4359 {
4360 va_list args;
4361 va_start (args, format);
4362 va_list args_copy;
4363 va_copy (args_copy, args);
4364
4365 const char *str;
4366 int number;
4367 float fnumber;
4368
4369 while (*format)
4370 {
4371 switch (*format++)
4372 {
4373 case 's': // string
4374 str = va_arg (args_copy, const char *);
4375 break;
4376 case 'd': // int
4377 number = va_arg (args_copy, int);
4378 break;
4379 case 'f': // float
4380 fnumber = va_arg (args_copy, double);
4381 break;
4382 default:
4383 break;
4384 }
4385 }
4386 va_end (args_copy);
4387 va_end (args);
4388 }
4389
4390 int
4391 main ()
4392 {
4393
4394 // Check bool.
4395 _Bool success = false;
4396
4397 // Check restrict.
4398 if (test_restrict ("String literal") == 0)
4399 success = true;
4400 char *restrict newvar = "Another string";
4401
4402 // Check varargs.
4403 test_varargs ("s, d' f .", "string", 65, 34.234);
4404 test_varargs_macros ();
4405
4406 // Check flexible array members.
4407 struct incomplete_array *ia =
4408 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4409 ia->datasize = 10;
4410 for (int i = 0; i < ia->datasize; ++i)
4411 ia->data[i] = i * 1.234;
4412
4413 // Check named initializers.
4414 struct named_init ni = {
4415 .number = 34,
4416 .name = L"Test wide string",
4417 .average = 543.34343,
4418 };
4419
4420 ni.number = 58;
4421
4422 int dynamic_array[ni.number];
4423 dynamic_array[ni.number - 1] = 543;
4424
4425 // work around unused variable warnings
4426 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4427 || dynamic_array[ni.number - 1] != 543);
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4434 do
4435 CC="$ac_save_CC $ac_arg"
4436 if ac_fn_c_try_compile "$LINENO"; then :
4437 ac_cv_prog_cc_c99=$ac_arg
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext
4440 test "x$ac_cv_prog_cc_c99" != "xno" && break
4441 done
4442 rm -f conftest.$ac_ext
4443 CC=$ac_save_CC
4444
4445 fi
4446 # AC_CACHE_VAL
4447 case "x$ac_cv_prog_cc_c99" in
4448 x)
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4450 $as_echo "none needed" >&6; } ;;
4451 xno)
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4453 $as_echo "unsupported" >&6; } ;;
4454 *)
4455 CC="$CC $ac_cv_prog_cc_c99"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4457 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4458 esac
4459 if test "x$ac_cv_prog_cc_c99" != xno; then :
4460
4461 fi
4462
4463
4464
4465 if test x"$ac_cv_prog_cc_c99" = "xno"; then
4466 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4467 fi
4468
4469
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4472 $as_echo_n "checking for egrep... " >&6; }
4473 if ${ac_cv_path_EGREP+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4477 then ac_cv_path_EGREP="$GREP -E"
4478 else
4479 if test -z "$EGREP"; then
4480 ac_path_EGREP_found=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_prog in egrep; do
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4491 # Check for GNU ac_path_EGREP and select it if it is found.
4492 # Check for GNU $ac_path_EGREP
4493 case `"$ac_path_EGREP" --version 2>&1` in
4494 *GNU*)
4495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4496 *)
4497 ac_count=0
4498 $as_echo_n 0123456789 >"conftest.in"
4499 while :
4500 do
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 $as_echo 'EGREP' >> "conftest.nl"
4505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507 as_fn_arith $ac_count + 1 && ac_count=$as_val
4508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_EGREP="$ac_path_EGREP"
4511 ac_path_EGREP_max=$ac_count
4512 fi
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4515 done
4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 esac
4518
4519 $ac_path_EGREP_found && break 3
4520 done
4521 done
4522 done
4523 IFS=$as_save_IFS
4524 if test -z "$ac_cv_path_EGREP"; then
4525 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4526 fi
4527 else
4528 ac_cv_path_EGREP=$EGREP
4529 fi
4530
4531 fi
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4534 $as_echo "$ac_cv_path_EGREP" >&6; }
4535 EGREP="$ac_cv_path_EGREP"
4536
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4539 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4540 if ${ac_cv_path_SED+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4544 for ac_i in 1 2 3 4 5 6 7; do
4545 ac_script="$ac_script$as_nl$ac_script"
4546 done
4547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4548 { ac_script=; unset ac_script;}
4549 if test -z "$SED"; then
4550 ac_path_SED_found=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_prog in sed gsed; do
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4560 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4561 # Check for GNU ac_path_SED and select it if it is found.
4562 # Check for GNU $ac_path_SED
4563 case `"$ac_path_SED" --version 2>&1` in
4564 *GNU*)
4565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4566 *)
4567 ac_count=0
4568 $as_echo_n 0123456789 >"conftest.in"
4569 while :
4570 do
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 $as_echo '' >> "conftest.nl"
4575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577 as_fn_arith $ac_count + 1 && ac_count=$as_val
4578 if test $ac_count -gt ${ac_path_SED_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_SED="$ac_path_SED"
4581 ac_path_SED_max=$ac_count
4582 fi
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
4585 done
4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587 esac
4588
4589 $ac_path_SED_found && break 3
4590 done
4591 done
4592 done
4593 IFS=$as_save_IFS
4594 if test -z "$ac_cv_path_SED"; then
4595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4596 fi
4597 else
4598 ac_cv_path_SED=$SED
4599 fi
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4603 $as_echo "$ac_cv_path_SED" >&6; }
4604 SED="$ac_cv_path_SED"
4605 rm -f conftest.sed
4606
4607
4608 F77=no
4609 CXX=no
4610 GCJ=no
4611
4612 # Check whether --enable-static was given.
4613 if test "${enable_static+set}" = set; then :
4614 enableval=$enable_static; p=${PACKAGE-default}
4615 case $enableval in
4616 yes) enable_static=yes ;;
4617 no) enable_static=no ;;
4618 *)
4619 enable_static=no
4620 # Look at the argument we got. We use all the common list separators.
4621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4622 for pkg in $enableval; do
4623 IFS="$lt_save_ifs"
4624 if test "X$pkg" = "X$p"; then
4625 enable_static=yes
4626 fi
4627 done
4628 IFS="$lt_save_ifs"
4629 ;;
4630 esac
4631 else
4632 enable_static=no
4633 fi
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643 # Check whether --enable-shared was given.
4644 if test "${enable_shared+set}" = set; then :
4645 enableval=$enable_shared; p=${PACKAGE-default}
4646 case $enableval in
4647 yes) enable_shared=yes ;;
4648 no) enable_shared=no ;;
4649 *)
4650 enable_shared=no
4651 # Look at the argument we got. We use all the common list separators.
4652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4653 for pkg in $enableval; do
4654 IFS="$lt_save_ifs"
4655 if test "X$pkg" = "X$p"; then
4656 enable_shared=yes
4657 fi
4658 done
4659 IFS="$lt_save_ifs"
4660 ;;
4661 esac
4662 else
4663 enable_shared=yes
4664 fi
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4676 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4677 # Check whether --enable-maintainer-mode was given.
4678 if test "${enable_maintainer_mode+set}" = set; then :
4679 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4680 else
4681 USE_MAINTAINER_MODE=no
4682 fi
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4685 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4686 if test $USE_MAINTAINER_MODE = yes; then
4687 MAINTAINER_MODE_TRUE=
4688 MAINTAINER_MODE_FALSE='#'
4689 else
4690 MAINTAINER_MODE_TRUE='#'
4691 MAINTAINER_MODE_FALSE=
4692 fi
4693
4694 MAINT=$MAINTAINER_MODE_TRUE
4695
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4699 $as_echo_n "checking for library containing strerror... " >&6; }
4700 if ${ac_cv_search_strerror+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_func_search_save_LIBS=$LIBS
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706
4707 /* Override any GCC internal prototype to avoid an error.
4708 Use char because int might match the return type of a GCC
4709 builtin and then its argument prototype would still apply. */
4710 #ifdef __cplusplus
4711 extern "C"
4712 #endif
4713 char strerror ();
4714 int
4715 main ()
4716 {
4717 return strerror ();
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 for ac_lib in '' cposix; do
4723 if test -z "$ac_lib"; then
4724 ac_res="none required"
4725 else
4726 ac_res=-l$ac_lib
4727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4728 fi
4729 if ac_fn_c_try_link "$LINENO"; then :
4730 ac_cv_search_strerror=$ac_res
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext
4734 if ${ac_cv_search_strerror+:} false; then :
4735 break
4736 fi
4737 done
4738 if ${ac_cv_search_strerror+:} false; then :
4739
4740 else
4741 ac_cv_search_strerror=no
4742 fi
4743 rm conftest.$ac_ext
4744 LIBS=$ac_func_search_save_LIBS
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4747 $as_echo "$ac_cv_search_strerror" >&6; }
4748 ac_res=$ac_cv_search_strerror
4749 if test "$ac_res" != no; then :
4750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4751
4752 fi
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4755 $as_echo_n "checking for inline... " >&6; }
4756 if ${ac_cv_c_inline+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 ac_cv_c_inline=no
4760 for ac_kw in inline __inline__ __inline; do
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 #ifndef __cplusplus
4764 typedef int foo_t;
4765 static $ac_kw foo_t static_foo () {return 0; }
4766 $ac_kw foo_t foo () {return 0; }
4767 #endif
4768
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_c_inline=$ac_kw
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 test "$ac_cv_c_inline" != no && break
4775 done
4776
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4779 $as_echo "$ac_cv_c_inline" >&6; }
4780
4781 case $ac_cv_c_inline in
4782 inline | yes) ;;
4783 *)
4784 case $ac_cv_c_inline in
4785 no) ac_val=;;
4786 *) ac_val=$ac_cv_c_inline;;
4787 esac
4788 cat >>confdefs.h <<_ACEOF
4789 #ifndef __cplusplus
4790 #define inline $ac_val
4791 #endif
4792 _ACEOF
4793 ;;
4794 esac
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4797 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4798 if ${ac_cv_c_const+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803
4804 int
4805 main ()
4806 {
4807 /* FIXME: Include the comments suggested by Paul. */
4808 #ifndef __cplusplus
4809 /* Ultrix mips cc rejects this. */
4810 typedef int charset[2];
4811 const charset cs;
4812 /* SunOS 4.1.1 cc rejects this. */
4813 char const *const *pcpcc;
4814 char **ppc;
4815 /* NEC SVR4.0.2 mips cc rejects this. */
4816 struct point {int x, y;};
4817 static struct point const zero = {0,0};
4818 /* AIX XL C 1.02.0.0 rejects this.
4819 It does not let you subtract one const X* pointer from another in
4820 an arm of an if-expression whose if-part is not a constant
4821 expression */
4822 const char *g = "string";
4823 pcpcc = &g + (g ? g-g : 0);
4824 /* HPUX 7.0 cc rejects these. */
4825 ++pcpcc;
4826 ppc = (char**) pcpcc;
4827 pcpcc = (char const *const *) ppc;
4828 { /* SCO 3.2v4 cc rejects this. */
4829 char *t;
4830 char const *s = 0 ? (char *) 0 : (char const *) 0;
4831
4832 *t++ = 0;
4833 if (s) return 0;
4834 }
4835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4836 int x[] = {25, 17};
4837 const int *foo = &x[0];
4838 ++foo;
4839 }
4840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4841 typedef const int *iptr;
4842 iptr p = 0;
4843 ++p;
4844 }
4845 { /* AIX XL C 1.02.0.0 rejects this saying
4846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4847 struct s { int j; const int *ap[3]; };
4848 struct s *b; b->j = 5;
4849 }
4850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4851 const int foo = 10;
4852 if (!foo) return 0;
4853 }
4854 return !cs[0] && !zero.x;
4855 #endif
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 ac_cv_c_const=yes
4863 else
4864 ac_cv_c_const=no
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4869 $as_echo "$ac_cv_c_const" >&6; }
4870 if test $ac_cv_c_const = no; then
4871
4872 $as_echo "#define const /**/" >>confdefs.h
4873
4874 fi
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4877 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4878 if ${ac_cv_c_bigendian+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 ac_cv_c_bigendian=unknown
4882 # See if we're dealing with a universal compiler.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #ifndef __APPLE_CC__
4886 not a universal capable compiler
4887 #endif
4888 typedef int dummy;
4889
4890 _ACEOF
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892
4893 # Check for potential -arch flags. It is not universal unless
4894 # there are at least two -arch flags with different values.
4895 ac_arch=
4896 ac_prev=
4897 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4898 if test -n "$ac_prev"; then
4899 case $ac_word in
4900 i?86 | x86_64 | ppc | ppc64)
4901 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4902 ac_arch=$ac_word
4903 else
4904 ac_cv_c_bigendian=universal
4905 break
4906 fi
4907 ;;
4908 esac
4909 ac_prev=
4910 elif test "x$ac_word" = "x-arch"; then
4911 ac_prev=arch
4912 fi
4913 done
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 if test $ac_cv_c_bigendian = unknown; then
4917 # See if sys/param.h defines the BYTE_ORDER macro.
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 #include <sys/types.h>
4921 #include <sys/param.h>
4922
4923 int
4924 main ()
4925 {
4926 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4927 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4928 && LITTLE_ENDIAN)
4929 bogus endian macros
4930 #endif
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 # It does; now see whether it defined to BIG_ENDIAN or not.
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 #include <sys/types.h>
4941 #include <sys/param.h>
4942
4943 int
4944 main ()
4945 {
4946 #if BYTE_ORDER != BIG_ENDIAN
4947 not big endian
4948 #endif
4949
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_c_bigendian=yes
4956 else
4957 ac_cv_c_bigendian=no
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 fi
4963 if test $ac_cv_c_bigendian = unknown; then
4964 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <limits.h>
4968
4969 int
4970 main ()
4971 {
4972 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4973 bogus endian macros
4974 #endif
4975
4976 ;
4977 return 0;
4978 }
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 # It does; now see whether it defined to _BIG_ENDIAN or not.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #include <limits.h>
4985
4986 int
4987 main ()
4988 {
4989 #ifndef _BIG_ENDIAN
4990 not big endian
4991 #endif
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998 ac_cv_c_bigendian=yes
4999 else
5000 ac_cv_c_bigendian=no
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 fi
5006 if test $ac_cv_c_bigendian = unknown; then
5007 # Compile a test program.
5008 if test "$cross_compiling" = yes; then :
5009 # Try to guess by grepping values from an object file.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 short int ascii_mm[] =
5013 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5014 short int ascii_ii[] =
5015 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5016 int use_ascii (int i) {
5017 return ascii_mm[i] + ascii_ii[i];
5018 }
5019 short int ebcdic_ii[] =
5020 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5021 short int ebcdic_mm[] =
5022 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5023 int use_ebcdic (int i) {
5024 return ebcdic_mm[i] + ebcdic_ii[i];
5025 }
5026 extern int foo;
5027
5028 int
5029 main ()
5030 {
5031 return use_ascii (foo) == use_ebcdic (foo);
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5038 ac_cv_c_bigendian=yes
5039 fi
5040 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5041 if test "$ac_cv_c_bigendian" = unknown; then
5042 ac_cv_c_bigendian=no
5043 else
5044 # finding both strings is unlikely to happen, but who knows?
5045 ac_cv_c_bigendian=unknown
5046 fi
5047 fi
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 $ac_includes_default
5054 int
5055 main ()
5056 {
5057
5058 /* Are we little or big endian? From Harbison&Steele. */
5059 union
5060 {
5061 long int l;
5062 char c[sizeof (long int)];
5063 } u;
5064 u.l = 1;
5065 return u.c[sizeof (long int) - 1] == 1;
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_run "$LINENO"; then :
5072 ac_cv_c_bigendian=no
5073 else
5074 ac_cv_c_bigendian=yes
5075 fi
5076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5077 conftest.$ac_objext conftest.beam conftest.$ac_ext
5078 fi
5079
5080 fi
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5083 $as_echo "$ac_cv_c_bigendian" >&6; }
5084 case $ac_cv_c_bigendian in #(
5085 yes)
5086 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5087 ;; #(
5088 no)
5089 ;; #(
5090 universal)
5091
5092 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5093
5094 ;; #(
5095 *)
5096 as_fn_error $? "unknown endianness
5097 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5098 esac
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5101 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5102 set x ${MAKE-make}
5103 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5104 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 cat >conftest.make <<\_ACEOF
5108 SHELL = /bin/sh
5109 all:
5110 @echo '@@@%%%=$(MAKE)=@@@%%%'
5111 _ACEOF
5112 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5113 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5114 *@@@%%%=?*=@@@%%%*)
5115 eval ac_cv_prog_make_${ac_make}_set=yes;;
5116 *)
5117 eval ac_cv_prog_make_${ac_make}_set=no;;
5118 esac
5119 rm -f conftest.make
5120 fi
5121 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5124 SET_MAKE=
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 SET_MAKE="MAKE=${MAKE-make}"
5129 fi
5130
5131
5132 # Extract the first word of "automake", so it can be a program name with args.
5133 set dummy automake; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_path_AUTOMAKE+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 case $AUTOMAKE in
5140 [\\/]* | ?:[\\/]*)
5141 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5142 ;;
5143 *)
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5154 fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 ;;
5160 esac
5161 fi
5162 AUTOMAKE=$ac_cv_path_AUTOMAKE
5163 if test -n "$AUTOMAKE"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5165 $as_echo "$AUTOMAKE" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 # Extract the first word of "aclocal", so it can be a program name with args.
5173 set dummy aclocal; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_path_ACLOCAL+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 case $ACLOCAL in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5182 ;;
5183 *)
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 ;;
5200 esac
5201 fi
5202 ACLOCAL=$ac_cv_path_ACLOCAL
5203 if test -n "$ACLOCAL"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5205 $as_echo "$ACLOCAL" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212 # Extract the first word of "autoheader", so it can be a program name with args.
5213 set dummy autoheader; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_AUTOHEADER+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 case $AUTOHEADER in
5220 [\\/]* | ?:[\\/]*)
5221 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5222 ;;
5223 *)
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 ;;
5240 esac
5241 fi
5242 AUTOHEADER=$ac_cv_path_AUTOHEADER
5243 if test -n "$AUTOHEADER"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5245 $as_echo "$AUTOHEADER" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251
5252 # Extract the first word of "as", so it can be a program name with args.
5253 set dummy as; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_path_AS+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 case $AS in
5260 [\\/]* | ?:[\\/]*)
5261 ac_cv_path_AS="$AS" # Let the user override the test with a path.
5262 ;;
5263 *)
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 ;;
5280 esac
5281 fi
5282 AS=$ac_cv_path_AS
5283 if test -n "$AS"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5285 $as_echo "$AS" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292 # Extract the first word of "rm", so it can be a program name with args.
5293 set dummy rm; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_path_RM+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 case $RM in
5300 [\\/]* | ?:[\\/]*)
5301 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5302 ;;
5303 *)
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 ;;
5320 esac
5321 fi
5322 RM=$ac_cv_path_RM
5323 if test -n "$RM"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5325 $as_echo "$RM" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330
5331
5332 # Extract the first word of "cp", so it can be a program name with args.
5333 set dummy cp; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_CP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 case $CP in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5342 ;;
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 ;;
5360 esac
5361 fi
5362 CP=$ac_cv_path_CP
5363 if test -n "$CP"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5365 $as_echo "$CP" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 # Extract the first word of "mv", so it can be a program name with args.
5373 set dummy mv; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_path_MV+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 case $MV in
5380 [\\/]* | ?:[\\/]*)
5381 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5382 ;;
5383 *)
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 ;;
5400 esac
5401 fi
5402 MV=$ac_cv_path_MV
5403 if test -n "$MV"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5405 $as_echo "$MV" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412 # Extract the first word of "ln", so it can be a program name with args.
5413 set dummy ln; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_path_LN+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 case $LN in
5420 [\\/]* | ?:[\\/]*)
5421 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5422 ;;
5423 *)
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 ;;
5440 esac
5441 fi
5442 LN=$ac_cv_path_LN
5443 if test -n "$LN"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5445 $as_echo "$LN" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451
5452 # Extract the first word of "touch", so it can be a program name with args.
5453 set dummy touch; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_path_TOUCH+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 case $TOUCH in
5460 [\\/]* | ?:[\\/]*)
5461 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5462 ;;
5463 *)
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 ;;
5480 esac
5481 fi
5482 TOUCH=$ac_cv_path_TOUCH
5483 if test -n "$TOUCH"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5485 $as_echo "$TOUCH" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
5498
5499 case `pwd` in
5500 *\ * | *\ *)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5502 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5503 esac
5504
5505
5506
5507 macro_version='2.4'
5508 macro_revision='1.3293'
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 ltmain="$ac_aux_dir/ltmain.sh"
5523
5524 # Make sure we can run config.sub.
5525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5529 $as_echo_n "checking build system type... " >&6; }
5530 if ${ac_cv_build+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 ac_build_alias=$build_alias
5534 test "x$ac_build_alias" = x &&
5535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5536 test "x$ac_build_alias" = x &&
5537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5540
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5543 $as_echo "$ac_cv_build" >&6; }
5544 case $ac_cv_build in
5545 *-*-*) ;;
5546 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5547 esac
5548 build=$ac_cv_build
5549 ac_save_IFS=$IFS; IFS='-'
5550 set x $ac_cv_build
5551 shift
5552 build_cpu=$1
5553 build_vendor=$2
5554 shift; shift
5555 # Remember, the first character of IFS is used to create $*,
5556 # except with old shells:
5557 build_os=$*
5558 IFS=$ac_save_IFS
5559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5560
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5563 $as_echo_n "checking host system type... " >&6; }
5564 if ${ac_cv_host+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test "x$host_alias" = x; then
5568 ac_cv_host=$ac_cv_build
5569 else
5570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5572 fi
5573
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5576 $as_echo "$ac_cv_host" >&6; }
5577 case $ac_cv_host in
5578 *-*-*) ;;
5579 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5580 esac
5581 host=$ac_cv_host
5582 ac_save_IFS=$IFS; IFS='-'
5583 set x $ac_cv_host
5584 shift
5585 host_cpu=$1
5586 host_vendor=$2
5587 shift; shift
5588 # Remember, the first character of IFS is used to create $*,
5589 # except with old shells:
5590 host_os=$*
5591 IFS=$ac_save_IFS
5592 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5593
5594
5595 # Backslashify metacharacters that are still active within
5596 # double-quoted strings.
5597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5598
5599 # Same as above, but do not quote variable references.
5600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5601
5602 # Sed substitution to delay expansion of an escaped shell variable in a
5603 # double_quote_subst'ed string.
5604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5605
5606 # Sed substitution to delay expansion of an escaped single quote.
5607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5608
5609 # Sed substitution to avoid accidental globbing in evaled expressions
5610 no_glob_subst='s/\*/\\\*/g'
5611
5612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5617 $as_echo_n "checking how to print strings... " >&6; }
5618 # Test print first, because it will be a builtin if present.
5619 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5621 ECHO='print -r --'
5622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5623 ECHO='printf %s\n'
5624 else
5625 # Use this function as a fallback that always works.
5626 func_fallback_echo ()
5627 {
5628 eval 'cat <<_LTECHO_EOF
5629 $1
5630 _LTECHO_EOF'
5631 }
5632 ECHO='func_fallback_echo'
5633 fi
5634
5635 # func_echo_all arg...
5636 # Invoke $ECHO with all args, space-separated.
5637 func_echo_all ()
5638 {
5639 $ECHO ""
5640 }
5641
5642 case "$ECHO" in
5643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5644 $as_echo "printf" >&6; } ;;
5645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5646 $as_echo "print -r" >&6; } ;;
5647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5648 $as_echo "cat" >&6; } ;;
5649 esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5666 if ${ac_cv_path_SED+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5670 for ac_i in 1 2 3 4 5 6 7; do
5671 ac_script="$ac_script$as_nl$ac_script"
5672 done
5673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5674 { ac_script=; unset ac_script;}
5675 if test -z "$SED"; then
5676 ac_path_SED_found=false
5677 # Loop through the user's path and test for each of PROGNAME-LIST
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_prog in sed gsed; do
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5687 # Check for GNU ac_path_SED and select it if it is found.
5688 # Check for GNU $ac_path_SED
5689 case `"$ac_path_SED" --version 2>&1` in
5690 *GNU*)
5691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5692 *)
5693 ac_count=0
5694 $as_echo_n 0123456789 >"conftest.in"
5695 while :
5696 do
5697 cat "conftest.in" "conftest.in" >"conftest.tmp"
5698 mv "conftest.tmp" "conftest.in"
5699 cp "conftest.in" "conftest.nl"
5700 $as_echo '' >> "conftest.nl"
5701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5703 as_fn_arith $ac_count + 1 && ac_count=$as_val
5704 if test $ac_count -gt ${ac_path_SED_max-0}; then
5705 # Best one so far, save it but keep looking for a better one
5706 ac_cv_path_SED="$ac_path_SED"
5707 ac_path_SED_max=$ac_count
5708 fi
5709 # 10*(2^10) chars as input seems more than enough
5710 test $ac_count -gt 10 && break
5711 done
5712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5713 esac
5714
5715 $ac_path_SED_found && break 3
5716 done
5717 done
5718 done
5719 IFS=$as_save_IFS
5720 if test -z "$ac_cv_path_SED"; then
5721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5722 fi
5723 else
5724 ac_cv_path_SED=$SED
5725 fi
5726
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5729 $as_echo "$ac_cv_path_SED" >&6; }
5730 SED="$ac_cv_path_SED"
5731 rm -f conftest.sed
5732
5733 test -z "$SED" && SED=sed
5734 Xsed="$SED -e 1s/^X//"
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5747 $as_echo_n "checking for fgrep... " >&6; }
5748 if ${ac_cv_path_FGREP+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5752 then ac_cv_path_FGREP="$GREP -F"
5753 else
5754 if test -z "$FGREP"; then
5755 ac_path_FGREP_found=false
5756 # Loop through the user's path and test for each of PROGNAME-LIST
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_prog in fgrep; do
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5765 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5766 # Check for GNU ac_path_FGREP and select it if it is found.
5767 # Check for GNU $ac_path_FGREP
5768 case `"$ac_path_FGREP" --version 2>&1` in
5769 *GNU*)
5770 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5771 *)
5772 ac_count=0
5773 $as_echo_n 0123456789 >"conftest.in"
5774 while :
5775 do
5776 cat "conftest.in" "conftest.in" >"conftest.tmp"
5777 mv "conftest.tmp" "conftest.in"
5778 cp "conftest.in" "conftest.nl"
5779 $as_echo 'FGREP' >> "conftest.nl"
5780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782 as_fn_arith $ac_count + 1 && ac_count=$as_val
5783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5784 # Best one so far, save it but keep looking for a better one
5785 ac_cv_path_FGREP="$ac_path_FGREP"
5786 ac_path_FGREP_max=$ac_count
5787 fi
5788 # 10*(2^10) chars as input seems more than enough
5789 test $ac_count -gt 10 && break
5790 done
5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5792 esac
5793
5794 $ac_path_FGREP_found && break 3
5795 done
5796 done
5797 done
5798 IFS=$as_save_IFS
5799 if test -z "$ac_cv_path_FGREP"; then
5800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5801 fi
5802 else
5803 ac_cv_path_FGREP=$FGREP
5804 fi
5805
5806 fi
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5809 $as_echo "$ac_cv_path_FGREP" >&6; }
5810 FGREP="$ac_cv_path_FGREP"
5811
5812
5813 test -z "$GREP" && GREP=grep
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 # Check whether --with-gnu-ld was given.
5834 if test "${with_gnu_ld+set}" = set; then :
5835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5836 else
5837 with_gnu_ld=no
5838 fi
5839
5840 ac_prog=ld
5841 if test "$GCC" = yes; then
5842 # Check if gcc -print-prog-name=ld gives a path.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5844 $as_echo_n "checking for ld used by $CC... " >&6; }
5845 case $host in
5846 *-*-mingw*)
5847 # gcc leaves a trailing carriage return which upsets mingw
5848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5849 *)
5850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5851 esac
5852 case $ac_prog in
5853 # Accept absolute paths.
5854 [\\/]* | ?:[\\/]*)
5855 re_direlt='/[^/][^/]*/\.\./'
5856 # Canonicalize the pathname of ld
5857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5860 done
5861 test -z "$LD" && LD="$ac_prog"
5862 ;;
5863 "")
5864 # If it fails, then pretend we aren't using GCC.
5865 ac_prog=ld
5866 ;;
5867 *)
5868 # If it is relative, then search for the first ld in PATH.
5869 with_gnu_ld=unknown
5870 ;;
5871 esac
5872 elif test "$with_gnu_ld" = yes; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5874 $as_echo_n "checking for GNU ld... " >&6; }
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5877 $as_echo_n "checking for non-GNU ld... " >&6; }
5878 fi
5879 if ${lt_cv_path_LD+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test -z "$LD"; then
5883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5884 for ac_dir in $PATH; do
5885 IFS="$lt_save_ifs"
5886 test -z "$ac_dir" && ac_dir=.
5887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5888 lt_cv_path_LD="$ac_dir/$ac_prog"
5889 # Check to see if the program is GNU ld. I'd rather use --version,
5890 # but apparently some variants of GNU ld only accept -v.
5891 # Break only if it was the GNU/non-GNU ld that we prefer.
5892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5893 *GNU* | *'with BFD'*)
5894 test "$with_gnu_ld" != no && break
5895 ;;
5896 *)
5897 test "$with_gnu_ld" != yes && break
5898 ;;
5899 esac
5900 fi
5901 done
5902 IFS="$lt_save_ifs"
5903 else
5904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5905 fi
5906 fi
5907
5908 LD="$lt_cv_path_LD"
5909 if test -n "$LD"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5911 $as_echo "$LD" >&6; }
5912 else
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5919 if ${lt_cv_prog_gnu_ld+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5923 case `$LD -v 2>&1 </dev/null` in
5924 *GNU* | *'with BFD'*)
5925 lt_cv_prog_gnu_ld=yes
5926 ;;
5927 *)
5928 lt_cv_prog_gnu_ld=no
5929 ;;
5930 esac
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5934 with_gnu_ld=$lt_cv_prog_gnu_ld
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5946 if ${lt_cv_path_NM+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$NM"; then
5950 # Let the user override the test.
5951 lt_cv_path_NM="$NM"
5952 else
5953 lt_nm_to_check="${ac_tool_prefix}nm"
5954 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5955 lt_nm_to_check="$lt_nm_to_check nm"
5956 fi
5957 for lt_tmp_nm in $lt_nm_to_check; do
5958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5960 IFS="$lt_save_ifs"
5961 test -z "$ac_dir" && ac_dir=.
5962 tmp_nm="$ac_dir/$lt_tmp_nm"
5963 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5964 # Check to see if the nm accepts a BSD-compat flag.
5965 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5966 # nm: unknown option "B" ignored
5967 # Tru64's nm complains that /dev/null is an invalid object file
5968 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5969 */dev/null* | *'Invalid file or object type'*)
5970 lt_cv_path_NM="$tmp_nm -B"
5971 break
5972 ;;
5973 *)
5974 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5975 */dev/null*)
5976 lt_cv_path_NM="$tmp_nm -p"
5977 break
5978 ;;
5979 *)
5980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981 continue # so that we can try to find one that supports BSD flags
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 done
5988 IFS="$lt_save_ifs"
5989 done
5990 : ${lt_cv_path_NM=no}
5991 fi
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5994 $as_echo "$lt_cv_path_NM" >&6; }
5995 if test "$lt_cv_path_NM" != "no"; then
5996 NM="$lt_cv_path_NM"
5997 else
5998 # Didn't find any BSD compatible name lister, look for dumpbin.
5999 if test -n "$DUMPBIN"; then :
6000 # Let the user override the test.
6001 else
6002 if test -n "$ac_tool_prefix"; then
6003 for ac_prog in dumpbin "link -dump"
6004 do
6005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_DUMPBIN+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test -n "$DUMPBIN"; then
6013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 DUMPBIN=$ac_cv_prog_DUMPBIN
6033 if test -n "$DUMPBIN"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035 $as_echo "$DUMPBIN" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 test -n "$DUMPBIN" && break
6043 done
6044 fi
6045 if test -z "$DUMPBIN"; then
6046 ac_ct_DUMPBIN=$DUMPBIN
6047 for ac_prog in dumpbin "link -dump"
6048 do
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077 if test -n "$ac_ct_DUMPBIN"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079 $as_echo "$ac_ct_DUMPBIN" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 test -n "$ac_ct_DUMPBIN" && break
6087 done
6088
6089 if test "x$ac_ct_DUMPBIN" = x; then
6090 DUMPBIN=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 DUMPBIN=$ac_ct_DUMPBIN
6099 fi
6100 fi
6101
6102 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6103 *COFF*)
6104 DUMPBIN="$DUMPBIN -symbols"
6105 ;;
6106 *)
6107 DUMPBIN=:
6108 ;;
6109 esac
6110 fi
6111
6112 if test "$DUMPBIN" != ":"; then
6113 NM="$DUMPBIN"
6114 fi
6115 fi
6116 test -z "$NM" && NM=nm
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6125 if ${lt_cv_nm_interface+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 lt_cv_nm_interface="BSD nm"
6129 echo "int some_variable = 0;" > conftest.$ac_ext
6130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6131 (eval "$ac_compile" 2>conftest.err)
6132 cat conftest.err >&5
6133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135 cat conftest.err >&5
6136 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6137 cat conftest.out >&5
6138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139 lt_cv_nm_interface="MS dumpbin"
6140 fi
6141 rm -f conftest*
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144 $as_echo "$lt_cv_nm_interface" >&6; }
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147 $as_echo_n "checking whether ln -s works... " >&6; }
6148 LN_S=$as_ln_s
6149 if test "$LN_S" = "ln -s"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154 $as_echo "no, using $LN_S" >&6; }
6155 fi
6156
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if ${lt_cv_sys_max_cmd_len+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 i=0
6164 teststring="ABCD"
6165
6166 case $build_os in
6167 msdosdjgpp*)
6168 # On DJGPP, this test can blow up pretty badly due to problems in libc
6169 # (any single argument exceeding 2000 bytes causes a buffer overrun
6170 # during glob expansion). Even if it were fixed, the result of this
6171 # check would be larger than it should be.
6172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6173 ;;
6174
6175 gnu*)
6176 # Under GNU Hurd, this test is not required because there is
6177 # no limit to the length of command line arguments.
6178 # Libtool will interpret -1 as no limit whatsoever
6179 lt_cv_sys_max_cmd_len=-1;
6180 ;;
6181
6182 cygwin* | mingw* | cegcc*)
6183 # On Win9x/ME, this test blows up -- it succeeds, but takes
6184 # about 5 minutes as the teststring grows exponentially.
6185 # Worse, since 9x/ME are not pre-emptively multitasking,
6186 # you end up with a "frozen" computer, even though with patience
6187 # the test eventually succeeds (with a max line length of 256k).
6188 # Instead, let's just punt: use the minimum linelength reported by
6189 # all of the supported platforms: 8192 (on NT/2K/XP).
6190 lt_cv_sys_max_cmd_len=8192;
6191 ;;
6192
6193 mint*)
6194 # On MiNT this can take a long time and run out of memory.
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
6198 amigaos*)
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6202 ;;
6203
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210 else
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6212 fi
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216 ;;
6217
6218 interix*)
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6221 ;;
6222
6223 osf*)
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6229 #
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233 esac
6234 fi
6235 ;;
6236 sco3.2v5*)
6237 lt_cv_sys_max_cmd_len=102400
6238 ;;
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6243 else
6244 lt_cv_sys_max_cmd_len=32768
6245 fi
6246 ;;
6247 *)
6248 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6249 if test -n "$lt_cv_sys_max_cmd_len"; then
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6252 else
6253 # Make teststring a little bigger before we do anything with it.
6254 # a 1K string should be a reasonable start.
6255 for i in 1 2 3 4 5 6 7 8 ; do
6256 teststring=$teststring$teststring
6257 done
6258 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6259 # If test is not a shell built-in, we'll probably end up computing a
6260 # maximum length that is only half of the actual maximum length, but
6261 # we can't tell.
6262 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6263 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6264 test $i != 17 # 1/2 MB should be enough
6265 do
6266 i=`expr $i + 1`
6267 teststring=$teststring$teststring
6268 done
6269 # Only check the string length outside the loop.
6270 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6271 teststring=
6272 # Add a significant safety factor because C++ compilers can tack on
6273 # massive amounts of additional arguments before passing them to the
6274 # linker. It appears as though 1/2 is a usable value.
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6276 fi
6277 ;;
6278 esac
6279
6280 fi
6281
6282 if test -n $lt_cv_sys_max_cmd_len ; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6284 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6287 $as_echo "none" >&6; }
6288 fi
6289 max_cmd_len=$lt_cv_sys_max_cmd_len
6290
6291
6292
6293
6294
6295
6296 : ${CP="cp -f"}
6297 : ${MV="mv -f"}
6298 : ${RM="rm -f"}
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6301 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6302 # Try some XSI features
6303 xsi_shell=no
6304 ( _lt_dummy="a/b/c"
6305 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6306 = c,a/b,b/c, \
6307 && eval 'test $(( 1 + 1 )) -eq 2 \
6308 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6309 && xsi_shell=yes
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6311 $as_echo "$xsi_shell" >&6; }
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6315 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6316 lt_shell_append=no
6317 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6318 >/dev/null 2>&1 \
6319 && lt_shell_append=yes
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6321 $as_echo "$lt_shell_append" >&6; }
6322
6323
6324 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6325 lt_unset=unset
6326 else
6327 lt_unset=false
6328 fi
6329
6330
6331
6332
6333
6334 # test EBCDIC or ASCII
6335 case `echo X|tr X '\101'` in
6336 A) # ASCII based system
6337 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6338 lt_SP2NL='tr \040 \012'
6339 lt_NL2SP='tr \015\012 \040\040'
6340 ;;
6341 *) # EBCDIC based system
6342 lt_SP2NL='tr \100 \n'
6343 lt_NL2SP='tr \r\n \100\100'
6344 ;;
6345 esac
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6356 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6357 if ${lt_cv_to_host_file_cmd+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 case $host in
6361 *-*-mingw* )
6362 case $build in
6363 *-*-mingw* ) # actually msys
6364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6365 ;;
6366 *-*-cygwin* )
6367 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6368 ;;
6369 * ) # otherwise, assume *nix
6370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6371 ;;
6372 esac
6373 ;;
6374 *-*-cygwin* )
6375 case $build in
6376 *-*-mingw* ) # actually msys
6377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6378 ;;
6379 *-*-cygwin* )
6380 lt_cv_to_host_file_cmd=func_convert_file_noop
6381 ;;
6382 * ) # otherwise, assume *nix
6383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6384 ;;
6385 esac
6386 ;;
6387 * ) # unhandled hosts (and "normal" native builds)
6388 lt_cv_to_host_file_cmd=func_convert_file_noop
6389 ;;
6390 esac
6391
6392 fi
6393
6394 to_host_file_cmd=$lt_cv_to_host_file_cmd
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6396 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6397
6398
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6403 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6404 if ${lt_cv_to_tool_file_cmd+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 #assume ordinary cross tools, or native build.
6408 lt_cv_to_tool_file_cmd=func_convert_file_noop
6409 case $host in
6410 *-*-mingw* )
6411 case $build in
6412 *-*-mingw* ) # actually msys
6413 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6414 ;;
6415 esac
6416 ;;
6417 esac
6418
6419 fi
6420
6421 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6423 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6424
6425
6426
6427
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6430 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6431 if ${lt_cv_ld_reload_flag+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 lt_cv_ld_reload_flag='-r'
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6437 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6438 reload_flag=$lt_cv_ld_reload_flag
6439 case $reload_flag in
6440 "" | " "*) ;;
6441 *) reload_flag=" $reload_flag" ;;
6442 esac
6443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6444 case $host_os in
6445 cygwin* | mingw* | pw32* | cegcc*)
6446 if test "$GCC" != yes; then
6447 reload_cmds=false
6448 fi
6449 ;;
6450 darwin*)
6451 if test "$GCC" = yes; then
6452 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6453 else
6454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6455 fi
6456 ;;
6457 esac
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_OBJDUMP+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 if test -n "$OBJDUMP"; then
6476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 OBJDUMP=$ac_cv_prog_OBJDUMP
6496 if test -n "$OBJDUMP"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6498 $as_echo "$OBJDUMP" >&6; }
6499 else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504
6505 fi
6506 if test -z "$ac_cv_prog_OBJDUMP"; then
6507 ac_ct_OBJDUMP=$OBJDUMP
6508 # Extract the first word of "objdump", so it can be a program name with args.
6509 set dummy objdump; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 if test -n "$ac_ct_OBJDUMP"; then
6516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6536 if test -n "$ac_ct_OBJDUMP"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6538 $as_echo "$ac_ct_OBJDUMP" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544 if test "x$ac_ct_OBJDUMP" = x; then
6545 OBJDUMP="false"
6546 else
6547 case $cross_compiling:$ac_tool_warned in
6548 yes:)
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned=yes ;;
6552 esac
6553 OBJDUMP=$ac_ct_OBJDUMP
6554 fi
6555 else
6556 OBJDUMP="$ac_cv_prog_OBJDUMP"
6557 fi
6558
6559 test -z "$OBJDUMP" && OBJDUMP=objdump
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6570 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6571 if ${lt_cv_deplibs_check_method+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_file_magic_cmd='$MAGIC_CMD'
6575 lt_cv_file_magic_test_file=
6576 lt_cv_deplibs_check_method='unknown'
6577 # Need to set the preceding variable on all platforms that support
6578 # interlibrary dependencies.
6579 # 'none' -- dependencies not supported.
6580 # `unknown' -- same as none, but documents that we really don't know.
6581 # 'pass_all' -- all dependencies passed with no checks.
6582 # 'test_compile' -- check by making test program.
6583 # 'file_magic [[regex]]' -- check by looking for files in library path
6584 # which responds to the $file_magic_cmd with a given extended regex.
6585 # If you have `file' or equivalent on your system and you're not sure
6586 # whether `pass_all' will *always* work, you probably want this one.
6587
6588 case $host_os in
6589 aix[4-9]*)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593 beos*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596
6597 bsdi[45]*)
6598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6599 lt_cv_file_magic_cmd='/usr/bin/file -L'
6600 lt_cv_file_magic_test_file=/shlib/libc.so
6601 ;;
6602
6603 cygwin*)
6604 # func_win32_libid is a shell function defined in ltmain.sh
6605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6606 lt_cv_file_magic_cmd='func_win32_libid'
6607 ;;
6608
6609 mingw* | pw32*)
6610 # Base MSYS/MinGW do not provide the 'file' command needed by
6611 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6612 # unless we find 'file', for example because we are cross-compiling.
6613 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6614 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6616 lt_cv_file_magic_cmd='func_win32_libid'
6617 else
6618 # Keep this pattern in sync with the one in func_win32_libid.
6619 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6620 lt_cv_file_magic_cmd='$OBJDUMP -f'
6621 fi
6622 ;;
6623
6624 cegcc*)
6625 # use the weaker test based on 'objdump'. See mingw*.
6626 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6627 lt_cv_file_magic_cmd='$OBJDUMP -f'
6628 ;;
6629
6630 darwin* | rhapsody*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634 freebsd* | dragonfly*)
6635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6636 case $host_cpu in
6637 i*86 )
6638 # Not sure whether the presence of OpenBSD here was a mistake.
6639 # Let's accept both of them until this is cleared up.
6640 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6641 lt_cv_file_magic_cmd=/usr/bin/file
6642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6643 ;;
6644 esac
6645 else
6646 lt_cv_deplibs_check_method=pass_all
6647 fi
6648 ;;
6649
6650 gnu*)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
6653
6654 haiku*)
6655 lt_cv_deplibs_check_method=pass_all
6656 ;;
6657
6658 hpux10.20* | hpux11*)
6659 lt_cv_file_magic_cmd=/usr/bin/file
6660 case $host_cpu in
6661 ia64*)
6662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6663 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6664 ;;
6665 hppa*64*)
6666 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]'
6667 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6668 ;;
6669 *)
6670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6671 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6672 ;;
6673 esac
6674 ;;
6675
6676 interix[3-9]*)
6677 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6679 ;;
6680
6681 irix5* | irix6* | nonstopux*)
6682 case $LD in
6683 *-32|*"-32 ") libmagic=32-bit;;
6684 *-n32|*"-n32 ") libmagic=N32;;
6685 *-64|*"-64 ") libmagic=64-bit;;
6686 *) libmagic=never-match;;
6687 esac
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690
6691 # This must be Linux ELF.
6692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
6695
6696 netbsd*)
6697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6699 else
6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6701 fi
6702 ;;
6703
6704 newos6*)
6705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6706 lt_cv_file_magic_cmd=/usr/bin/file
6707 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6708 ;;
6709
6710 *nto* | *qnx*)
6711 lt_cv_deplibs_check_method=pass_all
6712 ;;
6713
6714 openbsd*)
6715 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6717 else
6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6719 fi
6720 ;;
6721
6722 osf3* | osf4* | osf5*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725
6726 rdos*)
6727 lt_cv_deplibs_check_method=pass_all
6728 ;;
6729
6730 solaris*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733
6734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737
6738 sysv4 | sysv4.3*)
6739 case $host_vendor in
6740 motorola)
6741 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]'
6742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6743 ;;
6744 ncr)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747 sequent)
6748 lt_cv_file_magic_cmd='/bin/file'
6749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6750 ;;
6751 sni)
6752 lt_cv_file_magic_cmd='/bin/file'
6753 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6754 lt_cv_file_magic_test_file=/lib/libc.so
6755 ;;
6756 siemens)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759 pc)
6760 lt_cv_deplibs_check_method=pass_all
6761 ;;
6762 esac
6763 ;;
6764
6765 tpf*)
6766 lt_cv_deplibs_check_method=pass_all
6767 ;;
6768 esac
6769
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6772 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6773
6774 file_magic_glob=
6775 want_nocaseglob=no
6776 if test "$build" = "$host"; then
6777 case $host_os in
6778 mingw* | pw32*)
6779 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6780 want_nocaseglob=yes
6781 else
6782 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6783 fi
6784 ;;
6785 esac
6786 fi
6787
6788 file_magic_cmd=$lt_cv_file_magic_cmd
6789 deplibs_check_method=$lt_cv_deplibs_check_method
6790 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_DLLTOOL+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$DLLTOOL"; then
6822 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 DLLTOOL=$ac_cv_prog_DLLTOOL
6842 if test -n "$DLLTOOL"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6844 $as_echo "$DLLTOOL" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_DLLTOOL"; then
6853 ac_ct_DLLTOOL=$DLLTOOL
6854 # Extract the first word of "dlltool", so it can be a program name with args.
6855 set dummy dlltool; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 if test -n "$ac_ct_DLLTOOL"; then
6862 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6882 if test -n "$ac_ct_DLLTOOL"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6884 $as_echo "$ac_ct_DLLTOOL" >&6; }
6885 else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890 if test "x$ac_ct_DLLTOOL" = x; then
6891 DLLTOOL="false"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 DLLTOOL=$ac_ct_DLLTOOL
6900 fi
6901 else
6902 DLLTOOL="$ac_cv_prog_DLLTOOL"
6903 fi
6904
6905 test -z "$DLLTOOL" && DLLTOOL=dlltool
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6917 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6918 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 lt_cv_sharedlib_from_linklib_cmd='unknown'
6922
6923 case $host_os in
6924 cygwin* | mingw* | pw32* | cegcc*)
6925 # two different shell functions defined in ltmain.sh
6926 # decide which to use based on capabilities of $DLLTOOL
6927 case `$DLLTOOL --help 2>&1` in
6928 *--identify-strict*)
6929 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6930 ;;
6931 *)
6932 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6933 ;;
6934 esac
6935 ;;
6936 *)
6937 # fallback: assume linklib IS sharedlib
6938 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6939 ;;
6940 esac
6941
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6944 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6945 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6946 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6947
6948
6949
6950
6951
6952
6953
6954 if test -n "$ac_tool_prefix"; then
6955 for ac_prog in ar
6956 do
6957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_AR+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$AR"; then
6965 ac_cv_prog_AR="$AR" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 AR=$ac_cv_prog_AR
6985 if test -n "$AR"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6987 $as_echo "$AR" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993
6994 test -n "$AR" && break
6995 done
6996 fi
6997 if test -z "$AR"; then
6998 ac_ct_AR=$AR
6999 for ac_prog in ar
7000 do
7001 # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$ac_ct_AR"; then
7009 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_AR="$ac_prog"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7029 if test -n "$ac_ct_AR"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7031 $as_echo "$ac_ct_AR" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 test -n "$ac_ct_AR" && break
7039 done
7040
7041 if test "x$ac_ct_AR" = x; then
7042 AR="false"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050 AR=$ac_ct_AR
7051 fi
7052 fi
7053
7054 : ${AR=ar}
7055 : ${AR_FLAGS=cru}
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7068 $as_echo_n "checking for archiver @FILE support... " >&6; }
7069 if ${lt_cv_ar_at_file+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 lt_cv_ar_at_file=no
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075
7076 int
7077 main ()
7078 {
7079
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"; then :
7085 echo conftest.$ac_objext > conftest.lst
7086 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
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" -eq 0; then
7093 # Ensure the archiver fails upon bogus file names.
7094 rm -f conftest.$ac_objext libconftest.a
7095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7096 (eval $lt_ar_try) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100 if test "$ac_status" -ne 0; then
7101 lt_cv_ar_at_file=@
7102 fi
7103 fi
7104 rm -f conftest.* libconftest.a
7105
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7111 $as_echo "$lt_cv_ar_at_file" >&6; }
7112
7113 if test "x$lt_cv_ar_at_file" = xno; then
7114 archiver_list_spec=
7115 else
7116 archiver_list_spec=$lt_cv_ar_at_file
7117 fi
7118
7119
7120
7121
7122
7123
7124
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}strip; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_STRIP+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$STRIP"; then
7134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 STRIP=$ac_cv_prog_STRIP
7154 if test -n "$STRIP"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7156 $as_echo "$STRIP" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_STRIP"; then
7165 ac_ct_STRIP=$STRIP
7166 # Extract the first word of "strip", so it can be a program name with args.
7167 set dummy strip; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_STRIP"; then
7174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_STRIP="strip"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7194 if test -n "$ac_ct_STRIP"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7196 $as_echo "$ac_ct_STRIP" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202 if test "x$ac_ct_STRIP" = x; then
7203 STRIP=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 STRIP=$ac_ct_STRIP
7212 fi
7213 else
7214 STRIP="$ac_cv_prog_STRIP"
7215 fi
7216
7217 test -z "$STRIP" && STRIP=:
7218
7219
7220
7221
7222
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_RANLIB+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$RANLIB"; then
7233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 RANLIB=$ac_cv_prog_RANLIB
7253 if test -n "$RANLIB"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7255 $as_echo "$RANLIB" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261
7262 fi
7263 if test -z "$ac_cv_prog_RANLIB"; then
7264 ac_ct_RANLIB=$RANLIB
7265 # Extract the first word of "ranlib", so it can be a program name with args.
7266 set dummy ranlib; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$ac_ct_RANLIB"; then
7273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_ac_ct_RANLIB="ranlib"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7293 if test -n "$ac_ct_RANLIB"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7295 $as_echo "$ac_ct_RANLIB" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301 if test "x$ac_ct_RANLIB" = x; then
7302 RANLIB=":"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7309 esac
7310 RANLIB=$ac_ct_RANLIB
7311 fi
7312 else
7313 RANLIB="$ac_cv_prog_RANLIB"
7314 fi
7315
7316 test -z "$RANLIB" && RANLIB=:
7317
7318
7319
7320
7321
7322
7323 # Determine commands to create old-style static archives.
7324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7325 old_postinstall_cmds='chmod 644 $oldlib'
7326 old_postuninstall_cmds=
7327
7328 if test -n "$RANLIB"; then
7329 case $host_os in
7330 openbsd*)
7331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7332 ;;
7333 *)
7334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7335 ;;
7336 esac
7337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7338 fi
7339
7340 case $host_os in
7341 darwin*)
7342 lock_old_archive_extraction=yes ;;
7343 *)
7344 lock_old_archive_extraction=no ;;
7345 esac
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
7378
7379
7380
7381
7382
7383
7384
7385 # If no C compiler was specified, use CC.
7386 LTCC=${LTCC-"$CC"}
7387
7388 # If no C compiler flags were specified, use CFLAGS.
7389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7390
7391 # Allow CC to be a program name with arguments.
7392 compiler=$CC
7393
7394
7395 # Check for command to grab the raw symbol name followed by C symbol from nm.
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7397 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7398 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401
7402 # These are sane defaults that work on at least a few old systems.
7403 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7404
7405 # Character class describing NM global symbol codes.
7406 symcode='[BCDEGRST]'
7407
7408 # Regexp to match symbols that can be accessed directly from C.
7409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7410
7411 # Define system-specific variables.
7412 case $host_os in
7413 aix*)
7414 symcode='[BCDT]'
7415 ;;
7416 cygwin* | mingw* | pw32* | cegcc*)
7417 symcode='[ABCDGISTW]'
7418 ;;
7419 hpux*)
7420 if test "$host_cpu" = ia64; then
7421 symcode='[ABCDEGRST]'
7422 fi
7423 ;;
7424 irix* | nonstopux*)
7425 symcode='[BCDEGRST]'
7426 ;;
7427 osf*)
7428 symcode='[BCDEGQRST]'
7429 ;;
7430 solaris*)
7431 symcode='[BDRT]'
7432 ;;
7433 sco3.2v5*)
7434 symcode='[DT]'
7435 ;;
7436 sysv4.2uw2*)
7437 symcode='[DT]'
7438 ;;
7439 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7440 symcode='[ABDT]'
7441 ;;
7442 sysv4)
7443 symcode='[DFNSTU]'
7444 ;;
7445 esac
7446
7447 # If we're using GNU nm, then use its standard symbol codes.
7448 case `$NM -V 2>&1` in
7449 *GNU* | *'with BFD'*)
7450 symcode='[ABCDGIRSTW]' ;;
7451 esac
7452
7453 # Transform an extracted symbol line into a proper C declaration.
7454 # Some systems (esp. on ia64) link data and code symbols differently,
7455 # so use this general approach.
7456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457
7458 # Transform an extracted symbol line into symbol name and symbol address
7459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7460 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'"
7461
7462 # Handle CRLF in mingw tool chain
7463 opt_cr=
7464 case $build_os in
7465 mingw*)
7466 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7467 ;;
7468 esac
7469
7470 # Try without a prefix underscore, then with it.
7471 for ac_symprfx in "" "_"; do
7472
7473 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7474 symxfrm="\\1 $ac_symprfx\\2 \\2"
7475
7476 # Write the raw and C identifiers.
7477 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7478 # Fake it for dumpbin and say T for any non-static function
7479 # and D for any global variable.
7480 # Also find C++ and __fastcall symbols from MSVC++,
7481 # which start with @ or ?.
7482 lt_cv_sys_global_symbol_pipe="$AWK '"\
7483 " {last_section=section; section=\$ 3};"\
7484 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7485 " \$ 0!~/External *\|/{next};"\
7486 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7487 " {if(hide[section]) next};"\
7488 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7489 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7490 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7491 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7492 " ' prfx=^$ac_symprfx"
7493 else
7494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7495 fi
7496 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7497
7498 # Check to see that the pipe works correctly.
7499 pipe_works=no
7500
7501 rm -f conftest*
7502 cat > conftest.$ac_ext <<_LT_EOF
7503 #ifdef __cplusplus
7504 extern "C" {
7505 #endif
7506 char nm_test_var;
7507 void nm_test_func(void);
7508 void nm_test_func(void){}
7509 #ifdef __cplusplus
7510 }
7511 #endif
7512 int main(){nm_test_var='a';nm_test_func();return(0);}
7513 _LT_EOF
7514
7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
7520 # Now try to grab the symbols.
7521 nlist=conftest.nm
7522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7523 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7524 ac_status=$?
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; } && test -s "$nlist"; then
7527 # Try sorting and uniquifying the output.
7528 if sort "$nlist" | uniq > "$nlist"T; then
7529 mv -f "$nlist"T "$nlist"
7530 else
7531 rm -f "$nlist"T
7532 fi
7533
7534 # Make sure that we snagged all the symbols we need.
7535 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7536 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7537 cat <<_LT_EOF > conftest.$ac_ext
7538 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7539 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7540 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7541 relocations are performed -- see ld's documentation on pseudo-relocs. */
7542 # define LT_DLSYM_CONST
7543 #elif defined(__osf__)
7544 /* This system does not cope well with relocations in const data. */
7545 # define LT_DLSYM_CONST
7546 #else
7547 # define LT_DLSYM_CONST const
7548 #endif
7549
7550 #ifdef __cplusplus
7551 extern "C" {
7552 #endif
7553
7554 _LT_EOF
7555 # Now generate the symbol file.
7556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7557
7558 cat <<_LT_EOF >> conftest.$ac_ext
7559
7560 /* The mapping between symbol names and symbols. */
7561 LT_DLSYM_CONST struct {
7562 const char *name;
7563 void *address;
7564 }
7565 lt__PROGRAM__LTX_preloaded_symbols[] =
7566 {
7567 { "@PROGRAM@", (void *) 0 },
7568 _LT_EOF
7569 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7570 cat <<\_LT_EOF >> conftest.$ac_ext
7571 {0, (void *) 0}
7572 };
7573
7574 /* This works around a problem in FreeBSD linker */
7575 #ifdef FREEBSD_WORKAROUND
7576 static const void *lt_preloaded_setup() {
7577 return lt__PROGRAM__LTX_preloaded_symbols;
7578 }
7579 #endif
7580
7581 #ifdef __cplusplus
7582 }
7583 #endif
7584 _LT_EOF
7585 # Now try linking the two files.
7586 mv conftest.$ac_objext conftstm.$ac_objext
7587 lt_globsym_save_LIBS=$LIBS
7588 lt_globsym_save_CFLAGS=$CFLAGS
7589 LIBS="conftstm.$ac_objext"
7590 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7592 (eval $ac_link) 2>&5
7593 ac_status=$?
7594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7596 pipe_works=yes
7597 fi
7598 LIBS=$lt_globsym_save_LIBS
7599 CFLAGS=$lt_globsym_save_CFLAGS
7600 else
7601 echo "cannot find nm_test_func in $nlist" >&5
7602 fi
7603 else
7604 echo "cannot find nm_test_var in $nlist" >&5
7605 fi
7606 else
7607 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7608 fi
7609 else
7610 echo "$progname: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7612 fi
7613 rm -rf conftest* conftst*
7614
7615 # Do not use the global_symbol_pipe unless it works.
7616 if test "$pipe_works" = yes; then
7617 break
7618 else
7619 lt_cv_sys_global_symbol_pipe=
7620 fi
7621 done
7622
7623 fi
7624
7625 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7626 lt_cv_sys_global_symbol_to_cdecl=
7627 fi
7628 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7630 $as_echo "failed" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7633 $as_echo "ok" >&6; }
7634 fi
7635
7636 # Response file support.
7637 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7638 nm_file_list_spec='@'
7639 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7640 nm_file_list_spec='@'
7641 fi
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7670 $as_echo_n "checking for sysroot... " >&6; }
7671
7672 # Check whether --with-sysroot was given.
7673 if test "${with_sysroot+set}" = set; then :
7674 withval=$with_sysroot;
7675 else
7676 with_sysroot=no
7677 fi
7678
7679
7680 lt_sysroot=
7681 case ${with_sysroot} in #(
7682 yes)
7683 if test "$GCC" = yes; then
7684 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7685 fi
7686 ;; #(
7687 /*)
7688 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7689 ;; #(
7690 no|'')
7691 ;; #(
7692 *)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7694 $as_echo "${with_sysroot}" >&6; }
7695 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7696 ;;
7697 esac
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7700 $as_echo "${lt_sysroot:-no}" >&6; }
7701
7702
7703
7704
7705
7706 # Check whether --enable-libtool-lock was given.
7707 if test "${enable_libtool_lock+set}" = set; then :
7708 enableval=$enable_libtool_lock;
7709 fi
7710
7711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7712
7713 # Some flags need to be propagated to the compiler or linker for good
7714 # libtool support.
7715 case $host in
7716 ia64-*-hpux*)
7717 # Find out which ABI we are using.
7718 echo 'int i;' > conftest.$ac_ext
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 case `/usr/bin/file conftest.$ac_objext` in
7725 *ELF-32*)
7726 HPUX_IA64_MODE="32"
7727 ;;
7728 *ELF-64*)
7729 HPUX_IA64_MODE="64"
7730 ;;
7731 esac
7732 fi
7733 rm -rf conftest*
7734 ;;
7735 *-*-irix6*)
7736 # Find out which ABI we are using.
7737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739 (eval $ac_compile) 2>&5
7740 ac_status=$?
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7743 if test "$lt_cv_prog_gnu_ld" = yes; then
7744 case `/usr/bin/file conftest.$ac_objext` in
7745 *32-bit*)
7746 LD="${LD-ld} -melf32bsmip"
7747 ;;
7748 *N32*)
7749 LD="${LD-ld} -melf32bmipn32"
7750 ;;
7751 *64-bit*)
7752 LD="${LD-ld} -melf64bmip"
7753 ;;
7754 esac
7755 else
7756 case `/usr/bin/file conftest.$ac_objext` in
7757 *32-bit*)
7758 LD="${LD-ld} -32"
7759 ;;
7760 *N32*)
7761 LD="${LD-ld} -n32"
7762 ;;
7763 *64-bit*)
7764 LD="${LD-ld} -64"
7765 ;;
7766 esac
7767 fi
7768 fi
7769 rm -rf conftest*
7770 ;;
7771
7772 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7773 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7774 # Find out which ABI we are using.
7775 echo 'int i;' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 case `/usr/bin/file conftest.o` in
7782 *32-bit*)
7783 case $host in
7784 x86_64-*kfreebsd*-gnu)
7785 LD="${LD-ld} -m elf_i386_fbsd"
7786 ;;
7787 x86_64-*linux*)
7788 LD="${LD-ld} -m elf_i386"
7789 ;;
7790 ppc64-*linux*|powerpc64-*linux*)
7791 LD="${LD-ld} -m elf32ppclinux"
7792 ;;
7793 s390x-*linux*)
7794 LD="${LD-ld} -m elf_s390"
7795 ;;
7796 sparc64-*linux*)
7797 LD="${LD-ld} -m elf32_sparc"
7798 ;;
7799 esac
7800 ;;
7801 *64-bit*)
7802 case $host in
7803 x86_64-*kfreebsd*-gnu)
7804 LD="${LD-ld} -m elf_x86_64_fbsd"
7805 ;;
7806 x86_64-*linux*)
7807 LD="${LD-ld} -m elf_x86_64"
7808 ;;
7809 ppc*-*linux*|powerpc*-*linux*)
7810 LD="${LD-ld} -m elf64ppc"
7811 ;;
7812 s390*-*linux*|s390*-*tpf*)
7813 LD="${LD-ld} -m elf64_s390"
7814 ;;
7815 sparc*-*linux*)
7816 LD="${LD-ld} -m elf64_sparc"
7817 ;;
7818 esac
7819 ;;
7820 esac
7821 fi
7822 rm -rf conftest*
7823 ;;
7824
7825 *-*-sco3.2v5*)
7826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7827 SAVE_CFLAGS="$CFLAGS"
7828 CFLAGS="$CFLAGS -belf"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7830 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7831 if ${lt_cv_cc_needs_belf+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842
7843 int
7844 main ()
7845 {
7846
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 lt_cv_cc_needs_belf=yes
7853 else
7854 lt_cv_cc_needs_belf=no
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 ac_ext=c
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7866 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7867 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7869 CFLAGS="$SAVE_CFLAGS"
7870 fi
7871 ;;
7872 sparc*-*solaris*)
7873 # Find out which ABI we are using.
7874 echo 'int i;' > conftest.$ac_ext
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 case `/usr/bin/file conftest.o` in
7881 *64-bit*)
7882 case $lt_cv_prog_gnu_ld in
7883 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7884 *)
7885 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7886 LD="${LD-ld} -64"
7887 fi
7888 ;;
7889 esac
7890 ;;
7891 esac
7892 fi
7893 rm -rf conftest*
7894 ;;
7895 esac
7896
7897 need_locks="$enable_libtool_lock"
7898
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}mt; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$MANIFEST_TOOL"; then
7908 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7928 if test -n "$MANIFEST_TOOL"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7930 $as_echo "$MANIFEST_TOOL" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 fi
7938 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7939 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7940 # Extract the first word of "mt", so it can be a program name with args.
7941 set dummy mt; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$ac_ct_MANIFEST_TOOL"; then
7948 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7968 if test -n "$ac_ct_MANIFEST_TOOL"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7970 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7977 MANIFEST_TOOL=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7986 fi
7987 else
7988 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7989 fi
7990
7991 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7993 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7994 if ${lt_cv_path_mainfest_tool+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 lt_cv_path_mainfest_tool=no
7998 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7999 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8000 cat conftest.err >&5
8001 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8002 lt_cv_path_mainfest_tool=yes
8003 fi
8004 rm -f conftest*
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8007 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8008 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8009 MANIFEST_TOOL=:
8010 fi
8011
8012
8013
8014
8015
8016
8017 case $host_os in
8018 rhapsody* | darwin*)
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 if test -n "$DSYMUTIL"; then
8028 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8048 if test -n "$DSYMUTIL"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8050 $as_echo "$DSYMUTIL" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_DSYMUTIL"; then
8059 ac_ct_DSYMUTIL=$DSYMUTIL
8060 # Extract the first word of "dsymutil", so it can be a program name with args.
8061 set dummy dsymutil; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 if test -n "$ac_ct_DSYMUTIL"; then
8068 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081 done
8082 done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8088 if test -n "$ac_ct_DSYMUTIL"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8090 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096 if test "x$ac_ct_DSYMUTIL" = x; then
8097 DSYMUTIL=":"
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100 yes:)
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8104 esac
8105 DSYMUTIL=$ac_ct_DSYMUTIL
8106 fi
8107 else
8108 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8109 fi
8110
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_NMEDIT+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$NMEDIT"; then
8120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 NMEDIT=$ac_cv_prog_NMEDIT
8140 if test -n "$NMEDIT"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8142 $as_echo "$NMEDIT" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149 fi
8150 if test -z "$ac_cv_prog_NMEDIT"; then
8151 ac_ct_NMEDIT=$NMEDIT
8152 # Extract the first word of "nmedit", so it can be a program name with args.
8153 set dummy nmedit; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$ac_ct_NMEDIT"; then
8160 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177 fi
8178 fi
8179 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8180 if test -n "$ac_ct_NMEDIT"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8182 $as_echo "$ac_ct_NMEDIT" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188 if test "x$ac_ct_NMEDIT" = x; then
8189 NMEDIT=":"
8190 else
8191 case $cross_compiling:$ac_tool_warned in
8192 yes:)
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8195 ac_tool_warned=yes ;;
8196 esac
8197 NMEDIT=$ac_ct_NMEDIT
8198 fi
8199 else
8200 NMEDIT="$ac_cv_prog_NMEDIT"
8201 fi
8202
8203 if test -n "$ac_tool_prefix"; then
8204 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_LIPO+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$LIPO"; then
8212 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 LIPO=$ac_cv_prog_LIPO
8232 if test -n "$LIPO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8234 $as_echo "$LIPO" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241 fi
8242 if test -z "$ac_cv_prog_LIPO"; then
8243 ac_ct_LIPO=$LIPO
8244 # Extract the first word of "lipo", so it can be a program name with args.
8245 set dummy lipo; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$ac_ct_LIPO"; then
8252 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_ac_ct_LIPO="lipo"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265 done
8266 done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8272 if test -n "$ac_ct_LIPO"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8274 $as_echo "$ac_ct_LIPO" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280 if test "x$ac_ct_LIPO" = x; then
8281 LIPO=":"
8282 else
8283 case $cross_compiling:$ac_tool_warned in
8284 yes:)
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8288 esac
8289 LIPO=$ac_ct_LIPO
8290 fi
8291 else
8292 LIPO="$ac_cv_prog_LIPO"
8293 fi
8294
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}otool; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_OTOOL+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$OTOOL"; then
8304 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 OTOOL=$ac_cv_prog_OTOOL
8324 if test -n "$OTOOL"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8326 $as_echo "$OTOOL" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 fi
8334 if test -z "$ac_cv_prog_OTOOL"; then
8335 ac_ct_OTOOL=$OTOOL
8336 # Extract the first word of "otool", so it can be a program name with args.
8337 set dummy otool; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$ac_ct_OTOOL"; then
8344 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_ac_ct_OTOOL="otool"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8364 if test -n "$ac_ct_OTOOL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8366 $as_echo "$ac_ct_OTOOL" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372 if test "x$ac_ct_OTOOL" = x; then
8373 OTOOL=":"
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381 OTOOL=$ac_ct_OTOOL
8382 fi
8383 else
8384 OTOOL="$ac_cv_prog_OTOOL"
8385 fi
8386
8387 if test -n "$ac_tool_prefix"; then
8388 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8389 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if ${ac_cv_prog_OTOOL64+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$OTOOL64"; then
8396 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409 done
8410 done
8411 IFS=$as_save_IFS
8412
8413 fi
8414 fi
8415 OTOOL64=$ac_cv_prog_OTOOL64
8416 if test -n "$OTOOL64"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8418 $as_echo "$OTOOL64" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425 fi
8426 if test -z "$ac_cv_prog_OTOOL64"; then
8427 ac_ct_OTOOL64=$OTOOL64
8428 # Extract the first word of "otool64", so it can be a program name with args.
8429 set dummy otool64; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$ac_ct_OTOOL64"; then
8436 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_prog_ac_ct_OTOOL64="otool64"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8456 if test -n "$ac_ct_OTOOL64"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8458 $as_echo "$ac_ct_OTOOL64" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463
8464 if test "x$ac_ct_OTOOL64" = x; then
8465 OTOOL64=":"
8466 else
8467 case $cross_compiling:$ac_tool_warned in
8468 yes:)
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8472 esac
8473 OTOOL64=$ac_ct_OTOOL64
8474 fi
8475 else
8476 OTOOL64="$ac_cv_prog_OTOOL64"
8477 fi
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8506 $as_echo_n "checking for -single_module linker flag... " >&6; }
8507 if ${lt_cv_apple_cc_single_mod+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 lt_cv_apple_cc_single_mod=no
8511 if test -z "${LT_MULTI_MODULE}"; then
8512 # By default we will add the -single_module flag. You can override
8513 # by either setting the environment variable LT_MULTI_MODULE
8514 # non-empty at configure time, or by adding -multi_module to the
8515 # link flags.
8516 rm -rf libconftest.dylib*
8517 echo "int foo(void){return 1;}" > conftest.c
8518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8519 -dynamiclib -Wl,-single_module conftest.c" >&5
8520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8522 _lt_result=$?
8523 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8524 lt_cv_apple_cc_single_mod=yes
8525 else
8526 cat conftest.err >&5
8527 fi
8528 rm -rf libconftest.dylib*
8529 rm -f conftest.*
8530 fi
8531 fi
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8533 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8535 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8536 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 lt_cv_ld_exported_symbols_list=no
8540 save_LDFLAGS=$LDFLAGS
8541 echo "_main" > conftest.sym
8542 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545
8546 int
8547 main ()
8548 {
8549
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 if ac_fn_c_try_link "$LINENO"; then :
8555 lt_cv_ld_exported_symbols_list=yes
8556 else
8557 lt_cv_ld_exported_symbols_list=no
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 LDFLAGS="$save_LDFLAGS"
8562
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8565 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8567 $as_echo_n "checking for -force_load linker flag... " >&6; }
8568 if ${lt_cv_ld_force_load+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 lt_cv_ld_force_load=no
8572 cat > conftest.c << _LT_EOF
8573 int forced_loaded() { return 2;}
8574 _LT_EOF
8575 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8576 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8577 echo "$AR cru libconftest.a conftest.o" >&5
8578 $AR cru libconftest.a conftest.o 2>&5
8579 echo "$RANLIB libconftest.a" >&5
8580 $RANLIB libconftest.a 2>&5
8581 cat > conftest.c << _LT_EOF
8582 int main() { return 0;}
8583 _LT_EOF
8584 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8585 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8586 _lt_result=$?
8587 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8588 lt_cv_ld_force_load=yes
8589 else
8590 cat conftest.err >&5
8591 fi
8592 rm -f conftest.err libconftest.a conftest conftest.c
8593 rm -rf conftest.dSYM
8594
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8597 $as_echo "$lt_cv_ld_force_load" >&6; }
8598 case $host_os in
8599 rhapsody* | darwin1.[012])
8600 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8601 darwin1.*)
8602 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8603 darwin*) # darwin 5.x on
8604 # if running on 10.5 or later, the deployment target defaults
8605 # to the OS version, if on x86, and 10.4, the deployment
8606 # target defaults to 10.4. Don't you love it?
8607 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8608 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8610 10.[012]*)
8611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8612 10.*)
8613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8614 esac
8615 ;;
8616 esac
8617 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8618 _lt_dar_single_mod='$single_module'
8619 fi
8620 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8621 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8622 else
8623 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8624 fi
8625 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8626 _lt_dsymutil='~$DSYMUTIL $lib || :'
8627 else
8628 _lt_dsymutil=
8629 fi
8630 ;;
8631 esac
8632
8633 for ac_header in dlfcn.h
8634 do :
8635 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8636 "
8637 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8638 cat >>confdefs.h <<_ACEOF
8639 #define HAVE_DLFCN_H 1
8640 _ACEOF
8641
8642 fi
8643
8644 done
8645
8646
8647
8648
8649
8650 # Set options
8651
8652
8653
8654 enable_dlopen=no
8655
8656
8657 enable_win32_dll=no
8658
8659
8660
8661
8662
8663 # Check whether --with-pic was given.
8664 if test "${with_pic+set}" = set; then :
8665 withval=$with_pic; pic_mode="$withval"
8666 else
8667 pic_mode=default
8668 fi
8669
8670
8671 test -z "$pic_mode" && pic_mode=default
8672
8673
8674
8675
8676
8677
8678
8679 # Check whether --enable-fast-install was given.
8680 if test "${enable_fast_install+set}" = set; then :
8681 enableval=$enable_fast_install; p=${PACKAGE-default}
8682 case $enableval in
8683 yes) enable_fast_install=yes ;;
8684 no) enable_fast_install=no ;;
8685 *)
8686 enable_fast_install=no
8687 # Look at the argument we got. We use all the common list separators.
8688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8689 for pkg in $enableval; do
8690 IFS="$lt_save_ifs"
8691 if test "X$pkg" = "X$p"; then
8692 enable_fast_install=yes
8693 fi
8694 done
8695 IFS="$lt_save_ifs"
8696 ;;
8697 esac
8698 else
8699 enable_fast_install=yes
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712 # This can be used to rebuild libtool when needed
8713 LIBTOOL_DEPS="$ltmain"
8714
8715 # Always use our own libtool.
8716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 test -z "$LN_S" && LN_S="ln -s"
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 if test -n "${ZSH_VERSION+set}" ; then
8759 setopt NO_GLOB_SUBST
8760 fi
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8763 $as_echo_n "checking for objdir... " >&6; }
8764 if ${lt_cv_objdir+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 rm -f .libs 2>/dev/null
8768 mkdir .libs 2>/dev/null
8769 if test -d .libs; then
8770 lt_cv_objdir=.libs
8771 else
8772 # MS-DOS does not allow filenames that begin with a dot.
8773 lt_cv_objdir=_libs
8774 fi
8775 rmdir .libs 2>/dev/null
8776 fi
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8778 $as_echo "$lt_cv_objdir" >&6; }
8779 objdir=$lt_cv_objdir
8780
8781
8782
8783
8784
8785 cat >>confdefs.h <<_ACEOF
8786 #define LT_OBJDIR "$lt_cv_objdir/"
8787 _ACEOF
8788
8789
8790
8791
8792 case $host_os in
8793 aix3*)
8794 # AIX sometimes has problems with the GCC collect2 program. For some
8795 # reason, if we set the COLLECT_NAMES environment variable, the problems
8796 # vanish in a puff of smoke.
8797 if test "X${COLLECT_NAMES+set}" != Xset; then
8798 COLLECT_NAMES=
8799 export COLLECT_NAMES
8800 fi
8801 ;;
8802 esac
8803
8804 # Global variables:
8805 ofile=libtool
8806 can_build_shared=yes
8807
8808 # All known linkers require a `.a' archive for static linking (except MSVC,
8809 # which needs '.lib').
8810 libext=a
8811
8812 with_gnu_ld="$lt_cv_prog_gnu_ld"
8813
8814 old_CC="$CC"
8815 old_CFLAGS="$CFLAGS"
8816
8817 # Set sane defaults for various variables
8818 test -z "$CC" && CC=cc
8819 test -z "$LTCC" && LTCC=$CC
8820 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8821 test -z "$LD" && LD=ld
8822 test -z "$ac_objext" && ac_objext=o
8823
8824 for cc_temp in $compiler""; do
8825 case $cc_temp in
8826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8828 \-*) ;;
8829 *) break;;
8830 esac
8831 done
8832 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8833
8834
8835 # Only perform the check for file, if the check method requires it
8836 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8837 case $deplibs_check_method in
8838 file_magic*)
8839 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8841 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8842 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 case $MAGIC_CMD in
8846 [\\/*] | ?:[\\/]*)
8847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8848 ;;
8849 *)
8850 lt_save_MAGIC_CMD="$MAGIC_CMD"
8851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8853 for ac_dir in $ac_dummy; do
8854 IFS="$lt_save_ifs"
8855 test -z "$ac_dir" && ac_dir=.
8856 if test -f $ac_dir/${ac_tool_prefix}file; then
8857 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8858 if test -n "$file_magic_test_file"; then
8859 case $deplibs_check_method in
8860 "file_magic "*)
8861 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8864 $EGREP "$file_magic_regex" > /dev/null; then
8865 :
8866 else
8867 cat <<_LT_EOF 1>&2
8868
8869 *** Warning: the command libtool uses to detect shared libraries,
8870 *** $file_magic_cmd, produces output that libtool cannot recognize.
8871 *** The result is that libtool may fail to recognize shared libraries
8872 *** as such. This will affect the creation of libtool libraries that
8873 *** depend on shared libraries, but programs linked with such libtool
8874 *** libraries will work regardless of this problem. Nevertheless, you
8875 *** may want to report the problem to your system manager and/or to
8876 *** bug-libtool@gnu.org
8877
8878 _LT_EOF
8879 fi ;;
8880 esac
8881 fi
8882 break
8883 fi
8884 done
8885 IFS="$lt_save_ifs"
8886 MAGIC_CMD="$lt_save_MAGIC_CMD"
8887 ;;
8888 esac
8889 fi
8890
8891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8892 if test -n "$MAGIC_CMD"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8894 $as_echo "$MAGIC_CMD" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900
8901
8902
8903
8904 if test -z "$lt_cv_path_MAGIC_CMD"; then
8905 if test -n "$ac_tool_prefix"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8907 $as_echo_n "checking for file... " >&6; }
8908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 case $MAGIC_CMD in
8912 [\\/*] | ?:[\\/]*)
8913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8914 ;;
8915 *)
8916 lt_save_MAGIC_CMD="$MAGIC_CMD"
8917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8919 for ac_dir in $ac_dummy; do
8920 IFS="$lt_save_ifs"
8921 test -z "$ac_dir" && ac_dir=.
8922 if test -f $ac_dir/file; then
8923 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8924 if test -n "$file_magic_test_file"; then
8925 case $deplibs_check_method in
8926 "file_magic "*)
8927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8930 $EGREP "$file_magic_regex" > /dev/null; then
8931 :
8932 else
8933 cat <<_LT_EOF 1>&2
8934
8935 *** Warning: the command libtool uses to detect shared libraries,
8936 *** $file_magic_cmd, produces output that libtool cannot recognize.
8937 *** The result is that libtool may fail to recognize shared libraries
8938 *** as such. This will affect the creation of libtool libraries that
8939 *** depend on shared libraries, but programs linked with such libtool
8940 *** libraries will work regardless of this problem. Nevertheless, you
8941 *** may want to report the problem to your system manager and/or to
8942 *** bug-libtool@gnu.org
8943
8944 _LT_EOF
8945 fi ;;
8946 esac
8947 fi
8948 break
8949 fi
8950 done
8951 IFS="$lt_save_ifs"
8952 MAGIC_CMD="$lt_save_MAGIC_CMD"
8953 ;;
8954 esac
8955 fi
8956
8957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8958 if test -n "$MAGIC_CMD"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8960 $as_echo "$MAGIC_CMD" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8964 fi
8965
8966
8967 else
8968 MAGIC_CMD=:
8969 fi
8970 fi
8971
8972 fi
8973 ;;
8974 esac
8975
8976 # Use C for the default configuration in the libtool script
8977
8978 lt_save_CC="$CC"
8979 ac_ext=c
8980 ac_cpp='$CPP $CPPFLAGS'
8981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8984
8985
8986 # Source file extension for C test sources.
8987 ac_ext=c
8988
8989 # Object file extension for compiled C test sources.
8990 objext=o
8991 objext=$objext
8992
8993 # Code to be used in simple compile tests
8994 lt_simple_compile_test_code="int some_variable = 0;"
8995
8996 # Code to be used in simple link tests
8997 lt_simple_link_test_code='int main(){return(0);}'
8998
8999
9000
9001
9002
9003
9004
9005 # If no C compiler was specified, use CC.
9006 LTCC=${LTCC-"$CC"}
9007
9008 # If no C compiler flags were specified, use CFLAGS.
9009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9010
9011 # Allow CC to be a program name with arguments.
9012 compiler=$CC
9013
9014 # Save the default compiler, since it gets overwritten when the other
9015 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9016 compiler_DEFAULT=$CC
9017
9018 # save warnings/boilerplate of simple test code
9019 ac_outfile=conftest.$ac_objext
9020 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9022 _lt_compiler_boilerplate=`cat conftest.err`
9023 $RM conftest*
9024
9025 ac_outfile=conftest.$ac_objext
9026 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9028 _lt_linker_boilerplate=`cat conftest.err`
9029 $RM -r conftest*
9030
9031
9032 if test -n "$compiler"; then
9033
9034 lt_prog_compiler_no_builtin_flag=
9035
9036 if test "$GCC" = yes; then
9037 case $cc_basename in
9038 nvcc*)
9039 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9040 *)
9041 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9042 esac
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9045 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9046 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 lt_cv_prog_compiler_rtti_exceptions=no
9050 ac_outfile=conftest.$ac_objext
9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9052 lt_compiler_flag="-fno-rtti -fno-exceptions"
9053 # Insert the option either (1) after the last *FLAGS variable, or
9054 # (2) before a word containing "conftest.", or (3) at the end.
9055 # Note that $ac_compile itself does not contain backslashes and begins
9056 # with a dollar sign (not a hyphen), so the echo should work correctly.
9057 # The option is referenced via a variable to avoid confusing sed.
9058 lt_compile=`echo "$ac_compile" | $SED \
9059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061 -e 's:$: $lt_compiler_flag:'`
9062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9063 (eval "$lt_compile" 2>conftest.err)
9064 ac_status=$?
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 if (exit $ac_status) && test -s "$ac_outfile"; then
9068 # The compiler can only warn and ignore the option if not recognized
9069 # So say no if there are warnings other than the usual output.
9070 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9073 lt_cv_prog_compiler_rtti_exceptions=yes
9074 fi
9075 fi
9076 $RM conftest*
9077
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9080 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9081
9082 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9083 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9084 else
9085 :
9086 fi
9087
9088 fi
9089
9090
9091
9092
9093
9094
9095 lt_prog_compiler_wl=
9096 lt_prog_compiler_pic=
9097 lt_prog_compiler_static=
9098
9099
9100 if test "$GCC" = yes; then
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_static='-static'
9103
9104 case $host_os in
9105 aix*)
9106 # All AIX code is PIC.
9107 if test "$host_cpu" = ia64; then
9108 # AIX 5 now supports IA64 processor
9109 lt_prog_compiler_static='-Bstatic'
9110 fi
9111 ;;
9112
9113 amigaos*)
9114 case $host_cpu in
9115 powerpc)
9116 # see comment about AmigaOS4 .so support
9117 lt_prog_compiler_pic='-fPIC'
9118 ;;
9119 m68k)
9120 # FIXME: we need at least 68020 code to build shared libraries, but
9121 # adding the `-m68020' flag to GCC prevents building anything better,
9122 # like `-m68040'.
9123 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9124 ;;
9125 esac
9126 ;;
9127
9128 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9129 # PIC is the default for these OSes.
9130 ;;
9131
9132 mingw* | cygwin* | pw32* | os2* | cegcc*)
9133 # This hack is so that the source file can tell whether it is being
9134 # built for inclusion in a dll (and should export symbols for example).
9135 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9136 # (--disable-auto-import) libraries
9137 lt_prog_compiler_pic='-DDLL_EXPORT'
9138 ;;
9139
9140 darwin* | rhapsody*)
9141 # PIC is the default on this platform
9142 # Common symbols not allowed in MH_DYLIB files
9143 lt_prog_compiler_pic='-fno-common'
9144 ;;
9145
9146 haiku*)
9147 # PIC is the default for Haiku.
9148 # The "-static" flag exists, but is broken.
9149 lt_prog_compiler_static=
9150 ;;
9151
9152 hpux*)
9153 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9154 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9155 # sets the default TLS model and affects inlining.
9156 case $host_cpu in
9157 hppa*64*)
9158 # +Z the default
9159 ;;
9160 *)
9161 lt_prog_compiler_pic='-fPIC'
9162 ;;
9163 esac
9164 ;;
9165
9166 interix[3-9]*)
9167 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9168 # Instead, we relocate shared libraries at runtime.
9169 ;;
9170
9171 msdosdjgpp*)
9172 # Just because we use GCC doesn't mean we suddenly get shared libraries
9173 # on systems that don't support them.
9174 lt_prog_compiler_can_build_shared=no
9175 enable_shared=no
9176 ;;
9177
9178 *nto* | *qnx*)
9179 # QNX uses GNU C++, but need to define -shared option too, otherwise
9180 # it will coredump.
9181 lt_prog_compiler_pic='-fPIC -shared'
9182 ;;
9183
9184 sysv4*MP*)
9185 if test -d /usr/nec; then
9186 lt_prog_compiler_pic=-Kconform_pic
9187 fi
9188 ;;
9189
9190 *)
9191 lt_prog_compiler_pic='-fPIC'
9192 ;;
9193 esac
9194
9195 case $cc_basename in
9196 nvcc*) # Cuda Compiler Driver 2.2
9197 lt_prog_compiler_wl='-Xlinker '
9198 lt_prog_compiler_pic='-Xcompiler -fPIC'
9199 ;;
9200 esac
9201 else
9202 # PORTME Check for flag to pass linker flags through the system compiler.
9203 case $host_os in
9204 aix*)
9205 lt_prog_compiler_wl='-Wl,'
9206 if test "$host_cpu" = ia64; then
9207 # AIX 5 now supports IA64 processor
9208 lt_prog_compiler_static='-Bstatic'
9209 else
9210 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9211 fi
9212 ;;
9213
9214 mingw* | cygwin* | pw32* | os2* | cegcc*)
9215 # This hack is so that the source file can tell whether it is being
9216 # built for inclusion in a dll (and should export symbols for example).
9217 lt_prog_compiler_pic='-DDLL_EXPORT'
9218 ;;
9219
9220 hpux9* | hpux10* | hpux11*)
9221 lt_prog_compiler_wl='-Wl,'
9222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9223 # not for PA HP-UX.
9224 case $host_cpu in
9225 hppa*64*|ia64*)
9226 # +Z the default
9227 ;;
9228 *)
9229 lt_prog_compiler_pic='+Z'
9230 ;;
9231 esac
9232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9233 lt_prog_compiler_static='${wl}-a ${wl}archive'
9234 ;;
9235
9236 irix5* | irix6* | nonstopux*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC (with -KPIC) is the default.
9239 lt_prog_compiler_static='-non_shared'
9240 ;;
9241
9242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9243 case $cc_basename in
9244 # old Intel for x86_64 which still supported -KPIC.
9245 ecc*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_pic='-KPIC'
9248 lt_prog_compiler_static='-static'
9249 ;;
9250 # icc used to be incompatible with GCC.
9251 # ICC 10 doesn't accept -KPIC any more.
9252 icc* | ifort*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='-fPIC'
9255 lt_prog_compiler_static='-static'
9256 ;;
9257 # Lahey Fortran 8.1.
9258 lf95*)
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_pic='--shared'
9261 lt_prog_compiler_static='--static'
9262 ;;
9263 nagfor*)
9264 # NAG Fortran compiler
9265 lt_prog_compiler_wl='-Wl,-Wl,,'
9266 lt_prog_compiler_pic='-PIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9270 # Portland Group compilers (*not* the Pentium gcc compiler,
9271 # which looks to be a dead project)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fpic'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276 ccc*)
9277 lt_prog_compiler_wl='-Wl,'
9278 # All Alpha code is PIC.
9279 lt_prog_compiler_static='-non_shared'
9280 ;;
9281 xl* | bgxl* | bgf* | mpixl*)
9282 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_pic='-qpic'
9285 lt_prog_compiler_static='-qstaticlink'
9286 ;;
9287 *)
9288 case `$CC -V 2>&1 | sed 5q` in
9289 *Sun\ F* | *Sun*Fortran*)
9290 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9291 lt_prog_compiler_pic='-KPIC'
9292 lt_prog_compiler_static='-Bstatic'
9293 lt_prog_compiler_wl=''
9294 ;;
9295 *Sun\ C*)
9296 # Sun C 5.9
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 lt_prog_compiler_wl='-Wl,'
9300 ;;
9301 esac
9302 ;;
9303 esac
9304 ;;
9305
9306 newsos6)
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 ;;
9310
9311 *nto* | *qnx*)
9312 # QNX uses GNU C++, but need to define -shared option too, otherwise
9313 # it will coredump.
9314 lt_prog_compiler_pic='-fPIC -shared'
9315 ;;
9316
9317 osf3* | osf4* | osf5*)
9318 lt_prog_compiler_wl='-Wl,'
9319 # All OSF/1 code is PIC.
9320 lt_prog_compiler_static='-non_shared'
9321 ;;
9322
9323 rdos*)
9324 lt_prog_compiler_static='-non_shared'
9325 ;;
9326
9327 solaris*)
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 case $cc_basename in
9331 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9332 lt_prog_compiler_wl='-Qoption ld ';;
9333 *)
9334 lt_prog_compiler_wl='-Wl,';;
9335 esac
9336 ;;
9337
9338 sunos4*)
9339 lt_prog_compiler_wl='-Qoption ld '
9340 lt_prog_compiler_pic='-PIC'
9341 lt_prog_compiler_static='-Bstatic'
9342 ;;
9343
9344 sysv4 | sysv4.2uw2* | sysv4.3*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349
9350 sysv4*MP*)
9351 if test -d /usr/nec ;then
9352 lt_prog_compiler_pic='-Kconform_pic'
9353 lt_prog_compiler_static='-Bstatic'
9354 fi
9355 ;;
9356
9357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362
9363 unicos*)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_can_build_shared=no
9366 ;;
9367
9368 uts4*)
9369 lt_prog_compiler_pic='-pic'
9370 lt_prog_compiler_static='-Bstatic'
9371 ;;
9372
9373 *)
9374 lt_prog_compiler_can_build_shared=no
9375 ;;
9376 esac
9377 fi
9378
9379 case $host_os in
9380 # For platforms which do not support PIC, -DPIC is meaningless:
9381 *djgpp*)
9382 lt_prog_compiler_pic=
9383 ;;
9384 *)
9385 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9386 ;;
9387 esac
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9390 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9391 if ${lt_cv_prog_compiler_pic+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9395 fi
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9397 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9398 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9399
9400 #
9401 # Check to make sure the PIC flag actually works.
9402 #
9403 if test -n "$lt_prog_compiler_pic"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9405 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9406 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 lt_cv_prog_compiler_pic_works=no
9410 ac_outfile=conftest.$ac_objext
9411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9413 # Insert the option either (1) after the last *FLAGS variable, or
9414 # (2) before a word containing "conftest.", or (3) at the end.
9415 # Note that $ac_compile itself does not contain backslashes and begins
9416 # with a dollar sign (not a hyphen), so the echo should work correctly.
9417 # The option is referenced via a variable to avoid confusing sed.
9418 lt_compile=`echo "$ac_compile" | $SED \
9419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9421 -e 's:$: $lt_compiler_flag:'`
9422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9423 (eval "$lt_compile" 2>conftest.err)
9424 ac_status=$?
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 if (exit $ac_status) && test -s "$ac_outfile"; then
9428 # The compiler can only warn and ignore the option if not recognized
9429 # So say no if there are warnings other than the usual output.
9430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9433 lt_cv_prog_compiler_pic_works=yes
9434 fi
9435 fi
9436 $RM conftest*
9437
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9440 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9441
9442 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9443 case $lt_prog_compiler_pic in
9444 "" | " "*) ;;
9445 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9446 esac
9447 else
9448 lt_prog_compiler_pic=
9449 lt_prog_compiler_can_build_shared=no
9450 fi
9451
9452 fi
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464 #
9465 # Check to make sure the static flag actually works.
9466 #
9467 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9470 if ${lt_cv_prog_compiler_static_works+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 lt_cv_prog_compiler_static_works=no
9474 save_LDFLAGS="$LDFLAGS"
9475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9478 # The linker can only warn and ignore the option if not recognized
9479 # So say no if there are warnings
9480 if test -s conftest.err; then
9481 # Append any errors to the config.log.
9482 cat conftest.err 1>&5
9483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485 if diff conftest.exp conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_static_works=yes
9487 fi
9488 else
9489 lt_cv_prog_compiler_static_works=yes
9490 fi
9491 fi
9492 $RM -r conftest*
9493 LDFLAGS="$save_LDFLAGS"
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9497 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9498
9499 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9500 :
9501 else
9502 lt_prog_compiler_static=
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9513 if ${lt_cv_prog_compiler_c_o+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 lt_cv_prog_compiler_c_o=no
9517 $RM -r conftest 2>/dev/null
9518 mkdir conftest
9519 cd conftest
9520 mkdir out
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522
9523 lt_compiler_flag="-o out/conftest2.$ac_objext"
9524 # Insert the option either (1) after the last *FLAGS variable, or
9525 # (2) before a word containing "conftest.", or (3) at the end.
9526 # Note that $ac_compile itself does not contain backslashes and begins
9527 # with a dollar sign (not a hyphen), so the echo should work correctly.
9528 lt_compile=`echo "$ac_compile" | $SED \
9529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9531 -e 's:$: $lt_compiler_flag:'`
9532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9533 (eval "$lt_compile" 2>out/conftest.err)
9534 ac_status=$?
9535 cat out/conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9538 then
9539 # The compiler can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
9541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler_c_o=yes
9545 fi
9546 fi
9547 chmod u+w . 2>&5
9548 $RM conftest*
9549 # SGI C++ compiler will create directory out/ii_files/ for
9550 # template instantiation
9551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9552 $RM out/* && rmdir out
9553 cd ..
9554 $RM -r conftest
9555 $RM conftest*
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9559 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9560
9561
9562
9563
9564
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9568 if ${lt_cv_prog_compiler_c_o+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 lt_cv_prog_compiler_c_o=no
9572 $RM -r conftest 2>/dev/null
9573 mkdir conftest
9574 cd conftest
9575 mkdir out
9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9577
9578 lt_compiler_flag="-o out/conftest2.$ac_objext"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 lt_compile=`echo "$ac_compile" | $SED \
9584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9586 -e 's:$: $lt_compiler_flag:'`
9587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9588 (eval "$lt_compile" 2>out/conftest.err)
9589 ac_status=$?
9590 cat out/conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9593 then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings
9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_c_o=yes
9600 fi
9601 fi
9602 chmod u+w . 2>&5
9603 $RM conftest*
9604 # SGI C++ compiler will create directory out/ii_files/ for
9605 # template instantiation
9606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9607 $RM out/* && rmdir out
9608 cd ..
9609 $RM -r conftest
9610 $RM conftest*
9611
9612 fi
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9614 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9615
9616
9617
9618
9619 hard_links="nottested"
9620 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9621 # do not overwrite the value of need_locks provided by the user
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9623 $as_echo_n "checking if we can lock with hard links... " >&6; }
9624 hard_links=yes
9625 $RM conftest*
9626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9627 touch conftest.a
9628 ln conftest.a conftest.b 2>&5 || hard_links=no
9629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9631 $as_echo "$hard_links" >&6; }
9632 if test "$hard_links" = no; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9634 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9635 need_locks=warn
9636 fi
9637 else
9638 need_locks=no
9639 fi
9640
9641
9642
9643
9644
9645
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9648
9649 runpath_var=
9650 allow_undefined_flag=
9651 always_export_symbols=no
9652 archive_cmds=
9653 archive_expsym_cmds=
9654 compiler_needs_object=no
9655 enable_shared_with_static_runtimes=no
9656 export_dynamic_flag_spec=
9657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9658 hardcode_automatic=no
9659 hardcode_direct=no
9660 hardcode_direct_absolute=no
9661 hardcode_libdir_flag_spec=
9662 hardcode_libdir_flag_spec_ld=
9663 hardcode_libdir_separator=
9664 hardcode_minus_L=no
9665 hardcode_shlibpath_var=unsupported
9666 inherit_rpath=no
9667 link_all_deplibs=unknown
9668 module_cmds=
9669 module_expsym_cmds=
9670 old_archive_from_new_cmds=
9671 old_archive_from_expsyms_cmds=
9672 thread_safe_flag_spec=
9673 whole_archive_flag_spec=
9674 # include_expsyms should be a list of space-separated symbols to be *always*
9675 # included in the symbol list
9676 include_expsyms=
9677 # exclude_expsyms can be an extended regexp of symbols to exclude
9678 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9679 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9680 # as well as any symbol that contains `d'.
9681 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9683 # platforms (ab)use it in PIC code, but their linkers get confused if
9684 # the symbol is explicitly referenced. Since portable code cannot
9685 # rely on this symbol name, it's probably fine to never include it in
9686 # preloaded symbol tables.
9687 # Exclude shared library initialization/finalization symbols.
9688 extract_expsyms_cmds=
9689
9690 case $host_os in
9691 cygwin* | mingw* | pw32* | cegcc*)
9692 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9693 # When not using gcc, we currently assume that we are using
9694 # Microsoft Visual C++.
9695 if test "$GCC" != yes; then
9696 with_gnu_ld=no
9697 fi
9698 ;;
9699 interix*)
9700 # we just hope/assume this is gcc and not c89 (= MSVC++)
9701 with_gnu_ld=yes
9702 ;;
9703 openbsd*)
9704 with_gnu_ld=no
9705 ;;
9706 esac
9707
9708 ld_shlibs=yes
9709
9710 # On some targets, GNU ld is compatible enough with the native linker
9711 # that we're better off using the native interface for both.
9712 lt_use_gnu_ld_interface=no
9713 if test "$with_gnu_ld" = yes; then
9714 case $host_os in
9715 aix*)
9716 # The AIX port of GNU ld has always aspired to compatibility
9717 # with the native linker. However, as the warning in the GNU ld
9718 # block says, versions before 2.19.5* couldn't really create working
9719 # shared libraries, regardless of the interface used.
9720 case `$LD -v 2>&1` in
9721 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9722 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9723 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9724 *)
9725 lt_use_gnu_ld_interface=yes
9726 ;;
9727 esac
9728 ;;
9729 *)
9730 lt_use_gnu_ld_interface=yes
9731 ;;
9732 esac
9733 fi
9734
9735 if test "$lt_use_gnu_ld_interface" = yes; then
9736 # If archive_cmds runs LD, not CC, wlarc should be empty
9737 wlarc='${wl}'
9738
9739 # Set some defaults for GNU ld with shared library support. These
9740 # are reset later if shared libraries are not supported. Putting them
9741 # here allows them to be overridden if necessary.
9742 runpath_var=LD_RUN_PATH
9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9744 export_dynamic_flag_spec='${wl}--export-dynamic'
9745 # ancient GNU ld didn't support --whole-archive et. al.
9746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9747 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9748 else
9749 whole_archive_flag_spec=
9750 fi
9751 supports_anon_versioning=no
9752 case `$LD -v 2>&1` in
9753 *GNU\ gold*) supports_anon_versioning=yes ;;
9754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9757 *\ 2.11.*) ;; # other 2.11 versions
9758 *) supports_anon_versioning=yes ;;
9759 esac
9760
9761 # See if GNU ld supports shared libraries.
9762 case $host_os in
9763 aix[3-9]*)
9764 # On AIX/PPC, the GNU linker is very broken
9765 if test "$host_cpu" != ia64; then
9766 ld_shlibs=no
9767 cat <<_LT_EOF 1>&2
9768
9769 *** Warning: the GNU linker, at least up to release 2.19, is reported
9770 *** to be unable to reliably create shared libraries on AIX.
9771 *** Therefore, libtool is disabling shared libraries support. If you
9772 *** really care for shared libraries, you may want to install binutils
9773 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9774 *** You will then need to restart the configuration process.
9775
9776 _LT_EOF
9777 fi
9778 ;;
9779
9780 amigaos*)
9781 case $host_cpu in
9782 powerpc)
9783 # see comment about AmigaOS4 .so support
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds=''
9786 ;;
9787 m68k)
9788 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)'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9791 ;;
9792 esac
9793 ;;
9794
9795 beos*)
9796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 allow_undefined_flag=unsupported
9798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9799 # support --undefined. This deserves some investigation. FIXME
9800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 else
9802 ld_shlibs=no
9803 fi
9804 ;;
9805
9806 cygwin* | mingw* | pw32* | cegcc*)
9807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9808 # as there is no search path for DLLs.
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 export_dynamic_flag_spec='${wl}--export-all-symbols'
9811 allow_undefined_flag=unsupported
9812 always_export_symbols=no
9813 enable_shared_with_static_runtimes=yes
9814 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'
9815 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9816
9817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9819 # If the export-symbols file already is a .def file (1st line
9820 # is EXPORTS), use it as is; otherwise, prepend...
9821 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9822 cp $export_symbols $output_objdir/$soname.def;
9823 else
9824 echo EXPORTS > $output_objdir/$soname.def;
9825 cat $export_symbols >> $output_objdir/$soname.def;
9826 fi~
9827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 else
9829 ld_shlibs=no
9830 fi
9831 ;;
9832
9833 haiku*)
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835 link_all_deplibs=yes
9836 ;;
9837
9838 interix[3-9]*)
9839 hardcode_direct=no
9840 hardcode_shlibpath_var=no
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9842 export_dynamic_flag_spec='${wl}-E'
9843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9844 # Instead, shared libraries are loaded at an image base (0x10000000 by
9845 # default) and relocated if they conflict, which is a slow very memory
9846 # consuming and fragmenting process. To avoid this, we pick a random,
9847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9850 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'
9851 ;;
9852
9853 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9854 tmp_diet=no
9855 if test "$host_os" = linux-dietlibc; then
9856 case $cc_basename in
9857 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9858 esac
9859 fi
9860 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9861 && test "$tmp_diet" = no
9862 then
9863 tmp_addflag=' $pic_flag'
9864 tmp_sharedflag='-shared'
9865 case $cc_basename,$host_cpu in
9866 pgcc*) # Portland Group C compiler
9867 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'
9868 tmp_addflag=' $pic_flag'
9869 ;;
9870 pgf77* | pgf90* | pgf95* | pgfortran*)
9871 # Portland Group f77 and f90 compilers
9872 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'
9873 tmp_addflag=' $pic_flag -Mnomain' ;;
9874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9875 tmp_addflag=' -i_dynamic' ;;
9876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9877 tmp_addflag=' -i_dynamic -nofor_main' ;;
9878 ifc* | ifort*) # Intel Fortran compiler
9879 tmp_addflag=' -nofor_main' ;;
9880 lf95*) # Lahey Fortran 8.1
9881 whole_archive_flag_spec=
9882 tmp_sharedflag='--shared' ;;
9883 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9884 tmp_sharedflag='-qmkshrobj'
9885 tmp_addflag= ;;
9886 nvcc*) # Cuda Compiler Driver 2.2
9887 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'
9888 compiler_needs_object=yes
9889 ;;
9890 esac
9891 case `$CC -V 2>&1 | sed 5q` in
9892 *Sun\ C*) # Sun C 5.9
9893 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'
9894 compiler_needs_object=yes
9895 tmp_sharedflag='-G' ;;
9896 *Sun\ F*) # Sun Fortran 8.3
9897 tmp_sharedflag='-G' ;;
9898 esac
9899 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900
9901 if test "x$supports_anon_versioning" = xyes; then
9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9904 echo "local: *; };" >> $output_objdir/$libname.ver~
9905 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9906 fi
9907
9908 case $cc_basename in
9909 xlf* | bgf* | bgxlf* | mpixlf*)
9910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9912 hardcode_libdir_flag_spec=
9913 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9914 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9915 if test "x$supports_anon_versioning" = xyes; then
9916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 echo "local: *; };" >> $output_objdir/$libname.ver~
9919 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9920 fi
9921 ;;
9922 esac
9923 else
9924 ld_shlibs=no
9925 fi
9926 ;;
9927
9928 netbsd*)
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9931 wlarc=
9932 else
9933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935 fi
9936 ;;
9937
9938 solaris*)
9939 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9942
9943 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944 *** create shared libraries on Solaris systems. Therefore, libtool
9945 *** is disabling shared libraries support. We urge you to upgrade GNU
9946 *** binutils to release 2.9.1 or newer. Another option is to modify
9947 *** your PATH or compiler configuration so that the native linker is
9948 *** used, and then restart.
9949
9950 _LT_EOF
9951 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954 else
9955 ld_shlibs=no
9956 fi
9957 ;;
9958
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960 case `$LD -v 2>&1` in
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9962 ld_shlibs=no
9963 cat <<_LT_EOF 1>&2
9964
9965 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9966 *** reliably create shared libraries on SCO systems. Therefore, libtool
9967 *** is disabling shared libraries support. We urge you to upgrade GNU
9968 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9969 *** your PATH or compiler configuration so that the native linker is
9970 *** used, and then restart.
9971
9972 _LT_EOF
9973 ;;
9974 *)
9975 # For security reasons, it is highly recommended that you always
9976 # use absolute paths for naming shared libraries, and exclude the
9977 # DT_RUNPATH tag from executables and libraries. But doing so
9978 # requires that you compile everything twice, which is a pain.
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987 esac
9988 ;;
9989
9990 sunos4*)
9991 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 wlarc=
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9995 ;;
9996
9997 *)
9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005 esac
10006
10007 if test "$ld_shlibs" = no; then
10008 runpath_var=
10009 hardcode_libdir_flag_spec=
10010 export_dynamic_flag_spec=
10011 whole_archive_flag_spec=
10012 fi
10013 else
10014 # PORTME fill in a description of your system's linker (not GNU ld)
10015 case $host_os in
10016 aix3*)
10017 allow_undefined_flag=unsupported
10018 always_export_symbols=yes
10019 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'
10020 # Note: this linker hardcodes the directories in LIBPATH if there
10021 # are no directories specified by -L.
10022 hardcode_minus_L=yes
10023 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10024 # Neither direct hardcoding nor static linking is supported with a
10025 # broken collect2.
10026 hardcode_direct=unsupported
10027 fi
10028 ;;
10029
10030 aix[4-9]*)
10031 if test "$host_cpu" = ia64; then
10032 # On IA64, the linker does run time linking by default, so we don't
10033 # have to do anything special.
10034 aix_use_runtimelinking=no
10035 exp_sym_flag='-Bexport'
10036 no_entry_flag=""
10037 else
10038 # If we're using GNU nm, then we don't want the "-C" option.
10039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10040 # Also, AIX nm treats weak defined symbols like other global
10041 # defined symbols, whereas GNU nm marks them as "W".
10042 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10043 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'
10044 else
10045 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'
10046 fi
10047 aix_use_runtimelinking=no
10048
10049 # Test if we are trying to use run time linking or normal
10050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051 # need to do runtime linking.
10052 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10053 for ld_flag in $LDFLAGS; do
10054 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10055 aix_use_runtimelinking=yes
10056 break
10057 fi
10058 done
10059 ;;
10060 esac
10061
10062 exp_sym_flag='-bexport'
10063 no_entry_flag='-bnoentry'
10064 fi
10065
10066 # When large executables or shared objects are built, AIX ld can
10067 # have problems creating the table of contents. If linking a library
10068 # or program results in "error TOC overflow" add -mminimal-toc to
10069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10071
10072 archive_cmds=''
10073 hardcode_direct=yes
10074 hardcode_direct_absolute=yes
10075 hardcode_libdir_separator=':'
10076 link_all_deplibs=yes
10077 file_list_spec='${wl}-f,'
10078
10079 if test "$GCC" = yes; then
10080 case $host_os in aix4.[012]|aix4.[012].*)
10081 # We only want to do this on AIX 4.2 and lower, the check
10082 # below for broken collect2 doesn't work under 4.3+
10083 collect2name=`${CC} -print-prog-name=collect2`
10084 if test -f "$collect2name" &&
10085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10086 then
10087 # We have reworked collect2
10088 :
10089 else
10090 # We have old collect2
10091 hardcode_direct=unsupported
10092 # It fails to find uninstalled libraries when the uninstalled
10093 # path is not listed in the libpath. Setting hardcode_minus_L
10094 # to unsupported forces relinking
10095 hardcode_minus_L=yes
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_libdir_separator=
10098 fi
10099 ;;
10100 esac
10101 shared_flag='-shared'
10102 if test "$aix_use_runtimelinking" = yes; then
10103 shared_flag="$shared_flag "'${wl}-G'
10104 fi
10105 else
10106 # not using gcc
10107 if test "$host_cpu" = ia64; then
10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10109 # chokes on -Wl,-G. The following line is correct:
10110 shared_flag='-G'
10111 else
10112 if test "$aix_use_runtimelinking" = yes; then
10113 shared_flag='${wl}-G'
10114 else
10115 shared_flag='${wl}-bM:SRE'
10116 fi
10117 fi
10118 fi
10119
10120 export_dynamic_flag_spec='${wl}-bexpall'
10121 # It seems that -bexpall does not export symbols beginning with
10122 # underscore (_), so it is better to generate a list of symbols to export.
10123 always_export_symbols=yes
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # Warning - without using the other runtime loading flags (-brtl),
10126 # -berok will link without error, but may produce a broken library.
10127 allow_undefined_flag='-berok'
10128 # Determine the default libpath from the value encoded in an
10129 # empty executable.
10130 if test "${lt_cv_aix_libpath+set}" = set; then
10131 aix_libpath=$lt_cv_aix_libpath
10132 else
10133 if ${lt_cv_aix_libpath_+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138
10139 int
10140 main ()
10141 {
10142
10143 ;
10144 return 0;
10145 }
10146 _ACEOF
10147 if ac_fn_c_try_link "$LINENO"; then :
10148
10149 lt_aix_libpath_sed='
10150 /Import File Strings/,/^$/ {
10151 /^0/ {
10152 s/^0 *\([^ ]*\) *$/\1/
10153 p
10154 }
10155 }'
10156 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10157 # Check for a 64-bit object if we didn't find anything.
10158 if test -z "$lt_cv_aix_libpath_"; then
10159 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10160 fi
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 if test -z "$lt_cv_aix_libpath_"; then
10165 lt_cv_aix_libpath_="/usr/lib:/lib"
10166 fi
10167
10168 fi
10169
10170 aix_libpath=$lt_cv_aix_libpath_
10171 fi
10172
10173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10174 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"
10175 else
10176 if test "$host_cpu" = ia64; then
10177 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10178 allow_undefined_flag="-z nodefs"
10179 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"
10180 else
10181 # Determine the default libpath from the value encoded in an
10182 # empty executable.
10183 if test "${lt_cv_aix_libpath+set}" = set; then
10184 aix_libpath=$lt_cv_aix_libpath
10185 else
10186 if ${lt_cv_aix_libpath_+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191
10192 int
10193 main ()
10194 {
10195
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 if ac_fn_c_try_link "$LINENO"; then :
10201
10202 lt_aix_libpath_sed='
10203 /Import File Strings/,/^$/ {
10204 /^0/ {
10205 s/^0 *\([^ ]*\) *$/\1/
10206 p
10207 }
10208 }'
10209 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10210 # Check for a 64-bit object if we didn't find anything.
10211 if test -z "$lt_cv_aix_libpath_"; then
10212 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10213 fi
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 if test -z "$lt_cv_aix_libpath_"; then
10218 lt_cv_aix_libpath_="/usr/lib:/lib"
10219 fi
10220
10221 fi
10222
10223 aix_libpath=$lt_cv_aix_libpath_
10224 fi
10225
10226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10227 # Warning - without using the other run time loading flags,
10228 # -berok will link without error, but may produce a broken library.
10229 no_undefined_flag=' ${wl}-bernotok'
10230 allow_undefined_flag=' ${wl}-berok'
10231 if test "$with_gnu_ld" = yes; then
10232 # We only use this code for GNU lds that support --whole-archive.
10233 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10234 else
10235 # Exported symbols can be pulled into shared objects from archives
10236 whole_archive_flag_spec='$convenience'
10237 fi
10238 archive_cmds_need_lc=yes
10239 # This is similar to how AIX traditionally builds its shared libraries.
10240 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'
10241 fi
10242 fi
10243 ;;
10244
10245 amigaos*)
10246 case $host_cpu in
10247 powerpc)
10248 # see comment about AmigaOS4 .so support
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 archive_expsym_cmds=''
10251 ;;
10252 m68k)
10253 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)'
10254 hardcode_libdir_flag_spec='-L$libdir'
10255 hardcode_minus_L=yes
10256 ;;
10257 esac
10258 ;;
10259
10260 bsdi[45]*)
10261 export_dynamic_flag_spec=-rdynamic
10262 ;;
10263
10264 cygwin* | mingw* | pw32* | cegcc*)
10265 # When not using gcc, we currently assume that we are using
10266 # Microsoft Visual C++.
10267 # hardcode_libdir_flag_spec is actually meaningless, as there is
10268 # no search path for DLLs.
10269 case $cc_basename in
10270 cl*)
10271 # Native MSVC
10272 hardcode_libdir_flag_spec=' '
10273 allow_undefined_flag=unsupported
10274 always_export_symbols=yes
10275 file_list_spec='@'
10276 # Tell ltmain to make .lib files, not .a files.
10277 libext=lib
10278 # Tell ltmain to make .dll files, not .so files.
10279 shrext_cmds=".dll"
10280 # FIXME: Setting linknames here is a bad hack.
10281 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10282 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10283 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10284 else
10285 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10286 fi~
10287 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10288 linknames='
10289 # The linker will not automatically build a static lib if we build a DLL.
10290 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10291 enable_shared_with_static_runtimes=yes
10292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10293 # Don't use ranlib
10294 old_postinstall_cmds='chmod 644 $oldlib'
10295 postlink_cmds='lt_outputfile="@OUTPUT@"~
10296 lt_tool_outputfile="@TOOL_OUTPUT@"~
10297 case $lt_outputfile in
10298 *.exe|*.EXE) ;;
10299 *)
10300 lt_outputfile="$lt_outputfile.exe"
10301 lt_tool_outputfile="$lt_tool_outputfile.exe"
10302 ;;
10303 esac~
10304 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10306 $RM "$lt_outputfile.manifest";
10307 fi'
10308 ;;
10309 *)
10310 # Assume MSVC wrapper
10311 hardcode_libdir_flag_spec=' '
10312 allow_undefined_flag=unsupported
10313 # Tell ltmain to make .lib files, not .a files.
10314 libext=lib
10315 # Tell ltmain to make .dll files, not .so files.
10316 shrext_cmds=".dll"
10317 # FIXME: Setting linknames here is a bad hack.
10318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10319 # The linker will automatically build a .lib file if we build a DLL.
10320 old_archive_from_new_cmds='true'
10321 # FIXME: Should let the user specify the lib program.
10322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323 enable_shared_with_static_runtimes=yes
10324 ;;
10325 esac
10326 ;;
10327
10328 darwin* | rhapsody*)
10329
10330
10331 archive_cmds_need_lc=no
10332 hardcode_direct=no
10333 hardcode_automatic=yes
10334 hardcode_shlibpath_var=unsupported
10335 if test "$lt_cv_ld_force_load" = "yes"; then
10336 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\"`'
10337 else
10338 whole_archive_flag_spec=''
10339 fi
10340 link_all_deplibs=yes
10341 allow_undefined_flag="$_lt_dar_allow_undefined"
10342 case $cc_basename in
10343 ifort*) _lt_dar_can_shared=yes ;;
10344 *) _lt_dar_can_shared=$GCC ;;
10345 esac
10346 if test "$_lt_dar_can_shared" = "yes"; then
10347 output_verbose_link_cmd=func_echo_all
10348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10350 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}"
10351 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}"
10352
10353 else
10354 ld_shlibs=no
10355 fi
10356
10357 ;;
10358
10359 dgux*)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_libdir_flag_spec='-L$libdir'
10362 hardcode_shlibpath_var=no
10363 ;;
10364
10365 freebsd1*)
10366 ld_shlibs=no
10367 ;;
10368
10369 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10370 # support. Future versions do this automatically, but an explicit c++rt0.o
10371 # does not break anything, and helps significantly (at the cost of a little
10372 # extra space).
10373 freebsd2.2*)
10374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10375 hardcode_libdir_flag_spec='-R$libdir'
10376 hardcode_direct=yes
10377 hardcode_shlibpath_var=no
10378 ;;
10379
10380 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10381 freebsd2*)
10382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10383 hardcode_direct=yes
10384 hardcode_minus_L=yes
10385 hardcode_shlibpath_var=no
10386 ;;
10387
10388 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10389 freebsd* | dragonfly*)
10390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391 hardcode_libdir_flag_spec='-R$libdir'
10392 hardcode_direct=yes
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 hpux9*)
10397 if test "$GCC" = yes; then
10398 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'
10399 else
10400 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'
10401 fi
10402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403 hardcode_libdir_separator=:
10404 hardcode_direct=yes
10405
10406 # hardcode_minus_L: Not really in the search PATH,
10407 # but as the default location of the library.
10408 hardcode_minus_L=yes
10409 export_dynamic_flag_spec='${wl}-E'
10410 ;;
10411
10412 hpux10*)
10413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10414 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10415 else
10416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10417 fi
10418 if test "$with_gnu_ld" = no; then
10419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10420 hardcode_libdir_flag_spec_ld='+b $libdir'
10421 hardcode_libdir_separator=:
10422 hardcode_direct=yes
10423 hardcode_direct_absolute=yes
10424 export_dynamic_flag_spec='${wl}-E'
10425 # hardcode_minus_L: Not really in the search PATH,
10426 # but as the default location of the library.
10427 hardcode_minus_L=yes
10428 fi
10429 ;;
10430
10431 hpux11*)
10432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10433 case $host_cpu in
10434 hppa*64*)
10435 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 ia64*)
10438 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10439 ;;
10440 *)
10441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 ;;
10443 esac
10444 else
10445 case $host_cpu in
10446 hppa*64*)
10447 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 ;;
10449 ia64*)
10450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10451 ;;
10452 *)
10453
10454 # Older versions of the 11.00 compiler do not understand -b yet
10455 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10457 $as_echo_n "checking if $CC understands -b... " >&6; }
10458 if ${lt_cv_prog_compiler__b+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 lt_cv_prog_compiler__b=no
10462 save_LDFLAGS="$LDFLAGS"
10463 LDFLAGS="$LDFLAGS -b"
10464 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10466 # The linker can only warn and ignore the option if not recognized
10467 # So say no if there are warnings
10468 if test -s conftest.err; then
10469 # Append any errors to the config.log.
10470 cat conftest.err 1>&5
10471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10473 if diff conftest.exp conftest.er2 >/dev/null; then
10474 lt_cv_prog_compiler__b=yes
10475 fi
10476 else
10477 lt_cv_prog_compiler__b=yes
10478 fi
10479 fi
10480 $RM -r conftest*
10481 LDFLAGS="$save_LDFLAGS"
10482
10483 fi
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10485 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10486
10487 if test x"$lt_cv_prog_compiler__b" = xyes; then
10488 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10489 else
10490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10491 fi
10492
10493 ;;
10494 esac
10495 fi
10496 if test "$with_gnu_ld" = no; then
10497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10498 hardcode_libdir_separator=:
10499
10500 case $host_cpu in
10501 hppa*64*|ia64*)
10502 hardcode_direct=no
10503 hardcode_shlibpath_var=no
10504 ;;
10505 *)
10506 hardcode_direct=yes
10507 hardcode_direct_absolute=yes
10508 export_dynamic_flag_spec='${wl}-E'
10509
10510 # hardcode_minus_L: Not really in the search PATH,
10511 # but as the default location of the library.
10512 hardcode_minus_L=yes
10513 ;;
10514 esac
10515 fi
10516 ;;
10517
10518 irix5* | irix6* | nonstopux*)
10519 if test "$GCC" = yes; then
10520 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'
10521 # Try to use the -exported_symbol ld option, if it does not
10522 # work, assume that -exports_file does not work either and
10523 # implicitly export all symbols.
10524 # This should be the same for all languages, so no per-tag cache variable.
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10526 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10527 if ${lt_cv_irix_exported_symbol+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 save_LDFLAGS="$LDFLAGS"
10531 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 int foo (void) { return 0; }
10535 _ACEOF
10536 if ac_fn_c_try_link "$LINENO"; then :
10537 lt_cv_irix_exported_symbol=yes
10538 else
10539 lt_cv_irix_exported_symbol=no
10540 fi
10541 rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 LDFLAGS="$save_LDFLAGS"
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10546 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10547 if test "$lt_cv_irix_exported_symbol" = yes; then
10548 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'
10549 fi
10550 else
10551 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'
10552 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'
10553 fi
10554 archive_cmds_need_lc='no'
10555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556 hardcode_libdir_separator=:
10557 inherit_rpath=yes
10558 link_all_deplibs=yes
10559 ;;
10560
10561 netbsd*)
10562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10564 else
10565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10566 fi
10567 hardcode_libdir_flag_spec='-R$libdir'
10568 hardcode_direct=yes
10569 hardcode_shlibpath_var=no
10570 ;;
10571
10572 newsos6)
10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_direct=yes
10575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_shlibpath_var=no
10578 ;;
10579
10580 *nto* | *qnx*)
10581 ;;
10582
10583 openbsd*)
10584 if test -f /usr/libexec/ld.so; then
10585 hardcode_direct=yes
10586 hardcode_shlibpath_var=no
10587 hardcode_direct_absolute=yes
10588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10592 export_dynamic_flag_spec='${wl}-E'
10593 else
10594 case $host_os in
10595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10597 hardcode_libdir_flag_spec='-R$libdir'
10598 ;;
10599 *)
10600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10602 ;;
10603 esac
10604 fi
10605 else
10606 ld_shlibs=no
10607 fi
10608 ;;
10609
10610 os2*)
10611 hardcode_libdir_flag_spec='-L$libdir'
10612 hardcode_minus_L=yes
10613 allow_undefined_flag=unsupported
10614 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'
10615 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10616 ;;
10617
10618 osf3*)
10619 if test "$GCC" = yes; then
10620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10621 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'
10622 else
10623 allow_undefined_flag=' -expect_unresolved \*'
10624 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'
10625 fi
10626 archive_cmds_need_lc='no'
10627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10628 hardcode_libdir_separator=:
10629 ;;
10630
10631 osf4* | osf5*) # as osf3* with the addition of -msym flag
10632 if test "$GCC" = yes; then
10633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10634 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'
10635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10636 else
10637 allow_undefined_flag=' -expect_unresolved \*'
10638 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'
10639 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~
10640 $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'
10641
10642 # Both c and cxx compiler support -rpath directly
10643 hardcode_libdir_flag_spec='-rpath $libdir'
10644 fi
10645 archive_cmds_need_lc='no'
10646 hardcode_libdir_separator=:
10647 ;;
10648
10649 solaris*)
10650 no_undefined_flag=' -z defs'
10651 if test "$GCC" = yes; then
10652 wlarc='${wl}'
10653 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10655 $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'
10656 else
10657 case `$CC -V 2>&1` in
10658 *"Compilers 5.0"*)
10659 wlarc=''
10660 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10663 ;;
10664 *)
10665 wlarc='${wl}'
10666 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10668 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10669 ;;
10670 esac
10671 fi
10672 hardcode_libdir_flag_spec='-R$libdir'
10673 hardcode_shlibpath_var=no
10674 case $host_os in
10675 solaris2.[0-5] | solaris2.[0-5].*) ;;
10676 *)
10677 # The compiler driver will combine and reorder linker options,
10678 # but understands `-z linker_flag'. GCC discards it without `$wl',
10679 # but is careful enough not to reorder.
10680 # Supported since Solaris 2.6 (maybe 2.5.1?)
10681 if test "$GCC" = yes; then
10682 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10683 else
10684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10685 fi
10686 ;;
10687 esac
10688 link_all_deplibs=yes
10689 ;;
10690
10691 sunos4*)
10692 if test "x$host_vendor" = xsequent; then
10693 # Use $CC to link under sequent, because it throws in some extra .o
10694 # files that make .init and .fini sections work.
10695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10696 else
10697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10698 fi
10699 hardcode_libdir_flag_spec='-L$libdir'
10700 hardcode_direct=yes
10701 hardcode_minus_L=yes
10702 hardcode_shlibpath_var=no
10703 ;;
10704
10705 sysv4)
10706 case $host_vendor in
10707 sni)
10708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_direct=yes # is this really true???
10710 ;;
10711 siemens)
10712 ## LD is ld it makes a PLAMLIB
10713 ## CC just makes a GrossModule.
10714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10715 reload_cmds='$CC -r -o $output$reload_objs'
10716 hardcode_direct=no
10717 ;;
10718 motorola)
10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10721 ;;
10722 esac
10723 runpath_var='LD_RUN_PATH'
10724 hardcode_shlibpath_var=no
10725 ;;
10726
10727 sysv4.3*)
10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_shlibpath_var=no
10730 export_dynamic_flag_spec='-Bexport'
10731 ;;
10732
10733 sysv4*MP*)
10734 if test -d /usr/nec; then
10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736 hardcode_shlibpath_var=no
10737 runpath_var=LD_RUN_PATH
10738 hardcode_runpath_var=yes
10739 ld_shlibs=yes
10740 fi
10741 ;;
10742
10743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10744 no_undefined_flag='${wl}-z,text'
10745 archive_cmds_need_lc=no
10746 hardcode_shlibpath_var=no
10747 runpath_var='LD_RUN_PATH'
10748
10749 if test "$GCC" = yes; then
10750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 else
10753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 fi
10756 ;;
10757
10758 sysv5* | sco3.2v5* | sco5v6*)
10759 # Note: We can NOT use -z defs as we might desire, because we do not
10760 # link with -lc, and that would cause any symbols used from libc to
10761 # always be unresolved, which means just about no library would
10762 # ever link correctly. If we're not using GNU ld we use -z text
10763 # though, which does catch some bad symbols but isn't as heavy-handed
10764 # as -z defs.
10765 no_undefined_flag='${wl}-z,text'
10766 allow_undefined_flag='${wl}-z,nodefs'
10767 archive_cmds_need_lc=no
10768 hardcode_shlibpath_var=no
10769 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10770 hardcode_libdir_separator=':'
10771 link_all_deplibs=yes
10772 export_dynamic_flag_spec='${wl}-Bexport'
10773 runpath_var='LD_RUN_PATH'
10774
10775 if test "$GCC" = yes; then
10776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 else
10779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 fi
10782 ;;
10783
10784 uts4*)
10785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_shlibpath_var=no
10788 ;;
10789
10790 *)
10791 ld_shlibs=no
10792 ;;
10793 esac
10794
10795 if test x$host_vendor = xsni; then
10796 case $host in
10797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10798 export_dynamic_flag_spec='${wl}-Blargedynsym'
10799 ;;
10800 esac
10801 fi
10802 fi
10803
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10805 $as_echo "$ld_shlibs" >&6; }
10806 test "$ld_shlibs" = no && can_build_shared=no
10807
10808 with_gnu_ld=$with_gnu_ld
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 #
10825 # Do we need to explicitly link libc?
10826 #
10827 case "x$archive_cmds_need_lc" in
10828 x|xyes)
10829 # Assume -lc should be added
10830 archive_cmds_need_lc=yes
10831
10832 if test "$enable_shared" = yes && test "$GCC" = yes; then
10833 case $archive_cmds in
10834 *'~'*)
10835 # FIXME: we may have to deal with multi-command sequences.
10836 ;;
10837 '$CC '*)
10838 # Test whether the compiler implicitly links with -lc since on some
10839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10840 # to ld, don't add -lc before -lgcc.
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10842 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10843 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 $RM conftest*
10847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10848
10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10850 (eval $ac_compile) 2>&5
10851 ac_status=$?
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; } 2>conftest.err; then
10854 soname=conftest
10855 lib=conftest
10856 libobjs=conftest.$ac_objext
10857 deplibs=
10858 wl=$lt_prog_compiler_wl
10859 pic_flag=$lt_prog_compiler_pic
10860 compiler_flags=-v
10861 linker_flags=-v
10862 verstring=
10863 output_objdir=.
10864 libname=conftest
10865 lt_save_allow_undefined_flag=$allow_undefined_flag
10866 allow_undefined_flag=
10867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10868 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10869 ac_status=$?
10870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871 test $ac_status = 0; }
10872 then
10873 lt_cv_archive_cmds_need_lc=no
10874 else
10875 lt_cv_archive_cmds_need_lc=yes
10876 fi
10877 allow_undefined_flag=$lt_save_allow_undefined_flag
10878 else
10879 cat conftest.err 1>&5
10880 fi
10881 $RM conftest*
10882
10883 fi
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10885 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10886 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10887 ;;
10888 esac
10889 fi
10890 ;;
10891 esac
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
11042
11043
11044
11045
11046
11047
11048
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11051
11052 if test "$GCC" = yes; then
11053 case $host_os in
11054 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11055 *) lt_awk_arg="/^libraries:/" ;;
11056 esac
11057 case $host_os in
11058 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11059 *) lt_sed_strip_eq="s,=/,/,g" ;;
11060 esac
11061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11062 case $lt_search_path_spec in
11063 *\;*)
11064 # if the path contains ";" then we assume it to be the separator
11065 # otherwise default to the standard path separator (i.e. ":") - it is
11066 # assumed that no part of a normal pathname contains ";" but that should
11067 # okay in the real world where ";" in dirpaths is itself problematic.
11068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11069 ;;
11070 *)
11071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11072 ;;
11073 esac
11074 # Ok, now we have the path, separated by spaces, we can step through it
11075 # and add multilib dir if necessary.
11076 lt_tmp_lt_search_path_spec=
11077 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11078 for lt_sys_path in $lt_search_path_spec; do
11079 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11081 else
11082 test -d "$lt_sys_path" && \
11083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11084 fi
11085 done
11086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11087 BEGIN {RS=" "; FS="/|\n";} {
11088 lt_foo="";
11089 lt_count=0;
11090 for (lt_i = NF; lt_i > 0; lt_i--) {
11091 if ($lt_i != "" && $lt_i != ".") {
11092 if ($lt_i == "..") {
11093 lt_count++;
11094 } else {
11095 if (lt_count == 0) {
11096 lt_foo="/" $lt_i lt_foo;
11097 } else {
11098 lt_count--;
11099 }
11100 }
11101 }
11102 }
11103 if (lt_foo != "") { lt_freq[lt_foo]++; }
11104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11105 }'`
11106 # AWK program above erroneously prepends '/' to C:/dos/paths
11107 # for these hosts.
11108 case $host_os in
11109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11110 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11111 esac
11112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11113 else
11114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115 fi
11116 library_names_spec=
11117 libname_spec='lib$name'
11118 soname_spec=
11119 shrext_cmds=".so"
11120 postinstall_cmds=
11121 postuninstall_cmds=
11122 finish_cmds=
11123 finish_eval=
11124 shlibpath_var=
11125 shlibpath_overrides_runpath=unknown
11126 version_type=none
11127 dynamic_linker="$host_os ld.so"
11128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11129 need_lib_prefix=unknown
11130 hardcode_into_libs=no
11131
11132 # when you set need_version to no, make sure it does not cause -set_version
11133 # flags to be left without arguments
11134 need_version=unknown
11135
11136 case $host_os in
11137 aix3*)
11138 version_type=linux
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11140 shlibpath_var=LIBPATH
11141
11142 # AIX 3 has no versioning support, so we append a major version to the name.
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 ;;
11145
11146 aix[4-9]*)
11147 version_type=linux
11148 need_lib_prefix=no
11149 need_version=no
11150 hardcode_into_libs=yes
11151 if test "$host_cpu" = ia64; then
11152 # AIX 5 supports IA64
11153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 else
11156 # With GCC up to 2.95.x, collect2 would create an import file
11157 # for dependence libraries. The import file would start with
11158 # the line `#! .'. This would cause the generated library to
11159 # depend on `.', always an invalid library. This was fixed in
11160 # development snapshots of GCC prior to 3.0.
11161 case $host_os in
11162 aix4 | aix4.[01] | aix4.[01].*)
11163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11164 echo ' yes '
11165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11166 :
11167 else
11168 can_build_shared=no
11169 fi
11170 ;;
11171 esac
11172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11173 # soname into executable. Probably we can add versioning support to
11174 # collect2, so additional links can be useful in future.
11175 if test "$aix_use_runtimelinking" = yes; then
11176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177 # instead of lib<name>.a to let people know that these are not
11178 # typical AIX shared libraries.
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 else
11181 # We preserve .a as extension for shared libraries through AIX4.2
11182 # and later when we are not doing run time linking.
11183 library_names_spec='${libname}${release}.a $libname.a'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 fi
11186 shlibpath_var=LIBPATH
11187 fi
11188 ;;
11189
11190 amigaos*)
11191 case $host_cpu in
11192 powerpc)
11193 # Since July 2007 AmigaOS4 officially supports .so libraries.
11194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 ;;
11197 m68k)
11198 library_names_spec='$libname.ixlibrary $libname.a'
11199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11200 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'
11201 ;;
11202 esac
11203 ;;
11204
11205 beos*)
11206 library_names_spec='${libname}${shared_ext}'
11207 dynamic_linker="$host_os ld.so"
11208 shlibpath_var=LIBRARY_PATH
11209 ;;
11210
11211 bsdi[45]*)
11212 version_type=linux
11213 need_version=no
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11220 # the default ld.so.conf also contains /usr/contrib/lib and
11221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11222 # libtool to hard-code these into programs
11223 ;;
11224
11225 cygwin* | mingw* | pw32* | cegcc*)
11226 version_type=windows
11227 shrext_cmds=".dll"
11228 need_version=no
11229 need_lib_prefix=no
11230
11231 case $GCC,$cc_basename in
11232 yes,*)
11233 # gcc
11234 library_names_spec='$libname.dll.a'
11235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11236 postinstall_cmds='base_file=`basename \${file}`~
11237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11238 dldir=$destdir/`dirname \$dlpath`~
11239 test -d \$dldir || mkdir -p \$dldir~
11240 $install_prog $dir/$dlname \$dldir/$dlname~
11241 chmod a+x \$dldir/$dlname~
11242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11244 fi'
11245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11246 dlpath=$dir/\$dldll~
11247 $RM \$dlpath'
11248 shlibpath_overrides_runpath=yes
11249
11250 case $host_os in
11251 cygwin*)
11252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11254
11255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11256 ;;
11257 mingw* | cegcc*)
11258 # MinGW DLLs use traditional 'lib' prefix
11259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11260 ;;
11261 pw32*)
11262 # pw32 DLLs use 'pw' prefix rather than 'lib'
11263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11264 ;;
11265 esac
11266 dynamic_linker='Win32 ld.exe'
11267 ;;
11268
11269 *,cl*)
11270 # Native MSVC
11271 libname_spec='$name'
11272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11273 library_names_spec='${libname}.dll.lib'
11274
11275 case $build_os in
11276 mingw*)
11277 sys_lib_search_path_spec=
11278 lt_save_ifs=$IFS
11279 IFS=';'
11280 for lt_path in $LIB
11281 do
11282 IFS=$lt_save_ifs
11283 # Let DOS variable expansion print the short 8.3 style file name.
11284 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11285 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11286 done
11287 IFS=$lt_save_ifs
11288 # Convert to MSYS style.
11289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11290 ;;
11291 cygwin*)
11292 # Convert to unix form, then to dos form, then back to unix form
11293 # but this time dos style (no spaces!) so that the unix form looks
11294 # like /cygdrive/c/PROGRA~1:/cygdr...
11295 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11296 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11297 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11298 ;;
11299 *)
11300 sys_lib_search_path_spec="$LIB"
11301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11302 # It is most probably a Windows format PATH.
11303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11304 else
11305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11306 fi
11307 # FIXME: find the short name or the path components, as spaces are
11308 # common. (e.g. "Program Files" -> "PROGRA~1")
11309 ;;
11310 esac
11311
11312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11313 postinstall_cmds='base_file=`basename \${file}`~
11314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11315 dldir=$destdir/`dirname \$dlpath`~
11316 test -d \$dldir || mkdir -p \$dldir~
11317 $install_prog $dir/$dlname \$dldir/$dlname'
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11320 $RM \$dlpath'
11321 shlibpath_overrides_runpath=yes
11322 dynamic_linker='Win32 link.exe'
11323 ;;
11324
11325 *)
11326 # Assume MSVC wrapper
11327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11328 dynamic_linker='Win32 ld.exe'
11329 ;;
11330 esac
11331 # FIXME: first we should search . and the directory the executable is in
11332 shlibpath_var=PATH
11333 ;;
11334
11335 darwin* | rhapsody*)
11336 dynamic_linker="$host_os dyld"
11337 version_type=darwin
11338 need_lib_prefix=no
11339 need_version=no
11340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11341 soname_spec='${libname}${release}${major}$shared_ext'
11342 shlibpath_overrides_runpath=yes
11343 shlibpath_var=DYLD_LIBRARY_PATH
11344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11345
11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11348 ;;
11349
11350 dgux*)
11351 version_type=linux
11352 need_lib_prefix=no
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 ;;
11358
11359 freebsd1*)
11360 dynamic_linker=no
11361 ;;
11362
11363 freebsd* | dragonfly*)
11364 # DragonFly does not have aout. When/if they implement a new
11365 # versioning mechanism, adjust this.
11366 if test -x /usr/bin/objformat; then
11367 objformat=`/usr/bin/objformat`
11368 else
11369 case $host_os in
11370 freebsd[123]*) objformat=aout ;;
11371 *) objformat=elf ;;
11372 esac
11373 fi
11374 # Handle Gentoo/FreeBSD as it was Linux
11375 case $host_vendor in
11376 gentoo)
11377 version_type=linux ;;
11378 *)
11379 version_type=freebsd-$objformat ;;
11380 esac
11381
11382 case $version_type in
11383 freebsd-elf*)
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11385 need_version=no
11386 need_lib_prefix=no
11387 ;;
11388 freebsd-*)
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11390 need_version=yes
11391 ;;
11392 linux)
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 need_lib_prefix=no
11396 need_version=no
11397 ;;
11398 esac
11399 shlibpath_var=LD_LIBRARY_PATH
11400 case $host_os in
11401 freebsd2*)
11402 shlibpath_overrides_runpath=yes
11403 ;;
11404 freebsd3.[01]* | freebsdelf3.[01]*)
11405 shlibpath_overrides_runpath=yes
11406 hardcode_into_libs=yes
11407 ;;
11408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11410 shlibpath_overrides_runpath=no
11411 hardcode_into_libs=yes
11412 ;;
11413 *) # from 4.6 on, and DragonFly
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 ;;
11417 esac
11418 ;;
11419
11420 gnu*)
11421 version_type=linux
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 hardcode_into_libs=yes
11428 ;;
11429
11430 haiku*)
11431 version_type=linux
11432 need_lib_prefix=no
11433 need_version=no
11434 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11440 hardcode_into_libs=yes
11441 ;;
11442
11443 hpux9* | hpux10* | hpux11*)
11444 # Give a soname corresponding to the major version so that dld.sl refuses to
11445 # link against other versions.
11446 version_type=sunos
11447 need_lib_prefix=no
11448 need_version=no
11449 case $host_cpu in
11450 ia64*)
11451 shrext_cmds='.so'
11452 hardcode_into_libs=yes
11453 dynamic_linker="$host_os dld.so"
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 if test "X$HPUX_IA64_MODE" = X32; then
11459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11460 else
11461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11462 fi
11463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11464 ;;
11465 hppa*64*)
11466 shrext_cmds='.sl'
11467 hardcode_into_libs=yes
11468 dynamic_linker="$host_os dld.sl"
11469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11475 ;;
11476 *)
11477 shrext_cmds='.sl'
11478 dynamic_linker="$host_os dld.sl"
11479 shlibpath_var=SHLIB_PATH
11480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 ;;
11484 esac
11485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11486 postinstall_cmds='chmod 555 $lib'
11487 # or fails outright, so override atomically:
11488 install_override_mode=555
11489 ;;
11490
11491 interix[3-9]*)
11492 version_type=linux
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=no
11500 hardcode_into_libs=yes
11501 ;;
11502
11503 irix5* | irix6* | nonstopux*)
11504 case $host_os in
11505 nonstopux*) version_type=nonstopux ;;
11506 *)
11507 if test "$lt_cv_prog_gnu_ld" = yes; then
11508 version_type=linux
11509 else
11510 version_type=irix
11511 fi ;;
11512 esac
11513 need_lib_prefix=no
11514 need_version=no
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11517 case $host_os in
11518 irix5* | nonstopux*)
11519 libsuff= shlibsuff=
11520 ;;
11521 *)
11522 case $LD in # libtool.m4 will add one of these switches to LD
11523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11524 libsuff= shlibsuff= libmagic=32-bit;;
11525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11526 libsuff=32 shlibsuff=N32 libmagic=N32;;
11527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11529 *) libsuff= shlibsuff= libmagic=never-match;;
11530 esac
11531 ;;
11532 esac
11533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11534 shlibpath_overrides_runpath=no
11535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11537 hardcode_into_libs=yes
11538 ;;
11539
11540 # No shared lib support for Linux oldld, aout, or coff.
11541 linux*oldld* | linux*aout* | linux*coff*)
11542 dynamic_linker=no
11543 ;;
11544
11545 # This must be Linux ELF.
11546 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11547 version_type=linux
11548 need_lib_prefix=no
11549 need_version=no
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=no
11555
11556 # Some binutils ld are patched to set DT_RUNPATH
11557 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 lt_cv_shlibpath_overrides_runpath=no
11561 save_LDFLAGS=$LDFLAGS
11562 save_libdir=$libdir
11563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567
11568 int
11569 main ()
11570 {
11571
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11578 lt_cv_shlibpath_overrides_runpath=yes
11579 fi
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LDFLAGS=$save_LDFLAGS
11584 libdir=$save_libdir
11585
11586 fi
11587
11588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11589
11590 # This implies no fast_install, which is unacceptable.
11591 # Some rework will be needed to allow for fast_install
11592 # before this can be enabled.
11593 hardcode_into_libs=yes
11594
11595 # Append ld.so.conf contents to the search path
11596 if test -f /etc/ld.so.conf; then
11597 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' ' '`
11598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11599 fi
11600
11601 # We used to test for /lib/ld.so.1 and disable shared libraries on
11602 # powerpc, because MkLinux only supported shared libraries with the
11603 # GNU dynamic linker. Since this was broken with cross compilers,
11604 # most powerpc-linux boxes support dynamic linking these days and
11605 # people can always --disable-shared, the test was removed, and we
11606 # assume the GNU/Linux dynamic linker is in use.
11607 dynamic_linker='GNU/Linux ld.so'
11608 ;;
11609
11610 netbsd*)
11611 version_type=sunos
11612 need_lib_prefix=no
11613 need_version=no
11614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11617 dynamic_linker='NetBSD (a.out) ld.so'
11618 else
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 dynamic_linker='NetBSD ld.elf_so'
11622 fi
11623 shlibpath_var=LD_LIBRARY_PATH
11624 shlibpath_overrides_runpath=yes
11625 hardcode_into_libs=yes
11626 ;;
11627
11628 newsos6)
11629 version_type=linux
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=yes
11633 ;;
11634
11635 *nto* | *qnx*)
11636 version_type=qnx
11637 need_lib_prefix=no
11638 need_version=no
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 hardcode_into_libs=yes
11644 dynamic_linker='ldqnx.so'
11645 ;;
11646
11647 openbsd*)
11648 version_type=sunos
11649 sys_lib_dlsearch_path_spec="/usr/lib"
11650 need_lib_prefix=no
11651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11652 case $host_os in
11653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11654 *) need_version=no ;;
11655 esac
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11660 case $host_os in
11661 openbsd2.[89] | openbsd2.[89].*)
11662 shlibpath_overrides_runpath=no
11663 ;;
11664 *)
11665 shlibpath_overrides_runpath=yes
11666 ;;
11667 esac
11668 else
11669 shlibpath_overrides_runpath=yes
11670 fi
11671 ;;
11672
11673 os2*)
11674 libname_spec='$name'
11675 shrext_cmds=".dll"
11676 need_lib_prefix=no
11677 library_names_spec='$libname${shared_ext} $libname.a'
11678 dynamic_linker='OS/2 ld.exe'
11679 shlibpath_var=LIBPATH
11680 ;;
11681
11682 osf3* | osf4* | osf5*)
11683 version_type=osf
11684 need_lib_prefix=no
11685 need_version=no
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11691 ;;
11692
11693 rdos*)
11694 dynamic_linker=no
11695 ;;
11696
11697 solaris*)
11698 version_type=linux
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 hardcode_into_libs=yes
11706 # ldd complains unless libraries are executable
11707 postinstall_cmds='chmod +x $lib'
11708 ;;
11709
11710 sunos4*)
11711 version_type=sunos
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11716 if test "$with_gnu_ld" = yes; then
11717 need_lib_prefix=no
11718 fi
11719 need_version=yes
11720 ;;
11721
11722 sysv4 | sysv4.3*)
11723 version_type=linux
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 case $host_vendor in
11728 sni)
11729 shlibpath_overrides_runpath=no
11730 need_lib_prefix=no
11731 runpath_var=LD_RUN_PATH
11732 ;;
11733 siemens)
11734 need_lib_prefix=no
11735 ;;
11736 motorola)
11737 need_lib_prefix=no
11738 need_version=no
11739 shlibpath_overrides_runpath=no
11740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11741 ;;
11742 esac
11743 ;;
11744
11745 sysv4*MP*)
11746 if test -d /usr/nec ;then
11747 version_type=linux
11748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11749 soname_spec='$libname${shared_ext}.$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 fi
11752 ;;
11753
11754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11755 version_type=freebsd-elf
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11763 if test "$with_gnu_ld" = yes; then
11764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11765 else
11766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11767 case $host_os in
11768 sco3.2v5*)
11769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11770 ;;
11771 esac
11772 fi
11773 sys_lib_dlsearch_path_spec='/usr/lib'
11774 ;;
11775
11776 tpf*)
11777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11778 version_type=linux
11779 need_lib_prefix=no
11780 need_version=no
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11785 ;;
11786
11787 uts4*)
11788 version_type=linux
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 ;;
11793
11794 *)
11795 dynamic_linker=no
11796 ;;
11797 esac
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11799 $as_echo "$dynamic_linker" >&6; }
11800 test "$dynamic_linker" = no && can_build_shared=no
11801
11802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11803 if test "$GCC" = yes; then
11804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11805 fi
11806
11807 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11808 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11809 fi
11810 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11812 fi
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
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11907 hardcode_action=
11908 if test -n "$hardcode_libdir_flag_spec" ||
11909 test -n "$runpath_var" ||
11910 test "X$hardcode_automatic" = "Xyes" ; then
11911
11912 # We can hardcode non-existent directories.
11913 if test "$hardcode_direct" != no &&
11914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915 # have to relink, otherwise we might link with an installed library
11916 # when we should be linking with a yet-to-be-installed one
11917 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918 test "$hardcode_minus_L" != no; then
11919 # Linking always hardcodes the temporary library directory.
11920 hardcode_action=relink
11921 else
11922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923 hardcode_action=immediate
11924 fi
11925 else
11926 # We cannot hardcode anything, or else we can only hardcode existing
11927 # directories.
11928 hardcode_action=unsupported
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931 $as_echo "$hardcode_action" >&6; }
11932
11933 if test "$hardcode_action" = relink ||
11934 test "$inherit_rpath" = yes; then
11935 # Fast installation is not supported
11936 enable_fast_install=no
11937 elif test "$shlibpath_overrides_runpath" = yes ||
11938 test "$enable_shared" = no; then
11939 # Fast installation is not necessary
11940 enable_fast_install=needless
11941 fi
11942
11943
11944
11945
11946
11947
11948 if test "x$enable_dlopen" != xyes; then
11949 enable_dlopen=unknown
11950 enable_dlopen_self=unknown
11951 enable_dlopen_self_static=unknown
11952 else
11953 lt_cv_dlopen=no
11954 lt_cv_dlopen_libs=
11955
11956 case $host_os in
11957 beos*)
11958 lt_cv_dlopen="load_add_on"
11959 lt_cv_dlopen_libs=
11960 lt_cv_dlopen_self=yes
11961 ;;
11962
11963 mingw* | pw32* | cegcc*)
11964 lt_cv_dlopen="LoadLibrary"
11965 lt_cv_dlopen_libs=
11966 ;;
11967
11968 cygwin*)
11969 lt_cv_dlopen="dlopen"
11970 lt_cv_dlopen_libs=
11971 ;;
11972
11973 darwin*)
11974 # if libdl is installed we need to link against it
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12002 else
12003 ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 else
12014
12015 lt_cv_dlopen="dyld"
12016 lt_cv_dlopen_libs=
12017 lt_cv_dlopen_self=yes
12018
12019 fi
12020
12021 ;;
12022
12023 *)
12024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12025 if test "x$ac_cv_func_shl_load" = xyes; then :
12026 lt_cv_dlopen="shl_load"
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12030 if ${ac_cv_lib_dld_shl_load+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-ldld $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char shl_load ();
12045 int
12046 main ()
12047 {
12048 return shl_load ();
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_shl_load=yes
12055 else
12056 ac_cv_lib_dld_shl_load=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12064 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12066 else
12067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12068 if test "x$ac_cv_func_dlopen" = xyes; then :
12069 lt_cv_dlopen="dlopen"
12070 else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if ${ac_cv_lib_dl_dlopen+:} false; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-ldl $LIBS"
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char dlopen ();
12088 int
12089 main ()
12090 {
12091 return dlopen ();
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_lib_dl_dlopen=yes
12098 else
12099 ac_cv_lib_dl_dlopen=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if ${ac_cv_lib_svld_dlopen+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char dlopen ();
12127 int
12128 main ()
12129 {
12130 return dlopen ();
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_lib_svld_dlopen=yes
12137 else
12138 ac_cv_lib_svld_dlopen=no
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12146 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12151 if ${ac_cv_lib_dld_dld_link+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldld $LIBS"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char dld_link ();
12166 int
12167 main ()
12168 {
12169 return dld_link ();
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_dld_dld_link=yes
12176 else
12177 ac_cv_lib_dld_dld_link=no
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12185 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12186 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12187 fi
12188
12189
12190 fi
12191
12192
12193 fi
12194
12195
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204 ;;
12205 esac
12206
12207 if test "x$lt_cv_dlopen" != xno; then
12208 enable_dlopen=yes
12209 else
12210 enable_dlopen=no
12211 fi
12212
12213 case $lt_cv_dlopen in
12214 dlopen)
12215 save_CPPFLAGS="$CPPFLAGS"
12216 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12217
12218 save_LDFLAGS="$LDFLAGS"
12219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12220
12221 save_LIBS="$LIBS"
12222 LIBS="$lt_cv_dlopen_libs $LIBS"
12223
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12226 if ${lt_cv_dlopen_self+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self=cross
12231 else
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<_LT_EOF
12235 #line $LINENO "configure"
12236 #include "confdefs.h"
12237
12238 #if HAVE_DLFCN_H
12239 #include <dlfcn.h>
12240 #endif
12241
12242 #include <stdio.h>
12243
12244 #ifdef RTLD_GLOBAL
12245 # define LT_DLGLOBAL RTLD_GLOBAL
12246 #else
12247 # ifdef DL_GLOBAL
12248 # define LT_DLGLOBAL DL_GLOBAL
12249 # else
12250 # define LT_DLGLOBAL 0
12251 # endif
12252 #endif
12253
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12257 # ifdef RTLD_LAZY
12258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12259 # else
12260 # ifdef DL_LAZY
12261 # define LT_DLLAZY_OR_NOW DL_LAZY
12262 # else
12263 # ifdef RTLD_NOW
12264 # define LT_DLLAZY_OR_NOW RTLD_NOW
12265 # else
12266 # ifdef DL_NOW
12267 # define LT_DLLAZY_OR_NOW DL_NOW
12268 # else
12269 # define LT_DLLAZY_OR_NOW 0
12270 # endif
12271 # endif
12272 # endif
12273 # endif
12274 #endif
12275
12276 /* When -fvisbility=hidden is used, assume the code has been annotated
12277 correspondingly for the symbols needed. */
12278 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12279 int fnord () __attribute__((visibility("default")));
12280 #endif
12281
12282 int fnord () { return 42; }
12283 int main ()
12284 {
12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286 int status = $lt_dlunknown;
12287
12288 if (self)
12289 {
12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12291 else
12292 {
12293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12294 else puts (dlerror ());
12295 }
12296 /* dlclose (self); */
12297 }
12298 else
12299 puts (dlerror ());
12300
12301 return status;
12302 }
12303 _LT_EOF
12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12305 (eval $ac_link) 2>&5
12306 ac_status=$?
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12309 (./conftest; exit; ) >&5 2>/dev/null
12310 lt_status=$?
12311 case x$lt_status in
12312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12314 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12315 esac
12316 else :
12317 # compilation failed
12318 lt_cv_dlopen_self=no
12319 fi
12320 fi
12321 rm -fr conftest*
12322
12323
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12326 $as_echo "$lt_cv_dlopen_self" >&6; }
12327
12328 if test "x$lt_cv_dlopen_self" = xyes; then
12329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12331 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12332 if ${lt_cv_dlopen_self_static+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 if test "$cross_compiling" = yes; then :
12336 lt_cv_dlopen_self_static=cross
12337 else
12338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12339 lt_status=$lt_dlunknown
12340 cat > conftest.$ac_ext <<_LT_EOF
12341 #line $LINENO "configure"
12342 #include "confdefs.h"
12343
12344 #if HAVE_DLFCN_H
12345 #include <dlfcn.h>
12346 #endif
12347
12348 #include <stdio.h>
12349
12350 #ifdef RTLD_GLOBAL
12351 # define LT_DLGLOBAL RTLD_GLOBAL
12352 #else
12353 # ifdef DL_GLOBAL
12354 # define LT_DLGLOBAL DL_GLOBAL
12355 # else
12356 # define LT_DLGLOBAL 0
12357 # endif
12358 #endif
12359
12360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12361 find out it does not work in some platform. */
12362 #ifndef LT_DLLAZY_OR_NOW
12363 # ifdef RTLD_LAZY
12364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12365 # else
12366 # ifdef DL_LAZY
12367 # define LT_DLLAZY_OR_NOW DL_LAZY
12368 # else
12369 # ifdef RTLD_NOW
12370 # define LT_DLLAZY_OR_NOW RTLD_NOW
12371 # else
12372 # ifdef DL_NOW
12373 # define LT_DLLAZY_OR_NOW DL_NOW
12374 # else
12375 # define LT_DLLAZY_OR_NOW 0
12376 # endif
12377 # endif
12378 # endif
12379 # endif
12380 #endif
12381
12382 /* When -fvisbility=hidden is used, assume the code has been annotated
12383 correspondingly for the symbols needed. */
12384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12385 int fnord () __attribute__((visibility("default")));
12386 #endif
12387
12388 int fnord () { return 42; }
12389 int main ()
12390 {
12391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12392 int status = $lt_dlunknown;
12393
12394 if (self)
12395 {
12396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12397 else
12398 {
12399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400 else puts (dlerror ());
12401 }
12402 /* dlclose (self); */
12403 }
12404 else
12405 puts (dlerror ());
12406
12407 return status;
12408 }
12409 _LT_EOF
12410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12411 (eval $ac_link) 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12415 (./conftest; exit; ) >&5 2>/dev/null
12416 lt_status=$?
12417 case x$lt_status in
12418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12421 esac
12422 else :
12423 # compilation failed
12424 lt_cv_dlopen_self_static=no
12425 fi
12426 fi
12427 rm -fr conftest*
12428
12429
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12432 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12433 fi
12434
12435 CPPFLAGS="$save_CPPFLAGS"
12436 LDFLAGS="$save_LDFLAGS"
12437 LIBS="$save_LIBS"
12438 ;;
12439 esac
12440
12441 case $lt_cv_dlopen_self in
12442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12443 *) enable_dlopen_self=unknown ;;
12444 esac
12445
12446 case $lt_cv_dlopen_self_static in
12447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12448 *) enable_dlopen_self_static=unknown ;;
12449 esac
12450 fi
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468 striplib=
12469 old_striplib=
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12471 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12472 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476 $as_echo "yes" >&6; }
12477 else
12478 # FIXME - insert some real tests, host_os isn't really good enough
12479 case $host_os in
12480 darwin*)
12481 if test -n "$STRIP" ; then
12482 striplib="$STRIP -x"
12483 old_striplib="$STRIP -S"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485 $as_echo "yes" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490 ;;
12491 *)
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494 ;;
12495 esac
12496 fi
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509 # Report which library types will actually be built
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12511 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12513 $as_echo "$can_build_shared" >&6; }
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12516 $as_echo_n "checking whether to build shared libraries... " >&6; }
12517 test "$can_build_shared" = "no" && enable_shared=no
12518
12519 # On AIX, shared libraries and static libraries use the same namespace, and
12520 # are all built from PIC.
12521 case $host_os in
12522 aix3*)
12523 test "$enable_shared" = yes && enable_static=no
12524 if test -n "$RANLIB"; then
12525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12526 postinstall_cmds='$RANLIB $lib'
12527 fi
12528 ;;
12529
12530 aix[4-9]*)
12531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12532 test "$enable_shared" = yes && enable_static=no
12533 fi
12534 ;;
12535 esac
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12537 $as_echo "$enable_shared" >&6; }
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12540 $as_echo_n "checking whether to build static libraries... " >&6; }
12541 # Make sure either enable_shared or enable_static is yes.
12542 test "$enable_shared" = yes || enable_static=yes
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12544 $as_echo "$enable_static" >&6; }
12545
12546
12547
12548
12549 fi
12550 ac_ext=c
12551 ac_cpp='$CPP $CPPFLAGS'
12552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12555
12556 CC="$lt_save_CC"
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570 ac_config_commands="$ac_config_commands libtool"
12571
12572
12573
12574
12575 # Only expand once:
12576
12577
12578
12579 LIBTOOL="$LIBTOOL --silent"
12580
12581 case "$host_os" in
12582 *cygwin*)
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define CYGWIN 1
12586 _ACEOF
12587
12588
12589 cat >>confdefs.h <<_ACEOF
12590 #define WINDOWS 1
12591 _ACEOF
12592
12593 ;;
12594 *mingw*)
12595
12596 cat >>confdefs.h <<_ACEOF
12597 #define MINGW 1
12598 _ACEOF
12599
12600
12601 cat >>confdefs.h <<_ACEOF
12602 #define WINDOWS 1
12603 _ACEOF
12604
12605 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12606 if test "x$ac_cv_header_windows_h" = xyes; then :
12607
12608 else
12609 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
12610 fi
12611
12612
12613 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12614 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12615
12616 else
12617 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
12618 fi
12619
12620
12621
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_WINSOCK2_H 1
12624 _ACEOF
12625
12626
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_WINSOCK_H 1
12629 _ACEOF
12630
12631 LIBS="$LIBS -lws2_32 -liphlpapi"
12632 is_mingw="yes"
12633 ;;
12634 *interix*)
12635 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12636 ;;
12637 *solaris*)
12638 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12639 ;;
12640 *)
12641 ;;
12642 esac
12643
12644 if test "$is_mingw" = "yes"; then
12645 MINGW_TRUE=
12646 MINGW_FALSE='#'
12647 else
12648 MINGW_TRUE='#'
12649 MINGW_FALSE=
12650 fi
12651
12652
12653
12654 # backwards support for IRC_CFLAGS
12655 CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
12656
12657 if test "$libexecdir" = '${exec_prefix}/libexec' &&
12658 test "$localstatedir" = '${prefix}/var'; then
12659 libexecdir='${bindir}'
12660 localstatedir='${prefix}'
12661 fi
12662
12663 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12664 if test "x$ac_cv_type_pid_t" = xyes; then :
12665
12666 else
12667
12668 cat >>confdefs.h <<_ACEOF
12669 #define pid_t int
12670 _ACEOF
12671
12672 fi
12673
12674 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12675 if test "x$ac_cv_type_size_t" = xyes; then :
12676
12677 else
12678
12679 cat >>confdefs.h <<_ACEOF
12680 #define size_t unsigned int
12681 _ACEOF
12682
12683 fi
12684
12685 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12686 if test "x$ac_cv_type_ssize_t" = xyes; then :
12687
12688 else
12689
12690 cat >>confdefs.h <<_ACEOF
12691 #define ssize_t int
12692 _ACEOF
12693
12694 fi
12695
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12697 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12698 if ${ac_cv_type_uid_t+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #include <sys/types.h>
12704
12705 _ACEOF
12706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12707 $EGREP "uid_t" >/dev/null 2>&1; then :
12708 ac_cv_type_uid_t=yes
12709 else
12710 ac_cv_type_uid_t=no
12711 fi
12712 rm -f conftest*
12713
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12716 $as_echo "$ac_cv_type_uid_t" >&6; }
12717 if test $ac_cv_type_uid_t = no; then
12718
12719 $as_echo "#define uid_t int" >>confdefs.h
12720
12721
12722 $as_echo "#define gid_t int" >>confdefs.h
12723
12724 fi
12725
12726
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12729 $as_echo_n "checking for ANSI C header files... " >&6; }
12730 if ${ac_cv_header_stdc+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #include <stdlib.h>
12736 #include <stdarg.h>
12737 #include <string.h>
12738 #include <float.h>
12739
12740 int
12741 main ()
12742 {
12743
12744 ;
12745 return 0;
12746 }
12747 _ACEOF
12748 if ac_fn_c_try_compile "$LINENO"; then :
12749 ac_cv_header_stdc=yes
12750 else
12751 ac_cv_header_stdc=no
12752 fi
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754
12755 if test $ac_cv_header_stdc = yes; then
12756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 #include <string.h>
12760
12761 _ACEOF
12762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12763 $EGREP "memchr" >/dev/null 2>&1; then :
12764
12765 else
12766 ac_cv_header_stdc=no
12767 fi
12768 rm -f conftest*
12769
12770 fi
12771
12772 if test $ac_cv_header_stdc = yes; then
12773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776 #include <stdlib.h>
12777
12778 _ACEOF
12779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12780 $EGREP "free" >/dev/null 2>&1; then :
12781
12782 else
12783 ac_cv_header_stdc=no
12784 fi
12785 rm -f conftest*
12786
12787 fi
12788
12789 if test $ac_cv_header_stdc = yes; then
12790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12791 if test "$cross_compiling" = yes; then :
12792 :
12793 else
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <ctype.h>
12797 #include <stdlib.h>
12798 #if ((' ' & 0x0FF) == 0x020)
12799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12801 #else
12802 # define ISLOWER(c) \
12803 (('a' <= (c) && (c) <= 'i') \
12804 || ('j' <= (c) && (c) <= 'r') \
12805 || ('s' <= (c) && (c) <= 'z'))
12806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12807 #endif
12808
12809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12810 int
12811 main ()
12812 {
12813 int i;
12814 for (i = 0; i < 256; i++)
12815 if (XOR (islower (i), ISLOWER (i))
12816 || toupper (i) != TOUPPER (i))
12817 return 2;
12818 return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_run "$LINENO"; then :
12822
12823 else
12824 ac_cv_header_stdc=no
12825 fi
12826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12827 conftest.$ac_objext conftest.beam conftest.$ac_ext
12828 fi
12829
12830 fi
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12833 $as_echo "$ac_cv_header_stdc" >&6; }
12834 if test $ac_cv_header_stdc = yes; then
12835
12836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12837
12838 fi
12839
12840
12841 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
12842 do :
12843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12844 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12846 cat >>confdefs.h <<_ACEOF
12847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848 _ACEOF
12849
12850 fi
12851
12852 done
12853
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12855 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12856 if ${ac_cv_header_time+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 #include <sys/types.h>
12862 #include <sys/time.h>
12863 #include <time.h>
12864
12865 int
12866 main ()
12867 {
12868 if ((struct tm *) 0)
12869 return 0;
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_compile "$LINENO"; then :
12875 ac_cv_header_time=yes
12876 else
12877 ac_cv_header_time=no
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 fi
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12882 $as_echo "$ac_cv_header_time" >&6; }
12883 if test $ac_cv_header_time = yes; then
12884
12885 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12886
12887 fi
12888
12889
12890
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12892 $as_echo_n "checking for library containing socket... " >&6; }
12893 if ${ac_cv_search_socket+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 ac_func_search_save_LIBS=$LIBS
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char socket ();
12907 int
12908 main ()
12909 {
12910 return socket ();
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 for ac_lib in '' socket; do
12916 if test -z "$ac_lib"; then
12917 ac_res="none required"
12918 else
12919 ac_res=-l$ac_lib
12920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12921 fi
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_search_socket=$ac_res
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext
12927 if ${ac_cv_search_socket+:} false; then :
12928 break
12929 fi
12930 done
12931 if ${ac_cv_search_socket+:} false; then :
12932
12933 else
12934 ac_cv_search_socket=no
12935 fi
12936 rm conftest.$ac_ext
12937 LIBS=$ac_func_search_save_LIBS
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12940 $as_echo "$ac_cv_search_socket" >&6; }
12941 ac_res=$ac_cv_search_socket
12942 if test "$ac_res" != no; then :
12943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12944
12945 fi
12946
12947
12948
12949 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12950 #ifdef HAVE_SYS_TYPES_H
12951 #include <sys/types.h>
12952 #endif
12953 #ifdef HAVE_SYS_SOCKET_H
12954 #include <sys/socket.h>
12955 #endif
12956 #ifdef HAVE_WINSOCK2_H
12957 #include <winsock2.h>
12958 #endif
12959
12960 "
12961 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12962
12963 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
12964
12965 fi
12966
12967
12968 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12969 #include <sys/socket.h>
12970 "
12971 if test "x$ac_cv_type_socklen_t" = xyes; then :
12972 rb_cv_socklen_t=socklen_t
12973 else
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12976 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12977 if ${rb_cv_socklen_t+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980
12981 # Systems have either "struct sockaddr *" or
12982 # "void *" as the second argument to getpeername
12983 rb_cv_socklen_t=
12984 for arg2 in "struct sockaddr" void; do
12985 for t in int size_t unsigned long "unsigned long"; do
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988
12989 #ifdef HAVE_SYS_TYPES_H
12990 #include <sys/types.h>
12991 #endif
12992 #ifdef HAVE_SYS_SOCKET_H
12993 #include <sys/socket.h>
12994 #endif
12995 #ifdef HAVE_WINSOCK2_H
12996 #include <winsock2.h>
12997 #endif
12998 int getpeername (int, $arg2 *, $t *);
12999
13000 int
13001 main ()
13002 {
13003
13004 $t len;
13005 getpeername(0,0,&len);
13006
13007 ;
13008 return 0;
13009 }
13010 _ACEOF
13011 if ac_fn_c_try_compile "$LINENO"; then :
13012
13013 rb_cv_socklen_t="$t"
13014 break
13015
13016 fi
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 done
13019 done
13020
13021 if test "x$rb_cv_socklen_t" = x; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13023 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13024 rb_cv_socklen_t=int
13025 fi
13026
13027 fi
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13030 $as_echo "$rb_cv_socklen_t" >&6; }
13031 fi
13032
13033
13034 rb_socklen_t=$rb_cv_socklen_t
13035
13036
13037
13038
13039
13040 # Check whether --enable-ipv6 was given.
13041 if test "${enable_ipv6+set}" = set; then :
13042 enableval=$enable_ipv6; ipv6=$enableval
13043 else
13044 ipv6=yes
13045 fi
13046
13047
13048 if test x$ipv6 != xyes; then
13049 have_v6="no"
13050 else
13051
13052 have_v6=yes
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13055 $as_echo_n "checking for INET6 protocol support... " >&6; }
13056 if ${rb_cv_proto_inet6+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062
13063 #include <sys/types.h>
13064 #include <sys/socket.h>
13065
13066 #ifndef PF_INET6
13067 #error Missing PF_INET6
13068 #endif
13069 #ifndef AF_INET6
13070 #error Mlssing AF_INET6
13071 #endif
13072
13073 _ACEOF
13074 if ac_fn_c_try_cpp "$LINENO"; then :
13075
13076 rb_cv_proto_inet6=yes
13077
13078 else
13079
13080 rb_cv_proto_inet6=no
13081
13082 fi
13083 rm -f conftest.err conftest.i conftest.$ac_ext
13084
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13087 $as_echo "$rb_cv_proto_inet6" >&6; }
13088
13089 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13090
13091 else :
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13094 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13095 have_v6=no
13096
13097 fi
13098
13099
13100 if test "X$have_v6" = "Xyes"; then
13101
13102 rb_have_sockaddr_in6=
13103 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13104 #include <sys/types.h>
13105 #include <sys/socket.h>
13106 #include <netinet/in.h>
13107
13108 "
13109 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13110
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_STRUCT_SOCKADDR_IN6 1
13113 _ACEOF
13114
13115
13116 rb_have_sockaddr_in6=yes
13117
13118 else
13119
13120 rb_have_sockaddr_in6=no
13121
13122 fi
13123
13124
13125 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13126
13127 else :
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13130 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13131 have_v6=no
13132
13133 fi
13134
13135 fi
13136
13137 fi
13138
13139 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13140 #include <sys/types.h>
13141 #include <sys/socket.h>
13142
13143 "
13144 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13145
13146 cat >>confdefs.h <<_ACEOF
13147 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13148 _ACEOF
13149
13150
13151 rb_have_sockaddr_storage=yes
13152
13153 fi
13154
13155
13156
13157 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13158 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13159
13160 else
13161 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13162 fi
13163
13164
13165
13166 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13167 #include <sys/socket.h>
13168 "
13169 if test "x$ac_cv_type_sa_family_t" = xyes; then :
13170
13171 else
13172
13173 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13174
13175 fi
13176
13177
13178
13179 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
13180 do :
13181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13184 cat >>confdefs.h <<_ACEOF
13185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13186 _ACEOF
13187
13188 fi
13189 done
13190
13191
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13193 $as_echo_n "checking for library containing nanosleep... " >&6; }
13194 if ${ac_cv_search_nanosleep+:} false; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 ac_func_search_save_LIBS=$LIBS
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char nanosleep ();
13208 int
13209 main ()
13210 {
13211 return nanosleep ();
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 for ac_lib in '' rt posix4; do
13217 if test -z "$ac_lib"; then
13218 ac_res="none required"
13219 else
13220 ac_res=-l$ac_lib
13221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13222 fi
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_search_nanosleep=$ac_res
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext
13228 if ${ac_cv_search_nanosleep+:} false; then :
13229 break
13230 fi
13231 done
13232 if ${ac_cv_search_nanosleep+:} false; then :
13233
13234 else
13235 ac_cv_search_nanosleep=no
13236 fi
13237 rm conftest.$ac_ext
13238 LIBS=$ac_func_search_save_LIBS
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13241 $as_echo "$ac_cv_search_nanosleep" >&6; }
13242 ac_res=$ac_cv_search_nanosleep
13243 if test "$ac_res" != no; then :
13244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13245
13246 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13247
13248 fi
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13251 $as_echo_n "checking for library containing timer_create... " >&6; }
13252 if ${ac_cv_search_timer_create+:} false; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 ac_func_search_save_LIBS=$LIBS
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char timer_create ();
13266 int
13267 main ()
13268 {
13269 return timer_create ();
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 for ac_lib in '' rt; do
13275 if test -z "$ac_lib"; then
13276 ac_res="none required"
13277 else
13278 ac_res=-l$ac_lib
13279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13280 fi
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_search_timer_create=$ac_res
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext
13286 if ${ac_cv_search_timer_create+:} false; then :
13287 break
13288 fi
13289 done
13290 if ${ac_cv_search_timer_create+:} false; then :
13291
13292 else
13293 ac_cv_search_timer_create=no
13294 fi
13295 rm conftest.$ac_ext
13296 LIBS=$ac_func_search_save_LIBS
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13299 $as_echo "$ac_cv_search_timer_create" >&6; }
13300 ac_res=$ac_cv_search_timer_create
13301 if test "$ac_res" != no; then :
13302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13303
13304 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
13305
13306 fi
13307
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13309 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
13310 if ${rb__cv_timer_create_works+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 if test "$cross_compiling" = yes; then :
13314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13316 as_fn_error $? "cannot run test program while cross compiling
13317 See \`config.log' for more details" "$LINENO" 5; }
13318 else
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321
13322 #ifdef HAVE_TIME_H
13323 #include <time.h>
13324 #endif
13325 #ifdef HAVE_SIGNAL_H
13326 #include <signal.h>
13327 #endif
13328 #ifdef HAVE_UNISTD_H
13329 #include <unistd.h>
13330 #endif
13331 int main(int argc, char *argv[])
13332 {
13333 #if HAVE_TIMER_CREATE
13334 struct sigevent ev;
13335 timer_t timer;
13336 ev.sigev_notify = SIGEV_SIGNAL;
13337 ev.sigev_signo = SIGVTALRM;
13338 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13339 return 1;
13340 }
13341 #else
13342 return 1;
13343 #endif
13344 return 0;
13345 }
13346
13347 _ACEOF
13348 if ac_fn_c_try_run "$LINENO"; then :
13349 rb__cv_timer_create_works=yes
13350 else
13351 rb__cv_timer_create_works=no
13352 fi
13353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13354 conftest.$ac_objext conftest.beam conftest.$ac_ext
13355 fi
13356
13357
13358 fi
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13360 $as_echo "$rb__cv_timer_create_works" >&6; }
13361 case $rb__cv_timer_create_works in
13362 yes)
13363 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13364 ;;
13365 esac
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13368 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
13369 if ${rb__cv_timerfd_create_works+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test "$cross_compiling" = yes; then :
13373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13375 as_fn_error $? "cannot run test program while cross compiling
13376 See \`config.log' for more details" "$LINENO" 5; }
13377 else
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380
13381 #ifdef HAVE_TIME_H
13382 #include <time.h>
13383 #endif
13384 #ifdef HAVE_SIGNAL_H
13385 #include <signal.h>
13386 #endif
13387 #ifdef HAVE_UNISTD_H
13388 #include <unistd.h>
13389 #endif
13390 #ifdef HAVE_SYS_TIMERFD_H
13391 #include <sys/timerfd.h>
13392 #endif
13393 int main(int argc, char *argv[])
13394 {
13395 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13396 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13397 return 1;
13398 }
13399 #else
13400 return 1;
13401 #endif
13402 return 0;
13403 }
13404
13405 _ACEOF
13406 if ac_fn_c_try_run "$LINENO"; then :
13407 rb__cv_timerfd_create_works=yes
13408 else
13409 rb__cv_timerfd_create_works=no
13410 fi
13411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13412 conftest.$ac_objext conftest.beam conftest.$ac_ext
13413 fi
13414
13415
13416 fi
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13418 $as_echo "$rb__cv_timerfd_create_works" >&6; }
13419 case $rb__cv_timerfd_create_works in
13420 yes)
13421 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13422 ;;
13423 esac
13424
13425
13426 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13427 # for constant arguments. Useless!
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13429 $as_echo_n "checking for working alloca.h... " >&6; }
13430 if ${ac_cv_working_alloca_h+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 #include <alloca.h>
13436 int
13437 main ()
13438 {
13439 char *p = (char *) alloca (2 * sizeof (int));
13440 if (p) return 0;
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_working_alloca_h=yes
13447 else
13448 ac_cv_working_alloca_h=no
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13454 $as_echo "$ac_cv_working_alloca_h" >&6; }
13455 if test $ac_cv_working_alloca_h = yes; then
13456
13457 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13458
13459 fi
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13462 $as_echo_n "checking for alloca... " >&6; }
13463 if ${ac_cv_func_alloca_works+:} false; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 #ifdef __GNUC__
13469 # define alloca __builtin_alloca
13470 #else
13471 # ifdef _MSC_VER
13472 # include <malloc.h>
13473 # define alloca _alloca
13474 # else
13475 # ifdef HAVE_ALLOCA_H
13476 # include <alloca.h>
13477 # else
13478 # ifdef _AIX
13479 #pragma alloca
13480 # else
13481 # ifndef alloca /* predefined by HP cc +Olibcalls */
13482 void *alloca (size_t);
13483 # endif
13484 # endif
13485 # endif
13486 # endif
13487 #endif
13488
13489 int
13490 main ()
13491 {
13492 char *p = (char *) alloca (1);
13493 if (p) return 0;
13494 ;
13495 return 0;
13496 }
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_func_alloca_works=yes
13500 else
13501 ac_cv_func_alloca_works=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13507 $as_echo "$ac_cv_func_alloca_works" >&6; }
13508
13509 if test $ac_cv_func_alloca_works = yes; then
13510
13511 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13512
13513 else
13514 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13515 # that cause trouble. Some versions do not even contain alloca or
13516 # contain a buggy version. If you still want to use their alloca,
13517 # use ar to extract alloca.o from them instead of compiling alloca.c.
13518
13519 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13520
13521 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13522
13523
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13525 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13526 if ${ac_cv_os_cray+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 #if defined CRAY && ! defined CRAY2
13532 webecray
13533 #else
13534 wenotbecray
13535 #endif
13536
13537 _ACEOF
13538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13539 $EGREP "webecray" >/dev/null 2>&1; then :
13540 ac_cv_os_cray=yes
13541 else
13542 ac_cv_os_cray=no
13543 fi
13544 rm -f conftest*
13545
13546 fi
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13548 $as_echo "$ac_cv_os_cray" >&6; }
13549 if test $ac_cv_os_cray = yes; then
13550 for ac_func in _getb67 GETB67 getb67; do
13551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13554
13555 cat >>confdefs.h <<_ACEOF
13556 #define CRAY_STACKSEG_END $ac_func
13557 _ACEOF
13558
13559 break
13560 fi
13561
13562 done
13563 fi
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13566 $as_echo_n "checking stack direction for C alloca... " >&6; }
13567 if ${ac_cv_c_stack_direction+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 if test "$cross_compiling" = yes; then :
13571 ac_cv_c_stack_direction=0
13572 else
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 $ac_includes_default
13576 int
13577 find_stack_direction ()
13578 {
13579 static char *addr = 0;
13580 auto char dummy;
13581 if (addr == 0)
13582 {
13583 addr = &dummy;
13584 return find_stack_direction ();
13585 }
13586 else
13587 return (&dummy > addr) ? 1 : -1;
13588 }
13589
13590 int
13591 main ()
13592 {
13593 return find_stack_direction () < 0;
13594 }
13595 _ACEOF
13596 if ac_fn_c_try_run "$LINENO"; then :
13597 ac_cv_c_stack_direction=1
13598 else
13599 ac_cv_c_stack_direction=-1
13600 fi
13601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13602 conftest.$ac_objext conftest.beam conftest.$ac_ext
13603 fi
13604
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13607 $as_echo "$ac_cv_c_stack_direction" >&6; }
13608 cat >>confdefs.h <<_ACEOF
13609 #define STACK_DIRECTION $ac_cv_c_stack_direction
13610 _ACEOF
13611
13612
13613 fi
13614
13615 for ac_header in vfork.h
13616 do :
13617 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13618 if test "x$ac_cv_header_vfork_h" = xyes; then :
13619 cat >>confdefs.h <<_ACEOF
13620 #define HAVE_VFORK_H 1
13621 _ACEOF
13622
13623 fi
13624
13625 done
13626
13627 for ac_func in fork vfork
13628 do :
13629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13632 cat >>confdefs.h <<_ACEOF
13633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13634 _ACEOF
13635
13636 fi
13637 done
13638
13639 if test "x$ac_cv_func_fork" = xyes; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13641 $as_echo_n "checking for working fork... " >&6; }
13642 if ${ac_cv_func_fork_works+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 if test "$cross_compiling" = yes; then :
13646 ac_cv_func_fork_works=cross
13647 else
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 $ac_includes_default
13651 int
13652 main ()
13653 {
13654
13655 /* By Ruediger Kuhlmann. */
13656 return fork () < 0;
13657
13658 ;
13659 return 0;
13660 }
13661 _ACEOF
13662 if ac_fn_c_try_run "$LINENO"; then :
13663 ac_cv_func_fork_works=yes
13664 else
13665 ac_cv_func_fork_works=no
13666 fi
13667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13668 conftest.$ac_objext conftest.beam conftest.$ac_ext
13669 fi
13670
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13673 $as_echo "$ac_cv_func_fork_works" >&6; }
13674
13675 else
13676 ac_cv_func_fork_works=$ac_cv_func_fork
13677 fi
13678 if test "x$ac_cv_func_fork_works" = xcross; then
13679 case $host in
13680 *-*-amigaos* | *-*-msdosdjgpp*)
13681 # Override, as these systems have only a dummy fork() stub
13682 ac_cv_func_fork_works=no
13683 ;;
13684 *)
13685 ac_cv_func_fork_works=yes
13686 ;;
13687 esac
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13689 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13690 fi
13691 ac_cv_func_vfork_works=$ac_cv_func_vfork
13692 if test "x$ac_cv_func_vfork" = xyes; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13694 $as_echo_n "checking for working vfork... " >&6; }
13695 if ${ac_cv_func_vfork_works+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 if test "$cross_compiling" = yes; then :
13699 ac_cv_func_vfork_works=cross
13700 else
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 /* Thanks to Paul Eggert for this test. */
13704 $ac_includes_default
13705 #include <sys/wait.h>
13706 #ifdef HAVE_VFORK_H
13707 # include <vfork.h>
13708 #endif
13709 /* On some sparc systems, changes by the child to local and incoming
13710 argument registers are propagated back to the parent. The compiler
13711 is told about this with #include <vfork.h>, but some compilers
13712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13713 static variable whose address is put into a register that is
13714 clobbered by the vfork. */
13715 static void
13716 #ifdef __cplusplus
13717 sparc_address_test (int arg)
13718 # else
13719 sparc_address_test (arg) int arg;
13720 #endif
13721 {
13722 static pid_t child;
13723 if (!child) {
13724 child = vfork ();
13725 if (child < 0) {
13726 perror ("vfork");
13727 _exit(2);
13728 }
13729 if (!child) {
13730 arg = getpid();
13731 write(-1, "", 0);
13732 _exit (arg);
13733 }
13734 }
13735 }
13736
13737 int
13738 main ()
13739 {
13740 pid_t parent = getpid ();
13741 pid_t child;
13742
13743 sparc_address_test (0);
13744
13745 child = vfork ();
13746
13747 if (child == 0) {
13748 /* Here is another test for sparc vfork register problems. This
13749 test uses lots of local variables, at least as many local
13750 variables as main has allocated so far including compiler
13751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13753 reuse the register of parent for one of the local variables,
13754 since it will think that parent can't possibly be used any more
13755 in this routine. Assigning to the local variable will thus
13756 munge parent in the parent process. */
13757 pid_t
13758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13760 /* Convince the compiler that p..p7 are live; otherwise, it might
13761 use the same hardware register for all 8 local variables. */
13762 if (p != p1 || p != p2 || p != p3 || p != p4
13763 || p != p5 || p != p6 || p != p7)
13764 _exit(1);
13765
13766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13767 from child file descriptors. If the child closes a descriptor
13768 before it execs or exits, this munges the parent's descriptor
13769 as well. Test for this by closing stdout in the child. */
13770 _exit(close(fileno(stdout)) != 0);
13771 } else {
13772 int status;
13773 struct stat st;
13774
13775 while (wait(&status) != child)
13776 ;
13777 return (
13778 /* Was there some problem with vforking? */
13779 child < 0
13780
13781 /* Did the child fail? (This shouldn't happen.) */
13782 || status
13783
13784 /* Did the vfork/compiler bug occur? */
13785 || parent != getpid()
13786
13787 /* Did the file descriptor bug occur? */
13788 || fstat(fileno(stdout), &st) != 0
13789 );
13790 }
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_run "$LINENO"; then :
13794 ac_cv_func_vfork_works=yes
13795 else
13796 ac_cv_func_vfork_works=no
13797 fi
13798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13799 conftest.$ac_objext conftest.beam conftest.$ac_ext
13800 fi
13801
13802 fi
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13804 $as_echo "$ac_cv_func_vfork_works" >&6; }
13805
13806 fi;
13807 if test "x$ac_cv_func_fork_works" = xcross; then
13808 ac_cv_func_vfork_works=$ac_cv_func_vfork
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13810 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13811 fi
13812
13813 if test "x$ac_cv_func_vfork_works" = xyes; then
13814
13815 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13816
13817 else
13818
13819 $as_echo "#define vfork fork" >>confdefs.h
13820
13821 fi
13822 if test "x$ac_cv_func_fork_works" = xyes; then
13823
13824 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13825
13826 fi
13827
13828
13829
13830
13831 for ac_header in $ac_header_list
13832 do :
13833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13835 "
13836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13837 cat >>confdefs.h <<_ACEOF
13838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13839 _ACEOF
13840
13841 fi
13842
13843 done
13844
13845
13846
13847
13848
13849
13850
13851
13852 for ac_func in getpagesize
13853 do :
13854 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13855 if test "x$ac_cv_func_getpagesize" = xyes; then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define HAVE_GETPAGESIZE 1
13858 _ACEOF
13859
13860 fi
13861 done
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13864 $as_echo_n "checking for working mmap... " >&6; }
13865 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 if test "$cross_compiling" = yes; then :
13869 ac_cv_func_mmap_fixed_mapped=no
13870 else
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 $ac_includes_default
13874 /* malloc might have been renamed as rpl_malloc. */
13875 #undef malloc
13876
13877 /* Thanks to Mike Haertel and Jim Avera for this test.
13878 Here is a matrix of mmap possibilities:
13879 mmap private not fixed
13880 mmap private fixed at somewhere currently unmapped
13881 mmap private fixed at somewhere already mapped
13882 mmap shared not fixed
13883 mmap shared fixed at somewhere currently unmapped
13884 mmap shared fixed at somewhere already mapped
13885 For private mappings, we should verify that changes cannot be read()
13886 back from the file, nor mmap's back from the file at a different
13887 address. (There have been systems where private was not correctly
13888 implemented like the infamous i386 svr4.0, and systems where the
13889 VM page cache was not coherent with the file system buffer cache
13890 like early versions of FreeBSD and possibly contemporary NetBSD.)
13891 For shared mappings, we should conversely verify that changes get
13892 propagated back to all the places they're supposed to be.
13893
13894 Grep wants private fixed already mapped.
13895 The main things grep needs to know about mmap are:
13896 * does it exist and is it safe to write into the mmap'd area
13897 * how to use it (BSD variants) */
13898
13899 #include <fcntl.h>
13900 #include <sys/mman.h>
13901
13902 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13903 char *malloc ();
13904 #endif
13905
13906 /* This mess was copied from the GNU getpagesize.h. */
13907 #ifndef HAVE_GETPAGESIZE
13908 # ifdef _SC_PAGESIZE
13909 # define getpagesize() sysconf(_SC_PAGESIZE)
13910 # else /* no _SC_PAGESIZE */
13911 # ifdef HAVE_SYS_PARAM_H
13912 # include <sys/param.h>
13913 # ifdef EXEC_PAGESIZE
13914 # define getpagesize() EXEC_PAGESIZE
13915 # else /* no EXEC_PAGESIZE */
13916 # ifdef NBPG
13917 # define getpagesize() NBPG * CLSIZE
13918 # ifndef CLSIZE
13919 # define CLSIZE 1
13920 # endif /* no CLSIZE */
13921 # else /* no NBPG */
13922 # ifdef NBPC
13923 # define getpagesize() NBPC
13924 # else /* no NBPC */
13925 # ifdef PAGESIZE
13926 # define getpagesize() PAGESIZE
13927 # endif /* PAGESIZE */
13928 # endif /* no NBPC */
13929 # endif /* no NBPG */
13930 # endif /* no EXEC_PAGESIZE */
13931 # else /* no HAVE_SYS_PARAM_H */
13932 # define getpagesize() 8192 /* punt totally */
13933 # endif /* no HAVE_SYS_PARAM_H */
13934 # endif /* no _SC_PAGESIZE */
13935
13936 #endif /* no HAVE_GETPAGESIZE */
13937
13938 int
13939 main ()
13940 {
13941 char *data, *data2, *data3;
13942 const char *cdata2;
13943 int i, pagesize;
13944 int fd, fd2;
13945
13946 pagesize = getpagesize ();
13947
13948 /* First, make a file with some known garbage in it. */
13949 data = (char *) malloc (pagesize);
13950 if (!data)
13951 return 1;
13952 for (i = 0; i < pagesize; ++i)
13953 *(data + i) = rand ();
13954 umask (0);
13955 fd = creat ("conftest.mmap", 0600);
13956 if (fd < 0)
13957 return 2;
13958 if (write (fd, data, pagesize) != pagesize)
13959 return 3;
13960 close (fd);
13961
13962 /* Next, check that the tail of a page is zero-filled. File must have
13963 non-zero length, otherwise we risk SIGBUS for entire page. */
13964 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13965 if (fd2 < 0)
13966 return 4;
13967 cdata2 = "";
13968 if (write (fd2, cdata2, 1) != 1)
13969 return 5;
13970 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13971 if (data2 == MAP_FAILED)
13972 return 6;
13973 for (i = 0; i < pagesize; ++i)
13974 if (*(data2 + i))
13975 return 7;
13976 close (fd2);
13977 if (munmap (data2, pagesize))
13978 return 8;
13979
13980 /* Next, try to mmap the file at a fixed address which already has
13981 something else allocated at it. If we can, also make sure that
13982 we see the same garbage. */
13983 fd = open ("conftest.mmap", O_RDWR);
13984 if (fd < 0)
13985 return 9;
13986 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13988 return 10;
13989 for (i = 0; i < pagesize; ++i)
13990 if (*(data + i) != *(data2 + i))
13991 return 11;
13992
13993 /* Finally, make sure that changes to the mapped area do not
13994 percolate back to the file as seen by read(). (This is a bug on
13995 some variants of i386 svr4.0.) */
13996 for (i = 0; i < pagesize; ++i)
13997 *(data2 + i) = *(data2 + i) + 1;
13998 data3 = (char *) malloc (pagesize);
13999 if (!data3)
14000 return 12;
14001 if (read (fd, data3, pagesize) != pagesize)
14002 return 13;
14003 for (i = 0; i < pagesize; ++i)
14004 if (*(data + i) != *(data3 + i))
14005 return 14;
14006 close (fd);
14007 return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_run "$LINENO"; then :
14011 ac_cv_func_mmap_fixed_mapped=yes
14012 else
14013 ac_cv_func_mmap_fixed_mapped=no
14014 fi
14015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14016 conftest.$ac_objext conftest.beam conftest.$ac_ext
14017 fi
14018
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14021 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14022 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14023
14024 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14025
14026 fi
14027 rm -f conftest.mmap conftest.txt
14028
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14031 $as_echo_n "checking for /dev/poll... " >&6; }
14032 if test -c "/dev/poll"; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14034 $as_echo "yes" >&6; }
14035
14036 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14037
14038 else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14041 fi
14042
14043
14044 if test "$is_mingw" = "yes"; then
14045
14046 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14047
14048 fi
14049
14050
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14052 $as_echo_n "checking for OpenSSL... " >&6; }
14053 # Check whether --enable-openssl was given.
14054 if test "${enable_openssl+set}" = set; then :
14055 enableval=$enable_openssl; cf_enable_openssl=$enableval
14056 else
14057 cf_enable_openssl="auto"
14058 fi
14059
14060
14061 if test "$cf_enable_openssl" != "no" ; then
14062 cf_openssl_basedir=""
14063 if test "$cf_enable_openssl" != "auto" &&
14064 test "$cf_enable_openssl" != "yes" ; then
14065 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14066 else
14067 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14068 /usr/local/openssl ; do
14069 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14070 cf_openssl_basedir="${dirs}"
14071 break
14072 fi
14073 done
14074 unset dirs
14075 fi
14076 if test ! -z "$cf_openssl_basedir"; then
14077 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14078 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14079 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14080 else
14081 cf_openssl_basedir=""
14082 fi
14083 else
14084 if test -f "/usr/include/openssl/opensslv.h" ; then
14085 cf_openssl_basedir="/usr"
14086 fi
14087 fi
14088
14089 if test ! -z "$cf_openssl_basedir"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14091 $as_echo "$cf_openssl_basedir" >&6; }
14092 cf_enable_openssl="yes"
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14095 $as_echo "not found. Specify a correct path?" >&6; }
14096 cf_enable_openssl="no"
14097 fi
14098 unset cf_openssl_basedir
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14101 $as_echo "disabled" >&6; }
14102 fi
14103
14104 save_CPPFLAGS="$CPPFLAGS"
14105 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14106 save_LIBS="$LIBS"
14107 LIBS="$LIBS $SSL_LIBS"
14108 if test "$cf_enable_openssl" != no; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14110 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14111 if test "$cross_compiling" = yes; then :
14112 cf_enable_openssl=no
14113 else
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116 #include <openssl/opensslv.h>
14117 #include <stdlib.h>
14118 int
14119 main ()
14120 {
14121 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14122 exit(0); else exit(1);
14123 ;
14124 return 0;
14125 }
14126 _ACEOF
14127 if ac_fn_c_try_run "$LINENO"; then :
14128 cf_enable_openssl=yes
14129 else
14130 cf_enable_openssl=no
14131 fi
14132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14134 fi
14135
14136
14137 if test "$cf_enable_openssl" != no; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14139 $as_echo "found" >&6; }
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14142 $as_echo "no - OpenSSL support disabled" >&6; }
14143 fi
14144
14145 fi
14146
14147
14148 if test "$cf_enable_openssl" != no; then
14149 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14151 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14152 if ${ac_cv_lib_crypto_RAND_status+:} false; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 ac_check_lib_save_LIBS=$LIBS
14156 LIBS="-lcrypto $LIBS"
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14163 #ifdef __cplusplus
14164 extern "C"
14165 #endif
14166 char RAND_status ();
14167 int
14168 main ()
14169 {
14170 return RAND_status ();
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"; then :
14176 ac_cv_lib_crypto_RAND_status=yes
14177 else
14178 ac_cv_lib_crypto_RAND_status=no
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14185 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14186 if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
14187 cf_enable_openssl=yes
14188 else
14189 cf_enable_openssl=no
14190 fi
14191
14192 fi
14193
14194 if test "$cf_enable_openssl" != no; then
14195 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14197 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14198 if ${ac_cv_lib_ssl_SSL_read+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 ac_check_lib_save_LIBS=$LIBS
14202 LIBS="-lssl -lcrypto $LIBS"
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205
14206 /* Override any GCC internal prototype to avoid an error.
14207 Use char because int might match the return type of a GCC
14208 builtin and then its argument prototype would still apply. */
14209 #ifdef __cplusplus
14210 extern "C"
14211 #endif
14212 char SSL_read ();
14213 int
14214 main ()
14215 {
14216 return SSL_read ();
14217 ;
14218 return 0;
14219 }
14220 _ACEOF
14221 if ac_fn_c_try_link "$LINENO"; then :
14222 ac_cv_lib_ssl_SSL_read=yes
14223 else
14224 ac_cv_lib_ssl_SSL_read=no
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 LIBS=$ac_check_lib_save_LIBS
14229 fi
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14231 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
14232 if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
14233 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
14234 else
14235 cf_enable_openssl=no
14236 fi
14237
14238 fi
14239
14240
14241
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14243 $as_echo_n "checking for GnuTLS... " >&6; }
14244 # Check whether --enable-gnutls was given.
14245 if test "${enable_gnutls+set}" = set; then :
14246 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
14247 else
14248 cf_enable_gnutls="auto"
14249 fi
14250
14251
14252 if test "$cf_enable_gnutls" != no; then
14253
14254
14255
14256
14257
14258
14259
14260 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14261 if test -n "$ac_tool_prefix"; then
14262 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14263 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265 $as_echo_n "checking for $ac_word... " >&6; }
14266 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 case $PKG_CONFIG in
14270 [\\/]* | ?:[\\/]*)
14271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14272 ;;
14273 *)
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14276 do
14277 IFS=$as_save_IFS
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 break 2
14284 fi
14285 done
14286 done
14287 IFS=$as_save_IFS
14288
14289 ;;
14290 esac
14291 fi
14292 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14293 if test -n "$PKG_CONFIG"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14295 $as_echo "$PKG_CONFIG" >&6; }
14296 else
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300
14301
14302 fi
14303 if test -z "$ac_cv_path_PKG_CONFIG"; then
14304 ac_pt_PKG_CONFIG=$PKG_CONFIG
14305 # Extract the first word of "pkg-config", so it can be a program name with args.
14306 set dummy pkg-config; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 case $ac_pt_PKG_CONFIG in
14313 [\\/]* | ?:[\\/]*)
14314 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14315 ;;
14316 *)
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $PATH
14319 do
14320 IFS=$as_save_IFS
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14324 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14326 break 2
14327 fi
14328 done
14329 done
14330 IFS=$as_save_IFS
14331
14332 ;;
14333 esac
14334 fi
14335 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14336 if test -n "$ac_pt_PKG_CONFIG"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14338 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14339 else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14342 fi
14343
14344 if test "x$ac_pt_PKG_CONFIG" = x; then
14345 PKG_CONFIG=""
14346 else
14347 case $cross_compiling:$ac_tool_warned in
14348 yes:)
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14351 ac_tool_warned=yes ;;
14352 esac
14353 PKG_CONFIG=$ac_pt_PKG_CONFIG
14354 fi
14355 else
14356 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14357 fi
14358
14359 fi
14360 if test -n "$PKG_CONFIG"; then
14361 _pkg_min_version=0.9.0
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14363 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14364 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14366 $as_echo "yes" >&6; }
14367 else
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369 $as_echo "no" >&6; }
14370 PKG_CONFIG=""
14371 fi
14372 fi
14373
14374 pkg_failed=no
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14376 $as_echo_n "checking for GNUTLS... " >&6; }
14377
14378 if test -n "$GNUTLS_CFLAGS"; then
14379 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
14380 elif test -n "$PKG_CONFIG"; then
14381 if test -n "$PKG_CONFIG" && \
14382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14383 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14384 ac_status=$?
14385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14386 test $ac_status = 0; }; then
14387 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
14388 test "x$?" != "x0" && pkg_failed=yes
14389 else
14390 pkg_failed=yes
14391 fi
14392 else
14393 pkg_failed=untried
14394 fi
14395 if test -n "$GNUTLS_LIBS"; then
14396 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
14397 elif test -n "$PKG_CONFIG"; then
14398 if test -n "$PKG_CONFIG" && \
14399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14400 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14401 ac_status=$?
14402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14403 test $ac_status = 0; }; then
14404 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
14405 test "x$?" != "x0" && pkg_failed=yes
14406 else
14407 pkg_failed=yes
14408 fi
14409 else
14410 pkg_failed=untried
14411 fi
14412
14413
14414
14415 if test $pkg_failed = yes; then
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418
14419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14420 _pkg_short_errors_supported=yes
14421 else
14422 _pkg_short_errors_supported=no
14423 fi
14424 if test $_pkg_short_errors_supported = yes; then
14425 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
14426 else
14427 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
14428 fi
14429 # Put the nasty error message in config.log where it belongs
14430 echo "$GNUTLS_PKG_ERRORS" >&5
14431
14432 cf_enable_gnutls="no"
14433 elif test $pkg_failed = untried; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14436 cf_enable_gnutls="no"
14437 else
14438 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
14439 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14441 $as_echo "yes" >&6; }
14442
14443 cf_enable_gnutls="yes"
14444
14445 fi
14446 fi
14447
14448 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14449 cf_enable_gnutls="no"
14450 fi
14451
14452 if test x"$cf_enable_openssl" != xno; then
14453
14454 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14455
14456 GNUTLS_CFLAGS=""
14457 GNUTLS_LIBS=""
14458 SSL_TYPE="openssl"
14459 elif test x"$cf_enable_gnutls" != xno; then
14460
14461 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
14462
14463 SSL_LIBS=""
14464 SSL_CFLAGS=""
14465 SSL_TYPE="gnutls"
14466 fi
14467
14468
14469
14470
14471 CPPFLAGS="$save_CPPFLAGS"
14472 LIBS="$save_LIBS"
14473
14474
14475
14476
14477
14478
14479 # Check whether --enable-assert was given.
14480 if test "${enable_assert+set}" = set; then :
14481 enableval=$enable_assert; assert=$enableval
14482 else
14483 assert=no
14484 fi
14485
14486
14487 if test "$assert" = no; then
14488
14489 $as_echo "#define NDEBUG 1" >>confdefs.h
14490
14491 elif test "$assert" = soft; then
14492
14493 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
14494
14495
14496 $as_echo "#define NDEBUG 1" >>confdefs.h
14497
14498 elif test "$assert" = yes; then
14499 assert = "hard";
14500 fi
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14503 $as_echo_n "checking if you want to do a profile build... " >&6; }
14504 # Check whether --enable-profile was given.
14505 if test "${enable_profile+set}" = set; then :
14506 enableval=$enable_profile; profile=$enableval
14507 else
14508 profile=no
14509 fi
14510
14511
14512 if test "$profile" = yes; then
14513 if test "$ac_cv_c_compiler_gnu" = yes; then
14514 CFLAGS="$CFLAGS -pg -static"
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14516 $as_echo "yes, adding -pg -static" >&6; }
14517
14518 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14519
14520 else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14522 $as_echo "no, profile builds only work with gcc" >&6; }
14523 fi
14524 else
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14527 fi
14528
14529 # Check whether --enable-balloc was given.
14530 if test "${enable_balloc+set}" = set; then :
14531 enableval=$enable_balloc; balloc=$enableval
14532 else
14533 balloc=yes
14534 fi
14535
14536
14537 if test "$balloc" = no; then
14538
14539 $as_echo "#define NOBALLOC 1" >>confdefs.h
14540
14541 fi
14542
14543 # Check whether --enable-warnings was given.
14544 if test "${enable_warnings+set}" = set; then :
14545 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"
14546 fi
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558 if test "$prefix" = "NONE"; then
14559
14560 cat >>confdefs.h <<_ACEOF
14561 #define RB_PREFIX "$ac_default_prefix"
14562 _ACEOF
14563
14564
14565 else
14566
14567
14568 prefix=`echo $prefix | sed 's/\/$//'`
14569
14570 cat >>confdefs.h <<_ACEOF
14571 #define RB_PREFIX "$prefix"
14572 _ACEOF
14573
14574
14575 fi
14576
14577
14578
14579 ac_config_commands="$ac_config_commands include/librb-config.h"
14580
14581
14582
14583 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
14584
14585
14586 cat >confcache <<\_ACEOF
14587 # This file is a shell script that caches the results of configure
14588 # tests run on this system so they can be shared between configure
14589 # scripts and configure runs, see configure's option --config-cache.
14590 # It is not useful on other systems. If it contains results you don't
14591 # want to keep, you may remove or edit it.
14592 #
14593 # config.status only pays attention to the cache file if you give it
14594 # the --recheck option to rerun configure.
14595 #
14596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14598 # following values.
14599
14600 _ACEOF
14601
14602 # The following way of writing the cache mishandles newlines in values,
14603 # but we know of no workaround that is simple, portable, and efficient.
14604 # So, we kill variables containing newlines.
14605 # Ultrix sh set writes to stderr and can't be redirected directly,
14606 # and sets the high bit in the cache file unless we assign to the vars.
14607 (
14608 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14609 eval ac_val=\$$ac_var
14610 case $ac_val in #(
14611 *${as_nl}*)
14612 case $ac_var in #(
14613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14615 esac
14616 case $ac_var in #(
14617 _ | IFS | as_nl) ;; #(
14618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14619 *) { eval $ac_var=; unset $ac_var;} ;;
14620 esac ;;
14621 esac
14622 done
14623
14624 (set) 2>&1 |
14625 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14626 *${as_nl}ac_space=\ *)
14627 # `set' does not quote correctly, so add quotes: double-quote
14628 # substitution turns \\\\ into \\, and sed turns \\ into \.
14629 sed -n \
14630 "s/'/'\\\\''/g;
14631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14632 ;; #(
14633 *)
14634 # `set' quotes correctly as required by POSIX, so do not add quotes.
14635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14636 ;;
14637 esac |
14638 sort
14639 ) |
14640 sed '
14641 /^ac_cv_env_/b end
14642 t clear
14643 :clear
14644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14645 t end
14646 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14647 :end' >>confcache
14648 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14649 if test -w "$cache_file"; then
14650 if test "x$cache_file" != "x/dev/null"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14652 $as_echo "$as_me: updating cache $cache_file" >&6;}
14653 if test ! -f "$cache_file" || test -h "$cache_file"; then
14654 cat confcache >"$cache_file"
14655 else
14656 case $cache_file in #(
14657 */* | ?:*)
14658 mv -f confcache "$cache_file"$$ &&
14659 mv -f "$cache_file"$$ "$cache_file" ;; #(
14660 *)
14661 mv -f confcache "$cache_file" ;;
14662 esac
14663 fi
14664 fi
14665 else
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14667 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14668 fi
14669 fi
14670 rm -f confcache
14671
14672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14673 # Let make expand exec_prefix.
14674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14675
14676 DEFS=-DHAVE_CONFIG_H
14677
14678 ac_libobjs=
14679 ac_ltlibobjs=
14680 U=
14681 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14682 # 1. Remove the extension, and $U if already installed.
14683 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14684 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14685 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14686 # will be set to the directory where LIBOBJS objects are built.
14687 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14688 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14689 done
14690 LIBOBJS=$ac_libobjs
14691
14692 LTLIBOBJS=$ac_ltlibobjs
14693
14694
14695 if test -n "$EXEEXT"; then
14696 am__EXEEXT_TRUE=
14697 am__EXEEXT_FALSE='#'
14698 else
14699 am__EXEEXT_TRUE='#'
14700 am__EXEEXT_FALSE=
14701 fi
14702
14703 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14704 as_fn_error $? "conditional \"AMDEP\" was never defined.
14705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14706 fi
14707 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710 fi
14711 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14712 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714 fi
14715
14716 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14717 as_fn_error $? "conditional \"MINGW\" was never defined.
14718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14719 fi
14720
14721 : "${CONFIG_STATUS=./config.status}"
14722 ac_write_fail=0
14723 ac_clean_files_save=$ac_clean_files
14724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14727 as_write_fail=0
14728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14729 #! $SHELL
14730 # Generated by $as_me.
14731 # Run this file to recreate the current configuration.
14732 # Compiler output produced by configure, useful for debugging
14733 # configure, is in config.log if it exists.
14734
14735 debug=false
14736 ac_cs_recheck=false
14737 ac_cs_silent=false
14738
14739 SHELL=\${CONFIG_SHELL-$SHELL}
14740 export SHELL
14741 _ASEOF
14742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14743 ## -------------------- ##
14744 ## M4sh Initialization. ##
14745 ## -------------------- ##
14746
14747 # Be more Bourne compatible
14748 DUALCASE=1; export DUALCASE # for MKS sh
14749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14750 emulate sh
14751 NULLCMD=:
14752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14753 # is contrary to our usage. Disable this feature.
14754 alias -g '${1+"$@"}'='"$@"'
14755 setopt NO_GLOB_SUBST
14756 else
14757 case `(set -o) 2>/dev/null` in #(
14758 *posix*) :
14759 set -o posix ;; #(
14760 *) :
14761 ;;
14762 esac
14763 fi
14764
14765
14766 as_nl='
14767 '
14768 export as_nl
14769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14773 # Prefer a ksh shell builtin over an external printf program on Solaris,
14774 # but without wasting forks for bash or zsh.
14775 if test -z "$BASH_VERSION$ZSH_VERSION" \
14776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14777 as_echo='print -r --'
14778 as_echo_n='print -rn --'
14779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14780 as_echo='printf %s\n'
14781 as_echo_n='printf %s'
14782 else
14783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14785 as_echo_n='/usr/ucb/echo -n'
14786 else
14787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14788 as_echo_n_body='eval
14789 arg=$1;
14790 case $arg in #(
14791 *"$as_nl"*)
14792 expr "X$arg" : "X\\(.*\\)$as_nl";
14793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14794 esac;
14795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14796 '
14797 export as_echo_n_body
14798 as_echo_n='sh -c $as_echo_n_body as_echo'
14799 fi
14800 export as_echo_body
14801 as_echo='sh -c $as_echo_body as_echo'
14802 fi
14803
14804 # The user is always right.
14805 if test "${PATH_SEPARATOR+set}" != set; then
14806 PATH_SEPARATOR=:
14807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14809 PATH_SEPARATOR=';'
14810 }
14811 fi
14812
14813
14814 # IFS
14815 # We need space, tab and new line, in precisely that order. Quoting is
14816 # there to prevent editors from complaining about space-tab.
14817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14818 # splitting by setting IFS to empty value.)
14819 IFS=" "" $as_nl"
14820
14821 # Find who we are. Look in the path if we contain no directory separator.
14822 as_myself=
14823 case $0 in #((
14824 *[\\/]* ) as_myself=$0 ;;
14825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14827 do
14828 IFS=$as_save_IFS
14829 test -z "$as_dir" && as_dir=.
14830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14831 done
14832 IFS=$as_save_IFS
14833
14834 ;;
14835 esac
14836 # We did not find ourselves, most probably we were run as `sh COMMAND'
14837 # in which case we are not to be found in the path.
14838 if test "x$as_myself" = x; then
14839 as_myself=$0
14840 fi
14841 if test ! -f "$as_myself"; then
14842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14843 exit 1
14844 fi
14845
14846 # Unset variables that we do not need and which cause bugs (e.g. in
14847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14848 # suppresses any "Segmentation fault" message there. '((' could
14849 # trigger a bug in pdksh 5.2.14.
14850 for as_var in BASH_ENV ENV MAIL MAILPATH
14851 do eval test x\${$as_var+set} = xset \
14852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14853 done
14854 PS1='$ '
14855 PS2='> '
14856 PS4='+ '
14857
14858 # NLS nuisances.
14859 LC_ALL=C
14860 export LC_ALL
14861 LANGUAGE=C
14862 export LANGUAGE
14863
14864 # CDPATH.
14865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14866
14867
14868 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14869 # ----------------------------------------
14870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14872 # script with STATUS, using 1 if that was 0.
14873 as_fn_error ()
14874 {
14875 as_status=$1; test $as_status -eq 0 && as_status=1
14876 if test "$4"; then
14877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14879 fi
14880 $as_echo "$as_me: error: $2" >&2
14881 as_fn_exit $as_status
14882 } # as_fn_error
14883
14884
14885 # as_fn_set_status STATUS
14886 # -----------------------
14887 # Set $? to STATUS, without forking.
14888 as_fn_set_status ()
14889 {
14890 return $1
14891 } # as_fn_set_status
14892
14893 # as_fn_exit STATUS
14894 # -----------------
14895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14896 as_fn_exit ()
14897 {
14898 set +e
14899 as_fn_set_status $1
14900 exit $1
14901 } # as_fn_exit
14902
14903 # as_fn_unset VAR
14904 # ---------------
14905 # Portably unset VAR.
14906 as_fn_unset ()
14907 {
14908 { eval $1=; unset $1;}
14909 }
14910 as_unset=as_fn_unset
14911 # as_fn_append VAR VALUE
14912 # ----------------------
14913 # Append the text in VALUE to the end of the definition contained in VAR. Take
14914 # advantage of any shell optimizations that allow amortized linear growth over
14915 # repeated appends, instead of the typical quadratic growth present in naive
14916 # implementations.
14917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14918 eval 'as_fn_append ()
14919 {
14920 eval $1+=\$2
14921 }'
14922 else
14923 as_fn_append ()
14924 {
14925 eval $1=\$$1\$2
14926 }
14927 fi # as_fn_append
14928
14929 # as_fn_arith ARG...
14930 # ------------------
14931 # Perform arithmetic evaluation on the ARGs, and store the result in the
14932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14933 # must be portable across $(()) and expr.
14934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14935 eval 'as_fn_arith ()
14936 {
14937 as_val=$(( $* ))
14938 }'
14939 else
14940 as_fn_arith ()
14941 {
14942 as_val=`expr "$@" || test $? -eq 1`
14943 }
14944 fi # as_fn_arith
14945
14946
14947 if expr a : '\(a\)' >/dev/null 2>&1 &&
14948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14949 as_expr=expr
14950 else
14951 as_expr=false
14952 fi
14953
14954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14955 as_basename=basename
14956 else
14957 as_basename=false
14958 fi
14959
14960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14961 as_dirname=dirname
14962 else
14963 as_dirname=false
14964 fi
14965
14966 as_me=`$as_basename -- "$0" ||
14967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14968 X"$0" : 'X\(//\)$' \| \
14969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14970 $as_echo X/"$0" |
14971 sed '/^.*\/\([^/][^/]*\)\/*$/{
14972 s//\1/
14973 q
14974 }
14975 /^X\/\(\/\/\)$/{
14976 s//\1/
14977 q
14978 }
14979 /^X\/\(\/\).*/{
14980 s//\1/
14981 q
14982 }
14983 s/.*/./; q'`
14984
14985 # Avoid depending upon Character Ranges.
14986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14989 as_cr_digits='0123456789'
14990 as_cr_alnum=$as_cr_Letters$as_cr_digits
14991
14992 ECHO_C= ECHO_N= ECHO_T=
14993 case `echo -n x` in #(((((
14994 -n*)
14995 case `echo 'xy\c'` in
14996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14997 xy) ECHO_C='\c';;
14998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14999 ECHO_T=' ';;
15000 esac;;
15001 *)
15002 ECHO_N='-n';;
15003 esac
15004
15005 rm -f conf$$ conf$$.exe conf$$.file
15006 if test -d conf$$.dir; then
15007 rm -f conf$$.dir/conf$$.file
15008 else
15009 rm -f conf$$.dir
15010 mkdir conf$$.dir 2>/dev/null
15011 fi
15012 if (echo >conf$$.file) 2>/dev/null; then
15013 if ln -s conf$$.file conf$$ 2>/dev/null; then
15014 as_ln_s='ln -s'
15015 # ... but there are two gotchas:
15016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15018 # In both cases, we have to default to `cp -p'.
15019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15020 as_ln_s='cp -p'
15021 elif ln conf$$.file conf$$ 2>/dev/null; then
15022 as_ln_s=ln
15023 else
15024 as_ln_s='cp -p'
15025 fi
15026 else
15027 as_ln_s='cp -p'
15028 fi
15029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15030 rmdir conf$$.dir 2>/dev/null
15031
15032
15033 # as_fn_mkdir_p
15034 # -------------
15035 # Create "$as_dir" as a directory, including parents if necessary.
15036 as_fn_mkdir_p ()
15037 {
15038
15039 case $as_dir in #(
15040 -*) as_dir=./$as_dir;;
15041 esac
15042 test -d "$as_dir" || eval $as_mkdir_p || {
15043 as_dirs=
15044 while :; do
15045 case $as_dir in #(
15046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15047 *) as_qdir=$as_dir;;
15048 esac
15049 as_dirs="'$as_qdir' $as_dirs"
15050 as_dir=`$as_dirname -- "$as_dir" ||
15051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052 X"$as_dir" : 'X\(//\)[^/]' \| \
15053 X"$as_dir" : 'X\(//\)$' \| \
15054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15055 $as_echo X"$as_dir" |
15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15057 s//\1/
15058 q
15059 }
15060 /^X\(\/\/\)[^/].*/{
15061 s//\1/
15062 q
15063 }
15064 /^X\(\/\/\)$/{
15065 s//\1/
15066 q
15067 }
15068 /^X\(\/\).*/{
15069 s//\1/
15070 q
15071 }
15072 s/.*/./; q'`
15073 test -d "$as_dir" && break
15074 done
15075 test -z "$as_dirs" || eval "mkdir $as_dirs"
15076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15077
15078
15079 } # as_fn_mkdir_p
15080 if mkdir -p . 2>/dev/null; then
15081 as_mkdir_p='mkdir -p "$as_dir"'
15082 else
15083 test -d ./-p && rmdir ./-p
15084 as_mkdir_p=false
15085 fi
15086
15087 if test -x / >/dev/null 2>&1; then
15088 as_test_x='test -x'
15089 else
15090 if ls -dL / >/dev/null 2>&1; then
15091 as_ls_L_option=L
15092 else
15093 as_ls_L_option=
15094 fi
15095 as_test_x='
15096 eval sh -c '\''
15097 if test -d "$1"; then
15098 test -d "$1/.";
15099 else
15100 case $1 in #(
15101 -*)set "./$1";;
15102 esac;
15103 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15104 ???[sx]*):;;*)false;;esac;fi
15105 '\'' sh
15106 '
15107 fi
15108 as_executable_p=$as_test_x
15109
15110 # Sed expression to map a string onto a valid CPP name.
15111 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15112
15113 # Sed expression to map a string onto a valid variable name.
15114 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15115
15116
15117 exec 6>&1
15118 ## ----------------------------------- ##
15119 ## Main body of $CONFIG_STATUS script. ##
15120 ## ----------------------------------- ##
15121 _ASEOF
15122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15123
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 # Save the log message, to keep $0 and so on meaningful, and to
15126 # report actual input values of CONFIG_FILES etc. instead of their
15127 # values after options handling.
15128 ac_log="
15129 This file was extended by libratbox $as_me devel, which was
15130 generated by GNU Autoconf 2.68. Invocation command line was
15131
15132 CONFIG_FILES = $CONFIG_FILES
15133 CONFIG_HEADERS = $CONFIG_HEADERS
15134 CONFIG_LINKS = $CONFIG_LINKS
15135 CONFIG_COMMANDS = $CONFIG_COMMANDS
15136 $ $0 $@
15137
15138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15139 "
15140
15141 _ACEOF
15142
15143 case $ac_config_files in *"
15144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15145 esac
15146
15147 case $ac_config_headers in *"
15148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15149 esac
15150
15151
15152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15153 # Files that config.status was made for.
15154 config_files="$ac_config_files"
15155 config_headers="$ac_config_headers"
15156 config_commands="$ac_config_commands"
15157
15158 _ACEOF
15159
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 ac_cs_usage="\
15162 \`$as_me' instantiates files and other configuration actions
15163 from templates according to the current configuration. Unless the files
15164 and actions are specified as TAGs, all are instantiated by default.
15165
15166 Usage: $0 [OPTION]... [TAG]...
15167
15168 -h, --help print this help, then exit
15169 -V, --version print version number and configuration settings, then exit
15170 --config print configuration, then exit
15171 -q, --quiet, --silent
15172 do not print progress messages
15173 -d, --debug don't remove temporary files
15174 --recheck update $as_me by reconfiguring in the same conditions
15175 --file=FILE[:TEMPLATE]
15176 instantiate the configuration file FILE
15177 --header=FILE[:TEMPLATE]
15178 instantiate the configuration header FILE
15179
15180 Configuration files:
15181 $config_files
15182
15183 Configuration headers:
15184 $config_headers
15185
15186 Configuration commands:
15187 $config_commands
15188
15189 Report bugs to the package provider."
15190
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15194 ac_cs_version="\\
15195 libratbox config.status devel
15196 configured by $0, generated by GNU Autoconf 2.68,
15197 with options \\"\$ac_cs_config\\"
15198
15199 Copyright (C) 2010 Free Software Foundation, Inc.
15200 This config.status script is free software; the Free Software Foundation
15201 gives unlimited permission to copy, distribute and modify it."
15202
15203 ac_pwd='$ac_pwd'
15204 srcdir='$srcdir'
15205 INSTALL='$INSTALL'
15206 MKDIR_P='$MKDIR_P'
15207 AWK='$AWK'
15208 test -n "\$AWK" || AWK=awk
15209 _ACEOF
15210
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 # The default lists apply if the user does not specify any file.
15213 ac_need_defaults=:
15214 while test $# != 0
15215 do
15216 case $1 in
15217 --*=?*)
15218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15220 ac_shift=:
15221 ;;
15222 --*=)
15223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15224 ac_optarg=
15225 ac_shift=:
15226 ;;
15227 *)
15228 ac_option=$1
15229 ac_optarg=$2
15230 ac_shift=shift
15231 ;;
15232 esac
15233
15234 case $ac_option in
15235 # Handling of the options.
15236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15237 ac_cs_recheck=: ;;
15238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15239 $as_echo "$ac_cs_version"; exit ;;
15240 --config | --confi | --conf | --con | --co | --c )
15241 $as_echo "$ac_cs_config"; exit ;;
15242 --debug | --debu | --deb | --de | --d | -d )
15243 debug=: ;;
15244 --file | --fil | --fi | --f )
15245 $ac_shift
15246 case $ac_optarg in
15247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15248 '') as_fn_error $? "missing file argument" ;;
15249 esac
15250 as_fn_append CONFIG_FILES " '$ac_optarg'"
15251 ac_need_defaults=false;;
15252 --header | --heade | --head | --hea )
15253 $ac_shift
15254 case $ac_optarg in
15255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15256 esac
15257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15258 ac_need_defaults=false;;
15259 --he | --h)
15260 # Conflict between --help and --header
15261 as_fn_error $? "ambiguous option: \`$1'
15262 Try \`$0 --help' for more information.";;
15263 --help | --hel | -h )
15264 $as_echo "$ac_cs_usage"; exit ;;
15265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15267 ac_cs_silent=: ;;
15268
15269 # This is an error.
15270 -*) as_fn_error $? "unrecognized option: \`$1'
15271 Try \`$0 --help' for more information." ;;
15272
15273 *) as_fn_append ac_config_targets " $1"
15274 ac_need_defaults=false ;;
15275
15276 esac
15277 shift
15278 done
15279
15280 ac_configure_extra_args=
15281
15282 if $ac_cs_silent; then
15283 exec 6>/dev/null
15284 ac_configure_extra_args="$ac_configure_extra_args --silent"
15285 fi
15286
15287 _ACEOF
15288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15289 if \$ac_cs_recheck; then
15290 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15291 shift
15292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15293 CONFIG_SHELL='$SHELL'
15294 export CONFIG_SHELL
15295 exec "\$@"
15296 fi
15297
15298 _ACEOF
15299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15300 exec 5>>config.log
15301 {
15302 echo
15303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15304 ## Running $as_me. ##
15305 _ASBOX
15306 $as_echo "$ac_log"
15307 } >&5
15308
15309 _ACEOF
15310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15311 #
15312 # INIT-COMMANDS
15313 #
15314 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15315
15316
15317 # The HP-UX ksh and POSIX shell print the target directory to stdout
15318 # if CDPATH is set.
15319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15320
15321 sed_quote_subst='$sed_quote_subst'
15322 double_quote_subst='$double_quote_subst'
15323 delay_variable_subst='$delay_variable_subst'
15324 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15325 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15326 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15327 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15328 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15329 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15330 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15331 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15332 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15333 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15334 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15335 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15336 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15337 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15338 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15339 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15340 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15341 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15342 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15343 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15344 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15345 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15346 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15347 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15348 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15349 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15350 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15351 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15352 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15353 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15354 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15355 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15356 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15361 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15362 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15363 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15364 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15365 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15366 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15367 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15368 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15369 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15370 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15371 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15372 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15373 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15374 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15375 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15376 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15377 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15378 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15379 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"`'
15380 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15381 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15382 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15383 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15384 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15387 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15388 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15389 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15390 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15414 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15415 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15416 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15417 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15418 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15419 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15420 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15421 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15422 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15423 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15424 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15425 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15426 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15427 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15428 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15429 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15430 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15431 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15432 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15433 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15434 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15435 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15436 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15437 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15438 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15439 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15440 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15441 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15442 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15443 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15444 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15445 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15446 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15447 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15448 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15449 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15450 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15451 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15452 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15453 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15454
15455 LTCC='$LTCC'
15456 LTCFLAGS='$LTCFLAGS'
15457 compiler='$compiler_DEFAULT'
15458
15459 # A function that is used when there is no print builtin or printf.
15460 func_fallback_echo ()
15461 {
15462 eval 'cat <<_LTECHO_EOF
15463 \$1
15464 _LTECHO_EOF'
15465 }
15466
15467 # Quote evaled strings.
15468 for var in SHELL \
15469 ECHO \
15470 SED \
15471 GREP \
15472 EGREP \
15473 FGREP \
15474 LD \
15475 NM \
15476 LN_S \
15477 lt_SP2NL \
15478 lt_NL2SP \
15479 reload_flag \
15480 OBJDUMP \
15481 deplibs_check_method \
15482 file_magic_cmd \
15483 file_magic_glob \
15484 want_nocaseglob \
15485 DLLTOOL \
15486 sharedlib_from_linklib_cmd \
15487 AR \
15488 AR_FLAGS \
15489 archiver_list_spec \
15490 STRIP \
15491 RANLIB \
15492 CC \
15493 CFLAGS \
15494 compiler \
15495 lt_cv_sys_global_symbol_pipe \
15496 lt_cv_sys_global_symbol_to_cdecl \
15497 lt_cv_sys_global_symbol_to_c_name_address \
15498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15499 nm_file_list_spec \
15500 lt_prog_compiler_no_builtin_flag \
15501 lt_prog_compiler_pic \
15502 lt_prog_compiler_wl \
15503 lt_prog_compiler_static \
15504 lt_cv_prog_compiler_c_o \
15505 need_locks \
15506 MANIFEST_TOOL \
15507 DSYMUTIL \
15508 NMEDIT \
15509 LIPO \
15510 OTOOL \
15511 OTOOL64 \
15512 shrext_cmds \
15513 export_dynamic_flag_spec \
15514 whole_archive_flag_spec \
15515 compiler_needs_object \
15516 with_gnu_ld \
15517 allow_undefined_flag \
15518 no_undefined_flag \
15519 hardcode_libdir_flag_spec \
15520 hardcode_libdir_flag_spec_ld \
15521 hardcode_libdir_separator \
15522 exclude_expsyms \
15523 include_expsyms \
15524 file_list_spec \
15525 variables_saved_for_relink \
15526 libname_spec \
15527 library_names_spec \
15528 soname_spec \
15529 install_override_mode \
15530 finish_eval \
15531 old_striplib \
15532 striplib; do
15533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15534 *[\\\\\\\`\\"\\\$]*)
15535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15536 ;;
15537 *)
15538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15539 ;;
15540 esac
15541 done
15542
15543 # Double-quote double-evaled strings.
15544 for var in reload_cmds \
15545 old_postinstall_cmds \
15546 old_postuninstall_cmds \
15547 old_archive_cmds \
15548 extract_expsyms_cmds \
15549 old_archive_from_new_cmds \
15550 old_archive_from_expsyms_cmds \
15551 archive_cmds \
15552 archive_expsym_cmds \
15553 module_cmds \
15554 module_expsym_cmds \
15555 export_symbols_cmds \
15556 prelink_cmds \
15557 postlink_cmds \
15558 postinstall_cmds \
15559 postuninstall_cmds \
15560 finish_cmds \
15561 sys_lib_search_path_spec \
15562 sys_lib_dlsearch_path_spec; do
15563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15564 *[\\\\\\\`\\"\\\$]*)
15565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15566 ;;
15567 *)
15568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15569 ;;
15570 esac
15571 done
15572
15573 ac_aux_dir='$ac_aux_dir'
15574 xsi_shell='$xsi_shell'
15575 lt_shell_append='$lt_shell_append'
15576
15577 # See if we are running on zsh, and set the options which allow our
15578 # commands through without removal of \ escapes INIT.
15579 if test -n "\${ZSH_VERSION+set}" ; then
15580 setopt NO_GLOB_SUBST
15581 fi
15582
15583
15584 PACKAGE='$PACKAGE'
15585 VERSION='$VERSION'
15586 TIMESTAMP='$TIMESTAMP'
15587 RM='$RM'
15588 ofile='$ofile'
15589
15590
15591
15592
15593 if test x$ac_cv_header_stdc = xyes; then
15594 rb_header_stdc=yes
15595 fi
15596 if test x$ac_cv_header_stdlib_h = xyes; then
15597 rb_header_stdlib_h=yes
15598 fi
15599 if test x$ac_cv_header_string_h = xyes; then
15600 rb_header_string_h=yes
15601 fi
15602 if test x$ac_cv_header_memory_h = xyes; then
15603 rb_header_memory_h=yes
15604 fi
15605 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15606 rb_alloca_h="$ac_cv_working_alloca_h"
15607 else
15608 rb_alloc_h="$ac_cv_header_alloca_h"
15609 fi
15610 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15611 rb_sockaddr_sa_len=yes
15612 fi
15613 if test x$ac_cv_header_sys_socket_h = xyes; then
15614 rb_sys_socket_h=yes
15615 fi
15616 if test x$ac_cv_header_sys_types_h = xyes; then
15617 rb_sys_types_h=yes
15618 fi
15619 if test x$ac_cv_header_sys_stat_h = xyes; then
15620 rb_sys_stat_h=yes
15621 fi
15622 if test x$ac_cv_header_sys_time_h = xyes; then
15623 rb_sys_time_h=yes
15624 fi
15625 if test x$ac_cv_header_time = xyes; then
15626 rb_time_h=yes
15627 fi
15628
15629 if test x$ac_cv_header_stdint_h = xyes; then
15630 rb_stdint_h=yes
15631 fi
15632 if test x$ac_cv_header_inttypes_h = xyes; then
15633 rb_inttypes_h=yes
15634 fi
15635 if test x$ac_cv_header_netinet_in_h = xyes; then
15636 rb_netinet_in_h=yes
15637 fi
15638
15639 if test x$ac_cv_header_crypt_h = xyes; then
15640 rb_crypt_h=yes
15641 fi
15642 if test x$ac_cv_header_errno_h = xyes; then
15643 rb_errno_h=yes
15644 fi
15645 if test x$ac_cv_header_unistd_h = xyes; then
15646 rb_unistd_h=yes
15647 fi
15648 if test x$ac_cv_header_windows_h = xyes; then
15649 rb_windows_h=yes
15650 fi
15651 if test x$ac_cv_header_winsock2_h = xyes; then
15652 rb_winsock2_h=yes
15653 fi
15654
15655 rb_socklen_t=$rb_socklen_t
15656
15657 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15658 rb_sockaddr_storage="yes"
15659 else
15660 rb_sockaddr_storage="no"
15661 fi
15662
15663 rb_have_ipv6="$have_v6"
15664
15665 rb_mv="$MV"
15666 rb_rm="$RM"
15667
15668
15669
15670
15671
15672
15673 _ACEOF
15674
15675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15676
15677 # Handling of arguments.
15678 for ac_config_target in $ac_config_targets
15679 do
15680 case $ac_config_target in
15681 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
15682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15683 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15684 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
15685 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15687 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
15688
15689 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15690 esac
15691 done
15692
15693
15694 # If the user did not use the arguments to specify the items to instantiate,
15695 # then the envvar interface is used. Set only those that are not.
15696 # We use the long form for the default assignment because of an extremely
15697 # bizarre bug on SunOS 4.1.3.
15698 if $ac_need_defaults; then
15699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15702 fi
15703
15704 # Have a temporary directory for convenience. Make it in the build tree
15705 # simply because there is no reason against having it here, and in addition,
15706 # creating and moving files from /tmp can sometimes cause problems.
15707 # Hook for its removal unless debugging.
15708 # Note that there is a small window in which the directory will not be cleaned:
15709 # after its creation but before its name has been assigned to `$tmp'.
15710 $debug ||
15711 {
15712 tmp= ac_tmp=
15713 trap 'exit_status=$?
15714 : "${ac_tmp:=$tmp}"
15715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15716 ' 0
15717 trap 'as_fn_exit 1' 1 2 13 15
15718 }
15719 # Create a (secure) tmp directory for tmp files.
15720
15721 {
15722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15723 test -d "$tmp"
15724 } ||
15725 {
15726 tmp=./conf$$-$RANDOM
15727 (umask 077 && mkdir "$tmp")
15728 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15729 ac_tmp=$tmp
15730
15731 # Set up the scripts for CONFIG_FILES section.
15732 # No need to generate them if there are no CONFIG_FILES.
15733 # This happens for instance with `./config.status config.h'.
15734 if test -n "$CONFIG_FILES"; then
15735
15736
15737 ac_cr=`echo X | tr X '\015'`
15738 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15739 # But we know of no other shell where ac_cr would be empty at this
15740 # point, so we can use a bashism as a fallback.
15741 if test "x$ac_cr" = x; then
15742 eval ac_cr=\$\'\\r\'
15743 fi
15744 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15745 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15746 ac_cs_awk_cr='\\r'
15747 else
15748 ac_cs_awk_cr=$ac_cr
15749 fi
15750
15751 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15752 _ACEOF
15753
15754
15755 {
15756 echo "cat >conf$$subs.awk <<_ACEOF" &&
15757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15758 echo "_ACEOF"
15759 } >conf$$subs.sh ||
15760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15761 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15762 ac_delim='%!_!# '
15763 for ac_last_try in false false false false false :; do
15764 . ./conf$$subs.sh ||
15765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15766
15767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15768 if test $ac_delim_n = $ac_delim_num; then
15769 break
15770 elif $ac_last_try; then
15771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15772 else
15773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15774 fi
15775 done
15776 rm -f conf$$subs.sh
15777
15778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15779 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15780 _ACEOF
15781 sed -n '
15782 h
15783 s/^/S["/; s/!.*/"]=/
15784 p
15785 g
15786 s/^[^!]*!//
15787 :repl
15788 t repl
15789 s/'"$ac_delim"'$//
15790 t delim
15791 :nl
15792 h
15793 s/\(.\{148\}\)..*/\1/
15794 t more1
15795 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15796 p
15797 n
15798 b repl
15799 :more1
15800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15801 p
15802 g
15803 s/.\{148\}//
15804 t nl
15805 :delim
15806 h
15807 s/\(.\{148\}\)..*/\1/
15808 t more2
15809 s/["\\]/\\&/g; s/^/"/; s/$/"/
15810 p
15811 b
15812 :more2
15813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15814 p
15815 g
15816 s/.\{148\}//
15817 t delim
15818 ' <conf$$subs.awk | sed '
15819 /^[^""]/{
15820 N
15821 s/\n//
15822 }
15823 ' >>$CONFIG_STATUS || ac_write_fail=1
15824 rm -f conf$$subs.awk
15825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 _ACAWK
15827 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15828 for (key in S) S_is_set[key] = 1
15829 FS = "\a"
15830
15831 }
15832 {
15833 line = $ 0
15834 nfields = split(line, field, "@")
15835 substed = 0
15836 len = length(field[1])
15837 for (i = 2; i < nfields; i++) {
15838 key = field[i]
15839 keylen = length(key)
15840 if (S_is_set[key]) {
15841 value = S[key]
15842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15843 len += length(value) + length(field[++i])
15844 substed = 1
15845 } else
15846 len += 1 + keylen
15847 }
15848
15849 print line
15850 }
15851
15852 _ACAWK
15853 _ACEOF
15854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15857 else
15858 cat
15859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15861 _ACEOF
15862
15863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15865 # trailing colons and then remove the whole line if VPATH becomes empty
15866 # (actually we leave an empty line to preserve line numbers).
15867 if test "x$srcdir" = x.; then
15868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15869 h
15870 s///
15871 s/^/:/
15872 s/[ ]*$/:/
15873 s/:\$(srcdir):/:/g
15874 s/:\${srcdir}:/:/g
15875 s/:@srcdir@:/:/g
15876 s/^:*//
15877 s/:*$//
15878 x
15879 s/\(=[ ]*\).*/\1/
15880 G
15881 s/\n//
15882 s/^[^=]*=[ ]*$//
15883 }'
15884 fi
15885
15886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15887 fi # test -n "$CONFIG_FILES"
15888
15889 # Set up the scripts for CONFIG_HEADERS section.
15890 # No need to generate them if there are no CONFIG_HEADERS.
15891 # This happens for instance with `./config.status Makefile'.
15892 if test -n "$CONFIG_HEADERS"; then
15893 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15894 BEGIN {
15895 _ACEOF
15896
15897 # Transform confdefs.h into an awk script `defines.awk', embedded as
15898 # here-document in config.status, that substitutes the proper values into
15899 # config.h.in to produce config.h.
15900
15901 # Create a delimiter string that does not exist in confdefs.h, to ease
15902 # handling of long lines.
15903 ac_delim='%!_!# '
15904 for ac_last_try in false false :; do
15905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15906 if test -z "$ac_tt"; then
15907 break
15908 elif $ac_last_try; then
15909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15910 else
15911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15912 fi
15913 done
15914
15915 # For the awk script, D is an array of macro values keyed by name,
15916 # likewise P contains macro parameters if any. Preserve backslash
15917 # newline sequences.
15918
15919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15920 sed -n '
15921 s/.\{148\}/&'"$ac_delim"'/g
15922 t rset
15923 :rset
15924 s/^[ ]*#[ ]*define[ ][ ]*/ /
15925 t def
15926 d
15927 :def
15928 s/\\$//
15929 t bsnl
15930 s/["\\]/\\&/g
15931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15932 D["\1"]=" \3"/p
15933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15934 d
15935 :bsnl
15936 s/["\\]/\\&/g
15937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15938 D["\1"]=" \3\\\\\\n"\\/p
15939 t cont
15940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15941 t cont
15942 d
15943 :cont
15944 n
15945 s/.\{148\}/&'"$ac_delim"'/g
15946 t clear
15947 :clear
15948 s/\\$//
15949 t bsnlc
15950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15951 d
15952 :bsnlc
15953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15954 b cont
15955 ' <confdefs.h | sed '
15956 s/'"$ac_delim"'/"\\\
15957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15958
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 for (key in D) D_is_set[key] = 1
15961 FS = "\a"
15962 }
15963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15964 line = \$ 0
15965 split(line, arg, " ")
15966 if (arg[1] == "#") {
15967 defundef = arg[2]
15968 mac1 = arg[3]
15969 } else {
15970 defundef = substr(arg[1], 2)
15971 mac1 = arg[2]
15972 }
15973 split(mac1, mac2, "(") #)
15974 macro = mac2[1]
15975 prefix = substr(line, 1, index(line, defundef) - 1)
15976 if (D_is_set[macro]) {
15977 # Preserve the white space surrounding the "#".
15978 print prefix "define", macro P[macro] D[macro]
15979 next
15980 } else {
15981 # Replace #undef with comments. This is necessary, for example,
15982 # in the case of _POSIX_SOURCE, which is predefined and required
15983 # on some systems where configure will not decide to define it.
15984 if (defundef == "undef") {
15985 print "/*", prefix defundef, macro, "*/"
15986 next
15987 }
15988 }
15989 }
15990 { print }
15991 _ACAWK
15992 _ACEOF
15993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15995 fi # test -n "$CONFIG_HEADERS"
15996
15997
15998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15999 shift
16000 for ac_tag
16001 do
16002 case $ac_tag in
16003 :[FHLC]) ac_mode=$ac_tag; continue;;
16004 esac
16005 case $ac_mode$ac_tag in
16006 :[FHL]*:*);;
16007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16008 :[FH]-) ac_tag=-:-;;
16009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16010 esac
16011 ac_save_IFS=$IFS
16012 IFS=:
16013 set x $ac_tag
16014 IFS=$ac_save_IFS
16015 shift
16016 ac_file=$1
16017 shift
16018
16019 case $ac_mode in
16020 :L) ac_source=$1;;
16021 :[FH])
16022 ac_file_inputs=
16023 for ac_f
16024 do
16025 case $ac_f in
16026 -) ac_f="$ac_tmp/stdin";;
16027 *) # Look for the file first in the build tree, then in the source tree
16028 # (if the path is not absolute). The absolute path cannot be DOS-style,
16029 # because $ac_f cannot contain `:'.
16030 test -f "$ac_f" ||
16031 case $ac_f in
16032 [\\/$]*) false;;
16033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16034 esac ||
16035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16036 esac
16037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16038 as_fn_append ac_file_inputs " '$ac_f'"
16039 done
16040
16041 # Let's still pretend it is `configure' which instantiates (i.e., don't
16042 # use $as_me), people would be surprised to read:
16043 # /* config.h. Generated by config.status. */
16044 configure_input='Generated from '`
16045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16046 `' by configure.'
16047 if test x"$ac_file" != x-; then
16048 configure_input="$ac_file. $configure_input"
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16050 $as_echo "$as_me: creating $ac_file" >&6;}
16051 fi
16052 # Neutralize special characters interpreted by sed in replacement strings.
16053 case $configure_input in #(
16054 *\&* | *\|* | *\\* )
16055 ac_sed_conf_input=`$as_echo "$configure_input" |
16056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16057 *) ac_sed_conf_input=$configure_input;;
16058 esac
16059
16060 case $ac_tag in
16061 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16063 esac
16064 ;;
16065 esac
16066
16067 ac_dir=`$as_dirname -- "$ac_file" ||
16068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069 X"$ac_file" : 'X\(//\)[^/]' \| \
16070 X"$ac_file" : 'X\(//\)$' \| \
16071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16072 $as_echo X"$ac_file" |
16073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\(\/\/\)[^/].*/{
16078 s//\1/
16079 q
16080 }
16081 /^X\(\/\/\)$/{
16082 s//\1/
16083 q
16084 }
16085 /^X\(\/\).*/{
16086 s//\1/
16087 q
16088 }
16089 s/.*/./; q'`
16090 as_dir="$ac_dir"; as_fn_mkdir_p
16091 ac_builddir=.
16092
16093 case "$ac_dir" in
16094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16095 *)
16096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16097 # A ".." for each directory in $ac_dir_suffix.
16098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16099 case $ac_top_builddir_sub in
16100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16102 esac ;;
16103 esac
16104 ac_abs_top_builddir=$ac_pwd
16105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16106 # for backward compatibility:
16107 ac_top_builddir=$ac_top_build_prefix
16108
16109 case $srcdir in
16110 .) # We are building in place.
16111 ac_srcdir=.
16112 ac_top_srcdir=$ac_top_builddir_sub
16113 ac_abs_top_srcdir=$ac_pwd ;;
16114 [\\/]* | ?:[\\/]* ) # Absolute name.
16115 ac_srcdir=$srcdir$ac_dir_suffix;
16116 ac_top_srcdir=$srcdir
16117 ac_abs_top_srcdir=$srcdir ;;
16118 *) # Relative name.
16119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16120 ac_top_srcdir=$ac_top_build_prefix$srcdir
16121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16122 esac
16123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16124
16125
16126 case $ac_mode in
16127 :F)
16128 #
16129 # CONFIG_FILE
16130 #
16131
16132 case $INSTALL in
16133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16135 esac
16136 ac_MKDIR_P=$MKDIR_P
16137 case $MKDIR_P in
16138 [\\/$]* | ?:[\\/]* ) ;;
16139 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16140 esac
16141 _ACEOF
16142
16143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16144 # If the template does not know about datarootdir, expand it.
16145 # FIXME: This hack should be removed a few years after 2.60.
16146 ac_datarootdir_hack=; ac_datarootdir_seen=
16147 ac_sed_dataroot='
16148 /datarootdir/ {
16149 p
16150 q
16151 }
16152 /@datadir@/p
16153 /@docdir@/p
16154 /@infodir@/p
16155 /@localedir@/p
16156 /@mandir@/p'
16157 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16158 *datarootdir*) ac_datarootdir_seen=yes;;
16159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16161 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16162 _ACEOF
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 ac_datarootdir_hack='
16165 s&@datadir@&$datadir&g
16166 s&@docdir@&$docdir&g
16167 s&@infodir@&$infodir&g
16168 s&@localedir@&$localedir&g
16169 s&@mandir@&$mandir&g
16170 s&\\\${datarootdir}&$datarootdir&g' ;;
16171 esac
16172 _ACEOF
16173
16174 # Neutralize VPATH when `$srcdir' = `.'.
16175 # Shell code in configure.ac might set extrasub.
16176 # FIXME: do we really want to maintain this feature?
16177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178 ac_sed_extra="$ac_vpsub
16179 $extrasub
16180 _ACEOF
16181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182 :t
16183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16184 s|@configure_input@|$ac_sed_conf_input|;t t
16185 s&@top_builddir@&$ac_top_builddir_sub&;t t
16186 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16187 s&@srcdir@&$ac_srcdir&;t t
16188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16189 s&@top_srcdir@&$ac_top_srcdir&;t t
16190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16191 s&@builddir@&$ac_builddir&;t t
16192 s&@abs_builddir@&$ac_abs_builddir&;t t
16193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16194 s&@INSTALL@&$ac_INSTALL&;t t
16195 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16196 $ac_datarootdir_hack
16197 "
16198 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16199 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16200
16201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16202 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16204 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16206 which seems to be undefined. Please make sure it is defined" >&5
16207 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16208 which seems to be undefined. Please make sure it is defined" >&2;}
16209
16210 rm -f "$ac_tmp/stdin"
16211 case $ac_file in
16212 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16213 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16214 esac \
16215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16216 ;;
16217 :H)
16218 #
16219 # CONFIG_HEADER
16220 #
16221 if test x"$ac_file" != x-; then
16222 {
16223 $as_echo "/* $configure_input */" \
16224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16225 } >"$ac_tmp/config.h" \
16226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16227 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16229 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16230 else
16231 rm -f "$ac_file"
16232 mv "$ac_tmp/config.h" "$ac_file" \
16233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16234 fi
16235 else
16236 $as_echo "/* $configure_input */" \
16237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16238 || as_fn_error $? "could not create -" "$LINENO" 5
16239 fi
16240 # Compute "$ac_file"'s index in $config_headers.
16241 _am_arg="$ac_file"
16242 _am_stamp_count=1
16243 for _am_header in $config_headers :; do
16244 case $_am_header in
16245 $_am_arg | $_am_arg:* )
16246 break ;;
16247 * )
16248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16249 esac
16250 done
16251 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16252 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16253 X"$_am_arg" : 'X\(//\)[^/]' \| \
16254 X"$_am_arg" : 'X\(//\)$' \| \
16255 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16256 $as_echo X"$_am_arg" |
16257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16258 s//\1/
16259 q
16260 }
16261 /^X\(\/\/\)[^/].*/{
16262 s//\1/
16263 q
16264 }
16265 /^X\(\/\/\)$/{
16266 s//\1/
16267 q
16268 }
16269 /^X\(\/\).*/{
16270 s//\1/
16271 q
16272 }
16273 s/.*/./; q'`/stamp-h$_am_stamp_count
16274 ;;
16275
16276 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16277 $as_echo "$as_me: executing $ac_file commands" >&6;}
16278 ;;
16279 esac
16280
16281
16282 case $ac_file$ac_mode in
16283 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16284 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16285 # are listed without --file. Let's play safe and only enable the eval
16286 # if we detect the quoting.
16287 case $CONFIG_FILES in
16288 *\'*) eval set x "$CONFIG_FILES" ;;
16289 *) set x $CONFIG_FILES ;;
16290 esac
16291 shift
16292 for mf
16293 do
16294 # Strip MF so we end up with the name of the file.
16295 mf=`echo "$mf" | sed -e 's/:.*$//'`
16296 # Check whether this is an Automake generated Makefile or not.
16297 # We used to match only the files named `Makefile.in', but
16298 # some people rename them; so instead we look at the file content.
16299 # Grep'ing the first line is not enough: some people post-process
16300 # each Makefile.in and add a new line on top of each file to say so.
16301 # Grep'ing the whole file is not good either: AIX grep has a line
16302 # limit of 2048, but all sed's we know have understand at least 4000.
16303 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16304 dirpart=`$as_dirname -- "$mf" ||
16305 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16306 X"$mf" : 'X\(//\)[^/]' \| \
16307 X"$mf" : 'X\(//\)$' \| \
16308 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16309 $as_echo X"$mf" |
16310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16311 s//\1/
16312 q
16313 }
16314 /^X\(\/\/\)[^/].*/{
16315 s//\1/
16316 q
16317 }
16318 /^X\(\/\/\)$/{
16319 s//\1/
16320 q
16321 }
16322 /^X\(\/\).*/{
16323 s//\1/
16324 q
16325 }
16326 s/.*/./; q'`
16327 else
16328 continue
16329 fi
16330 # Extract the definition of DEPDIR, am__include, and am__quote
16331 # from the Makefile without running `make'.
16332 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16333 test -z "$DEPDIR" && continue
16334 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16335 test -z "am__include" && continue
16336 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16337 # When using ansi2knr, U may be empty or an underscore; expand it
16338 U=`sed -n 's/^U = //p' < "$mf"`
16339 # Find all dependency output files, they are included files with
16340 # $(DEPDIR) in their names. We invoke sed twice because it is the
16341 # simplest approach to changing $(DEPDIR) to its actual value in the
16342 # expansion.
16343 for file in `sed -n "
16344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16346 # Make sure the directory exists.
16347 test -f "$dirpart/$file" && continue
16348 fdir=`$as_dirname -- "$file" ||
16349 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16350 X"$file" : 'X\(//\)[^/]' \| \
16351 X"$file" : 'X\(//\)$' \| \
16352 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16353 $as_echo X"$file" |
16354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16355 s//\1/
16356 q
16357 }
16358 /^X\(\/\/\)[^/].*/{
16359 s//\1/
16360 q
16361 }
16362 /^X\(\/\/\)$/{
16363 s//\1/
16364 q
16365 }
16366 /^X\(\/\).*/{
16367 s//\1/
16368 q
16369 }
16370 s/.*/./; q'`
16371 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16372 # echo "creating $dirpart/$file"
16373 echo '# dummy' > "$dirpart/$file"
16374 done
16375 done
16376 }
16377 ;;
16378 "libtool":C)
16379
16380 # See if we are running on zsh, and set the options which allow our
16381 # commands through without removal of \ escapes.
16382 if test -n "${ZSH_VERSION+set}" ; then
16383 setopt NO_GLOB_SUBST
16384 fi
16385
16386 cfgfile="${ofile}T"
16387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16388 $RM "$cfgfile"
16389
16390 cat <<_LT_EOF >> "$cfgfile"
16391 #! $SHELL
16392
16393 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16394 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16396 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16397 #
16398 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16399 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16400 # Inc.
16401 # Written by Gordon Matzigkeit, 1996
16402 #
16403 # This file is part of GNU Libtool.
16404 #
16405 # GNU Libtool is free software; you can redistribute it and/or
16406 # modify it under the terms of the GNU General Public License as
16407 # published by the Free Software Foundation; either version 2 of
16408 # the License, or (at your option) any later version.
16409 #
16410 # As a special exception to the GNU General Public License,
16411 # if you distribute this file as part of a program or library that
16412 # is built using GNU Libtool, you may include this file under the
16413 # same distribution terms that you use for the rest of that program.
16414 #
16415 # GNU Libtool is distributed in the hope that it will be useful,
16416 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16417 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16418 # GNU General Public License for more details.
16419 #
16420 # You should have received a copy of the GNU General Public License
16421 # along with GNU Libtool; see the file COPYING. If not, a copy
16422 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16423 # obtained by writing to the Free Software Foundation, Inc.,
16424 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16425
16426
16427 # The names of the tagged configurations supported by this script.
16428 available_tags=""
16429
16430 # ### BEGIN LIBTOOL CONFIG
16431
16432 # Whether or not to build static libraries.
16433 build_old_libs=$enable_static
16434
16435 # Whether or not to build shared libraries.
16436 build_libtool_libs=$enable_shared
16437
16438 # Which release of libtool.m4 was used?
16439 macro_version=$macro_version
16440 macro_revision=$macro_revision
16441
16442 # What type of objects to build.
16443 pic_mode=$pic_mode
16444
16445 # Whether or not to optimize for fast installation.
16446 fast_install=$enable_fast_install
16447
16448 # Shell to use when invoking shell scripts.
16449 SHELL=$lt_SHELL
16450
16451 # An echo program that protects backslashes.
16452 ECHO=$lt_ECHO
16453
16454 # The host system.
16455 host_alias=$host_alias
16456 host=$host
16457 host_os=$host_os
16458
16459 # The build system.
16460 build_alias=$build_alias
16461 build=$build
16462 build_os=$build_os
16463
16464 # A sed program that does not truncate output.
16465 SED=$lt_SED
16466
16467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16468 Xsed="\$SED -e 1s/^X//"
16469
16470 # A grep program that handles long lines.
16471 GREP=$lt_GREP
16472
16473 # An ERE matcher.
16474 EGREP=$lt_EGREP
16475
16476 # A literal string matcher.
16477 FGREP=$lt_FGREP
16478
16479 # A BSD- or MS-compatible name lister.
16480 NM=$lt_NM
16481
16482 # Whether we need soft or hard links.
16483 LN_S=$lt_LN_S
16484
16485 # What is the maximum length of a command?
16486 max_cmd_len=$max_cmd_len
16487
16488 # Object file suffix (normally "o").
16489 objext=$ac_objext
16490
16491 # Executable file suffix (normally "").
16492 exeext=$exeext
16493
16494 # whether the shell understands "unset".
16495 lt_unset=$lt_unset
16496
16497 # turn spaces into newlines.
16498 SP2NL=$lt_lt_SP2NL
16499
16500 # turn newlines into spaces.
16501 NL2SP=$lt_lt_NL2SP
16502
16503 # convert \$build file names to \$host format.
16504 to_host_file_cmd=$lt_cv_to_host_file_cmd
16505
16506 # convert \$build files to toolchain format.
16507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16508
16509 # An object symbol dumper.
16510 OBJDUMP=$lt_OBJDUMP
16511
16512 # Method to check whether dependent libraries are shared objects.
16513 deplibs_check_method=$lt_deplibs_check_method
16514
16515 # Command to use when deplibs_check_method = "file_magic".
16516 file_magic_cmd=$lt_file_magic_cmd
16517
16518 # How to find potential files when deplibs_check_method = "file_magic".
16519 file_magic_glob=$lt_file_magic_glob
16520
16521 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16522 want_nocaseglob=$lt_want_nocaseglob
16523
16524 # DLL creation program.
16525 DLLTOOL=$lt_DLLTOOL
16526
16527 # Command to associate shared and link libraries.
16528 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16529
16530 # The archiver.
16531 AR=$lt_AR
16532
16533 # Flags to create an archive.
16534 AR_FLAGS=$lt_AR_FLAGS
16535
16536 # How to feed a file listing to the archiver.
16537 archiver_list_spec=$lt_archiver_list_spec
16538
16539 # A symbol stripping program.
16540 STRIP=$lt_STRIP
16541
16542 # Commands used to install an old-style archive.
16543 RANLIB=$lt_RANLIB
16544 old_postinstall_cmds=$lt_old_postinstall_cmds
16545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16546
16547 # Whether to use a lock for old archive extraction.
16548 lock_old_archive_extraction=$lock_old_archive_extraction
16549
16550 # A C compiler.
16551 LTCC=$lt_CC
16552
16553 # LTCC compiler flags.
16554 LTCFLAGS=$lt_CFLAGS
16555
16556 # Take the output of nm and produce a listing of raw symbols and C names.
16557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16558
16559 # Transform the output of nm in a proper C declaration.
16560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16561
16562 # Transform the output of nm in a C name address pair.
16563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16564
16565 # Transform the output of nm in a C name address pair when lib prefix is needed.
16566 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16567
16568 # Specify filename containing input files for \$NM.
16569 nm_file_list_spec=$lt_nm_file_list_spec
16570
16571 # The root where to search for dependent libraries,and in which our libraries should be installed.
16572 lt_sysroot=$lt_sysroot
16573
16574 # The name of the directory that contains temporary libtool files.
16575 objdir=$objdir
16576
16577 # Used to examine libraries when file_magic_cmd begins with "file".
16578 MAGIC_CMD=$MAGIC_CMD
16579
16580 # Must we lock files when doing compilation?
16581 need_locks=$lt_need_locks
16582
16583 # Manifest tool.
16584 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16585
16586 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16587 DSYMUTIL=$lt_DSYMUTIL
16588
16589 # Tool to change global to local symbols on Mac OS X.
16590 NMEDIT=$lt_NMEDIT
16591
16592 # Tool to manipulate fat objects and archives on Mac OS X.
16593 LIPO=$lt_LIPO
16594
16595 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16596 OTOOL=$lt_OTOOL
16597
16598 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16599 OTOOL64=$lt_OTOOL64
16600
16601 # Old archive suffix (normally "a").
16602 libext=$libext
16603
16604 # Shared library suffix (normally ".so").
16605 shrext_cmds=$lt_shrext_cmds
16606
16607 # The commands to extract the exported symbol list from a shared archive.
16608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16609
16610 # Variables whose values should be saved in libtool wrapper scripts and
16611 # restored at link time.
16612 variables_saved_for_relink=$lt_variables_saved_for_relink
16613
16614 # Do we need the "lib" prefix for modules?
16615 need_lib_prefix=$need_lib_prefix
16616
16617 # Do we need a version for libraries?
16618 need_version=$need_version
16619
16620 # Library versioning type.
16621 version_type=$version_type
16622
16623 # Shared library runtime path variable.
16624 runpath_var=$runpath_var
16625
16626 # Shared library path variable.
16627 shlibpath_var=$shlibpath_var
16628
16629 # Is shlibpath searched before the hard-coded library search path?
16630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16631
16632 # Format of library name prefix.
16633 libname_spec=$lt_libname_spec
16634
16635 # List of archive names. First name is the real one, the rest are links.
16636 # The last name is the one that the linker finds with -lNAME
16637 library_names_spec=$lt_library_names_spec
16638
16639 # The coded name of the library, if different from the real name.
16640 soname_spec=$lt_soname_spec
16641
16642 # Permission mode override for installation of shared libraries.
16643 install_override_mode=$lt_install_override_mode
16644
16645 # Command to use after installation of a shared archive.
16646 postinstall_cmds=$lt_postinstall_cmds
16647
16648 # Command to use after uninstallation of a shared archive.
16649 postuninstall_cmds=$lt_postuninstall_cmds
16650
16651 # Commands used to finish a libtool library installation in a directory.
16652 finish_cmds=$lt_finish_cmds
16653
16654 # As "finish_cmds", except a single script fragment to be evaled but
16655 # not shown.
16656 finish_eval=$lt_finish_eval
16657
16658 # Whether we should hardcode library paths into libraries.
16659 hardcode_into_libs=$hardcode_into_libs
16660
16661 # Compile-time system search path for libraries.
16662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16663
16664 # Run-time system search path for libraries.
16665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16666
16667 # Whether dlopen is supported.
16668 dlopen_support=$enable_dlopen
16669
16670 # Whether dlopen of programs is supported.
16671 dlopen_self=$enable_dlopen_self
16672
16673 # Whether dlopen of statically linked programs is supported.
16674 dlopen_self_static=$enable_dlopen_self_static
16675
16676 # Commands to strip libraries.
16677 old_striplib=$lt_old_striplib
16678 striplib=$lt_striplib
16679
16680
16681 # The linker used to build libraries.
16682 LD=$lt_LD
16683
16684 # How to create reloadable object files.
16685 reload_flag=$lt_reload_flag
16686 reload_cmds=$lt_reload_cmds
16687
16688 # Commands used to build an old-style archive.
16689 old_archive_cmds=$lt_old_archive_cmds
16690
16691 # A language specific compiler.
16692 CC=$lt_compiler
16693
16694 # Is the compiler the GNU compiler?
16695 with_gcc=$GCC
16696
16697 # Compiler flag to turn off builtin functions.
16698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16699
16700 # Additional compiler flags for building library objects.
16701 pic_flag=$lt_lt_prog_compiler_pic
16702
16703 # How to pass a linker flag through the compiler.
16704 wl=$lt_lt_prog_compiler_wl
16705
16706 # Compiler flag to prevent dynamic linking.
16707 link_static_flag=$lt_lt_prog_compiler_static
16708
16709 # Does compiler simultaneously support -c and -o options?
16710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16711
16712 # Whether or not to add -lc for building shared libraries.
16713 build_libtool_need_lc=$archive_cmds_need_lc
16714
16715 # Whether or not to disallow shared libs when runtime libs are static.
16716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16717
16718 # Compiler flag to allow reflexive dlopens.
16719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16720
16721 # Compiler flag to generate shared objects directly from archives.
16722 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16723
16724 # Whether the compiler copes with passing no objects directly.
16725 compiler_needs_object=$lt_compiler_needs_object
16726
16727 # Create an old-style archive from a shared archive.
16728 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16729
16730 # Create a temporary old-style archive to link instead of a shared archive.
16731 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16732
16733 # Commands used to build a shared archive.
16734 archive_cmds=$lt_archive_cmds
16735 archive_expsym_cmds=$lt_archive_expsym_cmds
16736
16737 # Commands used to build a loadable module if different from building
16738 # a shared archive.
16739 module_cmds=$lt_module_cmds
16740 module_expsym_cmds=$lt_module_expsym_cmds
16741
16742 # Whether we are building with GNU ld or not.
16743 with_gnu_ld=$lt_with_gnu_ld
16744
16745 # Flag that allows shared libraries with undefined symbols to be built.
16746 allow_undefined_flag=$lt_allow_undefined_flag
16747
16748 # Flag that enforces no undefined symbols.
16749 no_undefined_flag=$lt_no_undefined_flag
16750
16751 # Flag to hardcode \$libdir into a binary during linking.
16752 # This must work even if \$libdir does not exist
16753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16754
16755 # If ld is used when linking, flag to hardcode \$libdir into a binary
16756 # during linking. This must work even if \$libdir does not exist.
16757 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16758
16759 # Whether we need a single "-rpath" flag with a separated argument.
16760 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16761
16762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16763 # DIR into the resulting binary.
16764 hardcode_direct=$hardcode_direct
16765
16766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16767 # DIR into the resulting binary and the resulting library dependency is
16768 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16769 # library is relocated.
16770 hardcode_direct_absolute=$hardcode_direct_absolute
16771
16772 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16773 # into the resulting binary.
16774 hardcode_minus_L=$hardcode_minus_L
16775
16776 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16777 # into the resulting binary.
16778 hardcode_shlibpath_var=$hardcode_shlibpath_var
16779
16780 # Set to "yes" if building a shared library automatically hardcodes DIR
16781 # into the library and all subsequent libraries and executables linked
16782 # against it.
16783 hardcode_automatic=$hardcode_automatic
16784
16785 # Set to yes if linker adds runtime paths of dependent libraries
16786 # to runtime path list.
16787 inherit_rpath=$inherit_rpath
16788
16789 # Whether libtool must link a program against all its dependency libraries.
16790 link_all_deplibs=$link_all_deplibs
16791
16792 # Set to "yes" if exported symbols are required.
16793 always_export_symbols=$always_export_symbols
16794
16795 # The commands to list exported symbols.
16796 export_symbols_cmds=$lt_export_symbols_cmds
16797
16798 # Symbols that should not be listed in the preloaded symbols.
16799 exclude_expsyms=$lt_exclude_expsyms
16800
16801 # Symbols that must always be exported.
16802 include_expsyms=$lt_include_expsyms
16803
16804 # Commands necessary for linking programs (against libraries) with templates.
16805 prelink_cmds=$lt_prelink_cmds
16806
16807 # Commands necessary for finishing linking programs.
16808 postlink_cmds=$lt_postlink_cmds
16809
16810 # Specify filename containing input files.
16811 file_list_spec=$lt_file_list_spec
16812
16813 # How to hardcode a shared library path into an executable.
16814 hardcode_action=$hardcode_action
16815
16816 # ### END LIBTOOL CONFIG
16817
16818 _LT_EOF
16819
16820 case $host_os in
16821 aix3*)
16822 cat <<\_LT_EOF >> "$cfgfile"
16823 # AIX sometimes has problems with the GCC collect2 program. For some
16824 # reason, if we set the COLLECT_NAMES environment variable, the problems
16825 # vanish in a puff of smoke.
16826 if test "X${COLLECT_NAMES+set}" != Xset; then
16827 COLLECT_NAMES=
16828 export COLLECT_NAMES
16829 fi
16830 _LT_EOF
16831 ;;
16832 esac
16833
16834
16835 ltmain="$ac_aux_dir/ltmain.sh"
16836
16837
16838 # We use sed instead of cat because bash on DJGPP gets confused if
16839 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16840 # text mode, it properly converts lines to CR/LF. This bash problem
16841 # is reportedly fixed, but why not run on old versions too?
16842 sed '$q' "$ltmain" >> "$cfgfile" \
16843 || (rm -f "$cfgfile"; exit 1)
16844
16845 if test x"$xsi_shell" = xyes; then
16846 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16847 func_dirname ()\
16848 {\
16849 \ case ${1} in\
16850 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16851 \ * ) func_dirname_result="${3}" ;;\
16852 \ esac\
16853 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16854 && mv -f "$cfgfile.tmp" "$cfgfile" \
16855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16856 test 0 -eq $? || _lt_function_replace_fail=:
16857
16858
16859 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16860 func_basename ()\
16861 {\
16862 \ func_basename_result="${1##*/}"\
16863 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16864 && mv -f "$cfgfile.tmp" "$cfgfile" \
16865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16866 test 0 -eq $? || _lt_function_replace_fail=:
16867
16868
16869 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16870 func_dirname_and_basename ()\
16871 {\
16872 \ case ${1} in\
16873 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16874 \ * ) func_dirname_result="${3}" ;;\
16875 \ esac\
16876 \ func_basename_result="${1##*/}"\
16877 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16878 && mv -f "$cfgfile.tmp" "$cfgfile" \
16879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16880 test 0 -eq $? || _lt_function_replace_fail=:
16881
16882
16883 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16884 func_stripname ()\
16885 {\
16886 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16887 \ # positional parameters, so assign one to ordinary parameter first.\
16888 \ func_stripname_result=${3}\
16889 \ func_stripname_result=${func_stripname_result#"${1}"}\
16890 \ func_stripname_result=${func_stripname_result%"${2}"}\
16891 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16892 && mv -f "$cfgfile.tmp" "$cfgfile" \
16893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16894 test 0 -eq $? || _lt_function_replace_fail=:
16895
16896
16897 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16898 func_split_long_opt ()\
16899 {\
16900 \ func_split_long_opt_name=${1%%=*}\
16901 \ func_split_long_opt_arg=${1#*=}\
16902 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16903 && mv -f "$cfgfile.tmp" "$cfgfile" \
16904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16905 test 0 -eq $? || _lt_function_replace_fail=:
16906
16907
16908 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16909 func_split_short_opt ()\
16910 {\
16911 \ func_split_short_opt_arg=${1#??}\
16912 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16913 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16914 && mv -f "$cfgfile.tmp" "$cfgfile" \
16915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16916 test 0 -eq $? || _lt_function_replace_fail=:
16917
16918
16919 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16920 func_lo2o ()\
16921 {\
16922 \ case ${1} in\
16923 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16924 \ *) func_lo2o_result=${1} ;;\
16925 \ esac\
16926 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16927 && mv -f "$cfgfile.tmp" "$cfgfile" \
16928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16929 test 0 -eq $? || _lt_function_replace_fail=:
16930
16931
16932 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16933 func_xform ()\
16934 {\
16935 func_xform_result=${1%.*}.lo\
16936 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16937 && mv -f "$cfgfile.tmp" "$cfgfile" \
16938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16939 test 0 -eq $? || _lt_function_replace_fail=:
16940
16941
16942 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16943 func_arith ()\
16944 {\
16945 func_arith_result=$(( $* ))\
16946 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16947 && mv -f "$cfgfile.tmp" "$cfgfile" \
16948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16949 test 0 -eq $? || _lt_function_replace_fail=:
16950
16951
16952 sed -e '/^func_len ()$/,/^} # func_len /c\
16953 func_len ()\
16954 {\
16955 func_len_result=${#1}\
16956 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16957 && mv -f "$cfgfile.tmp" "$cfgfile" \
16958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16959 test 0 -eq $? || _lt_function_replace_fail=:
16960
16961 fi
16962
16963 if test x"$lt_shell_append" = xyes; then
16964 sed -e '/^func_append ()$/,/^} # func_append /c\
16965 func_append ()\
16966 {\
16967 eval "${1}+=\\${2}"\
16968 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16969 && mv -f "$cfgfile.tmp" "$cfgfile" \
16970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16971 test 0 -eq $? || _lt_function_replace_fail=:
16972
16973
16974 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16975 func_append_quoted ()\
16976 {\
16977 \ func_quote_for_eval "${2}"\
16978 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16979 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16980 && mv -f "$cfgfile.tmp" "$cfgfile" \
16981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16982 test 0 -eq $? || _lt_function_replace_fail=:
16983
16984
16985 # Save a `func_append' function call where possible by direct use of '+='
16986 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16987 && mv -f "$cfgfile.tmp" "$cfgfile" \
16988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16989 test 0 -eq $? || _lt_function_replace_fail=:
16990 else
16991 # Save a `func_append' function call even when '+=' is not available
16992 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16993 && mv -f "$cfgfile.tmp" "$cfgfile" \
16994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16995 test 0 -eq $? || _lt_function_replace_fail=:
16996 fi
16997
16998 if test x"$_lt_function_replace_fail" = x":"; then
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17000 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17001 fi
17002
17003
17004 mv -f "$cfgfile" "$ofile" ||
17005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17006 chmod +x "$ofile"
17007
17008 ;;
17009 "include/librb-config.h":C)
17010 outfile=include/librb-config.h.tmp
17011 cat > $outfile <<\_______EOF
17012 /*
17013 * librb-config.h: libratbox config file. Please modify configure.ac
17014 */
17015
17016 #ifndef __LIBRB_CONFIG_H
17017 #define __LIBRB_CONFIG_H
17018
17019 _______EOF
17020
17021 if test "x$rb_have_ipv6" = "xyes"; then
17022 echo "#define RB_IPV6 1" >> $outfile
17023 fi
17024
17025 if test "x$rb_windows_h" = "xyes"; then
17026 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
17027 echo '#include <windows.h>' >> $outfile
17028 echo '#include <winsock2.h>' >> $outfile
17029 echo '#include <iphlpapi.h>' >> $outfile
17030 fi
17031
17032 if test "x$rb_alloca_h" = "xyes"; then
17033 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17034 fi
17035
17036 if test "x$rb_header_stdc" = "xyes"; then
17037 echo '#include <stdlib.h>' >> $outfile
17038 echo '#include <stddef.h>' >> $outfile
17039 elif test "x$rb_header_stdlib" = "xyes"; then
17040 echo '#include <stdlib.h>' >> $outfile
17041 fi
17042
17043 if test "x$rb_header_string_h" = "xyes"; then
17044 echo '#include <string.h>' >> $outfile
17045 fi
17046
17047 if test "x$rb_stdint_h" = "xyes"; then
17048 echo '#include <stdint.h>' >> $outfile
17049 fi
17050
17051 if test "x$rb_inttypes_h" = "xyes"; then
17052 echo '#include <inttypes.h>' >> $outfile
17053 fi
17054
17055 if test "x$rb_sys_types_h" = "xyes"; then
17056 echo '#include <sys/types.h>' >> $outfile
17057 fi
17058 if test "x$rb_sys_time_h" = "xyes"; then
17059 echo '#include <sys/time.h>' >> $outfile
17060 fi
17061 if test "x$rb_sys_stat_h" = "xyes"; then
17062 echo '#include <sys/stat.h>' >> $outfile
17063 fi
17064 if test "x$rb_time_h" = "xyes"; then
17065 echo '#include <time.h>' >> $outfile
17066 fi
17067
17068 if test "x$rb_sys_socket_h" = "xyes"; then
17069 echo '#include <sys/socket.h>' >> $outfile
17070 fi
17071
17072 if test "x$rb_netinet_in_h" = "xyes"; then
17073 echo '#include <netinet/in.h>' >> $outfile
17074 fi
17075
17076 if test "x$rb_arpa_inet_h" = "xyes"; then
17077 echo '#include <arpa/inet.h>' >> $outfile
17078 fi
17079
17080 if test "x$rb_unistd_h" = "xyes"; then
17081 echo '#include <unistd.h>' >> $outfile
17082 fi
17083
17084 if test "x$rb_crypt_h" = "xyes"; then
17085 echo '#include <crypt.h>' >> $outfile
17086 fi
17087
17088 if test "x$rb_errno_h" = "xyes"; then
17089 echo '#include <errno.h>' >> $outfile
17090 fi
17091
17092 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17093
17094
17095 if test "x$rb_sockaddr_sa_len" = "xyes"; then
17096 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17097 fi
17098
17099 if test "x$rb_sockaddr_storage" = "xyes"; then
17100 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17101 else
17102 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
17103 fi
17104
17105 cat >> $outfile <<\_______EOF
17106 #endif /* __LIBRB_CONFIG_H */
17107 _______EOF
17108
17109 if cmp -s $outfile include/librb-config.h; then
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
17111 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
17112 ${rb_rm} -f $outfile
17113 else
17114 ${rb_mv} $outfile include/librb-config.h
17115 fi
17116
17117 ;;
17118
17119 esac
17120 done # for ac_tag
17121
17122
17123 as_fn_exit 0
17124 _ACEOF
17125 ac_clean_files=$ac_clean_files_save
17126
17127 test $ac_write_fail = 0 ||
17128 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17129
17130
17131 # configure is writing to config.log, and then calls config.status.
17132 # config.status does its own redirection, appending to config.log.
17133 # Unfortunately, on DOS this fails, as config.log is still kept open
17134 # by configure, so config.status won't be able to write to it; its
17135 # output is simply discarded. So we exec the FD to /dev/null,
17136 # effectively closing config.log, so it can be properly (re)opened and
17137 # appended to by config.status. When coming back to configure, we
17138 # need to make the FD available again.
17139 if test "$no_create" != yes; then
17140 ac_cs_success=:
17141 ac_config_status_args=
17142 test "$silent" = yes &&
17143 ac_config_status_args="$ac_config_status_args --quiet"
17144 exec 5>/dev/null
17145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17146 exec 5>>config.log
17147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17148 # would make configure fail if this is the last instruction.
17149 $ac_cs_success || as_fn_exit 1
17150 fi
17151 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17153 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17154 fi
17155
17156
17157
17158 echo
17159 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17160 echo
17161
17162 echo "Installing into: $prefix"
17163
17164 echo "IPv6 support ................... $have_v6"
17165 echo "Assert debugging ............... $assert"
17166 echo "Block allocator ................ $balloc"
17167 echo "SSL Type........................ $SSL_TYPE"
17168 echo
17169