Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / libevent / configure
blob2baeccca88a59e905d66a0a71477c10f19c76753
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
252 exit 1
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
270 { eval $1=; unset $1;}
272 as_unset=as_fn_unset
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
279 return $1
280 } # as_fn_set_status
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
323 /^X\(\/\/\)$/{
324 s//\1/
327 /^X\(\/\).*/{
328 s//\1/
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
348 eval $1+=\$2
350 else
351 as_fn_append ()
353 eval $1=\$$1\$2
355 fi # as_fn_append
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
365 as_val=$(( $* ))
367 else
368 as_fn_arith ()
370 as_val=`expr "$@" || test $? -eq 1`
372 fi # as_fn_arith
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
419 /^X\/\(\/\/\)$/{
420 s//\1/
423 /^X\/\(\/\).*/{
424 s//\1/
427 s/.*/./; q'`
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
502 else
503 as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556 # Initializations.
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
617 LIBEVENT_GC_SECTIONS
618 OPENSSL_FALSE
619 OPENSSL_TRUE
620 PTHREADS_FALSE
621 PTHREADS_TRUE
622 PTHREAD_CFLAGS
623 PTHREAD_LIBS
624 PTHREAD_CC
625 acx_pthread_config
626 SIGNAL_SUPPORT_FALSE
627 SIGNAL_SUPPORT_TRUE
628 EVPORT_BACKEND_FALSE
629 EVPORT_BACKEND_TRUE
630 EPOLL_BACKEND_FALSE
631 EPOLL_BACKEND_TRUE
632 LIBOBJS
633 KQUEUE_BACKEND_FALSE
634 KQUEUE_BACKEND_TRUE
635 DEVPOLL_BACKEND_FALSE
636 DEVPOLL_BACKEND_TRUE
637 POLL_BACKEND_FALSE
638 POLL_BACKEND_TRUE
639 SELECT_BACKEND_FALSE
640 SELECT_BACKEND_TRUE
641 BUILD_WITH_NO_UNDEFINED_FALSE
642 BUILD_WITH_NO_UNDEFINED_TRUE
643 BUILD_CYGWIN_FALSE
644 BUILD_CYGWIN_TRUE
645 BUILD_WIN32_FALSE
646 BUILD_WIN32_TRUE
647 OPENSSL_LIBS
648 OPENSSL_LIBADD
649 EV_LIB_GDI
650 EV_LIB_WS32
651 ZLIB_REGRESS_FALSE
652 ZLIB_REGRESS_TRUE
653 ZLIB_LIBS
654 BUILD_REGRESS_FALSE
655 BUILD_REGRESS_TRUE
656 LIBTOOL_DEPS
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
666 DLLTOOL
667 OBJDUMP
669 ac_ct_DUMPBIN
670 DUMPBIN
672 FGREP
673 LIBTOOL
674 EGREP
675 GREP
677 LN_S
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_dependency_tracking
769 enable_gcc_warnings
770 enable_thread_support
771 enable_malloc_replacement
772 enable_openssl
773 enable_debug_mode
774 enable_libevent_install
775 enable_libevent_regress
776 enable_function_sections
777 enable_shared
778 enable_static
779 with_pic
780 enable_fast_install
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP'
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
844 ac_prev=
845 ac_dashdash=
846 for ac_option
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
865 ac_dashdash=yes ;;
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
884 --config-cache | -C)
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 esac
1202 done
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1250 If a cross compiler is detected then cross compile mode will be used" >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1288 /^X\(\/\/\)$/{
1289 s//\1/
1292 /^X\(\/\).*/{
1293 s//\1/
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1301 else
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures this package to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389 _ACEOF
1391 cat <<\_ACEOF
1393 Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398 System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 _ACEOF
1404 if test -n "$ac_init_help"; then
1406 cat <<\_ACEOF
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-gcc-warnings enable verbose warnings with GCC
1415 --disable-thread-support
1416 disable support for threading
1417 --disable-malloc-replacement
1418 disable support for replacing the memory mgt
1419 functions
1420 --disable-openssl disable support for openssl encryption
1421 --disable-debug-mode disable support for running in debug mode
1422 --disable-libevent-install, disable installation of libevent
1424 --disable-libevent-regress, skip regress in make check
1426 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1457 _ACEOF
1458 ac_status=$?
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 configure
1520 generated by GNU Autoconf 2.68
1522 Copyright (C) 2010 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1564 ac_retval=1
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1569 } # ac_fn_c_try_compile
1571 # ac_fn_c_try_cpp LINENO
1572 # ----------------------
1573 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_cpp ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_cpp conftest.$ac_ext"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } > conftest.i && {
1593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 }; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1601 ac_retval=1
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_cpp
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_link
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_compile
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_run
1727 # ac_fn_c_check_func LINENO FUNC VAR
1728 # ----------------------------------
1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1755 #undef $2
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 ();
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1772 main ()
1774 return $2 ();
1776 return 0;
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_func
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 eval "$3=\$ac_header_compiler"
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_header_mongrel
1881 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1882 # ---------------------------------------------
1883 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_decl ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 as_decl_name=`echo $2|sed 's/ *(.*//'`
1889 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1891 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1899 main ()
1901 #ifndef $as_decl_name
1902 #ifdef __cplusplus
1903 (void) $as_decl_use;
1904 #else
1905 (void) $as_decl_name;
1906 #endif
1907 #endif
1910 return 0;
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 } # ac_fn_c_check_decl
1927 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1928 # --------------------------------------------
1929 # Tries to find the compile-time value of EXPR in a program that includes
1930 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1931 # computed
1932 ac_fn_c_compute_int ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if test "$cross_compiling" = yes; then
1936 # Depending upon the size, compute the lo and hi bounds.
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1941 main ()
1943 static int test_array [1 - 2 * !(($2) >= 0)];
1944 test_array [0] = 0
1947 return 0;
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_lo=0 ac_mid=0
1952 while :; do
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 main ()
1959 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1960 test_array [0] = 0
1963 return 0;
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_hi=$ac_mid; break
1968 else
1969 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1970 if test $ac_lo -le $ac_mid; then
1971 ac_lo= ac_hi=
1972 break
1974 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 done
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 main ()
1985 static int test_array [1 - 2 * !(($2) < 0)];
1986 test_array [0] = 0
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_hi=-1 ac_mid=-1
1994 while :; do
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1999 main ()
2001 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2002 test_array [0] = 0
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_lo=$ac_mid; break
2010 else
2011 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2012 if test $ac_mid -le $ac_hi; then
2013 ac_lo= ac_hi=
2014 break
2016 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 done
2020 else
2021 ac_lo= ac_hi=
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 # Binary search between lo and hi bounds.
2027 while test "x$ac_lo" != "x$ac_hi"; do
2028 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2036 test_array [0] = 0
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_hi=$ac_mid
2044 else
2045 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 done
2049 case $ac_lo in #((
2050 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2051 '') ac_retval=1 ;;
2052 esac
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2057 static long int longval () { return $2; }
2058 static unsigned long int ulongval () { return $2; }
2059 #include <stdio.h>
2060 #include <stdlib.h>
2062 main ()
2065 FILE *f = fopen ("conftest.val", "w");
2066 if (! f)
2067 return 1;
2068 if (($2) < 0)
2070 long int i = longval ();
2071 if (i != ($2))
2072 return 1;
2073 fprintf (f, "%ld", i);
2075 else
2077 unsigned long int i = ulongval ();
2078 if (i != ($2))
2079 return 1;
2080 fprintf (f, "%lu", i);
2082 /* Do not output a trailing newline, as this causes \r\n confusion
2083 on some platforms. */
2084 return ferror (f) || fclose (f) != 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_run "$LINENO"; then :
2091 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2092 else
2093 ac_retval=1
2095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2096 conftest.$ac_objext conftest.beam conftest.$ac_ext
2097 rm -f conftest.val
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_c_compute_int
2105 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106 # -------------------------------------------
2107 # Tests whether TYPE exists after having included INCLUDES, setting cache
2108 # variable VAR accordingly.
2109 ac_fn_c_check_type ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 eval "$3=no"
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 if (sizeof ($2))
2125 return 0;
2127 return 0;
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 main ()
2137 if (sizeof (($2)))
2138 return 0;
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2145 else
2146 eval "$3=yes"
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } # ac_fn_c_check_type
2159 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2160 # ----------------------------------------------------
2161 # Tries to find if the field MEMBER exists in type AGGR, after including
2162 # INCLUDES, setting cache variable VAR accordingly.
2163 ac_fn_c_check_member ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2167 $as_echo_n "checking for $2.$3... " >&6; }
2168 if eval \${$4+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2175 main ()
2177 static $2 ac_aggr;
2178 if (ac_aggr.$3)
2179 return 0;
2181 return 0;
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 eval "$4=yes"
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2191 main ()
2193 static $2 ac_aggr;
2194 if (sizeof ac_aggr.$3)
2195 return 0;
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 eval "$4=yes"
2202 else
2203 eval "$4=no"
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 eval ac_res=\$$4
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_member
2215 cat >config.log <<_ACEOF
2216 This file contains any messages produced by compilers while
2217 running configure, to aid debugging if configure makes a mistake.
2219 It was created by $as_me, which was
2220 generated by GNU Autoconf 2.68. Invocation command line was
2222 $ $0 $@
2224 _ACEOF
2225 exec 5>>config.log
2227 cat <<_ASUNAME
2228 ## --------- ##
2229 ## Platform. ##
2230 ## --------- ##
2232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249 _ASUNAME
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 $as_echo "PATH: $as_dir"
2257 done
2258 IFS=$as_save_IFS
2260 } >&5
2262 cat >&5 <<_ACEOF
2265 ## ----------- ##
2266 ## Core tests. ##
2267 ## ----------- ##
2269 _ACEOF
2272 # Keep a trace of the command line.
2273 # Strip out --no-create and --no-recursion so they do not pile up.
2274 # Strip out --silent because we don't want to record it for future runs.
2275 # Also quote any args containing shell meta-characters.
2276 # Make two passes to allow for proper duplicate-argument suppression.
2277 ac_configure_args=
2278 ac_configure_args0=
2279 ac_configure_args1=
2280 ac_must_keep_next=false
2281 for ac_pass in 1 2
2283 for ac_arg
2285 case $ac_arg in
2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288 | -silent | --silent | --silen | --sile | --sil)
2289 continue ;;
2290 *\'*)
2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 esac
2293 case $ac_pass in
2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296 as_fn_append ac_configure_args1 " '$ac_arg'"
2297 if test $ac_must_keep_next = true; then
2298 ac_must_keep_next=false # Got value, back to normal.
2299 else
2300 case $ac_arg in
2301 *=* | --config-cache | -C | -disable-* | --disable-* \
2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304 | -with-* | --with-* | -without-* | --without-* | --x)
2305 case "$ac_configure_args0 " in
2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307 esac
2309 -* ) ac_must_keep_next=true ;;
2310 esac
2312 as_fn_append ac_configure_args " '$ac_arg'"
2314 esac
2315 done
2316 done
2317 { ac_configure_args0=; unset ac_configure_args0;}
2318 { ac_configure_args1=; unset ac_configure_args1;}
2320 # When interrupted or exit'd, cleanup temporary files, and complete
2321 # config.log. We remove comments because anyway the quotes in there
2322 # would cause problems or look ugly.
2323 # WARNING: Use '\'' to represent an apostrophe within the trap.
2324 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325 trap 'exit_status=$?
2326 # Save into config.log some information that might help in debugging.
2328 echo
2330 $as_echo "## ---------------- ##
2331 ## Cache variables. ##
2332 ## ---------------- ##"
2333 echo
2334 # The following way of writing the cache mishandles newlines in values,
2336 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in #(
2339 *${as_nl}*)
2340 case $ac_var in #(
2341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2343 esac
2344 case $ac_var in #(
2345 _ | IFS | as_nl) ;; #(
2346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2347 *) { eval $ac_var=; unset $ac_var;} ;;
2348 esac ;;
2349 esac
2350 done
2351 (set) 2>&1 |
2352 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2353 *${as_nl}ac_space=\ *)
2354 sed -n \
2355 "s/'\''/'\''\\\\'\'''\''/g;
2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2357 ;; #(
2359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361 esac |
2362 sort
2364 echo
2366 $as_echo "## ----------------- ##
2367 ## Output variables. ##
2368 ## ----------------- ##"
2369 echo
2370 for ac_var in $ac_subst_vars
2372 eval ac_val=\$$ac_var
2373 case $ac_val in
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 esac
2376 $as_echo "$ac_var='\''$ac_val'\''"
2377 done | sort
2378 echo
2380 if test -n "$ac_subst_files"; then
2381 $as_echo "## ------------------- ##
2382 ## File substitutions. ##
2383 ## ------------------- ##"
2384 echo
2385 for ac_var in $ac_subst_files
2387 eval ac_val=\$$ac_var
2388 case $ac_val in
2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390 esac
2391 $as_echo "$ac_var='\''$ac_val'\''"
2392 done | sort
2393 echo
2396 if test -s confdefs.h; then
2397 $as_echo "## ----------- ##
2398 ## confdefs.h. ##
2399 ## ----------- ##"
2400 echo
2401 cat confdefs.h
2402 echo
2404 test "$ac_signal" != 0 &&
2405 $as_echo "$as_me: caught signal $ac_signal"
2406 $as_echo "$as_me: exit $exit_status"
2407 } >&5
2408 rm -f core *.core core.conftest.* &&
2409 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2410 exit $exit_status
2412 for ac_signal in 1 2 13 15; do
2413 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2414 done
2415 ac_signal=0
2417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2418 rm -f -r conftest* confdefs.h
2420 $as_echo "/* confdefs.h */" > confdefs.h
2422 # Predefined preprocessor variables.
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_NAME "$PACKAGE_NAME"
2426 _ACEOF
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2430 _ACEOF
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2434 _ACEOF
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_STRING "$PACKAGE_STRING"
2438 _ACEOF
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2442 _ACEOF
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_URL "$PACKAGE_URL"
2446 _ACEOF
2449 # Let the site file select an alternate cache file if it wants to.
2450 # Prefer an explicitly selected file to automatically selected ones.
2451 ac_site_file1=NONE
2452 ac_site_file2=NONE
2453 if test -n "$CONFIG_SITE"; then
2454 # We do not want a PATH search for config.site.
2455 case $CONFIG_SITE in #((
2456 -*) ac_site_file1=./$CONFIG_SITE;;
2457 */*) ac_site_file1=$CONFIG_SITE;;
2458 *) ac_site_file1=./$CONFIG_SITE;;
2459 esac
2460 elif test "x$prefix" != xNONE; then
2461 ac_site_file1=$prefix/share/config.site
2462 ac_site_file2=$prefix/etc/config.site
2463 else
2464 ac_site_file1=$ac_default_prefix/share/config.site
2465 ac_site_file2=$ac_default_prefix/etc/config.site
2467 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469 test "x$ac_site_file" = xNONE && continue
2470 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2472 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2473 sed 's/^/| /' "$ac_site_file" >&5
2474 . "$ac_site_file" \
2475 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 as_fn_error $? "failed to load site script $ac_site_file
2478 See \`config.log' for more details" "$LINENO" 5; }
2480 done
2482 if test -r "$cache_file"; then
2483 # Some versions of bash will fail to source /dev/null (special files
2484 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2485 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2487 $as_echo "$as_me: loading cache $cache_file" >&6;}
2488 case $cache_file in
2489 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2490 *) . "./$cache_file";;
2491 esac
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2495 $as_echo "$as_me: creating cache $cache_file" >&6;}
2496 >$cache_file
2499 # Check that the precious variables saved in the cache have kept the same
2500 # value.
2501 ac_cache_corrupted=false
2502 for ac_var in $ac_precious_vars; do
2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504 eval ac_new_set=\$ac_env_${ac_var}_set
2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506 eval ac_new_val=\$ac_env_${ac_var}_value
2507 case $ac_old_set,$ac_new_set in
2508 set,)
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,set)
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,);;
2518 if test "x$ac_old_val" != "x$ac_new_val"; then
2519 # differences in whitespace do not lead to failure.
2520 ac_old_val_w=`echo x $ac_old_val`
2521 ac_new_val_w=`echo x $ac_new_val`
2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525 ac_cache_corrupted=:
2526 else
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529 eval $ac_var=\$ac_old_val
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2532 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2534 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2535 fi;;
2536 esac
2537 # Pass precious variables to config.status.
2538 if test "$ac_new_set" = set; then
2539 case $ac_new_val in
2540 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541 *) ac_arg=$ac_var=$ac_new_val ;;
2542 esac
2543 case " $ac_configure_args " in
2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2546 esac
2548 done
2549 if $ac_cache_corrupted; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2554 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556 ## -------------------- ##
2557 ## Main body of script. ##
2558 ## -------------------- ##
2560 ac_ext=c
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 am__api_version='1.11'
2572 ac_aux_dir=
2573 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2574 if test -f "$ac_dir/install-sh"; then
2575 ac_aux_dir=$ac_dir
2576 ac_install_sh="$ac_aux_dir/install-sh -c"
2577 break
2578 elif test -f "$ac_dir/install.sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install.sh -c"
2581 break
2582 elif test -f "$ac_dir/shtool"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/shtool install -c"
2585 break
2587 done
2588 if test -z "$ac_aux_dir"; then
2589 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592 # These three variables are undocumented and unsupported,
2593 # and are intended to be withdrawn in a future Autoconf release.
2594 # They can cause serious problems if a builder's source tree is in a directory
2595 # whose full name contains unusual characters.
2596 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2597 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2598 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601 # Find a good install program. We prefer a C program (faster),
2602 # so one script is as good as another. But avoid the broken or
2603 # incompatible versions:
2604 # SysV /etc/install, /usr/sbin/install
2605 # SunOS /usr/etc/install
2606 # IRIX /sbin/install
2607 # AIX /bin/install
2608 # AmigaOS /C/install, which installs bootblocks on floppy discs
2609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2612 # OS/2's system install, which has a completely different semantic
2613 # ./install, which can be erroneously created by make from ./install.sh.
2614 # Reject install programs that cannot install multiple files.
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2616 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2617 if test -z "$INSTALL"; then
2618 if ${ac_cv_path_install+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 # Account for people who put trailing slashes in PATH elements.
2627 case $as_dir/ in #((
2628 ./ | .// | /[cC]/* | \
2629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2630 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2631 /usr/ucb/* ) ;;
2633 # OSF1 and SCO ODT 3.0 have their own names for install.
2634 # Don't use installbsd from OSF since it installs stuff as root
2635 # by default.
2636 for ac_prog in ginstall scoinst install; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2639 if test $ac_prog = install &&
2640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641 # AIX install. It has an incompatible calling convention.
2643 elif test $ac_prog = install &&
2644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645 # program-specific install script used by HP pwplus--don't use.
2647 else
2648 rm -rf conftest.one conftest.two conftest.dir
2649 echo one > conftest.one
2650 echo two > conftest.two
2651 mkdir conftest.dir
2652 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2653 test -s conftest.one && test -s conftest.two &&
2654 test -s conftest.dir/conftest.one &&
2655 test -s conftest.dir/conftest.two
2656 then
2657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2658 break 3
2662 done
2663 done
2665 esac
2667 done
2668 IFS=$as_save_IFS
2670 rm -rf conftest.one conftest.two conftest.dir
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2675 else
2676 # As a last resort, use the slow shell script. Don't cache a
2677 # value for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the value is a relative name.
2680 INSTALL=$ac_install_sh
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2684 $as_echo "$INSTALL" >&6; }
2686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687 # It thinks the first close brace ends the variable substitution.
2688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2695 $as_echo_n "checking whether build environment is sane... " >&6; }
2696 # Just in case
2697 sleep 1
2698 echo timestamp > conftest.file
2699 # Reject unsafe characters in $srcdir or the absolute working directory
2700 # name. Accept space and tab only in the latter.
2701 am_lf='
2703 case `pwd` in
2704 *[\\\"\#\$\&\'\`$am_lf]*)
2705 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2706 esac
2707 case $srcdir in
2708 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2709 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2710 esac
2712 # Do `set' in a subshell so we don't clobber the current shell's
2713 # arguments. Must try -L first in case configure is actually a
2714 # symlink; some systems play weird games with the mod time of symlinks
2715 # (eg FreeBSD returns the mod time of the symlink's containing
2716 # directory).
2717 if (
2718 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2719 if test "$*" = "X"; then
2720 # -L didn't work.
2721 set X `ls -t "$srcdir/configure" conftest.file`
2723 rm -f conftest.file
2724 if test "$*" != "X $srcdir/configure conftest.file" \
2725 && test "$*" != "X conftest.file $srcdir/configure"; then
2727 # If neither matched, then we have a broken ls. This can happen
2728 # if, for instance, CONFIG_SHELL is bash and it inherits a
2729 # broken ls alias from the environment. This has actually
2730 # happened. Such a system could not be considered "sane".
2731 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2732 alias in your environment" "$LINENO" 5
2735 test "$2" = conftest.file
2737 then
2738 # Ok.
2740 else
2741 as_fn_error $? "newly created file is older than distributed files!
2742 Check your system clock" "$LINENO" 5
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746 test "$program_prefix" != NONE &&
2747 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2748 # Use a double $ so make ignores it.
2749 test "$program_suffix" != NONE &&
2750 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2751 # Double any \ or $.
2752 # By default was `s,x,x', remove it if useless.
2753 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2754 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2756 # expand $ac_aux_dir to an absolute path
2757 am_aux_dir=`cd $ac_aux_dir && pwd`
2759 if test x"${MISSING+set}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2764 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2765 esac
2767 # Use eval to expand $SHELL
2768 if eval "$MISSING --run true"; then
2769 am_missing_run="$MISSING --run "
2770 else
2771 am_missing_run=
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2773 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2776 if test x"${install_sh}" != xset; then
2777 case $am_aux_dir in
2778 *\ * | *\ *)
2779 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2781 install_sh="\${SHELL} $am_aux_dir/install-sh"
2782 esac
2785 # Installed binaries are usually stripped using `strip' when the user
2786 # run `make install-strip'. However `strip' might not be the right
2787 # tool to use in cross-compilation environments, therefore Automake
2788 # will honor the `STRIP' environment variable to overrule this program.
2789 if test "$cross_compiling" != no; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_STRIP+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$STRIP"; then
2799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 STRIP=$ac_cv_prog_STRIP
2819 if test -n "$STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2821 $as_echo "$STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2829 if test -z "$ac_cv_prog_STRIP"; then
2830 ac_ct_STRIP=$STRIP
2831 # Extract the first word of "strip", so it can be a program name with args.
2832 set dummy strip; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$ac_ct_STRIP"; then
2839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_STRIP="strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2852 done
2853 done
2854 IFS=$as_save_IFS
2858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2859 if test -n "$ac_ct_STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2861 $as_echo "$ac_ct_STRIP" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2867 if test "x$ac_ct_STRIP" = x; then
2868 STRIP=":"
2869 else
2870 case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876 STRIP=$ac_ct_STRIP
2878 else
2879 STRIP="$ac_cv_prog_STRIP"
2883 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2886 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2887 if test -z "$MKDIR_P"; then
2888 if ${ac_cv_path_mkdir+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_prog in mkdir gmkdir; do
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2899 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2900 'mkdir (GNU coreutils) '* | \
2901 'mkdir (coreutils) '* | \
2902 'mkdir (fileutils) '4.1*)
2903 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2904 break 3;;
2905 esac
2906 done
2907 done
2908 done
2909 IFS=$as_save_IFS
2913 test -d ./--version && rmdir ./--version
2914 if test "${ac_cv_path_mkdir+set}" = set; then
2915 MKDIR_P="$ac_cv_path_mkdir -p"
2916 else
2917 # As a last resort, use the slow shell script. Don't cache a
2918 # value for MKDIR_P within a source directory, because that will
2919 # break other packages using the cache if that directory is
2920 # removed, or if the value is a relative name.
2921 MKDIR_P="$ac_install_sh -d"
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2925 $as_echo "$MKDIR_P" >&6; }
2927 mkdir_p="$MKDIR_P"
2928 case $mkdir_p in
2929 [\\/$]* | ?:[\\/]*) ;;
2930 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2931 esac
2933 for ac_prog in gawk mawk nawk awk
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_AWK+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$AWK"; then
2943 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_AWK="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2956 done
2957 done
2958 IFS=$as_save_IFS
2962 AWK=$ac_cv_prog_AWK
2963 if test -n "$AWK"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2965 $as_echo "$AWK" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2972 test -n "$AWK" && break
2973 done
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2977 set x ${MAKE-make}
2978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2979 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 cat >conftest.make <<\_ACEOF
2983 SHELL = /bin/sh
2984 all:
2985 @echo '@@@%%%=$(MAKE)=@@@%%%'
2986 _ACEOF
2987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2989 *@@@%%%=?*=@@@%%%*)
2990 eval ac_cv_prog_make_${ac_make}_set=yes;;
2992 eval ac_cv_prog_make_${ac_make}_set=no;;
2993 esac
2994 rm -f conftest.make
2996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
2999 SET_MAKE=
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 SET_MAKE="MAKE=${MAKE-make}"
3006 rm -rf .tst 2>/dev/null
3007 mkdir .tst 2>/dev/null
3008 if test -d .tst; then
3009 am__leading_dot=.
3010 else
3011 am__leading_dot=_
3013 rmdir .tst 2>/dev/null
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3029 else
3030 CYGPATH_W=echo
3035 # Define the identity of the package.
3036 PACKAGE=libevent
3037 VERSION=2.0.21-stable
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE "$PACKAGE"
3042 _ACEOF
3045 cat >>confdefs.h <<_ACEOF
3046 #define VERSION "$VERSION"
3047 _ACEOF
3049 # Some tools Automake needs.
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3065 # We need awk for the "check" target. The system "awk" is bad on
3066 # some platforms.
3067 # Always define AMTAR for backward compatibility. Yes, it's still used
3068 # in the wild :-( We should find a proper way to deprecate it ...
3069 AMTAR='$${TAR-tar}'
3071 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3077 ac_config_headers="$ac_config_headers config.h"
3080 $as_echo "#define NUMERIC_VERSION 0x02001500" >>confdefs.h
3083 if test "$prefix" = "NONE"; then
3084 prefix="/usr/local"
3087 # Make sure we can run config.sub.
3088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3089 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3092 $as_echo_n "checking build system type... " >&6; }
3093 if ${ac_cv_build+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 ac_build_alias=$build_alias
3097 test "x$ac_build_alias" = x &&
3098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3099 test "x$ac_build_alias" = x &&
3100 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3106 $as_echo "$ac_cv_build" >&6; }
3107 case $ac_cv_build in
3108 *-*-*) ;;
3109 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3110 esac
3111 build=$ac_cv_build
3112 ac_save_IFS=$IFS; IFS='-'
3113 set x $ac_cv_build
3114 shift
3115 build_cpu=$1
3116 build_vendor=$2
3117 shift; shift
3118 # Remember, the first character of IFS is used to create $*,
3119 # except with old shells:
3120 build_os=$*
3121 IFS=$ac_save_IFS
3122 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3126 $as_echo_n "checking host system type... " >&6; }
3127 if ${ac_cv_host+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test "x$host_alias" = x; then
3131 ac_cv_host=$ac_cv_build
3132 else
3133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3139 $as_echo "$ac_cv_host" >&6; }
3140 case $ac_cv_host in
3141 *-*-*) ;;
3142 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3143 esac
3144 host=$ac_cv_host
3145 ac_save_IFS=$IFS; IFS='-'
3146 set x $ac_cv_host
3147 shift
3148 host_cpu=$1
3149 host_vendor=$2
3150 shift; shift
3151 # Remember, the first character of IFS is used to create $*,
3152 # except with old shells:
3153 host_os=$*
3154 IFS=$ac_save_IFS
3155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3159 case "$host_os" in
3161 osf5*)
3162 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3164 esac
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$ac_cv_prog_CC"; then
3211 ac_ct_CC=$CC
3212 # Extract the first word of "gcc", so it can be a program name with args.
3213 set dummy gcc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_prog_ac_ct_CC="gcc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3233 done
3234 done
3235 IFS=$as_save_IFS
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3248 if test "x$ac_ct_CC" = x; then
3249 CC=""
3250 else
3251 case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257 CC=$ac_ct_CC
3259 else
3260 CC="$ac_cv_prog_CC"
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}cc; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_CC+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_CC="${ac_tool_prefix}cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 ac_prog_rejected=no
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected=yes
3325 continue
3327 ac_cv_prog_CC="cc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy $ac_cv_prog_CC
3338 shift
3339 if test $# != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3343 shift
3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3401 test -n "$CC" && break
3402 done
3404 if test -z "$CC"; then
3405 ac_ct_CC=$CC
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_CC="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$ac_ct_CC" && break
3446 done
3448 if test "x$ac_ct_CC" = x; then
3449 CC=""
3450 else
3451 case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457 CC=$ac_ct_CC
3464 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "no acceptable C compiler found in \$PATH
3467 See \`config.log' for more details" "$LINENO" 5; }
3469 # Provide some information about the compiler.
3470 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3471 set X $ac_compile
3472 ac_compiler=$2
3473 for ac_option in --version -v -V -qversion; do
3474 { { ac_try="$ac_compiler $ac_option >&5"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482 ac_status=$?
3483 if test -s conftest.err; then
3484 sed '10a\
3485 ... rest of stderr output deleted ...
3486 10q' conftest.err >conftest.er1
3487 cat conftest.er1 >&5
3489 rm -f conftest.er1 conftest.err
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 done
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3498 main ()
3502 return 0;
3504 _ACEOF
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3507 # Try to create an executable without -o first, disregard a.out.
3508 # It will help us diagnose broken compilers, and finding out an intuition
3509 # of exeext.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511 $as_echo_n "checking whether the C compiler works... " >&6; }
3512 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3517 ac_rmfiles=
3518 for ac_file in $ac_files
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 esac
3524 done
3525 rm -f $ac_rmfiles
3527 if { { ac_try="$ac_link_default"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link_default") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541 # so that the user can short-circuit this test for compilers unknown to
3542 # Autoconf.
3543 for ac_file in $ac_files ''
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3549 [ab].out )
3550 # We found the default executable, but exeext='' is most
3551 # certainly right.
3552 break;;
3553 *.* )
3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 then :; else
3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3558 # We set ac_cv_exeext here because the later test for it is not
3559 # safe: cross compilers may not add the suffix if given an `-o'
3560 # argument, so we may need to know it at that point already.
3561 # Even if this section looks crufty: it has the advantage of
3562 # actually working.
3563 break;;
3565 break;;
3566 esac
3567 done
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3570 else
3571 ac_file=''
3573 if test -z "$ac_file"; then :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error 77 "C compiler cannot create executables
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 $as_echo "yes" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3588 $as_echo_n "checking for C compiler default output file name... " >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3590 $as_echo "$ac_file" >&6; }
3591 ac_exeext=$ac_cv_exeext
3593 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3596 $as_echo_n "checking for suffix of executables... " >&6; }
3597 if { { ac_try="$ac_link"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3609 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3610 # work properly (i.e., refer to `conftest.exe'), while it won't with
3611 # `rm'.
3612 for ac_file in conftest.exe conftest conftest.*; do
3613 test -f "$ac_file" || continue
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617 break;;
3618 * ) break;;
3619 esac
3620 done
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3625 See \`config.log' for more details" "$LINENO" 5; }
3627 rm -f conftest conftest$ac_cv_exeext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3629 $as_echo "$ac_cv_exeext" >&6; }
3631 rm -f conftest.$ac_ext
3632 EXEEXT=$ac_cv_exeext
3633 ac_exeext=$EXEEXT
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636 #include <stdio.h>
3638 main ()
3640 FILE *f = fopen ("conftest.out", "w");
3641 return ferror (f) || fclose (f) != 0;
3644 return 0;
3646 _ACEOF
3647 ac_clean_files="$ac_clean_files conftest.out"
3648 # Check that the compiler produces executables we can run. If not, either
3649 # the compiler is broken, or we cross compile.
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3651 $as_echo_n "checking whether we are cross compiling... " >&6; }
3652 if test "$cross_compiling" != yes; then
3653 { { ac_try="$ac_link"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 if { ac_try='./conftest$ac_cv_exeext'
3665 { { case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_try") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; }; then
3675 cross_compiling=no
3676 else
3677 if test "$cross_compiling" = maybe; then
3678 cross_compiling=yes
3679 else
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot run C compiled programs.
3683 If you meant to cross compile, use \`--host'.
3684 See \`config.log' for more details" "$LINENO" 5; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689 $as_echo "$cross_compiling" >&6; }
3691 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3692 ac_clean_files=$ac_clean_files_save
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3694 $as_echo_n "checking for suffix of object files... " >&6; }
3695 if ${ac_cv_objext+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 main ()
3706 return 0;
3708 _ACEOF
3709 rm -f conftest.o conftest.obj
3710 if { { ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compile") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 for ac_file in conftest.o conftest.obj conftest.*; do
3722 test -f "$ac_file" || continue;
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3725 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3726 break;;
3727 esac
3728 done
3729 else
3730 $as_echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $? "cannot compute suffix of object files: cannot compile
3736 See \`config.log' for more details" "$LINENO" 5; }
3738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3741 $as_echo "$ac_cv_objext" >&6; }
3742 OBJEXT=$ac_cv_objext
3743 ac_objext=$OBJEXT
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3745 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3746 if ${ac_cv_c_compiler_gnu+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3753 main ()
3755 #ifndef __GNUC__
3756 choke me
3757 #endif
3760 return 0;
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_compiler_gnu=yes
3765 else
3766 ac_compiler_gnu=no
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3774 if test $ac_compiler_gnu = yes; then
3775 GCC=yes
3776 else
3777 GCC=
3779 ac_test_CFLAGS=${CFLAGS+set}
3780 ac_save_CFLAGS=$CFLAGS
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3782 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3783 if ${ac_cv_prog_cc_g+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_save_c_werror_flag=$ac_c_werror_flag
3787 ac_c_werror_flag=yes
3788 ac_cv_prog_cc_g=no
3789 CFLAGS="-g"
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3794 main ()
3798 return 0;
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_g=yes
3803 else
3804 CFLAGS=""
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3809 main ()
3813 return 0;
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3818 else
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3820 CFLAGS="-g"
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_g=yes
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3843 $as_echo "$ac_cv_prog_cc_g" >&6; }
3844 if test "$ac_test_CFLAGS" = set; then
3845 CFLAGS=$ac_save_CFLAGS
3846 elif test $ac_cv_prog_cc_g = yes; then
3847 if test "$GCC" = yes; then
3848 CFLAGS="-g -O2"
3849 else
3850 CFLAGS="-g"
3852 else
3853 if test "$GCC" = yes; then
3854 CFLAGS="-O2"
3855 else
3856 CFLAGS=
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3860 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3861 if ${ac_cv_prog_cc_c89+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_cv_prog_cc_c89=no
3865 ac_save_CC=$CC
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <stdarg.h>
3869 #include <stdio.h>
3870 #include <sys/types.h>
3871 #include <sys/stat.h>
3872 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873 struct buf { int x; };
3874 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875 static char *e (p, i)
3876 char **p;
3877 int i;
3879 return p[i];
3881 static char *f (char * (*g) (char **, int), char **p, ...)
3883 char *s;
3884 va_list v;
3885 va_start (v,p);
3886 s = g (p, va_arg (v,int));
3887 va_end (v);
3888 return s;
3891 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892 function prototypes and stuff, but not '\xHH' hex character constants.
3893 These don't provoke an error unfortunately, instead are silently treated
3894 as 'x'. The following induces an error, until -std is added to get
3895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896 array size at least. It's necessary to write '\x00'==0 to get something
3897 that's true only with -std. */
3898 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3901 inside strings and character constants. */
3902 #define FOO(x) 'x'
3903 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3905 int test (int i, double x);
3906 struct s1 {int (*f) (int a);};
3907 struct s2 {int (*f) (double a);};
3908 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 int argc;
3910 char **argv;
3912 main ()
3914 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3916 return 0;
3918 _ACEOF
3919 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3922 CC="$ac_save_CC $ac_arg"
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_c89=$ac_arg
3926 rm -f core conftest.err conftest.$ac_objext
3927 test "x$ac_cv_prog_cc_c89" != "xno" && break
3928 done
3929 rm -f conftest.$ac_ext
3930 CC=$ac_save_CC
3933 # AC_CACHE_VAL
3934 case "x$ac_cv_prog_cc_c89" in
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3937 $as_echo "none needed" >&6; } ;;
3938 xno)
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940 $as_echo "unsupported" >&6; } ;;
3942 CC="$CC $ac_cv_prog_cc_c89"
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3944 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945 esac
3946 if test "x$ac_cv_prog_cc_c89" != xno; then :
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 DEPDIR="${am__leading_dot}deps"
3957 ac_config_commands="$ac_config_commands depfiles"
3960 am_make=${MAKE-make}
3961 cat > confinc << 'END'
3962 am__doit:
3963 @echo this is the am__doit target
3964 .PHONY: am__doit
3966 # If we don't find an include directive, just comment out the code.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3968 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3969 am__include="#"
3970 am__quote=
3971 _am_result=none
3972 # First try GNU make style include.
3973 echo "include confinc" > confmf
3974 # Ignore all kinds of additional output from `make'.
3975 case `$am_make -s -f confmf 2> /dev/null` in #(
3976 *the\ am__doit\ target*)
3977 am__include=include
3978 am__quote=
3979 _am_result=GNU
3981 esac
3982 # Now try BSD make style include.
3983 if test "$am__include" = "#"; then
3984 echo '.include "confinc"' > confmf
3985 case `$am_make -s -f confmf 2> /dev/null` in #(
3986 *the\ am__doit\ target*)
3987 am__include=.include
3988 am__quote="\""
3989 _am_result=BSD
3991 esac
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996 $as_echo "$_am_result" >&6; }
3997 rm -f confinc confmf
3999 # Check whether --enable-dependency-tracking was given.
4000 if test "${enable_dependency_tracking+set}" = set; then :
4001 enableval=$enable_dependency_tracking;
4004 if test "x$enable_dependency_tracking" != xno; then
4005 am_depcomp="$ac_aux_dir/depcomp"
4006 AMDEPBACKSLASH='\'
4007 am__nodep='_no'
4009 if test "x$enable_dependency_tracking" != xno; then
4010 AMDEP_TRUE=
4011 AMDEP_FALSE='#'
4012 else
4013 AMDEP_TRUE='#'
4014 AMDEP_FALSE=
4019 depcc="$CC" am_compiler_list=
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4022 $as_echo_n "checking dependency style of $depcc... " >&6; }
4023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4027 # We make a subdir and do the tests there. Otherwise we can end up
4028 # making bogus files that we don't know about and never remove. For
4029 # instance it was reported that on HP-UX the gcc test will end up
4030 # making a dummy file named `D' -- because `-MD' means `put the output
4031 # in D'.
4032 rm -rf conftest.dir
4033 mkdir conftest.dir
4034 # Copy depcomp to subdir because otherwise we won't find it if we're
4035 # using a relative directory.
4036 cp "$am_depcomp" conftest.dir
4037 cd conftest.dir
4038 # We will build objects and dependencies in a subdirectory because
4039 # it helps to detect inapplicable dependency modes. For instance
4040 # both Tru64's cc and ICC support -MD to output dependencies as a
4041 # side effect of compilation, but ICC will put the dependencies in
4042 # the current directory while Tru64 will put them in the object
4043 # directory.
4044 mkdir sub
4046 am_cv_CC_dependencies_compiler_type=none
4047 if test "$am_compiler_list" = ""; then
4048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4050 am__universal=false
4051 case " $depcc " in #(
4052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4053 esac
4055 for depmode in $am_compiler_list; do
4056 # Setup a source with many dependencies, because some compilers
4057 # like to wrap large dependency lists on column 80 (with \), and
4058 # we should not choose a depcomp mode which is confused by this.
4060 # We need to recreate these files for each test, as the compiler may
4061 # overwrite some of them when testing with obscure command lines.
4062 # This happens at least with the AIX C compiler.
4063 : > sub/conftest.c
4064 for i in 1 2 3 4 5 6; do
4065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4067 # Solaris 8's {/usr,}/bin/sh.
4068 touch sub/conftst$i.h
4069 done
4070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4073 # mode. It turns out that the SunPro C++ compiler does not properly
4074 # handle `-M -o', and we need to detect this. Also, some Intel
4075 # versions had trouble with output in subdirs
4076 am__obj=sub/conftest.${OBJEXT-o}
4077 am__minus_obj="-o $am__obj"
4078 case $depmode in
4079 gcc)
4080 # This depmode causes a compiler race in universal mode.
4081 test "$am__universal" = false || continue
4083 nosideeffect)
4084 # after this tag, mechanisms are not by side-effect, so they'll
4085 # only be used when explicitly requested
4086 if test "x$enable_dependency_tracking" = xyes; then
4087 continue
4088 else
4089 break
4092 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4093 # This compiler won't grok `-c -o', but also, the minuso test has
4094 # not run yet. These depmodes are late enough in the game, and
4095 # so weak that their functioning should not be impacted.
4096 am__obj=conftest.${OBJEXT-o}
4097 am__minus_obj=
4099 none) break ;;
4100 esac
4101 if depmode=$depmode \
4102 source=sub/conftest.c object=$am__obj \
4103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4105 >/dev/null 2>conftest.err &&
4106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # or remarks (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored or not supported.
4113 # When given -MP, icc 7.0 and 7.1 complain thusly:
4114 # icc: Command line warning: ignoring option '-M'; no argument required
4115 # The diagnosis changed in icc 8.0:
4116 # icc: Command line remark: option '-MP' not supported
4117 if (grep 'ignoring option' conftest.err ||
4118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119 am_cv_CC_dependencies_compiler_type=$depmode
4120 break
4123 done
4125 cd ..
4126 rm -rf conftest.dir
4127 else
4128 am_cv_CC_dependencies_compiler_type=none
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4137 test "x$enable_dependency_tracking" != xno \
4138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4139 am__fastdepCC_TRUE=
4140 am__fastdepCC_FALSE='#'
4141 else
4142 am__fastdepCC_TRUE='#'
4143 am__fastdepCC_FALSE=
4147 if test "x$CC" != xcc; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4149 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4152 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4154 set dummy $CC; ac_cc=`$as_echo "$2" |
4155 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4156 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 # Make sure it works both with $CC and with simple cc.
4171 # We do the test twice because some compilers refuse to overwrite an
4172 # existing .o file with -o, though they will create one.
4173 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4174 rm -f conftest2.*
4175 if { { case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 $as_echo "$ac_try_echo"; } >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; } &&
4185 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; };
4195 then
4196 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4197 if test "x$CC" != xcc; then
4198 # Test first that cc exists at all.
4199 if { ac_try='cc -c conftest.$ac_ext >&5'
4200 { { case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
4210 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4211 rm -f conftest2.*
4212 if { { case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_try") 2>&5
4219 ac_status=$?
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; } &&
4222 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_try") 2>&5
4229 ac_status=$?
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; };
4232 then
4233 # cc works too.
4235 else
4236 # cc exists but doesn't like -o.
4237 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4241 else
4242 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4244 rm -f core conftest*
4247 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4249 $as_echo "yes" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4254 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4258 # FIXME: we rely on the cache variable name because
4259 # there is no other way.
4260 set dummy $CC
4261 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4263 if test "$am_t" != yes; then
4264 # Losing compiler, so override with the script.
4265 # FIXME: It is wrong to rewrite CC.
4266 # But if we don't then we get into trouble of one sort or another.
4267 # A longer-term fix would be to have automake use am__CC in this case,
4268 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4269 CC="$am_aux_dir/compile $CC"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4274 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4275 if ${ac_cv_path_SED+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4279 for ac_i in 1 2 3 4 5 6 7; do
4280 ac_script="$ac_script$as_nl$ac_script"
4281 done
4282 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4283 { ac_script=; unset ac_script;}
4284 if test -z "$SED"; then
4285 ac_path_SED_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in sed gsed; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4295 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4296 # Check for GNU ac_path_SED and select it if it is found.
4297 # Check for GNU $ac_path_SED
4298 case `"$ac_path_SED" --version 2>&1` in
4299 *GNU*)
4300 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4302 ac_count=0
4303 $as_echo_n 0123456789 >"conftest.in"
4304 while :
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo '' >> "conftest.nl"
4310 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 as_fn_arith $ac_count + 1 && ac_count=$as_val
4313 if test $ac_count -gt ${ac_path_SED_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_SED="$ac_path_SED"
4316 ac_path_SED_max=$ac_count
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4320 done
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4324 $ac_path_SED_found && break 3
4325 done
4326 done
4327 done
4328 IFS=$as_save_IFS
4329 if test -z "$ac_cv_path_SED"; then
4330 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4332 else
4333 ac_cv_path_SED=$SED
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4338 $as_echo "$ac_cv_path_SED" >&6; }
4339 SED="$ac_cv_path_SED"
4340 rm -f conftest.sed
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4344 $as_echo_n "checking whether ln -s works... " >&6; }
4345 LN_S=$as_ln_s
4346 if test "$LN_S" = "ln -s"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4351 $as_echo "no, using $LN_S" >&6; }
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4364 # On Suns, sometimes $CPP names a directory.
4365 if test -n "$CPP" && test -d "$CPP"; then
4366 CPP=
4368 if test -z "$CPP"; then
4369 if ${ac_cv_prog_CPP+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 # Double quotes because CPP needs to be expanded
4373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4375 ac_preproc_ok=false
4376 for ac_c_preproc_warn_flag in '' yes
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #ifdef __STDC__
4387 # include <limits.h>
4388 #else
4389 # include <assert.h>
4390 #endif
4391 Syntax error
4392 _ACEOF
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4395 else
4396 # Broken: fails on valid input.
4397 continue
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4406 _ACEOF
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408 # Broken: success on invalid input.
4409 continue
4410 else
4411 # Passes both tests.
4412 ac_preproc_ok=:
4413 break
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4417 done
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then :
4421 break
4424 done
4425 ac_cv_prog_CPP=$CPP
4428 CPP=$ac_cv_prog_CPP
4429 else
4430 ac_cv_prog_CPP=$CPP
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4433 $as_echo "$CPP" >&6; }
4434 ac_preproc_ok=false
4435 for ac_c_preproc_warn_flag in '' yes
4437 # Use a header file that comes with gcc, so configuring glibc
4438 # with a fresh cross-compiler works.
4439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440 # <limits.h> exists even on freestanding compilers.
4441 # On the NeXT, cc -E runs the code through the compiler's parser,
4442 # not just through cpp. "Syntax error" is here to catch this case.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #ifdef __STDC__
4446 # include <limits.h>
4447 #else
4448 # include <assert.h>
4449 #endif
4450 Syntax error
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4454 else
4455 # Broken: fails on valid input.
4456 continue
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4460 # OK, works on sane cases. Now check whether nonexistent headers
4461 # can be detected and how.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 #include <ac_nonexistent.h>
4465 _ACEOF
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4467 # Broken: success on invalid input.
4468 continue
4469 else
4470 # Passes both tests.
4471 ac_preproc_ok=:
4472 break
4474 rm -f conftest.err conftest.i conftest.$ac_ext
4476 done
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.i conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then :
4481 else
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4485 See \`config.log' for more details" "$LINENO" 5; }
4488 ac_ext=c
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -z "$GREP"; then
4501 ac_path_GREP_found=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_prog in grep ggrep; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513 # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4515 *GNU*)
4516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4518 ac_count=0
4519 $as_echo_n 0123456789 >"conftest.in"
4520 while :
4522 cat "conftest.in" "conftest.in" >"conftest.tmp"
4523 mv "conftest.tmp" "conftest.in"
4524 cp "conftest.in" "conftest.nl"
4525 $as_echo 'GREP' >> "conftest.nl"
4526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528 as_fn_arith $ac_count + 1 && ac_count=$as_val
4529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530 # Best one so far, save it but keep looking for a better one
4531 ac_cv_path_GREP="$ac_path_GREP"
4532 ac_path_GREP_max=$ac_count
4534 # 10*(2^10) chars as input seems more than enough
4535 test $ac_count -gt 10 && break
4536 done
4537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 esac
4540 $ac_path_GREP_found && break 3
4541 done
4542 done
4543 done
4544 IFS=$as_save_IFS
4545 if test -z "$ac_cv_path_GREP"; then
4546 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4548 else
4549 ac_cv_path_GREP=$GREP
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555 GREP="$ac_cv_path_GREP"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564 then ac_cv_path_EGREP="$GREP -E"
4565 else
4566 if test -z "$EGREP"; then
4567 ac_path_EGREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in egrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579 # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4581 *GNU*)
4582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4584 ac_count=0
4585 $as_echo_n 0123456789 >"conftest.in"
4586 while :
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'EGREP' >> "conftest.nl"
4592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_EGREP="$ac_path_EGREP"
4598 ac_path_EGREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4602 done
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4606 $ac_path_EGREP_found && break 3
4607 done
4608 done
4609 done
4610 IFS=$as_save_IFS
4611 if test -z "$ac_cv_path_EGREP"; then
4612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614 else
4615 ac_cv_path_EGREP=$EGREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622 EGREP="$ac_cv_path_EGREP"
4625 if test $ac_cv_c_compiler_gnu = yes; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4627 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4628 if ${ac_cv_prog_gcc_traditional+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_pattern="Autoconf.*'x'"
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <sgtty.h>
4635 Autoconf TIOCGETP
4636 _ACEOF
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4639 ac_cv_prog_gcc_traditional=yes
4640 else
4641 ac_cv_prog_gcc_traditional=no
4643 rm -f conftest*
4646 if test $ac_cv_prog_gcc_traditional = no; then
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <termio.h>
4650 Autoconf TCGETA
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4654 ac_cv_prog_gcc_traditional=yes
4656 rm -f conftest*
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4661 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4662 if test $ac_cv_prog_gcc_traditional = yes; then
4663 CC="$CC -traditional"
4668 # We need to test for at least gcc 2.95 here, because older versions don't
4669 # have -fno-strict-aliasing
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4674 main ()
4677 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4678 #error
4679 #endif
4681 return 0;
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 have_gcc295=yes
4686 else
4687 have_gcc295=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 if test "$GCC" = "yes" ; then
4692 # Enable many gcc warnings by default...
4693 CFLAGS="$CFLAGS -Wall"
4694 # And disable the strict-aliasing optimization, since it breaks
4695 # our sockaddr-handling code in strange ways.
4696 if test x$have_gcc295 = xyes; then
4697 CFLAGS="$CFLAGS -fno-strict-aliasing"
4701 # OS X Lion started deprecating the system openssl. Let's just disable
4702 # all deprecation warnings on OS X.
4703 case "$host_os" in
4705 darwin*)
4706 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4708 esac
4710 # Check whether --enable-gcc-warnings was given.
4711 if test "${enable_gcc_warnings+set}" = set; then :
4712 enableval=$enable_gcc_warnings;
4715 # Check whether --enable-thread-support was given.
4716 if test "${enable_thread_support+set}" = set; then :
4717 enableval=$enable_thread_support;
4718 else
4719 enable_thread_support=yes
4722 # Check whether --enable-malloc-replacement was given.
4723 if test "${enable_malloc_replacement+set}" = set; then :
4724 enableval=$enable_malloc_replacement;
4725 else
4726 enable_malloc_replacement=yes
4729 # Check whether --enable-openssl was given.
4730 if test "${enable_openssl+set}" = set; then :
4731 enableval=$enable_openssl;
4732 else
4733 enable_openssl=yes
4736 # Check whether --enable-debug-mode was given.
4737 if test "${enable_debug_mode+set}" = set; then :
4738 enableval=$enable_debug_mode;
4739 else
4740 enable_debug_mode=yes
4743 # Check whether --enable-libevent-install was given.
4744 if test "${enable_libevent_install+set}" = set; then :
4745 enableval=$enable_libevent_install;
4746 else
4747 enable_libevent_install=yes
4750 # Check whether --enable-libevent-regress was given.
4751 if test "${enable_libevent_regress+set}" = set; then :
4752 enableval=$enable_libevent_regress;
4753 else
4754 enable_libevent_regress=yes
4757 # Check whether --enable-function-sections was given.
4758 if test "${enable_function_sections+set}" = set; then :
4759 enableval=$enable_function_sections;
4760 else
4761 enable_function_sections=no
4766 case `pwd` in
4767 *\ * | *\ *)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4769 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4770 esac
4774 macro_version='2.4.2'
4775 macro_revision='1.3337'
4789 ltmain="$ac_aux_dir/ltmain.sh"
4791 # Backslashify metacharacters that are still active within
4792 # double-quoted strings.
4793 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4795 # Same as above, but do not quote variable references.
4796 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4798 # Sed substitution to delay expansion of an escaped shell variable in a
4799 # double_quote_subst'ed string.
4800 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4802 # Sed substitution to delay expansion of an escaped single quote.
4803 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4805 # Sed substitution to avoid accidental globbing in evaled expressions
4806 no_glob_subst='s/\*/\\\*/g'
4808 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813 $as_echo_n "checking how to print strings... " >&6; }
4814 # Test print first, because it will be a builtin if present.
4815 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4816 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817 ECHO='print -r --'
4818 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819 ECHO='printf %s\n'
4820 else
4821 # Use this function as a fallback that always works.
4822 func_fallback_echo ()
4824 eval 'cat <<_LTECHO_EOF
4826 _LTECHO_EOF'
4828 ECHO='func_fallback_echo'
4831 # func_echo_all arg...
4832 # Invoke $ECHO with all args, space-separated.
4833 func_echo_all ()
4835 $ECHO ""
4838 case "$ECHO" in
4839 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840 $as_echo "printf" >&6; } ;;
4841 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842 $as_echo "print -r" >&6; } ;;
4843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844 $as_echo "cat" >&6; } ;;
4845 esac
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4861 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4862 if ${ac_cv_path_SED+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4866 for ac_i in 1 2 3 4 5 6 7; do
4867 ac_script="$ac_script$as_nl$ac_script"
4868 done
4869 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4870 { ac_script=; unset ac_script;}
4871 if test -z "$SED"; then
4872 ac_path_SED_found=false
4873 # Loop through the user's path and test for each of PROGNAME-LIST
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_prog in sed gsed; do
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4882 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4883 # Check for GNU ac_path_SED and select it if it is found.
4884 # Check for GNU $ac_path_SED
4885 case `"$ac_path_SED" --version 2>&1` in
4886 *GNU*)
4887 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4889 ac_count=0
4890 $as_echo_n 0123456789 >"conftest.in"
4891 while :
4893 cat "conftest.in" "conftest.in" >"conftest.tmp"
4894 mv "conftest.tmp" "conftest.in"
4895 cp "conftest.in" "conftest.nl"
4896 $as_echo '' >> "conftest.nl"
4897 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899 as_fn_arith $ac_count + 1 && ac_count=$as_val
4900 if test $ac_count -gt ${ac_path_SED_max-0}; then
4901 # Best one so far, save it but keep looking for a better one
4902 ac_cv_path_SED="$ac_path_SED"
4903 ac_path_SED_max=$ac_count
4905 # 10*(2^10) chars as input seems more than enough
4906 test $ac_count -gt 10 && break
4907 done
4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909 esac
4911 $ac_path_SED_found && break 3
4912 done
4913 done
4914 done
4915 IFS=$as_save_IFS
4916 if test -z "$ac_cv_path_SED"; then
4917 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4919 else
4920 ac_cv_path_SED=$SED
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4925 $as_echo "$ac_cv_path_SED" >&6; }
4926 SED="$ac_cv_path_SED"
4927 rm -f conftest.sed
4929 test -z "$SED" && SED=sed
4930 Xsed="$SED -e 1s/^X//"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4943 $as_echo_n "checking for fgrep... " >&6; }
4944 if ${ac_cv_path_FGREP+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4948 then ac_cv_path_FGREP="$GREP -F"
4949 else
4950 if test -z "$FGREP"; then
4951 ac_path_FGREP_found=false
4952 # Loop through the user's path and test for each of PROGNAME-LIST
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_prog in fgrep; do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4961 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4962 # Check for GNU ac_path_FGREP and select it if it is found.
4963 # Check for GNU $ac_path_FGREP
4964 case `"$ac_path_FGREP" --version 2>&1` in
4965 *GNU*)
4966 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4968 ac_count=0
4969 $as_echo_n 0123456789 >"conftest.in"
4970 while :
4972 cat "conftest.in" "conftest.in" >"conftest.tmp"
4973 mv "conftest.tmp" "conftest.in"
4974 cp "conftest.in" "conftest.nl"
4975 $as_echo 'FGREP' >> "conftest.nl"
4976 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4978 as_fn_arith $ac_count + 1 && ac_count=$as_val
4979 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4980 # Best one so far, save it but keep looking for a better one
4981 ac_cv_path_FGREP="$ac_path_FGREP"
4982 ac_path_FGREP_max=$ac_count
4984 # 10*(2^10) chars as input seems more than enough
4985 test $ac_count -gt 10 && break
4986 done
4987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4988 esac
4990 $ac_path_FGREP_found && break 3
4991 done
4992 done
4993 done
4994 IFS=$as_save_IFS
4995 if test -z "$ac_cv_path_FGREP"; then
4996 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998 else
4999 ac_cv_path_FGREP=$FGREP
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5005 $as_echo "$ac_cv_path_FGREP" >&6; }
5006 FGREP="$ac_cv_path_FGREP"
5009 test -z "$GREP" && GREP=grep
5029 # Check whether --with-gnu-ld was given.
5030 if test "${with_gnu_ld+set}" = set; then :
5031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5032 else
5033 with_gnu_ld=no
5036 ac_prog=ld
5037 if test "$GCC" = yes; then
5038 # Check if gcc -print-prog-name=ld gives a path.
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5040 $as_echo_n "checking for ld used by $CC... " >&6; }
5041 case $host in
5042 *-*-mingw*)
5043 # gcc leaves a trailing carriage return which upsets mingw
5044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5047 esac
5048 case $ac_prog in
5049 # Accept absolute paths.
5050 [\\/]* | ?:[\\/]*)
5051 re_direlt='/[^/][^/]*/\.\./'
5052 # Canonicalize the pathname of ld
5053 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5054 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5055 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5056 done
5057 test -z "$LD" && LD="$ac_prog"
5060 # If it fails, then pretend we aren't using GCC.
5061 ac_prog=ld
5064 # If it is relative, then search for the first ld in PATH.
5065 with_gnu_ld=unknown
5067 esac
5068 elif test "$with_gnu_ld" = yes; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5070 $as_echo_n "checking for GNU ld... " >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5073 $as_echo_n "checking for non-GNU ld... " >&6; }
5075 if ${lt_cv_path_LD+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -z "$LD"; then
5079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5080 for ac_dir in $PATH; do
5081 IFS="$lt_save_ifs"
5082 test -z "$ac_dir" && ac_dir=.
5083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5084 lt_cv_path_LD="$ac_dir/$ac_prog"
5085 # Check to see if the program is GNU ld. I'd rather use --version,
5086 # but apparently some variants of GNU ld only accept -v.
5087 # Break only if it was the GNU/non-GNU ld that we prefer.
5088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5089 *GNU* | *'with BFD'*)
5090 test "$with_gnu_ld" != no && break
5093 test "$with_gnu_ld" != yes && break
5095 esac
5097 done
5098 IFS="$lt_save_ifs"
5099 else
5100 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5104 LD="$lt_cv_path_LD"
5105 if test -n "$LD"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5107 $as_echo "$LD" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5112 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5114 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5115 if ${lt_cv_prog_gnu_ld+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5119 case `$LD -v 2>&1 </dev/null` in
5120 *GNU* | *'with BFD'*)
5121 lt_cv_prog_gnu_ld=yes
5124 lt_cv_prog_gnu_ld=no
5126 esac
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5129 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5130 with_gnu_ld=$lt_cv_prog_gnu_ld
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5141 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5142 if ${lt_cv_path_NM+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$NM"; then
5146 # Let the user override the test.
5147 lt_cv_path_NM="$NM"
5148 else
5149 lt_nm_to_check="${ac_tool_prefix}nm"
5150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5151 lt_nm_to_check="$lt_nm_to_check nm"
5153 for lt_tmp_nm in $lt_nm_to_check; do
5154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5155 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5156 IFS="$lt_save_ifs"
5157 test -z "$ac_dir" && ac_dir=.
5158 tmp_nm="$ac_dir/$lt_tmp_nm"
5159 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5160 # Check to see if the nm accepts a BSD-compat flag.
5161 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5162 # nm: unknown option "B" ignored
5163 # Tru64's nm complains that /dev/null is an invalid object file
5164 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5165 */dev/null* | *'Invalid file or object type'*)
5166 lt_cv_path_NM="$tmp_nm -B"
5167 break
5170 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5171 */dev/null*)
5172 lt_cv_path_NM="$tmp_nm -p"
5173 break
5176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5177 continue # so that we can try to find one that supports BSD flags
5179 esac
5181 esac
5183 done
5184 IFS="$lt_save_ifs"
5185 done
5186 : ${lt_cv_path_NM=no}
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5190 $as_echo "$lt_cv_path_NM" >&6; }
5191 if test "$lt_cv_path_NM" != "no"; then
5192 NM="$lt_cv_path_NM"
5193 else
5194 # Didn't find any BSD compatible name lister, look for dumpbin.
5195 if test -n "$DUMPBIN"; then :
5196 # Let the user override the test.
5197 else
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog in dumpbin "link -dump"
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_DUMPBIN+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$DUMPBIN"; then
5209 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 DUMPBIN=$ac_cv_prog_DUMPBIN
5229 if test -n "$DUMPBIN"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5231 $as_echo "$DUMPBIN" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 test -n "$DUMPBIN" && break
5239 done
5241 if test -z "$DUMPBIN"; then
5242 ac_ct_DUMPBIN=$DUMPBIN
5243 for ac_prog in dumpbin "link -dump"
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$ac_ct_DUMPBIN"; then
5253 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5273 if test -n "$ac_ct_DUMPBIN"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5275 $as_echo "$ac_ct_DUMPBIN" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 test -n "$ac_ct_DUMPBIN" && break
5283 done
5285 if test "x$ac_ct_DUMPBIN" = x; then
5286 DUMPBIN=":"
5287 else
5288 case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned=yes ;;
5293 esac
5294 DUMPBIN=$ac_ct_DUMPBIN
5298 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5299 *COFF*)
5300 DUMPBIN="$DUMPBIN -symbols"
5303 DUMPBIN=:
5305 esac
5308 if test "$DUMPBIN" != ":"; then
5309 NM="$DUMPBIN"
5312 test -z "$NM" && NM=nm
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5320 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5321 if ${lt_cv_nm_interface+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 lt_cv_nm_interface="BSD nm"
5325 echo "int some_variable = 0;" > conftest.$ac_ext
5326 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5327 (eval "$ac_compile" 2>conftest.err)
5328 cat conftest.err >&5
5329 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5330 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5331 cat conftest.err >&5
5332 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5333 cat conftest.out >&5
5334 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5335 lt_cv_nm_interface="MS dumpbin"
5337 rm -f conftest*
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5340 $as_echo "$lt_cv_nm_interface" >&6; }
5342 # find the maximum length of command line arguments
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5344 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5345 if ${lt_cv_sys_max_cmd_len+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5349 teststring="ABCD"
5351 case $build_os in
5352 msdosdjgpp*)
5353 # On DJGPP, this test can blow up pretty badly due to problems in libc
5354 # (any single argument exceeding 2000 bytes causes a buffer overrun
5355 # during glob expansion). Even if it were fixed, the result of this
5356 # check would be larger than it should be.
5357 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5360 gnu*)
5361 # Under GNU Hurd, this test is not required because there is
5362 # no limit to the length of command line arguments.
5363 # Libtool will interpret -1 as no limit whatsoever
5364 lt_cv_sys_max_cmd_len=-1;
5367 cygwin* | mingw* | cegcc*)
5368 # On Win9x/ME, this test blows up -- it succeeds, but takes
5369 # about 5 minutes as the teststring grows exponentially.
5370 # Worse, since 9x/ME are not pre-emptively multitasking,
5371 # you end up with a "frozen" computer, even though with patience
5372 # the test eventually succeeds (with a max line length of 256k).
5373 # Instead, let's just punt: use the minimum linelength reported by
5374 # all of the supported platforms: 8192 (on NT/2K/XP).
5375 lt_cv_sys_max_cmd_len=8192;
5378 mint*)
5379 # On MiNT this can take a long time and run out of memory.
5380 lt_cv_sys_max_cmd_len=8192;
5383 amigaos*)
5384 # On AmigaOS with pdksh, this test takes hours, literally.
5385 # So we just punt and use a minimum line length of 8192.
5386 lt_cv_sys_max_cmd_len=8192;
5389 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5390 # This has been around since 386BSD, at least. Likely further.
5391 if test -x /sbin/sysctl; then
5392 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5393 elif test -x /usr/sbin/sysctl; then
5394 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5395 else
5396 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5398 # And add a safety zone
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403 interix*)
5404 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5405 lt_cv_sys_max_cmd_len=196608
5408 os2*)
5409 # The test takes a long time on OS/2.
5410 lt_cv_sys_max_cmd_len=8192
5413 osf*)
5414 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5415 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5416 # nice to cause kernel panics so lets avoid the loop below.
5417 # First set a reasonable default.
5418 lt_cv_sys_max_cmd_len=16384
5420 if test -x /sbin/sysconfig; then
5421 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5422 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5423 esac
5426 sco3.2v5*)
5427 lt_cv_sys_max_cmd_len=102400
5429 sysv5* | sco5v6* | sysv4.2uw2*)
5430 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5431 if test -n "$kargmax"; then
5432 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5433 else
5434 lt_cv_sys_max_cmd_len=32768
5438 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5439 if test -n "$lt_cv_sys_max_cmd_len"; then
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5442 else
5443 # Make teststring a little bigger before we do anything with it.
5444 # a 1K string should be a reasonable start.
5445 for i in 1 2 3 4 5 6 7 8 ; do
5446 teststring=$teststring$teststring
5447 done
5448 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5449 # If test is not a shell built-in, we'll probably end up computing a
5450 # maximum length that is only half of the actual maximum length, but
5451 # we can't tell.
5452 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5453 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5454 test $i != 17 # 1/2 MB should be enough
5456 i=`expr $i + 1`
5457 teststring=$teststring$teststring
5458 done
5459 # Only check the string length outside the loop.
5460 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5461 teststring=
5462 # Add a significant safety factor because C++ compilers can tack on
5463 # massive amounts of additional arguments before passing them to the
5464 # linker. It appears as though 1/2 is a usable value.
5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5468 esac
5472 if test -n $lt_cv_sys_max_cmd_len ; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5474 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5477 $as_echo "none" >&6; }
5479 max_cmd_len=$lt_cv_sys_max_cmd_len
5486 : ${CP="cp -f"}
5487 : ${MV="mv -f"}
5488 : ${RM="rm -f"}
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5491 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5492 # Try some XSI features
5493 xsi_shell=no
5494 ( _lt_dummy="a/b/c"
5495 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5496 = c,a/b,b/c, \
5497 && eval 'test $(( 1 + 1 )) -eq 2 \
5498 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5499 && xsi_shell=yes
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5501 $as_echo "$xsi_shell" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5505 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5506 lt_shell_append=no
5507 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5508 >/dev/null 2>&1 \
5509 && lt_shell_append=yes
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5511 $as_echo "$lt_shell_append" >&6; }
5514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5515 lt_unset=unset
5516 else
5517 lt_unset=false
5524 # test EBCDIC or ASCII
5525 case `echo X|tr X '\101'` in
5526 A) # ASCII based system
5527 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5528 lt_SP2NL='tr \040 \012'
5529 lt_NL2SP='tr \015\012 \040\040'
5531 *) # EBCDIC based system
5532 lt_SP2NL='tr \100 \n'
5533 lt_NL2SP='tr \r\n \100\100'
5535 esac
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5546 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5547 if ${lt_cv_to_host_file_cmd+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 case $host in
5551 *-*-mingw* )
5552 case $build in
5553 *-*-mingw* ) # actually msys
5554 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5556 *-*-cygwin* )
5557 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5559 * ) # otherwise, assume *nix
5560 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5562 esac
5564 *-*-cygwin* )
5565 case $build in
5566 *-*-mingw* ) # actually msys
5567 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5569 *-*-cygwin* )
5570 lt_cv_to_host_file_cmd=func_convert_file_noop
5572 * ) # otherwise, assume *nix
5573 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5575 esac
5577 * ) # unhandled hosts (and "normal" native builds)
5578 lt_cv_to_host_file_cmd=func_convert_file_noop
5580 esac
5584 to_host_file_cmd=$lt_cv_to_host_file_cmd
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5586 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5593 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5594 if ${lt_cv_to_tool_file_cmd+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 #assume ordinary cross tools, or native build.
5598 lt_cv_to_tool_file_cmd=func_convert_file_noop
5599 case $host in
5600 *-*-mingw* )
5601 case $build in
5602 *-*-mingw* ) # actually msys
5603 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5605 esac
5607 esac
5611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5613 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5620 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5621 if ${lt_cv_ld_reload_flag+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 lt_cv_ld_reload_flag='-r'
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5627 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5628 reload_flag=$lt_cv_ld_reload_flag
5629 case $reload_flag in
5630 "" | " "*) ;;
5631 *) reload_flag=" $reload_flag" ;;
5632 esac
5633 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5634 case $host_os in
5635 cygwin* | mingw* | pw32* | cegcc*)
5636 if test "$GCC" != yes; then
5637 reload_cmds=false
5640 darwin*)
5641 if test "$GCC" = yes; then
5642 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5643 else
5644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5647 esac
5657 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_OBJDUMP+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$OBJDUMP"; then
5666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5679 done
5680 done
5681 IFS=$as_save_IFS
5685 OBJDUMP=$ac_cv_prog_OBJDUMP
5686 if test -n "$OBJDUMP"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5688 $as_echo "$OBJDUMP" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5696 if test -z "$ac_cv_prog_OBJDUMP"; then
5697 ac_ct_OBJDUMP=$OBJDUMP
5698 # Extract the first word of "objdump", so it can be a program name with args.
5699 set dummy objdump; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -n "$ac_ct_OBJDUMP"; then
5706 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5721 IFS=$as_save_IFS
5725 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5726 if test -n "$ac_ct_OBJDUMP"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5728 $as_echo "$ac_ct_OBJDUMP" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5734 if test "x$ac_ct_OBJDUMP" = x; then
5735 OBJDUMP="false"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741 ac_tool_warned=yes ;;
5742 esac
5743 OBJDUMP=$ac_ct_OBJDUMP
5745 else
5746 OBJDUMP="$ac_cv_prog_OBJDUMP"
5749 test -z "$OBJDUMP" && OBJDUMP=objdump
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5760 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5761 if ${lt_cv_deplibs_check_method+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 lt_cv_file_magic_cmd='$MAGIC_CMD'
5765 lt_cv_file_magic_test_file=
5766 lt_cv_deplibs_check_method='unknown'
5767 # Need to set the preceding variable on all platforms that support
5768 # interlibrary dependencies.
5769 # 'none' -- dependencies not supported.
5770 # `unknown' -- same as none, but documents that we really don't know.
5771 # 'pass_all' -- all dependencies passed with no checks.
5772 # 'test_compile' -- check by making test program.
5773 # 'file_magic [[regex]]' -- check by looking for files in library path
5774 # which responds to the $file_magic_cmd with a given extended regex.
5775 # If you have `file' or equivalent on your system and you're not sure
5776 # whether `pass_all' will *always* work, you probably want this one.
5778 case $host_os in
5779 aix[4-9]*)
5780 lt_cv_deplibs_check_method=pass_all
5783 beos*)
5784 lt_cv_deplibs_check_method=pass_all
5787 bsdi[45]*)
5788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5789 lt_cv_file_magic_cmd='/usr/bin/file -L'
5790 lt_cv_file_magic_test_file=/shlib/libc.so
5793 cygwin*)
5794 # func_win32_libid is a shell function defined in ltmain.sh
5795 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5796 lt_cv_file_magic_cmd='func_win32_libid'
5799 mingw* | pw32*)
5800 # Base MSYS/MinGW do not provide the 'file' command needed by
5801 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5802 # unless we find 'file', for example because we are cross-compiling.
5803 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5804 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5805 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5806 lt_cv_file_magic_cmd='func_win32_libid'
5807 else
5808 # Keep this pattern in sync with the one in func_win32_libid.
5809 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5810 lt_cv_file_magic_cmd='$OBJDUMP -f'
5814 cegcc*)
5815 # use the weaker test based on 'objdump'. See mingw*.
5816 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5817 lt_cv_file_magic_cmd='$OBJDUMP -f'
5820 darwin* | rhapsody*)
5821 lt_cv_deplibs_check_method=pass_all
5824 freebsd* | dragonfly*)
5825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5826 case $host_cpu in
5827 i*86 )
5828 # Not sure whether the presence of OpenBSD here was a mistake.
5829 # Let's accept both of them until this is cleared up.
5830 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5831 lt_cv_file_magic_cmd=/usr/bin/file
5832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5834 esac
5835 else
5836 lt_cv_deplibs_check_method=pass_all
5840 gnu*)
5841 lt_cv_deplibs_check_method=pass_all
5844 haiku*)
5845 lt_cv_deplibs_check_method=pass_all
5848 hpux10.20* | hpux11*)
5849 lt_cv_file_magic_cmd=/usr/bin/file
5850 case $host_cpu in
5851 ia64*)
5852 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5853 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5855 hppa*64*)
5856 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]'
5857 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5861 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5863 esac
5866 interix[3-9]*)
5867 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5871 irix5* | irix6* | nonstopux*)
5872 case $LD in
5873 *-32|*"-32 ") libmagic=32-bit;;
5874 *-n32|*"-n32 ") libmagic=N32;;
5875 *-64|*"-64 ") libmagic=64-bit;;
5876 *) libmagic=never-match;;
5877 esac
5878 lt_cv_deplibs_check_method=pass_all
5881 # This must be glibc/ELF.
5882 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5883 lt_cv_deplibs_check_method=pass_all
5886 netbsd*)
5887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5889 else
5890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5894 newos6*)
5895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5896 lt_cv_file_magic_cmd=/usr/bin/file
5897 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5900 *nto* | *qnx*)
5901 lt_cv_deplibs_check_method=pass_all
5904 openbsd*)
5905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5907 else
5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5912 osf3* | osf4* | osf5*)
5913 lt_cv_deplibs_check_method=pass_all
5916 rdos*)
5917 lt_cv_deplibs_check_method=pass_all
5920 solaris*)
5921 lt_cv_deplibs_check_method=pass_all
5924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5925 lt_cv_deplibs_check_method=pass_all
5928 sysv4 | sysv4.3*)
5929 case $host_vendor in
5930 motorola)
5931 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]'
5932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5934 ncr)
5935 lt_cv_deplibs_check_method=pass_all
5937 sequent)
5938 lt_cv_file_magic_cmd='/bin/file'
5939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5941 sni)
5942 lt_cv_file_magic_cmd='/bin/file'
5943 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5944 lt_cv_file_magic_test_file=/lib/libc.so
5946 siemens)
5947 lt_cv_deplibs_check_method=pass_all
5950 lt_cv_deplibs_check_method=pass_all
5952 esac
5955 tpf*)
5956 lt_cv_deplibs_check_method=pass_all
5958 esac
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5962 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5964 file_magic_glob=
5965 want_nocaseglob=no
5966 if test "$build" = "$host"; then
5967 case $host_os in
5968 mingw* | pw32*)
5969 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5970 want_nocaseglob=yes
5971 else
5972 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5975 esac
5978 file_magic_cmd=$lt_cv_file_magic_cmd
5979 deplibs_check_method=$lt_cv_deplibs_check_method
5980 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6003 if test -n "$ac_tool_prefix"; then
6004 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6005 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_DLLTOOL+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if test -n "$DLLTOOL"; then
6012 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6025 done
6026 done
6027 IFS=$as_save_IFS
6031 DLLTOOL=$ac_cv_prog_DLLTOOL
6032 if test -n "$DLLTOOL"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6034 $as_echo "$DLLTOOL" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6042 if test -z "$ac_cv_prog_DLLTOOL"; then
6043 ac_ct_DLLTOOL=$DLLTOOL
6044 # Extract the first word of "dlltool", so it can be a program name with args.
6045 set dummy dlltool; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$ac_ct_DLLTOOL"; then
6052 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6065 done
6066 done
6067 IFS=$as_save_IFS
6071 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6072 if test -n "$ac_ct_DLLTOOL"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6074 $as_echo "$ac_ct_DLLTOOL" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6080 if test "x$ac_ct_DLLTOOL" = x; then
6081 DLLTOOL="false"
6082 else
6083 case $cross_compiling:$ac_tool_warned in
6084 yes:)
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6087 ac_tool_warned=yes ;;
6088 esac
6089 DLLTOOL=$ac_ct_DLLTOOL
6091 else
6092 DLLTOOL="$ac_cv_prog_DLLTOOL"
6095 test -z "$DLLTOOL" && DLLTOOL=dlltool
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6107 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6108 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 lt_cv_sharedlib_from_linklib_cmd='unknown'
6113 case $host_os in
6114 cygwin* | mingw* | pw32* | cegcc*)
6115 # two different shell functions defined in ltmain.sh
6116 # decide which to use based on capabilities of $DLLTOOL
6117 case `$DLLTOOL --help 2>&1` in
6118 *--identify-strict*)
6119 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6122 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6124 esac
6127 # fallback: assume linklib IS sharedlib
6128 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6130 esac
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6134 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6135 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6136 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6144 if test -n "$ac_tool_prefix"; then
6145 for ac_prog in ar
6147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_AR+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$AR"; then
6155 ac_cv_prog_AR="$AR" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 AR=$ac_cv_prog_AR
6175 if test -n "$AR"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6177 $as_echo "$AR" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6184 test -n "$AR" && break
6185 done
6187 if test -z "$AR"; then
6188 ac_ct_AR=$AR
6189 for ac_prog in ar
6191 # Extract the first word of "$ac_prog", so it can be a program name with args.
6192 set dummy $ac_prog; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$ac_ct_AR"; then
6199 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_AR="$ac_prog"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6212 done
6213 done
6214 IFS=$as_save_IFS
6218 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6219 if test -n "$ac_ct_AR"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6221 $as_echo "$ac_ct_AR" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6228 test -n "$ac_ct_AR" && break
6229 done
6231 if test "x$ac_ct_AR" = x; then
6232 AR="false"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 AR=$ac_ct_AR
6244 : ${AR=ar}
6245 : ${AR_FLAGS=cru}
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6258 $as_echo_n "checking for archiver @FILE support... " >&6; }
6259 if ${lt_cv_ar_at_file+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 lt_cv_ar_at_file=no
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6267 main ()
6271 return 0;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 echo conftest.$ac_objext > conftest.lst
6276 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6278 (eval $lt_ar_try) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }
6282 if test "$ac_status" -eq 0; then
6283 # Ensure the archiver fails upon bogus file names.
6284 rm -f conftest.$ac_objext libconftest.a
6285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6286 (eval $lt_ar_try) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; }
6290 if test "$ac_status" -ne 0; then
6291 lt_cv_ar_at_file=@
6294 rm -f conftest.* libconftest.a
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6301 $as_echo "$lt_cv_ar_at_file" >&6; }
6303 if test "x$lt_cv_ar_at_file" = xno; then
6304 archiver_list_spec=
6305 else
6306 archiver_list_spec=$lt_cv_ar_at_file
6315 if test -n "$ac_tool_prefix"; then
6316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6317 set dummy ${ac_tool_prefix}strip; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_STRIP+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$STRIP"; then
6324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6337 done
6338 done
6339 IFS=$as_save_IFS
6343 STRIP=$ac_cv_prog_STRIP
6344 if test -n "$STRIP"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6346 $as_echo "$STRIP" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6354 if test -z "$ac_cv_prog_STRIP"; then
6355 ac_ct_STRIP=$STRIP
6356 # Extract the first word of "strip", so it can be a program name with args.
6357 set dummy strip; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test -n "$ac_ct_STRIP"; then
6364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_ac_ct_STRIP="strip"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6377 done
6378 done
6379 IFS=$as_save_IFS
6383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6384 if test -n "$ac_ct_STRIP"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6386 $as_echo "$ac_ct_STRIP" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6392 if test "x$ac_ct_STRIP" = x; then
6393 STRIP=":"
6394 else
6395 case $cross_compiling:$ac_tool_warned in
6396 yes:)
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401 STRIP=$ac_ct_STRIP
6403 else
6404 STRIP="$ac_cv_prog_STRIP"
6407 test -z "$STRIP" && STRIP=:
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_RANLIB+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$RANLIB"; then
6423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6436 done
6437 done
6438 IFS=$as_save_IFS
6442 RANLIB=$ac_cv_prog_RANLIB
6443 if test -n "$RANLIB"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6445 $as_echo "$RANLIB" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6453 if test -z "$ac_cv_prog_RANLIB"; then
6454 ac_ct_RANLIB=$RANLIB
6455 # Extract the first word of "ranlib", so it can be a program name with args.
6456 set dummy ranlib; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$ac_ct_RANLIB"; then
6463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_RANLIB="ranlib"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6476 done
6477 done
6478 IFS=$as_save_IFS
6482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6483 if test -n "$ac_ct_RANLIB"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6485 $as_echo "$ac_ct_RANLIB" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6491 if test "x$ac_ct_RANLIB" = x; then
6492 RANLIB=":"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 RANLIB=$ac_ct_RANLIB
6502 else
6503 RANLIB="$ac_cv_prog_RANLIB"
6506 test -z "$RANLIB" && RANLIB=:
6513 # Determine commands to create old-style static archives.
6514 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6515 old_postinstall_cmds='chmod 644 $oldlib'
6516 old_postuninstall_cmds=
6518 if test -n "$RANLIB"; then
6519 case $host_os in
6520 openbsd*)
6521 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6524 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6526 esac
6527 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6530 case $host_os in
6531 darwin*)
6532 lock_old_archive_extraction=yes ;;
6534 lock_old_archive_extraction=no ;;
6535 esac
6575 # If no C compiler was specified, use CC.
6576 LTCC=${LTCC-"$CC"}
6578 # If no C compiler flags were specified, use CFLAGS.
6579 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6581 # Allow CC to be a program name with arguments.
6582 compiler=$CC
6585 # Check for command to grab the raw symbol name followed by C symbol from nm.
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6587 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6588 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6592 # These are sane defaults that work on at least a few old systems.
6593 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6595 # Character class describing NM global symbol codes.
6596 symcode='[BCDEGRST]'
6598 # Regexp to match symbols that can be accessed directly from C.
6599 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6601 # Define system-specific variables.
6602 case $host_os in
6603 aix*)
6604 symcode='[BCDT]'
6606 cygwin* | mingw* | pw32* | cegcc*)
6607 symcode='[ABCDGISTW]'
6609 hpux*)
6610 if test "$host_cpu" = ia64; then
6611 symcode='[ABCDEGRST]'
6614 irix* | nonstopux*)
6615 symcode='[BCDEGRST]'
6617 osf*)
6618 symcode='[BCDEGQRST]'
6620 solaris*)
6621 symcode='[BDRT]'
6623 sco3.2v5*)
6624 symcode='[DT]'
6626 sysv4.2uw2*)
6627 symcode='[DT]'
6629 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6630 symcode='[ABDT]'
6632 sysv4)
6633 symcode='[DFNSTU]'
6635 esac
6637 # If we're using GNU nm, then use its standard symbol codes.
6638 case `$NM -V 2>&1` in
6639 *GNU* | *'with BFD'*)
6640 symcode='[ABCDGIRSTW]' ;;
6641 esac
6643 # Transform an extracted symbol line into a proper C declaration.
6644 # Some systems (esp. on ia64) link data and code symbols differently,
6645 # so use this general approach.
6646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6648 # Transform an extracted symbol line into symbol name and symbol address
6649 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6650 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'"
6652 # Handle CRLF in mingw tool chain
6653 opt_cr=
6654 case $build_os in
6655 mingw*)
6656 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6658 esac
6660 # Try without a prefix underscore, then with it.
6661 for ac_symprfx in "" "_"; do
6663 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6664 symxfrm="\\1 $ac_symprfx\\2 \\2"
6666 # Write the raw and C identifiers.
6667 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6668 # Fake it for dumpbin and say T for any non-static function
6669 # and D for any global variable.
6670 # Also find C++ and __fastcall symbols from MSVC++,
6671 # which start with @ or ?.
6672 lt_cv_sys_global_symbol_pipe="$AWK '"\
6673 " {last_section=section; section=\$ 3};"\
6674 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6675 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6676 " \$ 0!~/External *\|/{next};"\
6677 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6678 " {if(hide[section]) next};"\
6679 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6680 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6681 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6682 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6683 " ' prfx=^$ac_symprfx"
6684 else
6685 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6687 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6689 # Check to see that the pipe works correctly.
6690 pipe_works=no
6692 rm -f conftest*
6693 cat > conftest.$ac_ext <<_LT_EOF
6694 #ifdef __cplusplus
6695 extern "C" {
6696 #endif
6697 char nm_test_var;
6698 void nm_test_func(void);
6699 void nm_test_func(void){}
6700 #ifdef __cplusplus
6702 #endif
6703 int main(){nm_test_var='a';nm_test_func();return(0);}
6704 _LT_EOF
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6707 (eval $ac_compile) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; }; then
6711 # Now try to grab the symbols.
6712 nlist=conftest.nm
6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6714 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; } && test -s "$nlist"; then
6718 # Try sorting and uniquifying the output.
6719 if sort "$nlist" | uniq > "$nlist"T; then
6720 mv -f "$nlist"T "$nlist"
6721 else
6722 rm -f "$nlist"T
6725 # Make sure that we snagged all the symbols we need.
6726 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6727 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6728 cat <<_LT_EOF > conftest.$ac_ext
6729 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6730 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6731 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6732 relocations are performed -- see ld's documentation on pseudo-relocs. */
6733 # define LT_DLSYM_CONST
6734 #elif defined(__osf__)
6735 /* This system does not cope well with relocations in const data. */
6736 # define LT_DLSYM_CONST
6737 #else
6738 # define LT_DLSYM_CONST const
6739 #endif
6741 #ifdef __cplusplus
6742 extern "C" {
6743 #endif
6745 _LT_EOF
6746 # Now generate the symbol file.
6747 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6749 cat <<_LT_EOF >> conftest.$ac_ext
6751 /* The mapping between symbol names and symbols. */
6752 LT_DLSYM_CONST struct {
6753 const char *name;
6754 void *address;
6756 lt__PROGRAM__LTX_preloaded_symbols[] =
6758 { "@PROGRAM@", (void *) 0 },
6759 _LT_EOF
6760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6761 cat <<\_LT_EOF >> conftest.$ac_ext
6762 {0, (void *) 0}
6765 /* This works around a problem in FreeBSD linker */
6766 #ifdef FREEBSD_WORKAROUND
6767 static const void *lt_preloaded_setup() {
6768 return lt__PROGRAM__LTX_preloaded_symbols;
6770 #endif
6772 #ifdef __cplusplus
6774 #endif
6775 _LT_EOF
6776 # Now try linking the two files.
6777 mv conftest.$ac_objext conftstm.$ac_objext
6778 lt_globsym_save_LIBS=$LIBS
6779 lt_globsym_save_CFLAGS=$CFLAGS
6780 LIBS="conftstm.$ac_objext"
6781 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6783 (eval $ac_link) 2>&5
6784 ac_status=$?
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6787 pipe_works=yes
6789 LIBS=$lt_globsym_save_LIBS
6790 CFLAGS=$lt_globsym_save_CFLAGS
6791 else
6792 echo "cannot find nm_test_func in $nlist" >&5
6794 else
6795 echo "cannot find nm_test_var in $nlist" >&5
6797 else
6798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6800 else
6801 echo "$progname: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 rm -rf conftest* conftst*
6806 # Do not use the global_symbol_pipe unless it works.
6807 if test "$pipe_works" = yes; then
6808 break
6809 else
6810 lt_cv_sys_global_symbol_pipe=
6812 done
6816 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6817 lt_cv_sys_global_symbol_to_cdecl=
6819 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6821 $as_echo "failed" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6824 $as_echo "ok" >&6; }
6827 # Response file support.
6828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6829 nm_file_list_spec='@'
6830 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6831 nm_file_list_spec='@'
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6861 $as_echo_n "checking for sysroot... " >&6; }
6863 # Check whether --with-sysroot was given.
6864 if test "${with_sysroot+set}" = set; then :
6865 withval=$with_sysroot;
6866 else
6867 with_sysroot=no
6871 lt_sysroot=
6872 case ${with_sysroot} in #(
6873 yes)
6874 if test "$GCC" = yes; then
6875 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6877 ;; #(
6879 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6880 ;; #(
6881 no|'')
6882 ;; #(
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6885 $as_echo "${with_sysroot}" >&6; }
6886 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6888 esac
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6891 $as_echo "${lt_sysroot:-no}" >&6; }
6897 # Check whether --enable-libtool-lock was given.
6898 if test "${enable_libtool_lock+set}" = set; then :
6899 enableval=$enable_libtool_lock;
6902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6904 # Some flags need to be propagated to the compiler or linker for good
6905 # libtool support.
6906 case $host in
6907 ia64-*-hpux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }; then
6915 case `/usr/bin/file conftest.$ac_objext` in
6916 *ELF-32*)
6917 HPUX_IA64_MODE="32"
6919 *ELF-64*)
6920 HPUX_IA64_MODE="64"
6922 esac
6924 rm -rf conftest*
6926 *-*-irix6*)
6927 # Find out which ABI we are using.
6928 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 if test "$lt_cv_prog_gnu_ld" = yes; then
6935 case `/usr/bin/file conftest.$ac_objext` in
6936 *32-bit*)
6937 LD="${LD-ld} -melf32bsmip"
6939 *N32*)
6940 LD="${LD-ld} -melf32bmipn32"
6942 *64-bit*)
6943 LD="${LD-ld} -melf64bmip"
6945 esac
6946 else
6947 case `/usr/bin/file conftest.$ac_objext` in
6948 *32-bit*)
6949 LD="${LD-ld} -32"
6951 *N32*)
6952 LD="${LD-ld} -n32"
6954 *64-bit*)
6955 LD="${LD-ld} -64"
6957 esac
6960 rm -rf conftest*
6963 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6964 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6965 # Find out which ABI we are using.
6966 echo 'int i;' > conftest.$ac_ext
6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968 (eval $ac_compile) 2>&5
6969 ac_status=$?
6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; }; then
6972 case `/usr/bin/file conftest.o` in
6973 *32-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_i386_fbsd"
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_i386"
6981 ppc64-*linux*|powerpc64-*linux*)
6982 LD="${LD-ld} -m elf32ppclinux"
6984 s390x-*linux*)
6985 LD="${LD-ld} -m elf_s390"
6987 sparc64-*linux*)
6988 LD="${LD-ld} -m elf32_sparc"
6990 esac
6992 *64-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_x86_64_fbsd"
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_x86_64"
7000 ppc*-*linux*|powerpc*-*linux*)
7001 LD="${LD-ld} -m elf64ppc"
7003 s390*-*linux*|s390*-*tpf*)
7004 LD="${LD-ld} -m elf64_s390"
7006 sparc*-*linux*)
7007 LD="${LD-ld} -m elf64_sparc"
7009 esac
7011 esac
7013 rm -rf conftest*
7016 *-*-sco3.2v5*)
7017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7018 SAVE_CFLAGS="$CFLAGS"
7019 CFLAGS="$CFLAGS -belf"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7021 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7022 if ${lt_cv_cc_needs_belf+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 ac_ext=c
7026 ac_cpp='$CPP $CPPFLAGS'
7027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7035 main ()
7039 return 0;
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 lt_cv_cc_needs_belf=yes
7044 else
7045 lt_cv_cc_needs_belf=no
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7057 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7060 CFLAGS="$SAVE_CFLAGS"
7063 *-*solaris*)
7064 # Find out which ABI we are using.
7065 echo 'int i;' > conftest.$ac_ext
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067 (eval $ac_compile) 2>&5
7068 ac_status=$?
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }; then
7071 case `/usr/bin/file conftest.o` in
7072 *64-bit*)
7073 case $lt_cv_prog_gnu_ld in
7074 yes*)
7075 case $host in
7076 i?86-*-solaris*)
7077 LD="${LD-ld} -m elf_x86_64"
7079 sparc*-*-solaris*)
7080 LD="${LD-ld} -m elf64_sparc"
7082 esac
7083 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7084 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7085 LD="${LD-ld}_sol2"
7089 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7090 LD="${LD-ld} -64"
7093 esac
7095 esac
7097 rm -rf conftest*
7099 esac
7101 need_locks="$enable_libtool_lock"
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}mt; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$MANIFEST_TOOL"; then
7112 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7127 IFS=$as_save_IFS
7131 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7132 if test -n "$MANIFEST_TOOL"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7134 $as_echo "$MANIFEST_TOOL" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7142 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7143 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7144 # Extract the first word of "mt", so it can be a program name with args.
7145 set dummy mt; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 if test -n "$ac_ct_MANIFEST_TOOL"; then
7152 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7165 done
7166 done
7167 IFS=$as_save_IFS
7171 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7172 if test -n "$ac_ct_MANIFEST_TOOL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7174 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7175 else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7180 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7181 MANIFEST_TOOL=":"
7182 else
7183 case $cross_compiling:$ac_tool_warned in
7184 yes:)
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7191 else
7192 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7195 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7197 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7198 if ${lt_cv_path_mainfest_tool+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 lt_cv_path_mainfest_tool=no
7202 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7203 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7204 cat conftest.err >&5
7205 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7206 lt_cv_path_mainfest_tool=yes
7208 rm -f conftest*
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7211 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7212 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7213 MANIFEST_TOOL=:
7221 case $host_os in
7222 rhapsody* | darwin*)
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$DSYMUTIL"; then
7232 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7251 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7252 if test -n "$DSYMUTIL"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7254 $as_echo "$DSYMUTIL" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7262 if test -z "$ac_cv_prog_DSYMUTIL"; then
7263 ac_ct_DSYMUTIL=$DSYMUTIL
7264 # Extract the first word of "dsymutil", so it can be a program name with args.
7265 set dummy dsymutil; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -n "$ac_ct_DSYMUTIL"; then
7272 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7285 done
7286 done
7287 IFS=$as_save_IFS
7291 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7292 if test -n "$ac_ct_DSYMUTIL"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7294 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$ac_ct_DSYMUTIL" = x; then
7301 DSYMUTIL=":"
7302 else
7303 case $cross_compiling:$ac_tool_warned in
7304 yes:)
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307 ac_tool_warned=yes ;;
7308 esac
7309 DSYMUTIL=$ac_ct_DSYMUTIL
7311 else
7312 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_NMEDIT+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 if test -n "$NMEDIT"; then
7324 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7337 done
7338 done
7339 IFS=$as_save_IFS
7343 NMEDIT=$ac_cv_prog_NMEDIT
7344 if test -n "$NMEDIT"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7346 $as_echo "$NMEDIT" >&6; }
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_NMEDIT"; then
7355 ac_ct_NMEDIT=$NMEDIT
7356 # Extract the first word of "nmedit", so it can be a program name with args.
7357 set dummy nmedit; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 if test -n "$ac_ct_NMEDIT"; then
7364 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7377 done
7378 done
7379 IFS=$as_save_IFS
7383 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7384 if test -n "$ac_ct_NMEDIT"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7386 $as_echo "$ac_ct_NMEDIT" >&6; }
7387 else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_NMEDIT" = x; then
7393 NMEDIT=":"
7394 else
7395 case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401 NMEDIT=$ac_ct_NMEDIT
7403 else
7404 NMEDIT="$ac_cv_prog_NMEDIT"
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_LIPO+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$LIPO"; then
7416 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7435 LIPO=$ac_cv_prog_LIPO
7436 if test -n "$LIPO"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7438 $as_echo "$LIPO" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_LIPO"; then
7447 ac_ct_LIPO=$LIPO
7448 # Extract the first word of "lipo", so it can be a program name with args.
7449 set dummy lipo; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$ac_ct_LIPO"; then
7456 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_ac_ct_LIPO="lipo"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7475 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7476 if test -n "$ac_ct_LIPO"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7478 $as_echo "$ac_ct_LIPO" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_LIPO" = x; then
7485 LIPO=":"
7486 else
7487 case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493 LIPO=$ac_ct_LIPO
7495 else
7496 LIPO="$ac_cv_prog_LIPO"
7499 if test -n "$ac_tool_prefix"; then
7500 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}otool; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_OTOOL+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$OTOOL"; then
7508 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 OTOOL=$ac_cv_prog_OTOOL
7528 if test -n "$OTOOL"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7530 $as_echo "$OTOOL" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7538 if test -z "$ac_cv_prog_OTOOL"; then
7539 ac_ct_OTOOL=$OTOOL
7540 # Extract the first word of "otool", so it can be a program name with args.
7541 set dummy otool; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 if test -n "$ac_ct_OTOOL"; then
7548 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_prog_ac_ct_OTOOL="otool"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7561 done
7562 done
7563 IFS=$as_save_IFS
7567 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7568 if test -n "$ac_ct_OTOOL"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7570 $as_echo "$ac_ct_OTOOL" >&6; }
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7576 if test "x$ac_ct_OTOOL" = x; then
7577 OTOOL=":"
7578 else
7579 case $cross_compiling:$ac_tool_warned in
7580 yes:)
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned=yes ;;
7584 esac
7585 OTOOL=$ac_ct_OTOOL
7587 else
7588 OTOOL="$ac_cv_prog_OTOOL"
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_OTOOL64+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 if test -n "$OTOOL64"; then
7600 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7613 done
7614 done
7615 IFS=$as_save_IFS
7619 OTOOL64=$ac_cv_prog_OTOOL64
7620 if test -n "$OTOOL64"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7622 $as_echo "$OTOOL64" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7630 if test -z "$ac_cv_prog_OTOOL64"; then
7631 ac_ct_OTOOL64=$OTOOL64
7632 # Extract the first word of "otool64", so it can be a program name with args.
7633 set dummy otool64; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 if test -n "$ac_ct_OTOOL64"; then
7640 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_ac_ct_OTOOL64="otool64"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7659 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7660 if test -n "$ac_ct_OTOOL64"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7662 $as_echo "$ac_ct_OTOOL64" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7668 if test "x$ac_ct_OTOOL64" = x; then
7669 OTOOL64=":"
7670 else
7671 case $cross_compiling:$ac_tool_warned in
7672 yes:)
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned=yes ;;
7676 esac
7677 OTOOL64=$ac_ct_OTOOL64
7679 else
7680 OTOOL64="$ac_cv_prog_OTOOL64"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7710 $as_echo_n "checking for -single_module linker flag... " >&6; }
7711 if ${lt_cv_apple_cc_single_mod+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 lt_cv_apple_cc_single_mod=no
7715 if test -z "${LT_MULTI_MODULE}"; then
7716 # By default we will add the -single_module flag. You can override
7717 # by either setting the environment variable LT_MULTI_MODULE
7718 # non-empty at configure time, or by adding -multi_module to the
7719 # link flags.
7720 rm -rf libconftest.dylib*
7721 echo "int foo(void){return 1;}" > conftest.c
7722 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7723 -dynamiclib -Wl,-single_module conftest.c" >&5
7724 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7725 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7726 _lt_result=$?
7727 # If there is a non-empty error log, and "single_module"
7728 # appears in it, assume the flag caused a linker warning
7729 if test -s conftest.err && $GREP single_module conftest.err; then
7730 cat conftest.err >&5
7731 # Otherwise, if the output was created with a 0 exit code from
7732 # the compiler, it worked.
7733 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7734 lt_cv_apple_cc_single_mod=yes
7735 else
7736 cat conftest.err >&5
7738 rm -rf libconftest.dylib*
7739 rm -f conftest.*
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7743 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7746 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7747 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 lt_cv_ld_exported_symbols_list=no
7751 save_LDFLAGS=$LDFLAGS
7752 echo "_main" > conftest.sym
7753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 main ()
7762 return 0;
7764 _ACEOF
7765 if ac_fn_c_try_link "$LINENO"; then :
7766 lt_cv_ld_exported_symbols_list=yes
7767 else
7768 lt_cv_ld_exported_symbols_list=no
7770 rm -f core conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LDFLAGS="$save_LDFLAGS"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7776 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7779 $as_echo_n "checking for -force_load linker flag... " >&6; }
7780 if ${lt_cv_ld_force_load+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 lt_cv_ld_force_load=no
7784 cat > conftest.c << _LT_EOF
7785 int forced_loaded() { return 2;}
7786 _LT_EOF
7787 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7788 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7789 echo "$AR cru libconftest.a conftest.o" >&5
7790 $AR cru libconftest.a conftest.o 2>&5
7791 echo "$RANLIB libconftest.a" >&5
7792 $RANLIB libconftest.a 2>&5
7793 cat > conftest.c << _LT_EOF
7794 int main() { return 0;}
7795 _LT_EOF
7796 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7797 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7798 _lt_result=$?
7799 if test -s conftest.err && $GREP force_load conftest.err; then
7800 cat conftest.err >&5
7801 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7802 lt_cv_ld_force_load=yes
7803 else
7804 cat conftest.err >&5
7806 rm -f conftest.err libconftest.a conftest conftest.c
7807 rm -rf conftest.dSYM
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7811 $as_echo "$lt_cv_ld_force_load" >&6; }
7812 case $host_os in
7813 rhapsody* | darwin1.[012])
7814 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7815 darwin1.*)
7816 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7817 darwin*) # darwin 5.x on
7818 # if running on 10.5 or later, the deployment target defaults
7819 # to the OS version, if on x86, and 10.4, the deployment
7820 # target defaults to 10.4. Don't you love it?
7821 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7822 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7823 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7824 10.[012]*)
7825 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7826 10.*)
7827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7828 esac
7830 esac
7831 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7832 _lt_dar_single_mod='$single_module'
7834 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7835 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7836 else
7837 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7839 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7840 _lt_dsymutil='~$DSYMUTIL $lib || :'
7841 else
7842 _lt_dsymutil=
7845 esac
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7848 $as_echo_n "checking for ANSI C header files... " >&6; }
7849 if ${ac_cv_header_stdc+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 #include <stdlib.h>
7855 #include <stdarg.h>
7856 #include <string.h>
7857 #include <float.h>
7860 main ()
7864 return 0;
7866 _ACEOF
7867 if ac_fn_c_try_compile "$LINENO"; then :
7868 ac_cv_header_stdc=yes
7869 else
7870 ac_cv_header_stdc=no
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 if test $ac_cv_header_stdc = yes; then
7875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <string.h>
7880 _ACEOF
7881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7882 $EGREP "memchr" >/dev/null 2>&1; then :
7884 else
7885 ac_cv_header_stdc=no
7887 rm -f conftest*
7891 if test $ac_cv_header_stdc = yes; then
7892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #include <stdlib.h>
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "free" >/dev/null 2>&1; then :
7901 else
7902 ac_cv_header_stdc=no
7904 rm -f conftest*
7908 if test $ac_cv_header_stdc = yes; then
7909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7910 if test "$cross_compiling" = yes; then :
7912 else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 #include <ctype.h>
7916 #include <stdlib.h>
7917 #if ((' ' & 0x0FF) == 0x020)
7918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7920 #else
7921 # define ISLOWER(c) \
7922 (('a' <= (c) && (c) <= 'i') \
7923 || ('j' <= (c) && (c) <= 'r') \
7924 || ('s' <= (c) && (c) <= 'z'))
7925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7926 #endif
7928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7930 main ()
7932 int i;
7933 for (i = 0; i < 256; i++)
7934 if (XOR (islower (i), ISLOWER (i))
7935 || toupper (i) != TOUPPER (i))
7936 return 2;
7937 return 0;
7939 _ACEOF
7940 if ac_fn_c_try_run "$LINENO"; then :
7942 else
7943 ac_cv_header_stdc=no
7945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7946 conftest.$ac_objext conftest.beam conftest.$ac_ext
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7952 $as_echo "$ac_cv_header_stdc" >&6; }
7953 if test $ac_cv_header_stdc = yes; then
7955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7961 inttypes.h stdint.h unistd.h
7962 do :
7963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7967 cat >>confdefs.h <<_ACEOF
7968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7969 _ACEOF
7973 done
7976 for ac_header in dlfcn.h
7977 do :
7978 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7980 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_DLFCN_H 1
7983 _ACEOF
7987 done
7993 # Set options
7997 enable_dlopen=no
8000 enable_win32_dll=no
8003 # Check whether --enable-shared was given.
8004 if test "${enable_shared+set}" = set; then :
8005 enableval=$enable_shared; p=${PACKAGE-default}
8006 case $enableval in
8007 yes) enable_shared=yes ;;
8008 no) enable_shared=no ;;
8010 enable_shared=no
8011 # Look at the argument we got. We use all the common list separators.
8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8013 for pkg in $enableval; do
8014 IFS="$lt_save_ifs"
8015 if test "X$pkg" = "X$p"; then
8016 enable_shared=yes
8018 done
8019 IFS="$lt_save_ifs"
8021 esac
8022 else
8023 enable_shared=yes
8034 # Check whether --enable-static was given.
8035 if test "${enable_static+set}" = set; then :
8036 enableval=$enable_static; p=${PACKAGE-default}
8037 case $enableval in
8038 yes) enable_static=yes ;;
8039 no) enable_static=no ;;
8041 enable_static=no
8042 # Look at the argument we got. We use all the common list separators.
8043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8044 for pkg in $enableval; do
8045 IFS="$lt_save_ifs"
8046 if test "X$pkg" = "X$p"; then
8047 enable_static=yes
8049 done
8050 IFS="$lt_save_ifs"
8052 esac
8053 else
8054 enable_static=yes
8066 # Check whether --with-pic was given.
8067 if test "${with_pic+set}" = set; then :
8068 withval=$with_pic; lt_p=${PACKAGE-default}
8069 case $withval in
8070 yes|no) pic_mode=$withval ;;
8072 pic_mode=default
8073 # Look at the argument we got. We use all the common list separators.
8074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8075 for lt_pkg in $withval; do
8076 IFS="$lt_save_ifs"
8077 if test "X$lt_pkg" = "X$lt_p"; then
8078 pic_mode=yes
8080 done
8081 IFS="$lt_save_ifs"
8083 esac
8084 else
8085 pic_mode=default
8089 test -z "$pic_mode" && pic_mode=default
8097 # Check whether --enable-fast-install was given.
8098 if test "${enable_fast_install+set}" = set; then :
8099 enableval=$enable_fast_install; p=${PACKAGE-default}
8100 case $enableval in
8101 yes) enable_fast_install=yes ;;
8102 no) enable_fast_install=no ;;
8104 enable_fast_install=no
8105 # Look at the argument we got. We use all the common list separators.
8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8107 for pkg in $enableval; do
8108 IFS="$lt_save_ifs"
8109 if test "X$pkg" = "X$p"; then
8110 enable_fast_install=yes
8112 done
8113 IFS="$lt_save_ifs"
8115 esac
8116 else
8117 enable_fast_install=yes
8130 # This can be used to rebuild libtool when needed
8131 LIBTOOL_DEPS="$ltmain"
8133 # Always use our own libtool.
8134 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8165 test -z "$LN_S" && LN_S="ln -s"
8180 if test -n "${ZSH_VERSION+set}" ; then
8181 setopt NO_GLOB_SUBST
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8185 $as_echo_n "checking for objdir... " >&6; }
8186 if ${lt_cv_objdir+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 rm -f .libs 2>/dev/null
8190 mkdir .libs 2>/dev/null
8191 if test -d .libs; then
8192 lt_cv_objdir=.libs
8193 else
8194 # MS-DOS does not allow filenames that begin with a dot.
8195 lt_cv_objdir=_libs
8197 rmdir .libs 2>/dev/null
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8200 $as_echo "$lt_cv_objdir" >&6; }
8201 objdir=$lt_cv_objdir
8207 cat >>confdefs.h <<_ACEOF
8208 #define LT_OBJDIR "$lt_cv_objdir/"
8209 _ACEOF
8214 case $host_os in
8215 aix3*)
8216 # AIX sometimes has problems with the GCC collect2 program. For some
8217 # reason, if we set the COLLECT_NAMES environment variable, the problems
8218 # vanish in a puff of smoke.
8219 if test "X${COLLECT_NAMES+set}" != Xset; then
8220 COLLECT_NAMES=
8221 export COLLECT_NAMES
8224 esac
8226 # Global variables:
8227 ofile=libtool
8228 can_build_shared=yes
8230 # All known linkers require a `.a' archive for static linking (except MSVC,
8231 # which needs '.lib').
8232 libext=a
8234 with_gnu_ld="$lt_cv_prog_gnu_ld"
8236 old_CC="$CC"
8237 old_CFLAGS="$CFLAGS"
8239 # Set sane defaults for various variables
8240 test -z "$CC" && CC=cc
8241 test -z "$LTCC" && LTCC=$CC
8242 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8243 test -z "$LD" && LD=ld
8244 test -z "$ac_objext" && ac_objext=o
8246 for cc_temp in $compiler""; do
8247 case $cc_temp in
8248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8250 \-*) ;;
8251 *) break;;
8252 esac
8253 done
8254 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8257 # Only perform the check for file, if the check method requires it
8258 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8259 case $deplibs_check_method in
8260 file_magic*)
8261 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8263 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8264 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 case $MAGIC_CMD in
8268 [\\/*] | ?:[\\/]*)
8269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8272 lt_save_MAGIC_CMD="$MAGIC_CMD"
8273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8275 for ac_dir in $ac_dummy; do
8276 IFS="$lt_save_ifs"
8277 test -z "$ac_dir" && ac_dir=.
8278 if test -f $ac_dir/${ac_tool_prefix}file; then
8279 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8280 if test -n "$file_magic_test_file"; then
8281 case $deplibs_check_method in
8282 "file_magic "*)
8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8286 $EGREP "$file_magic_regex" > /dev/null; then
8288 else
8289 cat <<_LT_EOF 1>&2
8291 *** Warning: the command libtool uses to detect shared libraries,
8292 *** $file_magic_cmd, produces output that libtool cannot recognize.
8293 *** The result is that libtool may fail to recognize shared libraries
8294 *** as such. This will affect the creation of libtool libraries that
8295 *** depend on shared libraries, but programs linked with such libtool
8296 *** libraries will work regardless of this problem. Nevertheless, you
8297 *** may want to report the problem to your system manager and/or to
8298 *** bug-libtool@gnu.org
8300 _LT_EOF
8301 fi ;;
8302 esac
8304 break
8306 done
8307 IFS="$lt_save_ifs"
8308 MAGIC_CMD="$lt_save_MAGIC_CMD"
8310 esac
8313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8314 if test -n "$MAGIC_CMD"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8316 $as_echo "$MAGIC_CMD" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8326 if test -z "$lt_cv_path_MAGIC_CMD"; then
8327 if test -n "$ac_tool_prefix"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8329 $as_echo_n "checking for file... " >&6; }
8330 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 case $MAGIC_CMD in
8334 [\\/*] | ?:[\\/]*)
8335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8338 lt_save_MAGIC_CMD="$MAGIC_CMD"
8339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8341 for ac_dir in $ac_dummy; do
8342 IFS="$lt_save_ifs"
8343 test -z "$ac_dir" && ac_dir=.
8344 if test -f $ac_dir/file; then
8345 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8346 if test -n "$file_magic_test_file"; then
8347 case $deplibs_check_method in
8348 "file_magic "*)
8349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8352 $EGREP "$file_magic_regex" > /dev/null; then
8354 else
8355 cat <<_LT_EOF 1>&2
8357 *** Warning: the command libtool uses to detect shared libraries,
8358 *** $file_magic_cmd, produces output that libtool cannot recognize.
8359 *** The result is that libtool may fail to recognize shared libraries
8360 *** as such. This will affect the creation of libtool libraries that
8361 *** depend on shared libraries, but programs linked with such libtool
8362 *** libraries will work regardless of this problem. Nevertheless, you
8363 *** may want to report the problem to your system manager and/or to
8364 *** bug-libtool@gnu.org
8366 _LT_EOF
8367 fi ;;
8368 esac
8370 break
8372 done
8373 IFS="$lt_save_ifs"
8374 MAGIC_CMD="$lt_save_MAGIC_CMD"
8376 esac
8379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8380 if test -n "$MAGIC_CMD"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8382 $as_echo "$MAGIC_CMD" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8389 else
8390 MAGIC_CMD=:
8396 esac
8398 # Use C for the default configuration in the libtool script
8400 lt_save_CC="$CC"
8401 ac_ext=c
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408 # Source file extension for C test sources.
8409 ac_ext=c
8411 # Object file extension for compiled C test sources.
8412 objext=o
8413 objext=$objext
8415 # Code to be used in simple compile tests
8416 lt_simple_compile_test_code="int some_variable = 0;"
8418 # Code to be used in simple link tests
8419 lt_simple_link_test_code='int main(){return(0);}'
8427 # If no C compiler was specified, use CC.
8428 LTCC=${LTCC-"$CC"}
8430 # If no C compiler flags were specified, use CFLAGS.
8431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8433 # Allow CC to be a program name with arguments.
8434 compiler=$CC
8436 # Save the default compiler, since it gets overwritten when the other
8437 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8438 compiler_DEFAULT=$CC
8440 # save warnings/boilerplate of simple test code
8441 ac_outfile=conftest.$ac_objext
8442 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8443 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8444 _lt_compiler_boilerplate=`cat conftest.err`
8445 $RM conftest*
8447 ac_outfile=conftest.$ac_objext
8448 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8449 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8450 _lt_linker_boilerplate=`cat conftest.err`
8451 $RM -r conftest*
8454 ## CAVEAT EMPTOR:
8455 ## There is no encapsulation within the following macros, do not change
8456 ## the running order or otherwise move them around unless you know exactly
8457 ## what you are doing...
8458 if test -n "$compiler"; then
8460 lt_prog_compiler_no_builtin_flag=
8462 if test "$GCC" = yes; then
8463 case $cc_basename in
8464 nvcc*)
8465 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8467 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8468 esac
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8471 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8472 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 lt_cv_prog_compiler_rtti_exceptions=no
8476 ac_outfile=conftest.$ac_objext
8477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478 lt_compiler_flag="-fno-rtti -fno-exceptions"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 # The option is referenced via a variable to avoid confusing sed.
8484 lt_compile=`echo "$ac_compile" | $SED \
8485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8487 -e 's:$: $lt_compiler_flag:'`
8488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8489 (eval "$lt_compile" 2>conftest.err)
8490 ac_status=$?
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 if (exit $ac_status) && test -s "$ac_outfile"; then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings other than the usual output.
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_rtti_exceptions=yes
8502 $RM conftest*
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8506 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8509 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8510 else
8521 lt_prog_compiler_wl=
8522 lt_prog_compiler_pic=
8523 lt_prog_compiler_static=
8526 if test "$GCC" = yes; then
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_static='-static'
8530 case $host_os in
8531 aix*)
8532 # All AIX code is PIC.
8533 if test "$host_cpu" = ia64; then
8534 # AIX 5 now supports IA64 processor
8535 lt_prog_compiler_static='-Bstatic'
8539 amigaos*)
8540 case $host_cpu in
8541 powerpc)
8542 # see comment about AmigaOS4 .so support
8543 lt_prog_compiler_pic='-fPIC'
8545 m68k)
8546 # FIXME: we need at least 68020 code to build shared libraries, but
8547 # adding the `-m68020' flag to GCC prevents building anything better,
8548 # like `-m68040'.
8549 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8551 esac
8554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8555 # PIC is the default for these OSes.
8558 mingw* | cygwin* | pw32* | os2* | cegcc*)
8559 # This hack is so that the source file can tell whether it is being
8560 # built for inclusion in a dll (and should export symbols for example).
8561 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8562 # (--disable-auto-import) libraries
8563 lt_prog_compiler_pic='-DDLL_EXPORT'
8566 darwin* | rhapsody*)
8567 # PIC is the default on this platform
8568 # Common symbols not allowed in MH_DYLIB files
8569 lt_prog_compiler_pic='-fno-common'
8572 haiku*)
8573 # PIC is the default for Haiku.
8574 # The "-static" flag exists, but is broken.
8575 lt_prog_compiler_static=
8578 hpux*)
8579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8581 # sets the default TLS model and affects inlining.
8582 case $host_cpu in
8583 hppa*64*)
8584 # +Z the default
8587 lt_prog_compiler_pic='-fPIC'
8589 esac
8592 interix[3-9]*)
8593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8594 # Instead, we relocate shared libraries at runtime.
8597 msdosdjgpp*)
8598 # Just because we use GCC doesn't mean we suddenly get shared libraries
8599 # on systems that don't support them.
8600 lt_prog_compiler_can_build_shared=no
8601 enable_shared=no
8604 *nto* | *qnx*)
8605 # QNX uses GNU C++, but need to define -shared option too, otherwise
8606 # it will coredump.
8607 lt_prog_compiler_pic='-fPIC -shared'
8610 sysv4*MP*)
8611 if test -d /usr/nec; then
8612 lt_prog_compiler_pic=-Kconform_pic
8617 lt_prog_compiler_pic='-fPIC'
8619 esac
8621 case $cc_basename in
8622 nvcc*) # Cuda Compiler Driver 2.2
8623 lt_prog_compiler_wl='-Xlinker '
8624 if test -n "$lt_prog_compiler_pic"; then
8625 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8628 esac
8629 else
8630 # PORTME Check for flag to pass linker flags through the system compiler.
8631 case $host_os in
8632 aix*)
8633 lt_prog_compiler_wl='-Wl,'
8634 if test "$host_cpu" = ia64; then
8635 # AIX 5 now supports IA64 processor
8636 lt_prog_compiler_static='-Bstatic'
8637 else
8638 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8642 mingw* | cygwin* | pw32* | os2* | cegcc*)
8643 # This hack is so that the source file can tell whether it is being
8644 # built for inclusion in a dll (and should export symbols for example).
8645 lt_prog_compiler_pic='-DDLL_EXPORT'
8648 hpux9* | hpux10* | hpux11*)
8649 lt_prog_compiler_wl='-Wl,'
8650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8651 # not for PA HP-UX.
8652 case $host_cpu in
8653 hppa*64*|ia64*)
8654 # +Z the default
8657 lt_prog_compiler_pic='+Z'
8659 esac
8660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8661 lt_prog_compiler_static='${wl}-a ${wl}archive'
8664 irix5* | irix6* | nonstopux*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # PIC (with -KPIC) is the default.
8667 lt_prog_compiler_static='-non_shared'
8670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8671 case $cc_basename in
8672 # old Intel for x86_64 which still supported -KPIC.
8673 ecc*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='-KPIC'
8676 lt_prog_compiler_static='-static'
8678 # icc used to be incompatible with GCC.
8679 # ICC 10 doesn't accept -KPIC any more.
8680 icc* | ifort*)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fPIC'
8683 lt_prog_compiler_static='-static'
8685 # Lahey Fortran 8.1.
8686 lf95*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='--shared'
8689 lt_prog_compiler_static='--static'
8691 nagfor*)
8692 # NAG Fortran compiler
8693 lt_prog_compiler_wl='-Wl,-Wl,,'
8694 lt_prog_compiler_pic='-PIC'
8695 lt_prog_compiler_static='-Bstatic'
8697 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8698 # Portland Group compilers (*not* the Pentium gcc compiler,
8699 # which looks to be a dead project)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-fpic'
8702 lt_prog_compiler_static='-Bstatic'
8704 ccc*)
8705 lt_prog_compiler_wl='-Wl,'
8706 # All Alpha code is PIC.
8707 lt_prog_compiler_static='-non_shared'
8709 xl* | bgxl* | bgf* | mpixl*)
8710 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-qpic'
8713 lt_prog_compiler_static='-qstaticlink'
8716 case `$CC -V 2>&1 | sed 5q` in
8717 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8718 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8719 lt_prog_compiler_pic='-KPIC'
8720 lt_prog_compiler_static='-Bstatic'
8721 lt_prog_compiler_wl=''
8723 *Sun\ F* | *Sun*Fortran*)
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_wl='-Qoption ld '
8728 *Sun\ C*)
8729 # Sun C 5.9
8730 lt_prog_compiler_pic='-KPIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 lt_prog_compiler_wl='-Wl,'
8734 *Intel*\ [CF]*Compiler*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-fPIC'
8737 lt_prog_compiler_static='-static'
8739 *Portland\ Group*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-fpic'
8742 lt_prog_compiler_static='-Bstatic'
8744 esac
8746 esac
8749 newsos6)
8750 lt_prog_compiler_pic='-KPIC'
8751 lt_prog_compiler_static='-Bstatic'
8754 *nto* | *qnx*)
8755 # QNX uses GNU C++, but need to define -shared option too, otherwise
8756 # it will coredump.
8757 lt_prog_compiler_pic='-fPIC -shared'
8760 osf3* | osf4* | osf5*)
8761 lt_prog_compiler_wl='-Wl,'
8762 # All OSF/1 code is PIC.
8763 lt_prog_compiler_static='-non_shared'
8766 rdos*)
8767 lt_prog_compiler_static='-non_shared'
8770 solaris*)
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-Bstatic'
8773 case $cc_basename in
8774 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8775 lt_prog_compiler_wl='-Qoption ld ';;
8777 lt_prog_compiler_wl='-Wl,';;
8778 esac
8781 sunos4*)
8782 lt_prog_compiler_wl='-Qoption ld '
8783 lt_prog_compiler_pic='-PIC'
8784 lt_prog_compiler_static='-Bstatic'
8787 sysv4 | sysv4.2uw2* | sysv4.3*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8793 sysv4*MP*)
8794 if test -d /usr/nec ;then
8795 lt_prog_compiler_pic='-Kconform_pic'
8796 lt_prog_compiler_static='-Bstatic'
8800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8806 unicos*)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_can_build_shared=no
8811 uts4*)
8812 lt_prog_compiler_pic='-pic'
8813 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_can_build_shared=no
8819 esac
8822 case $host_os in
8823 # For platforms which do not support PIC, -DPIC is meaningless:
8824 *djgpp*)
8825 lt_prog_compiler_pic=
8828 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8830 esac
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8833 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8834 if ${lt_cv_prog_compiler_pic+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8840 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8841 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8844 # Check to make sure the PIC flag actually works.
8846 if test -n "$lt_prog_compiler_pic"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8848 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8849 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 lt_cv_prog_compiler_pic_works=no
8853 ac_outfile=conftest.$ac_objext
8854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8855 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8856 # Insert the option either (1) after the last *FLAGS variable, or
8857 # (2) before a word containing "conftest.", or (3) at the end.
8858 # Note that $ac_compile itself does not contain backslashes and begins
8859 # with a dollar sign (not a hyphen), so the echo should work correctly.
8860 # The option is referenced via a variable to avoid confusing sed.
8861 lt_compile=`echo "$ac_compile" | $SED \
8862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8864 -e 's:$: $lt_compiler_flag:'`
8865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8866 (eval "$lt_compile" 2>conftest.err)
8867 ac_status=$?
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 if (exit $ac_status) && test -s "$ac_outfile"; then
8871 # The compiler can only warn and ignore the option if not recognized
8872 # So say no if there are warnings other than the usual output.
8873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8876 lt_cv_prog_compiler_pic_works=yes
8879 $RM conftest*
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8883 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8885 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8886 case $lt_prog_compiler_pic in
8887 "" | " "*) ;;
8888 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8889 esac
8890 else
8891 lt_prog_compiler_pic=
8892 lt_prog_compiler_can_build_shared=no
8908 # Check to make sure the static flag actually works.
8910 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8912 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8913 if ${lt_cv_prog_compiler_static_works+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 lt_cv_prog_compiler_static_works=no
8917 save_LDFLAGS="$LDFLAGS"
8918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8919 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8921 # The linker can only warn and ignore the option if not recognized
8922 # So say no if there are warnings
8923 if test -s conftest.err; then
8924 # Append any errors to the config.log.
8925 cat conftest.err 1>&5
8926 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8928 if diff conftest.exp conftest.er2 >/dev/null; then
8929 lt_cv_prog_compiler_static_works=yes
8931 else
8932 lt_cv_prog_compiler_static_works=yes
8935 $RM -r conftest*
8936 LDFLAGS="$save_LDFLAGS"
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8940 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8942 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8944 else
8945 lt_prog_compiler_static=
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8955 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8956 if ${lt_cv_prog_compiler_c_o+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 lt_cv_prog_compiler_c_o=no
8960 $RM -r conftest 2>/dev/null
8961 mkdir conftest
8962 cd conftest
8963 mkdir out
8964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8966 lt_compiler_flag="-o out/conftest2.$ac_objext"
8967 # Insert the option either (1) after the last *FLAGS variable, or
8968 # (2) before a word containing "conftest.", or (3) at the end.
8969 # Note that $ac_compile itself does not contain backslashes and begins
8970 # with a dollar sign (not a hyphen), so the echo should work correctly.
8971 lt_compile=`echo "$ac_compile" | $SED \
8972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8974 -e 's:$: $lt_compiler_flag:'`
8975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8976 (eval "$lt_compile" 2>out/conftest.err)
8977 ac_status=$?
8978 cat out/conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8981 then
8982 # The compiler can only warn and ignore the option if not recognized
8983 # So say no if there are warnings
8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8987 lt_cv_prog_compiler_c_o=yes
8990 chmod u+w . 2>&5
8991 $RM conftest*
8992 # SGI C++ compiler will create directory out/ii_files/ for
8993 # template instantiation
8994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8995 $RM out/* && rmdir out
8996 cd ..
8997 $RM -r conftest
8998 $RM conftest*
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9002 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9010 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9011 if ${lt_cv_prog_compiler_c_o+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_prog_compiler_c_o=no
9015 $RM -r conftest 2>/dev/null
9016 mkdir conftest
9017 cd conftest
9018 mkdir out
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021 lt_compiler_flag="-o out/conftest2.$ac_objext"
9022 # Insert the option either (1) after the last *FLAGS variable, or
9023 # (2) before a word containing "conftest.", or (3) at the end.
9024 # Note that $ac_compile itself does not contain backslashes and begins
9025 # with a dollar sign (not a hyphen), so the echo should work correctly.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9031 (eval "$lt_compile" 2>out/conftest.err)
9032 ac_status=$?
9033 cat out/conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9036 then
9037 # The compiler can only warn and ignore the option if not recognized
9038 # So say no if there are warnings
9039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9042 lt_cv_prog_compiler_c_o=yes
9045 chmod u+w . 2>&5
9046 $RM conftest*
9047 # SGI C++ compiler will create directory out/ii_files/ for
9048 # template instantiation
9049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9050 $RM out/* && rmdir out
9051 cd ..
9052 $RM -r conftest
9053 $RM conftest*
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9057 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9062 hard_links="nottested"
9063 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9064 # do not overwrite the value of need_locks provided by the user
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9066 $as_echo_n "checking if we can lock with hard links... " >&6; }
9067 hard_links=yes
9068 $RM conftest*
9069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9070 touch conftest.a
9071 ln conftest.a conftest.b 2>&5 || hard_links=no
9072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9074 $as_echo "$hard_links" >&6; }
9075 if test "$hard_links" = no; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9077 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9078 need_locks=warn
9080 else
9081 need_locks=no
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9090 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9092 runpath_var=
9093 allow_undefined_flag=
9094 always_export_symbols=no
9095 archive_cmds=
9096 archive_expsym_cmds=
9097 compiler_needs_object=no
9098 enable_shared_with_static_runtimes=no
9099 export_dynamic_flag_spec=
9100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9101 hardcode_automatic=no
9102 hardcode_direct=no
9103 hardcode_direct_absolute=no
9104 hardcode_libdir_flag_spec=
9105 hardcode_libdir_separator=
9106 hardcode_minus_L=no
9107 hardcode_shlibpath_var=unsupported
9108 inherit_rpath=no
9109 link_all_deplibs=unknown
9110 module_cmds=
9111 module_expsym_cmds=
9112 old_archive_from_new_cmds=
9113 old_archive_from_expsyms_cmds=
9114 thread_safe_flag_spec=
9115 whole_archive_flag_spec=
9116 # include_expsyms should be a list of space-separated symbols to be *always*
9117 # included in the symbol list
9118 include_expsyms=
9119 # exclude_expsyms can be an extended regexp of symbols to exclude
9120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9122 # as well as any symbol that contains `d'.
9123 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9125 # platforms (ab)use it in PIC code, but their linkers get confused if
9126 # the symbol is explicitly referenced. Since portable code cannot
9127 # rely on this symbol name, it's probably fine to never include it in
9128 # preloaded symbol tables.
9129 # Exclude shared library initialization/finalization symbols.
9130 extract_expsyms_cmds=
9132 case $host_os in
9133 cygwin* | mingw* | pw32* | cegcc*)
9134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9135 # When not using gcc, we currently assume that we are using
9136 # Microsoft Visual C++.
9137 if test "$GCC" != yes; then
9138 with_gnu_ld=no
9141 interix*)
9142 # we just hope/assume this is gcc and not c89 (= MSVC++)
9143 with_gnu_ld=yes
9145 openbsd*)
9146 with_gnu_ld=no
9148 esac
9150 ld_shlibs=yes
9152 # On some targets, GNU ld is compatible enough with the native linker
9153 # that we're better off using the native interface for both.
9154 lt_use_gnu_ld_interface=no
9155 if test "$with_gnu_ld" = yes; then
9156 case $host_os in
9157 aix*)
9158 # The AIX port of GNU ld has always aspired to compatibility
9159 # with the native linker. However, as the warning in the GNU ld
9160 # block says, versions before 2.19.5* couldn't really create working
9161 # shared libraries, regardless of the interface used.
9162 case `$LD -v 2>&1` in
9163 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9164 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9165 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9167 lt_use_gnu_ld_interface=yes
9169 esac
9172 lt_use_gnu_ld_interface=yes
9174 esac
9177 if test "$lt_use_gnu_ld_interface" = yes; then
9178 # If archive_cmds runs LD, not CC, wlarc should be empty
9179 wlarc='${wl}'
9181 # Set some defaults for GNU ld with shared library support. These
9182 # are reset later if shared libraries are not supported. Putting them
9183 # here allows them to be overridden if necessary.
9184 runpath_var=LD_RUN_PATH
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 export_dynamic_flag_spec='${wl}--export-dynamic'
9187 # ancient GNU ld didn't support --whole-archive et. al.
9188 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9189 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9190 else
9191 whole_archive_flag_spec=
9193 supports_anon_versioning=no
9194 case `$LD -v 2>&1` in
9195 *GNU\ gold*) supports_anon_versioning=yes ;;
9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9199 *\ 2.11.*) ;; # other 2.11 versions
9200 *) supports_anon_versioning=yes ;;
9201 esac
9203 # See if GNU ld supports shared libraries.
9204 case $host_os in
9205 aix[3-9]*)
9206 # On AIX/PPC, the GNU linker is very broken
9207 if test "$host_cpu" != ia64; then
9208 ld_shlibs=no
9209 cat <<_LT_EOF 1>&2
9211 *** Warning: the GNU linker, at least up to release 2.19, is reported
9212 *** to be unable to reliably create shared libraries on AIX.
9213 *** Therefore, libtool is disabling shared libraries support. If you
9214 *** really care for shared libraries, you may want to install binutils
9215 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9216 *** You will then need to restart the configuration process.
9218 _LT_EOF
9222 amigaos*)
9223 case $host_cpu in
9224 powerpc)
9225 # see comment about AmigaOS4 .so support
9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds=''
9229 m68k)
9230 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)'
9231 hardcode_libdir_flag_spec='-L$libdir'
9232 hardcode_minus_L=yes
9234 esac
9237 beos*)
9238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9239 allow_undefined_flag=unsupported
9240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9241 # support --undefined. This deserves some investigation. FIXME
9242 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243 else
9244 ld_shlibs=no
9248 cygwin* | mingw* | pw32* | cegcc*)
9249 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9250 # as there is no search path for DLLs.
9251 hardcode_libdir_flag_spec='-L$libdir'
9252 export_dynamic_flag_spec='${wl}--export-all-symbols'
9253 allow_undefined_flag=unsupported
9254 always_export_symbols=no
9255 enable_shared_with_static_runtimes=yes
9256 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'
9257 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9261 # If the export-symbols file already is a .def file (1st line
9262 # is EXPORTS), use it as is; otherwise, prepend...
9263 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9264 cp $export_symbols $output_objdir/$soname.def;
9265 else
9266 echo EXPORTS > $output_objdir/$soname.def;
9267 cat $export_symbols >> $output_objdir/$soname.def;
9269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9270 else
9271 ld_shlibs=no
9275 haiku*)
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 link_all_deplibs=yes
9280 interix[3-9]*)
9281 hardcode_direct=no
9282 hardcode_shlibpath_var=no
9283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9284 export_dynamic_flag_spec='${wl}-E'
9285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9286 # Instead, shared libraries are loaded at an image base (0x10000000 by
9287 # default) and relocated if they conflict, which is a slow very memory
9288 # consuming and fragmenting process. To avoid this, we pick a random,
9289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9292 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'
9295 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9296 tmp_diet=no
9297 if test "$host_os" = linux-dietlibc; then
9298 case $cc_basename in
9299 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9300 esac
9302 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9303 && test "$tmp_diet" = no
9304 then
9305 tmp_addflag=' $pic_flag'
9306 tmp_sharedflag='-shared'
9307 case $cc_basename,$host_cpu in
9308 pgcc*) # Portland Group C compiler
9309 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'
9310 tmp_addflag=' $pic_flag'
9312 pgf77* | pgf90* | pgf95* | pgfortran*)
9313 # Portland Group f77 and f90 compilers
9314 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'
9315 tmp_addflag=' $pic_flag -Mnomain' ;;
9316 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9317 tmp_addflag=' -i_dynamic' ;;
9318 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9319 tmp_addflag=' -i_dynamic -nofor_main' ;;
9320 ifc* | ifort*) # Intel Fortran compiler
9321 tmp_addflag=' -nofor_main' ;;
9322 lf95*) # Lahey Fortran 8.1
9323 whole_archive_flag_spec=
9324 tmp_sharedflag='--shared' ;;
9325 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9326 tmp_sharedflag='-qmkshrobj'
9327 tmp_addflag= ;;
9328 nvcc*) # Cuda Compiler Driver 2.2
9329 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'
9330 compiler_needs_object=yes
9332 esac
9333 case `$CC -V 2>&1 | sed 5q` in
9334 *Sun\ C*) # Sun C 5.9
9335 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'
9336 compiler_needs_object=yes
9337 tmp_sharedflag='-G' ;;
9338 *Sun\ F*) # Sun Fortran 8.3
9339 tmp_sharedflag='-G' ;;
9340 esac
9341 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 if test "x$supports_anon_versioning" = xyes; then
9344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9346 echo "local: *; };" >> $output_objdir/$libname.ver~
9347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9350 case $cc_basename in
9351 xlf* | bgf* | bgxlf* | mpixlf*)
9352 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9353 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9356 if test "x$supports_anon_versioning" = xyes; then
9357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9359 echo "local: *; };" >> $output_objdir/$libname.ver~
9360 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9363 esac
9364 else
9365 ld_shlibs=no
9369 netbsd*)
9370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9371 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9372 wlarc=
9373 else
9374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 solaris*)
9380 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9381 ld_shlibs=no
9382 cat <<_LT_EOF 1>&2
9384 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9385 *** create shared libraries on Solaris systems. Therefore, libtool
9386 *** is disabling shared libraries support. We urge you to upgrade GNU
9387 *** binutils to release 2.9.1 or newer. Another option is to modify
9388 *** your PATH or compiler configuration so that the native linker is
9389 *** used, and then restart.
9391 _LT_EOF
9392 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9394 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9395 else
9396 ld_shlibs=no
9400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9401 case `$LD -v 2>&1` in
9402 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9403 ld_shlibs=no
9404 cat <<_LT_EOF 1>&2
9406 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9407 *** reliably create shared libraries on SCO systems. Therefore, libtool
9408 *** is disabling shared libraries support. We urge you to upgrade GNU
9409 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9410 *** your PATH or compiler configuration so that the native linker is
9411 *** used, and then restart.
9413 _LT_EOF
9416 # For security reasons, it is highly recommended that you always
9417 # use absolute paths for naming shared libraries, and exclude the
9418 # DT_RUNPATH tag from executables and libraries. But doing so
9419 # requires that you compile everything twice, which is a pain.
9420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 else
9425 ld_shlibs=no
9428 esac
9431 sunos4*)
9432 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9433 wlarc=
9434 hardcode_direct=yes
9435 hardcode_shlibpath_var=no
9439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442 else
9443 ld_shlibs=no
9446 esac
9448 if test "$ld_shlibs" = no; then
9449 runpath_var=
9450 hardcode_libdir_flag_spec=
9451 export_dynamic_flag_spec=
9452 whole_archive_flag_spec=
9454 else
9455 # PORTME fill in a description of your system's linker (not GNU ld)
9456 case $host_os in
9457 aix3*)
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=yes
9460 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'
9461 # Note: this linker hardcodes the directories in LIBPATH if there
9462 # are no directories specified by -L.
9463 hardcode_minus_L=yes
9464 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9465 # Neither direct hardcoding nor static linking is supported with a
9466 # broken collect2.
9467 hardcode_direct=unsupported
9471 aix[4-9]*)
9472 if test "$host_cpu" = ia64; then
9473 # On IA64, the linker does run time linking by default, so we don't
9474 # have to do anything special.
9475 aix_use_runtimelinking=no
9476 exp_sym_flag='-Bexport'
9477 no_entry_flag=""
9478 else
9479 # If we're using GNU nm, then we don't want the "-C" option.
9480 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9481 # Also, AIX nm treats weak defined symbols like other global
9482 # defined symbols, whereas GNU nm marks them as "W".
9483 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9484 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'
9485 else
9486 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'
9488 aix_use_runtimelinking=no
9490 # Test if we are trying to use run time linking or normal
9491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9492 # need to do runtime linking.
9493 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9494 for ld_flag in $LDFLAGS; do
9495 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9496 aix_use_runtimelinking=yes
9497 break
9499 done
9501 esac
9503 exp_sym_flag='-bexport'
9504 no_entry_flag='-bnoentry'
9507 # When large executables or shared objects are built, AIX ld can
9508 # have problems creating the table of contents. If linking a library
9509 # or program results in "error TOC overflow" add -mminimal-toc to
9510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9513 archive_cmds=''
9514 hardcode_direct=yes
9515 hardcode_direct_absolute=yes
9516 hardcode_libdir_separator=':'
9517 link_all_deplibs=yes
9518 file_list_spec='${wl}-f,'
9520 if test "$GCC" = yes; then
9521 case $host_os in aix4.[012]|aix4.[012].*)
9522 # We only want to do this on AIX 4.2 and lower, the check
9523 # below for broken collect2 doesn't work under 4.3+
9524 collect2name=`${CC} -print-prog-name=collect2`
9525 if test -f "$collect2name" &&
9526 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9527 then
9528 # We have reworked collect2
9530 else
9531 # We have old collect2
9532 hardcode_direct=unsupported
9533 # It fails to find uninstalled libraries when the uninstalled
9534 # path is not listed in the libpath. Setting hardcode_minus_L
9535 # to unsupported forces relinking
9536 hardcode_minus_L=yes
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_libdir_separator=
9541 esac
9542 shared_flag='-shared'
9543 if test "$aix_use_runtimelinking" = yes; then
9544 shared_flag="$shared_flag "'${wl}-G'
9546 else
9547 # not using gcc
9548 if test "$host_cpu" = ia64; then
9549 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9550 # chokes on -Wl,-G. The following line is correct:
9551 shared_flag='-G'
9552 else
9553 if test "$aix_use_runtimelinking" = yes; then
9554 shared_flag='${wl}-G'
9555 else
9556 shared_flag='${wl}-bM:SRE'
9561 export_dynamic_flag_spec='${wl}-bexpall'
9562 # It seems that -bexpall does not export symbols beginning with
9563 # underscore (_), so it is better to generate a list of symbols to export.
9564 always_export_symbols=yes
9565 if test "$aix_use_runtimelinking" = yes; then
9566 # Warning - without using the other runtime loading flags (-brtl),
9567 # -berok will link without error, but may produce a broken library.
9568 allow_undefined_flag='-berok'
9569 # Determine the default libpath from the value encoded in an
9570 # empty executable.
9571 if test "${lt_cv_aix_libpath+set}" = set; then
9572 aix_libpath=$lt_cv_aix_libpath
9573 else
9574 if ${lt_cv_aix_libpath_+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9581 main ()
9585 return 0;
9587 _ACEOF
9588 if ac_fn_c_try_link "$LINENO"; then :
9590 lt_aix_libpath_sed='
9591 /Import File Strings/,/^$/ {
9592 /^0/ {
9593 s/^0 *\([^ ]*\) *$/\1/
9597 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9598 # Check for a 64-bit object if we didn't find anything.
9599 if test -z "$lt_cv_aix_libpath_"; then
9600 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 if test -z "$lt_cv_aix_libpath_"; then
9606 lt_cv_aix_libpath_="/usr/lib:/lib"
9611 aix_libpath=$lt_cv_aix_libpath_
9614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9615 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"
9616 else
9617 if test "$host_cpu" = ia64; then
9618 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9619 allow_undefined_flag="-z nodefs"
9620 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"
9621 else
9622 # Determine the default libpath from the value encoded in an
9623 # empty executable.
9624 if test "${lt_cv_aix_libpath+set}" = set; then
9625 aix_libpath=$lt_cv_aix_libpath
9626 else
9627 if ${lt_cv_aix_libpath_+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9634 main ()
9638 return 0;
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9643 lt_aix_libpath_sed='
9644 /Import File Strings/,/^$/ {
9645 /^0/ {
9646 s/^0 *\([^ ]*\) *$/\1/
9650 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651 # Check for a 64-bit object if we didn't find anything.
9652 if test -z "$lt_cv_aix_libpath_"; then
9653 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 if test -z "$lt_cv_aix_libpath_"; then
9659 lt_cv_aix_libpath_="/usr/lib:/lib"
9664 aix_libpath=$lt_cv_aix_libpath_
9667 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9668 # Warning - without using the other run time loading flags,
9669 # -berok will link without error, but may produce a broken library.
9670 no_undefined_flag=' ${wl}-bernotok'
9671 allow_undefined_flag=' ${wl}-berok'
9672 if test "$with_gnu_ld" = yes; then
9673 # We only use this code for GNU lds that support --whole-archive.
9674 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9675 else
9676 # Exported symbols can be pulled into shared objects from archives
9677 whole_archive_flag_spec='$convenience'
9679 archive_cmds_need_lc=yes
9680 # This is similar to how AIX traditionally builds its shared libraries.
9681 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'
9686 amigaos*)
9687 case $host_cpu in
9688 powerpc)
9689 # see comment about AmigaOS4 .so support
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 archive_expsym_cmds=''
9693 m68k)
9694 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)'
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_minus_L=yes
9698 esac
9701 bsdi[45]*)
9702 export_dynamic_flag_spec=-rdynamic
9705 cygwin* | mingw* | pw32* | cegcc*)
9706 # When not using gcc, we currently assume that we are using
9707 # Microsoft Visual C++.
9708 # hardcode_libdir_flag_spec is actually meaningless, as there is
9709 # no search path for DLLs.
9710 case $cc_basename in
9711 cl*)
9712 # Native MSVC
9713 hardcode_libdir_flag_spec=' '
9714 allow_undefined_flag=unsupported
9715 always_export_symbols=yes
9716 file_list_spec='@'
9717 # Tell ltmain to make .lib files, not .a files.
9718 libext=lib
9719 # Tell ltmain to make .dll files, not .so files.
9720 shrext_cmds=".dll"
9721 # FIXME: Setting linknames here is a bad hack.
9722 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9724 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9725 else
9726 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9728 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9729 linknames='
9730 # The linker will not automatically build a static lib if we build a DLL.
9731 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9732 enable_shared_with_static_runtimes=yes
9733 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9735 # Don't use ranlib
9736 old_postinstall_cmds='chmod 644 $oldlib'
9737 postlink_cmds='lt_outputfile="@OUTPUT@"~
9738 lt_tool_outputfile="@TOOL_OUTPUT@"~
9739 case $lt_outputfile in
9740 *.exe|*.EXE) ;;
9742 lt_outputfile="$lt_outputfile.exe"
9743 lt_tool_outputfile="$lt_tool_outputfile.exe"
9745 esac~
9746 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9747 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9748 $RM "$lt_outputfile.manifest";
9752 # Assume MSVC wrapper
9753 hardcode_libdir_flag_spec=' '
9754 allow_undefined_flag=unsupported
9755 # Tell ltmain to make .lib files, not .a files.
9756 libext=lib
9757 # Tell ltmain to make .dll files, not .so files.
9758 shrext_cmds=".dll"
9759 # FIXME: Setting linknames here is a bad hack.
9760 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9761 # The linker will automatically build a .lib file if we build a DLL.
9762 old_archive_from_new_cmds='true'
9763 # FIXME: Should let the user specify the lib program.
9764 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9765 enable_shared_with_static_runtimes=yes
9767 esac
9770 darwin* | rhapsody*)
9773 archive_cmds_need_lc=no
9774 hardcode_direct=no
9775 hardcode_automatic=yes
9776 hardcode_shlibpath_var=unsupported
9777 if test "$lt_cv_ld_force_load" = "yes"; then
9778 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\"`'
9780 else
9781 whole_archive_flag_spec=''
9783 link_all_deplibs=yes
9784 allow_undefined_flag="$_lt_dar_allow_undefined"
9785 case $cc_basename in
9786 ifort*) _lt_dar_can_shared=yes ;;
9787 *) _lt_dar_can_shared=$GCC ;;
9788 esac
9789 if test "$_lt_dar_can_shared" = "yes"; then
9790 output_verbose_link_cmd=func_echo_all
9791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9793 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}"
9794 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}"
9796 else
9797 ld_shlibs=no
9802 dgux*)
9803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_shlibpath_var=no
9808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9809 # support. Future versions do this automatically, but an explicit c++rt0.o
9810 # does not break anything, and helps significantly (at the cost of a little
9811 # extra space).
9812 freebsd2.2*)
9813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9814 hardcode_libdir_flag_spec='-R$libdir'
9815 hardcode_direct=yes
9816 hardcode_shlibpath_var=no
9819 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9820 freebsd2.*)
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_direct=yes
9823 hardcode_minus_L=yes
9824 hardcode_shlibpath_var=no
9827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9828 freebsd* | dragonfly*)
9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9830 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_direct=yes
9832 hardcode_shlibpath_var=no
9835 hpux9*)
9836 if test "$GCC" = yes; then
9837 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'
9838 else
9839 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'
9841 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9842 hardcode_libdir_separator=:
9843 hardcode_direct=yes
9845 # hardcode_minus_L: Not really in the search PATH,
9846 # but as the default location of the library.
9847 hardcode_minus_L=yes
9848 export_dynamic_flag_spec='${wl}-E'
9851 hpux10*)
9852 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9853 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857 if test "$with_gnu_ld" = no; then
9858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9859 hardcode_libdir_separator=:
9860 hardcode_direct=yes
9861 hardcode_direct_absolute=yes
9862 export_dynamic_flag_spec='${wl}-E'
9863 # hardcode_minus_L: Not really in the search PATH,
9864 # but as the default location of the library.
9865 hardcode_minus_L=yes
9869 hpux11*)
9870 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9871 case $host_cpu in
9872 hppa*64*)
9873 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 ia64*)
9876 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9879 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881 esac
9882 else
9883 case $host_cpu in
9884 hppa*64*)
9885 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 ia64*)
9888 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9892 # Older versions of the 11.00 compiler do not understand -b yet
9893 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9895 $as_echo_n "checking if $CC understands -b... " >&6; }
9896 if ${lt_cv_prog_compiler__b+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 lt_cv_prog_compiler__b=no
9900 save_LDFLAGS="$LDFLAGS"
9901 LDFLAGS="$LDFLAGS -b"
9902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904 # The linker can only warn and ignore the option if not recognized
9905 # So say no if there are warnings
9906 if test -s conftest.err; then
9907 # Append any errors to the config.log.
9908 cat conftest.err 1>&5
9909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911 if diff conftest.exp conftest.er2 >/dev/null; then
9912 lt_cv_prog_compiler__b=yes
9914 else
9915 lt_cv_prog_compiler__b=yes
9918 $RM -r conftest*
9919 LDFLAGS="$save_LDFLAGS"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9923 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9925 if test x"$lt_cv_prog_compiler__b" = xyes; then
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 else
9928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9932 esac
9934 if test "$with_gnu_ld" = no; then
9935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_separator=:
9938 case $host_cpu in
9939 hppa*64*|ia64*)
9940 hardcode_direct=no
9941 hardcode_shlibpath_var=no
9944 hardcode_direct=yes
9945 hardcode_direct_absolute=yes
9946 export_dynamic_flag_spec='${wl}-E'
9948 # hardcode_minus_L: Not really in the search PATH,
9949 # but as the default location of the library.
9950 hardcode_minus_L=yes
9952 esac
9956 irix5* | irix6* | nonstopux*)
9957 if test "$GCC" = yes; then
9958 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'
9959 # Try to use the -exported_symbol ld option, if it does not
9960 # work, assume that -exports_file does not work either and
9961 # implicitly export all symbols.
9962 # This should be the same for all languages, so no per-tag cache variable.
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9964 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9965 if ${lt_cv_irix_exported_symbol+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 save_LDFLAGS="$LDFLAGS"
9969 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int foo (void) { return 0; }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 lt_cv_irix_exported_symbol=yes
9976 else
9977 lt_cv_irix_exported_symbol=no
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LDFLAGS="$save_LDFLAGS"
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9984 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9985 if test "$lt_cv_irix_exported_symbol" = yes; then
9986 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'
9988 else
9989 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'
9990 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'
9992 archive_cmds_need_lc='no'
9993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9994 hardcode_libdir_separator=:
9995 inherit_rpath=yes
9996 link_all_deplibs=yes
9999 netbsd*)
10000 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10002 else
10003 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10005 hardcode_libdir_flag_spec='-R$libdir'
10006 hardcode_direct=yes
10007 hardcode_shlibpath_var=no
10010 newsos6)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes
10013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 hardcode_libdir_separator=:
10015 hardcode_shlibpath_var=no
10018 *nto* | *qnx*)
10021 openbsd*)
10022 if test -f /usr/libexec/ld.so; then
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 hardcode_direct_absolute=yes
10026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10030 export_dynamic_flag_spec='${wl}-E'
10031 else
10032 case $host_os in
10033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_libdir_flag_spec='-R$libdir'
10038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10041 esac
10043 else
10044 ld_shlibs=no
10048 os2*)
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10051 allow_undefined_flag=unsupported
10052 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'
10053 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10056 osf3*)
10057 if test "$GCC" = yes; then
10058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10059 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'
10060 else
10061 allow_undefined_flag=' -expect_unresolved \*'
10062 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'
10064 archive_cmds_need_lc='no'
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 hardcode_libdir_separator=:
10069 osf4* | osf5*) # as osf3* with the addition of -msym flag
10070 if test "$GCC" = yes; then
10071 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10072 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'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 else
10075 allow_undefined_flag=' -expect_unresolved \*'
10076 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'
10077 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~
10078 $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'
10080 # Both c and cxx compiler support -rpath directly
10081 hardcode_libdir_flag_spec='-rpath $libdir'
10083 archive_cmds_need_lc='no'
10084 hardcode_libdir_separator=:
10087 solaris*)
10088 no_undefined_flag=' -z defs'
10089 if test "$GCC" = yes; then
10090 wlarc='${wl}'
10091 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093 $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'
10094 else
10095 case `$CC -V 2>&1` in
10096 *"Compilers 5.0"*)
10097 wlarc=''
10098 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10103 wlarc='${wl}'
10104 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10106 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10108 esac
10110 hardcode_libdir_flag_spec='-R$libdir'
10111 hardcode_shlibpath_var=no
10112 case $host_os in
10113 solaris2.[0-5] | solaris2.[0-5].*) ;;
10115 # The compiler driver will combine and reorder linker options,
10116 # but understands `-z linker_flag'. GCC discards it without `$wl',
10117 # but is careful enough not to reorder.
10118 # Supported since Solaris 2.6 (maybe 2.5.1?)
10119 if test "$GCC" = yes; then
10120 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10121 else
10122 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10125 esac
10126 link_all_deplibs=yes
10129 sunos4*)
10130 if test "x$host_vendor" = xsequent; then
10131 # Use $CC to link under sequent, because it throws in some extra .o
10132 # files that make .init and .fini sections work.
10133 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 else
10135 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_libdir_flag_spec='-L$libdir'
10138 hardcode_direct=yes
10139 hardcode_minus_L=yes
10140 hardcode_shlibpath_var=no
10143 sysv4)
10144 case $host_vendor in
10145 sni)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_direct=yes # is this really true???
10149 siemens)
10150 ## LD is ld it makes a PLAMLIB
10151 ## CC just makes a GrossModule.
10152 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10153 reload_cmds='$CC -r -o $output$reload_objs'
10154 hardcode_direct=no
10156 motorola)
10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10160 esac
10161 runpath_var='LD_RUN_PATH'
10162 hardcode_shlibpath_var=no
10165 sysv4.3*)
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_shlibpath_var=no
10168 export_dynamic_flag_spec='-Bexport'
10171 sysv4*MP*)
10172 if test -d /usr/nec; then
10173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_shlibpath_var=no
10175 runpath_var=LD_RUN_PATH
10176 hardcode_runpath_var=yes
10177 ld_shlibs=yes
10181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10182 no_undefined_flag='${wl}-z,text'
10183 archive_cmds_need_lc=no
10184 hardcode_shlibpath_var=no
10185 runpath_var='LD_RUN_PATH'
10187 if test "$GCC" = yes; then
10188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 else
10191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 sysv5* | sco3.2v5* | sco5v6*)
10197 # Note: We can NOT use -z defs as we might desire, because we do not
10198 # link with -lc, and that would cause any symbols used from libc to
10199 # always be unresolved, which means just about no library would
10200 # ever link correctly. If we're not using GNU ld we use -z text
10201 # though, which does catch some bad symbols but isn't as heavy-handed
10202 # as -z defs.
10203 no_undefined_flag='${wl}-z,text'
10204 allow_undefined_flag='${wl}-z,nodefs'
10205 archive_cmds_need_lc=no
10206 hardcode_shlibpath_var=no
10207 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10208 hardcode_libdir_separator=':'
10209 link_all_deplibs=yes
10210 export_dynamic_flag_spec='${wl}-Bexport'
10211 runpath_var='LD_RUN_PATH'
10213 if test "$GCC" = yes; then
10214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 else
10217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 uts4*)
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_shlibpath_var=no
10229 ld_shlibs=no
10231 esac
10233 if test x$host_vendor = xsni; then
10234 case $host in
10235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10236 export_dynamic_flag_spec='${wl}-Blargedynsym'
10238 esac
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10243 $as_echo "$ld_shlibs" >&6; }
10244 test "$ld_shlibs" = no && can_build_shared=no
10246 with_gnu_ld=$with_gnu_ld
10263 # Do we need to explicitly link libc?
10265 case "x$archive_cmds_need_lc" in
10266 x|xyes)
10267 # Assume -lc should be added
10268 archive_cmds_need_lc=yes
10270 if test "$enable_shared" = yes && test "$GCC" = yes; then
10271 case $archive_cmds in
10272 *'~'*)
10273 # FIXME: we may have to deal with multi-command sequences.
10275 '$CC '*)
10276 # Test whether the compiler implicitly links with -lc since on some
10277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10278 # to ld, don't add -lc before -lgcc.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10280 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10281 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 $RM conftest*
10285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10288 (eval $ac_compile) 2>&5
10289 ac_status=$?
10290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10291 test $ac_status = 0; } 2>conftest.err; then
10292 soname=conftest
10293 lib=conftest
10294 libobjs=conftest.$ac_objext
10295 deplibs=
10296 wl=$lt_prog_compiler_wl
10297 pic_flag=$lt_prog_compiler_pic
10298 compiler_flags=-v
10299 linker_flags=-v
10300 verstring=
10301 output_objdir=.
10302 libname=conftest
10303 lt_save_allow_undefined_flag=$allow_undefined_flag
10304 allow_undefined_flag=
10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10306 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309 test $ac_status = 0; }
10310 then
10311 lt_cv_archive_cmds_need_lc=no
10312 else
10313 lt_cv_archive_cmds_need_lc=yes
10315 allow_undefined_flag=$lt_save_allow_undefined_flag
10316 else
10317 cat conftest.err 1>&5
10319 $RM conftest*
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10323 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10324 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10326 esac
10329 esac
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10483 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10485 if test "$GCC" = yes; then
10486 case $host_os in
10487 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10488 *) lt_awk_arg="/^libraries:/" ;;
10489 esac
10490 case $host_os in
10491 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10492 *) lt_sed_strip_eq="s,=/,/,g" ;;
10493 esac
10494 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10495 case $lt_search_path_spec in
10496 *\;*)
10497 # if the path contains ";" then we assume it to be the separator
10498 # otherwise default to the standard path separator (i.e. ":") - it is
10499 # assumed that no part of a normal pathname contains ";" but that should
10500 # okay in the real world where ";" in dirpaths is itself problematic.
10501 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10506 esac
10507 # Ok, now we have the path, separated by spaces, we can step through it
10508 # and add multilib dir if necessary.
10509 lt_tmp_lt_search_path_spec=
10510 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10511 for lt_sys_path in $lt_search_path_spec; do
10512 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10513 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10514 else
10515 test -d "$lt_sys_path" && \
10516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10518 done
10519 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10520 BEGIN {RS=" "; FS="/|\n";} {
10521 lt_foo="";
10522 lt_count=0;
10523 for (lt_i = NF; lt_i > 0; lt_i--) {
10524 if ($lt_i != "" && $lt_i != ".") {
10525 if ($lt_i == "..") {
10526 lt_count++;
10527 } else {
10528 if (lt_count == 0) {
10529 lt_foo="/" $lt_i lt_foo;
10530 } else {
10531 lt_count--;
10536 if (lt_foo != "") { lt_freq[lt_foo]++; }
10537 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10539 # AWK program above erroneously prepends '/' to C:/dos/paths
10540 # for these hosts.
10541 case $host_os in
10542 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10543 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10544 esac
10545 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10546 else
10547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10549 library_names_spec=
10550 libname_spec='lib$name'
10551 soname_spec=
10552 shrext_cmds=".so"
10553 postinstall_cmds=
10554 postuninstall_cmds=
10555 finish_cmds=
10556 finish_eval=
10557 shlibpath_var=
10558 shlibpath_overrides_runpath=unknown
10559 version_type=none
10560 dynamic_linker="$host_os ld.so"
10561 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10562 need_lib_prefix=unknown
10563 hardcode_into_libs=no
10565 # when you set need_version to no, make sure it does not cause -set_version
10566 # flags to be left without arguments
10567 need_version=unknown
10569 case $host_os in
10570 aix3*)
10571 version_type=linux # correct to gnu/linux during the next big refactor
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10573 shlibpath_var=LIBPATH
10575 # AIX 3 has no versioning support, so we append a major version to the name.
10576 soname_spec='${libname}${release}${shared_ext}$major'
10579 aix[4-9]*)
10580 version_type=linux # correct to gnu/linux during the next big refactor
10581 need_lib_prefix=no
10582 need_version=no
10583 hardcode_into_libs=yes
10584 if test "$host_cpu" = ia64; then
10585 # AIX 5 supports IA64
10586 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 else
10589 # With GCC up to 2.95.x, collect2 would create an import file
10590 # for dependence libraries. The import file would start with
10591 # the line `#! .'. This would cause the generated library to
10592 # depend on `.', always an invalid library. This was fixed in
10593 # development snapshots of GCC prior to 3.0.
10594 case $host_os in
10595 aix4 | aix4.[01] | aix4.[01].*)
10596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10597 echo ' yes '
10598 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10600 else
10601 can_build_shared=no
10604 esac
10605 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10606 # soname into executable. Probably we can add versioning support to
10607 # collect2, so additional links can be useful in future.
10608 if test "$aix_use_runtimelinking" = yes; then
10609 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10610 # instead of lib<name>.a to let people know that these are not
10611 # typical AIX shared libraries.
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 else
10614 # We preserve .a as extension for shared libraries through AIX4.2
10615 # and later when we are not doing run time linking.
10616 library_names_spec='${libname}${release}.a $libname.a'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10619 shlibpath_var=LIBPATH
10623 amigaos*)
10624 case $host_cpu in
10625 powerpc)
10626 # Since July 2007 AmigaOS4 officially supports .so libraries.
10627 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 m68k)
10631 library_names_spec='$libname.ixlibrary $libname.a'
10632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10633 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'
10635 esac
10638 beos*)
10639 library_names_spec='${libname}${shared_ext}'
10640 dynamic_linker="$host_os ld.so"
10641 shlibpath_var=LIBRARY_PATH
10644 bsdi[45]*)
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10653 # the default ld.so.conf also contains /usr/contrib/lib and
10654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10655 # libtool to hard-code these into programs
10658 cygwin* | mingw* | pw32* | cegcc*)
10659 version_type=windows
10660 shrext_cmds=".dll"
10661 need_version=no
10662 need_lib_prefix=no
10664 case $GCC,$cc_basename in
10665 yes,*)
10666 # gcc
10667 library_names_spec='$libname.dll.a'
10668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10669 postinstall_cmds='base_file=`basename \${file}`~
10670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10671 dldir=$destdir/`dirname \$dlpath`~
10672 test -d \$dldir || mkdir -p \$dldir~
10673 $install_prog $dir/$dlname \$dldir/$dlname~
10674 chmod a+x \$dldir/$dlname~
10675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10679 dlpath=$dir/\$dldll~
10680 $RM \$dlpath'
10681 shlibpath_overrides_runpath=yes
10683 case $host_os in
10684 cygwin*)
10685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10690 mingw* | cegcc*)
10691 # MinGW DLLs use traditional 'lib' prefix
10692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10694 pw32*)
10695 # pw32 DLLs use 'pw' prefix rather than 'lib'
10696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 esac
10699 dynamic_linker='Win32 ld.exe'
10702 *,cl*)
10703 # Native MSVC
10704 libname_spec='$name'
10705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706 library_names_spec='${libname}.dll.lib'
10708 case $build_os in
10709 mingw*)
10710 sys_lib_search_path_spec=
10711 lt_save_ifs=$IFS
10712 IFS=';'
10713 for lt_path in $LIB
10715 IFS=$lt_save_ifs
10716 # Let DOS variable expansion print the short 8.3 style file name.
10717 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10718 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10719 done
10720 IFS=$lt_save_ifs
10721 # Convert to MSYS style.
10722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10724 cygwin*)
10725 # Convert to unix form, then to dos form, then back to unix form
10726 # but this time dos style (no spaces!) so that the unix form looks
10727 # like /cygdrive/c/PROGRA~1:/cygdr...
10728 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10729 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10730 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10733 sys_lib_search_path_spec="$LIB"
10734 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10735 # It is most probably a Windows format PATH.
10736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737 else
10738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10740 # FIXME: find the short name or the path components, as spaces are
10741 # common. (e.g. "Program Files" -> "PROGRA~1")
10743 esac
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname'
10751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10752 dlpath=$dir/\$dldll~
10753 $RM \$dlpath'
10754 shlibpath_overrides_runpath=yes
10755 dynamic_linker='Win32 link.exe'
10759 # Assume MSVC wrapper
10760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10761 dynamic_linker='Win32 ld.exe'
10763 esac
10764 # FIXME: first we should search . and the directory the executable is in
10765 shlibpath_var=PATH
10768 darwin* | rhapsody*)
10769 dynamic_linker="$host_os dyld"
10770 version_type=darwin
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10774 soname_spec='${libname}${release}${major}$shared_ext'
10775 shlibpath_overrides_runpath=yes
10776 shlibpath_var=DYLD_LIBRARY_PATH
10777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10783 dgux*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10792 freebsd* | dragonfly*)
10793 # DragonFly does not have aout. When/if they implement a new
10794 # versioning mechanism, adjust this.
10795 if test -x /usr/bin/objformat; then
10796 objformat=`/usr/bin/objformat`
10797 else
10798 case $host_os in
10799 freebsd[23].*) objformat=aout ;;
10800 *) objformat=elf ;;
10801 esac
10803 version_type=freebsd-$objformat
10804 case $version_type in
10805 freebsd-elf*)
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10807 need_version=no
10808 need_lib_prefix=no
10810 freebsd-*)
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10812 need_version=yes
10814 esac
10815 shlibpath_var=LD_LIBRARY_PATH
10816 case $host_os in
10817 freebsd2.*)
10818 shlibpath_overrides_runpath=yes
10820 freebsd3.[01]* | freebsdelf3.[01]*)
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10829 *) # from 4.6 on, and DragonFly
10830 shlibpath_overrides_runpath=yes
10831 hardcode_into_libs=yes
10833 esac
10836 gnu*)
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=no
10844 hardcode_into_libs=yes
10847 haiku*)
10848 version_type=linux # correct to gnu/linux during the next big refactor
10849 need_lib_prefix=no
10850 need_version=no
10851 dynamic_linker="$host_os runtime_loader"
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 shlibpath_var=LIBRARY_PATH
10855 shlibpath_overrides_runpath=yes
10856 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10857 hardcode_into_libs=yes
10860 hpux9* | hpux10* | hpux11*)
10861 # Give a soname corresponding to the major version so that dld.sl refuses to
10862 # link against other versions.
10863 version_type=sunos
10864 need_lib_prefix=no
10865 need_version=no
10866 case $host_cpu in
10867 ia64*)
10868 shrext_cmds='.so'
10869 hardcode_into_libs=yes
10870 dynamic_linker="$host_os dld.so"
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 if test "X$HPUX_IA64_MODE" = X32; then
10876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10877 else
10878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10882 hppa*64*)
10883 shrext_cmds='.sl'
10884 hardcode_into_libs=yes
10885 dynamic_linker="$host_os dld.sl"
10886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10894 shrext_cmds='.sl'
10895 dynamic_linker="$host_os dld.sl"
10896 shlibpath_var=SHLIB_PATH
10897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10901 esac
10902 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10903 postinstall_cmds='chmod 555 $lib'
10904 # or fails outright, so override atomically:
10905 install_override_mode=555
10908 interix[3-9]*)
10909 version_type=linux # correct to gnu/linux during the next big refactor
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=no
10917 hardcode_into_libs=yes
10920 irix5* | irix6* | nonstopux*)
10921 case $host_os in
10922 nonstopux*) version_type=nonstopux ;;
10924 if test "$lt_cv_prog_gnu_ld" = yes; then
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 else
10927 version_type=irix
10928 fi ;;
10929 esac
10930 need_lib_prefix=no
10931 need_version=no
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10934 case $host_os in
10935 irix5* | nonstopux*)
10936 libsuff= shlibsuff=
10939 case $LD in # libtool.m4 will add one of these switches to LD
10940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10941 libsuff= shlibsuff= libmagic=32-bit;;
10942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10943 libsuff=32 shlibsuff=N32 libmagic=N32;;
10944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10945 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10946 *) libsuff= shlibsuff= libmagic=never-match;;
10947 esac
10949 esac
10950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10951 shlibpath_overrides_runpath=no
10952 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10953 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10954 hardcode_into_libs=yes
10957 # No shared lib support for Linux oldld, aout, or coff.
10958 linux*oldld* | linux*aout* | linux*coff*)
10959 dynamic_linker=no
10962 # This must be glibc/ELF.
10963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10964 version_type=linux # correct to gnu/linux during the next big refactor
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10973 # Some binutils ld are patched to set DT_RUNPATH
10974 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 lt_cv_shlibpath_overrides_runpath=no
10978 save_LDFLAGS=$LDFLAGS
10979 save_libdir=$libdir
10980 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10981 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10986 main ()
10990 return 0;
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10995 lt_cv_shlibpath_overrides_runpath=yes
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LDFLAGS=$save_LDFLAGS
11001 libdir=$save_libdir
11005 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11007 # This implies no fast_install, which is unacceptable.
11008 # Some rework will be needed to allow for fast_install
11009 # before this can be enabled.
11010 hardcode_into_libs=yes
11012 # Add ABI-specific directories to the system library path.
11013 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11015 # Append ld.so.conf contents to the search path
11016 if test -f /etc/ld.so.conf; then
11017 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' ' '`
11018 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11022 # We used to test for /lib/ld.so.1 and disable shared libraries on
11023 # powerpc, because MkLinux only supported shared libraries with the
11024 # GNU dynamic linker. Since this was broken with cross compilers,
11025 # most powerpc-linux boxes support dynamic linking these days and
11026 # people can always --disable-shared, the test was removed, and we
11027 # assume the GNU/Linux dynamic linker is in use.
11028 dynamic_linker='GNU/Linux ld.so'
11031 netbsd*)
11032 version_type=sunos
11033 need_lib_prefix=no
11034 need_version=no
11035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11038 dynamic_linker='NetBSD (a.out) ld.so'
11039 else
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 dynamic_linker='NetBSD ld.elf_so'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=yes
11046 hardcode_into_libs=yes
11049 newsos6)
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11056 *nto* | *qnx*)
11057 version_type=qnx
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 dynamic_linker='ldqnx.so'
11068 openbsd*)
11069 version_type=sunos
11070 sys_lib_dlsearch_path_spec="/usr/lib"
11071 need_lib_prefix=no
11072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11073 case $host_os in
11074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11075 *) need_version=no ;;
11076 esac
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11081 case $host_os in
11082 openbsd2.[89] | openbsd2.[89].*)
11083 shlibpath_overrides_runpath=no
11086 shlibpath_overrides_runpath=yes
11088 esac
11089 else
11090 shlibpath_overrides_runpath=yes
11094 os2*)
11095 libname_spec='$name'
11096 shrext_cmds=".dll"
11097 need_lib_prefix=no
11098 library_names_spec='$libname${shared_ext} $libname.a'
11099 dynamic_linker='OS/2 ld.exe'
11100 shlibpath_var=LIBPATH
11103 osf3* | osf4* | osf5*)
11104 version_type=osf
11105 need_lib_prefix=no
11106 need_version=no
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11114 rdos*)
11115 dynamic_linker=no
11118 solaris*)
11119 version_type=linux # correct to gnu/linux during the next big refactor
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11126 hardcode_into_libs=yes
11127 # ldd complains unless libraries are executable
11128 postinstall_cmds='chmod +x $lib'
11131 sunos4*)
11132 version_type=sunos
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 if test "$with_gnu_ld" = yes; then
11138 need_lib_prefix=no
11140 need_version=yes
11143 sysv4 | sysv4.3*)
11144 version_type=linux # correct to gnu/linux during the next big refactor
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 case $host_vendor in
11149 sni)
11150 shlibpath_overrides_runpath=no
11151 need_lib_prefix=no
11152 runpath_var=LD_RUN_PATH
11154 siemens)
11155 need_lib_prefix=no
11157 motorola)
11158 need_lib_prefix=no
11159 need_version=no
11160 shlibpath_overrides_runpath=no
11161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11163 esac
11166 sysv4*MP*)
11167 if test -d /usr/nec ;then
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11170 soname_spec='$libname${shared_ext}.$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11176 version_type=freebsd-elf
11177 need_lib_prefix=no
11178 need_version=no
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 hardcode_into_libs=yes
11184 if test "$with_gnu_ld" = yes; then
11185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11186 else
11187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11188 case $host_os in
11189 sco3.2v5*)
11190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11192 esac
11194 sys_lib_dlsearch_path_spec='/usr/lib'
11197 tpf*)
11198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11199 version_type=linux # correct to gnu/linux during the next big refactor
11200 need_lib_prefix=no
11201 need_version=no
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11208 uts4*)
11209 version_type=linux # correct to gnu/linux during the next big refactor
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11216 dynamic_linker=no
11218 esac
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11220 $as_echo "$dynamic_linker" >&6; }
11221 test "$dynamic_linker" = no && can_build_shared=no
11223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11224 if test "$GCC" = yes; then
11225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11228 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11229 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11232 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11327 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11328 hardcode_action=
11329 if test -n "$hardcode_libdir_flag_spec" ||
11330 test -n "$runpath_var" ||
11331 test "X$hardcode_automatic" = "Xyes" ; then
11333 # We can hardcode non-existent directories.
11334 if test "$hardcode_direct" != no &&
11335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11336 # have to relink, otherwise we might link with an installed library
11337 # when we should be linking with a yet-to-be-installed one
11338 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11339 test "$hardcode_minus_L" != no; then
11340 # Linking always hardcodes the temporary library directory.
11341 hardcode_action=relink
11342 else
11343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11344 hardcode_action=immediate
11346 else
11347 # We cannot hardcode anything, or else we can only hardcode existing
11348 # directories.
11349 hardcode_action=unsupported
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11352 $as_echo "$hardcode_action" >&6; }
11354 if test "$hardcode_action" = relink ||
11355 test "$inherit_rpath" = yes; then
11356 # Fast installation is not supported
11357 enable_fast_install=no
11358 elif test "$shlibpath_overrides_runpath" = yes ||
11359 test "$enable_shared" = no; then
11360 # Fast installation is not necessary
11361 enable_fast_install=needless
11369 if test "x$enable_dlopen" != xyes; then
11370 enable_dlopen=unknown
11371 enable_dlopen_self=unknown
11372 enable_dlopen_self_static=unknown
11373 else
11374 lt_cv_dlopen=no
11375 lt_cv_dlopen_libs=
11377 case $host_os in
11378 beos*)
11379 lt_cv_dlopen="load_add_on"
11380 lt_cv_dlopen_libs=
11381 lt_cv_dlopen_self=yes
11384 mingw* | pw32* | cegcc*)
11385 lt_cv_dlopen="LoadLibrary"
11386 lt_cv_dlopen_libs=
11389 cygwin*)
11390 lt_cv_dlopen="dlopen"
11391 lt_cv_dlopen_libs=
11394 darwin*)
11395 # if libdl is installed we need to link against it
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11398 if ${ac_cv_lib_dl_dlopen+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-ldl $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char dlopen ();
11414 main ()
11416 return dlopen ();
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 ac_cv_lib_dl_dlopen=yes
11423 else
11424 ac_cv_lib_dl_dlopen=no
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11434 else
11436 lt_cv_dlopen="dyld"
11437 lt_cv_dlopen_libs=
11438 lt_cv_dlopen_self=yes
11445 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11446 if test "x$ac_cv_func_shl_load" = xyes; then :
11447 lt_cv_dlopen="shl_load"
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11450 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11451 if ${ac_cv_lib_dld_shl_load+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-ldld $LIBS"
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char shl_load ();
11467 main ()
11469 return shl_load ();
11471 return 0;
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_lib_dld_shl_load=yes
11476 else
11477 ac_cv_lib_dld_shl_load=no
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11484 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11485 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11487 else
11488 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11489 if test "x$ac_cv_func_dlopen" = xyes; then :
11490 lt_cv_dlopen="dlopen"
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11494 if ${ac_cv_lib_dl_dlopen+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 ac_check_lib_save_LIBS=$LIBS
11498 LIBS="-ldl $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char dlopen ();
11510 main ()
11512 return dlopen ();
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 ac_cv_lib_dl_dlopen=yes
11519 else
11520 ac_cv_lib_dl_dlopen=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11528 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11532 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11533 if ${ac_cv_lib_svld_dlopen+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lsvld $LIBS"
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char dlopen ();
11549 main ()
11551 return dlopen ();
11553 return 0;
11555 _ACEOF
11556 if ac_fn_c_try_link "$LINENO"; then :
11557 ac_cv_lib_svld_dlopen=yes
11558 else
11559 ac_cv_lib_svld_dlopen=no
11561 rm -f core conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11563 LIBS=$ac_check_lib_save_LIBS
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11566 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11567 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11571 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11572 if ${ac_cv_lib_dld_dld_link+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 ac_check_lib_save_LIBS=$LIBS
11576 LIBS="-ldld $LIBS"
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char dld_link ();
11588 main ()
11590 return dld_link ();
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_lib_dld_dld_link=yes
11597 else
11598 ac_cv_lib_dld_dld_link=no
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LIBS=$ac_check_lib_save_LIBS
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11605 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11606 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11607 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11626 esac
11628 if test "x$lt_cv_dlopen" != xno; then
11629 enable_dlopen=yes
11630 else
11631 enable_dlopen=no
11634 case $lt_cv_dlopen in
11635 dlopen)
11636 save_CPPFLAGS="$CPPFLAGS"
11637 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11639 save_LDFLAGS="$LDFLAGS"
11640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11642 save_LIBS="$LIBS"
11643 LIBS="$lt_cv_dlopen_libs $LIBS"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11646 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11647 if ${lt_cv_dlopen_self+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 if test "$cross_compiling" = yes; then :
11651 lt_cv_dlopen_self=cross
11652 else
11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11654 lt_status=$lt_dlunknown
11655 cat > conftest.$ac_ext <<_LT_EOF
11656 #line $LINENO "configure"
11657 #include "confdefs.h"
11659 #if HAVE_DLFCN_H
11660 #include <dlfcn.h>
11661 #endif
11663 #include <stdio.h>
11665 #ifdef RTLD_GLOBAL
11666 # define LT_DLGLOBAL RTLD_GLOBAL
11667 #else
11668 # ifdef DL_GLOBAL
11669 # define LT_DLGLOBAL DL_GLOBAL
11670 # else
11671 # define LT_DLGLOBAL 0
11672 # endif
11673 #endif
11675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676 find out it does not work in some platform. */
11677 #ifndef LT_DLLAZY_OR_NOW
11678 # ifdef RTLD_LAZY
11679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11680 # else
11681 # ifdef DL_LAZY
11682 # define LT_DLLAZY_OR_NOW DL_LAZY
11683 # else
11684 # ifdef RTLD_NOW
11685 # define LT_DLLAZY_OR_NOW RTLD_NOW
11686 # else
11687 # ifdef DL_NOW
11688 # define LT_DLLAZY_OR_NOW DL_NOW
11689 # else
11690 # define LT_DLLAZY_OR_NOW 0
11691 # endif
11692 # endif
11693 # endif
11694 # endif
11695 #endif
11697 /* When -fvisbility=hidden is used, assume the code has been annotated
11698 correspondingly for the symbols needed. */
11699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11700 int fnord () __attribute__((visibility("default")));
11701 #endif
11703 int fnord () { return 42; }
11704 int main ()
11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11707 int status = $lt_dlunknown;
11709 if (self)
11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11712 else
11714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11715 else puts (dlerror ());
11717 /* dlclose (self); */
11719 else
11720 puts (dlerror ());
11722 return status;
11724 _LT_EOF
11725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11726 (eval $ac_link) 2>&5
11727 ac_status=$?
11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11730 (./conftest; exit; ) >&5 2>/dev/null
11731 lt_status=$?
11732 case x$lt_status in
11733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11735 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11736 esac
11737 else :
11738 # compilation failed
11739 lt_cv_dlopen_self=no
11742 rm -fr conftest*
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11747 $as_echo "$lt_cv_dlopen_self" >&6; }
11749 if test "x$lt_cv_dlopen_self" = xyes; then
11750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11752 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11753 if ${lt_cv_dlopen_self_static+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 if test "$cross_compiling" = yes; then :
11757 lt_cv_dlopen_self_static=cross
11758 else
11759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760 lt_status=$lt_dlunknown
11761 cat > conftest.$ac_ext <<_LT_EOF
11762 #line $LINENO "configure"
11763 #include "confdefs.h"
11765 #if HAVE_DLFCN_H
11766 #include <dlfcn.h>
11767 #endif
11769 #include <stdio.h>
11771 #ifdef RTLD_GLOBAL
11772 # define LT_DLGLOBAL RTLD_GLOBAL
11773 #else
11774 # ifdef DL_GLOBAL
11775 # define LT_DLGLOBAL DL_GLOBAL
11776 # else
11777 # define LT_DLGLOBAL 0
11778 # endif
11779 #endif
11781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782 find out it does not work in some platform. */
11783 #ifndef LT_DLLAZY_OR_NOW
11784 # ifdef RTLD_LAZY
11785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11786 # else
11787 # ifdef DL_LAZY
11788 # define LT_DLLAZY_OR_NOW DL_LAZY
11789 # else
11790 # ifdef RTLD_NOW
11791 # define LT_DLLAZY_OR_NOW RTLD_NOW
11792 # else
11793 # ifdef DL_NOW
11794 # define LT_DLLAZY_OR_NOW DL_NOW
11795 # else
11796 # define LT_DLLAZY_OR_NOW 0
11797 # endif
11798 # endif
11799 # endif
11800 # endif
11801 #endif
11803 /* When -fvisbility=hidden is used, assume the code has been annotated
11804 correspondingly for the symbols needed. */
11805 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11806 int fnord () __attribute__((visibility("default")));
11807 #endif
11809 int fnord () { return 42; }
11810 int main ()
11812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11813 int status = $lt_dlunknown;
11815 if (self)
11817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11818 else
11820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11821 else puts (dlerror ());
11823 /* dlclose (self); */
11825 else
11826 puts (dlerror ());
11828 return status;
11830 _LT_EOF
11831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11832 (eval $ac_link) 2>&5
11833 ac_status=$?
11834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11836 (./conftest; exit; ) >&5 2>/dev/null
11837 lt_status=$?
11838 case x$lt_status in
11839 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11840 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11841 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11842 esac
11843 else :
11844 # compilation failed
11845 lt_cv_dlopen_self_static=no
11848 rm -fr conftest*
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11853 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11856 CPPFLAGS="$save_CPPFLAGS"
11857 LDFLAGS="$save_LDFLAGS"
11858 LIBS="$save_LIBS"
11860 esac
11862 case $lt_cv_dlopen_self in
11863 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11864 *) enable_dlopen_self=unknown ;;
11865 esac
11867 case $lt_cv_dlopen_self_static in
11868 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11869 *) enable_dlopen_self_static=unknown ;;
11870 esac
11889 striplib=
11890 old_striplib=
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11892 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11893 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11898 else
11899 # FIXME - insert some real tests, host_os isn't really good enough
11900 case $host_os in
11901 darwin*)
11902 if test -n "$STRIP" ; then
11903 striplib="$STRIP -x"
11904 old_striplib="$STRIP -S"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11906 $as_echo "yes" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11916 esac
11930 # Report which library types will actually be built
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11932 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11934 $as_echo "$can_build_shared" >&6; }
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11937 $as_echo_n "checking whether to build shared libraries... " >&6; }
11938 test "$can_build_shared" = "no" && enable_shared=no
11940 # On AIX, shared libraries and static libraries use the same namespace, and
11941 # are all built from PIC.
11942 case $host_os in
11943 aix3*)
11944 test "$enable_shared" = yes && enable_static=no
11945 if test -n "$RANLIB"; then
11946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11947 postinstall_cmds='$RANLIB $lib'
11951 aix[4-9]*)
11952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11953 test "$enable_shared" = yes && enable_static=no
11956 esac
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11958 $as_echo "$enable_shared" >&6; }
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11961 $as_echo_n "checking whether to build static libraries... " >&6; }
11962 # Make sure either enable_shared or enable_static is yes.
11963 test "$enable_shared" = yes || enable_static=yes
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11965 $as_echo "$enable_static" >&6; }
11971 ac_ext=c
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11977 CC="$lt_save_CC"
11993 ac_config_commands="$ac_config_commands libtool"
11998 # Only expand once:
12004 if test "$enable_libevent_regress" = "yes"; then
12005 BUILD_REGRESS_TRUE=
12006 BUILD_REGRESS_FALSE='#'
12007 else
12008 BUILD_REGRESS_TRUE='#'
12009 BUILD_REGRESS_FALSE=
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12014 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12015 if ${ac_cv_search_inet_ntoa+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 ac_func_search_save_LIBS=$LIBS
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char inet_ntoa ();
12030 main ()
12032 return inet_ntoa ();
12034 return 0;
12036 _ACEOF
12037 for ac_lib in '' nsl; do
12038 if test -z "$ac_lib"; then
12039 ac_res="none required"
12040 else
12041 ac_res=-l$ac_lib
12042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12044 if ac_fn_c_try_link "$LINENO"; then :
12045 ac_cv_search_inet_ntoa=$ac_res
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext
12049 if ${ac_cv_search_inet_ntoa+:} false; then :
12050 break
12052 done
12053 if ${ac_cv_search_inet_ntoa+:} false; then :
12055 else
12056 ac_cv_search_inet_ntoa=no
12058 rm conftest.$ac_ext
12059 LIBS=$ac_func_search_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12062 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12063 ac_res=$ac_cv_search_inet_ntoa
12064 if test "$ac_res" != no; then :
12065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12070 $as_echo_n "checking for library containing socket... " >&6; }
12071 if ${ac_cv_search_socket+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 ac_func_search_save_LIBS=$LIBS
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 char socket ();
12086 main ()
12088 return socket ();
12090 return 0;
12092 _ACEOF
12093 for ac_lib in '' socket; do
12094 if test -z "$ac_lib"; then
12095 ac_res="none required"
12096 else
12097 ac_res=-l$ac_lib
12098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12100 if ac_fn_c_try_link "$LINENO"; then :
12101 ac_cv_search_socket=$ac_res
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext
12105 if ${ac_cv_search_socket+:} false; then :
12106 break
12108 done
12109 if ${ac_cv_search_socket+:} false; then :
12111 else
12112 ac_cv_search_socket=no
12114 rm conftest.$ac_ext
12115 LIBS=$ac_func_search_save_LIBS
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12118 $as_echo "$ac_cv_search_socket" >&6; }
12119 ac_res=$ac_cv_search_socket
12120 if test "$ac_res" != no; then :
12121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12126 $as_echo_n "checking for library containing inet_aton... " >&6; }
12127 if ${ac_cv_search_inet_aton+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 ac_func_search_save_LIBS=$LIBS
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12134 /* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char inet_aton ();
12142 main ()
12144 return inet_aton ();
12146 return 0;
12148 _ACEOF
12149 for ac_lib in '' resolv; do
12150 if test -z "$ac_lib"; then
12151 ac_res="none required"
12152 else
12153 ac_res=-l$ac_lib
12154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12156 if ac_fn_c_try_link "$LINENO"; then :
12157 ac_cv_search_inet_aton=$ac_res
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext
12161 if ${ac_cv_search_inet_aton+:} false; then :
12162 break
12164 done
12165 if ${ac_cv_search_inet_aton+:} false; then :
12167 else
12168 ac_cv_search_inet_aton=no
12170 rm conftest.$ac_ext
12171 LIBS=$ac_func_search_save_LIBS
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12174 $as_echo "$ac_cv_search_inet_aton" >&6; }
12175 ac_res=$ac_cv_search_inet_aton
12176 if test "$ac_res" != no; then :
12177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12182 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12183 if ${ac_cv_search_clock_gettime+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 ac_func_search_save_LIBS=$LIBS
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char clock_gettime ();
12198 main ()
12200 return clock_gettime ();
12202 return 0;
12204 _ACEOF
12205 for ac_lib in '' rt; do
12206 if test -z "$ac_lib"; then
12207 ac_res="none required"
12208 else
12209 ac_res=-l$ac_lib
12210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12212 if ac_fn_c_try_link "$LINENO"; then :
12213 ac_cv_search_clock_gettime=$ac_res
12215 rm -f core conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext
12217 if ${ac_cv_search_clock_gettime+:} false; then :
12218 break
12220 done
12221 if ${ac_cv_search_clock_gettime+:} false; then :
12223 else
12224 ac_cv_search_clock_gettime=no
12226 rm conftest.$ac_ext
12227 LIBS=$ac_func_search_save_LIBS
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12230 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12231 ac_res=$ac_cv_search_clock_gettime
12232 if test "$ac_res" != no; then :
12233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12238 $as_echo_n "checking for library containing sendfile... " >&6; }
12239 if ${ac_cv_search_sendfile+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 ac_func_search_save_LIBS=$LIBS
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char sendfile ();
12254 main ()
12256 return sendfile ();
12258 return 0;
12260 _ACEOF
12261 for ac_lib in '' sendfile; do
12262 if test -z "$ac_lib"; then
12263 ac_res="none required"
12264 else
12265 ac_res=-l$ac_lib
12266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12268 if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_search_sendfile=$ac_res
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext
12273 if ${ac_cv_search_sendfile+:} false; then :
12274 break
12276 done
12277 if ${ac_cv_search_sendfile+:} false; then :
12279 else
12280 ac_cv_search_sendfile=no
12282 rm conftest.$ac_ext
12283 LIBS=$ac_func_search_save_LIBS
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12286 $as_echo "$ac_cv_search_sendfile" >&6; }
12287 ac_res=$ac_cv_search_sendfile
12288 if test "$ac_res" != no; then :
12289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12295 $as_echo_n "checking for WIN32... " >&6; }
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12300 main ()
12303 #ifndef WIN32
12304 die horribly
12305 #endif
12308 return 0;
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 else
12315 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12321 $as_echo_n "checking for CYGWIN... " >&6; }
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12326 main ()
12329 #ifndef __CYGWIN__
12330 die horribly
12331 #endif
12334 return 0;
12336 _ACEOF
12337 if ac_fn_c_try_compile "$LINENO"; then :
12338 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12339 $as_echo "yes" >&6; }
12340 else
12341 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 for ac_header in zlib.h
12347 do :
12348 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12349 if test "x$ac_cv_header_zlib_h" = xyes; then :
12350 cat >>confdefs.h <<_ACEOF
12351 #define HAVE_ZLIB_H 1
12352 _ACEOF
12356 done
12359 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12360 save_LIBS="$LIBS"
12361 LIBS=""
12362 ZLIB_LIBS=""
12363 have_zlib=no
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12365 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12366 if ${ac_cv_search_inflateEnd+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_func_search_save_LIBS=$LIBS
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 char inflateEnd ();
12381 main ()
12383 return inflateEnd ();
12385 return 0;
12387 _ACEOF
12388 for ac_lib in '' z; do
12389 if test -z "$ac_lib"; then
12390 ac_res="none required"
12391 else
12392 ac_res=-l$ac_lib
12393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12395 if ac_fn_c_try_link "$LINENO"; then :
12396 ac_cv_search_inflateEnd=$ac_res
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext
12400 if ${ac_cv_search_inflateEnd+:} false; then :
12401 break
12403 done
12404 if ${ac_cv_search_inflateEnd+:} false; then :
12406 else
12407 ac_cv_search_inflateEnd=no
12409 rm conftest.$ac_ext
12410 LIBS=$ac_func_search_save_LIBS
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12413 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12414 ac_res=$ac_cv_search_inflateEnd
12415 if test "$ac_res" != no; then :
12416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12417 have_zlib=yes
12418 ZLIB_LIBS="$LIBS"
12420 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12424 LIBS="$save_LIBS"
12427 if test "$have_zlib" = "yes"; then
12428 ZLIB_REGRESS_TRUE=
12429 ZLIB_REGRESS_FALSE='#'
12430 else
12431 ZLIB_REGRESS_TRUE='#'
12432 ZLIB_REGRESS_FALSE=
12436 if test "$bwin32" = true; then
12437 EV_LIB_WS32=-lws2_32
12438 EV_LIB_GDI=-lgdi32
12439 else
12440 EV_LIB_WS32=
12441 EV_LIB_GDI=
12447 for ac_header in openssl/bio.h
12448 do :
12449 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12450 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12451 cat >>confdefs.h <<_ACEOF
12452 #define HAVE_OPENSSL_BIO_H 1
12453 _ACEOF
12457 done
12460 if test "$enable_openssl" = "yes"; then
12461 save_LIBS="$LIBS"
12462 LIBS=""
12463 OPENSSL_LIBS=""
12464 have_openssl=no
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12466 $as_echo_n "checking for library containing SSL_new... " >&6; }
12467 if ${ac_cv_search_SSL_new+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_func_search_save_LIBS=$LIBS
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char SSL_new ();
12482 main ()
12484 return SSL_new ();
12486 return 0;
12488 _ACEOF
12489 for ac_lib in '' ssl; do
12490 if test -z "$ac_lib"; then
12491 ac_res="none required"
12492 else
12493 ac_res=-l$ac_lib
12494 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_search_SSL_new=$ac_res
12499 rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext
12501 if ${ac_cv_search_SSL_new+:} false; then :
12502 break
12504 done
12505 if ${ac_cv_search_SSL_new+:} false; then :
12507 else
12508 ac_cv_search_SSL_new=no
12510 rm conftest.$ac_ext
12511 LIBS=$ac_func_search_save_LIBS
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12514 $as_echo "$ac_cv_search_SSL_new" >&6; }
12515 ac_res=$ac_cv_search_SSL_new
12516 if test "$ac_res" != no; then :
12517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12518 have_openssl=yes
12519 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12521 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12523 else
12524 have_openssl=no
12527 LIBS="$save_LIBS"
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12532 $as_echo_n "checking for ANSI C header files... " >&6; }
12533 if ${ac_cv_header_stdc+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 #include <stdlib.h>
12539 #include <stdarg.h>
12540 #include <string.h>
12541 #include <float.h>
12544 main ()
12548 return 0;
12550 _ACEOF
12551 if ac_fn_c_try_compile "$LINENO"; then :
12552 ac_cv_header_stdc=yes
12553 else
12554 ac_cv_header_stdc=no
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558 if test $ac_cv_header_stdc = yes; then
12559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 #include <string.h>
12564 _ACEOF
12565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12566 $EGREP "memchr" >/dev/null 2>&1; then :
12568 else
12569 ac_cv_header_stdc=no
12571 rm -f conftest*
12575 if test $ac_cv_header_stdc = yes; then
12576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #include <stdlib.h>
12581 _ACEOF
12582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12583 $EGREP "free" >/dev/null 2>&1; then :
12585 else
12586 ac_cv_header_stdc=no
12588 rm -f conftest*
12592 if test $ac_cv_header_stdc = yes; then
12593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12594 if test "$cross_compiling" = yes; then :
12596 else
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #include <ctype.h>
12600 #include <stdlib.h>
12601 #if ((' ' & 0x0FF) == 0x020)
12602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12604 #else
12605 # define ISLOWER(c) \
12606 (('a' <= (c) && (c) <= 'i') \
12607 || ('j' <= (c) && (c) <= 'r') \
12608 || ('s' <= (c) && (c) <= 'z'))
12609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12610 #endif
12612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12614 main ()
12616 int i;
12617 for (i = 0; i < 256; i++)
12618 if (XOR (islower (i), ISLOWER (i))
12619 || toupper (i) != TOUPPER (i))
12620 return 2;
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_run "$LINENO"; then :
12626 else
12627 ac_cv_header_stdc=no
12629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12630 conftest.$ac_objext conftest.beam conftest.$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12636 $as_echo "$ac_cv_header_stdc" >&6; }
12637 if test $ac_cv_header_stdc = yes; then
12639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12643 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12644 do :
12645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12647 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12648 cat >>confdefs.h <<_ACEOF
12649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650 _ACEOF
12654 done
12656 for ac_header in sys/stat.h
12657 do :
12658 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12659 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12660 cat >>confdefs.h <<_ACEOF
12661 #define HAVE_SYS_STAT_H 1
12662 _ACEOF
12666 done
12668 for ac_header in sys/sysctl.h
12669 do :
12670 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12671 #ifdef HAVE_SYS_PARAM_H
12672 #include <sys/param.h>
12673 #endif
12676 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_SYS_SYSCTL_H 1
12679 _ACEOF
12683 done
12685 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12687 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 #include <sys/queue.h>
12692 #ifdef TAILQ_FOREACH
12694 #endif
12696 _ACEOF
12697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12698 $EGREP "yes" >/dev/null 2>&1; then :
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12700 $as_echo "yes" >&6; }
12702 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12709 rm -f conftest*
12713 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12715 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12719 #include <sys/time.h>
12720 #ifdef timeradd
12722 #endif
12724 _ACEOF
12725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12726 $EGREP "yes" >/dev/null 2>&1; then :
12728 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12731 $as_echo "yes" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12737 rm -f conftest*
12741 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12743 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 #include <sys/time.h>
12748 #ifdef timercmp
12750 #endif
12752 _ACEOF
12753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12754 $EGREP "yes" >/dev/null 2>&1; then :
12756 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759 $as_echo "yes" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12765 rm -f conftest*
12769 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12771 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12775 #include <sys/time.h>
12776 #ifdef timerclear
12778 #endif
12780 _ACEOF
12781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12782 $EGREP "yes" >/dev/null 2>&1; then :
12784 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12787 $as_echo "yes" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12793 rm -f conftest*
12797 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12799 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12803 #include <sys/time.h>
12804 #ifdef timerisset
12806 #endif
12808 _ACEOF
12809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810 $EGREP "yes" >/dev/null 2>&1; then :
12812 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12815 $as_echo "yes" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12821 rm -f conftest*
12825 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12826 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12827 #include <sys/sysctl.h>
12830 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12831 ac_have_decl=1
12832 else
12833 ac_have_decl=0
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_DECL_CTL_KERN $ac_have_decl
12838 _ACEOF
12839 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12840 #include <sys/sysctl.h>
12843 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12844 ac_have_decl=1
12845 else
12846 ac_have_decl=0
12849 cat >>confdefs.h <<_ACEOF
12850 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12851 _ACEOF
12852 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12853 #include <sys/sysctl.h>
12856 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12857 ac_have_decl=1
12858 else
12859 ac_have_decl=0
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12864 _ACEOF
12865 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12866 #include <sys/sysctl.h>
12869 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12870 ac_have_decl=1
12871 else
12872 ac_have_decl=0
12875 cat >>confdefs.h <<_ACEOF
12876 #define HAVE_DECL_KERN_ARND $ac_have_decl
12877 _ACEOF
12881 if test x$bwin32 = xtrue; then
12882 BUILD_WIN32_TRUE=
12883 BUILD_WIN32_FALSE='#'
12884 else
12885 BUILD_WIN32_TRUE='#'
12886 BUILD_WIN32_FALSE=
12889 if test x$cygwin = xtrue; then
12890 BUILD_CYGWIN_TRUE=
12891 BUILD_CYGWIN_FALSE='#'
12892 else
12893 BUILD_CYGWIN_TRUE='#'
12894 BUILD_CYGWIN_FALSE=
12897 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12898 BUILD_WITH_NO_UNDEFINED_TRUE=
12899 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12900 else
12901 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12902 BUILD_WITH_NO_UNDEFINED_FALSE=
12906 if test x$bwin32 = xtrue; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12908 $as_echo_n "checking for library containing getservbyname... " >&6; }
12909 if ${ac_cv_search_getservbyname+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 ac_func_search_save_LIBS=$LIBS
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char getservbyname ();
12924 main ()
12926 return getservbyname ();
12928 return 0;
12930 _ACEOF
12931 for ac_lib in '' ws2_32; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12934 else
12935 ac_res=-l$ac_lib
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_search_getservbyname=$ac_res
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext
12943 if ${ac_cv_search_getservbyname+:} false; then :
12944 break
12946 done
12947 if ${ac_cv_search_getservbyname+:} false; then :
12949 else
12950 ac_cv_search_getservbyname=no
12952 rm conftest.$ac_ext
12953 LIBS=$ac_func_search_save_LIBS
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12956 $as_echo "$ac_cv_search_getservbyname" >&6; }
12957 ac_res=$ac_cv_search_getservbyname
12958 if test "$ac_res" != no; then :
12959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12966 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12967 if ${ac_cv_c_const+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12974 main ()
12976 /* FIXME: Include the comments suggested by Paul. */
12977 #ifndef __cplusplus
12978 /* Ultrix mips cc rejects this. */
12979 typedef int charset[2];
12980 const charset cs;
12981 /* SunOS 4.1.1 cc rejects this. */
12982 char const *const *pcpcc;
12983 char **ppc;
12984 /* NEC SVR4.0.2 mips cc rejects this. */
12985 struct point {int x, y;};
12986 static struct point const zero = {0,0};
12987 /* AIX XL C 1.02.0.0 rejects this.
12988 It does not let you subtract one const X* pointer from another in
12989 an arm of an if-expression whose if-part is not a constant
12990 expression */
12991 const char *g = "string";
12992 pcpcc = &g + (g ? g-g : 0);
12993 /* HPUX 7.0 cc rejects these. */
12994 ++pcpcc;
12995 ppc = (char**) pcpcc;
12996 pcpcc = (char const *const *) ppc;
12997 { /* SCO 3.2v4 cc rejects this. */
12998 char *t;
12999 char const *s = 0 ? (char *) 0 : (char const *) 0;
13001 *t++ = 0;
13002 if (s) return 0;
13004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13005 int x[] = {25, 17};
13006 const int *foo = &x[0];
13007 ++foo;
13009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13010 typedef const int *iptr;
13011 iptr p = 0;
13012 ++p;
13014 { /* AIX XL C 1.02.0.0 rejects this saying
13015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13016 struct s { int j; const int *ap[3]; };
13017 struct s *b; b->j = 5;
13019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13020 const int foo = 10;
13021 if (!foo) return 0;
13023 return !cs[0] && !zero.x;
13024 #endif
13027 return 0;
13029 _ACEOF
13030 if ac_fn_c_try_compile "$LINENO"; then :
13031 ac_cv_c_const=yes
13032 else
13033 ac_cv_c_const=no
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13038 $as_echo "$ac_cv_c_const" >&6; }
13039 if test $ac_cv_c_const = no; then
13041 $as_echo "#define const /**/" >>confdefs.h
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13046 $as_echo_n "checking for inline... " >&6; }
13047 if ${ac_cv_c_inline+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 ac_cv_c_inline=no
13051 for ac_kw in inline __inline__ __inline; do
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054 #ifndef __cplusplus
13055 typedef int foo_t;
13056 static $ac_kw foo_t static_foo () {return 0; }
13057 $ac_kw foo_t foo () {return 0; }
13058 #endif
13060 _ACEOF
13061 if ac_fn_c_try_compile "$LINENO"; then :
13062 ac_cv_c_inline=$ac_kw
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 test "$ac_cv_c_inline" != no && break
13066 done
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13070 $as_echo "$ac_cv_c_inline" >&6; }
13072 case $ac_cv_c_inline in
13073 inline | yes) ;;
13075 case $ac_cv_c_inline in
13076 no) ac_val=;;
13077 *) ac_val=$ac_cv_c_inline;;
13078 esac
13079 cat >>confdefs.h <<_ACEOF
13080 #ifndef __cplusplus
13081 #define inline $ac_val
13082 #endif
13083 _ACEOF
13085 esac
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13088 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13089 if ${ac_cv_header_time+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 #include <sys/types.h>
13095 #include <sys/time.h>
13096 #include <time.h>
13099 main ()
13101 if ((struct tm *) 0)
13102 return 0;
13104 return 0;
13106 _ACEOF
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 ac_cv_header_time=yes
13109 else
13110 ac_cv_header_time=no
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13115 $as_echo "$ac_cv_header_time" >&6; }
13116 if test $ac_cv_header_time = yes; then
13118 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13123 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13124 do :
13125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13127 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13128 cat >>confdefs.h <<_ACEOF
13129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13130 _ACEOF
13133 done
13135 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13136 do :
13137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13140 cat >>confdefs.h <<_ACEOF
13141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13142 _ACEOF
13145 done
13147 for ac_func in umask
13148 do :
13149 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13150 if test "x$ac_cv_func_umask" = xyes; then :
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_UMASK 1
13153 _ACEOF
13156 done
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13160 $as_echo_n "checking for getaddrinfo... " >&6; }
13161 if ${libevent_cv_getaddrinfo+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13167 #ifdef HAVE_NETDB_H
13168 #include <netdb.h>
13169 #endif
13172 main ()
13175 getaddrinfo;
13179 return 0;
13181 _ACEOF
13182 if ac_fn_c_try_link "$LINENO"; then :
13183 libevent_cv_getaddrinfo=yes
13184 else
13185 libevent_cv_getaddrinfo=no
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13193 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13194 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13196 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13198 else
13200 for ac_func in getservbyname
13201 do :
13202 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13203 if test "x$ac_cv_func_getservbyname" = xyes; then :
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_GETSERVBYNAME 1
13206 _ACEOF
13209 done
13211 # Check for gethostbyname_r in all its glorious incompatible versions.
13212 # (This is cut-and-pasted from Tor, which based its logic on
13213 # Python's configure.in.)
13216 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13217 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13220 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13221 OLD_CFLAGS=$CFLAGS
13222 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 #include <netdb.h>
13229 main ()
13232 char *cp1, *cp2;
13233 struct hostent *h1, *h2;
13234 int i1, i2;
13235 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13238 return 0;
13240 _ACEOF
13241 if ac_fn_c_try_compile "$LINENO"; then :
13243 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13246 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13249 $as_echo "6" >&6; }
13251 else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 #include <netdb.h>
13259 main ()
13262 char *cp1, *cp2;
13263 struct hostent *h1;
13264 int i1, i2;
13265 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13268 return 0;
13270 _ACEOF
13271 if ac_fn_c_try_compile "$LINENO"; then :
13273 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13276 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13279 $as_echo "5" >&6; }
13281 else
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 #include <netdb.h>
13289 main ()
13292 char *cp1;
13293 struct hostent *h1;
13294 struct hostent_data hd;
13295 (void) gethostbyname_r(cp1,h1,&hd);
13298 return 0;
13300 _ACEOF
13301 if ac_fn_c_try_compile "$LINENO"; then :
13303 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13306 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13309 $as_echo "3" >&6; }
13311 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13314 $as_echo "0" >&6; }
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 CFLAGS=$OLD_CFLAGS
13331 # The cast to long int works around a bug in the HP C Compiler
13332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13334 # This bug is HP SR number 8606223364.
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13336 $as_echo_n "checking size of long... " >&6; }
13337 if ${ac_cv_sizeof_long+:} false; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13342 else
13343 if test "$ac_cv_type_long" = yes; then
13344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13346 as_fn_error 77 "cannot compute sizeof (long)
13347 See \`config.log' for more details" "$LINENO" 5; }
13348 else
13349 ac_cv_sizeof_long=0
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13355 $as_echo "$ac_cv_sizeof_long" >&6; }
13359 cat >>confdefs.h <<_ACEOF
13360 #define SIZEOF_LONG $ac_cv_sizeof_long
13361 _ACEOF
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13366 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13370 #define _GNU_SOURCE
13371 #include <fcntl.h>
13372 #ifdef F_SETFD
13374 #endif
13376 _ACEOF
13377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13378 $EGREP "yes" >/dev/null 2>&1; then :
13380 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13383 $as_echo "yes" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13388 rm -f conftest*
13391 needsignal=no
13392 haveselect=no
13393 if test x$bwin32 != xtrue; then
13394 for ac_func in select
13395 do :
13396 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13397 if test "x$ac_cv_func_select" = xyes; then :
13398 cat >>confdefs.h <<_ACEOF
13399 #define HAVE_SELECT 1
13400 _ACEOF
13401 haveselect=yes
13403 done
13405 if test "x$haveselect" = "xyes" ; then
13406 needsignal=yes
13409 if test "x$haveselect" = "xyes"; then
13410 SELECT_BACKEND_TRUE=
13411 SELECT_BACKEND_FALSE='#'
13412 else
13413 SELECT_BACKEND_TRUE='#'
13414 SELECT_BACKEND_FALSE=
13418 havepoll=no
13419 for ac_func in poll
13420 do :
13421 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13422 if test "x$ac_cv_func_poll" = xyes; then :
13423 cat >>confdefs.h <<_ACEOF
13424 #define HAVE_POLL 1
13425 _ACEOF
13426 havepoll=yes
13428 done
13430 if test "x$havepoll" = "xyes" ; then
13431 needsignal=yes
13433 if test "x$havepoll" = "xyes"; then
13434 POLL_BACKEND_TRUE=
13435 POLL_BACKEND_FALSE='#'
13436 else
13437 POLL_BACKEND_TRUE='#'
13438 POLL_BACKEND_FALSE=
13442 havedevpoll=no
13443 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13445 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13448 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13449 DEVPOLL_BACKEND_TRUE=
13450 DEVPOLL_BACKEND_FALSE='#'
13451 else
13452 DEVPOLL_BACKEND_TRUE='#'
13453 DEVPOLL_BACKEND_FALSE=
13457 havekqueue=no
13458 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13459 for ac_func in kqueue
13460 do :
13461 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13462 if test "x$ac_cv_func_kqueue" = xyes; then :
13463 cat >>confdefs.h <<_ACEOF
13464 #define HAVE_KQUEUE 1
13465 _ACEOF
13466 havekqueue=yes
13468 done
13470 if test "x$havekqueue" = "xyes" ; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13472 $as_echo_n "checking for working kqueue... " >&6; }
13473 if test "$cross_compiling" = yes; then :
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 else
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13480 #include <sys/time.h>
13481 #include <sys/event.h>
13482 #include <stdio.h>
13483 #include <unistd.h>
13484 #include <fcntl.h>
13487 main(int argc, char **argv)
13489 int kq;
13490 int n;
13491 int fd[2];
13492 struct kevent ev;
13493 struct timespec ts;
13494 char buf[8000];
13496 if (pipe(fd) == -1)
13497 exit(1);
13498 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13499 exit(1);
13501 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13504 if ((kq = kqueue()) == -1)
13505 exit(1);
13507 memset(&ev, 0, sizeof(ev));
13508 ev.ident = fd[1];
13509 ev.filter = EVFILT_WRITE;
13510 ev.flags = EV_ADD | EV_ENABLE;
13511 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13512 if (n == -1)
13513 exit(1);
13515 read(fd[0], buf, sizeof(buf));
13517 ts.tv_sec = 0;
13518 ts.tv_nsec = 0;
13519 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13520 if (n == -1 || n == 0)
13521 exit(1);
13523 exit(0);
13525 _ACEOF
13526 if ac_fn_c_try_run "$LINENO"; then :
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13528 $as_echo "yes" >&6; }
13530 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13532 havekqueue=yes
13534 else
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13539 conftest.$ac_objext conftest.beam conftest.$ac_ext
13544 if test "x$havekqueue" = "xyes"; then
13545 KQUEUE_BACKEND_TRUE=
13546 KQUEUE_BACKEND_FALSE='#'
13547 else
13548 KQUEUE_BACKEND_TRUE='#'
13549 KQUEUE_BACKEND_FALSE=
13553 haveepollsyscall=no
13554 haveepoll=no
13555 for ac_func in epoll_ctl
13556 do :
13557 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13558 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_EPOLL_CTL 1
13561 _ACEOF
13562 haveepoll=yes
13564 done
13566 if test "x$haveepoll" = "xyes" ; then
13568 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13570 needsignal=yes
13572 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13573 if test "x$haveepoll" = "xno" ; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13575 $as_echo_n "checking for epoll system call... " >&6; }
13576 if test "$cross_compiling" = yes; then :
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13579 else
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582 #include <stdint.h>
13583 #include <sys/param.h>
13584 #include <sys/types.h>
13585 #include <sys/syscall.h>
13586 #include <sys/epoll.h>
13587 #include <unistd.h>
13590 epoll_create(int size)
13592 return (syscall(__NR_epoll_create, size));
13596 main(int argc, char **argv)
13598 int epfd;
13600 epfd = epoll_create(256);
13601 exit (epfd == -1 ? 1 : 0);
13603 _ACEOF
13604 if ac_fn_c_try_run "$LINENO"; then :
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13608 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13610 needsignal=yes
13611 have_epoll=yes
13612 case " $LIBOBJS " in
13613 *" epoll_sub.$ac_objext "* ) ;;
13614 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13616 esac
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13624 conftest.$ac_objext conftest.beam conftest.$ac_ext
13629 if test "x$haveepoll" = "xyes"; then
13630 EPOLL_BACKEND_TRUE=
13631 EPOLL_BACKEND_FALSE='#'
13632 else
13633 EPOLL_BACKEND_TRUE='#'
13634 EPOLL_BACKEND_FALSE=
13638 haveeventports=no
13639 for ac_func in port_create
13640 do :
13641 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13642 if test "x$ac_cv_func_port_create" = xyes; then :
13643 cat >>confdefs.h <<_ACEOF
13644 #define HAVE_PORT_CREATE 1
13645 _ACEOF
13646 haveeventports=yes
13648 done
13650 if test "x$haveeventports" = "xyes" ; then
13652 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13654 needsignal=yes
13656 if test "x$haveeventports" = "xyes"; then
13657 EVPORT_BACKEND_TRUE=
13658 EVPORT_BACKEND_FALSE='#'
13659 else
13660 EVPORT_BACKEND_TRUE='#'
13661 EVPORT_BACKEND_FALSE=
13665 if test "x$bwin32" = "xtrue"; then
13666 needsignal=yes
13669 if test "x$needsignal" = "xyes"; then
13670 SIGNAL_SUPPORT_TRUE=
13671 SIGNAL_SUPPORT_FALSE='#'
13672 else
13673 SIGNAL_SUPPORT_TRUE='#'
13674 SIGNAL_SUPPORT_FALSE=
13678 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13679 if test "x$ac_cv_type_pid_t" = xyes; then :
13681 else
13683 cat >>confdefs.h <<_ACEOF
13684 #define pid_t int
13685 _ACEOF
13689 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13690 if test "x$ac_cv_type_size_t" = xyes; then :
13692 else
13694 cat >>confdefs.h <<_ACEOF
13695 #define size_t unsigned int
13696 _ACEOF
13700 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13701 if test "x$ac_cv_type_ssize_t" = xyes; then :
13703 else
13705 cat >>confdefs.h <<_ACEOF
13706 #define ssize_t int
13707 _ACEOF
13712 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13713 #include <stdint.h>
13714 #elif defined(HAVE_INTTYPES_H)
13715 #include <inttypes.h>
13716 #endif
13717 #ifdef HAVE_SYS_TYPES_H
13718 #include <sys/types.h>
13719 #endif
13721 if test "x$ac_cv_type_uint64_t" = xyes; then :
13723 cat >>confdefs.h <<_ACEOF
13724 #define HAVE_UINT64_T 1
13725 _ACEOF
13729 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13730 #include <stdint.h>
13731 #elif defined(HAVE_INTTYPES_H)
13732 #include <inttypes.h>
13733 #endif
13734 #ifdef HAVE_SYS_TYPES_H
13735 #include <sys/types.h>
13736 #endif
13738 if test "x$ac_cv_type_uint32_t" = xyes; then :
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_UINT32_T 1
13742 _ACEOF
13746 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13747 #include <stdint.h>
13748 #elif defined(HAVE_INTTYPES_H)
13749 #include <inttypes.h>
13750 #endif
13751 #ifdef HAVE_SYS_TYPES_H
13752 #include <sys/types.h>
13753 #endif
13755 if test "x$ac_cv_type_uint16_t" = xyes; then :
13757 cat >>confdefs.h <<_ACEOF
13758 #define HAVE_UINT16_T 1
13759 _ACEOF
13763 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13764 #include <stdint.h>
13765 #elif defined(HAVE_INTTYPES_H)
13766 #include <inttypes.h>
13767 #endif
13768 #ifdef HAVE_SYS_TYPES_H
13769 #include <sys/types.h>
13770 #endif
13772 if test "x$ac_cv_type_uint8_t" = xyes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define HAVE_UINT8_T 1
13776 _ACEOF
13780 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13781 #include <stdint.h>
13782 #elif defined(HAVE_INTTYPES_H)
13783 #include <inttypes.h>
13784 #endif
13785 #ifdef HAVE_SYS_TYPES_H
13786 #include <sys/types.h>
13787 #endif
13789 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_UINTPTR_T 1
13793 _ACEOF
13799 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13800 #include <sys/types.h>
13801 #endif
13802 #ifdef HAVE_SYS_SELECT_H
13803 #include <sys/select.h>
13804 #endif
13806 if test "x$ac_cv_type_fd_mask" = xyes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_FD_MASK 1
13810 _ACEOF
13816 # The cast to long int works around a bug in the HP C Compiler
13817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13819 # This bug is HP SR number 8606223364.
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13821 $as_echo_n "checking size of long long... " >&6; }
13822 if ${ac_cv_sizeof_long_long+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13827 else
13828 if test "$ac_cv_type_long_long" = yes; then
13829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13831 as_fn_error 77 "cannot compute sizeof (long long)
13832 See \`config.log' for more details" "$LINENO" 5; }
13833 else
13834 ac_cv_sizeof_long_long=0
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13840 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13844 cat >>confdefs.h <<_ACEOF
13845 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13846 _ACEOF
13849 # The cast to long int works around a bug in the HP C Compiler
13850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13852 # This bug is HP SR number 8606223364.
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13854 $as_echo_n "checking size of long... " >&6; }
13855 if ${ac_cv_sizeof_long+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13860 else
13861 if test "$ac_cv_type_long" = yes; then
13862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13864 as_fn_error 77 "cannot compute sizeof (long)
13865 See \`config.log' for more details" "$LINENO" 5; }
13866 else
13867 ac_cv_sizeof_long=0
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13873 $as_echo "$ac_cv_sizeof_long" >&6; }
13877 cat >>confdefs.h <<_ACEOF
13878 #define SIZEOF_LONG $ac_cv_sizeof_long
13879 _ACEOF
13882 # The cast to long int works around a bug in the HP C Compiler
13883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13885 # This bug is HP SR number 8606223364.
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13887 $as_echo_n "checking size of int... " >&6; }
13888 if ${ac_cv_sizeof_int+:} false; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13893 else
13894 if test "$ac_cv_type_int" = yes; then
13895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13897 as_fn_error 77 "cannot compute sizeof (int)
13898 See \`config.log' for more details" "$LINENO" 5; }
13899 else
13900 ac_cv_sizeof_int=0
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13906 $as_echo "$ac_cv_sizeof_int" >&6; }
13910 cat >>confdefs.h <<_ACEOF
13911 #define SIZEOF_INT $ac_cv_sizeof_int
13912 _ACEOF
13915 # The cast to long int works around a bug in the HP C Compiler
13916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13918 # This bug is HP SR number 8606223364.
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13920 $as_echo_n "checking size of short... " >&6; }
13921 if ${ac_cv_sizeof_short+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13926 else
13927 if test "$ac_cv_type_short" = yes; then
13928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13930 as_fn_error 77 "cannot compute sizeof (short)
13931 See \`config.log' for more details" "$LINENO" 5; }
13932 else
13933 ac_cv_sizeof_short=0
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13939 $as_echo "$ac_cv_sizeof_short" >&6; }
13943 cat >>confdefs.h <<_ACEOF
13944 #define SIZEOF_SHORT $ac_cv_sizeof_short
13945 _ACEOF
13948 # The cast to long int works around a bug in the HP C Compiler
13949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13951 # This bug is HP SR number 8606223364.
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13953 $as_echo_n "checking size of size_t... " >&6; }
13954 if ${ac_cv_sizeof_size_t+:} false; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13959 else
13960 if test "$ac_cv_type_size_t" = yes; then
13961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13963 as_fn_error 77 "cannot compute sizeof (size_t)
13964 See \`config.log' for more details" "$LINENO" 5; }
13965 else
13966 ac_cv_sizeof_size_t=0
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13972 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13976 cat >>confdefs.h <<_ACEOF
13977 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13978 _ACEOF
13981 # The cast to long int works around a bug in the HP C Compiler
13982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13984 # This bug is HP SR number 8606223364.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13986 $as_echo_n "checking size of void *... " >&6; }
13987 if ${ac_cv_sizeof_void_p+:} false; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13992 else
13993 if test "$ac_cv_type_void_p" = yes; then
13994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13996 as_fn_error 77 "cannot compute sizeof (void *)
13997 See \`config.log' for more details" "$LINENO" 5; }
13998 else
13999 ac_cv_sizeof_void_p=0
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14005 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14009 cat >>confdefs.h <<_ACEOF
14010 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14011 _ACEOF
14015 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14016 #include <sys/types.h>
14017 #ifdef HAVE_NETINET_IN_H
14018 #include <netinet/in.h>
14019 #endif
14020 #ifdef HAVE_NETINET_IN6_H
14021 #include <netinet/in6.h>
14022 #endif
14023 #ifdef HAVE_SYS_SOCKET_H
14024 #include <sys/socket.h>
14025 #endif
14026 #ifdef HAVE_NETDB_H
14027 #include <netdb.h>
14028 #endif
14029 #ifdef WIN32
14030 #define WIN32_WINNT 0x400
14031 #define _WIN32_WINNT 0x400
14032 #define WIN32_LEAN_AND_MEAN
14033 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14034 #include <winsock.h>
14035 #else
14036 #include <winsock2.h>
14037 #include <ws2tcpip.h>
14038 #endif
14039 #endif
14042 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define HAVE_STRUCT_IN6_ADDR 1
14046 _ACEOF
14050 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14051 #include <sys/types.h>
14052 #ifdef HAVE_NETINET_IN_H
14053 #include <netinet/in.h>
14054 #endif
14055 #ifdef HAVE_NETINET_IN6_H
14056 #include <netinet/in6.h>
14057 #endif
14058 #ifdef HAVE_SYS_SOCKET_H
14059 #include <sys/socket.h>
14060 #endif
14061 #ifdef HAVE_NETDB_H
14062 #include <netdb.h>
14063 #endif
14064 #ifdef WIN32
14065 #define WIN32_WINNT 0x400
14066 #define _WIN32_WINNT 0x400
14067 #define WIN32_LEAN_AND_MEAN
14068 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14069 #include <winsock.h>
14070 #else
14071 #include <winsock2.h>
14072 #include <ws2tcpip.h>
14073 #endif
14074 #endif
14077 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_STRUCT_SOCKADDR_IN6 1
14081 _ACEOF
14085 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14086 #include <sys/types.h>
14087 #ifdef HAVE_NETINET_IN_H
14088 #include <netinet/in.h>
14089 #endif
14090 #ifdef HAVE_NETINET_IN6_H
14091 #include <netinet/in6.h>
14092 #endif
14093 #ifdef HAVE_SYS_SOCKET_H
14094 #include <sys/socket.h>
14095 #endif
14096 #ifdef HAVE_NETDB_H
14097 #include <netdb.h>
14098 #endif
14099 #ifdef WIN32
14100 #define WIN32_WINNT 0x400
14101 #define _WIN32_WINNT 0x400
14102 #define WIN32_LEAN_AND_MEAN
14103 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14104 #include <winsock.h>
14105 #else
14106 #include <winsock2.h>
14107 #include <ws2tcpip.h>
14108 #endif
14109 #endif
14112 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14114 cat >>confdefs.h <<_ACEOF
14115 #define HAVE_SA_FAMILY_T 1
14116 _ACEOF
14120 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14121 #include <sys/types.h>
14122 #ifdef HAVE_NETINET_IN_H
14123 #include <netinet/in.h>
14124 #endif
14125 #ifdef HAVE_NETINET_IN6_H
14126 #include <netinet/in6.h>
14127 #endif
14128 #ifdef HAVE_SYS_SOCKET_H
14129 #include <sys/socket.h>
14130 #endif
14131 #ifdef HAVE_NETDB_H
14132 #include <netdb.h>
14133 #endif
14134 #ifdef WIN32
14135 #define WIN32_WINNT 0x400
14136 #define _WIN32_WINNT 0x400
14137 #define WIN32_LEAN_AND_MEAN
14138 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14139 #include <winsock.h>
14140 #else
14141 #include <winsock2.h>
14142 #include <ws2tcpip.h>
14143 #endif
14144 #endif
14147 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14149 cat >>confdefs.h <<_ACEOF
14150 #define HAVE_STRUCT_ADDRINFO 1
14151 _ACEOF
14155 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14156 #include <sys/types.h>
14157 #ifdef HAVE_NETINET_IN_H
14158 #include <netinet/in.h>
14159 #endif
14160 #ifdef HAVE_NETINET_IN6_H
14161 #include <netinet/in6.h>
14162 #endif
14163 #ifdef HAVE_SYS_SOCKET_H
14164 #include <sys/socket.h>
14165 #endif
14166 #ifdef HAVE_NETDB_H
14167 #include <netdb.h>
14168 #endif
14169 #ifdef WIN32
14170 #define WIN32_WINNT 0x400
14171 #define _WIN32_WINNT 0x400
14172 #define WIN32_LEAN_AND_MEAN
14173 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14174 #include <winsock.h>
14175 #else
14176 #include <winsock2.h>
14177 #include <ws2tcpip.h>
14178 #endif
14179 #endif
14182 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14184 cat >>confdefs.h <<_ACEOF
14185 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14186 _ACEOF
14191 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14192 #ifdef HAVE_NETINET_IN_H
14193 #include <netinet/in.h>
14194 #endif
14195 #ifdef HAVE_NETINET_IN6_H
14196 #include <netinet/in6.h>
14197 #endif
14198 #ifdef HAVE_SYS_SOCKET_H
14199 #include <sys/socket.h>
14200 #endif
14201 #ifdef WIN32
14202 #define WIN32_WINNT 0x400
14203 #define _WIN32_WINNT 0x400
14204 #define WIN32_LEAN_AND_MEAN
14205 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14206 #include <winsock.h>
14207 #else
14208 #include <winsock2.h>
14209 #include <ws2tcpip.h>
14210 #endif
14211 #endif
14214 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14218 _ACEOF
14222 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14223 #ifdef HAVE_NETINET_IN_H
14224 #include <netinet/in.h>
14225 #endif
14226 #ifdef HAVE_NETINET_IN6_H
14227 #include <netinet/in6.h>
14228 #endif
14229 #ifdef HAVE_SYS_SOCKET_H
14230 #include <sys/socket.h>
14231 #endif
14232 #ifdef WIN32
14233 #define WIN32_WINNT 0x400
14234 #define _WIN32_WINNT 0x400
14235 #define WIN32_LEAN_AND_MEAN
14236 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14237 #include <winsock.h>
14238 #else
14239 #include <winsock2.h>
14240 #include <ws2tcpip.h>
14241 #endif
14242 #endif
14245 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14247 cat >>confdefs.h <<_ACEOF
14248 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14249 _ACEOF
14253 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14254 #ifdef HAVE_NETINET_IN_H
14255 #include <netinet/in.h>
14256 #endif
14257 #ifdef HAVE_NETINET_IN6_H
14258 #include <netinet/in6.h>
14259 #endif
14260 #ifdef HAVE_SYS_SOCKET_H
14261 #include <sys/socket.h>
14262 #endif
14263 #ifdef WIN32
14264 #define WIN32_WINNT 0x400
14265 #define _WIN32_WINNT 0x400
14266 #define WIN32_LEAN_AND_MEAN
14267 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14268 #include <winsock.h>
14269 #else
14270 #include <winsock2.h>
14271 #include <ws2tcpip.h>
14272 #endif
14273 #endif
14276 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14278 cat >>confdefs.h <<_ACEOF
14279 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14280 _ACEOF
14284 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14285 #ifdef HAVE_NETINET_IN_H
14286 #include <netinet/in.h>
14287 #endif
14288 #ifdef HAVE_NETINET_IN6_H
14289 #include <netinet/in6.h>
14290 #endif
14291 #ifdef HAVE_SYS_SOCKET_H
14292 #include <sys/socket.h>
14293 #endif
14294 #ifdef WIN32
14295 #define WIN32_WINNT 0x400
14296 #define _WIN32_WINNT 0x400
14297 #define WIN32_LEAN_AND_MEAN
14298 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14299 #include <winsock.h>
14300 #else
14301 #include <winsock2.h>
14302 #include <ws2tcpip.h>
14303 #endif
14304 #endif
14307 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14311 _ACEOF
14315 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14316 #ifdef HAVE_NETINET_IN_H
14317 #include <netinet/in.h>
14318 #endif
14319 #ifdef HAVE_NETINET_IN6_H
14320 #include <netinet/in6.h>
14321 #endif
14322 #ifdef HAVE_SYS_SOCKET_H
14323 #include <sys/socket.h>
14324 #endif
14325 #ifdef WIN32
14326 #define WIN32_WINNT 0x400
14327 #define _WIN32_WINNT 0x400
14328 #define WIN32_LEAN_AND_MEAN
14329 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14330 #include <winsock.h>
14331 #else
14332 #include <winsock2.h>
14333 #include <ws2tcpip.h>
14334 #endif
14335 #endif
14338 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14342 _ACEOF
14346 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14347 #ifdef HAVE_NETINET_IN_H
14348 #include <netinet/in.h>
14349 #endif
14350 #ifdef HAVE_NETINET_IN6_H
14351 #include <netinet/in6.h>
14352 #endif
14353 #ifdef HAVE_SYS_SOCKET_H
14354 #include <sys/socket.h>
14355 #endif
14356 #ifdef WIN32
14357 #define WIN32_WINNT 0x400
14358 #define _WIN32_WINNT 0x400
14359 #define WIN32_LEAN_AND_MEAN
14360 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14361 #include <winsock.h>
14362 #else
14363 #include <winsock2.h>
14364 #include <ws2tcpip.h>
14365 #endif
14366 #endif
14369 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14371 cat >>confdefs.h <<_ACEOF
14372 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14373 _ACEOF
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14380 $as_echo_n "checking for socklen_t... " >&6; }
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14384 #include <sys/types.h>
14385 #include <sys/socket.h>
14387 main ()
14389 socklen_t x;
14391 return 0;
14393 _ACEOF
14394 if ac_fn_c_try_compile "$LINENO"; then :
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14401 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14408 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14413 main ()
14415 const char *cp = __func__;
14417 return 0;
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14422 $as_echo "yes" >&6; }
14423 else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14425 $as_echo "no" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14427 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14432 main ()
14434 const char *cp = __FUNCTION__;
14436 return 0;
14438 _ACEOF
14439 if ac_fn_c_try_compile "$LINENO"; then :
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14441 $as_echo "yes" >&6; }
14443 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14445 else
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447 $as_echo "no" >&6; }
14449 $as_echo "#define __func__ __FILE__" >>confdefs.h
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 # check if we can compile with pthreads
14458 have_pthreads=no
14459 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14463 ac_ext=c
14464 ac_cpp='$CPP $CPPFLAGS'
14465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14469 acx_pthread_ok=no
14471 # We used to check for pthread.h first, but this fails if pthread.h
14472 # requires special compiler flags (e.g. on True64 or Sequent).
14473 # It gets checked for in the link test anyway.
14475 # First of all, check if the user has set any of the PTHREAD_LIBS,
14476 # etcetera environment variables, and if threads linking works using
14477 # them:
14478 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14479 save_CFLAGS="$CFLAGS"
14480 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14481 save_LIBS="$LIBS"
14482 LIBS="$PTHREAD_LIBS $LIBS"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14484 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14488 /* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 char pthread_join ();
14496 main ()
14498 return pthread_join ();
14500 return 0;
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 acx_pthread_ok=yes
14506 rm -f core conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14509 $as_echo "$acx_pthread_ok" >&6; }
14510 if test x"$acx_pthread_ok" = xno; then
14511 PTHREAD_LIBS=""
14512 PTHREAD_CFLAGS=""
14514 LIBS="$save_LIBS"
14515 CFLAGS="$save_CFLAGS"
14518 # We must check for the threads library under a number of different
14519 # names; the ordering is very important because some systems
14520 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14521 # libraries is broken (non-POSIX).
14523 # Create a list of thread flags to try. Items starting with a "-" are
14524 # C compiler flags, and other items are library names, except for "none"
14525 # which indicates that we try without any flags at all, and "pthread-config"
14526 # which is a program returning the flags for the Pth emulation library.
14528 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14530 # The ordering *is* (sometimes) important. Some notes on the
14531 # individual items follow:
14533 # pthreads: AIX (must check this before -lpthread)
14534 # none: in case threads are in libc; should be tried before -Kthread and
14535 # other compiler flags to prevent continual compiler warnings
14536 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14537 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14538 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14539 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14540 # -pthreads: Solaris/gcc
14541 # -mthreads: Mingw32/gcc, Lynx/gcc
14542 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14543 # doesn't hurt to check since this sometimes defines pthreads too;
14544 # also defines -D_REENTRANT)
14545 # ... -mt is also the pthreads flag for HP/aCC
14546 # pthread: Linux, etcetera
14547 # --thread-safe: KAI C++
14548 # pthread-config: use pthread-config program (for GNU Pth library)
14550 case "${host_cpu}-${host_os}" in
14551 *solaris*)
14553 # On Solaris (at least, for some versions), libc contains stubbed
14554 # (non-functional) versions of the pthreads routines, so link-based
14555 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14556 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14557 # a function called by this macro, so we could check for that, but
14558 # who knows whether they'll stub that too in a future libc.) So,
14559 # we'll just look for -pthreads and -lpthread first:
14561 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14563 esac
14565 if test x"$acx_pthread_ok" = xno; then
14566 for flag in $acx_pthread_flags; do
14568 case $flag in
14569 none)
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14571 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14576 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14577 PTHREAD_CFLAGS="$flag"
14580 pthread-config)
14581 # Extract the first word of "pthread-config", so it can be a program name with args.
14582 set dummy pthread-config; ac_word=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 $as_echo_n "checking for $ac_word... " >&6; }
14585 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14586 $as_echo_n "(cached) " >&6
14587 else
14588 if test -n "$acx_pthread_config"; then
14589 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14590 else
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14594 IFS=$as_save_IFS
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14598 ac_cv_prog_acx_pthread_config="yes"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14600 break 2
14602 done
14603 done
14604 IFS=$as_save_IFS
14606 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14609 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14610 if test -n "$acx_pthread_config"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14612 $as_echo "$acx_pthread_config" >&6; }
14613 else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615 $as_echo "no" >&6; }
14619 if test x"$acx_pthread_config" = xno; then continue; fi
14620 PTHREAD_CFLAGS="`pthread-config --cflags`"
14621 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14626 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14627 PTHREAD_LIBS="-l$flag"
14629 esac
14631 save_LIBS="$LIBS"
14632 save_CFLAGS="$CFLAGS"
14633 LIBS="$PTHREAD_LIBS $LIBS"
14634 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14636 # Check for various functions. We must include pthread.h,
14637 # since some functions may be macros. (On the Sequent, we
14638 # need a special flag -Kthread to make this header compile.)
14639 # We check for pthread_join because it is in -lpthread on IRIX
14640 # while pthread_create is in libc. We check for pthread_attr_init
14641 # due to DEC craziness with -lpthreads. We check for
14642 # pthread_cleanup_push because it is one of the few pthread
14643 # functions on Solaris that doesn't have a non-functional libc stub.
14644 # We try pthread_create on general principles.
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <pthread.h>
14649 main ()
14651 pthread_t th; pthread_join(th, 0);
14652 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14653 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14655 return 0;
14657 _ACEOF
14658 if ac_fn_c_try_link "$LINENO"; then :
14659 acx_pthread_ok=yes
14661 rm -f core conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14664 LIBS="$save_LIBS"
14665 CFLAGS="$save_CFLAGS"
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14668 $as_echo "$acx_pthread_ok" >&6; }
14669 if test "x$acx_pthread_ok" = xyes; then
14670 break;
14673 PTHREAD_LIBS=""
14674 PTHREAD_CFLAGS=""
14675 done
14678 # Various other checks:
14679 if test "x$acx_pthread_ok" = xyes; then
14680 save_LIBS="$LIBS"
14681 LIBS="$PTHREAD_LIBS $LIBS"
14682 save_CFLAGS="$CFLAGS"
14683 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14685 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14687 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14688 attr_name=unknown
14689 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692 #include <pthread.h>
14694 main ()
14696 int attr=$attr; return attr;
14698 return 0;
14700 _ACEOF
14701 if ac_fn_c_try_link "$LINENO"; then :
14702 attr_name=$attr; break
14704 rm -f core conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext conftest.$ac_ext
14706 done
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14708 $as_echo "$attr_name" >&6; }
14709 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14711 cat >>confdefs.h <<_ACEOF
14712 #define PTHREAD_CREATE_JOINABLE $attr_name
14713 _ACEOF
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14718 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14719 flag=no
14720 case "${host_cpu}-${host_os}" in
14721 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14722 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14723 esac
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14725 $as_echo "${flag}" >&6; }
14726 if test "x$flag" != xno; then
14727 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14730 LIBS="$save_LIBS"
14731 CFLAGS="$save_CFLAGS"
14733 # More AIX lossage: must compile with xlc_r or cc_r
14734 if test x"$GCC" != xyes; then
14735 for ac_prog in xlc_r cc_r
14737 # Extract the first word of "$ac_prog", so it can be a program name with args.
14738 set dummy $ac_prog; ac_word=$2
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14740 $as_echo_n "checking for $ac_word... " >&6; }
14741 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 if test -n "$PTHREAD_CC"; then
14745 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14746 else
14747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14748 for as_dir in $PATH
14750 IFS=$as_save_IFS
14751 test -z "$as_dir" && as_dir=.
14752 for ac_exec_ext in '' $ac_executable_extensions; do
14753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14754 ac_cv_prog_PTHREAD_CC="$ac_prog"
14755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14756 break 2
14758 done
14759 done
14760 IFS=$as_save_IFS
14764 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14765 if test -n "$PTHREAD_CC"; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14767 $as_echo "$PTHREAD_CC" >&6; }
14768 else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770 $as_echo "no" >&6; }
14774 test -n "$PTHREAD_CC" && break
14775 done
14776 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14778 else
14779 PTHREAD_CC=$CC
14781 else
14782 PTHREAD_CC="$CC"
14789 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14790 if test x"$acx_pthread_ok" = xyes; then
14793 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14795 have_pthreads=yes
14797 else
14798 acx_pthread_ok=no
14801 ac_ext=c
14802 ac_cpp='$CPP $CPPFLAGS'
14803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14809 # The cast to long int works around a bug in the HP C Compiler
14810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14812 # This bug is HP SR number 8606223364.
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14814 $as_echo_n "checking size of pthread_t... " >&6; }
14815 if ${ac_cv_sizeof_pthread_t+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14819 #include <pthread.h>
14821 "; then :
14823 else
14824 if test "$ac_cv_type_pthread_t" = yes; then
14825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14827 as_fn_error 77 "cannot compute sizeof (pthread_t)
14828 See \`config.log' for more details" "$LINENO" 5; }
14829 else
14830 ac_cv_sizeof_pthread_t=0
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14836 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14840 cat >>confdefs.h <<_ACEOF
14841 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14842 _ACEOF
14846 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14847 PTHREADS_TRUE=
14848 PTHREADS_FALSE='#'
14849 else
14850 PTHREADS_TRUE='#'
14851 PTHREADS_FALSE=
14855 # check if we should compile locking into the library
14856 if test x$enable_thread_support = xno; then
14858 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14862 # check if we should hard-code the mm functions.
14863 if test x$enable_malloc_replacement = xno; then
14865 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14869 # check if we should hard-code debugging out
14870 if test x$enable_debug_mode = xno; then
14872 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14876 # check if we have and should use openssl
14877 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14878 OPENSSL_TRUE=
14879 OPENSSL_FALSE='#'
14880 else
14881 OPENSSL_TRUE='#'
14882 OPENSSL_FALSE=
14886 # Add some more warnings which we use in development but not in the
14887 # released versions. (Some relevant gcc versions can't handle these.)
14888 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14894 main ()
14897 #if !defined(__GNUC__) || (__GNUC__ < 4)
14898 #error
14899 #endif
14901 return 0;
14903 _ACEOF
14904 if ac_fn_c_try_compile "$LINENO"; then :
14905 have_gcc4=yes
14906 else
14907 have_gcc4=no
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14915 main ()
14918 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14919 #error
14920 #endif
14922 return 0;
14924 _ACEOF
14925 if ac_fn_c_try_compile "$LINENO"; then :
14926 have_gcc42=yes
14927 else
14928 have_gcc42=no
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14936 main ()
14939 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14940 #error
14941 #endif
14943 return 0;
14945 _ACEOF
14946 if ac_fn_c_try_compile "$LINENO"; then :
14947 have_gcc45=yes
14948 else
14949 have_gcc45=no
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14957 main ()
14960 #if !defined(__clang__)
14961 #error
14962 #endif
14964 return 0;
14966 _ACEOF
14967 if ac_fn_c_try_compile "$LINENO"; then :
14968 have_clang=yes
14969 else
14970 have_clang=no
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
14975 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14977 if test x$have_gcc4 = xyes ; then
14978 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14979 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14980 #CFLAGS="$CFLAGS -Wold-style-definition"
14983 if test x$have_gcc42 = xyes ; then
14984 # These warnings break gcc 4.0.2 and work on gcc 4.2
14985 CFLAGS="$CFLAGS -Waddress"
14988 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
14989 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14990 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14993 if test x$have_gcc45 = xyes ; then
14994 # These warnings work on gcc 4.5
14995 CFLAGS="$CFLAGS -Wlogical-op"
14998 if test x$have_clang = xyes; then
14999 # Disable the unused-function warnings, because these trigger
15000 # for minheap-internal.h related code.
15001 CFLAGS="$CFLAGS -Wno-unused-function"
15004 ##This will break the world on some 64-bit architectures
15005 # CFLAGS="$CFLAGS -Winline"
15009 LIBEVENT_GC_SECTIONS=
15010 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15012 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15013 if ${libevent_cv_gc_sections_runs+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15017 origCFLAGS="$CFLAGS"
15018 CFLAGS="$CFLAGS -Wl,--gc-sections"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 #include <stdlib.h>
15023 #include <stdio.h>
15026 main ()
15029 FILE * fpC;
15030 char buf[32];
15031 size_t cch;
15032 int read_success_once;
15034 fpC = fopen("conftest.c", "r");
15035 if (NULL == fpC)
15036 exit(1);
15037 do {
15038 cch = fread(buf, sizeof(buf), 1, fpC);
15039 read_success_once |= (0 != cch);
15040 } while (0 != cch);
15041 if (!read_success_once)
15042 exit(2);
15043 if (!feof(fpC))
15044 exit(3);
15045 if (0 != fclose(fpC))
15046 exit(4);
15048 exit(EXIT_SUCCESS);
15052 return 0;
15054 _ACEOF
15055 if ac_fn_c_try_link "$LINENO"; then :
15057 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15058 libevent_cv_gc_sections_runs=no
15059 else
15060 libevent_cv_gc_sections_runs=no
15061 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15064 else
15065 libevent_cv_gc_sections_runs=no
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 CFLAGS="$origCFLAGS"
15071 { origCFLAGS=; unset origCFLAGS;}
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15076 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15077 case "$libevent_cv_gc_sections_runs" in
15078 yes)
15079 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15080 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15082 esac
15086 if test "$enable_libevent_install" = "yes"; then
15087 INSTALL_LIBEVENT_TRUE=
15088 INSTALL_LIBEVENT_FALSE='#'
15089 else
15090 INSTALL_LIBEVENT_TRUE='#'
15091 INSTALL_LIBEVENT_FALSE=
15095 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15097 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15099 cat >confcache <<\_ACEOF
15100 # This file is a shell script that caches the results of configure
15101 # tests run on this system so they can be shared between configure
15102 # scripts and configure runs, see configure's option --config-cache.
15103 # It is not useful on other systems. If it contains results you don't
15104 # want to keep, you may remove or edit it.
15106 # config.status only pays attention to the cache file if you give it
15107 # the --recheck option to rerun configure.
15109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15111 # following values.
15113 _ACEOF
15115 # The following way of writing the cache mishandles newlines in values,
15116 # but we know of no workaround that is simple, portable, and efficient.
15117 # So, we kill variables containing newlines.
15118 # Ultrix sh set writes to stderr and can't be redirected directly,
15119 # and sets the high bit in the cache file unless we assign to the vars.
15121 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15122 eval ac_val=\$$ac_var
15123 case $ac_val in #(
15124 *${as_nl}*)
15125 case $ac_var in #(
15126 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15128 esac
15129 case $ac_var in #(
15130 _ | IFS | as_nl) ;; #(
15131 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15132 *) { eval $ac_var=; unset $ac_var;} ;;
15133 esac ;;
15134 esac
15135 done
15137 (set) 2>&1 |
15138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15139 *${as_nl}ac_space=\ *)
15140 # `set' does not quote correctly, so add quotes: double-quote
15141 # substitution turns \\\\ into \\, and sed turns \\ into \.
15142 sed -n \
15143 "s/'/'\\\\''/g;
15144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15145 ;; #(
15147 # `set' quotes correctly as required by POSIX, so do not add quotes.
15148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15150 esac |
15151 sort
15153 sed '
15154 /^ac_cv_env_/b end
15155 t clear
15156 :clear
15157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15158 t end
15159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15160 :end' >>confcache
15161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15162 if test -w "$cache_file"; then
15163 if test "x$cache_file" != "x/dev/null"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15165 $as_echo "$as_me: updating cache $cache_file" >&6;}
15166 if test ! -f "$cache_file" || test -h "$cache_file"; then
15167 cat confcache >"$cache_file"
15168 else
15169 case $cache_file in #(
15170 */* | ?:*)
15171 mv -f confcache "$cache_file"$$ &&
15172 mv -f "$cache_file"$$ "$cache_file" ;; #(
15174 mv -f confcache "$cache_file" ;;
15175 esac
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15180 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15183 rm -f confcache
15185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15186 # Let make expand exec_prefix.
15187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15189 DEFS=-DHAVE_CONFIG_H
15191 ac_libobjs=
15192 ac_ltlibobjs=
15194 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15195 # 1. Remove the extension, and $U if already installed.
15196 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15197 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15198 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15199 # will be set to the directory where LIBOBJS objects are built.
15200 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15201 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15202 done
15203 LIBOBJS=$ac_libobjs
15205 LTLIBOBJS=$ac_ltlibobjs
15208 if test -n "$EXEEXT"; then
15209 am__EXEEXT_TRUE=
15210 am__EXEEXT_FALSE='#'
15211 else
15212 am__EXEEXT_TRUE='#'
15213 am__EXEEXT_FALSE=
15216 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15217 as_fn_error $? "conditional \"AMDEP\" was never defined.
15218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15220 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15221 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15224 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15225 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15228 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15229 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15232 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15233 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15236 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15237 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15240 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15241 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15244 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15245 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15248 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15249 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15253 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15257 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15261 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15264 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15265 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15268 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15269 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15272 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15273 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15276 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15277 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15280 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15281 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15285 : "${CONFIG_STATUS=./config.status}"
15286 ac_write_fail=0
15287 ac_clean_files_save=$ac_clean_files
15288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15291 as_write_fail=0
15292 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15293 #! $SHELL
15294 # Generated by $as_me.
15295 # Run this file to recreate the current configuration.
15296 # Compiler output produced by configure, useful for debugging
15297 # configure, is in config.log if it exists.
15299 debug=false
15300 ac_cs_recheck=false
15301 ac_cs_silent=false
15303 SHELL=\${CONFIG_SHELL-$SHELL}
15304 export SHELL
15305 _ASEOF
15306 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15307 ## -------------------- ##
15308 ## M4sh Initialization. ##
15309 ## -------------------- ##
15311 # Be more Bourne compatible
15312 DUALCASE=1; export DUALCASE # for MKS sh
15313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15314 emulate sh
15315 NULLCMD=:
15316 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15317 # is contrary to our usage. Disable this feature.
15318 alias -g '${1+"$@"}'='"$@"'
15319 setopt NO_GLOB_SUBST
15320 else
15321 case `(set -o) 2>/dev/null` in #(
15322 *posix*) :
15323 set -o posix ;; #(
15324 *) :
15326 esac
15330 as_nl='
15332 export as_nl
15333 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15334 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15337 # Prefer a ksh shell builtin over an external printf program on Solaris,
15338 # but without wasting forks for bash or zsh.
15339 if test -z "$BASH_VERSION$ZSH_VERSION" \
15340 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15341 as_echo='print -r --'
15342 as_echo_n='print -rn --'
15343 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15344 as_echo='printf %s\n'
15345 as_echo_n='printf %s'
15346 else
15347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15348 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15349 as_echo_n='/usr/ucb/echo -n'
15350 else
15351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15352 as_echo_n_body='eval
15353 arg=$1;
15354 case $arg in #(
15355 *"$as_nl"*)
15356 expr "X$arg" : "X\\(.*\\)$as_nl";
15357 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15358 esac;
15359 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15361 export as_echo_n_body
15362 as_echo_n='sh -c $as_echo_n_body as_echo'
15364 export as_echo_body
15365 as_echo='sh -c $as_echo_body as_echo'
15368 # The user is always right.
15369 if test "${PATH_SEPARATOR+set}" != set; then
15370 PATH_SEPARATOR=:
15371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15372 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15373 PATH_SEPARATOR=';'
15378 # IFS
15379 # We need space, tab and new line, in precisely that order. Quoting is
15380 # there to prevent editors from complaining about space-tab.
15381 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15382 # splitting by setting IFS to empty value.)
15383 IFS=" "" $as_nl"
15385 # Find who we are. Look in the path if we contain no directory separator.
15386 as_myself=
15387 case $0 in #((
15388 *[\\/]* ) as_myself=$0 ;;
15389 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15395 done
15396 IFS=$as_save_IFS
15399 esac
15400 # We did not find ourselves, most probably we were run as `sh COMMAND'
15401 # in which case we are not to be found in the path.
15402 if test "x$as_myself" = x; then
15403 as_myself=$0
15405 if test ! -f "$as_myself"; then
15406 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15407 exit 1
15410 # Unset variables that we do not need and which cause bugs (e.g. in
15411 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15412 # suppresses any "Segmentation fault" message there. '((' could
15413 # trigger a bug in pdksh 5.2.14.
15414 for as_var in BASH_ENV ENV MAIL MAILPATH
15415 do eval test x\${$as_var+set} = xset \
15416 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15417 done
15418 PS1='$ '
15419 PS2='> '
15420 PS4='+ '
15422 # NLS nuisances.
15423 LC_ALL=C
15424 export LC_ALL
15425 LANGUAGE=C
15426 export LANGUAGE
15428 # CDPATH.
15429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15432 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15433 # ----------------------------------------
15434 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15435 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15436 # script with STATUS, using 1 if that was 0.
15437 as_fn_error ()
15439 as_status=$1; test $as_status -eq 0 && as_status=1
15440 if test "$4"; then
15441 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15442 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15444 $as_echo "$as_me: error: $2" >&2
15445 as_fn_exit $as_status
15446 } # as_fn_error
15449 # as_fn_set_status STATUS
15450 # -----------------------
15451 # Set $? to STATUS, without forking.
15452 as_fn_set_status ()
15454 return $1
15455 } # as_fn_set_status
15457 # as_fn_exit STATUS
15458 # -----------------
15459 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15460 as_fn_exit ()
15462 set +e
15463 as_fn_set_status $1
15464 exit $1
15465 } # as_fn_exit
15467 # as_fn_unset VAR
15468 # ---------------
15469 # Portably unset VAR.
15470 as_fn_unset ()
15472 { eval $1=; unset $1;}
15474 as_unset=as_fn_unset
15475 # as_fn_append VAR VALUE
15476 # ----------------------
15477 # Append the text in VALUE to the end of the definition contained in VAR. Take
15478 # advantage of any shell optimizations that allow amortized linear growth over
15479 # repeated appends, instead of the typical quadratic growth present in naive
15480 # implementations.
15481 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15482 eval 'as_fn_append ()
15484 eval $1+=\$2
15486 else
15487 as_fn_append ()
15489 eval $1=\$$1\$2
15491 fi # as_fn_append
15493 # as_fn_arith ARG...
15494 # ------------------
15495 # Perform arithmetic evaluation on the ARGs, and store the result in the
15496 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15497 # must be portable across $(()) and expr.
15498 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15499 eval 'as_fn_arith ()
15501 as_val=$(( $* ))
15503 else
15504 as_fn_arith ()
15506 as_val=`expr "$@" || test $? -eq 1`
15508 fi # as_fn_arith
15511 if expr a : '\(a\)' >/dev/null 2>&1 &&
15512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15513 as_expr=expr
15514 else
15515 as_expr=false
15518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15519 as_basename=basename
15520 else
15521 as_basename=false
15524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15525 as_dirname=dirname
15526 else
15527 as_dirname=false
15530 as_me=`$as_basename -- "$0" ||
15531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15532 X"$0" : 'X\(//\)$' \| \
15533 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15534 $as_echo X/"$0" |
15535 sed '/^.*\/\([^/][^/]*\)\/*$/{
15536 s//\1/
15539 /^X\/\(\/\/\)$/{
15540 s//\1/
15543 /^X\/\(\/\).*/{
15544 s//\1/
15547 s/.*/./; q'`
15549 # Avoid depending upon Character Ranges.
15550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15553 as_cr_digits='0123456789'
15554 as_cr_alnum=$as_cr_Letters$as_cr_digits
15556 ECHO_C= ECHO_N= ECHO_T=
15557 case `echo -n x` in #(((((
15558 -n*)
15559 case `echo 'xy\c'` in
15560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15561 xy) ECHO_C='\c';;
15562 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15563 ECHO_T=' ';;
15564 esac;;
15566 ECHO_N='-n';;
15567 esac
15569 rm -f conf$$ conf$$.exe conf$$.file
15570 if test -d conf$$.dir; then
15571 rm -f conf$$.dir/conf$$.file
15572 else
15573 rm -f conf$$.dir
15574 mkdir conf$$.dir 2>/dev/null
15576 if (echo >conf$$.file) 2>/dev/null; then
15577 if ln -s conf$$.file conf$$ 2>/dev/null; then
15578 as_ln_s='ln -s'
15579 # ... but there are two gotchas:
15580 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15581 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15582 # In both cases, we have to default to `cp -p'.
15583 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15584 as_ln_s='cp -p'
15585 elif ln conf$$.file conf$$ 2>/dev/null; then
15586 as_ln_s=ln
15587 else
15588 as_ln_s='cp -p'
15590 else
15591 as_ln_s='cp -p'
15593 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15594 rmdir conf$$.dir 2>/dev/null
15597 # as_fn_mkdir_p
15598 # -------------
15599 # Create "$as_dir" as a directory, including parents if necessary.
15600 as_fn_mkdir_p ()
15603 case $as_dir in #(
15604 -*) as_dir=./$as_dir;;
15605 esac
15606 test -d "$as_dir" || eval $as_mkdir_p || {
15607 as_dirs=
15608 while :; do
15609 case $as_dir in #(
15610 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15611 *) as_qdir=$as_dir;;
15612 esac
15613 as_dirs="'$as_qdir' $as_dirs"
15614 as_dir=`$as_dirname -- "$as_dir" ||
15615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15616 X"$as_dir" : 'X\(//\)[^/]' \| \
15617 X"$as_dir" : 'X\(//\)$' \| \
15618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15619 $as_echo X"$as_dir" |
15620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15621 s//\1/
15624 /^X\(\/\/\)[^/].*/{
15625 s//\1/
15628 /^X\(\/\/\)$/{
15629 s//\1/
15632 /^X\(\/\).*/{
15633 s//\1/
15636 s/.*/./; q'`
15637 test -d "$as_dir" && break
15638 done
15639 test -z "$as_dirs" || eval "mkdir $as_dirs"
15640 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15643 } # as_fn_mkdir_p
15644 if mkdir -p . 2>/dev/null; then
15645 as_mkdir_p='mkdir -p "$as_dir"'
15646 else
15647 test -d ./-p && rmdir ./-p
15648 as_mkdir_p=false
15651 if test -x / >/dev/null 2>&1; then
15652 as_test_x='test -x'
15653 else
15654 if ls -dL / >/dev/null 2>&1; then
15655 as_ls_L_option=L
15656 else
15657 as_ls_L_option=
15659 as_test_x='
15660 eval sh -c '\''
15661 if test -d "$1"; then
15662 test -d "$1/.";
15663 else
15664 case $1 in #(
15665 -*)set "./$1";;
15666 esac;
15667 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15668 ???[sx]*):;;*)false;;esac;fi
15669 '\'' sh
15672 as_executable_p=$as_test_x
15674 # Sed expression to map a string onto a valid CPP name.
15675 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15677 # Sed expression to map a string onto a valid variable name.
15678 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15681 exec 6>&1
15682 ## ----------------------------------- ##
15683 ## Main body of $CONFIG_STATUS script. ##
15684 ## ----------------------------------- ##
15685 _ASEOF
15686 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 # Save the log message, to keep $0 and so on meaningful, and to
15690 # report actual input values of CONFIG_FILES etc. instead of their
15691 # values after options handling.
15692 ac_log="
15693 This file was extended by $as_me, which was
15694 generated by GNU Autoconf 2.68. Invocation command line was
15696 CONFIG_FILES = $CONFIG_FILES
15697 CONFIG_HEADERS = $CONFIG_HEADERS
15698 CONFIG_LINKS = $CONFIG_LINKS
15699 CONFIG_COMMANDS = $CONFIG_COMMANDS
15700 $ $0 $@
15702 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15705 _ACEOF
15707 case $ac_config_files in *"
15708 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15709 esac
15711 case $ac_config_headers in *"
15712 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15713 esac
15716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15717 # Files that config.status was made for.
15718 config_files="$ac_config_files"
15719 config_headers="$ac_config_headers"
15720 config_commands="$ac_config_commands"
15722 _ACEOF
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725 ac_cs_usage="\
15726 \`$as_me' instantiates files and other configuration actions
15727 from templates according to the current configuration. Unless the files
15728 and actions are specified as TAGs, all are instantiated by default.
15730 Usage: $0 [OPTION]... [TAG]...
15732 -h, --help print this help, then exit
15733 -V, --version print version number and configuration settings, then exit
15734 --config print configuration, then exit
15735 -q, --quiet, --silent
15736 do not print progress messages
15737 -d, --debug don't remove temporary files
15738 --recheck update $as_me by reconfiguring in the same conditions
15739 --file=FILE[:TEMPLATE]
15740 instantiate the configuration file FILE
15741 --header=FILE[:TEMPLATE]
15742 instantiate the configuration header FILE
15744 Configuration files:
15745 $config_files
15747 Configuration headers:
15748 $config_headers
15750 Configuration commands:
15751 $config_commands
15753 Report bugs to the package provider."
15755 _ACEOF
15756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15757 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15758 ac_cs_version="\\
15759 config.status
15760 configured by $0, generated by GNU Autoconf 2.68,
15761 with options \\"\$ac_cs_config\\"
15763 Copyright (C) 2010 Free Software Foundation, Inc.
15764 This config.status script is free software; the Free Software Foundation
15765 gives unlimited permission to copy, distribute and modify it."
15767 ac_pwd='$ac_pwd'
15768 srcdir='$srcdir'
15769 INSTALL='$INSTALL'
15770 MKDIR_P='$MKDIR_P'
15771 AWK='$AWK'
15772 test -n "\$AWK" || AWK=awk
15773 _ACEOF
15775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15776 # The default lists apply if the user does not specify any file.
15777 ac_need_defaults=:
15778 while test $# != 0
15780 case $1 in
15781 --*=?*)
15782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15784 ac_shift=:
15786 --*=)
15787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15788 ac_optarg=
15789 ac_shift=:
15792 ac_option=$1
15793 ac_optarg=$2
15794 ac_shift=shift
15796 esac
15798 case $ac_option in
15799 # Handling of the options.
15800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15801 ac_cs_recheck=: ;;
15802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15803 $as_echo "$ac_cs_version"; exit ;;
15804 --config | --confi | --conf | --con | --co | --c )
15805 $as_echo "$ac_cs_config"; exit ;;
15806 --debug | --debu | --deb | --de | --d | -d )
15807 debug=: ;;
15808 --file | --fil | --fi | --f )
15809 $ac_shift
15810 case $ac_optarg in
15811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15812 '') as_fn_error $? "missing file argument" ;;
15813 esac
15814 as_fn_append CONFIG_FILES " '$ac_optarg'"
15815 ac_need_defaults=false;;
15816 --header | --heade | --head | --hea )
15817 $ac_shift
15818 case $ac_optarg in
15819 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15820 esac
15821 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15822 ac_need_defaults=false;;
15823 --he | --h)
15824 # Conflict between --help and --header
15825 as_fn_error $? "ambiguous option: \`$1'
15826 Try \`$0 --help' for more information.";;
15827 --help | --hel | -h )
15828 $as_echo "$ac_cs_usage"; exit ;;
15829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15831 ac_cs_silent=: ;;
15833 # This is an error.
15834 -*) as_fn_error $? "unrecognized option: \`$1'
15835 Try \`$0 --help' for more information." ;;
15837 *) as_fn_append ac_config_targets " $1"
15838 ac_need_defaults=false ;;
15840 esac
15841 shift
15842 done
15844 ac_configure_extra_args=
15846 if $ac_cs_silent; then
15847 exec 6>/dev/null
15848 ac_configure_extra_args="$ac_configure_extra_args --silent"
15851 _ACEOF
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 if \$ac_cs_recheck; then
15854 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15855 shift
15856 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15857 CONFIG_SHELL='$SHELL'
15858 export CONFIG_SHELL
15859 exec "\$@"
15862 _ACEOF
15863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15864 exec 5>>config.log
15866 echo
15867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15868 ## Running $as_me. ##
15869 _ASBOX
15870 $as_echo "$ac_log"
15871 } >&5
15873 _ACEOF
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15876 # INIT-COMMANDS
15878 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15881 # The HP-UX ksh and POSIX shell print the target directory to stdout
15882 # if CDPATH is set.
15883 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15885 sed_quote_subst='$sed_quote_subst'
15886 double_quote_subst='$double_quote_subst'
15887 delay_variable_subst='$delay_variable_subst'
15888 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15889 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15890 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15891 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15892 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15893 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15894 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15895 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15896 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15897 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15898 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15899 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15900 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15901 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15902 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15903 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15904 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15905 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15906 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15907 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15908 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15909 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15910 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15911 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15912 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15913 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15914 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15915 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15916 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15917 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15918 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15919 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15920 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15921 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15922 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15923 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15924 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15925 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15926 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15927 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15928 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15929 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15930 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15931 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15932 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15933 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15934 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15935 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15936 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15937 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15938 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15939 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15940 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15941 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15942 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15943 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15944 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"`'
15945 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15946 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15947 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15948 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15949 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15950 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15951 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15952 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15953 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15954 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15955 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15956 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15957 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15958 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15959 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15960 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15961 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15962 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15963 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15964 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15965 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15966 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15967 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15968 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15969 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15970 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15971 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15972 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15973 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15974 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15975 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15976 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15977 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15978 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15979 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15980 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15981 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15982 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15983 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15984 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15985 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15986 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15987 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15988 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15989 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15990 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15991 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15992 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15993 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15994 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15995 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15996 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15997 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15998 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15999 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16000 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16001 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16002 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16003 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16004 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16005 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16006 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16007 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16008 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16009 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16010 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16011 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16012 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16013 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16014 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16015 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16016 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16017 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16019 LTCC='$LTCC'
16020 LTCFLAGS='$LTCFLAGS'
16021 compiler='$compiler_DEFAULT'
16023 # A function that is used when there is no print builtin or printf.
16024 func_fallback_echo ()
16026 eval 'cat <<_LTECHO_EOF
16028 _LTECHO_EOF'
16031 # Quote evaled strings.
16032 for var in SHELL \
16033 ECHO \
16034 PATH_SEPARATOR \
16035 SED \
16036 GREP \
16037 EGREP \
16038 FGREP \
16039 LD \
16040 NM \
16041 LN_S \
16042 lt_SP2NL \
16043 lt_NL2SP \
16044 reload_flag \
16045 OBJDUMP \
16046 deplibs_check_method \
16047 file_magic_cmd \
16048 file_magic_glob \
16049 want_nocaseglob \
16050 DLLTOOL \
16051 sharedlib_from_linklib_cmd \
16052 AR \
16053 AR_FLAGS \
16054 archiver_list_spec \
16055 STRIP \
16056 RANLIB \
16057 CC \
16058 CFLAGS \
16059 compiler \
16060 lt_cv_sys_global_symbol_pipe \
16061 lt_cv_sys_global_symbol_to_cdecl \
16062 lt_cv_sys_global_symbol_to_c_name_address \
16063 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16064 nm_file_list_spec \
16065 lt_prog_compiler_no_builtin_flag \
16066 lt_prog_compiler_pic \
16067 lt_prog_compiler_wl \
16068 lt_prog_compiler_static \
16069 lt_cv_prog_compiler_c_o \
16070 need_locks \
16071 MANIFEST_TOOL \
16072 DSYMUTIL \
16073 NMEDIT \
16074 LIPO \
16075 OTOOL \
16076 OTOOL64 \
16077 shrext_cmds \
16078 export_dynamic_flag_spec \
16079 whole_archive_flag_spec \
16080 compiler_needs_object \
16081 with_gnu_ld \
16082 allow_undefined_flag \
16083 no_undefined_flag \
16084 hardcode_libdir_flag_spec \
16085 hardcode_libdir_separator \
16086 exclude_expsyms \
16087 include_expsyms \
16088 file_list_spec \
16089 variables_saved_for_relink \
16090 libname_spec \
16091 library_names_spec \
16092 soname_spec \
16093 install_override_mode \
16094 finish_eval \
16095 old_striplib \
16096 striplib; do
16097 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16098 *[\\\\\\\`\\"\\\$]*)
16099 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16102 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16104 esac
16105 done
16107 # Double-quote double-evaled strings.
16108 for var in reload_cmds \
16109 old_postinstall_cmds \
16110 old_postuninstall_cmds \
16111 old_archive_cmds \
16112 extract_expsyms_cmds \
16113 old_archive_from_new_cmds \
16114 old_archive_from_expsyms_cmds \
16115 archive_cmds \
16116 archive_expsym_cmds \
16117 module_cmds \
16118 module_expsym_cmds \
16119 export_symbols_cmds \
16120 prelink_cmds \
16121 postlink_cmds \
16122 postinstall_cmds \
16123 postuninstall_cmds \
16124 finish_cmds \
16125 sys_lib_search_path_spec \
16126 sys_lib_dlsearch_path_spec; do
16127 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16128 *[\\\\\\\`\\"\\\$]*)
16129 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16132 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16134 esac
16135 done
16137 ac_aux_dir='$ac_aux_dir'
16138 xsi_shell='$xsi_shell'
16139 lt_shell_append='$lt_shell_append'
16141 # See if we are running on zsh, and set the options which allow our
16142 # commands through without removal of \ escapes INIT.
16143 if test -n "\${ZSH_VERSION+set}" ; then
16144 setopt NO_GLOB_SUBST
16148 PACKAGE='$PACKAGE'
16149 VERSION='$VERSION'
16150 TIMESTAMP='$TIMESTAMP'
16151 RM='$RM'
16152 ofile='$ofile'
16157 _ACEOF
16159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16161 # Handling of arguments.
16162 for ac_config_target in $ac_config_targets
16164 case $ac_config_target in
16165 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16166 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16167 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16168 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16169 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16170 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16171 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16172 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16173 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16174 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16176 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16177 esac
16178 done
16181 # If the user did not use the arguments to specify the items to instantiate,
16182 # then the envvar interface is used. Set only those that are not.
16183 # We use the long form for the default assignment because of an extremely
16184 # bizarre bug on SunOS 4.1.3.
16185 if $ac_need_defaults; then
16186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16188 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16191 # Have a temporary directory for convenience. Make it in the build tree
16192 # simply because there is no reason against having it here, and in addition,
16193 # creating and moving files from /tmp can sometimes cause problems.
16194 # Hook for its removal unless debugging.
16195 # Note that there is a small window in which the directory will not be cleaned:
16196 # after its creation but before its name has been assigned to `$tmp'.
16197 $debug ||
16199 tmp= ac_tmp=
16200 trap 'exit_status=$?
16201 : "${ac_tmp:=$tmp}"
16202 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16204 trap 'as_fn_exit 1' 1 2 13 15
16206 # Create a (secure) tmp directory for tmp files.
16209 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16210 test -d "$tmp"
16211 } ||
16213 tmp=./conf$$-$RANDOM
16214 (umask 077 && mkdir "$tmp")
16215 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16216 ac_tmp=$tmp
16218 # Set up the scripts for CONFIG_FILES section.
16219 # No need to generate them if there are no CONFIG_FILES.
16220 # This happens for instance with `./config.status config.h'.
16221 if test -n "$CONFIG_FILES"; then
16224 ac_cr=`echo X | tr X '\015'`
16225 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16226 # But we know of no other shell where ac_cr would be empty at this
16227 # point, so we can use a bashism as a fallback.
16228 if test "x$ac_cr" = x; then
16229 eval ac_cr=\$\'\\r\'
16231 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16232 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16233 ac_cs_awk_cr='\\r'
16234 else
16235 ac_cs_awk_cr=$ac_cr
16238 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16239 _ACEOF
16243 echo "cat >conf$$subs.awk <<_ACEOF" &&
16244 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16245 echo "_ACEOF"
16246 } >conf$$subs.sh ||
16247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16248 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16249 ac_delim='%!_!# '
16250 for ac_last_try in false false false false false :; do
16251 . ./conf$$subs.sh ||
16252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16254 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16255 if test $ac_delim_n = $ac_delim_num; then
16256 break
16257 elif $ac_last_try; then
16258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16259 else
16260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16262 done
16263 rm -f conf$$subs.sh
16265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16266 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16267 _ACEOF
16268 sed -n '
16270 s/^/S["/; s/!.*/"]=/
16273 s/^[^!]*!//
16274 :repl
16275 t repl
16276 s/'"$ac_delim"'$//
16277 t delim
16280 s/\(.\{148\}\)..*/\1/
16281 t more1
16282 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16285 b repl
16286 :more1
16287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16290 s/.\{148\}//
16291 t nl
16292 :delim
16294 s/\(.\{148\}\)..*/\1/
16295 t more2
16296 s/["\\]/\\&/g; s/^/"/; s/$/"/
16299 :more2
16300 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16303 s/.\{148\}//
16304 t delim
16305 ' <conf$$subs.awk | sed '
16306 /^[^""]/{
16308 s/\n//
16310 ' >>$CONFIG_STATUS || ac_write_fail=1
16311 rm -f conf$$subs.awk
16312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16313 _ACAWK
16314 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16315 for (key in S) S_is_set[key] = 1
16316 FS = "\a"
16320 line = $ 0
16321 nfields = split(line, field, "@")
16322 substed = 0
16323 len = length(field[1])
16324 for (i = 2; i < nfields; i++) {
16325 key = field[i]
16326 keylen = length(key)
16327 if (S_is_set[key]) {
16328 value = S[key]
16329 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16330 len += length(value) + length(field[++i])
16331 substed = 1
16332 } else
16333 len += 1 + keylen
16336 print line
16339 _ACAWK
16340 _ACEOF
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16343 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16344 else
16346 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16347 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16348 _ACEOF
16350 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16351 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16352 # trailing colons and then remove the whole line if VPATH becomes empty
16353 # (actually we leave an empty line to preserve line numbers).
16354 if test "x$srcdir" = x.; then
16355 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16357 s///
16358 s/^/:/
16359 s/[ ]*$/:/
16360 s/:\$(srcdir):/:/g
16361 s/:\${srcdir}:/:/g
16362 s/:@srcdir@:/:/g
16363 s/^:*//
16364 s/:*$//
16366 s/\(=[ ]*\).*/\1/
16368 s/\n//
16369 s/^[^=]*=[ ]*$//
16373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16374 fi # test -n "$CONFIG_FILES"
16376 # Set up the scripts for CONFIG_HEADERS section.
16377 # No need to generate them if there are no CONFIG_HEADERS.
16378 # This happens for instance with `./config.status Makefile'.
16379 if test -n "$CONFIG_HEADERS"; then
16380 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16381 BEGIN {
16382 _ACEOF
16384 # Transform confdefs.h into an awk script `defines.awk', embedded as
16385 # here-document in config.status, that substitutes the proper values into
16386 # config.h.in to produce config.h.
16388 # Create a delimiter string that does not exist in confdefs.h, to ease
16389 # handling of long lines.
16390 ac_delim='%!_!# '
16391 for ac_last_try in false false :; do
16392 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16393 if test -z "$ac_tt"; then
16394 break
16395 elif $ac_last_try; then
16396 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16397 else
16398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16400 done
16402 # For the awk script, D is an array of macro values keyed by name,
16403 # likewise P contains macro parameters if any. Preserve backslash
16404 # newline sequences.
16406 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16407 sed -n '
16408 s/.\{148\}/&'"$ac_delim"'/g
16409 t rset
16410 :rset
16411 s/^[ ]*#[ ]*define[ ][ ]*/ /
16412 t def
16414 :def
16415 s/\\$//
16416 t bsnl
16417 s/["\\]/\\&/g
16418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16419 D["\1"]=" \3"/p
16420 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16422 :bsnl
16423 s/["\\]/\\&/g
16424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16425 D["\1"]=" \3\\\\\\n"\\/p
16426 t cont
16427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16428 t cont
16430 :cont
16432 s/.\{148\}/&'"$ac_delim"'/g
16433 t clear
16434 :clear
16435 s/\\$//
16436 t bsnlc
16437 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16439 :bsnlc
16440 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16441 b cont
16442 ' <confdefs.h | sed '
16443 s/'"$ac_delim"'/"\\\
16444 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16447 for (key in D) D_is_set[key] = 1
16448 FS = "\a"
16450 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16451 line = \$ 0
16452 split(line, arg, " ")
16453 if (arg[1] == "#") {
16454 defundef = arg[2]
16455 mac1 = arg[3]
16456 } else {
16457 defundef = substr(arg[1], 2)
16458 mac1 = arg[2]
16460 split(mac1, mac2, "(") #)
16461 macro = mac2[1]
16462 prefix = substr(line, 1, index(line, defundef) - 1)
16463 if (D_is_set[macro]) {
16464 # Preserve the white space surrounding the "#".
16465 print prefix "define", macro P[macro] D[macro]
16466 next
16467 } else {
16468 # Replace #undef with comments. This is necessary, for example,
16469 # in the case of _POSIX_SOURCE, which is predefined and required
16470 # on some systems where configure will not decide to define it.
16471 if (defundef == "undef") {
16472 print "/*", prefix defundef, macro, "*/"
16473 next
16477 { print }
16478 _ACAWK
16479 _ACEOF
16480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16481 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16482 fi # test -n "$CONFIG_HEADERS"
16485 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16486 shift
16487 for ac_tag
16489 case $ac_tag in
16490 :[FHLC]) ac_mode=$ac_tag; continue;;
16491 esac
16492 case $ac_mode$ac_tag in
16493 :[FHL]*:*);;
16494 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16495 :[FH]-) ac_tag=-:-;;
16496 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16497 esac
16498 ac_save_IFS=$IFS
16499 IFS=:
16500 set x $ac_tag
16501 IFS=$ac_save_IFS
16502 shift
16503 ac_file=$1
16504 shift
16506 case $ac_mode in
16507 :L) ac_source=$1;;
16508 :[FH])
16509 ac_file_inputs=
16510 for ac_f
16512 case $ac_f in
16513 -) ac_f="$ac_tmp/stdin";;
16514 *) # Look for the file first in the build tree, then in the source tree
16515 # (if the path is not absolute). The absolute path cannot be DOS-style,
16516 # because $ac_f cannot contain `:'.
16517 test -f "$ac_f" ||
16518 case $ac_f in
16519 [\\/$]*) false;;
16520 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16521 esac ||
16522 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16523 esac
16524 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16525 as_fn_append ac_file_inputs " '$ac_f'"
16526 done
16528 # Let's still pretend it is `configure' which instantiates (i.e., don't
16529 # use $as_me), people would be surprised to read:
16530 # /* config.h. Generated by config.status. */
16531 configure_input='Generated from '`
16532 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16533 `' by configure.'
16534 if test x"$ac_file" != x-; then
16535 configure_input="$ac_file. $configure_input"
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16537 $as_echo "$as_me: creating $ac_file" >&6;}
16539 # Neutralize special characters interpreted by sed in replacement strings.
16540 case $configure_input in #(
16541 *\&* | *\|* | *\\* )
16542 ac_sed_conf_input=`$as_echo "$configure_input" |
16543 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16544 *) ac_sed_conf_input=$configure_input;;
16545 esac
16547 case $ac_tag in
16548 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16550 esac
16552 esac
16554 ac_dir=`$as_dirname -- "$ac_file" ||
16555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16556 X"$ac_file" : 'X\(//\)[^/]' \| \
16557 X"$ac_file" : 'X\(//\)$' \| \
16558 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16559 $as_echo X"$ac_file" |
16560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16561 s//\1/
16564 /^X\(\/\/\)[^/].*/{
16565 s//\1/
16568 /^X\(\/\/\)$/{
16569 s//\1/
16572 /^X\(\/\).*/{
16573 s//\1/
16576 s/.*/./; q'`
16577 as_dir="$ac_dir"; as_fn_mkdir_p
16578 ac_builddir=.
16580 case "$ac_dir" in
16581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16584 # A ".." for each directory in $ac_dir_suffix.
16585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16586 case $ac_top_builddir_sub in
16587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16589 esac ;;
16590 esac
16591 ac_abs_top_builddir=$ac_pwd
16592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16593 # for backward compatibility:
16594 ac_top_builddir=$ac_top_build_prefix
16596 case $srcdir in
16597 .) # We are building in place.
16598 ac_srcdir=.
16599 ac_top_srcdir=$ac_top_builddir_sub
16600 ac_abs_top_srcdir=$ac_pwd ;;
16601 [\\/]* | ?:[\\/]* ) # Absolute name.
16602 ac_srcdir=$srcdir$ac_dir_suffix;
16603 ac_top_srcdir=$srcdir
16604 ac_abs_top_srcdir=$srcdir ;;
16605 *) # Relative name.
16606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16607 ac_top_srcdir=$ac_top_build_prefix$srcdir
16608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16609 esac
16610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16613 case $ac_mode in
16616 # CONFIG_FILE
16619 case $INSTALL in
16620 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16621 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16622 esac
16623 ac_MKDIR_P=$MKDIR_P
16624 case $MKDIR_P in
16625 [\\/$]* | ?:[\\/]* ) ;;
16626 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16627 esac
16628 _ACEOF
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16631 # If the template does not know about datarootdir, expand it.
16632 # FIXME: This hack should be removed a few years after 2.60.
16633 ac_datarootdir_hack=; ac_datarootdir_seen=
16634 ac_sed_dataroot='
16635 /datarootdir/ {
16639 /@datadir@/p
16640 /@docdir@/p
16641 /@infodir@/p
16642 /@localedir@/p
16643 /@mandir@/p'
16644 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16645 *datarootdir*) ac_datarootdir_seen=yes;;
16646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16648 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16649 _ACEOF
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 ac_datarootdir_hack='
16652 s&@datadir@&$datadir&g
16653 s&@docdir@&$docdir&g
16654 s&@infodir@&$infodir&g
16655 s&@localedir@&$localedir&g
16656 s&@mandir@&$mandir&g
16657 s&\\\${datarootdir}&$datarootdir&g' ;;
16658 esac
16659 _ACEOF
16661 # Neutralize VPATH when `$srcdir' = `.'.
16662 # Shell code in configure.ac might set extrasub.
16663 # FIXME: do we really want to maintain this feature?
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 ac_sed_extra="$ac_vpsub
16666 $extrasub
16667 _ACEOF
16668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16671 s|@configure_input@|$ac_sed_conf_input|;t t
16672 s&@top_builddir@&$ac_top_builddir_sub&;t t
16673 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16674 s&@srcdir@&$ac_srcdir&;t t
16675 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16676 s&@top_srcdir@&$ac_top_srcdir&;t t
16677 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16678 s&@builddir@&$ac_builddir&;t t
16679 s&@abs_builddir@&$ac_abs_builddir&;t t
16680 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16681 s&@INSTALL@&$ac_INSTALL&;t t
16682 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16683 $ac_datarootdir_hack
16685 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16686 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16689 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16691 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16693 which seems to be undefined. Please make sure it is defined" >&5
16694 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16695 which seems to be undefined. Please make sure it is defined" >&2;}
16697 rm -f "$ac_tmp/stdin"
16698 case $ac_file in
16699 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16700 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16701 esac \
16702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16706 # CONFIG_HEADER
16708 if test x"$ac_file" != x-; then
16710 $as_echo "/* $configure_input */" \
16711 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16712 } >"$ac_tmp/config.h" \
16713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16714 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16716 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16717 else
16718 rm -f "$ac_file"
16719 mv "$ac_tmp/config.h" "$ac_file" \
16720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16722 else
16723 $as_echo "/* $configure_input */" \
16724 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16725 || as_fn_error $? "could not create -" "$LINENO" 5
16727 # Compute "$ac_file"'s index in $config_headers.
16728 _am_arg="$ac_file"
16729 _am_stamp_count=1
16730 for _am_header in $config_headers :; do
16731 case $_am_header in
16732 $_am_arg | $_am_arg:* )
16733 break ;;
16735 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16736 esac
16737 done
16738 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16739 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16740 X"$_am_arg" : 'X\(//\)[^/]' \| \
16741 X"$_am_arg" : 'X\(//\)$' \| \
16742 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16743 $as_echo X"$_am_arg" |
16744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16745 s//\1/
16748 /^X\(\/\/\)[^/].*/{
16749 s//\1/
16752 /^X\(\/\/\)$/{
16753 s//\1/
16756 /^X\(\/\).*/{
16757 s//\1/
16760 s/.*/./; q'`/stamp-h$_am_stamp_count
16763 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16764 $as_echo "$as_me: executing $ac_file commands" >&6;}
16766 esac
16769 case $ac_file$ac_mode in
16770 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16771 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16772 # are listed without --file. Let's play safe and only enable the eval
16773 # if we detect the quoting.
16774 case $CONFIG_FILES in
16775 *\'*) eval set x "$CONFIG_FILES" ;;
16776 *) set x $CONFIG_FILES ;;
16777 esac
16778 shift
16779 for mf
16781 # Strip MF so we end up with the name of the file.
16782 mf=`echo "$mf" | sed -e 's/:.*$//'`
16783 # Check whether this is an Automake generated Makefile or not.
16784 # We used to match only the files named `Makefile.in', but
16785 # some people rename them; so instead we look at the file content.
16786 # Grep'ing the first line is not enough: some people post-process
16787 # each Makefile.in and add a new line on top of each file to say so.
16788 # Grep'ing the whole file is not good either: AIX grep has a line
16789 # limit of 2048, but all sed's we know have understand at least 4000.
16790 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16791 dirpart=`$as_dirname -- "$mf" ||
16792 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16793 X"$mf" : 'X\(//\)[^/]' \| \
16794 X"$mf" : 'X\(//\)$' \| \
16795 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16796 $as_echo X"$mf" |
16797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16798 s//\1/
16801 /^X\(\/\/\)[^/].*/{
16802 s//\1/
16805 /^X\(\/\/\)$/{
16806 s//\1/
16809 /^X\(\/\).*/{
16810 s//\1/
16813 s/.*/./; q'`
16814 else
16815 continue
16817 # Extract the definition of DEPDIR, am__include, and am__quote
16818 # from the Makefile without running `make'.
16819 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16820 test -z "$DEPDIR" && continue
16821 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16822 test -z "am__include" && continue
16823 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16824 # When using ansi2knr, U may be empty or an underscore; expand it
16825 U=`sed -n 's/^U = //p' < "$mf"`
16826 # Find all dependency output files, they are included files with
16827 # $(DEPDIR) in their names. We invoke sed twice because it is the
16828 # simplest approach to changing $(DEPDIR) to its actual value in the
16829 # expansion.
16830 for file in `sed -n "
16831 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16832 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16833 # Make sure the directory exists.
16834 test -f "$dirpart/$file" && continue
16835 fdir=`$as_dirname -- "$file" ||
16836 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16837 X"$file" : 'X\(//\)[^/]' \| \
16838 X"$file" : 'X\(//\)$' \| \
16839 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16840 $as_echo X"$file" |
16841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16842 s//\1/
16845 /^X\(\/\/\)[^/].*/{
16846 s//\1/
16849 /^X\(\/\/\)$/{
16850 s//\1/
16853 /^X\(\/\).*/{
16854 s//\1/
16857 s/.*/./; q'`
16858 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16859 # echo "creating $dirpart/$file"
16860 echo '# dummy' > "$dirpart/$file"
16861 done
16862 done
16865 "libtool":C)
16867 # See if we are running on zsh, and set the options which allow our
16868 # commands through without removal of \ escapes.
16869 if test -n "${ZSH_VERSION+set}" ; then
16870 setopt NO_GLOB_SUBST
16873 cfgfile="${ofile}T"
16874 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16875 $RM "$cfgfile"
16877 cat <<_LT_EOF >> "$cfgfile"
16878 #! $SHELL
16880 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16881 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16882 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16883 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16885 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16886 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16887 # Foundation, Inc.
16888 # Written by Gordon Matzigkeit, 1996
16890 # This file is part of GNU Libtool.
16892 # GNU Libtool is free software; you can redistribute it and/or
16893 # modify it under the terms of the GNU General Public License as
16894 # published by the Free Software Foundation; either version 2 of
16895 # the License, or (at your option) any later version.
16897 # As a special exception to the GNU General Public License,
16898 # if you distribute this file as part of a program or library that
16899 # is built using GNU Libtool, you may include this file under the
16900 # same distribution terms that you use for the rest of that program.
16902 # GNU Libtool is distributed in the hope that it will be useful,
16903 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16904 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16905 # GNU General Public License for more details.
16907 # You should have received a copy of the GNU General Public License
16908 # along with GNU Libtool; see the file COPYING. If not, a copy
16909 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16910 # obtained by writing to the Free Software Foundation, Inc.,
16911 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16914 # The names of the tagged configurations supported by this script.
16915 available_tags=""
16917 # ### BEGIN LIBTOOL CONFIG
16919 # Which release of libtool.m4 was used?
16920 macro_version=$macro_version
16921 macro_revision=$macro_revision
16923 # Whether or not to build shared libraries.
16924 build_libtool_libs=$enable_shared
16926 # Whether or not to build static libraries.
16927 build_old_libs=$enable_static
16929 # What type of objects to build.
16930 pic_mode=$pic_mode
16932 # Whether or not to optimize for fast installation.
16933 fast_install=$enable_fast_install
16935 # Shell to use when invoking shell scripts.
16936 SHELL=$lt_SHELL
16938 # An echo program that protects backslashes.
16939 ECHO=$lt_ECHO
16941 # The PATH separator for the build system.
16942 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16944 # The host system.
16945 host_alias=$host_alias
16946 host=$host
16947 host_os=$host_os
16949 # The build system.
16950 build_alias=$build_alias
16951 build=$build
16952 build_os=$build_os
16954 # A sed program that does not truncate output.
16955 SED=$lt_SED
16957 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16958 Xsed="\$SED -e 1s/^X//"
16960 # A grep program that handles long lines.
16961 GREP=$lt_GREP
16963 # An ERE matcher.
16964 EGREP=$lt_EGREP
16966 # A literal string matcher.
16967 FGREP=$lt_FGREP
16969 # A BSD- or MS-compatible name lister.
16970 NM=$lt_NM
16972 # Whether we need soft or hard links.
16973 LN_S=$lt_LN_S
16975 # What is the maximum length of a command?
16976 max_cmd_len=$max_cmd_len
16978 # Object file suffix (normally "o").
16979 objext=$ac_objext
16981 # Executable file suffix (normally "").
16982 exeext=$exeext
16984 # whether the shell understands "unset".
16985 lt_unset=$lt_unset
16987 # turn spaces into newlines.
16988 SP2NL=$lt_lt_SP2NL
16990 # turn newlines into spaces.
16991 NL2SP=$lt_lt_NL2SP
16993 # convert \$build file names to \$host format.
16994 to_host_file_cmd=$lt_cv_to_host_file_cmd
16996 # convert \$build files to toolchain format.
16997 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16999 # An object symbol dumper.
17000 OBJDUMP=$lt_OBJDUMP
17002 # Method to check whether dependent libraries are shared objects.
17003 deplibs_check_method=$lt_deplibs_check_method
17005 # Command to use when deplibs_check_method = "file_magic".
17006 file_magic_cmd=$lt_file_magic_cmd
17008 # How to find potential files when deplibs_check_method = "file_magic".
17009 file_magic_glob=$lt_file_magic_glob
17011 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17012 want_nocaseglob=$lt_want_nocaseglob
17014 # DLL creation program.
17015 DLLTOOL=$lt_DLLTOOL
17017 # Command to associate shared and link libraries.
17018 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17020 # The archiver.
17021 AR=$lt_AR
17023 # Flags to create an archive.
17024 AR_FLAGS=$lt_AR_FLAGS
17026 # How to feed a file listing to the archiver.
17027 archiver_list_spec=$lt_archiver_list_spec
17029 # A symbol stripping program.
17030 STRIP=$lt_STRIP
17032 # Commands used to install an old-style archive.
17033 RANLIB=$lt_RANLIB
17034 old_postinstall_cmds=$lt_old_postinstall_cmds
17035 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17037 # Whether to use a lock for old archive extraction.
17038 lock_old_archive_extraction=$lock_old_archive_extraction
17040 # A C compiler.
17041 LTCC=$lt_CC
17043 # LTCC compiler flags.
17044 LTCFLAGS=$lt_CFLAGS
17046 # Take the output of nm and produce a listing of raw symbols and C names.
17047 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17049 # Transform the output of nm in a proper C declaration.
17050 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17052 # Transform the output of nm in a C name address pair.
17053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17055 # Transform the output of nm in a C name address pair when lib prefix is needed.
17056 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17058 # Specify filename containing input files for \$NM.
17059 nm_file_list_spec=$lt_nm_file_list_spec
17061 # The root where to search for dependent libraries,and in which our libraries should be installed.
17062 lt_sysroot=$lt_sysroot
17064 # The name of the directory that contains temporary libtool files.
17065 objdir=$objdir
17067 # Used to examine libraries when file_magic_cmd begins with "file".
17068 MAGIC_CMD=$MAGIC_CMD
17070 # Must we lock files when doing compilation?
17071 need_locks=$lt_need_locks
17073 # Manifest tool.
17074 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17076 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17077 DSYMUTIL=$lt_DSYMUTIL
17079 # Tool to change global to local symbols on Mac OS X.
17080 NMEDIT=$lt_NMEDIT
17082 # Tool to manipulate fat objects and archives on Mac OS X.
17083 LIPO=$lt_LIPO
17085 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17086 OTOOL=$lt_OTOOL
17088 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17089 OTOOL64=$lt_OTOOL64
17091 # Old archive suffix (normally "a").
17092 libext=$libext
17094 # Shared library suffix (normally ".so").
17095 shrext_cmds=$lt_shrext_cmds
17097 # The commands to extract the exported symbol list from a shared archive.
17098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17100 # Variables whose values should be saved in libtool wrapper scripts and
17101 # restored at link time.
17102 variables_saved_for_relink=$lt_variables_saved_for_relink
17104 # Do we need the "lib" prefix for modules?
17105 need_lib_prefix=$need_lib_prefix
17107 # Do we need a version for libraries?
17108 need_version=$need_version
17110 # Library versioning type.
17111 version_type=$version_type
17113 # Shared library runtime path variable.
17114 runpath_var=$runpath_var
17116 # Shared library path variable.
17117 shlibpath_var=$shlibpath_var
17119 # Is shlibpath searched before the hard-coded library search path?
17120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17122 # Format of library name prefix.
17123 libname_spec=$lt_libname_spec
17125 # List of archive names. First name is the real one, the rest are links.
17126 # The last name is the one that the linker finds with -lNAME
17127 library_names_spec=$lt_library_names_spec
17129 # The coded name of the library, if different from the real name.
17130 soname_spec=$lt_soname_spec
17132 # Permission mode override for installation of shared libraries.
17133 install_override_mode=$lt_install_override_mode
17135 # Command to use after installation of a shared archive.
17136 postinstall_cmds=$lt_postinstall_cmds
17138 # Command to use after uninstallation of a shared archive.
17139 postuninstall_cmds=$lt_postuninstall_cmds
17141 # Commands used to finish a libtool library installation in a directory.
17142 finish_cmds=$lt_finish_cmds
17144 # As "finish_cmds", except a single script fragment to be evaled but
17145 # not shown.
17146 finish_eval=$lt_finish_eval
17148 # Whether we should hardcode library paths into libraries.
17149 hardcode_into_libs=$hardcode_into_libs
17151 # Compile-time system search path for libraries.
17152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17154 # Run-time system search path for libraries.
17155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17157 # Whether dlopen is supported.
17158 dlopen_support=$enable_dlopen
17160 # Whether dlopen of programs is supported.
17161 dlopen_self=$enable_dlopen_self
17163 # Whether dlopen of statically linked programs is supported.
17164 dlopen_self_static=$enable_dlopen_self_static
17166 # Commands to strip libraries.
17167 old_striplib=$lt_old_striplib
17168 striplib=$lt_striplib
17171 # The linker used to build libraries.
17172 LD=$lt_LD
17174 # How to create reloadable object files.
17175 reload_flag=$lt_reload_flag
17176 reload_cmds=$lt_reload_cmds
17178 # Commands used to build an old-style archive.
17179 old_archive_cmds=$lt_old_archive_cmds
17181 # A language specific compiler.
17182 CC=$lt_compiler
17184 # Is the compiler the GNU compiler?
17185 with_gcc=$GCC
17187 # Compiler flag to turn off builtin functions.
17188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17190 # Additional compiler flags for building library objects.
17191 pic_flag=$lt_lt_prog_compiler_pic
17193 # How to pass a linker flag through the compiler.
17194 wl=$lt_lt_prog_compiler_wl
17196 # Compiler flag to prevent dynamic linking.
17197 link_static_flag=$lt_lt_prog_compiler_static
17199 # Does compiler simultaneously support -c and -o options?
17200 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17202 # Whether or not to add -lc for building shared libraries.
17203 build_libtool_need_lc=$archive_cmds_need_lc
17205 # Whether or not to disallow shared libs when runtime libs are static.
17206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17208 # Compiler flag to allow reflexive dlopens.
17209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17211 # Compiler flag to generate shared objects directly from archives.
17212 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17214 # Whether the compiler copes with passing no objects directly.
17215 compiler_needs_object=$lt_compiler_needs_object
17217 # Create an old-style archive from a shared archive.
17218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17220 # Create a temporary old-style archive to link instead of a shared archive.
17221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17223 # Commands used to build a shared archive.
17224 archive_cmds=$lt_archive_cmds
17225 archive_expsym_cmds=$lt_archive_expsym_cmds
17227 # Commands used to build a loadable module if different from building
17228 # a shared archive.
17229 module_cmds=$lt_module_cmds
17230 module_expsym_cmds=$lt_module_expsym_cmds
17232 # Whether we are building with GNU ld or not.
17233 with_gnu_ld=$lt_with_gnu_ld
17235 # Flag that allows shared libraries with undefined symbols to be built.
17236 allow_undefined_flag=$lt_allow_undefined_flag
17238 # Flag that enforces no undefined symbols.
17239 no_undefined_flag=$lt_no_undefined_flag
17241 # Flag to hardcode \$libdir into a binary during linking.
17242 # This must work even if \$libdir does not exist
17243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17245 # Whether we need a single "-rpath" flag with a separated argument.
17246 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17249 # DIR into the resulting binary.
17250 hardcode_direct=$hardcode_direct
17252 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17253 # DIR into the resulting binary and the resulting library dependency is
17254 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17255 # library is relocated.
17256 hardcode_direct_absolute=$hardcode_direct_absolute
17258 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17259 # into the resulting binary.
17260 hardcode_minus_L=$hardcode_minus_L
17262 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17263 # into the resulting binary.
17264 hardcode_shlibpath_var=$hardcode_shlibpath_var
17266 # Set to "yes" if building a shared library automatically hardcodes DIR
17267 # into the library and all subsequent libraries and executables linked
17268 # against it.
17269 hardcode_automatic=$hardcode_automatic
17271 # Set to yes if linker adds runtime paths of dependent libraries
17272 # to runtime path list.
17273 inherit_rpath=$inherit_rpath
17275 # Whether libtool must link a program against all its dependency libraries.
17276 link_all_deplibs=$link_all_deplibs
17278 # Set to "yes" if exported symbols are required.
17279 always_export_symbols=$always_export_symbols
17281 # The commands to list exported symbols.
17282 export_symbols_cmds=$lt_export_symbols_cmds
17284 # Symbols that should not be listed in the preloaded symbols.
17285 exclude_expsyms=$lt_exclude_expsyms
17287 # Symbols that must always be exported.
17288 include_expsyms=$lt_include_expsyms
17290 # Commands necessary for linking programs (against libraries) with templates.
17291 prelink_cmds=$lt_prelink_cmds
17293 # Commands necessary for finishing linking programs.
17294 postlink_cmds=$lt_postlink_cmds
17296 # Specify filename containing input files.
17297 file_list_spec=$lt_file_list_spec
17299 # How to hardcode a shared library path into an executable.
17300 hardcode_action=$hardcode_action
17302 # ### END LIBTOOL CONFIG
17304 _LT_EOF
17306 case $host_os in
17307 aix3*)
17308 cat <<\_LT_EOF >> "$cfgfile"
17309 # AIX sometimes has problems with the GCC collect2 program. For some
17310 # reason, if we set the COLLECT_NAMES environment variable, the problems
17311 # vanish in a puff of smoke.
17312 if test "X${COLLECT_NAMES+set}" != Xset; then
17313 COLLECT_NAMES=
17314 export COLLECT_NAMES
17316 _LT_EOF
17318 esac
17321 ltmain="$ac_aux_dir/ltmain.sh"
17324 # We use sed instead of cat because bash on DJGPP gets confused if
17325 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17326 # text mode, it properly converts lines to CR/LF. This bash problem
17327 # is reportedly fixed, but why not run on old versions too?
17328 sed '$q' "$ltmain" >> "$cfgfile" \
17329 || (rm -f "$cfgfile"; exit 1)
17331 if test x"$xsi_shell" = xyes; then
17332 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17333 func_dirname ()\
17335 \ case ${1} in\
17336 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17337 \ * ) func_dirname_result="${3}" ;;\
17338 \ esac\
17339 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17340 && mv -f "$cfgfile.tmp" "$cfgfile" \
17341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17342 test 0 -eq $? || _lt_function_replace_fail=:
17345 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17346 func_basename ()\
17348 \ func_basename_result="${1##*/}"\
17349 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17350 && mv -f "$cfgfile.tmp" "$cfgfile" \
17351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17352 test 0 -eq $? || _lt_function_replace_fail=:
17355 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17356 func_dirname_and_basename ()\
17358 \ case ${1} in\
17359 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17360 \ * ) func_dirname_result="${3}" ;;\
17361 \ esac\
17362 \ func_basename_result="${1##*/}"\
17363 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17364 && mv -f "$cfgfile.tmp" "$cfgfile" \
17365 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17366 test 0 -eq $? || _lt_function_replace_fail=:
17369 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17370 func_stripname ()\
17372 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17373 \ # positional parameters, so assign one to ordinary parameter first.\
17374 \ func_stripname_result=${3}\
17375 \ func_stripname_result=${func_stripname_result#"${1}"}\
17376 \ func_stripname_result=${func_stripname_result%"${2}"}\
17377 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17378 && mv -f "$cfgfile.tmp" "$cfgfile" \
17379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17380 test 0 -eq $? || _lt_function_replace_fail=:
17383 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17384 func_split_long_opt ()\
17386 \ func_split_long_opt_name=${1%%=*}\
17387 \ func_split_long_opt_arg=${1#*=}\
17388 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17389 && mv -f "$cfgfile.tmp" "$cfgfile" \
17390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17391 test 0 -eq $? || _lt_function_replace_fail=:
17394 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17395 func_split_short_opt ()\
17397 \ func_split_short_opt_arg=${1#??}\
17398 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17399 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17400 && mv -f "$cfgfile.tmp" "$cfgfile" \
17401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17402 test 0 -eq $? || _lt_function_replace_fail=:
17405 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17406 func_lo2o ()\
17408 \ case ${1} in\
17409 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17410 \ *) func_lo2o_result=${1} ;;\
17411 \ esac\
17412 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17413 && mv -f "$cfgfile.tmp" "$cfgfile" \
17414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17415 test 0 -eq $? || _lt_function_replace_fail=:
17418 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17419 func_xform ()\
17421 func_xform_result=${1%.*}.lo\
17422 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17423 && mv -f "$cfgfile.tmp" "$cfgfile" \
17424 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17425 test 0 -eq $? || _lt_function_replace_fail=:
17428 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17429 func_arith ()\
17431 func_arith_result=$(( $* ))\
17432 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17433 && mv -f "$cfgfile.tmp" "$cfgfile" \
17434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17435 test 0 -eq $? || _lt_function_replace_fail=:
17438 sed -e '/^func_len ()$/,/^} # func_len /c\
17439 func_len ()\
17441 func_len_result=${#1}\
17442 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17443 && mv -f "$cfgfile.tmp" "$cfgfile" \
17444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17445 test 0 -eq $? || _lt_function_replace_fail=:
17449 if test x"$lt_shell_append" = xyes; then
17450 sed -e '/^func_append ()$/,/^} # func_append /c\
17451 func_append ()\
17453 eval "${1}+=\\${2}"\
17454 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17455 && mv -f "$cfgfile.tmp" "$cfgfile" \
17456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17457 test 0 -eq $? || _lt_function_replace_fail=:
17460 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17461 func_append_quoted ()\
17463 \ func_quote_for_eval "${2}"\
17464 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17465 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17466 && mv -f "$cfgfile.tmp" "$cfgfile" \
17467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17468 test 0 -eq $? || _lt_function_replace_fail=:
17471 # Save a `func_append' function call where possible by direct use of '+='
17472 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17473 && mv -f "$cfgfile.tmp" "$cfgfile" \
17474 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17475 test 0 -eq $? || _lt_function_replace_fail=:
17476 else
17477 # Save a `func_append' function call even when '+=' is not available
17478 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17479 && mv -f "$cfgfile.tmp" "$cfgfile" \
17480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17481 test 0 -eq $? || _lt_function_replace_fail=:
17484 if test x"$_lt_function_replace_fail" = x":"; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17486 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17490 mv -f "$cfgfile" "$ofile" ||
17491 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17492 chmod +x "$ofile"
17496 esac
17497 done # for ac_tag
17500 as_fn_exit 0
17501 _ACEOF
17502 ac_clean_files=$ac_clean_files_save
17504 test $ac_write_fail = 0 ||
17505 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17508 # configure is writing to config.log, and then calls config.status.
17509 # config.status does its own redirection, appending to config.log.
17510 # Unfortunately, on DOS this fails, as config.log is still kept open
17511 # by configure, so config.status won't be able to write to it; its
17512 # output is simply discarded. So we exec the FD to /dev/null,
17513 # effectively closing config.log, so it can be properly (re)opened and
17514 # appended to by config.status. When coming back to configure, we
17515 # need to make the FD available again.
17516 if test "$no_create" != yes; then
17517 ac_cs_success=:
17518 ac_config_status_args=
17519 test "$silent" = yes &&
17520 ac_config_status_args="$ac_config_status_args --quiet"
17521 exec 5>/dev/null
17522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17523 exec 5>>config.log
17524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17525 # would make configure fail if this is the last instruction.
17526 $ac_cs_success || as_fn_exit 1
17528 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17530 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}