]> git.ipfire.org Git - thirdparty/lldpd.git/blob - libevent/autom4te.cache/output.2
Really ship libevent.
[thirdparty/lldpd.git] / libevent / autom4te.cache / output.2
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68.
4 @%:@
5 @%:@
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.
9 @%:@
10 @%:@
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
97 do
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
103
104 ;;
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
110 fi
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
114 fi
115
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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 *) :
150 ;;
151 esac
152 fi
153 "
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; }
159
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 :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
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
176
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
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
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
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in @%:@(
200 /*)
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
209 fi
210 fi
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
220
221
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+"$@"}
238 fi
239
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."
251 fi
252 exit 1
253 fi
254 fi
255 fi
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
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 @%:@ as_fn_unset VAR
266 @%:@ ---------------
267 @%:@ Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 @%:@ as_fn_set_status STATUS
275 @%:@ -----------------------
276 @%:@ Set @S|@? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } @%:@ as_fn_set_status
281
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 ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } @%:@ as_fn_exit
291
292 @%:@ as_fn_mkdir_p
293 @%:@ -------------
294 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
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/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
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"
336
337
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 ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 @%:@ as_fn_arith ARG...
358 @%:@ ------------------
359 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
360 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
361 @%:@ must be portable across @S|@(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
376 @%:@ ----------------------------------------
377 @%:@ Output "`basename @S|@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 ()
381 {
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
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } @%:@ as_fn_error
390
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
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
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
408 fi
409
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/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
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
435
436
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 '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
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; }
459
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
466 }
467
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;;
477 *)
478 ECHO_N='-n';;
479 esac
480
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
487 fi
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'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
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
513 fi
514
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=
522 fi
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
534 '
535 fi
536 as_executable_p=$as_test_x
537
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'"
540
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'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
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`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIB@&t@OBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
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"
611
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 LIB@&t@OBJS
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
665 AR
666 DLLTOOL
667 OBJDUMP
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 SED
674 LIBTOOL
675 EGREP
676 GREP
677 CPP
678 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
695 CC
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
709 AWK
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
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP'
794
795
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
817
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'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
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
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
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 ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
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 ;;
898
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
907 *"
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 ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
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
933 *"
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 ;;
940
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 ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
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 ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
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 ;;
971
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 ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
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 ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
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 ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
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 ;;
1024
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 ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
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 ;;
1045
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 ;;
1052
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 ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
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 ;;
1089
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 ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
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 ;;
1117
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 ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
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
1137 *"
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 ;;
1144
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
1153 *"
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 ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
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 ;;
1171
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 ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181 ;;
1182
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 ;;
1192
1193 *)
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}"
1199 ;;
1200
1201 esac
1202 done
1203
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"
1207 fi
1208
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
1215 fi
1216
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
1222 do
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
1237
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
1244
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
1253 fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
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"
1268
1269
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/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301 else
1302 ac_srcdir_defaulted=no
1303 fi
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"
1307 fi
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=.
1315 fi
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
1328
1329 #
1330 # Report the --help message.
1331 #
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.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
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.
1342
1343 Defaults for the options are specified in brackets.
1344
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 \`..']
1355
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 @<:@@S|@ac_default_prefix@:>@
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 @<:@PREFIX@:>@
1361
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'.
1366
1367 For better control, use the options below.
1368
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
1390
1391 cat <<\_ACEOF
1392
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
1397
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
1402 fi
1403
1404 if test -n "$ac_init_help"; then
1405
1406 cat <<\_ACEOF
1407
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
1423
1424 --disable-libevent-regress, skip regress in make check
1425
1426 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1427
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)
1433
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).
1442
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
1452
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.
1455
1456 Report bugs to the package provider.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
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=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
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
1484
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
1500
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
1514 fi
1515
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
1521
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
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 @%:@ ac_fn_c_try_compile LINENO
1534 @%:@ --------------------------
1535 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
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
1553 fi
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
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } @%:@ ac_fn_c_try_compile
1570
1571 @%:@ ac_fn_c_try_cpp LINENO
1572 @%:@ ----------------------
1573 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_cpp ()
1575 {
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
1590 fi
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
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } @%:@ ac_fn_c_try_cpp
1607
1608 @%:@ ac_fn_c_try_link LINENO
1609 @%:@ -----------------------
1610 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1612 {
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
1628 fi
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
1641
1642 ac_retval=1
1643 fi
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
1651
1652 } @%:@ ac_fn_c_try_link
1653
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 ()
1659 {
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. */
1668 $4
1669 @%:@include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 fi
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
1682
1683 } @%:@ ac_fn_c_check_header_compile
1684
1685 @%:@ ac_fn_c_try_run LINENO
1686 @%:@ ----------------------
1687 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1688 @%:@ that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } @%:@ ac_fn_c_try_run
1726
1727 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1728 @%:@ ----------------------------------
1729 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1731 {
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
1743
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. */
1748
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1754
1755 #undef $2
1756
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
1770
1771 int
1772 main ()
1773 {
1774 return $2 ();
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
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
1791
1792 } @%:@ ac_fn_c_check_func
1793
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 ()
1800 {
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
1807 fi
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. */
1817 $4
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
1824 fi
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; }
1828
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
1840 fi
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; }
1844
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;}
1852 ;;
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;}
1864 ;;
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"
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 fi
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } @%:@ ac_fn_c_check_header_mongrel
1880
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 ()
1886 {
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. */
1897 $4
1898 int
1899 main ()
1900 {
1901 @%:@ifndef $as_decl_name
1902 @%:@ifdef __cplusplus
1903 (void) $as_decl_use;
1904 @%:@else
1905 (void) $as_decl_name;
1906 @%:@endif
1907 @%:@endif
1908
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
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
1924
1925 } @%:@ ac_fn_c_check_decl
1926
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 ()
1933 {
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. */
1939 $4
1940 int
1941 main ()
1942 {
1943 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1944 test_array @<:@0@:>@ = 0
1945
1946 ;
1947 return 0;
1948 }
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. */
1955 $4
1956 int
1957 main ()
1958 {
1959 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1960 test_array @<:@0@:>@ = 0
1961
1962 ;
1963 return 0;
1964 }
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
1973 fi
1974 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1975 fi
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. */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
1986 test_array @<:@0@:>@ = 0
1987
1988 ;
1989 return 0;
1990 }
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. */
1997 $4
1998 int
1999 main ()
2000 {
2001 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2002 test_array @<:@0@:>@ = 0
2003
2004 ;
2005 return 0;
2006 }
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
2015 fi
2016 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 done
2020 else
2021 ac_lo= ac_hi=
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
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. */
2031 $4
2032 int
2033 main ()
2034 {
2035 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2036 test_array @<:@0@:>@ = 0
2037
2038 ;
2039 return 0;
2040 }
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
2046 fi
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. */
2056 $4
2057 static long int longval () { return $2; }
2058 static unsigned long int ulongval () { return $2; }
2059 @%:@include <stdio.h>
2060 @%:@include <stdlib.h>
2061 int
2062 main ()
2063 {
2064
2065 FILE *f = fopen ("conftest.val", "w");
2066 if (! f)
2067 return 1;
2068 if (($2) < 0)
2069 {
2070 long int i = longval ();
2071 if (i != ($2))
2072 return 1;
2073 fprintf (f, "%ld", i);
2074 }
2075 else
2076 {
2077 unsigned long int i = ulongval ();
2078 if (i != ($2))
2079 return 1;
2080 fprintf (f, "%lu", i);
2081 }
2082 /* Do not output a trailing newline, as this causes \r\n confusion
2083 on some platforms. */
2084 return ferror (f) || fclose (f) != 0;
2085
2086 ;
2087 return 0;
2088 }
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
2094 fi
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
2098
2099 fi
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2102
2103 } @%:@ ac_fn_c_compute_int
2104
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 ()
2110 {
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. */
2120 $4
2121 int
2122 main ()
2123 {
2124 if (sizeof ($2))
2125 return 0;
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $4
2134 int
2135 main ()
2136 {
2137 if (sizeof (($2)))
2138 return 0;
2139 ;
2140 return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144
2145 else
2146 eval "$3=yes"
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
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
2156
2157 } @%:@ ac_fn_c_check_type
2158
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 ()
2164 {
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. */
2173 $5
2174 int
2175 main ()
2176 {
2177 static $2 ac_aggr;
2178 if (ac_aggr.$3)
2179 return 0;
2180 ;
2181 return 0;
2182 }
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. */
2189 $5
2190 int
2191 main ()
2192 {
2193 static $2 ac_aggr;
2194 if (sizeof ac_aggr.$3)
2195 return 0;
2196 ;
2197 return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 eval "$4=yes"
2202 else
2203 eval "$4=no"
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
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
2213
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.
2218
2219 It was created by $as_me, which was
2220 generated by GNU Autoconf 2.68. Invocation command line was
2221
2222 $ $0 $@
2223
2224 _ACEOF
2225 exec 5>>config.log
2226 {
2227 cat <<_ASUNAME
2228 ## --------- ##
2229 ## Platform. ##
2230 ## --------- ##
2231
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`
2237
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`
2240
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`
2248
2249 _ASUNAME
2250
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
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
2259
2260 } >&5
2261
2262 cat >&5 <<_ACEOF
2263
2264
2265 ## ----------- ##
2266 ## Core tests. ##
2267 ## ----------- ##
2268
2269 _ACEOF
2270
2271
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
2282 do
2283 for ac_arg
2284 do
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'" ;;
2295 2)
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
2308 ;;
2309 -* ) ac_must_keep_next=true ;;
2310 esac
2311 fi
2312 as_fn_append ac_configure_args " '$ac_arg'"
2313 ;;
2314 esac
2315 done
2316 done
2317 { ac_configure_args0=; unset ac_configure_args0;}
2318 { ac_configure_args1=; unset ac_configure_args1;}
2319
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.
2327 {
2328 echo
2329
2330 $as_echo "## ---------------- ##
2331 ## Cache variables. ##
2332 ## ---------------- ##"
2333 echo
2334 # The following way of writing the cache mishandles newlines in values,
2335 (
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 ;; #(
2358 *)
2359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2360 ;;
2361 esac |
2362 sort
2363 )
2364 echo
2365
2366 $as_echo "## ----------------- ##
2367 ## Output variables. ##
2368 ## ----------------- ##"
2369 echo
2370 for ac_var in $ac_subst_vars
2371 do
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
2379
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
2386 do
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
2394 fi
2395
2396 if test -s confdefs.h; then
2397 $as_echo "## ----------- ##
2398 ## confdefs.h. ##
2399 ## ----------- ##"
2400 echo
2401 cat confdefs.h
2402 echo
2403 fi
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
2411 ' 0
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
2416
2417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2418 rm -f -r conftest* confdefs.h
2419
2420 $as_echo "/* confdefs.h */" > confdefs.h
2421
2422 # Predefined preprocessor variables.
2423
2424 cat >>confdefs.h <<_ACEOF
2425 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 @%:@define PACKAGE_URL "$PACKAGE_URL"
2446 _ACEOF
2447
2448
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
2466 fi
2467 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2468 do
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; }
2479 fi
2480 done
2481
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
2492 fi
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
2497 fi
2498
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 ,);;
2517 *)
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
2530 fi
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
2547 fi
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
2555 fi
2556 ## -------------------- ##
2557 ## Main body of script. ##
2558 ## -------------------- ##
2559
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
2565
2566
2567
2568
2569
2570 am__api_version='1.11'
2571
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
2586 fi
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
2590 fi
2591
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.
2599
2600
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
2623 do
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/* ) ;;
2632 *)
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.
2642 :
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.
2646 :
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
2659 fi
2660 fi
2661 fi
2662 done
2663 done
2664 ;;
2665 esac
2666
2667 done
2668 IFS=$as_save_IFS
2669
2670 rm -rf conftest.one conftest.two conftest.dir
2671
2672 fi
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
2681 fi
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2684 $as_echo "$INSTALL" >&6; }
2685
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}'
2689
2690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2691
2692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2693
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='
2702 '
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
2711
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`
2722 fi
2723 rm -f conftest.file
2724 if test "$*" != "X $srcdir/configure conftest.file" \
2725 && test "$*" != "X conftest.file $srcdir/configure"; then
2726
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
2733 fi
2734
2735 test "$2" = conftest.file
2736 )
2737 then
2738 # Ok.
2739 :
2740 else
2741 as_fn_error $? "newly created file is older than distributed files!
2742 Check your system clock" "$LINENO" 5
2743 fi
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"`
2755
2756 # expand $ac_aux_dir to an absolute path
2757 am_aux_dir=`cd $ac_aux_dir && pwd`
2758
2759 if test x"${MISSING+set}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2763 *)
2764 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2765 esac
2766 fi
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;}
2774 fi
2775
2776 if test x"${install_sh}" != xset; then
2777 case $am_aux_dir in
2778 *\ * | *\ *)
2779 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2780 *)
2781 install_sh="\${SHELL} $am_aux_dir/install-sh"
2782 esac
2783 fi
2784
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
2803 do
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
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
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; }
2825 fi
2826
2827
2828 fi
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
2843 do
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
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
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; }
2865 fi
2866
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
2877 fi
2878 else
2879 STRIP="$ac_cv_prog_STRIP"
2880 fi
2881
2882 fi
2883 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2884
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
2893 do
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
2910
2911 fi
2912
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"
2922 fi
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2925 $as_echo "$MKDIR_P" >&6; }
2926
2927 mkdir_p="$MKDIR_P"
2928 case $mkdir_p in
2929 [\\/$]* | ?:[\\/]*) ;;
2930 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2931 esac
2932
2933 for ac_prog in gawk mawk nawk awk
2934 do
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
2947 do
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
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
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; }
2969 fi
2970
2971
2972 test -n "$AWK" && break
2973 done
2974
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;;
2991 *)
2992 eval ac_cv_prog_make_${ac_make}_set=no;;
2993 esac
2994 rm -f conftest.make
2995 fi
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}"
3004 fi
3005
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=_
3012 fi
3013 rmdir .tst 2>/dev/null
3014
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
3022 fi
3023 fi
3024
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
3031 fi
3032 fi
3033
3034
3035 # Define the identity of the package.
3036 PACKAGE=libevent
3037 VERSION=2.0.18-stable
3038
3039
3040 cat >>confdefs.h <<_ACEOF
3041 @%:@define PACKAGE "$PACKAGE"
3042 _ACEOF
3043
3044
3045 cat >>confdefs.h <<_ACEOF
3046 @%:@define VERSION "$VERSION"
3047 _ACEOF
3048
3049 # Some tools Automake needs.
3050
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
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}'
3070
3071 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3072
3073
3074
3075
3076
3077 ac_config_headers="$ac_config_headers config.h"
3078
3079
3080 $as_echo "@%:@define NUMERIC_VERSION 0x02001200" >>confdefs.h
3081
3082
3083 if test "$prefix" = "NONE"; then
3084 prefix="/usr/local"
3085 fi
3086
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
3090
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
3103
3104 fi
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
3123
3124
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
3135 fi
3136
3137 fi
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
3156
3157
3158
3159 case "$host_os" in
3160
3161 osf5*)
3162 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3163 ;;
3164 esac
3165
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
3184 do
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
3192 fi
3193 done
3194 done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
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; }
3206 fi
3207
3208
3209 fi
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
3224 do
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
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
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; }
3246 fi
3247
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
3258 fi
3259 else
3260 CC="$ac_cv_prog_CC"
3261 fi
3262
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
3277 do
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
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
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; }
3299 fi
3300
3301
3302 fi
3303 fi
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
3318 do
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
3326 fi
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
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
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+' '}$@"
3345 fi
3346 fi
3347 fi
3348 fi
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; }
3356 fi
3357
3358
3359 fi
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3363 do
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
3376 do
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
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
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; }
3398 fi
3399
3400
3401 test -n "$CC" && break
3402 done
3403 fi
3404 if test -z "$CC"; then
3405 ac_ct_CC=$CC
3406 for ac_prog in cl.exe
3407 do
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
3420 do
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
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
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; }
3442 fi
3443
3444
3445 test -n "$ac_ct_CC" && break
3446 done
3447
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
3458 fi
3459 fi
3460
3461 fi
3462
3463
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; }
3468
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
3488 fi
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
3493
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
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[^ ]*//'`
3513
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516
3517 ac_rmfiles=
3518 for ac_file in $ac_files
3519 do
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
3526
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 ''
3544 do
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 )
3548 ;;
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" : '[^.]*\(\..*\)'`
3557 fi
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;;
3564 * )
3565 break;;
3566 esac
3567 done
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3569
3570 else
3571 ac_file=''
3572 fi
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
3578
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; }
3586 fi
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
3592
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; }
3626 fi
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; }
3630
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>
3637 int
3638 main ()
3639 {
3640 FILE *f = fopen ("conftest.out", "w");
3641 return ferror (f) || fclose (f) != 0;
3642
3643 ;
3644 return 0;
3645 }
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; }
3685 fi
3686 fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689 $as_echo "$cross_compiling" >&6; }
3690
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. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
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
3732
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; }
3737 fi
3738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3739 fi
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. */
3751
3752 int
3753 main ()
3754 {
3755 #ifndef __GNUC__
3756 choke me
3757 #endif
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_compiler_gnu=yes
3765 else
3766 ac_compiler_gnu=no
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3770
3771 fi
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=
3778 fi
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. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
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. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817
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. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_g=yes
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3841 fi
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"
3851 fi
3852 else
3853 if test "$GCC" = yes; then
3854 CFLAGS="-O2"
3855 else
3856 CFLAGS=
3857 fi
3858 fi
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;
3878 {
3879 return p[i];
3880 }
3881 static char *f (char * (*g) (char **, int), char **p, ...)
3882 {
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;
3889 }
3890
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];
3899
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];
3904
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;
3911 int
3912 main ()
3913 {
3914 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3921 do
3922 CC="$ac_save_CC $ac_arg"
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_c89=$ac_arg
3925 fi
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
3931
3932 fi
3933 # AC_CACHE_VAL
3934 case "x$ac_cv_prog_cc_c89" in
3935 x)
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; } ;;
3941 *)
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 :
3947
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 DEPDIR="${am__leading_dot}deps"
3956
3957 ac_config_commands="$ac_config_commands depfiles"
3958
3959
3960 am_make=${MAKE-make}
3961 cat > confinc << 'END'
3962 am__doit:
3963 @echo this is the am__doit target
3964 .PHONY: am__doit
3965 END
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
3980 ;;
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
3990 ;;
3991 esac
3992 fi
3993
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996 $as_echo "$_am_result" >&6; }
3997 rm -f confinc confmf
3998
3999 @%:@ Check whether --enable-dependency-tracking was given.
4000 if test "${enable_dependency_tracking+set}" = set; then :
4001 enableval=$enable_dependency_tracking;
4002 fi
4003
4004 if test "x$enable_dependency_tracking" != xno; then
4005 am_depcomp="$ac_aux_dir/depcomp"
4006 AMDEPBACKSLASH='\'
4007 am__nodep='_no'
4008 fi
4009 if test "x$enable_dependency_tracking" != xno; then
4010 AMDEP_TRUE=
4011 AMDEP_FALSE='#'
4012 else
4013 AMDEP_TRUE='#'
4014 AMDEP_FALSE=
4015 fi
4016
4017
4018
4019 depcc="$CC" am_compiler_list=
4020
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
4045
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`
4049 fi
4050 am__universal=false
4051 case " $depcc " in #(
4052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4053 esac
4054
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.
4059 #
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
4071
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
4082 ;;
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
4090 fi
4091 ;;
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=
4098 ;;
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
4121 fi
4122 fi
4123 done
4124
4125 cd ..
4126 rm -rf conftest.dir
4127 else
4128 am_cv_CC_dependencies_compiler_type=none
4129 fi
4130
4131 fi
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
4135
4136 if
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=
4144 fi
4145
4146
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; }
4153 fi
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. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
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.
4234 :
4235 else
4236 # cc exists but doesn't like -o.
4237 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4238 fi
4239 fi
4240 fi
4241 else
4242 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4243 fi
4244 rm -f core conftest*
4245
4246 fi
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; }
4253
4254 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4255
4256 fi
4257
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"
4270 fi
4271
4272
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4275 $as_echo_n "checking whether ln -s works... " >&6; }
4276 LN_S=$as_ln_s
4277 if test "$LN_S" = "ln -s"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4279 $as_echo "yes" >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4282 $as_echo "no, using $LN_S" >&6; }
4283 fi
4284
4285
4286
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4294 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4295 # On Suns, sometimes $CPP names a directory.
4296 if test -n "$CPP" && test -d "$CPP"; then
4297 CPP=
4298 fi
4299 if test -z "$CPP"; then
4300 if ${ac_cv_prog_CPP+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 # Double quotes because CPP needs to be expanded
4304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4305 do
4306 ac_preproc_ok=false
4307 for ac_c_preproc_warn_flag in '' yes
4308 do
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 @%:@ifdef __STDC__
4318 @%:@ include <limits.h>
4319 @%:@else
4320 @%:@ include <assert.h>
4321 @%:@endif
4322 Syntax error
4323 _ACEOF
4324 if ac_fn_c_try_cpp "$LINENO"; then :
4325
4326 else
4327 # Broken: fails on valid input.
4328 continue
4329 fi
4330 rm -f conftest.err conftest.i conftest.$ac_ext
4331
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 @%:@include <ac_nonexistent.h>
4337 _ACEOF
4338 if ac_fn_c_try_cpp "$LINENO"; then :
4339 # Broken: success on invalid input.
4340 continue
4341 else
4342 # Passes both tests.
4343 ac_preproc_ok=:
4344 break
4345 fi
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4347
4348 done
4349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350 rm -f conftest.i conftest.err conftest.$ac_ext
4351 if $ac_preproc_ok; then :
4352 break
4353 fi
4354
4355 done
4356 ac_cv_prog_CPP=$CPP
4357
4358 fi
4359 CPP=$ac_cv_prog_CPP
4360 else
4361 ac_cv_prog_CPP=$CPP
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4364 $as_echo "$CPP" >&6; }
4365 ac_preproc_ok=false
4366 for ac_c_preproc_warn_flag in '' yes
4367 do
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 @%:@ifdef __STDC__
4377 @%:@ include <limits.h>
4378 @%:@else
4379 @%:@ include <assert.h>
4380 @%:@endif
4381 Syntax error
4382 _ACEOF
4383 if ac_fn_c_try_cpp "$LINENO"; then :
4384
4385 else
4386 # Broken: fails on valid input.
4387 continue
4388 fi
4389 rm -f conftest.err conftest.i conftest.$ac_ext
4390
4391 # OK, works on sane cases. Now check whether nonexistent headers
4392 # can be detected and how.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 @%:@include <ac_nonexistent.h>
4396 _ACEOF
4397 if ac_fn_c_try_cpp "$LINENO"; then :
4398 # Broken: success on invalid input.
4399 continue
4400 else
4401 # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4404 fi
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4406
4407 done
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.i conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then :
4411
4412 else
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4416 See \`config.log' for more details" "$LINENO" 5; }
4417 fi
4418
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4427 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4428 if ${ac_cv_path_GREP+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test -z "$GREP"; then
4432 ac_path_GREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in grep ggrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4443 # Check for GNU ac_path_GREP and select it if it is found.
4444 # Check for GNU $ac_path_GREP
4445 case `"$ac_path_GREP" --version 2>&1` in
4446 *GNU*)
4447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4448 *)
4449 ac_count=0
4450 $as_echo_n 0123456789 >"conftest.in"
4451 while :
4452 do
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 $as_echo 'GREP' >> "conftest.nl"
4457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 as_fn_arith $ac_count + 1 && ac_count=$as_val
4460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_GREP="$ac_path_GREP"
4463 ac_path_GREP_max=$ac_count
4464 fi
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4467 done
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469 esac
4470
4471 $ac_path_GREP_found && break 3
4472 done
4473 done
4474 done
4475 IFS=$as_save_IFS
4476 if test -z "$ac_cv_path_GREP"; then
4477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478 fi
4479 else
4480 ac_cv_path_GREP=$GREP
4481 fi
4482
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4485 $as_echo "$ac_cv_path_GREP" >&6; }
4486 GREP="$ac_cv_path_GREP"
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4490 $as_echo_n "checking for egrep... " >&6; }
4491 if ${ac_cv_path_EGREP+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4495 then ac_cv_path_EGREP="$GREP -E"
4496 else
4497 if test -z "$EGREP"; then
4498 ac_path_EGREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in egrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4508 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4509 # Check for GNU ac_path_EGREP and select it if it is found.
4510 # Check for GNU $ac_path_EGREP
4511 case `"$ac_path_EGREP" --version 2>&1` in
4512 *GNU*)
4513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4514 *)
4515 ac_count=0
4516 $as_echo_n 0123456789 >"conftest.in"
4517 while :
4518 do
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 $as_echo 'EGREP' >> "conftest.nl"
4523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 as_fn_arith $ac_count + 1 && ac_count=$as_val
4526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_EGREP="$ac_path_EGREP"
4529 ac_path_EGREP_max=$ac_count
4530 fi
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4533 done
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535 esac
4536
4537 $ac_path_EGREP_found && break 3
4538 done
4539 done
4540 done
4541 IFS=$as_save_IFS
4542 if test -z "$ac_cv_path_EGREP"; then
4543 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4544 fi
4545 else
4546 ac_cv_path_EGREP=$EGREP
4547 fi
4548
4549 fi
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4552 $as_echo "$ac_cv_path_EGREP" >&6; }
4553 EGREP="$ac_cv_path_EGREP"
4554
4555
4556 if test $ac_cv_c_compiler_gnu = yes; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4558 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4559 if ${ac_cv_prog_gcc_traditional+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 ac_pattern="Autoconf.*'x'"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <sgtty.h>
4566 Autoconf TIOCGETP
4567 _ACEOF
4568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4569 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4570 ac_cv_prog_gcc_traditional=yes
4571 else
4572 ac_cv_prog_gcc_traditional=no
4573 fi
4574 rm -f conftest*
4575
4576
4577 if test $ac_cv_prog_gcc_traditional = no; then
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #include <termio.h>
4581 Autoconf TCGETA
4582 _ACEOF
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4585 ac_cv_prog_gcc_traditional=yes
4586 fi
4587 rm -f conftest*
4588
4589 fi
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4592 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4593 if test $ac_cv_prog_gcc_traditional = yes; then
4594 CC="$CC -traditional"
4595 fi
4596 fi
4597
4598
4599 if test "$GCC" = "yes" ; then
4600 # Enable many gcc warnings by default...
4601 CFLAGS="$CFLAGS -Wall"
4602 # And disable the strict-aliasing optimization, since it breaks
4603 # our sockaddr-handling code in strange ways.
4604 CFLAGS="$CFLAGS -fno-strict-aliasing"
4605 fi
4606
4607 # OS X Lion started deprecating the system openssl. Let's just disable
4608 # all deprecation warnings on OS X.
4609 case "$host_os" in
4610
4611 darwin*)
4612 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4613 ;;
4614 esac
4615
4616 @%:@ Check whether --enable-gcc-warnings was given.
4617 if test "${enable_gcc_warnings+set}" = set; then :
4618 enableval=$enable_gcc_warnings;
4619 fi
4620
4621 @%:@ Check whether --enable-thread-support was given.
4622 if test "${enable_thread_support+set}" = set; then :
4623 enableval=$enable_thread_support;
4624 else
4625 enable_thread_support=yes
4626 fi
4627
4628 @%:@ Check whether --enable-malloc-replacement was given.
4629 if test "${enable_malloc_replacement+set}" = set; then :
4630 enableval=$enable_malloc_replacement;
4631 else
4632 enable_malloc_replacement=yes
4633 fi
4634
4635 @%:@ Check whether --enable-openssl was given.
4636 if test "${enable_openssl+set}" = set; then :
4637 enableval=$enable_openssl;
4638 else
4639 enable_openssl=yes
4640 fi
4641
4642 @%:@ Check whether --enable-debug-mode was given.
4643 if test "${enable_debug_mode+set}" = set; then :
4644 enableval=$enable_debug_mode;
4645 else
4646 enable_debug_mode=yes
4647 fi
4648
4649 @%:@ Check whether --enable-libevent-install was given.
4650 if test "${enable_libevent_install+set}" = set; then :
4651 enableval=$enable_libevent_install;
4652 else
4653 enable_libevent_install=yes
4654 fi
4655
4656 @%:@ Check whether --enable-libevent-regress was given.
4657 if test "${enable_libevent_regress+set}" = set; then :
4658 enableval=$enable_libevent_regress;
4659 else
4660 enable_libevent_regress=yes
4661 fi
4662
4663 @%:@ Check whether --enable-function-sections was given.
4664 if test "${enable_function_sections+set}" = set; then :
4665 enableval=$enable_function_sections;
4666 else
4667 enable_function_sections=no
4668 fi
4669
4670
4671
4672 case `pwd` in
4673 *\ * | *\ *)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4675 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4676 esac
4677
4678
4679
4680 macro_version='2.4.2'
4681 macro_revision='1.3337'
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695 ltmain="$ac_aux_dir/ltmain.sh"
4696
4697 # Backslashify metacharacters that are still active within
4698 # double-quoted strings.
4699 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4700
4701 # Same as above, but do not quote variable references.
4702 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4703
4704 # Sed substitution to delay expansion of an escaped shell variable in a
4705 # double_quote_subst'ed string.
4706 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4707
4708 # Sed substitution to delay expansion of an escaped single quote.
4709 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4710
4711 # Sed substitution to avoid accidental globbing in evaled expressions
4712 no_glob_subst='s/\*/\\\*/g'
4713
4714 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4719 $as_echo_n "checking how to print strings... " >&6; }
4720 # Test print first, because it will be a builtin if present.
4721 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4722 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4723 ECHO='print -r --'
4724 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4725 ECHO='printf %s\n'
4726 else
4727 # Use this function as a fallback that always works.
4728 func_fallback_echo ()
4729 {
4730 eval 'cat <<_LTECHO_EOF
4731 $1
4732 _LTECHO_EOF'
4733 }
4734 ECHO='func_fallback_echo'
4735 fi
4736
4737 # func_echo_all arg...
4738 # Invoke $ECHO with all args, space-separated.
4739 func_echo_all ()
4740 {
4741 $ECHO ""
4742 }
4743
4744 case "$ECHO" in
4745 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4746 $as_echo "printf" >&6; } ;;
4747 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4748 $as_echo "print -r" >&6; } ;;
4749 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4750 $as_echo "cat" >&6; } ;;
4751 esac
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4767 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4768 if ${ac_cv_path_SED+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4772 for ac_i in 1 2 3 4 5 6 7; do
4773 ac_script="$ac_script$as_nl$ac_script"
4774 done
4775 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4776 { ac_script=; unset ac_script;}
4777 if test -z "$SED"; then
4778 ac_path_SED_found=false
4779 # Loop through the user's path and test for each of PROGNAME-LIST
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_prog in sed gsed; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4788 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4789 # Check for GNU ac_path_SED and select it if it is found.
4790 # Check for GNU $ac_path_SED
4791 case `"$ac_path_SED" --version 2>&1` in
4792 *GNU*)
4793 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4794 *)
4795 ac_count=0
4796 $as_echo_n 0123456789 >"conftest.in"
4797 while :
4798 do
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 $as_echo '' >> "conftest.nl"
4803 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4805 as_fn_arith $ac_count + 1 && ac_count=$as_val
4806 if test $ac_count -gt ${ac_path_SED_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_SED="$ac_path_SED"
4809 ac_path_SED_max=$ac_count
4810 fi
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4813 done
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4815 esac
4816
4817 $ac_path_SED_found && break 3
4818 done
4819 done
4820 done
4821 IFS=$as_save_IFS
4822 if test -z "$ac_cv_path_SED"; then
4823 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4824 fi
4825 else
4826 ac_cv_path_SED=$SED
4827 fi
4828
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4831 $as_echo "$ac_cv_path_SED" >&6; }
4832 SED="$ac_cv_path_SED"
4833 rm -f conftest.sed
4834
4835 test -z "$SED" && SED=sed
4836 Xsed="$SED -e 1s/^X//"
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4849 $as_echo_n "checking for fgrep... " >&6; }
4850 if ${ac_cv_path_FGREP+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4854 then ac_cv_path_FGREP="$GREP -F"
4855 else
4856 if test -z "$FGREP"; then
4857 ac_path_FGREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_prog in fgrep; do
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4867 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4868 # Check for GNU ac_path_FGREP and select it if it is found.
4869 # Check for GNU $ac_path_FGREP
4870 case `"$ac_path_FGREP" --version 2>&1` in
4871 *GNU*)
4872 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4873 *)
4874 ac_count=0
4875 $as_echo_n 0123456789 >"conftest.in"
4876 while :
4877 do
4878 cat "conftest.in" "conftest.in" >"conftest.tmp"
4879 mv "conftest.tmp" "conftest.in"
4880 cp "conftest.in" "conftest.nl"
4881 $as_echo 'FGREP' >> "conftest.nl"
4882 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884 as_fn_arith $ac_count + 1 && ac_count=$as_val
4885 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_FGREP="$ac_path_FGREP"
4888 ac_path_FGREP_max=$ac_count
4889 fi
4890 # 10*(2^10) chars as input seems more than enough
4891 test $ac_count -gt 10 && break
4892 done
4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894 esac
4895
4896 $ac_path_FGREP_found && break 3
4897 done
4898 done
4899 done
4900 IFS=$as_save_IFS
4901 if test -z "$ac_cv_path_FGREP"; then
4902 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4903 fi
4904 else
4905 ac_cv_path_FGREP=$FGREP
4906 fi
4907
4908 fi
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4911 $as_echo "$ac_cv_path_FGREP" >&6; }
4912 FGREP="$ac_cv_path_FGREP"
4913
4914
4915 test -z "$GREP" && GREP=grep
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935 @%:@ Check whether --with-gnu-ld was given.
4936 if test "${with_gnu_ld+set}" = set; then :
4937 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4938 else
4939 with_gnu_ld=no
4940 fi
4941
4942 ac_prog=ld
4943 if test "$GCC" = yes; then
4944 # Check if gcc -print-prog-name=ld gives a path.
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4946 $as_echo_n "checking for ld used by $CC... " >&6; }
4947 case $host in
4948 *-*-mingw*)
4949 # gcc leaves a trailing carriage return which upsets mingw
4950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4951 *)
4952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4953 esac
4954 case $ac_prog in
4955 # Accept absolute paths.
4956 [\\/]* | ?:[\\/]*)
4957 re_direlt='/[^/][^/]*/\.\./'
4958 # Canonicalize the pathname of ld
4959 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4960 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4961 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4962 done
4963 test -z "$LD" && LD="$ac_prog"
4964 ;;
4965 "")
4966 # If it fails, then pretend we aren't using GCC.
4967 ac_prog=ld
4968 ;;
4969 *)
4970 # If it is relative, then search for the first ld in PATH.
4971 with_gnu_ld=unknown
4972 ;;
4973 esac
4974 elif test "$with_gnu_ld" = yes; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4976 $as_echo_n "checking for GNU ld... " >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4979 $as_echo_n "checking for non-GNU ld... " >&6; }
4980 fi
4981 if ${lt_cv_path_LD+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -z "$LD"; then
4985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4986 for ac_dir in $PATH; do
4987 IFS="$lt_save_ifs"
4988 test -z "$ac_dir" && ac_dir=.
4989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4990 lt_cv_path_LD="$ac_dir/$ac_prog"
4991 # Check to see if the program is GNU ld. I'd rather use --version,
4992 # but apparently some variants of GNU ld only accept -v.
4993 # Break only if it was the GNU/non-GNU ld that we prefer.
4994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4995 *GNU* | *'with BFD'*)
4996 test "$with_gnu_ld" != no && break
4997 ;;
4998 *)
4999 test "$with_gnu_ld" != yes && break
5000 ;;
5001 esac
5002 fi
5003 done
5004 IFS="$lt_save_ifs"
5005 else
5006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5007 fi
5008 fi
5009
5010 LD="$lt_cv_path_LD"
5011 if test -n "$LD"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5013 $as_echo "$LD" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 fi
5018 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5020 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5021 if ${lt_cv_prog_gnu_ld+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5025 case `$LD -v 2>&1 </dev/null` in
5026 *GNU* | *'with BFD'*)
5027 lt_cv_prog_gnu_ld=yes
5028 ;;
5029 *)
5030 lt_cv_prog_gnu_ld=no
5031 ;;
5032 esac
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5035 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5036 with_gnu_ld=$lt_cv_prog_gnu_ld
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5047 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5048 if ${lt_cv_path_NM+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$NM"; then
5052 # Let the user override the test.
5053 lt_cv_path_NM="$NM"
5054 else
5055 lt_nm_to_check="${ac_tool_prefix}nm"
5056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5057 lt_nm_to_check="$lt_nm_to_check nm"
5058 fi
5059 for lt_tmp_nm in $lt_nm_to_check; do
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 tmp_nm="$ac_dir/$lt_tmp_nm"
5065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 # Check to see if the nm accepts a BSD-compat flag.
5067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5068 # nm: unknown option "B" ignored
5069 # Tru64's nm complains that /dev/null is an invalid object file
5070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5071 */dev/null* | *'Invalid file or object type'*)
5072 lt_cv_path_NM="$tmp_nm -B"
5073 break
5074 ;;
5075 *)
5076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5077 */dev/null*)
5078 lt_cv_path_NM="$tmp_nm -p"
5079 break
5080 ;;
5081 *)
5082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5083 continue # so that we can try to find one that supports BSD flags
5084 ;;
5085 esac
5086 ;;
5087 esac
5088 fi
5089 done
5090 IFS="$lt_save_ifs"
5091 done
5092 : ${lt_cv_path_NM=no}
5093 fi
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5096 $as_echo "$lt_cv_path_NM" >&6; }
5097 if test "$lt_cv_path_NM" != "no"; then
5098 NM="$lt_cv_path_NM"
5099 else
5100 # Didn't find any BSD compatible name lister, look for dumpbin.
5101 if test -n "$DUMPBIN"; then :
5102 # Let the user override the test.
5103 else
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in dumpbin "link -dump"
5106 do
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_DUMPBIN+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$DUMPBIN"; then
5115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 DUMPBIN=$ac_cv_prog_DUMPBIN
5135 if test -n "$DUMPBIN"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5137 $as_echo "$DUMPBIN" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144 test -n "$DUMPBIN" && break
5145 done
5146 fi
5147 if test -z "$DUMPBIN"; then
5148 ac_ct_DUMPBIN=$DUMPBIN
5149 for ac_prog in dumpbin "link -dump"
5150 do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ac_ct_DUMPBIN"; then
5159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5179 if test -n "$ac_ct_DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5181 $as_echo "$ac_ct_DUMPBIN" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 test -n "$ac_ct_DUMPBIN" && break
5189 done
5190
5191 if test "x$ac_ct_DUMPBIN" = x; then
5192 DUMPBIN=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200 DUMPBIN=$ac_ct_DUMPBIN
5201 fi
5202 fi
5203
5204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5205 *COFF*)
5206 DUMPBIN="$DUMPBIN -symbols"
5207 ;;
5208 *)
5209 DUMPBIN=:
5210 ;;
5211 esac
5212 fi
5213
5214 if test "$DUMPBIN" != ":"; then
5215 NM="$DUMPBIN"
5216 fi
5217 fi
5218 test -z "$NM" && NM=nm
5219
5220
5221
5222
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5226 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5227 if ${lt_cv_nm_interface+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 lt_cv_nm_interface="BSD nm"
5231 echo "int some_variable = 0;" > conftest.$ac_ext
5232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5233 (eval "$ac_compile" 2>conftest.err)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5239 cat conftest.out >&5
5240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5241 lt_cv_nm_interface="MS dumpbin"
5242 fi
5243 rm -f conftest*
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5246 $as_echo "$lt_cv_nm_interface" >&6; }
5247
5248 # find the maximum length of command line arguments
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5251 if ${lt_cv_sys_max_cmd_len+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 i=0
5255 teststring="ABCD"
5256
5257 case $build_os in
5258 msdosdjgpp*)
5259 # On DJGPP, this test can blow up pretty badly due to problems in libc
5260 # (any single argument exceeding 2000 bytes causes a buffer overrun
5261 # during glob expansion). Even if it were fixed, the result of this
5262 # check would be larger than it should be.
5263 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5264 ;;
5265
5266 gnu*)
5267 # Under GNU Hurd, this test is not required because there is
5268 # no limit to the length of command line arguments.
5269 # Libtool will interpret -1 as no limit whatsoever
5270 lt_cv_sys_max_cmd_len=-1;
5271 ;;
5272
5273 cygwin* | mingw* | cegcc*)
5274 # On Win9x/ME, this test blows up -- it succeeds, but takes
5275 # about 5 minutes as the teststring grows exponentially.
5276 # Worse, since 9x/ME are not pre-emptively multitasking,
5277 # you end up with a "frozen" computer, even though with patience
5278 # the test eventually succeeds (with a max line length of 256k).
5279 # Instead, let's just punt: use the minimum linelength reported by
5280 # all of the supported platforms: 8192 (on NT/2K/XP).
5281 lt_cv_sys_max_cmd_len=8192;
5282 ;;
5283
5284 mint*)
5285 # On MiNT this can take a long time and run out of memory.
5286 lt_cv_sys_max_cmd_len=8192;
5287 ;;
5288
5289 amigaos*)
5290 # On AmigaOS with pdksh, this test takes hours, literally.
5291 # So we just punt and use a minimum line length of 8192.
5292 lt_cv_sys_max_cmd_len=8192;
5293 ;;
5294
5295 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5296 # This has been around since 386BSD, at least. Likely further.
5297 if test -x /sbin/sysctl; then
5298 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5299 elif test -x /usr/sbin/sysctl; then
5300 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5301 else
5302 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5303 fi
5304 # And add a safety zone
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5307 ;;
5308
5309 interix*)
5310 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5311 lt_cv_sys_max_cmd_len=196608
5312 ;;
5313
5314 os2*)
5315 # The test takes a long time on OS/2.
5316 lt_cv_sys_max_cmd_len=8192
5317 ;;
5318
5319 osf*)
5320 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5321 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5322 # nice to cause kernel panics so lets avoid the loop below.
5323 # First set a reasonable default.
5324 lt_cv_sys_max_cmd_len=16384
5325 #
5326 if test -x /sbin/sysconfig; then
5327 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5328 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5329 esac
5330 fi
5331 ;;
5332 sco3.2v5*)
5333 lt_cv_sys_max_cmd_len=102400
5334 ;;
5335 sysv5* | sco5v6* | sysv4.2uw2*)
5336 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5337 if test -n "$kargmax"; then
5338 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5339 else
5340 lt_cv_sys_max_cmd_len=32768
5341 fi
5342 ;;
5343 *)
5344 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5345 if test -n "$lt_cv_sys_max_cmd_len"; then
5346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5348 else
5349 # Make teststring a little bigger before we do anything with it.
5350 # a 1K string should be a reasonable start.
5351 for i in 1 2 3 4 5 6 7 8 ; do
5352 teststring=$teststring$teststring
5353 done
5354 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5355 # If test is not a shell built-in, we'll probably end up computing a
5356 # maximum length that is only half of the actual maximum length, but
5357 # we can't tell.
5358 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5359 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5360 test $i != 17 # 1/2 MB should be enough
5361 do
5362 i=`expr $i + 1`
5363 teststring=$teststring$teststring
5364 done
5365 # Only check the string length outside the loop.
5366 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5367 teststring=
5368 # Add a significant safety factor because C++ compilers can tack on
5369 # massive amounts of additional arguments before passing them to the
5370 # linker. It appears as though 1/2 is a usable value.
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5372 fi
5373 ;;
5374 esac
5375
5376 fi
5377
5378 if test -n $lt_cv_sys_max_cmd_len ; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5380 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5383 $as_echo "none" >&6; }
5384 fi
5385 max_cmd_len=$lt_cv_sys_max_cmd_len
5386
5387
5388
5389
5390
5391
5392 : ${CP="cp -f"}
5393 : ${MV="mv -f"}
5394 : ${RM="rm -f"}
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5397 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5398 # Try some XSI features
5399 xsi_shell=no
5400 ( _lt_dummy="a/b/c"
5401 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5402 = c,a/b,b/c, \
5403 && eval 'test $(( 1 + 1 )) -eq 2 \
5404 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5405 && xsi_shell=yes
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5407 $as_echo "$xsi_shell" >&6; }
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5411 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5412 lt_shell_append=no
5413 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5414 >/dev/null 2>&1 \
5415 && lt_shell_append=yes
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5417 $as_echo "$lt_shell_append" >&6; }
5418
5419
5420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5421 lt_unset=unset
5422 else
5423 lt_unset=false
5424 fi
5425
5426
5427
5428
5429
5430 # test EBCDIC or ASCII
5431 case `echo X|tr X '\101'` in
5432 A) # ASCII based system
5433 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5434 lt_SP2NL='tr \040 \012'
5435 lt_NL2SP='tr \015\012 \040\040'
5436 ;;
5437 *) # EBCDIC based system
5438 lt_SP2NL='tr \100 \n'
5439 lt_NL2SP='tr \r\n \100\100'
5440 ;;
5441 esac
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5452 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5453 if ${lt_cv_to_host_file_cmd+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 case $host in
5457 *-*-mingw* )
5458 case $build in
5459 *-*-mingw* ) # actually msys
5460 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5461 ;;
5462 *-*-cygwin* )
5463 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5464 ;;
5465 * ) # otherwise, assume *nix
5466 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5467 ;;
5468 esac
5469 ;;
5470 *-*-cygwin* )
5471 case $build in
5472 *-*-mingw* ) # actually msys
5473 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5474 ;;
5475 *-*-cygwin* )
5476 lt_cv_to_host_file_cmd=func_convert_file_noop
5477 ;;
5478 * ) # otherwise, assume *nix
5479 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5480 ;;
5481 esac
5482 ;;
5483 * ) # unhandled hosts (and "normal" native builds)
5484 lt_cv_to_host_file_cmd=func_convert_file_noop
5485 ;;
5486 esac
5487
5488 fi
5489
5490 to_host_file_cmd=$lt_cv_to_host_file_cmd
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5492 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5499 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5500 if ${lt_cv_to_tool_file_cmd+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 #assume ordinary cross tools, or native build.
5504 lt_cv_to_tool_file_cmd=func_convert_file_noop
5505 case $host in
5506 *-*-mingw* )
5507 case $build in
5508 *-*-mingw* ) # actually msys
5509 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5510 ;;
5511 esac
5512 ;;
5513 esac
5514
5515 fi
5516
5517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5519 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5520
5521
5522
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5526 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5527 if ${lt_cv_ld_reload_flag+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 lt_cv_ld_reload_flag='-r'
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5533 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5534 reload_flag=$lt_cv_ld_reload_flag
5535 case $reload_flag in
5536 "" | " "*) ;;
5537 *) reload_flag=" $reload_flag" ;;
5538 esac
5539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5540 case $host_os in
5541 cygwin* | mingw* | pw32* | cegcc*)
5542 if test "$GCC" != yes; then
5543 reload_cmds=false
5544 fi
5545 ;;
5546 darwin*)
5547 if test "$GCC" = yes; then
5548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5549 else
5550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5551 fi
5552 ;;
5553 esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$OBJDUMP"; then
5572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 OBJDUMP=$ac_cv_prog_OBJDUMP
5592 if test -n "$OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5594 $as_echo "$OBJDUMP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 fi
5602 if test -z "$ac_cv_prog_OBJDUMP"; then
5603 ac_ct_OBJDUMP=$OBJDUMP
5604 # Extract the first word of "objdump", so it can be a program name with args.
5605 set dummy objdump; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_OBJDUMP"; then
5612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5634 $as_echo "$ac_ct_OBJDUMP" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640 if test "x$ac_ct_OBJDUMP" = x; then
5641 OBJDUMP="false"
5642 else
5643 case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649 OBJDUMP=$ac_ct_OBJDUMP
5650 fi
5651 else
5652 OBJDUMP="$ac_cv_prog_OBJDUMP"
5653 fi
5654
5655 test -z "$OBJDUMP" && OBJDUMP=objdump
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5666 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5667 if ${lt_cv_deplibs_check_method+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 lt_cv_file_magic_cmd='$MAGIC_CMD'
5671 lt_cv_file_magic_test_file=
5672 lt_cv_deplibs_check_method='unknown'
5673 # Need to set the preceding variable on all platforms that support
5674 # interlibrary dependencies.
5675 # 'none' -- dependencies not supported.
5676 # `unknown' -- same as none, but documents that we really don't know.
5677 # 'pass_all' -- all dependencies passed with no checks.
5678 # 'test_compile' -- check by making test program.
5679 # 'file_magic [[regex]]' -- check by looking for files in library path
5680 # which responds to the $file_magic_cmd with a given extended regex.
5681 # If you have `file' or equivalent on your system and you're not sure
5682 # whether `pass_all' will *always* work, you probably want this one.
5683
5684 case $host_os in
5685 aix[4-9]*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 beos*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 bsdi[45]*)
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5695 lt_cv_file_magic_cmd='/usr/bin/file -L'
5696 lt_cv_file_magic_test_file=/shlib/libc.so
5697 ;;
5698
5699 cygwin*)
5700 # func_win32_libid is a shell function defined in ltmain.sh
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5703 ;;
5704
5705 mingw* | pw32*)
5706 # Base MSYS/MinGW do not provide the 'file' command needed by
5707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5708 # unless we find 'file', for example because we are cross-compiling.
5709 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5710 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5713 else
5714 # Keep this pattern in sync with the one in func_win32_libid.
5715 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5716 lt_cv_file_magic_cmd='$OBJDUMP -f'
5717 fi
5718 ;;
5719
5720 cegcc*)
5721 # use the weaker test based on 'objdump'. See mingw*.
5722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5723 lt_cv_file_magic_cmd='$OBJDUMP -f'
5724 ;;
5725
5726 darwin* | rhapsody*)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
5729
5730 freebsd* | dragonfly*)
5731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5732 case $host_cpu in
5733 i*86 )
5734 # Not sure whether the presence of OpenBSD here was a mistake.
5735 # Let's accept both of them until this is cleared up.
5736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5737 lt_cv_file_magic_cmd=/usr/bin/file
5738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5739 ;;
5740 esac
5741 else
5742 lt_cv_deplibs_check_method=pass_all
5743 fi
5744 ;;
5745
5746 gnu*)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
5750 haiku*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 hpux10.20* | hpux11*)
5755 lt_cv_file_magic_cmd=/usr/bin/file
5756 case $host_cpu in
5757 ia64*)
5758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5759 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5760 ;;
5761 hppa*64*)
5762 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]'
5763 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5764 ;;
5765 *)
5766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5767 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5768 ;;
5769 esac
5770 ;;
5771
5772 interix[3-9]*)
5773 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5775 ;;
5776
5777 irix5* | irix6* | nonstopux*)
5778 case $LD in
5779 *-32|*"-32 ") libmagic=32-bit;;
5780 *-n32|*"-n32 ") libmagic=N32;;
5781 *-64|*"-64 ") libmagic=64-bit;;
5782 *) libmagic=never-match;;
5783 esac
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 # This must be glibc/ELF.
5788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 netbsd* | netbsdelf*-gnu)
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5795 else
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5797 fi
5798 ;;
5799
5800 newos6*)
5801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5804 ;;
5805
5806 *nto* | *qnx*)
5807 lt_cv_deplibs_check_method=pass_all
5808 ;;
5809
5810 openbsd*)
5811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5813 else
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5815 fi
5816 ;;
5817
5818 osf3* | osf4* | osf5*)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821
5822 rdos*)
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
5825
5826 solaris*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
5830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834 sysv4 | sysv4.3*)
5835 case $host_vendor in
5836 motorola)
5837 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]'
5838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5839 ;;
5840 ncr)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843 sequent)
5844 lt_cv_file_magic_cmd='/bin/file'
5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5846 ;;
5847 sni)
5848 lt_cv_file_magic_cmd='/bin/file'
5849 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5850 lt_cv_file_magic_test_file=/lib/libc.so
5851 ;;
5852 siemens)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855 pc)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858 esac
5859 ;;
5860
5861 tpf*)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 esac
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5868 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5869
5870 file_magic_glob=
5871 want_nocaseglob=no
5872 if test "$build" = "$host"; then
5873 case $host_os in
5874 mingw* | pw32*)
5875 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5876 want_nocaseglob=yes
5877 else
5878 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5879 fi
5880 ;;
5881 esac
5882 fi
5883
5884 file_magic_cmd=$lt_cv_file_magic_cmd
5885 deplibs_check_method=$lt_cv_deplibs_check_method
5886 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_prog_DLLTOOL+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if test -n "$DLLTOOL"; then
5918 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 DLLTOOL=$ac_cv_prog_DLLTOOL
5938 if test -n "$DLLTOOL"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5940 $as_echo "$DLLTOOL" >&6; }
5941 else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947 fi
5948 if test -z "$ac_cv_prog_DLLTOOL"; then
5949 ac_ct_DLLTOOL=$DLLTOOL
5950 # Extract the first word of "dlltool", so it can be a program name with args.
5951 set dummy dlltool; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$ac_ct_DLLTOOL"; then
5958 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5978 if test -n "$ac_ct_DLLTOOL"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5980 $as_echo "$ac_ct_DLLTOOL" >&6; }
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986 if test "x$ac_ct_DLLTOOL" = x; then
5987 DLLTOOL="false"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 DLLTOOL=$ac_ct_DLLTOOL
5996 fi
5997 else
5998 DLLTOOL="$ac_cv_prog_DLLTOOL"
5999 fi
6000
6001 test -z "$DLLTOOL" && DLLTOOL=dlltool
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6013 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6014 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 lt_cv_sharedlib_from_linklib_cmd='unknown'
6018
6019 case $host_os in
6020 cygwin* | mingw* | pw32* | cegcc*)
6021 # two different shell functions defined in ltmain.sh
6022 # decide which to use based on capabilities of $DLLTOOL
6023 case `$DLLTOOL --help 2>&1` in
6024 *--identify-strict*)
6025 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6026 ;;
6027 *)
6028 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6029 ;;
6030 esac
6031 ;;
6032 *)
6033 # fallback: assume linklib IS sharedlib
6034 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6035 ;;
6036 esac
6037
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6040 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6041 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6042 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6043
6044
6045
6046
6047
6048
6049
6050 if test -n "$ac_tool_prefix"; then
6051 for ac_prog in ar
6052 do
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_AR+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$AR"; then
6061 ac_cv_prog_AR="$AR" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 AR=$ac_cv_prog_AR
6081 if test -n "$AR"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6083 $as_echo "$AR" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090 test -n "$AR" && break
6091 done
6092 fi
6093 if test -z "$AR"; then
6094 ac_ct_AR=$AR
6095 for ac_prog in ar
6096 do
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -n "$ac_ct_AR"; then
6105 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_ac_ct_AR="$ac_prog"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6125 if test -n "$ac_ct_AR"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6127 $as_echo "$ac_ct_AR" >&6; }
6128 else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 test -n "$ac_ct_AR" && break
6135 done
6136
6137 if test "x$ac_ct_AR" = x; then
6138 AR="false"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6145 esac
6146 AR=$ac_ct_AR
6147 fi
6148 fi
6149
6150 : ${AR=ar}
6151 : ${AR_FLAGS=cru}
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6164 $as_echo_n "checking for archiver @FILE support... " >&6; }
6165 if ${lt_cv_ar_at_file+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 lt_cv_ar_at_file=no
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171
6172 int
6173 main ()
6174 {
6175
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 echo conftest.$ac_objext > conftest.lst
6182 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6184 (eval $lt_ar_try) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; }
6188 if test "$ac_status" -eq 0; then
6189 # Ensure the archiver fails upon bogus file names.
6190 rm -f conftest.$ac_objext libconftest.a
6191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6192 (eval $lt_ar_try) 2>&5
6193 ac_status=$?
6194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6195 test $ac_status = 0; }
6196 if test "$ac_status" -ne 0; then
6197 lt_cv_ar_at_file=@
6198 fi
6199 fi
6200 rm -f conftest.* libconftest.a
6201
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6207 $as_echo "$lt_cv_ar_at_file" >&6; }
6208
6209 if test "x$lt_cv_ar_at_file" = xno; then
6210 archiver_list_spec=
6211 else
6212 archiver_list_spec=$lt_cv_ar_at_file
6213 fi
6214
6215
6216
6217
6218
6219
6220
6221 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}strip; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_STRIP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$STRIP"; then
6230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 STRIP=$ac_cv_prog_STRIP
6250 if test -n "$STRIP"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6252 $as_echo "$STRIP" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$ac_cv_prog_STRIP"; then
6261 ac_ct_STRIP=$STRIP
6262 # Extract the first word of "strip", so it can be a program name with args.
6263 set dummy strip; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$ac_ct_STRIP"; then
6270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_STRIP="strip"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6290 if test -n "$ac_ct_STRIP"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6292 $as_echo "$ac_ct_STRIP" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298 if test "x$ac_ct_STRIP" = x; then
6299 STRIP=":"
6300 else
6301 case $cross_compiling:$ac_tool_warned in
6302 yes:)
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6306 esac
6307 STRIP=$ac_ct_STRIP
6308 fi
6309 else
6310 STRIP="$ac_cv_prog_STRIP"
6311 fi
6312
6313 test -z "$STRIP" && STRIP=:
6314
6315
6316
6317
6318
6319
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_RANLIB+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$RANLIB"; then
6329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 RANLIB=$ac_cv_prog_RANLIB
6349 if test -n "$RANLIB"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6351 $as_echo "$RANLIB" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358 fi
6359 if test -z "$ac_cv_prog_RANLIB"; then
6360 ac_ct_RANLIB=$RANLIB
6361 # Extract the first word of "ranlib", so it can be a program name with args.
6362 set dummy ranlib; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$ac_ct_RANLIB"; then
6369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_RANLIB="ranlib"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6389 if test -n "$ac_ct_RANLIB"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6391 $as_echo "$ac_ct_RANLIB" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397 if test "x$ac_ct_RANLIB" = x; then
6398 RANLIB=":"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406 RANLIB=$ac_ct_RANLIB
6407 fi
6408 else
6409 RANLIB="$ac_cv_prog_RANLIB"
6410 fi
6411
6412 test -z "$RANLIB" && RANLIB=:
6413
6414
6415
6416
6417
6418
6419 # Determine commands to create old-style static archives.
6420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6421 old_postinstall_cmds='chmod 644 $oldlib'
6422 old_postuninstall_cmds=
6423
6424 if test -n "$RANLIB"; then
6425 case $host_os in
6426 openbsd*)
6427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6428 ;;
6429 *)
6430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6431 ;;
6432 esac
6433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6434 fi
6435
6436 case $host_os in
6437 darwin*)
6438 lock_old_archive_extraction=yes ;;
6439 *)
6440 lock_old_archive_extraction=no ;;
6441 esac
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 # If no C compiler was specified, use CC.
6482 LTCC=${LTCC-"$CC"}
6483
6484 # If no C compiler flags were specified, use CFLAGS.
6485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6486
6487 # Allow CC to be a program name with arguments.
6488 compiler=$CC
6489
6490
6491 # Check for command to grab the raw symbol name followed by C symbol from nm.
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6493 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6494 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497
6498 # These are sane defaults that work on at least a few old systems.
6499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6500
6501 # Character class describing NM global symbol codes.
6502 symcode='[BCDEGRST]'
6503
6504 # Regexp to match symbols that can be accessed directly from C.
6505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6506
6507 # Define system-specific variables.
6508 case $host_os in
6509 aix*)
6510 symcode='[BCDT]'
6511 ;;
6512 cygwin* | mingw* | pw32* | cegcc*)
6513 symcode='[ABCDGISTW]'
6514 ;;
6515 hpux*)
6516 if test "$host_cpu" = ia64; then
6517 symcode='[ABCDEGRST]'
6518 fi
6519 ;;
6520 irix* | nonstopux*)
6521 symcode='[BCDEGRST]'
6522 ;;
6523 osf*)
6524 symcode='[BCDEGQRST]'
6525 ;;
6526 solaris*)
6527 symcode='[BDRT]'
6528 ;;
6529 sco3.2v5*)
6530 symcode='[DT]'
6531 ;;
6532 sysv4.2uw2*)
6533 symcode='[DT]'
6534 ;;
6535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6536 symcode='[ABDT]'
6537 ;;
6538 sysv4)
6539 symcode='[DFNSTU]'
6540 ;;
6541 esac
6542
6543 # If we're using GNU nm, then use its standard symbol codes.
6544 case `$NM -V 2>&1` in
6545 *GNU* | *'with BFD'*)
6546 symcode='[ABCDGIRSTW]' ;;
6547 esac
6548
6549 # Transform an extracted symbol line into a proper C declaration.
6550 # Some systems (esp. on ia64) link data and code symbols differently,
6551 # so use this general approach.
6552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6553
6554 # Transform an extracted symbol line into symbol name and symbol address
6555 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6556 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'"
6557
6558 # Handle CRLF in mingw tool chain
6559 opt_cr=
6560 case $build_os in
6561 mingw*)
6562 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6563 ;;
6564 esac
6565
6566 # Try without a prefix underscore, then with it.
6567 for ac_symprfx in "" "_"; do
6568
6569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6570 symxfrm="\\1 $ac_symprfx\\2 \\2"
6571
6572 # Write the raw and C identifiers.
6573 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6574 # Fake it for dumpbin and say T for any non-static function
6575 # and D for any global variable.
6576 # Also find C++ and __fastcall symbols from MSVC++,
6577 # which start with @ or ?.
6578 lt_cv_sys_global_symbol_pipe="$AWK '"\
6579 " {last_section=section; section=\$ 3};"\
6580 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6581 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6582 " \$ 0!~/External *\|/{next};"\
6583 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6584 " {if(hide[section]) next};"\
6585 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6586 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6587 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6588 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6589 " ' prfx=^$ac_symprfx"
6590 else
6591 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6592 fi
6593 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6594
6595 # Check to see that the pipe works correctly.
6596 pipe_works=no
6597
6598 rm -f conftest*
6599 cat > conftest.$ac_ext <<_LT_EOF
6600 #ifdef __cplusplus
6601 extern "C" {
6602 #endif
6603 char nm_test_var;
6604 void nm_test_func(void);
6605 void nm_test_func(void){}
6606 #ifdef __cplusplus
6607 }
6608 #endif
6609 int main(){nm_test_var='a';nm_test_func();return(0);}
6610 _LT_EOF
6611
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 # Now try to grab the symbols.
6618 nlist=conftest.nm
6619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6620 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6621 ac_status=$?
6622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623 test $ac_status = 0; } && test -s "$nlist"; then
6624 # Try sorting and uniquifying the output.
6625 if sort "$nlist" | uniq > "$nlist"T; then
6626 mv -f "$nlist"T "$nlist"
6627 else
6628 rm -f "$nlist"T
6629 fi
6630
6631 # Make sure that we snagged all the symbols we need.
6632 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6633 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6634 cat <<_LT_EOF > conftest.$ac_ext
6635 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6636 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6637 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6638 relocations are performed -- see ld's documentation on pseudo-relocs. */
6639 # define LT@&t@_DLSYM_CONST
6640 #elif defined(__osf__)
6641 /* This system does not cope well with relocations in const data. */
6642 # define LT@&t@_DLSYM_CONST
6643 #else
6644 # define LT@&t@_DLSYM_CONST const
6645 #endif
6646
6647 #ifdef __cplusplus
6648 extern "C" {
6649 #endif
6650
6651 _LT_EOF
6652 # Now generate the symbol file.
6653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6654
6655 cat <<_LT_EOF >> conftest.$ac_ext
6656
6657 /* The mapping between symbol names and symbols. */
6658 LT@&t@_DLSYM_CONST struct {
6659 const char *name;
6660 void *address;
6661 }
6662 lt__PROGRAM__LTX_preloaded_symbols[] =
6663 {
6664 { "@PROGRAM@", (void *) 0 },
6665 _LT_EOF
6666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6667 cat <<\_LT_EOF >> conftest.$ac_ext
6668 {0, (void *) 0}
6669 };
6670
6671 /* This works around a problem in FreeBSD linker */
6672 #ifdef FREEBSD_WORKAROUND
6673 static const void *lt_preloaded_setup() {
6674 return lt__PROGRAM__LTX_preloaded_symbols;
6675 }
6676 #endif
6677
6678 #ifdef __cplusplus
6679 }
6680 #endif
6681 _LT_EOF
6682 # Now try linking the two files.
6683 mv conftest.$ac_objext conftstm.$ac_objext
6684 lt_globsym_save_LIBS=$LIBS
6685 lt_globsym_save_CFLAGS=$CFLAGS
6686 LIBS="conftstm.$ac_objext"
6687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6689 (eval $ac_link) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6693 pipe_works=yes
6694 fi
6695 LIBS=$lt_globsym_save_LIBS
6696 CFLAGS=$lt_globsym_save_CFLAGS
6697 else
6698 echo "cannot find nm_test_func in $nlist" >&5
6699 fi
6700 else
6701 echo "cannot find nm_test_var in $nlist" >&5
6702 fi
6703 else
6704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6705 fi
6706 else
6707 echo "$progname: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6709 fi
6710 rm -rf conftest* conftst*
6711
6712 # Do not use the global_symbol_pipe unless it works.
6713 if test "$pipe_works" = yes; then
6714 break
6715 else
6716 lt_cv_sys_global_symbol_pipe=
6717 fi
6718 done
6719
6720 fi
6721
6722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6723 lt_cv_sys_global_symbol_to_cdecl=
6724 fi
6725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6727 $as_echo "failed" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6730 $as_echo "ok" >&6; }
6731 fi
6732
6733 # Response file support.
6734 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6735 nm_file_list_spec='@'
6736 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6737 nm_file_list_spec='@'
6738 fi
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6767 $as_echo_n "checking for sysroot... " >&6; }
6768
6769 @%:@ Check whether --with-sysroot was given.
6770 if test "${with_sysroot+set}" = set; then :
6771 withval=$with_sysroot;
6772 else
6773 with_sysroot=no
6774 fi
6775
6776
6777 lt_sysroot=
6778 case ${with_sysroot} in #(
6779 yes)
6780 if test "$GCC" = yes; then
6781 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6782 fi
6783 ;; #(
6784 /*)
6785 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6786 ;; #(
6787 no|'')
6788 ;; #(
6789 *)
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6791 $as_echo "${with_sysroot}" >&6; }
6792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6793 ;;
6794 esac
6795
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6797 $as_echo "${lt_sysroot:-no}" >&6; }
6798
6799
6800
6801
6802
6803 @%:@ Check whether --enable-libtool-lock was given.
6804 if test "${enable_libtool_lock+set}" = set; then :
6805 enableval=$enable_libtool_lock;
6806 fi
6807
6808 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6809
6810 # Some flags need to be propagated to the compiler or linker for good
6811 # libtool support.
6812 case $host in
6813 ia64-*-hpux*)
6814 # Find out which ABI we are using.
6815 echo 'int i;' > conftest.$ac_ext
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817 (eval $ac_compile) 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }; then
6821 case `/usr/bin/file conftest.$ac_objext` in
6822 *ELF-32*)
6823 HPUX_IA64_MODE="32"
6824 ;;
6825 *ELF-64*)
6826 HPUX_IA64_MODE="64"
6827 ;;
6828 esac
6829 fi
6830 rm -rf conftest*
6831 ;;
6832 *-*-irix6*)
6833 # Find out which ABI we are using.
6834 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6836 (eval $ac_compile) 2>&5
6837 ac_status=$?
6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }; then
6840 if test "$lt_cv_prog_gnu_ld" = yes; then
6841 case `/usr/bin/file conftest.$ac_objext` in
6842 *32-bit*)
6843 LD="${LD-ld} -melf32bsmip"
6844 ;;
6845 *N32*)
6846 LD="${LD-ld} -melf32bmipn32"
6847 ;;
6848 *64-bit*)
6849 LD="${LD-ld} -melf64bmip"
6850 ;;
6851 esac
6852 else
6853 case `/usr/bin/file conftest.$ac_objext` in
6854 *32-bit*)
6855 LD="${LD-ld} -32"
6856 ;;
6857 *N32*)
6858 LD="${LD-ld} -n32"
6859 ;;
6860 *64-bit*)
6861 LD="${LD-ld} -64"
6862 ;;
6863 esac
6864 fi
6865 fi
6866 rm -rf conftest*
6867 ;;
6868
6869 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6870 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6871 # Find out which ABI we are using.
6872 echo 'int i;' > conftest.$ac_ext
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6875 ac_status=$?
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 case `/usr/bin/file conftest.o` in
6879 *32-bit*)
6880 case $host in
6881 x86_64-*kfreebsd*-gnu)
6882 LD="${LD-ld} -m elf_i386_fbsd"
6883 ;;
6884 x86_64-*linux*)
6885 LD="${LD-ld} -m elf_i386"
6886 ;;
6887 ppc64-*linux*|powerpc64-*linux*)
6888 LD="${LD-ld} -m elf32ppclinux"
6889 ;;
6890 s390x-*linux*)
6891 LD="${LD-ld} -m elf_s390"
6892 ;;
6893 sparc64-*linux*)
6894 LD="${LD-ld} -m elf32_sparc"
6895 ;;
6896 esac
6897 ;;
6898 *64-bit*)
6899 case $host in
6900 x86_64-*kfreebsd*-gnu)
6901 LD="${LD-ld} -m elf_x86_64_fbsd"
6902 ;;
6903 x86_64-*linux*)
6904 LD="${LD-ld} -m elf_x86_64"
6905 ;;
6906 ppc*-*linux*|powerpc*-*linux*)
6907 LD="${LD-ld} -m elf64ppc"
6908 ;;
6909 s390*-*linux*|s390*-*tpf*)
6910 LD="${LD-ld} -m elf64_s390"
6911 ;;
6912 sparc*-*linux*)
6913 LD="${LD-ld} -m elf64_sparc"
6914 ;;
6915 esac
6916 ;;
6917 esac
6918 fi
6919 rm -rf conftest*
6920 ;;
6921
6922 *-*-sco3.2v5*)
6923 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6924 SAVE_CFLAGS="$CFLAGS"
6925 CFLAGS="$CFLAGS -belf"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6927 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6928 if ${lt_cv_cc_needs_belf+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 ac_ext=c
6932 ac_cpp='$CPP $CPPFLAGS'
6933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6936
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939
6940 int
6941 main ()
6942 {
6943
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 if ac_fn_c_try_link "$LINENO"; then :
6949 lt_cv_cc_needs_belf=yes
6950 else
6951 lt_cv_cc_needs_belf=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext \
6954 conftest$ac_exeext conftest.$ac_ext
6955 ac_ext=c
6956 ac_cpp='$CPP $CPPFLAGS'
6957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961 fi
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6963 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6964 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6965 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6966 CFLAGS="$SAVE_CFLAGS"
6967 fi
6968 ;;
6969 *-*solaris*)
6970 # Find out which ABI we are using.
6971 echo 'int i;' > conftest.$ac_ext
6972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973 (eval $ac_compile) 2>&5
6974 ac_status=$?
6975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976 test $ac_status = 0; }; then
6977 case `/usr/bin/file conftest.o` in
6978 *64-bit*)
6979 case $lt_cv_prog_gnu_ld in
6980 yes*)
6981 case $host in
6982 i?86-*-solaris*)
6983 LD="${LD-ld} -m elf_x86_64"
6984 ;;
6985 sparc*-*-solaris*)
6986 LD="${LD-ld} -m elf64_sparc"
6987 ;;
6988 esac
6989 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6990 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6991 LD="${LD-ld}_sol2"
6992 fi
6993 ;;
6994 *)
6995 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6996 LD="${LD-ld} -64"
6997 fi
6998 ;;
6999 esac
7000 ;;
7001 esac
7002 fi
7003 rm -rf conftest*
7004 ;;
7005 esac
7006
7007 need_locks="$enable_libtool_lock"
7008
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}mt; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$MANIFEST_TOOL"; then
7018 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031 done
7032 done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7038 if test -n "$MANIFEST_TOOL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7040 $as_echo "$MANIFEST_TOOL" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046
7047 fi
7048 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7049 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7050 # Extract the first word of "mt", so it can be a program name with args.
7051 set dummy mt; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$ac_ct_MANIFEST_TOOL"; then
7058 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7078 if test -n "$ac_ct_MANIFEST_TOOL"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7080 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7087 MANIFEST_TOOL=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7096 fi
7097 else
7098 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7099 fi
7100
7101 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7103 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7104 if ${lt_cv_path_mainfest_tool+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 lt_cv_path_mainfest_tool=no
7108 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7109 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7110 cat conftest.err >&5
7111 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7112 lt_cv_path_mainfest_tool=yes
7113 fi
7114 rm -f conftest*
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7117 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7118 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7119 MANIFEST_TOOL=:
7120 fi
7121
7122
7123
7124
7125
7126
7127 case $host_os in
7128 rhapsody* | darwin*)
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$DSYMUTIL"; then
7138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7147 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7158 if test -n "$DSYMUTIL"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7160 $as_echo "$DSYMUTIL" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166
7167 fi
7168 if test -z "$ac_cv_prog_DSYMUTIL"; then
7169 ac_ct_DSYMUTIL=$DSYMUTIL
7170 # Extract the first word of "dsymutil", so it can be a program name with args.
7171 set dummy dsymutil; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test -n "$ac_ct_DSYMUTIL"; then
7178 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7198 if test -n "$ac_ct_DSYMUTIL"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7200 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206 if test "x$ac_ct_DSYMUTIL" = x; then
7207 DSYMUTIL=":"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213 ac_tool_warned=yes ;;
7214 esac
7215 DSYMUTIL=$ac_ct_DSYMUTIL
7216 fi
7217 else
7218 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7219 fi
7220
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_NMEDIT+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$NMEDIT"; then
7230 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 NMEDIT=$ac_cv_prog_NMEDIT
7250 if test -n "$NMEDIT"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7252 $as_echo "$NMEDIT" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259 fi
7260 if test -z "$ac_cv_prog_NMEDIT"; then
7261 ac_ct_NMEDIT=$NMEDIT
7262 # Extract the first word of "nmedit", so it can be a program name with args.
7263 set dummy nmedit; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$ac_ct_NMEDIT"; then
7270 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7290 if test -n "$ac_ct_NMEDIT"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7292 $as_echo "$ac_ct_NMEDIT" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298 if test "x$ac_ct_NMEDIT" = x; then
7299 NMEDIT=":"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307 NMEDIT=$ac_ct_NMEDIT
7308 fi
7309 else
7310 NMEDIT="$ac_cv_prog_NMEDIT"
7311 fi
7312
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_LIPO+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$LIPO"; then
7322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 LIPO=$ac_cv_prog_LIPO
7342 if test -n "$LIPO"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7344 $as_echo "$LIPO" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350
7351 fi
7352 if test -z "$ac_cv_prog_LIPO"; then
7353 ac_ct_LIPO=$LIPO
7354 # Extract the first word of "lipo", so it can be a program name with args.
7355 set dummy lipo; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$ac_ct_LIPO"; then
7362 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_ac_ct_LIPO="lipo"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7382 if test -n "$ac_ct_LIPO"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7384 $as_echo "$ac_ct_LIPO" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390 if test "x$ac_ct_LIPO" = x; then
7391 LIPO=":"
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7398 esac
7399 LIPO=$ac_ct_LIPO
7400 fi
7401 else
7402 LIPO="$ac_cv_prog_LIPO"
7403 fi
7404
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}otool; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_OTOOL+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$OTOOL"; then
7414 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 OTOOL=$ac_cv_prog_OTOOL
7434 if test -n "$OTOOL"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7436 $as_echo "$OTOOL" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442
7443 fi
7444 if test -z "$ac_cv_prog_OTOOL"; then
7445 ac_ct_OTOOL=$OTOOL
7446 # Extract the first word of "otool", so it can be a program name with args.
7447 set dummy otool; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_OTOOL"; then
7454 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_ac_ct_OTOOL="otool"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7474 if test -n "$ac_ct_OTOOL"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7476 $as_echo "$ac_ct_OTOOL" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482 if test "x$ac_ct_OTOOL" = x; then
7483 OTOOL=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 OTOOL=$ac_ct_OTOOL
7492 fi
7493 else
7494 OTOOL="$ac_cv_prog_OTOOL"
7495 fi
7496
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_OTOOL64+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$OTOOL64"; then
7506 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 OTOOL64=$ac_cv_prog_OTOOL64
7526 if test -n "$OTOOL64"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7528 $as_echo "$OTOOL64" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535 fi
7536 if test -z "$ac_cv_prog_OTOOL64"; then
7537 ac_ct_OTOOL64=$OTOOL64
7538 # Extract the first word of "otool64", so it can be a program name with args.
7539 set dummy otool64; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$ac_ct_OTOOL64"; then
7546 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_ac_ct_OTOOL64="otool64"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7566 if test -n "$ac_ct_OTOOL64"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7568 $as_echo "$ac_ct_OTOOL64" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574 if test "x$ac_ct_OTOOL64" = x; then
7575 OTOOL64=":"
7576 else
7577 case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7582 esac
7583 OTOOL64=$ac_ct_OTOOL64
7584 fi
7585 else
7586 OTOOL64="$ac_cv_prog_OTOOL64"
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7616 $as_echo_n "checking for -single_module linker flag... " >&6; }
7617 if ${lt_cv_apple_cc_single_mod+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 lt_cv_apple_cc_single_mod=no
7621 if test -z "${LT_MULTI_MODULE}"; then
7622 # By default we will add the -single_module flag. You can override
7623 # by either setting the environment variable LT_MULTI_MODULE
7624 # non-empty at configure time, or by adding -multi_module to the
7625 # link flags.
7626 rm -rf libconftest.dylib*
7627 echo "int foo(void){return 1;}" > conftest.c
7628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c" >&5
7630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7632 _lt_result=$?
7633 # If there is a non-empty error log, and "single_module"
7634 # appears in it, assume the flag caused a linker warning
7635 if test -s conftest.err && $GREP single_module conftest.err; then
7636 cat conftest.err >&5
7637 # Otherwise, if the output was created with a 0 exit code from
7638 # the compiler, it worked.
7639 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7640 lt_cv_apple_cc_single_mod=yes
7641 else
7642 cat conftest.err >&5
7643 fi
7644 rm -rf libconftest.dylib*
7645 rm -f conftest.*
7646 fi
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7649 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7652 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7653 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 lt_cv_ld_exported_symbols_list=no
7657 save_LDFLAGS=$LDFLAGS
7658 echo "_main" > conftest.sym
7659 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662
7663 int
7664 main ()
7665 {
7666
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_link "$LINENO"; then :
7672 lt_cv_ld_exported_symbols_list=yes
7673 else
7674 lt_cv_ld_exported_symbols_list=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7678 LDFLAGS="$save_LDFLAGS"
7679
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7682 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7683
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7685 $as_echo_n "checking for -force_load linker flag... " >&6; }
7686 if ${lt_cv_ld_force_load+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 lt_cv_ld_force_load=no
7690 cat > conftest.c << _LT_EOF
7691 int forced_loaded() { return 2;}
7692 _LT_EOF
7693 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7694 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7695 echo "$AR cru libconftest.a conftest.o" >&5
7696 $AR cru libconftest.a conftest.o 2>&5
7697 echo "$RANLIB libconftest.a" >&5
7698 $RANLIB libconftest.a 2>&5
7699 cat > conftest.c << _LT_EOF
7700 int main() { return 0;}
7701 _LT_EOF
7702 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7703 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7704 _lt_result=$?
7705 if test -s conftest.err && $GREP force_load conftest.err; then
7706 cat conftest.err >&5
7707 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7708 lt_cv_ld_force_load=yes
7709 else
7710 cat conftest.err >&5
7711 fi
7712 rm -f conftest.err libconftest.a conftest conftest.c
7713 rm -rf conftest.dSYM
7714
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7717 $as_echo "$lt_cv_ld_force_load" >&6; }
7718 case $host_os in
7719 rhapsody* | darwin1.[012])
7720 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7721 darwin1.*)
7722 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7723 darwin*) # darwin 5.x on
7724 # if running on 10.5 or later, the deployment target defaults
7725 # to the OS version, if on x86, and 10.4, the deployment
7726 # target defaults to 10.4. Don't you love it?
7727 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7728 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7729 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7730 10.[012]*)
7731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7732 10.*)
7733 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7734 esac
7735 ;;
7736 esac
7737 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7738 _lt_dar_single_mod='$single_module'
7739 fi
7740 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7741 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7742 else
7743 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7744 fi
7745 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7746 _lt_dsymutil='~$DSYMUTIL $lib || :'
7747 else
7748 _lt_dsymutil=
7749 fi
7750 ;;
7751 esac
7752
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7754 $as_echo_n "checking for ANSI C header files... " >&6; }
7755 if ${ac_cv_header_stdc+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 #include <stdlib.h>
7761 #include <stdarg.h>
7762 #include <string.h>
7763 #include <float.h>
7764
7765 int
7766 main ()
7767 {
7768
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 ac_cv_header_stdc=yes
7775 else
7776 ac_cv_header_stdc=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779
7780 if test $ac_cv_header_stdc = yes; then
7781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 #include <string.h>
7785
7786 _ACEOF
7787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7788 $EGREP "memchr" >/dev/null 2>&1; then :
7789
7790 else
7791 ac_cv_header_stdc=no
7792 fi
7793 rm -f conftest*
7794
7795 fi
7796
7797 if test $ac_cv_header_stdc = yes; then
7798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 #include <stdlib.h>
7802
7803 _ACEOF
7804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7805 $EGREP "free" >/dev/null 2>&1; then :
7806
7807 else
7808 ac_cv_header_stdc=no
7809 fi
7810 rm -f conftest*
7811
7812 fi
7813
7814 if test $ac_cv_header_stdc = yes; then
7815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7816 if test "$cross_compiling" = yes; then :
7817 :
7818 else
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #include <ctype.h>
7822 #include <stdlib.h>
7823 #if ((' ' & 0x0FF) == 0x020)
7824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7826 #else
7827 # define ISLOWER(c) \
7828 (('a' <= (c) && (c) <= 'i') \
7829 || ('j' <= (c) && (c) <= 'r') \
7830 || ('s' <= (c) && (c) <= 'z'))
7831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7832 #endif
7833
7834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7835 int
7836 main ()
7837 {
7838 int i;
7839 for (i = 0; i < 256; i++)
7840 if (XOR (islower (i), ISLOWER (i))
7841 || toupper (i) != TOUPPER (i))
7842 return 2;
7843 return 0;
7844 }
7845 _ACEOF
7846 if ac_fn_c_try_run "$LINENO"; then :
7847
7848 else
7849 ac_cv_header_stdc=no
7850 fi
7851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7852 conftest.$ac_objext conftest.beam conftest.$ac_ext
7853 fi
7854
7855 fi
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7858 $as_echo "$ac_cv_header_stdc" >&6; }
7859 if test $ac_cv_header_stdc = yes; then
7860
7861 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7862
7863 fi
7864
7865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7867 inttypes.h stdint.h unistd.h
7868 do :
7869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7871 "
7872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7873 cat >>confdefs.h <<_ACEOF
7874 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7875 _ACEOF
7876
7877 fi
7878
7879 done
7880
7881
7882 for ac_header in dlfcn.h
7883 do :
7884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7885 "
7886 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7887 cat >>confdefs.h <<_ACEOF
7888 @%:@define HAVE_DLFCN_H 1
7889 _ACEOF
7890
7891 fi
7892
7893 done
7894
7895
7896
7897
7898
7899 # Set options
7900
7901
7902
7903 enable_dlopen=no
7904
7905
7906 enable_win32_dll=no
7907
7908
7909 @%:@ Check whether --enable-shared was given.
7910 if test "${enable_shared+set}" = set; then :
7911 enableval=$enable_shared; p=${PACKAGE-default}
7912 case $enableval in
7913 yes) enable_shared=yes ;;
7914 no) enable_shared=no ;;
7915 *)
7916 enable_shared=no
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for pkg in $enableval; do
7920 IFS="$lt_save_ifs"
7921 if test "X$pkg" = "X$p"; then
7922 enable_shared=yes
7923 fi
7924 done
7925 IFS="$lt_save_ifs"
7926 ;;
7927 esac
7928 else
7929 enable_shared=yes
7930 fi
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 @%:@ Check whether --enable-static was given.
7941 if test "${enable_static+set}" = set; then :
7942 enableval=$enable_static; p=${PACKAGE-default}
7943 case $enableval in
7944 yes) enable_static=yes ;;
7945 no) enable_static=no ;;
7946 *)
7947 enable_static=no
7948 # Look at the argument we got. We use all the common list separators.
7949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7950 for pkg in $enableval; do
7951 IFS="$lt_save_ifs"
7952 if test "X$pkg" = "X$p"; then
7953 enable_static=yes
7954 fi
7955 done
7956 IFS="$lt_save_ifs"
7957 ;;
7958 esac
7959 else
7960 enable_static=yes
7961 fi
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972 @%:@ Check whether --with-pic was given.
7973 if test "${with_pic+set}" = set; then :
7974 withval=$with_pic; lt_p=${PACKAGE-default}
7975 case $withval in
7976 yes|no) pic_mode=$withval ;;
7977 *)
7978 pic_mode=default
7979 # Look at the argument we got. We use all the common list separators.
7980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7981 for lt_pkg in $withval; do
7982 IFS="$lt_save_ifs"
7983 if test "X$lt_pkg" = "X$lt_p"; then
7984 pic_mode=yes
7985 fi
7986 done
7987 IFS="$lt_save_ifs"
7988 ;;
7989 esac
7990 else
7991 pic_mode=default
7992 fi
7993
7994
7995 test -z "$pic_mode" && pic_mode=default
7996
7997
7998
7999
8000
8001
8002
8003 @%:@ Check whether --enable-fast-install was given.
8004 if test "${enable_fast_install+set}" = set; then :
8005 enableval=$enable_fast_install; p=${PACKAGE-default}
8006 case $enableval in
8007 yes) enable_fast_install=yes ;;
8008 no) enable_fast_install=no ;;
8009 *)
8010 enable_fast_install=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_fast_install=yes
8017 fi
8018 done
8019 IFS="$lt_save_ifs"
8020 ;;
8021 esac
8022 else
8023 enable_fast_install=yes
8024 fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 # This can be used to rebuild libtool when needed
8037 LIBTOOL_DEPS="$ltmain"
8038
8039 # Always use our own libtool.
8040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 test -z "$LN_S" && LN_S="ln -s"
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 if test -n "${ZSH_VERSION+set}" ; then
8087 setopt NO_GLOB_SUBST
8088 fi
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8091 $as_echo_n "checking for objdir... " >&6; }
8092 if ${lt_cv_objdir+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 rm -f .libs 2>/dev/null
8096 mkdir .libs 2>/dev/null
8097 if test -d .libs; then
8098 lt_cv_objdir=.libs
8099 else
8100 # MS-DOS does not allow filenames that begin with a dot.
8101 lt_cv_objdir=_libs
8102 fi
8103 rmdir .libs 2>/dev/null
8104 fi
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8106 $as_echo "$lt_cv_objdir" >&6; }
8107 objdir=$lt_cv_objdir
8108
8109
8110
8111
8112
8113 cat >>confdefs.h <<_ACEOF
8114 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8115 _ACEOF
8116
8117
8118
8119
8120 case $host_os in
8121 aix3*)
8122 # AIX sometimes has problems with the GCC collect2 program. For some
8123 # reason, if we set the COLLECT_NAMES environment variable, the problems
8124 # vanish in a puff of smoke.
8125 if test "X${COLLECT_NAMES+set}" != Xset; then
8126 COLLECT_NAMES=
8127 export COLLECT_NAMES
8128 fi
8129 ;;
8130 esac
8131
8132 # Global variables:
8133 ofile=libtool
8134 can_build_shared=yes
8135
8136 # All known linkers require a `.a' archive for static linking (except MSVC,
8137 # which needs '.lib').
8138 libext=a
8139
8140 with_gnu_ld="$lt_cv_prog_gnu_ld"
8141
8142 old_CC="$CC"
8143 old_CFLAGS="$CFLAGS"
8144
8145 # Set sane defaults for various variables
8146 test -z "$CC" && CC=cc
8147 test -z "$LTCC" && LTCC=$CC
8148 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8149 test -z "$LD" && LD=ld
8150 test -z "$ac_objext" && ac_objext=o
8151
8152 for cc_temp in $compiler""; do
8153 case $cc_temp in
8154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8156 \-*) ;;
8157 *) break;;
8158 esac
8159 done
8160 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8161
8162
8163 # Only perform the check for file, if the check method requires it
8164 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8165 case $deplibs_check_method in
8166 file_magic*)
8167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8169 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8170 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 case $MAGIC_CMD in
8174 [\\/*] | ?:[\\/]*)
8175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8176 ;;
8177 *)
8178 lt_save_MAGIC_CMD="$MAGIC_CMD"
8179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181 for ac_dir in $ac_dummy; do
8182 IFS="$lt_save_ifs"
8183 test -z "$ac_dir" && ac_dir=.
8184 if test -f $ac_dir/${ac_tool_prefix}file; then
8185 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8186 if test -n "$file_magic_test_file"; then
8187 case $deplibs_check_method in
8188 "file_magic "*)
8189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192 $EGREP "$file_magic_regex" > /dev/null; then
8193 :
8194 else
8195 cat <<_LT_EOF 1>&2
8196
8197 *** Warning: the command libtool uses to detect shared libraries,
8198 *** $file_magic_cmd, produces output that libtool cannot recognize.
8199 *** The result is that libtool may fail to recognize shared libraries
8200 *** as such. This will affect the creation of libtool libraries that
8201 *** depend on shared libraries, but programs linked with such libtool
8202 *** libraries will work regardless of this problem. Nevertheless, you
8203 *** may want to report the problem to your system manager and/or to
8204 *** bug-libtool@gnu.org
8205
8206 _LT_EOF
8207 fi ;;
8208 esac
8209 fi
8210 break
8211 fi
8212 done
8213 IFS="$lt_save_ifs"
8214 MAGIC_CMD="$lt_save_MAGIC_CMD"
8215 ;;
8216 esac
8217 fi
8218
8219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220 if test -n "$MAGIC_CMD"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8222 $as_echo "$MAGIC_CMD" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8226 fi
8227
8228
8229
8230
8231
8232 if test -z "$lt_cv_path_MAGIC_CMD"; then
8233 if test -n "$ac_tool_prefix"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8235 $as_echo_n "checking for file... " >&6; }
8236 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 case $MAGIC_CMD in
8240 [\\/*] | ?:[\\/]*)
8241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8242 ;;
8243 *)
8244 lt_save_MAGIC_CMD="$MAGIC_CMD"
8245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8247 for ac_dir in $ac_dummy; do
8248 IFS="$lt_save_ifs"
8249 test -z "$ac_dir" && ac_dir=.
8250 if test -f $ac_dir/file; then
8251 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8252 if test -n "$file_magic_test_file"; then
8253 case $deplibs_check_method in
8254 "file_magic "*)
8255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8258 $EGREP "$file_magic_regex" > /dev/null; then
8259 :
8260 else
8261 cat <<_LT_EOF 1>&2
8262
8263 *** Warning: the command libtool uses to detect shared libraries,
8264 *** $file_magic_cmd, produces output that libtool cannot recognize.
8265 *** The result is that libtool may fail to recognize shared libraries
8266 *** as such. This will affect the creation of libtool libraries that
8267 *** depend on shared libraries, but programs linked with such libtool
8268 *** libraries will work regardless of this problem. Nevertheless, you
8269 *** may want to report the problem to your system manager and/or to
8270 *** bug-libtool@gnu.org
8271
8272 _LT_EOF
8273 fi ;;
8274 esac
8275 fi
8276 break
8277 fi
8278 done
8279 IFS="$lt_save_ifs"
8280 MAGIC_CMD="$lt_save_MAGIC_CMD"
8281 ;;
8282 esac
8283 fi
8284
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if test -n "$MAGIC_CMD"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8288 $as_echo "$MAGIC_CMD" >&6; }
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294
8295 else
8296 MAGIC_CMD=:
8297 fi
8298 fi
8299
8300 fi
8301 ;;
8302 esac
8303
8304 # Use C for the default configuration in the libtool script
8305
8306 lt_save_CC="$CC"
8307 ac_ext=c
8308 ac_cpp='$CPP $CPPFLAGS'
8309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313
8314 # Source file extension for C test sources.
8315 ac_ext=c
8316
8317 # Object file extension for compiled C test sources.
8318 objext=o
8319 objext=$objext
8320
8321 # Code to be used in simple compile tests
8322 lt_simple_compile_test_code="int some_variable = 0;"
8323
8324 # Code to be used in simple link tests
8325 lt_simple_link_test_code='int main(){return(0);}'
8326
8327
8328
8329
8330
8331
8332
8333 # If no C compiler was specified, use CC.
8334 LTCC=${LTCC-"$CC"}
8335
8336 # If no C compiler flags were specified, use CFLAGS.
8337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8338
8339 # Allow CC to be a program name with arguments.
8340 compiler=$CC
8341
8342 # Save the default compiler, since it gets overwritten when the other
8343 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8344 compiler_DEFAULT=$CC
8345
8346 # save warnings/boilerplate of simple test code
8347 ac_outfile=conftest.$ac_objext
8348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8350 _lt_compiler_boilerplate=`cat conftest.err`
8351 $RM conftest*
8352
8353 ac_outfile=conftest.$ac_objext
8354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8356 _lt_linker_boilerplate=`cat conftest.err`
8357 $RM -r conftest*
8358
8359
8360 ## CAVEAT EMPTOR:
8361 ## There is no encapsulation within the following macros, do not change
8362 ## the running order or otherwise move them around unless you know exactly
8363 ## what you are doing...
8364 if test -n "$compiler"; then
8365
8366 lt_prog_compiler_no_builtin_flag=
8367
8368 if test "$GCC" = yes; then
8369 case $cc_basename in
8370 nvcc*)
8371 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8372 *)
8373 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8374 esac
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8377 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8378 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 lt_cv_prog_compiler_rtti_exceptions=no
8382 ac_outfile=conftest.$ac_objext
8383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8384 lt_compiler_flag="-fno-rtti -fno-exceptions"
8385 # Insert the option either (1) after the last *FLAGS variable, or
8386 # (2) before a word containing "conftest.", or (3) at the end.
8387 # Note that $ac_compile itself does not contain backslashes and begins
8388 # with a dollar sign (not a hyphen), so the echo should work correctly.
8389 # The option is referenced via a variable to avoid confusing sed.
8390 lt_compile=`echo "$ac_compile" | $SED \
8391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8393 -e 's:$: $lt_compiler_flag:'`
8394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8395 (eval "$lt_compile" 2>conftest.err)
8396 ac_status=$?
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 if (exit $ac_status) && test -s "$ac_outfile"; then
8400 # The compiler can only warn and ignore the option if not recognized
8401 # So say no if there are warnings other than the usual output.
8402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8405 lt_cv_prog_compiler_rtti_exceptions=yes
8406 fi
8407 fi
8408 $RM conftest*
8409
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8412 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8413
8414 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8415 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8416 else
8417 :
8418 fi
8419
8420 fi
8421
8422
8423
8424
8425
8426
8427 lt_prog_compiler_wl=
8428 lt_prog_compiler_pic=
8429 lt_prog_compiler_static=
8430
8431
8432 if test "$GCC" = yes; then
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_static='-static'
8435
8436 case $host_os in
8437 aix*)
8438 # All AIX code is PIC.
8439 if test "$host_cpu" = ia64; then
8440 # AIX 5 now supports IA64 processor
8441 lt_prog_compiler_static='-Bstatic'
8442 fi
8443 ;;
8444
8445 amigaos*)
8446 case $host_cpu in
8447 powerpc)
8448 # see comment about AmigaOS4 .so support
8449 lt_prog_compiler_pic='-fPIC'
8450 ;;
8451 m68k)
8452 # FIXME: we need at least 68020 code to build shared libraries, but
8453 # adding the `-m68020' flag to GCC prevents building anything better,
8454 # like `-m68040'.
8455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8456 ;;
8457 esac
8458 ;;
8459
8460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8461 # PIC is the default for these OSes.
8462 ;;
8463
8464 mingw* | cygwin* | pw32* | os2* | cegcc*)
8465 # This hack is so that the source file can tell whether it is being
8466 # built for inclusion in a dll (and should export symbols for example).
8467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8468 # (--disable-auto-import) libraries
8469 lt_prog_compiler_pic='-DDLL_EXPORT'
8470 ;;
8471
8472 darwin* | rhapsody*)
8473 # PIC is the default on this platform
8474 # Common symbols not allowed in MH_DYLIB files
8475 lt_prog_compiler_pic='-fno-common'
8476 ;;
8477
8478 haiku*)
8479 # PIC is the default for Haiku.
8480 # The "-static" flag exists, but is broken.
8481 lt_prog_compiler_static=
8482 ;;
8483
8484 hpux*)
8485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8487 # sets the default TLS model and affects inlining.
8488 case $host_cpu in
8489 hppa*64*)
8490 # +Z the default
8491 ;;
8492 *)
8493 lt_prog_compiler_pic='-fPIC'
8494 ;;
8495 esac
8496 ;;
8497
8498 interix[3-9]*)
8499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8500 # Instead, we relocate shared libraries at runtime.
8501 ;;
8502
8503 msdosdjgpp*)
8504 # Just because we use GCC doesn't mean we suddenly get shared libraries
8505 # on systems that don't support them.
8506 lt_prog_compiler_can_build_shared=no
8507 enable_shared=no
8508 ;;
8509
8510 *nto* | *qnx*)
8511 # QNX uses GNU C++, but need to define -shared option too, otherwise
8512 # it will coredump.
8513 lt_prog_compiler_pic='-fPIC -shared'
8514 ;;
8515
8516 sysv4*MP*)
8517 if test -d /usr/nec; then
8518 lt_prog_compiler_pic=-Kconform_pic
8519 fi
8520 ;;
8521
8522 *)
8523 lt_prog_compiler_pic='-fPIC'
8524 ;;
8525 esac
8526
8527 case $cc_basename in
8528 nvcc*) # Cuda Compiler Driver 2.2
8529 lt_prog_compiler_wl='-Xlinker '
8530 if test -n "$lt_prog_compiler_pic"; then
8531 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8532 fi
8533 ;;
8534 esac
8535 else
8536 # PORTME Check for flag to pass linker flags through the system compiler.
8537 case $host_os in
8538 aix*)
8539 lt_prog_compiler_wl='-Wl,'
8540 if test "$host_cpu" = ia64; then
8541 # AIX 5 now supports IA64 processor
8542 lt_prog_compiler_static='-Bstatic'
8543 else
8544 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8545 fi
8546 ;;
8547
8548 mingw* | cygwin* | pw32* | os2* | cegcc*)
8549 # This hack is so that the source file can tell whether it is being
8550 # built for inclusion in a dll (and should export symbols for example).
8551 lt_prog_compiler_pic='-DDLL_EXPORT'
8552 ;;
8553
8554 hpux9* | hpux10* | hpux11*)
8555 lt_prog_compiler_wl='-Wl,'
8556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8557 # not for PA HP-UX.
8558 case $host_cpu in
8559 hppa*64*|ia64*)
8560 # +Z the default
8561 ;;
8562 *)
8563 lt_prog_compiler_pic='+Z'
8564 ;;
8565 esac
8566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8567 lt_prog_compiler_static='${wl}-a ${wl}archive'
8568 ;;
8569
8570 irix5* | irix6* | nonstopux*)
8571 lt_prog_compiler_wl='-Wl,'
8572 # PIC (with -KPIC) is the default.
8573 lt_prog_compiler_static='-non_shared'
8574 ;;
8575
8576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8577 case $cc_basename in
8578 # old Intel for x86_64 which still supported -KPIC.
8579 ecc*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-static'
8583 ;;
8584 # icc used to be incompatible with GCC.
8585 # ICC 10 doesn't accept -KPIC any more.
8586 icc* | ifort*)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-fPIC'
8589 lt_prog_compiler_static='-static'
8590 ;;
8591 # Lahey Fortran 8.1.
8592 lf95*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='--shared'
8595 lt_prog_compiler_static='--static'
8596 ;;
8597 nagfor*)
8598 # NAG Fortran compiler
8599 lt_prog_compiler_wl='-Wl,-Wl,,'
8600 lt_prog_compiler_pic='-PIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610 ccc*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8614 ;;
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8620 ;;
8621 *)
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl=''
8628 ;;
8629 *Sun\ F* | *Sun*Fortran*)
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 lt_prog_compiler_wl='-Qoption ld '
8633 ;;
8634 *Sun\ C*)
8635 # Sun C 5.9
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 lt_prog_compiler_wl='-Wl,'
8639 ;;
8640 *Intel*\ [CF]*Compiler*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fPIC'
8643 lt_prog_compiler_static='-static'
8644 ;;
8645 *Portland\ Group*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fpic'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650 esac
8651 ;;
8652 esac
8653 ;;
8654
8655 newsos6)
8656 lt_prog_compiler_pic='-KPIC'
8657 lt_prog_compiler_static='-Bstatic'
8658 ;;
8659
8660 *nto* | *qnx*)
8661 # QNX uses GNU C++, but need to define -shared option too, otherwise
8662 # it will coredump.
8663 lt_prog_compiler_pic='-fPIC -shared'
8664 ;;
8665
8666 osf3* | osf4* | osf5*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # All OSF/1 code is PIC.
8669 lt_prog_compiler_static='-non_shared'
8670 ;;
8671
8672 rdos*)
8673 lt_prog_compiler_static='-non_shared'
8674 ;;
8675
8676 solaris*)
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 case $cc_basename in
8680 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8681 lt_prog_compiler_wl='-Qoption ld ';;
8682 *)
8683 lt_prog_compiler_wl='-Wl,';;
8684 esac
8685 ;;
8686
8687 sunos4*)
8688 lt_prog_compiler_wl='-Qoption ld '
8689 lt_prog_compiler_pic='-PIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 ;;
8692
8693 sysv4 | sysv4.2uw2* | sysv4.3*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 ;;
8698
8699 sysv4*MP*)
8700 if test -d /usr/nec ;then
8701 lt_prog_compiler_pic='-Kconform_pic'
8702 lt_prog_compiler_static='-Bstatic'
8703 fi
8704 ;;
8705
8706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711
8712 unicos*)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_can_build_shared=no
8715 ;;
8716
8717 uts4*)
8718 lt_prog_compiler_pic='-pic'
8719 lt_prog_compiler_static='-Bstatic'
8720 ;;
8721
8722 *)
8723 lt_prog_compiler_can_build_shared=no
8724 ;;
8725 esac
8726 fi
8727
8728 case $host_os in
8729 # For platforms which do not support PIC, -DPIC is meaningless:
8730 *djgpp*)
8731 lt_prog_compiler_pic=
8732 ;;
8733 *)
8734 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8735 ;;
8736 esac
8737
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8739 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8740 if ${lt_cv_prog_compiler_pic+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8746 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8747 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8748
8749 #
8750 # Check to make sure the PIC flag actually works.
8751 #
8752 if test -n "$lt_prog_compiler_pic"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8754 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8755 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 lt_cv_prog_compiler_pic_works=no
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772 (eval "$lt_compile" 2>conftest.err)
8773 ac_status=$?
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_pic_works=yes
8783 fi
8784 fi
8785 $RM conftest*
8786
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8789 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8790
8791 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8792 case $lt_prog_compiler_pic in
8793 "" | " "*) ;;
8794 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8795 esac
8796 else
8797 lt_prog_compiler_pic=
8798 lt_prog_compiler_can_build_shared=no
8799 fi
8800
8801 fi
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 #
8814 # Check to make sure the static flag actually works.
8815 #
8816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8818 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8819 if ${lt_cv_prog_compiler_static_works+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 lt_cv_prog_compiler_static_works=no
8823 save_LDFLAGS="$LDFLAGS"
8824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8827 # The linker can only warn and ignore the option if not recognized
8828 # So say no if there are warnings
8829 if test -s conftest.err; then
8830 # Append any errors to the config.log.
8831 cat conftest.err 1>&5
8832 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834 if diff conftest.exp conftest.er2 >/dev/null; then
8835 lt_cv_prog_compiler_static_works=yes
8836 fi
8837 else
8838 lt_cv_prog_compiler_static_works=yes
8839 fi
8840 fi
8841 $RM -r conftest*
8842 LDFLAGS="$save_LDFLAGS"
8843
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8846 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8847
8848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8849 :
8850 else
8851 lt_prog_compiler_static=
8852 fi
8853
8854
8855
8856
8857
8858
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8861 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8862 if ${lt_cv_prog_compiler_c_o+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 lt_cv_prog_compiler_c_o=no
8866 $RM -r conftest 2>/dev/null
8867 mkdir conftest
8868 cd conftest
8869 mkdir out
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871
8872 lt_compiler_flag="-o out/conftest2.$ac_objext"
8873 # Insert the option either (1) after the last *FLAGS variable, or
8874 # (2) before a word containing "conftest.", or (3) at the end.
8875 # Note that $ac_compile itself does not contain backslashes and begins
8876 # with a dollar sign (not a hyphen), so the echo should work correctly.
8877 lt_compile=`echo "$ac_compile" | $SED \
8878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880 -e 's:$: $lt_compiler_flag:'`
8881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882 (eval "$lt_compile" 2>out/conftest.err)
8883 ac_status=$?
8884 cat out/conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8887 then
8888 # The compiler can only warn and ignore the option if not recognized
8889 # So say no if there are warnings
8890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8893 lt_cv_prog_compiler_c_o=yes
8894 fi
8895 fi
8896 chmod u+w . 2>&5
8897 $RM conftest*
8898 # SGI C++ compiler will create directory out/ii_files/ for
8899 # template instantiation
8900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8901 $RM out/* && rmdir out
8902 cd ..
8903 $RM -r conftest
8904 $RM conftest*
8905
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8908 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8909
8910
8911
8912
8913
8914
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8916 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8917 if ${lt_cv_prog_compiler_c_o+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 lt_cv_prog_compiler_c_o=no
8921 $RM -r conftest 2>/dev/null
8922 mkdir conftest
8923 cd conftest
8924 mkdir out
8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926
8927 lt_compiler_flag="-o out/conftest2.$ac_objext"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 lt_compile=`echo "$ac_compile" | $SED \
8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935 -e 's:$: $lt_compiler_flag:'`
8936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8937 (eval "$lt_compile" 2>out/conftest.err)
8938 ac_status=$?
8939 cat out/conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8942 then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings
8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_c_o=yes
8949 fi
8950 fi
8951 chmod u+w . 2>&5
8952 $RM conftest*
8953 # SGI C++ compiler will create directory out/ii_files/ for
8954 # template instantiation
8955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8956 $RM out/* && rmdir out
8957 cd ..
8958 $RM -r conftest
8959 $RM conftest*
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8963 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8964
8965
8966
8967
8968 hard_links="nottested"
8969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8970 # do not overwrite the value of need_locks provided by the user
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8972 $as_echo_n "checking if we can lock with hard links... " >&6; }
8973 hard_links=yes
8974 $RM conftest*
8975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8976 touch conftest.a
8977 ln conftest.a conftest.b 2>&5 || hard_links=no
8978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8980 $as_echo "$hard_links" >&6; }
8981 if test "$hard_links" = no; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8983 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8984 need_locks=warn
8985 fi
8986 else
8987 need_locks=no
8988 fi
8989
8990
8991
8992
8993
8994
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8996 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8997
8998 runpath_var=
8999 allow_undefined_flag=
9000 always_export_symbols=no
9001 archive_cmds=
9002 archive_expsym_cmds=
9003 compiler_needs_object=no
9004 enable_shared_with_static_runtimes=no
9005 export_dynamic_flag_spec=
9006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9007 hardcode_automatic=no
9008 hardcode_direct=no
9009 hardcode_direct_absolute=no
9010 hardcode_libdir_flag_spec=
9011 hardcode_libdir_separator=
9012 hardcode_minus_L=no
9013 hardcode_shlibpath_var=unsupported
9014 inherit_rpath=no
9015 link_all_deplibs=unknown
9016 module_cmds=
9017 module_expsym_cmds=
9018 old_archive_from_new_cmds=
9019 old_archive_from_expsyms_cmds=
9020 thread_safe_flag_spec=
9021 whole_archive_flag_spec=
9022 # include_expsyms should be a list of space-separated symbols to be *always*
9023 # included in the symbol list
9024 include_expsyms=
9025 # exclude_expsyms can be an extended regexp of symbols to exclude
9026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9028 # as well as any symbol that contains `d'.
9029 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9031 # platforms (ab)use it in PIC code, but their linkers get confused if
9032 # the symbol is explicitly referenced. Since portable code cannot
9033 # rely on this symbol name, it's probably fine to never include it in
9034 # preloaded symbol tables.
9035 # Exclude shared library initialization/finalization symbols.
9036 extract_expsyms_cmds=
9037
9038 case $host_os in
9039 cygwin* | mingw* | pw32* | cegcc*)
9040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9041 # When not using gcc, we currently assume that we are using
9042 # Microsoft Visual C++.
9043 if test "$GCC" != yes; then
9044 with_gnu_ld=no
9045 fi
9046 ;;
9047 interix*)
9048 # we just hope/assume this is gcc and not c89 (= MSVC++)
9049 with_gnu_ld=yes
9050 ;;
9051 openbsd*)
9052 with_gnu_ld=no
9053 ;;
9054 linux* | k*bsd*-gnu | gnu*)
9055 link_all_deplibs=no
9056 ;;
9057 esac
9058
9059 ld_shlibs=yes
9060
9061 # On some targets, GNU ld is compatible enough with the native linker
9062 # that we're better off using the native interface for both.
9063 lt_use_gnu_ld_interface=no
9064 if test "$with_gnu_ld" = yes; then
9065 case $host_os in
9066 aix*)
9067 # The AIX port of GNU ld has always aspired to compatibility
9068 # with the native linker. However, as the warning in the GNU ld
9069 # block says, versions before 2.19.5* couldn't really create working
9070 # shared libraries, regardless of the interface used.
9071 case `$LD -v 2>&1` in
9072 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9073 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9074 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9075 *)
9076 lt_use_gnu_ld_interface=yes
9077 ;;
9078 esac
9079 ;;
9080 *)
9081 lt_use_gnu_ld_interface=yes
9082 ;;
9083 esac
9084 fi
9085
9086 if test "$lt_use_gnu_ld_interface" = yes; then
9087 # If archive_cmds runs LD, not CC, wlarc should be empty
9088 wlarc='${wl}'
9089
9090 # Set some defaults for GNU ld with shared library support. These
9091 # are reset later if shared libraries are not supported. Putting them
9092 # here allows them to be overridden if necessary.
9093 runpath_var=LD_RUN_PATH
9094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095 export_dynamic_flag_spec='${wl}--export-dynamic'
9096 # ancient GNU ld didn't support --whole-archive et. al.
9097 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9098 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9099 else
9100 whole_archive_flag_spec=
9101 fi
9102 supports_anon_versioning=no
9103 case `$LD -v 2>&1` in
9104 *GNU\ gold*) supports_anon_versioning=yes ;;
9105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9108 *\ 2.11.*) ;; # other 2.11 versions
9109 *) supports_anon_versioning=yes ;;
9110 esac
9111
9112 # See if GNU ld supports shared libraries.
9113 case $host_os in
9114 aix[3-9]*)
9115 # On AIX/PPC, the GNU linker is very broken
9116 if test "$host_cpu" != ia64; then
9117 ld_shlibs=no
9118 cat <<_LT_EOF 1>&2
9119
9120 *** Warning: the GNU linker, at least up to release 2.19, is reported
9121 *** to be unable to reliably create shared libraries on AIX.
9122 *** Therefore, libtool is disabling shared libraries support. If you
9123 *** really care for shared libraries, you may want to install binutils
9124 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9125 *** You will then need to restart the configuration process.
9126
9127 _LT_EOF
9128 fi
9129 ;;
9130
9131 amigaos*)
9132 case $host_cpu in
9133 powerpc)
9134 # see comment about AmigaOS4 .so support
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds=''
9137 ;;
9138 m68k)
9139 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)'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_minus_L=yes
9142 ;;
9143 esac
9144 ;;
9145
9146 beos*)
9147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148 allow_undefined_flag=unsupported
9149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9150 # support --undefined. This deserves some investigation. FIXME
9151 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 cygwin* | mingw* | pw32* | cegcc*)
9158 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9159 # as there is no search path for DLLs.
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 export_dynamic_flag_spec='${wl}--export-all-symbols'
9162 allow_undefined_flag=unsupported
9163 always_export_symbols=no
9164 enable_shared_with_static_runtimes=yes
9165 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'
9166 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9167
9168 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9170 # If the export-symbols file already is a .def file (1st line
9171 # is EXPORTS), use it as is; otherwise, prepend...
9172 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9173 cp $export_symbols $output_objdir/$soname.def;
9174 else
9175 echo EXPORTS > $output_objdir/$soname.def;
9176 cat $export_symbols >> $output_objdir/$soname.def;
9177 fi~
9178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179 else
9180 ld_shlibs=no
9181 fi
9182 ;;
9183
9184 haiku*)
9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186 link_all_deplibs=yes
9187 ;;
9188
9189 interix[3-9]*)
9190 hardcode_direct=no
9191 hardcode_shlibpath_var=no
9192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193 export_dynamic_flag_spec='${wl}-E'
9194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9195 # Instead, shared libraries are loaded at an image base (0x10000000 by
9196 # default) and relocated if they conflict, which is a slow very memory
9197 # consuming and fragmenting process. To avoid this, we pick a random,
9198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9201 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'
9202 ;;
9203
9204 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9205 tmp_diet=no
9206 if test "$host_os" = linux-dietlibc; then
9207 case $cc_basename in
9208 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9209 esac
9210 fi
9211 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9212 && test "$tmp_diet" = no
9213 then
9214 tmp_addflag=' $pic_flag'
9215 tmp_sharedflag='-shared'
9216 case $cc_basename,$host_cpu in
9217 pgcc*) # Portland Group C compiler
9218 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'
9219 tmp_addflag=' $pic_flag'
9220 ;;
9221 pgf77* | pgf90* | pgf95* | pgfortran*)
9222 # Portland Group f77 and f90 compilers
9223 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'
9224 tmp_addflag=' $pic_flag -Mnomain' ;;
9225 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9226 tmp_addflag=' -i_dynamic' ;;
9227 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9228 tmp_addflag=' -i_dynamic -nofor_main' ;;
9229 ifc* | ifort*) # Intel Fortran compiler
9230 tmp_addflag=' -nofor_main' ;;
9231 lf95*) # Lahey Fortran 8.1
9232 whole_archive_flag_spec=
9233 tmp_sharedflag='--shared' ;;
9234 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9235 tmp_sharedflag='-qmkshrobj'
9236 tmp_addflag= ;;
9237 nvcc*) # Cuda Compiler Driver 2.2
9238 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'
9239 compiler_needs_object=yes
9240 ;;
9241 esac
9242 case `$CC -V 2>&1 | sed 5q` in
9243 *Sun\ C*) # Sun C 5.9
9244 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'
9245 compiler_needs_object=yes
9246 tmp_sharedflag='-G' ;;
9247 *Sun\ F*) # Sun Fortran 8.3
9248 tmp_sharedflag='-G' ;;
9249 esac
9250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251
9252 if test "x$supports_anon_versioning" = xyes; then
9253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9255 echo "local: *; };" >> $output_objdir/$libname.ver~
9256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9257 fi
9258
9259 case $cc_basename in
9260 xlf* | bgf* | bgxlf* | mpixlf*)
9261 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9262 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9265 if test "x$supports_anon_versioning" = xyes; then
9266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9268 echo "local: *; };" >> $output_objdir/$libname.ver~
9269 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9270 fi
9271 ;;
9272 esac
9273 else
9274 ld_shlibs=no
9275 fi
9276 ;;
9277
9278 netbsd* | netbsdelf*-gnu)
9279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9281 wlarc=
9282 else
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285 fi
9286 ;;
9287
9288 solaris*)
9289 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9290 ld_shlibs=no
9291 cat <<_LT_EOF 1>&2
9292
9293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9294 *** create shared libraries on Solaris systems. Therefore, libtool
9295 *** is disabling shared libraries support. We urge you to upgrade GNU
9296 *** binutils to release 2.9.1 or newer. Another option is to modify
9297 *** your PATH or compiler configuration so that the native linker is
9298 *** used, and then restart.
9299
9300 _LT_EOF
9301 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9304 else
9305 ld_shlibs=no
9306 fi
9307 ;;
9308
9309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9310 case `$LD -v 2>&1` in
9311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9312 ld_shlibs=no
9313 cat <<_LT_EOF 1>&2
9314
9315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9316 *** reliably create shared libraries on SCO systems. Therefore, libtool
9317 *** is disabling shared libraries support. We urge you to upgrade GNU
9318 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9319 *** your PATH or compiler configuration so that the native linker is
9320 *** used, and then restart.
9321
9322 _LT_EOF
9323 ;;
9324 *)
9325 # For security reasons, it is highly recommended that you always
9326 # use absolute paths for naming shared libraries, and exclude the
9327 # DT_RUNPATH tag from executables and libraries. But doing so
9328 # requires that you compile everything twice, which is a pain.
9329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337 esac
9338 ;;
9339
9340 sunos4*)
9341 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9342 wlarc=
9343 hardcode_direct=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 *)
9348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355 esac
9356
9357 if test "$ld_shlibs" = no; then
9358 runpath_var=
9359 hardcode_libdir_flag_spec=
9360 export_dynamic_flag_spec=
9361 whole_archive_flag_spec=
9362 fi
9363 else
9364 # PORTME fill in a description of your system's linker (not GNU ld)
9365 case $host_os in
9366 aix3*)
9367 allow_undefined_flag=unsupported
9368 always_export_symbols=yes
9369 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'
9370 # Note: this linker hardcodes the directories in LIBPATH if there
9371 # are no directories specified by -L.
9372 hardcode_minus_L=yes
9373 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9374 # Neither direct hardcoding nor static linking is supported with a
9375 # broken collect2.
9376 hardcode_direct=unsupported
9377 fi
9378 ;;
9379
9380 aix[4-9]*)
9381 if test "$host_cpu" = ia64; then
9382 # On IA64, the linker does run time linking by default, so we don't
9383 # have to do anything special.
9384 aix_use_runtimelinking=no
9385 exp_sym_flag='-Bexport'
9386 no_entry_flag=""
9387 else
9388 # If we're using GNU nm, then we don't want the "-C" option.
9389 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9390 # Also, AIX nm treats weak defined symbols like other global
9391 # defined symbols, whereas GNU nm marks them as "W".
9392 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9393 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'
9394 else
9395 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'
9396 fi
9397 aix_use_runtimelinking=no
9398
9399 # Test if we are trying to use run time linking or normal
9400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9401 # need to do runtime linking.
9402 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9403 for ld_flag in $LDFLAGS; do
9404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9405 aix_use_runtimelinking=yes
9406 break
9407 fi
9408 done
9409 ;;
9410 esac
9411
9412 exp_sym_flag='-bexport'
9413 no_entry_flag='-bnoentry'
9414 fi
9415
9416 # When large executables or shared objects are built, AIX ld can
9417 # have problems creating the table of contents. If linking a library
9418 # or program results in "error TOC overflow" add -mminimal-toc to
9419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9421
9422 archive_cmds=''
9423 hardcode_direct=yes
9424 hardcode_direct_absolute=yes
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 file_list_spec='${wl}-f,'
9428
9429 if test "$GCC" = yes; then
9430 case $host_os in aix4.[012]|aix4.[012].*)
9431 # We only want to do this on AIX 4.2 and lower, the check
9432 # below for broken collect2 doesn't work under 4.3+
9433 collect2name=`${CC} -print-prog-name=collect2`
9434 if test -f "$collect2name" &&
9435 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9436 then
9437 # We have reworked collect2
9438 :
9439 else
9440 # We have old collect2
9441 hardcode_direct=unsupported
9442 # It fails to find uninstalled libraries when the uninstalled
9443 # path is not listed in the libpath. Setting hardcode_minus_L
9444 # to unsupported forces relinking
9445 hardcode_minus_L=yes
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_libdir_separator=
9448 fi
9449 ;;
9450 esac
9451 shared_flag='-shared'
9452 if test "$aix_use_runtimelinking" = yes; then
9453 shared_flag="$shared_flag "'${wl}-G'
9454 fi
9455 link_all_deplibs=no
9456 else
9457 # not using gcc
9458 if test "$host_cpu" = ia64; then
9459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9460 # chokes on -Wl,-G. The following line is correct:
9461 shared_flag='-G'
9462 else
9463 if test "$aix_use_runtimelinking" = yes; then
9464 shared_flag='${wl}-G'
9465 else
9466 shared_flag='${wl}-bM:SRE'
9467 fi
9468 fi
9469 fi
9470
9471 export_dynamic_flag_spec='${wl}-bexpall'
9472 # It seems that -bexpall does not export symbols beginning with
9473 # underscore (_), so it is better to generate a list of symbols to export.
9474 always_export_symbols=yes
9475 if test "$aix_use_runtimelinking" = yes; then
9476 # Warning - without using the other runtime loading flags (-brtl),
9477 # -berok will link without error, but may produce a broken library.
9478 allow_undefined_flag='-berok'
9479 # Determine the default libpath from the value encoded in an
9480 # empty executable.
9481 if test "${lt_cv_aix_libpath+set}" = set; then
9482 aix_libpath=$lt_cv_aix_libpath
9483 else
9484 if ${lt_cv_aix_libpath_+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489
9490 int
9491 main ()
9492 {
9493
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499
9500 lt_aix_libpath_sed='
9501 /Import File Strings/,/^$/ {
9502 /^0/ {
9503 s/^0 *\([^ ]*\) *$/\1/
9504 p
9505 }
9506 }'
9507 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508 # Check for a 64-bit object if we didn't find anything.
9509 if test -z "$lt_cv_aix_libpath_"; then
9510 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511 fi
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 if test -z "$lt_cv_aix_libpath_"; then
9516 lt_cv_aix_libpath_="/usr/lib:/lib"
9517 fi
9518
9519 fi
9520
9521 aix_libpath=$lt_cv_aix_libpath_
9522 fi
9523
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 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"
9526 else
9527 if test "$host_cpu" = ia64; then
9528 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9529 allow_undefined_flag="-z nodefs"
9530 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"
9531 else
9532 # Determine the default libpath from the value encoded in an
9533 # empty executable.
9534 if test "${lt_cv_aix_libpath+set}" = set; then
9535 aix_libpath=$lt_cv_aix_libpath
9536 else
9537 if ${lt_cv_aix_libpath_+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542
9543 int
9544 main ()
9545 {
9546
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"; then :
9552
9553 lt_aix_libpath_sed='
9554 /Import File Strings/,/^$/ {
9555 /^0/ {
9556 s/^0 *\([^ ]*\) *$/\1/
9557 p
9558 }
9559 }'
9560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561 # Check for a 64-bit object if we didn't find anything.
9562 if test -z "$lt_cv_aix_libpath_"; then
9563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9564 fi
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 if test -z "$lt_cv_aix_libpath_"; then
9569 lt_cv_aix_libpath_="/usr/lib:/lib"
9570 fi
9571
9572 fi
9573
9574 aix_libpath=$lt_cv_aix_libpath_
9575 fi
9576
9577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9578 # Warning - without using the other run time loading flags,
9579 # -berok will link without error, but may produce a broken library.
9580 no_undefined_flag=' ${wl}-bernotok'
9581 allow_undefined_flag=' ${wl}-berok'
9582 if test "$with_gnu_ld" = yes; then
9583 # We only use this code for GNU lds that support --whole-archive.
9584 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9585 else
9586 # Exported symbols can be pulled into shared objects from archives
9587 whole_archive_flag_spec='$convenience'
9588 fi
9589 archive_cmds_need_lc=yes
9590 # This is similar to how AIX traditionally builds its shared libraries.
9591 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'
9592 fi
9593 fi
9594 ;;
9595
9596 amigaos*)
9597 case $host_cpu in
9598 powerpc)
9599 # see comment about AmigaOS4 .so support
9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9601 archive_expsym_cmds=''
9602 ;;
9603 m68k)
9604 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)'
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_minus_L=yes
9607 ;;
9608 esac
9609 ;;
9610
9611 bsdi[45]*)
9612 export_dynamic_flag_spec=-rdynamic
9613 ;;
9614
9615 cygwin* | mingw* | pw32* | cegcc*)
9616 # When not using gcc, we currently assume that we are using
9617 # Microsoft Visual C++.
9618 # hardcode_libdir_flag_spec is actually meaningless, as there is
9619 # no search path for DLLs.
9620 case $cc_basename in
9621 cl*)
9622 # Native MSVC
9623 hardcode_libdir_flag_spec=' '
9624 allow_undefined_flag=unsupported
9625 always_export_symbols=yes
9626 file_list_spec='@'
9627 # Tell ltmain to make .lib files, not .a files.
9628 libext=lib
9629 # Tell ltmain to make .dll files, not .so files.
9630 shrext_cmds=".dll"
9631 # FIXME: Setting linknames here is a bad hack.
9632 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9633 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9634 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9635 else
9636 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9637 fi~
9638 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9639 linknames='
9640 # The linker will not automatically build a static lib if we build a DLL.
9641 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9642 enable_shared_with_static_runtimes=yes
9643 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9645 # Don't use ranlib
9646 old_postinstall_cmds='chmod 644 $oldlib'
9647 postlink_cmds='lt_outputfile="@OUTPUT@"~
9648 lt_tool_outputfile="@TOOL_OUTPUT@"~
9649 case $lt_outputfile in
9650 *.exe|*.EXE) ;;
9651 *)
9652 lt_outputfile="$lt_outputfile.exe"
9653 lt_tool_outputfile="$lt_tool_outputfile.exe"
9654 ;;
9655 esac~
9656 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9657 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9658 $RM "$lt_outputfile.manifest";
9659 fi'
9660 ;;
9661 *)
9662 # Assume MSVC wrapper
9663 hardcode_libdir_flag_spec=' '
9664 allow_undefined_flag=unsupported
9665 # Tell ltmain to make .lib files, not .a files.
9666 libext=lib
9667 # Tell ltmain to make .dll files, not .so files.
9668 shrext_cmds=".dll"
9669 # FIXME: Setting linknames here is a bad hack.
9670 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9671 # The linker will automatically build a .lib file if we build a DLL.
9672 old_archive_from_new_cmds='true'
9673 # FIXME: Should let the user specify the lib program.
9674 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9675 enable_shared_with_static_runtimes=yes
9676 ;;
9677 esac
9678 ;;
9679
9680 darwin* | rhapsody*)
9681
9682
9683 archive_cmds_need_lc=no
9684 hardcode_direct=no
9685 hardcode_automatic=yes
9686 hardcode_shlibpath_var=unsupported
9687 if test "$lt_cv_ld_force_load" = "yes"; then
9688 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\"`'
9689
9690 else
9691 whole_archive_flag_spec=''
9692 fi
9693 link_all_deplibs=yes
9694 allow_undefined_flag="$_lt_dar_allow_undefined"
9695 case $cc_basename in
9696 ifort*) _lt_dar_can_shared=yes ;;
9697 *) _lt_dar_can_shared=$GCC ;;
9698 esac
9699 if test "$_lt_dar_can_shared" = "yes"; then
9700 output_verbose_link_cmd=func_echo_all
9701 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9702 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9703 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}"
9704 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}"
9705
9706 else
9707 ld_shlibs=no
9708 fi
9709
9710 ;;
9711
9712 dgux*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9719 # support. Future versions do this automatically, but an explicit c++rt0.o
9720 # does not break anything, and helps significantly (at the cost of a little
9721 # extra space).
9722 freebsd2.2*)
9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9724 hardcode_libdir_flag_spec='-R$libdir'
9725 hardcode_direct=yes
9726 hardcode_shlibpath_var=no
9727 ;;
9728
9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9730 freebsd2.*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_direct=yes
9733 hardcode_minus_L=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9738 freebsd* | dragonfly*)
9739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec='-R$libdir'
9741 hardcode_direct=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 hpux9*)
9746 if test "$GCC" = yes; then
9747 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'
9748 else
9749 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'
9750 fi
9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator=:
9753 hardcode_direct=yes
9754
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9758 export_dynamic_flag_spec='${wl}-E'
9759 ;;
9760
9761 hpux10*)
9762 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9763 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9764 else
9765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9766 fi
9767 if test "$with_gnu_ld" = no; then
9768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_separator=:
9770 hardcode_direct=yes
9771 hardcode_direct_absolute=yes
9772 export_dynamic_flag_spec='${wl}-E'
9773 # hardcode_minus_L: Not really in the search PATH,
9774 # but as the default location of the library.
9775 hardcode_minus_L=yes
9776 fi
9777 ;;
9778
9779 hpux11*)
9780 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9781 case $host_cpu in
9782 hppa*64*)
9783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 ;;
9785 ia64*)
9786 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9787 ;;
9788 *)
9789 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9790 ;;
9791 esac
9792 else
9793 case $host_cpu in
9794 hppa*64*)
9795 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 ;;
9797 ia64*)
9798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 *)
9801
9802 # Older versions of the 11.00 compiler do not understand -b yet
9803 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9805 $as_echo_n "checking if $CC understands -b... " >&6; }
9806 if ${lt_cv_prog_compiler__b+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 lt_cv_prog_compiler__b=no
9810 save_LDFLAGS="$LDFLAGS"
9811 LDFLAGS="$LDFLAGS -b"
9812 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9813 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9814 # The linker can only warn and ignore the option if not recognized
9815 # So say no if there are warnings
9816 if test -s conftest.err; then
9817 # Append any errors to the config.log.
9818 cat conftest.err 1>&5
9819 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9821 if diff conftest.exp conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler__b=yes
9823 fi
9824 else
9825 lt_cv_prog_compiler__b=yes
9826 fi
9827 fi
9828 $RM -r conftest*
9829 LDFLAGS="$save_LDFLAGS"
9830
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9833 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9834
9835 if test x"$lt_cv_prog_compiler__b" = xyes; then
9836 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9837 else
9838 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9839 fi
9840
9841 ;;
9842 esac
9843 fi
9844 if test "$with_gnu_ld" = no; then
9845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9846 hardcode_libdir_separator=:
9847
9848 case $host_cpu in
9849 hppa*64*|ia64*)
9850 hardcode_direct=no
9851 hardcode_shlibpath_var=no
9852 ;;
9853 *)
9854 hardcode_direct=yes
9855 hardcode_direct_absolute=yes
9856 export_dynamic_flag_spec='${wl}-E'
9857
9858 # hardcode_minus_L: Not really in the search PATH,
9859 # but as the default location of the library.
9860 hardcode_minus_L=yes
9861 ;;
9862 esac
9863 fi
9864 ;;
9865
9866 irix5* | irix6* | nonstopux*)
9867 if test "$GCC" = yes; then
9868 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'
9869 # Try to use the -exported_symbol ld option, if it does not
9870 # work, assume that -exports_file does not work either and
9871 # implicitly export all symbols.
9872 # This should be the same for all languages, so no per-tag cache variable.
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9874 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9875 if ${lt_cv_irix_exported_symbol+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 save_LDFLAGS="$LDFLAGS"
9879 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 int foo (void) { return 0; }
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 lt_cv_irix_exported_symbol=yes
9886 else
9887 lt_cv_irix_exported_symbol=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LDFLAGS="$save_LDFLAGS"
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9894 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9895 if test "$lt_cv_irix_exported_symbol" = yes; then
9896 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'
9897 fi
9898 else
9899 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'
9900 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'
9901 fi
9902 archive_cmds_need_lc='no'
9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9904 hardcode_libdir_separator=:
9905 inherit_rpath=yes
9906 link_all_deplibs=yes
9907 ;;
9908
9909 netbsd* | netbsdelf*-gnu)
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9912 else
9913 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9914 fi
9915 hardcode_libdir_flag_spec='-R$libdir'
9916 hardcode_direct=yes
9917 hardcode_shlibpath_var=no
9918 ;;
9919
9920 newsos6)
9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922 hardcode_direct=yes
9923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9924 hardcode_libdir_separator=:
9925 hardcode_shlibpath_var=no
9926 ;;
9927
9928 *nto* | *qnx*)
9929 ;;
9930
9931 openbsd*)
9932 if test -f /usr/libexec/ld.so; then
9933 hardcode_direct=yes
9934 hardcode_shlibpath_var=no
9935 hardcode_direct_absolute=yes
9936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9940 export_dynamic_flag_spec='${wl}-E'
9941 else
9942 case $host_os in
9943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-R$libdir'
9946 ;;
9947 *)
9948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9950 ;;
9951 esac
9952 fi
9953 else
9954 ld_shlibs=no
9955 fi
9956 ;;
9957
9958 os2*)
9959 hardcode_libdir_flag_spec='-L$libdir'
9960 hardcode_minus_L=yes
9961 allow_undefined_flag=unsupported
9962 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'
9963 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9964 ;;
9965
9966 osf3*)
9967 if test "$GCC" = yes; then
9968 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9969 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'
9970 else
9971 allow_undefined_flag=' -expect_unresolved \*'
9972 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'
9973 fi
9974 archive_cmds_need_lc='no'
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 hardcode_libdir_separator=:
9977 ;;
9978
9979 osf4* | osf5*) # as osf3* with the addition of -msym flag
9980 if test "$GCC" = yes; then
9981 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9982 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'
9983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984 else
9985 allow_undefined_flag=' -expect_unresolved \*'
9986 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'
9987 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~
9988 $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'
9989
9990 # Both c and cxx compiler support -rpath directly
9991 hardcode_libdir_flag_spec='-rpath $libdir'
9992 fi
9993 archive_cmds_need_lc='no'
9994 hardcode_libdir_separator=:
9995 ;;
9996
9997 solaris*)
9998 no_undefined_flag=' -z defs'
9999 if test "$GCC" = yes; then
10000 wlarc='${wl}'
10001 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $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'
10004 else
10005 case `$CC -V 2>&1` in
10006 *"Compilers 5.0"*)
10007 wlarc=''
10008 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10011 ;;
10012 *)
10013 wlarc='${wl}'
10014 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10016 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10017 ;;
10018 esac
10019 fi
10020 hardcode_libdir_flag_spec='-R$libdir'
10021 hardcode_shlibpath_var=no
10022 case $host_os in
10023 solaris2.[0-5] | solaris2.[0-5].*) ;;
10024 *)
10025 # The compiler driver will combine and reorder linker options,
10026 # but understands `-z linker_flag'. GCC discards it without `$wl',
10027 # but is careful enough not to reorder.
10028 # Supported since Solaris 2.6 (maybe 2.5.1?)
10029 if test "$GCC" = yes; then
10030 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10031 else
10032 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10033 fi
10034 ;;
10035 esac
10036 link_all_deplibs=yes
10037 ;;
10038
10039 sunos4*)
10040 if test "x$host_vendor" = xsequent; then
10041 # Use $CC to link under sequent, because it throws in some extra .o
10042 # files that make .init and .fini sections work.
10043 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10044 else
10045 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10046 fi
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_direct=yes
10049 hardcode_minus_L=yes
10050 hardcode_shlibpath_var=no
10051 ;;
10052
10053 sysv4)
10054 case $host_vendor in
10055 sni)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=yes # is this really true???
10058 ;;
10059 siemens)
10060 ## LD is ld it makes a PLAMLIB
10061 ## CC just makes a GrossModule.
10062 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10063 reload_cmds='$CC -r -o $output$reload_objs'
10064 hardcode_direct=no
10065 ;;
10066 motorola)
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10069 ;;
10070 esac
10071 runpath_var='LD_RUN_PATH'
10072 hardcode_shlibpath_var=no
10073 ;;
10074
10075 sysv4.3*)
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_shlibpath_var=no
10078 export_dynamic_flag_spec='-Bexport'
10079 ;;
10080
10081 sysv4*MP*)
10082 if test -d /usr/nec; then
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_shlibpath_var=no
10085 runpath_var=LD_RUN_PATH
10086 hardcode_runpath_var=yes
10087 ld_shlibs=yes
10088 fi
10089 ;;
10090
10091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10092 no_undefined_flag='${wl}-z,text'
10093 archive_cmds_need_lc=no
10094 hardcode_shlibpath_var=no
10095 runpath_var='LD_RUN_PATH'
10096
10097 if test "$GCC" = yes; then
10098 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 else
10101 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 fi
10104 ;;
10105
10106 sysv5* | sco3.2v5* | sco5v6*)
10107 # Note: We can NOT use -z defs as we might desire, because we do not
10108 # link with -lc, and that would cause any symbols used from libc to
10109 # always be unresolved, which means just about no library would
10110 # ever link correctly. If we're not using GNU ld we use -z text
10111 # though, which does catch some bad symbols but isn't as heavy-handed
10112 # as -z defs.
10113 no_undefined_flag='${wl}-z,text'
10114 allow_undefined_flag='${wl}-z,nodefs'
10115 archive_cmds_need_lc=no
10116 hardcode_shlibpath_var=no
10117 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10118 hardcode_libdir_separator=':'
10119 link_all_deplibs=yes
10120 export_dynamic_flag_spec='${wl}-Bexport'
10121 runpath_var='LD_RUN_PATH'
10122
10123 if test "$GCC" = yes; then
10124 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 else
10127 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 fi
10130 ;;
10131
10132 uts4*)
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_libdir_flag_spec='-L$libdir'
10135 hardcode_shlibpath_var=no
10136 ;;
10137
10138 *)
10139 ld_shlibs=no
10140 ;;
10141 esac
10142
10143 if test x$host_vendor = xsni; then
10144 case $host in
10145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10146 export_dynamic_flag_spec='${wl}-Blargedynsym'
10147 ;;
10148 esac
10149 fi
10150 fi
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10153 $as_echo "$ld_shlibs" >&6; }
10154 test "$ld_shlibs" = no && can_build_shared=no
10155
10156 with_gnu_ld=$with_gnu_ld
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172 #
10173 # Do we need to explicitly link libc?
10174 #
10175 case "x$archive_cmds_need_lc" in
10176 x|xyes)
10177 # Assume -lc should be added
10178 archive_cmds_need_lc=yes
10179
10180 if test "$enable_shared" = yes && test "$GCC" = yes; then
10181 case $archive_cmds in
10182 *'~'*)
10183 # FIXME: we may have to deal with multi-command sequences.
10184 ;;
10185 '$CC '*)
10186 # Test whether the compiler implicitly links with -lc since on some
10187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10188 # to ld, don't add -lc before -lgcc.
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10190 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10191 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 $RM conftest*
10195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10198 (eval $ac_compile) 2>&5
10199 ac_status=$?
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; } 2>conftest.err; then
10202 soname=conftest
10203 lib=conftest
10204 libobjs=conftest.$ac_objext
10205 deplibs=
10206 wl=$lt_prog_compiler_wl
10207 pic_flag=$lt_prog_compiler_pic
10208 compiler_flags=-v
10209 linker_flags=-v
10210 verstring=
10211 output_objdir=.
10212 libname=conftest
10213 lt_save_allow_undefined_flag=$allow_undefined_flag
10214 allow_undefined_flag=
10215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10216 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10217 ac_status=$?
10218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10219 test $ac_status = 0; }
10220 then
10221 lt_cv_archive_cmds_need_lc=no
10222 else
10223 lt_cv_archive_cmds_need_lc=yes
10224 fi
10225 allow_undefined_flag=$lt_save_allow_undefined_flag
10226 else
10227 cat conftest.err 1>&5
10228 fi
10229 $RM conftest*
10230
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10233 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10234 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10235 ;;
10236 esac
10237 fi
10238 ;;
10239 esac
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10393 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10394
10395 if test "$GCC" = yes; then
10396 case $host_os in
10397 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10398 *) lt_awk_arg="/^libraries:/" ;;
10399 esac
10400 case $host_os in
10401 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10402 *) lt_sed_strip_eq="s,=/,/,g" ;;
10403 esac
10404 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10405 case $lt_search_path_spec in
10406 *\;*)
10407 # if the path contains ";" then we assume it to be the separator
10408 # otherwise default to the standard path separator (i.e. ":") - it is
10409 # assumed that no part of a normal pathname contains ";" but that should
10410 # okay in the real world where ";" in dirpaths is itself problematic.
10411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10412 ;;
10413 *)
10414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10415 ;;
10416 esac
10417 # Ok, now we have the path, separated by spaces, we can step through it
10418 # and add multilib dir if necessary.
10419 lt_tmp_lt_search_path_spec=
10420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10421 for lt_sys_path in $lt_search_path_spec; do
10422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10424 else
10425 test -d "$lt_sys_path" && \
10426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10427 fi
10428 done
10429 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10430 BEGIN {RS=" "; FS="/|\n";} {
10431 lt_foo="";
10432 lt_count=0;
10433 for (lt_i = NF; lt_i > 0; lt_i--) {
10434 if ($lt_i != "" && $lt_i != ".") {
10435 if ($lt_i == "..") {
10436 lt_count++;
10437 } else {
10438 if (lt_count == 0) {
10439 lt_foo="/" $lt_i lt_foo;
10440 } else {
10441 lt_count--;
10442 }
10443 }
10444 }
10445 }
10446 if (lt_foo != "") { lt_freq[lt_foo]++; }
10447 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10448 }'`
10449 # AWK program above erroneously prepends '/' to C:/dos/paths
10450 # for these hosts.
10451 case $host_os in
10452 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10453 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10454 esac
10455 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10456 else
10457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10458 fi
10459 library_names_spec=
10460 libname_spec='lib$name'
10461 soname_spec=
10462 shrext_cmds=".so"
10463 postinstall_cmds=
10464 postuninstall_cmds=
10465 finish_cmds=
10466 finish_eval=
10467 shlibpath_var=
10468 shlibpath_overrides_runpath=unknown
10469 version_type=none
10470 dynamic_linker="$host_os ld.so"
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10472 need_lib_prefix=unknown
10473 hardcode_into_libs=no
10474
10475 # when you set need_version to no, make sure it does not cause -set_version
10476 # flags to be left without arguments
10477 need_version=unknown
10478
10479 case $host_os in
10480 aix3*)
10481 version_type=linux # correct to gnu/linux during the next big refactor
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10483 shlibpath_var=LIBPATH
10484
10485 # AIX 3 has no versioning support, so we append a major version to the name.
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 ;;
10488
10489 aix[4-9]*)
10490 version_type=linux # correct to gnu/linux during the next big refactor
10491 need_lib_prefix=no
10492 need_version=no
10493 hardcode_into_libs=yes
10494 if test "$host_cpu" = ia64; then
10495 # AIX 5 supports IA64
10496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 else
10499 # With GCC up to 2.95.x, collect2 would create an import file
10500 # for dependence libraries. The import file would start with
10501 # the line `#! .'. This would cause the generated library to
10502 # depend on `.', always an invalid library. This was fixed in
10503 # development snapshots of GCC prior to 3.0.
10504 case $host_os in
10505 aix4 | aix4.[01] | aix4.[01].*)
10506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10507 echo ' yes '
10508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10509 :
10510 else
10511 can_build_shared=no
10512 fi
10513 ;;
10514 esac
10515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10516 # soname into executable. Probably we can add versioning support to
10517 # collect2, so additional links can be useful in future.
10518 if test "$aix_use_runtimelinking" = yes; then
10519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10520 # instead of lib<name>.a to let people know that these are not
10521 # typical AIX shared libraries.
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 else
10524 # We preserve .a as extension for shared libraries through AIX4.2
10525 # and later when we are not doing run time linking.
10526 library_names_spec='${libname}${release}.a $libname.a'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 fi
10529 shlibpath_var=LIBPATH
10530 fi
10531 ;;
10532
10533 amigaos*)
10534 case $host_cpu in
10535 powerpc)
10536 # Since July 2007 AmigaOS4 officially supports .so libraries.
10537 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 ;;
10540 m68k)
10541 library_names_spec='$libname.ixlibrary $libname.a'
10542 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10543 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'
10544 ;;
10545 esac
10546 ;;
10547
10548 beos*)
10549 library_names_spec='${libname}${shared_ext}'
10550 dynamic_linker="$host_os ld.so"
10551 shlibpath_var=LIBRARY_PATH
10552 ;;
10553
10554 bsdi[45]*)
10555 version_type=linux # correct to gnu/linux during the next big refactor
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10563 # the default ld.so.conf also contains /usr/contrib/lib and
10564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10565 # libtool to hard-code these into programs
10566 ;;
10567
10568 cygwin* | mingw* | pw32* | cegcc*)
10569 version_type=windows
10570 shrext_cmds=".dll"
10571 need_version=no
10572 need_lib_prefix=no
10573
10574 case $GCC,$cc_basename in
10575 yes,*)
10576 # gcc
10577 library_names_spec='$libname.dll.a'
10578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10579 postinstall_cmds='base_file=`basename \${file}`~
10580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10581 dldir=$destdir/`dirname \$dlpath`~
10582 test -d \$dldir || mkdir -p \$dldir~
10583 $install_prog $dir/$dlname \$dldir/$dlname~
10584 chmod a+x \$dldir/$dlname~
10585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10587 fi'
10588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10589 dlpath=$dir/\$dldll~
10590 $RM \$dlpath'
10591 shlibpath_overrides_runpath=yes
10592
10593 case $host_os in
10594 cygwin*)
10595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10599 ;;
10600 mingw* | cegcc*)
10601 # MinGW DLLs use traditional 'lib' prefix
10602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603 ;;
10604 pw32*)
10605 # pw32 DLLs use 'pw' prefix rather than 'lib'
10606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 ;;
10608 esac
10609 dynamic_linker='Win32 ld.exe'
10610 ;;
10611
10612 *,cl*)
10613 # Native MSVC
10614 libname_spec='$name'
10615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10616 library_names_spec='${libname}.dll.lib'
10617
10618 case $build_os in
10619 mingw*)
10620 sys_lib_search_path_spec=
10621 lt_save_ifs=$IFS
10622 IFS=';'
10623 for lt_path in $LIB
10624 do
10625 IFS=$lt_save_ifs
10626 # Let DOS variable expansion print the short 8.3 style file name.
10627 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10628 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10629 done
10630 IFS=$lt_save_ifs
10631 # Convert to MSYS style.
10632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10633 ;;
10634 cygwin*)
10635 # Convert to unix form, then to dos form, then back to unix form
10636 # but this time dos style (no spaces!) so that the unix form looks
10637 # like /cygdrive/c/PROGRA~1:/cygdr...
10638 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10639 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10640 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10641 ;;
10642 *)
10643 sys_lib_search_path_spec="$LIB"
10644 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10645 # It is most probably a Windows format PATH.
10646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10647 else
10648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10649 fi
10650 # FIXME: find the short name or the path components, as spaces are
10651 # common. (e.g. "Program Files" -> "PROGRA~1")
10652 ;;
10653 esac
10654
10655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10656 postinstall_cmds='base_file=`basename \${file}`~
10657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10658 dldir=$destdir/`dirname \$dlpath`~
10659 test -d \$dldir || mkdir -p \$dldir~
10660 $install_prog $dir/$dlname \$dldir/$dlname'
10661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10662 dlpath=$dir/\$dldll~
10663 $RM \$dlpath'
10664 shlibpath_overrides_runpath=yes
10665 dynamic_linker='Win32 link.exe'
10666 ;;
10667
10668 *)
10669 # Assume MSVC wrapper
10670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10671 dynamic_linker='Win32 ld.exe'
10672 ;;
10673 esac
10674 # FIXME: first we should search . and the directory the executable is in
10675 shlibpath_var=PATH
10676 ;;
10677
10678 darwin* | rhapsody*)
10679 dynamic_linker="$host_os dyld"
10680 version_type=darwin
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10684 soname_spec='${libname}${release}${major}$shared_ext'
10685 shlibpath_overrides_runpath=yes
10686 shlibpath_var=DYLD_LIBRARY_PATH
10687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10688
10689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10691 ;;
10692
10693 dgux*)
10694 version_type=linux # correct to gnu/linux during the next big refactor
10695 need_lib_prefix=no
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 ;;
10701
10702 freebsd* | dragonfly*)
10703 # DragonFly does not have aout. When/if they implement a new
10704 # versioning mechanism, adjust this.
10705 if test -x /usr/bin/objformat; then
10706 objformat=`/usr/bin/objformat`
10707 else
10708 case $host_os in
10709 freebsd[23].*) objformat=aout ;;
10710 *) objformat=elf ;;
10711 esac
10712 fi
10713 version_type=freebsd-$objformat
10714 case $version_type in
10715 freebsd-elf*)
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10717 need_version=no
10718 need_lib_prefix=no
10719 ;;
10720 freebsd-*)
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10722 need_version=yes
10723 ;;
10724 esac
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_os in
10727 freebsd2.*)
10728 shlibpath_overrides_runpath=yes
10729 ;;
10730 freebsd3.[01]* | freebsdelf3.[01]*)
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10733 ;;
10734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10738 ;;
10739 *) # from 4.6 on, and DragonFly
10740 shlibpath_overrides_runpath=yes
10741 hardcode_into_libs=yes
10742 ;;
10743 esac
10744 ;;
10745
10746 gnu*)
10747 version_type=linux # correct to gnu/linux during the next big refactor
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10755 ;;
10756
10757 haiku*)
10758 version_type=linux # correct to gnu/linux during the next big refactor
10759 need_lib_prefix=no
10760 need_version=no
10761 dynamic_linker="$host_os runtime_loader"
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10767 hardcode_into_libs=yes
10768 ;;
10769
10770 hpux9* | hpux10* | hpux11*)
10771 # Give a soname corresponding to the major version so that dld.sl refuses to
10772 # link against other versions.
10773 version_type=sunos
10774 need_lib_prefix=no
10775 need_version=no
10776 case $host_cpu in
10777 ia64*)
10778 shrext_cmds='.so'
10779 hardcode_into_libs=yes
10780 dynamic_linker="$host_os dld.so"
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 if test "X$HPUX_IA64_MODE" = X32; then
10786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10787 else
10788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10789 fi
10790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10791 ;;
10792 hppa*64*)
10793 shrext_cmds='.sl'
10794 hardcode_into_libs=yes
10795 dynamic_linker="$host_os dld.sl"
10796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10802 ;;
10803 *)
10804 shrext_cmds='.sl'
10805 dynamic_linker="$host_os dld.sl"
10806 shlibpath_var=SHLIB_PATH
10807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 ;;
10811 esac
10812 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10813 postinstall_cmds='chmod 555 $lib'
10814 # or fails outright, so override atomically:
10815 install_override_mode=555
10816 ;;
10817
10818 interix[3-9]*)
10819 version_type=linux # correct to gnu/linux during the next big refactor
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10828 ;;
10829
10830 irix5* | irix6* | nonstopux*)
10831 case $host_os in
10832 nonstopux*) version_type=nonstopux ;;
10833 *)
10834 if test "$lt_cv_prog_gnu_ld" = yes; then
10835 version_type=linux # correct to gnu/linux during the next big refactor
10836 else
10837 version_type=irix
10838 fi ;;
10839 esac
10840 need_lib_prefix=no
10841 need_version=no
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10844 case $host_os in
10845 irix5* | nonstopux*)
10846 libsuff= shlibsuff=
10847 ;;
10848 *)
10849 case $LD in # libtool.m4 will add one of these switches to LD
10850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10851 libsuff= shlibsuff= libmagic=32-bit;;
10852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10853 libsuff=32 shlibsuff=N32 libmagic=N32;;
10854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10856 *) libsuff= shlibsuff= libmagic=never-match;;
10857 esac
10858 ;;
10859 esac
10860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10861 shlibpath_overrides_runpath=no
10862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10864 hardcode_into_libs=yes
10865 ;;
10866
10867 # No shared lib support for Linux oldld, aout, or coff.
10868 linux*oldld* | linux*aout* | linux*coff*)
10869 dynamic_linker=no
10870 ;;
10871
10872 # This must be glibc/ELF.
10873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10874 version_type=linux # correct to gnu/linux during the next big refactor
10875 need_lib_prefix=no
10876 need_version=no
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath=no
10882
10883 # Some binutils ld are patched to set DT_RUNPATH
10884 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 lt_cv_shlibpath_overrides_runpath=no
10888 save_LDFLAGS=$LDFLAGS
10889 save_libdir=$libdir
10890 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10891 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894
10895 int
10896 main ()
10897 {
10898
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10905 lt_cv_shlibpath_overrides_runpath=yes
10906 fi
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LDFLAGS=$save_LDFLAGS
10911 libdir=$save_libdir
10912
10913 fi
10914
10915 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10916
10917 # This implies no fast_install, which is unacceptable.
10918 # Some rework will be needed to allow for fast_install
10919 # before this can be enabled.
10920 hardcode_into_libs=yes
10921
10922 # Append ld.so.conf contents to the search path
10923 if test -f /etc/ld.so.conf; then
10924 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' ' '`
10925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10926 fi
10927
10928 # We used to test for /lib/ld.so.1 and disable shared libraries on
10929 # powerpc, because MkLinux only supported shared libraries with the
10930 # GNU dynamic linker. Since this was broken with cross compilers,
10931 # most powerpc-linux boxes support dynamic linking these days and
10932 # people can always --disable-shared, the test was removed, and we
10933 # assume the GNU/Linux dynamic linker is in use.
10934 dynamic_linker='GNU/Linux ld.so'
10935 ;;
10936
10937 netbsdelf*-gnu)
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10946 dynamic_linker='NetBSD ld.elf_so'
10947 ;;
10948
10949 netbsd*)
10950 version_type=sunos
10951 need_lib_prefix=no
10952 need_version=no
10953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956 dynamic_linker='NetBSD (a.out) ld.so'
10957 else
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 dynamic_linker='NetBSD ld.elf_so'
10961 fi
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10965 ;;
10966
10967 newsos6)
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 ;;
10973
10974 *nto* | *qnx*)
10975 version_type=qnx
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10983 dynamic_linker='ldqnx.so'
10984 ;;
10985
10986 openbsd*)
10987 version_type=sunos
10988 sys_lib_dlsearch_path_spec="/usr/lib"
10989 need_lib_prefix=no
10990 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10991 case $host_os in
10992 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10993 *) need_version=no ;;
10994 esac
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10999 case $host_os in
11000 openbsd2.[89] | openbsd2.[89].*)
11001 shlibpath_overrides_runpath=no
11002 ;;
11003 *)
11004 shlibpath_overrides_runpath=yes
11005 ;;
11006 esac
11007 else
11008 shlibpath_overrides_runpath=yes
11009 fi
11010 ;;
11011
11012 os2*)
11013 libname_spec='$name'
11014 shrext_cmds=".dll"
11015 need_lib_prefix=no
11016 library_names_spec='$libname${shared_ext} $libname.a'
11017 dynamic_linker='OS/2 ld.exe'
11018 shlibpath_var=LIBPATH
11019 ;;
11020
11021 osf3* | osf4* | osf5*)
11022 version_type=osf
11023 need_lib_prefix=no
11024 need_version=no
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11030 ;;
11031
11032 rdos*)
11033 dynamic_linker=no
11034 ;;
11035
11036 solaris*)
11037 version_type=linux # correct to gnu/linux during the next big refactor
11038 need_lib_prefix=no
11039 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 hardcode_into_libs=yes
11045 # ldd complains unless libraries are executable
11046 postinstall_cmds='chmod +x $lib'
11047 ;;
11048
11049 sunos4*)
11050 version_type=sunos
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 if test "$with_gnu_ld" = yes; then
11056 need_lib_prefix=no
11057 fi
11058 need_version=yes
11059 ;;
11060
11061 sysv4 | sysv4.3*)
11062 version_type=linux # correct to gnu/linux during the next big refactor
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 case $host_vendor in
11067 sni)
11068 shlibpath_overrides_runpath=no
11069 need_lib_prefix=no
11070 runpath_var=LD_RUN_PATH
11071 ;;
11072 siemens)
11073 need_lib_prefix=no
11074 ;;
11075 motorola)
11076 need_lib_prefix=no
11077 need_version=no
11078 shlibpath_overrides_runpath=no
11079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11080 ;;
11081 esac
11082 ;;
11083
11084 sysv4*MP*)
11085 if test -d /usr/nec ;then
11086 version_type=linux # correct to gnu/linux during the next big refactor
11087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11088 soname_spec='$libname${shared_ext}.$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 fi
11091 ;;
11092
11093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11094 version_type=freebsd-elf
11095 need_lib_prefix=no
11096 need_version=no
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11101 hardcode_into_libs=yes
11102 if test "$with_gnu_ld" = yes; then
11103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11104 else
11105 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11106 case $host_os in
11107 sco3.2v5*)
11108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11109 ;;
11110 esac
11111 fi
11112 sys_lib_dlsearch_path_spec='/usr/lib'
11113 ;;
11114
11115 tpf*)
11116 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11117 version_type=linux # correct to gnu/linux during the next big refactor
11118 need_lib_prefix=no
11119 need_version=no
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123 hardcode_into_libs=yes
11124 ;;
11125
11126 uts4*)
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 ;;
11132
11133 *)
11134 dynamic_linker=no
11135 ;;
11136 esac
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11138 $as_echo "$dynamic_linker" >&6; }
11139 test "$dynamic_linker" = no && can_build_shared=no
11140
11141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11142 if test "$GCC" = yes; then
11143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11144 fi
11145
11146 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11147 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11148 fi
11149 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11150 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11151 fi
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11245 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11246 hardcode_action=
11247 if test -n "$hardcode_libdir_flag_spec" ||
11248 test -n "$runpath_var" ||
11249 test "X$hardcode_automatic" = "Xyes" ; then
11250
11251 # We can hardcode non-existent directories.
11252 if test "$hardcode_direct" != no &&
11253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11254 # have to relink, otherwise we might link with an installed library
11255 # when we should be linking with a yet-to-be-installed one
11256 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11257 test "$hardcode_minus_L" != no; then
11258 # Linking always hardcodes the temporary library directory.
11259 hardcode_action=relink
11260 else
11261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11262 hardcode_action=immediate
11263 fi
11264 else
11265 # We cannot hardcode anything, or else we can only hardcode existing
11266 # directories.
11267 hardcode_action=unsupported
11268 fi
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11270 $as_echo "$hardcode_action" >&6; }
11271
11272 if test "$hardcode_action" = relink ||
11273 test "$inherit_rpath" = yes; then
11274 # Fast installation is not supported
11275 enable_fast_install=no
11276 elif test "$shlibpath_overrides_runpath" = yes ||
11277 test "$enable_shared" = no; then
11278 # Fast installation is not necessary
11279 enable_fast_install=needless
11280 fi
11281
11282
11283
11284
11285
11286
11287 if test "x$enable_dlopen" != xyes; then
11288 enable_dlopen=unknown
11289 enable_dlopen_self=unknown
11290 enable_dlopen_self_static=unknown
11291 else
11292 lt_cv_dlopen=no
11293 lt_cv_dlopen_libs=
11294
11295 case $host_os in
11296 beos*)
11297 lt_cv_dlopen="load_add_on"
11298 lt_cv_dlopen_libs=
11299 lt_cv_dlopen_self=yes
11300 ;;
11301
11302 mingw* | pw32* | cegcc*)
11303 lt_cv_dlopen="LoadLibrary"
11304 lt_cv_dlopen_libs=
11305 ;;
11306
11307 cygwin*)
11308 lt_cv_dlopen="dlopen"
11309 lt_cv_dlopen_libs=
11310 ;;
11311
11312 darwin*)
11313 # if libdl is installed we need to link against it
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11316 if ${ac_cv_lib_dl_dlopen+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldl $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char dlopen ();
11331 int
11332 main ()
11333 {
11334 return dlopen ();
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_dl_dlopen=yes
11341 else
11342 ac_cv_lib_dl_dlopen=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11350 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11352 else
11353
11354 lt_cv_dlopen="dyld"
11355 lt_cv_dlopen_libs=
11356 lt_cv_dlopen_self=yes
11357
11358 fi
11359
11360 ;;
11361
11362 *)
11363 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11364 if test "x$ac_cv_func_shl_load" = xyes; then :
11365 lt_cv_dlopen="shl_load"
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11368 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11369 if ${ac_cv_lib_dld_shl_load+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-ldld $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char shl_load ();
11384 int
11385 main ()
11386 {
11387 return shl_load ();
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_dld_shl_load=yes
11394 else
11395 ac_cv_lib_dld_shl_load=no
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11402 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11403 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11405 else
11406 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11407 if test "x$ac_cv_func_dlopen" = xyes; then :
11408 lt_cv_dlopen="dlopen"
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11411 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11412 if ${ac_cv_lib_dl_dlopen+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_lib_save_LIBS=$LIBS
11416 LIBS="-ldl $LIBS"
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11419
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 char dlopen ();
11427 int
11428 main ()
11429 {
11430 return dlopen ();
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_lib_dl_dlopen=yes
11437 else
11438 ac_cv_lib_dl_dlopen=no
11439 fi
11440 rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11445 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11446 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11450 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11451 if ${ac_cv_lib_svld_dlopen+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-lsvld $LIBS"
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458
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 dlopen ();
11466 int
11467 main ()
11468 {
11469 return dlopen ();
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_lib_svld_dlopen=yes
11476 else
11477 ac_cv_lib_svld_dlopen=no
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11484 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11485 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11489 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11490 if ${ac_cv_lib_dld_dld_link+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_check_lib_save_LIBS=$LIBS
11494 LIBS="-ldld $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char dld_link ();
11505 int
11506 main ()
11507 {
11508 return dld_link ();
11509 ;
11510 return 0;
11511 }
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dld_dld_link=yes
11515 else
11516 ac_cv_lib_dld_dld_link=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11523 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11524 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11526 fi
11527
11528
11529 fi
11530
11531
11532 fi
11533
11534
11535 fi
11536
11537
11538 fi
11539
11540
11541 fi
11542
11543 ;;
11544 esac
11545
11546 if test "x$lt_cv_dlopen" != xno; then
11547 enable_dlopen=yes
11548 else
11549 enable_dlopen=no
11550 fi
11551
11552 case $lt_cv_dlopen in
11553 dlopen)
11554 save_CPPFLAGS="$CPPFLAGS"
11555 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11556
11557 save_LDFLAGS="$LDFLAGS"
11558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11559
11560 save_LIBS="$LIBS"
11561 LIBS="$lt_cv_dlopen_libs $LIBS"
11562
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11564 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11565 if ${lt_cv_dlopen_self+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 if test "$cross_compiling" = yes; then :
11569 lt_cv_dlopen_self=cross
11570 else
11571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572 lt_status=$lt_dlunknown
11573 cat > conftest.$ac_ext <<_LT_EOF
11574 #line $LINENO "configure"
11575 #include "confdefs.h"
11576
11577 #if HAVE_DLFCN_H
11578 #include <dlfcn.h>
11579 #endif
11580
11581 #include <stdio.h>
11582
11583 #ifdef RTLD_GLOBAL
11584 # define LT_DLGLOBAL RTLD_GLOBAL
11585 #else
11586 # ifdef DL_GLOBAL
11587 # define LT_DLGLOBAL DL_GLOBAL
11588 # else
11589 # define LT_DLGLOBAL 0
11590 # endif
11591 #endif
11592
11593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595 #ifndef LT_DLLAZY_OR_NOW
11596 # ifdef RTLD_LAZY
11597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11598 # else
11599 # ifdef DL_LAZY
11600 # define LT_DLLAZY_OR_NOW DL_LAZY
11601 # else
11602 # ifdef RTLD_NOW
11603 # define LT_DLLAZY_OR_NOW RTLD_NOW
11604 # else
11605 # ifdef DL_NOW
11606 # define LT_DLLAZY_OR_NOW DL_NOW
11607 # else
11608 # define LT_DLLAZY_OR_NOW 0
11609 # endif
11610 # endif
11611 # endif
11612 # endif
11613 #endif
11614
11615 /* When -fvisbility=hidden is used, assume the code has been annotated
11616 correspondingly for the symbols needed. */
11617 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11618 int fnord () __attribute__((visibility("default")));
11619 #endif
11620
11621 int fnord () { return 42; }
11622 int main ()
11623 {
11624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11625 int status = $lt_dlunknown;
11626
11627 if (self)
11628 {
11629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11630 else
11631 {
11632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11633 else puts (dlerror ());
11634 }
11635 /* dlclose (self); */
11636 }
11637 else
11638 puts (dlerror ());
11639
11640 return status;
11641 }
11642 _LT_EOF
11643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11644 (eval $ac_link) 2>&5
11645 ac_status=$?
11646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11647 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11648 (./conftest; exit; ) >&5 2>/dev/null
11649 lt_status=$?
11650 case x$lt_status in
11651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11653 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11654 esac
11655 else :
11656 # compilation failed
11657 lt_cv_dlopen_self=no
11658 fi
11659 fi
11660 rm -fr conftest*
11661
11662
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11665 $as_echo "$lt_cv_dlopen_self" >&6; }
11666
11667 if test "x$lt_cv_dlopen_self" = xyes; then
11668 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11670 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11671 if ${lt_cv_dlopen_self_static+:} false; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 if test "$cross_compiling" = yes; then :
11675 lt_cv_dlopen_self_static=cross
11676 else
11677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11678 lt_status=$lt_dlunknown
11679 cat > conftest.$ac_ext <<_LT_EOF
11680 #line $LINENO "configure"
11681 #include "confdefs.h"
11682
11683 #if HAVE_DLFCN_H
11684 #include <dlfcn.h>
11685 #endif
11686
11687 #include <stdio.h>
11688
11689 #ifdef RTLD_GLOBAL
11690 # define LT_DLGLOBAL RTLD_GLOBAL
11691 #else
11692 # ifdef DL_GLOBAL
11693 # define LT_DLGLOBAL DL_GLOBAL
11694 # else
11695 # define LT_DLGLOBAL 0
11696 # endif
11697 #endif
11698
11699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11700 find out it does not work in some platform. */
11701 #ifndef LT_DLLAZY_OR_NOW
11702 # ifdef RTLD_LAZY
11703 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11704 # else
11705 # ifdef DL_LAZY
11706 # define LT_DLLAZY_OR_NOW DL_LAZY
11707 # else
11708 # ifdef RTLD_NOW
11709 # define LT_DLLAZY_OR_NOW RTLD_NOW
11710 # else
11711 # ifdef DL_NOW
11712 # define LT_DLLAZY_OR_NOW DL_NOW
11713 # else
11714 # define LT_DLLAZY_OR_NOW 0
11715 # endif
11716 # endif
11717 # endif
11718 # endif
11719 #endif
11720
11721 /* When -fvisbility=hidden is used, assume the code has been annotated
11722 correspondingly for the symbols needed. */
11723 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11724 int fnord () __attribute__((visibility("default")));
11725 #endif
11726
11727 int fnord () { return 42; }
11728 int main ()
11729 {
11730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11731 int status = $lt_dlunknown;
11732
11733 if (self)
11734 {
11735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11736 else
11737 {
11738 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11739 else puts (dlerror ());
11740 }
11741 /* dlclose (self); */
11742 }
11743 else
11744 puts (dlerror ());
11745
11746 return status;
11747 }
11748 _LT_EOF
11749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11750 (eval $ac_link) 2>&5
11751 ac_status=$?
11752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11753 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11754 (./conftest; exit; ) >&5 2>/dev/null
11755 lt_status=$?
11756 case x$lt_status in
11757 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11758 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11759 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11760 esac
11761 else :
11762 # compilation failed
11763 lt_cv_dlopen_self_static=no
11764 fi
11765 fi
11766 rm -fr conftest*
11767
11768
11769 fi
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11771 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11772 fi
11773
11774 CPPFLAGS="$save_CPPFLAGS"
11775 LDFLAGS="$save_LDFLAGS"
11776 LIBS="$save_LIBS"
11777 ;;
11778 esac
11779
11780 case $lt_cv_dlopen_self in
11781 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11782 *) enable_dlopen_self=unknown ;;
11783 esac
11784
11785 case $lt_cv_dlopen_self_static in
11786 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11787 *) enable_dlopen_self_static=unknown ;;
11788 esac
11789 fi
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 striplib=
11808 old_striplib=
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11810 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11811 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11812 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11813 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11815 $as_echo "yes" >&6; }
11816 else
11817 # FIXME - insert some real tests, host_os isn't really good enough
11818 case $host_os in
11819 darwin*)
11820 if test -n "$STRIP" ; then
11821 striplib="$STRIP -x"
11822 old_striplib="$STRIP -S"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11824 $as_echo "yes" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829 ;;
11830 *)
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11833 ;;
11834 esac
11835 fi
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 # Report which library types will actually be built
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11850 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11852 $as_echo "$can_build_shared" >&6; }
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11855 $as_echo_n "checking whether to build shared libraries... " >&6; }
11856 test "$can_build_shared" = "no" && enable_shared=no
11857
11858 # On AIX, shared libraries and static libraries use the same namespace, and
11859 # are all built from PIC.
11860 case $host_os in
11861 aix3*)
11862 test "$enable_shared" = yes && enable_static=no
11863 if test -n "$RANLIB"; then
11864 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11865 postinstall_cmds='$RANLIB $lib'
11866 fi
11867 ;;
11868
11869 aix[4-9]*)
11870 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11871 test "$enable_shared" = yes && enable_static=no
11872 fi
11873 ;;
11874 esac
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11876 $as_echo "$enable_shared" >&6; }
11877
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11879 $as_echo_n "checking whether to build static libraries... " >&6; }
11880 # Make sure either enable_shared or enable_static is yes.
11881 test "$enable_shared" = yes || enable_static=yes
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11883 $as_echo "$enable_static" >&6; }
11884
11885
11886
11887
11888 fi
11889 ac_ext=c
11890 ac_cpp='$CPP $CPPFLAGS'
11891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894
11895 CC="$lt_save_CC"
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911 ac_config_commands="$ac_config_commands libtool"
11912
11913
11914
11915
11916 # Only expand once:
11917
11918
11919
11920
11921
11922 if test "$enable_libevent_regress" = "yes"; then
11923 BUILD_REGRESS_TRUE=
11924 BUILD_REGRESS_FALSE='#'
11925 else
11926 BUILD_REGRESS_TRUE='#'
11927 BUILD_REGRESS_FALSE=
11928 fi
11929
11930
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11932 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
11933 if ${ac_cv_search_inet_ntoa+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 ac_func_search_save_LIBS=$LIBS
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char inet_ntoa ();
11947 int
11948 main ()
11949 {
11950 return inet_ntoa ();
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 for ac_lib in '' nsl; do
11956 if test -z "$ac_lib"; then
11957 ac_res="none required"
11958 else
11959 ac_res=-l$ac_lib
11960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11961 fi
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_search_inet_ntoa=$ac_res
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext
11967 if ${ac_cv_search_inet_ntoa+:} false; then :
11968 break
11969 fi
11970 done
11971 if ${ac_cv_search_inet_ntoa+:} false; then :
11972
11973 else
11974 ac_cv_search_inet_ntoa=no
11975 fi
11976 rm conftest.$ac_ext
11977 LIBS=$ac_func_search_save_LIBS
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
11980 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
11981 ac_res=$ac_cv_search_inet_ntoa
11982 if test "$ac_res" != no; then :
11983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11984
11985 fi
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11988 $as_echo_n "checking for library containing socket... " >&6; }
11989 if ${ac_cv_search_socket+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 ac_func_search_save_LIBS=$LIBS
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char socket ();
12003 int
12004 main ()
12005 {
12006 return socket ();
12007 ;
12008 return 0;
12009 }
12010 _ACEOF
12011 for ac_lib in '' socket; do
12012 if test -z "$ac_lib"; then
12013 ac_res="none required"
12014 else
12015 ac_res=-l$ac_lib
12016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12017 fi
12018 if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_search_socket=$ac_res
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext
12023 if ${ac_cv_search_socket+:} false; then :
12024 break
12025 fi
12026 done
12027 if ${ac_cv_search_socket+:} false; then :
12028
12029 else
12030 ac_cv_search_socket=no
12031 fi
12032 rm conftest.$ac_ext
12033 LIBS=$ac_func_search_save_LIBS
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12036 $as_echo "$ac_cv_search_socket" >&6; }
12037 ac_res=$ac_cv_search_socket
12038 if test "$ac_res" != no; then :
12039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12040
12041 fi
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12044 $as_echo_n "checking for library containing inet_aton... " >&6; }
12045 if ${ac_cv_search_inet_aton+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 ac_func_search_save_LIBS=$LIBS
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char inet_aton ();
12059 int
12060 main ()
12061 {
12062 return inet_aton ();
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 for ac_lib in '' resolv; do
12068 if test -z "$ac_lib"; then
12069 ac_res="none required"
12070 else
12071 ac_res=-l$ac_lib
12072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12073 fi
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_search_inet_aton=$ac_res
12076 fi
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext
12079 if ${ac_cv_search_inet_aton+:} false; then :
12080 break
12081 fi
12082 done
12083 if ${ac_cv_search_inet_aton+:} false; then :
12084
12085 else
12086 ac_cv_search_inet_aton=no
12087 fi
12088 rm conftest.$ac_ext
12089 LIBS=$ac_func_search_save_LIBS
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12092 $as_echo "$ac_cv_search_inet_aton" >&6; }
12093 ac_res=$ac_cv_search_inet_aton
12094 if test "$ac_res" != no; then :
12095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12096
12097 fi
12098
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12100 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12101 if ${ac_cv_search_clock_gettime+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 ac_func_search_save_LIBS=$LIBS
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 char clock_gettime ();
12115 int
12116 main ()
12117 {
12118 return clock_gettime ();
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 for ac_lib in '' rt; do
12124 if test -z "$ac_lib"; then
12125 ac_res="none required"
12126 else
12127 ac_res=-l$ac_lib
12128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12129 fi
12130 if ac_fn_c_try_link "$LINENO"; then :
12131 ac_cv_search_clock_gettime=$ac_res
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext
12135 if ${ac_cv_search_clock_gettime+:} false; then :
12136 break
12137 fi
12138 done
12139 if ${ac_cv_search_clock_gettime+:} false; then :
12140
12141 else
12142 ac_cv_search_clock_gettime=no
12143 fi
12144 rm conftest.$ac_ext
12145 LIBS=$ac_func_search_save_LIBS
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12148 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12149 ac_res=$ac_cv_search_clock_gettime
12150 if test "$ac_res" != no; then :
12151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12152
12153 fi
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12156 $as_echo_n "checking for library containing sendfile... " >&6; }
12157 if ${ac_cv_search_sendfile+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 ac_func_search_save_LIBS=$LIBS
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char sendfile ();
12171 int
12172 main ()
12173 {
12174 return sendfile ();
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 for ac_lib in '' sendfile; do
12180 if test -z "$ac_lib"; then
12181 ac_res="none required"
12182 else
12183 ac_res=-l$ac_lib
12184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12185 fi
12186 if ac_fn_c_try_link "$LINENO"; then :
12187 ac_cv_search_sendfile=$ac_res
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext
12191 if ${ac_cv_search_sendfile+:} false; then :
12192 break
12193 fi
12194 done
12195 if ${ac_cv_search_sendfile+:} false; then :
12196
12197 else
12198 ac_cv_search_sendfile=no
12199 fi
12200 rm conftest.$ac_ext
12201 LIBS=$ac_func_search_save_LIBS
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12204 $as_echo "$ac_cv_search_sendfile" >&6; }
12205 ac_res=$ac_cv_search_sendfile
12206 if test "$ac_res" != no; then :
12207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12208
12209 fi
12210
12211
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12213 $as_echo_n "checking for WIN32... " >&6; }
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216
12217 int
12218 main ()
12219 {
12220
12221 #ifndef WIN32
12222 die horribly
12223 #endif
12224
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_compile "$LINENO"; then :
12230 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12231 $as_echo "yes" >&6; }
12232 else
12233 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12239 $as_echo_n "checking for CYGWIN... " >&6; }
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242
12243 int
12244 main ()
12245 {
12246
12247 #ifndef __CYGWIN__
12248 die horribly
12249 #endif
12250
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12258 else
12259 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263
12264 for ac_header in zlib.h
12265 do :
12266 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12267 if test "x$ac_cv_header_zlib_h" = xyes; then :
12268 cat >>confdefs.h <<_ACEOF
12269 @%:@define HAVE_ZLIB_H 1
12270 _ACEOF
12271
12272 fi
12273
12274 done
12275
12276
12277 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12278 save_LIBS="$LIBS"
12279 LIBS=""
12280 ZLIB_LIBS=""
12281 have_zlib=no
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12283 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12284 if ${ac_cv_search_inflateEnd+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 ac_func_search_save_LIBS=$LIBS
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12294 #ifdef __cplusplus
12295 extern "C"
12296 #endif
12297 char inflateEnd ();
12298 int
12299 main ()
12300 {
12301 return inflateEnd ();
12302 ;
12303 return 0;
12304 }
12305 _ACEOF
12306 for ac_lib in '' z; do
12307 if test -z "$ac_lib"; then
12308 ac_res="none required"
12309 else
12310 ac_res=-l$ac_lib
12311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12312 fi
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_search_inflateEnd=$ac_res
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext
12318 if ${ac_cv_search_inflateEnd+:} false; then :
12319 break
12320 fi
12321 done
12322 if ${ac_cv_search_inflateEnd+:} false; then :
12323
12324 else
12325 ac_cv_search_inflateEnd=no
12326 fi
12327 rm conftest.$ac_ext
12328 LIBS=$ac_func_search_save_LIBS
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12331 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12332 ac_res=$ac_cv_search_inflateEnd
12333 if test "$ac_res" != no; then :
12334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12335 have_zlib=yes
12336 ZLIB_LIBS="$LIBS"
12337
12338 $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
12339
12340 fi
12341
12342 LIBS="$save_LIBS"
12343
12344 fi
12345 if test "$have_zlib" = "yes"; then
12346 ZLIB_REGRESS_TRUE=
12347 ZLIB_REGRESS_FALSE='#'
12348 else
12349 ZLIB_REGRESS_TRUE='#'
12350 ZLIB_REGRESS_FALSE=
12351 fi
12352
12353
12354 if test "$bwin32" = true; then
12355 EV_LIB_WS32=-lws2_32
12356 EV_LIB_GDI=-lgdi32
12357 else
12358 EV_LIB_WS32=
12359 EV_LIB_GDI=
12360 fi
12361
12362
12363
12364
12365 for ac_header in openssl/bio.h
12366 do :
12367 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12368 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12369 cat >>confdefs.h <<_ACEOF
12370 @%:@define HAVE_OPENSSL_BIO_H 1
12371 _ACEOF
12372
12373 fi
12374
12375 done
12376
12377
12378 if test "$enable_openssl" = "yes"; then
12379 save_LIBS="$LIBS"
12380 LIBS=""
12381 OPENSSL_LIBS=""
12382 have_openssl=no
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12384 $as_echo_n "checking for library containing SSL_new... " >&6; }
12385 if ${ac_cv_search_SSL_new+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 ac_func_search_save_LIBS=$LIBS
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12391
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char SSL_new ();
12399 int
12400 main ()
12401 {
12402 return SSL_new ();
12403 ;
12404 return 0;
12405 }
12406 _ACEOF
12407 for ac_lib in '' ssl; do
12408 if test -z "$ac_lib"; then
12409 ac_res="none required"
12410 else
12411 ac_res=-l$ac_lib
12412 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12413 fi
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_search_SSL_new=$ac_res
12416 fi
12417 rm -f core conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext
12419 if ${ac_cv_search_SSL_new+:} false; then :
12420 break
12421 fi
12422 done
12423 if ${ac_cv_search_SSL_new+:} false; then :
12424
12425 else
12426 ac_cv_search_SSL_new=no
12427 fi
12428 rm conftest.$ac_ext
12429 LIBS=$ac_func_search_save_LIBS
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12432 $as_echo "$ac_cv_search_SSL_new" >&6; }
12433 ac_res=$ac_cv_search_SSL_new
12434 if test "$ac_res" != no; then :
12435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12436 have_openssl=yes
12437 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12438
12439 $as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h
12440
12441 else
12442 have_openssl=no
12443 fi
12444
12445 LIBS="$save_LIBS"
12446
12447 fi
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12450 $as_echo_n "checking for ANSI C header files... " >&6; }
12451 if ${ac_cv_header_stdc+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include <stdlib.h>
12457 #include <stdarg.h>
12458 #include <string.h>
12459 #include <float.h>
12460
12461 int
12462 main ()
12463 {
12464
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 ac_cv_header_stdc=yes
12471 else
12472 ac_cv_header_stdc=no
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475
12476 if test $ac_cv_header_stdc = yes; then
12477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 #include <string.h>
12481
12482 _ACEOF
12483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12484 $EGREP "memchr" >/dev/null 2>&1; then :
12485
12486 else
12487 ac_cv_header_stdc=no
12488 fi
12489 rm -f conftest*
12490
12491 fi
12492
12493 if test $ac_cv_header_stdc = yes; then
12494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 #include <stdlib.h>
12498
12499 _ACEOF
12500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12501 $EGREP "free" >/dev/null 2>&1; then :
12502
12503 else
12504 ac_cv_header_stdc=no
12505 fi
12506 rm -f conftest*
12507
12508 fi
12509
12510 if test $ac_cv_header_stdc = yes; then
12511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12512 if test "$cross_compiling" = yes; then :
12513 :
12514 else
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 #include <ctype.h>
12518 #include <stdlib.h>
12519 #if ((' ' & 0x0FF) == 0x020)
12520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12522 #else
12523 # define ISLOWER(c) \
12524 (('a' <= (c) && (c) <= 'i') \
12525 || ('j' <= (c) && (c) <= 'r') \
12526 || ('s' <= (c) && (c) <= 'z'))
12527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12528 #endif
12529
12530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12531 int
12532 main ()
12533 {
12534 int i;
12535 for (i = 0; i < 256; i++)
12536 if (XOR (islower (i), ISLOWER (i))
12537 || toupper (i) != TOUPPER (i))
12538 return 2;
12539 return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_run "$LINENO"; then :
12543
12544 else
12545 ac_cv_header_stdc=no
12546 fi
12547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12548 conftest.$ac_objext conftest.beam conftest.$ac_ext
12549 fi
12550
12551 fi
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12554 $as_echo "$ac_cv_header_stdc" >&6; }
12555 if test $ac_cv_header_stdc = yes; then
12556
12557 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12558
12559 fi
12560
12561 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
12562 do :
12563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12566 cat >>confdefs.h <<_ACEOF
12567 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568 _ACEOF
12569
12570 fi
12571
12572 done
12573
12574 for ac_header in sys/sysctl.h
12575 do :
12576 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12577 #ifdef HAVE_SYS_PARAM_H
12578 #include <sys/param.h>
12579 #endif
12580
12581 "
12582 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12583 cat >>confdefs.h <<_ACEOF
12584 @%:@define HAVE_SYS_SYSCTL_H 1
12585 _ACEOF
12586
12587 fi
12588
12589 done
12590
12591 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12593 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596
12597 #include <sys/queue.h>
12598 #ifdef TAILQ_FOREACH
12599 yes
12600 #endif
12601
12602 _ACEOF
12603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12604 $EGREP "yes" >/dev/null 2>&1; then :
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12607
12608 $as_echo "@%:@define HAVE_TAILQFOREACH 1" >>confdefs.h
12609
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613
12614 fi
12615 rm -f conftest*
12616
12617 fi
12618
12619 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12621 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624
12625 #include <sys/time.h>
12626 #ifdef timeradd
12627 yes
12628 #endif
12629
12630 _ACEOF
12631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12632 $EGREP "yes" >/dev/null 2>&1; then :
12633
12634 $as_echo "@%:@define HAVE_TIMERADD 1" >>confdefs.h
12635
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637 $as_echo "yes" >&6; }
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12641
12642 fi
12643 rm -f conftest*
12644
12645 fi
12646
12647 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12649 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652
12653 #include <sys/time.h>
12654 #ifdef timercmp
12655 yes
12656 #endif
12657
12658 _ACEOF
12659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660 $EGREP "yes" >/dev/null 2>&1; then :
12661
12662 $as_echo "@%:@define HAVE_TIMERCMP 1" >>confdefs.h
12663
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669
12670 fi
12671 rm -f conftest*
12672
12673 fi
12674
12675 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12677 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680
12681 #include <sys/time.h>
12682 #ifdef timerclear
12683 yes
12684 #endif
12685
12686 _ACEOF
12687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12688 $EGREP "yes" >/dev/null 2>&1; then :
12689
12690 $as_echo "@%:@define HAVE_TIMERCLEAR 1" >>confdefs.h
12691
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697
12698 fi
12699 rm -f conftest*
12700
12701 fi
12702
12703 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12705 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708
12709 #include <sys/time.h>
12710 #ifdef timerisset
12711 yes
12712 #endif
12713
12714 _ACEOF
12715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12716 $EGREP "yes" >/dev/null 2>&1; then :
12717
12718 $as_echo "@%:@define HAVE_TIMERISSET 1" >>confdefs.h
12719
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12721 $as_echo "yes" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12725
12726 fi
12727 rm -f conftest*
12728
12729 fi
12730
12731 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12732 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12733 #include <sys/sysctl.h>
12734
12735 "
12736 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12737 ac_have_decl=1
12738 else
12739 ac_have_decl=0
12740 fi
12741
12742 cat >>confdefs.h <<_ACEOF
12743 @%:@define HAVE_DECL_CTL_KERN $ac_have_decl
12744 _ACEOF
12745 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12746 #include <sys/sysctl.h>
12747
12748 "
12749 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12750 ac_have_decl=1
12751 else
12752 ac_have_decl=0
12753 fi
12754
12755 cat >>confdefs.h <<_ACEOF
12756 @%:@define HAVE_DECL_KERN_RANDOM $ac_have_decl
12757 _ACEOF
12758 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12759 #include <sys/sysctl.h>
12760
12761 "
12762 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12763 ac_have_decl=1
12764 else
12765 ac_have_decl=0
12766 fi
12767
12768 cat >>confdefs.h <<_ACEOF
12769 @%:@define HAVE_DECL_RANDOM_UUID $ac_have_decl
12770 _ACEOF
12771 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12772 #include <sys/sysctl.h>
12773
12774 "
12775 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12776 ac_have_decl=1
12777 else
12778 ac_have_decl=0
12779 fi
12780
12781 cat >>confdefs.h <<_ACEOF
12782 @%:@define HAVE_DECL_KERN_ARND $ac_have_decl
12783 _ACEOF
12784
12785 fi
12786
12787 if test x$bwin32 = xtrue; then
12788 BUILD_WIN32_TRUE=
12789 BUILD_WIN32_FALSE='#'
12790 else
12791 BUILD_WIN32_TRUE='#'
12792 BUILD_WIN32_FALSE=
12793 fi
12794
12795 if test x$cygwin = xtrue; then
12796 BUILD_CYGWIN_TRUE=
12797 BUILD_CYGWIN_FALSE='#'
12798 else
12799 BUILD_CYGWIN_TRUE='#'
12800 BUILD_CYGWIN_FALSE=
12801 fi
12802
12803 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12804 BUILD_WITH_NO_UNDEFINED_TRUE=
12805 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12806 else
12807 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12808 BUILD_WITH_NO_UNDEFINED_FALSE=
12809 fi
12810
12811
12812 if test x$bwin32 = xtrue; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12814 $as_echo_n "checking for library containing getservbyname... " >&6; }
12815 if ${ac_cv_search_getservbyname+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 ac_func_search_save_LIBS=$LIBS
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 char getservbyname ();
12829 int
12830 main ()
12831 {
12832 return getservbyname ();
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 for ac_lib in '' ws2_32; do
12838 if test -z "$ac_lib"; then
12839 ac_res="none required"
12840 else
12841 ac_res=-l$ac_lib
12842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12843 fi
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_search_getservbyname=$ac_res
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext \
12848 conftest$ac_exeext
12849 if ${ac_cv_search_getservbyname+:} false; then :
12850 break
12851 fi
12852 done
12853 if ${ac_cv_search_getservbyname+:} false; then :
12854
12855 else
12856 ac_cv_search_getservbyname=no
12857 fi
12858 rm conftest.$ac_ext
12859 LIBS=$ac_func_search_save_LIBS
12860 fi
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12862 $as_echo "$ac_cv_search_getservbyname" >&6; }
12863 ac_res=$ac_cv_search_getservbyname
12864 if test "$ac_res" != no; then :
12865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12866
12867 fi
12868
12869 fi
12870
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12872 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12873 if ${ac_cv_c_const+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878
12879 int
12880 main ()
12881 {
12882 /* FIXME: Include the comments suggested by Paul. */
12883 #ifndef __cplusplus
12884 /* Ultrix mips cc rejects this. */
12885 typedef int charset[2];
12886 const charset cs;
12887 /* SunOS 4.1.1 cc rejects this. */
12888 char const *const *pcpcc;
12889 char **ppc;
12890 /* NEC SVR4.0.2 mips cc rejects this. */
12891 struct point {int x, y;};
12892 static struct point const zero = {0,0};
12893 /* AIX XL C 1.02.0.0 rejects this.
12894 It does not let you subtract one const X* pointer from another in
12895 an arm of an if-expression whose if-part is not a constant
12896 expression */
12897 const char *g = "string";
12898 pcpcc = &g + (g ? g-g : 0);
12899 /* HPUX 7.0 cc rejects these. */
12900 ++pcpcc;
12901 ppc = (char**) pcpcc;
12902 pcpcc = (char const *const *) ppc;
12903 { /* SCO 3.2v4 cc rejects this. */
12904 char *t;
12905 char const *s = 0 ? (char *) 0 : (char const *) 0;
12906
12907 *t++ = 0;
12908 if (s) return 0;
12909 }
12910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12911 int x[] = {25, 17};
12912 const int *foo = &x[0];
12913 ++foo;
12914 }
12915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12916 typedef const int *iptr;
12917 iptr p = 0;
12918 ++p;
12919 }
12920 { /* AIX XL C 1.02.0.0 rejects this saying
12921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12922 struct s { int j; const int *ap[3]; };
12923 struct s *b; b->j = 5;
12924 }
12925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12926 const int foo = 10;
12927 if (!foo) return 0;
12928 }
12929 return !cs[0] && !zero.x;
12930 #endif
12931
12932 ;
12933 return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937 ac_cv_c_const=yes
12938 else
12939 ac_cv_c_const=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12944 $as_echo "$ac_cv_c_const" >&6; }
12945 if test $ac_cv_c_const = no; then
12946
12947 $as_echo "@%:@define const /**/" >>confdefs.h
12948
12949 fi
12950
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12952 $as_echo_n "checking for inline... " >&6; }
12953 if ${ac_cv_c_inline+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 ac_cv_c_inline=no
12957 for ac_kw in inline __inline__ __inline; do
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960 #ifndef __cplusplus
12961 typedef int foo_t;
12962 static $ac_kw foo_t static_foo () {return 0; }
12963 $ac_kw foo_t foo () {return 0; }
12964 #endif
12965
12966 _ACEOF
12967 if ac_fn_c_try_compile "$LINENO"; then :
12968 ac_cv_c_inline=$ac_kw
12969 fi
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 test "$ac_cv_c_inline" != no && break
12972 done
12973
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12976 $as_echo "$ac_cv_c_inline" >&6; }
12977
12978 case $ac_cv_c_inline in
12979 inline | yes) ;;
12980 *)
12981 case $ac_cv_c_inline in
12982 no) ac_val=;;
12983 *) ac_val=$ac_cv_c_inline;;
12984 esac
12985 cat >>confdefs.h <<_ACEOF
12986 #ifndef __cplusplus
12987 #define inline $ac_val
12988 #endif
12989 _ACEOF
12990 ;;
12991 esac
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12994 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12995 if ${ac_cv_header_time+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 #include <sys/types.h>
13001 #include <sys/time.h>
13002 #include <time.h>
13003
13004 int
13005 main ()
13006 {
13007 if ((struct tm *) 0)
13008 return 0;
13009 ;
13010 return 0;
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_compile "$LINENO"; then :
13014 ac_cv_header_time=yes
13015 else
13016 ac_cv_header_time=no
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13021 $as_echo "$ac_cv_header_time" >&6; }
13022 if test $ac_cv_header_time = yes; then
13023
13024 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13025
13026 fi
13027
13028
13029 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13030 do :
13031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13033 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13034 cat >>confdefs.h <<_ACEOF
13035 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13036 _ACEOF
13037
13038 fi
13039 done
13040
13041 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
13042 do :
13043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13046 cat >>confdefs.h <<_ACEOF
13047 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13048 _ACEOF
13049
13050 fi
13051 done
13052
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13055 $as_echo_n "checking for getaddrinfo... " >&6; }
13056 if ${libevent_cv_getaddrinfo+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061
13062 #ifdef HAVE_NETDB_H
13063 #include <netdb.h>
13064 #endif
13065
13066 int
13067 main ()
13068 {
13069
13070 getaddrinfo;
13071
13072
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 libevent_cv_getaddrinfo=yes
13079 else
13080 libevent_cv_getaddrinfo=no
13081
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13088 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13089 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13090
13091 $as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
13092
13093 else
13094
13095 for ac_func in getservbyname
13096 do :
13097 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13098 if test "x$ac_cv_func_getservbyname" = xyes; then :
13099 cat >>confdefs.h <<_ACEOF
13100 @%:@define HAVE_GETSERVBYNAME 1
13101 _ACEOF
13102
13103 fi
13104 done
13105
13106 # Check for gethostbyname_r in all its glorious incompatible versions.
13107 # (This is cut-and-pasted from Tor, which based its logic on
13108 # Python's configure.in.)
13109
13110
13111 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13112 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13113
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13115 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13116 OLD_CFLAGS=$CFLAGS
13117 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120
13121 #include <netdb.h>
13122
13123 int
13124 main ()
13125 {
13126
13127 char *cp1, *cp2;
13128 struct hostent *h1, *h2;
13129 int i1, i2;
13130 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13131
13132 ;
13133 return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137
13138 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13139
13140
13141 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13144 $as_echo "6" >&6; }
13145
13146 else
13147
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150
13151 #include <netdb.h>
13152
13153 int
13154 main ()
13155 {
13156
13157 char *cp1, *cp2;
13158 struct hostent *h1;
13159 int i1, i2;
13160 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13161
13162 ;
13163 return 0;
13164 }
13165 _ACEOF
13166 if ac_fn_c_try_compile "$LINENO"; then :
13167
13168 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13169
13170
13171 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13172
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13174 $as_echo "5" >&6; }
13175
13176 else
13177
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180
13181 #include <netdb.h>
13182
13183 int
13184 main ()
13185 {
13186
13187 char *cp1;
13188 struct hostent *h1;
13189 struct hostent_data hd;
13190 (void) gethostbyname_r(cp1,h1,&hd);
13191
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197
13198 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13199
13200
13201 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13202
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13204 $as_echo "3" >&6; }
13205
13206 else
13207
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13209 $as_echo "0" >&6; }
13210
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 CFLAGS=$OLD_CFLAGS
13220
13221 fi
13222
13223
13224 fi
13225
13226 # The cast to long int works around a bug in the HP C Compiler
13227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13229 # This bug is HP SR number 8606223364.
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13231 $as_echo_n "checking size of long... " >&6; }
13232 if ${ac_cv_sizeof_long+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13236
13237 else
13238 if test "$ac_cv_type_long" = yes; then
13239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13241 as_fn_error 77 "cannot compute sizeof (long)
13242 See \`config.log' for more details" "$LINENO" 5; }
13243 else
13244 ac_cv_sizeof_long=0
13245 fi
13246 fi
13247
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13250 $as_echo "$ac_cv_sizeof_long" >&6; }
13251
13252
13253
13254 cat >>confdefs.h <<_ACEOF
13255 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13256 _ACEOF
13257
13258
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13261 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264
13265 #define _GNU_SOURCE
13266 #include <fcntl.h>
13267 #ifdef F_SETFD
13268 yes
13269 #endif
13270
13271 _ACEOF
13272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13273 $EGREP "yes" >/dev/null 2>&1; then :
13274
13275 $as_echo "@%:@define HAVE_SETFD 1" >>confdefs.h
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 $as_echo "yes" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283 rm -f conftest*
13284
13285
13286 needsignal=no
13287 haveselect=no
13288 if test x$bwin32 != xtrue; then
13289 for ac_func in select
13290 do :
13291 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13292 if test "x$ac_cv_func_select" = xyes; then :
13293 cat >>confdefs.h <<_ACEOF
13294 @%:@define HAVE_SELECT 1
13295 _ACEOF
13296 haveselect=yes
13297 fi
13298 done
13299
13300 if test "x$haveselect" = "xyes" ; then
13301 needsignal=yes
13302 fi
13303 fi
13304 if test "x$haveselect" = "xyes"; then
13305 SELECT_BACKEND_TRUE=
13306 SELECT_BACKEND_FALSE='#'
13307 else
13308 SELECT_BACKEND_TRUE='#'
13309 SELECT_BACKEND_FALSE=
13310 fi
13311
13312
13313 havepoll=no
13314 for ac_func in poll
13315 do :
13316 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13317 if test "x$ac_cv_func_poll" = xyes; then :
13318 cat >>confdefs.h <<_ACEOF
13319 @%:@define HAVE_POLL 1
13320 _ACEOF
13321 havepoll=yes
13322 fi
13323 done
13324
13325 if test "x$havepoll" = "xyes" ; then
13326 needsignal=yes
13327 fi
13328 if test "x$havepoll" = "xyes"; then
13329 POLL_BACKEND_TRUE=
13330 POLL_BACKEND_FALSE='#'
13331 else
13332 POLL_BACKEND_TRUE='#'
13333 POLL_BACKEND_FALSE=
13334 fi
13335
13336
13337 havedevpoll=no
13338 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13339
13340 $as_echo "@%:@define HAVE_DEVPOLL 1" >>confdefs.h
13341
13342 fi
13343 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13344 DEVPOLL_BACKEND_TRUE=
13345 DEVPOLL_BACKEND_FALSE='#'
13346 else
13347 DEVPOLL_BACKEND_TRUE='#'
13348 DEVPOLL_BACKEND_FALSE=
13349 fi
13350
13351
13352 havekqueue=no
13353 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13354 for ac_func in kqueue
13355 do :
13356 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13357 if test "x$ac_cv_func_kqueue" = xyes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 @%:@define HAVE_KQUEUE 1
13360 _ACEOF
13361 havekqueue=yes
13362 fi
13363 done
13364
13365 if test "x$havekqueue" = "xyes" ; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13367 $as_echo_n "checking for working kqueue... " >&6; }
13368 if test "$cross_compiling" = yes; then :
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <sys/types.h>
13375 #include <sys/time.h>
13376 #include <sys/event.h>
13377 #include <stdio.h>
13378 #include <unistd.h>
13379 #include <fcntl.h>
13380
13381 int
13382 main(int argc, char **argv)
13383 {
13384 int kq;
13385 int n;
13386 int fd[2];
13387 struct kevent ev;
13388 struct timespec ts;
13389 char buf[8000];
13390
13391 if (pipe(fd) == -1)
13392 exit(1);
13393 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13394 exit(1);
13395
13396 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13397 ;
13398
13399 if ((kq = kqueue()) == -1)
13400 exit(1);
13401
13402 memset(&ev, 0, sizeof(ev));
13403 ev.ident = fd[1];
13404 ev.filter = EVFILT_WRITE;
13405 ev.flags = EV_ADD | EV_ENABLE;
13406 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13407 if (n == -1)
13408 exit(1);
13409
13410 read(fd[0], buf, sizeof(buf));
13411
13412 ts.tv_sec = 0;
13413 ts.tv_nsec = 0;
13414 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13415 if (n == -1 || n == 0)
13416 exit(1);
13417
13418 exit(0);
13419 }
13420 _ACEOF
13421 if ac_fn_c_try_run "$LINENO"; then :
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13423 $as_echo "yes" >&6; }
13424
13425 $as_echo "@%:@define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13426
13427 havekqueue=yes
13428
13429 else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13432 fi
13433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13434 conftest.$ac_objext conftest.beam conftest.$ac_ext
13435 fi
13436
13437 fi
13438 fi
13439 if test "x$havekqueue" = "xyes"; then
13440 KQUEUE_BACKEND_TRUE=
13441 KQUEUE_BACKEND_FALSE='#'
13442 else
13443 KQUEUE_BACKEND_TRUE='#'
13444 KQUEUE_BACKEND_FALSE=
13445 fi
13446
13447
13448 haveepollsyscall=no
13449 haveepoll=no
13450 for ac_func in epoll_ctl
13451 do :
13452 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13453 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13454 cat >>confdefs.h <<_ACEOF
13455 @%:@define HAVE_EPOLL_CTL 1
13456 _ACEOF
13457 haveepoll=yes
13458 fi
13459 done
13460
13461 if test "x$haveepoll" = "xyes" ; then
13462
13463 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13464
13465 needsignal=yes
13466 fi
13467 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13468 if test "x$haveepoll" = "xno" ; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13470 $as_echo_n "checking for epoll system call... " >&6; }
13471 if test "$cross_compiling" = yes; then :
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474 else
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 #include <stdint.h>
13478 #include <sys/param.h>
13479 #include <sys/types.h>
13480 #include <sys/syscall.h>
13481 #include <sys/epoll.h>
13482 #include <unistd.h>
13483
13484 int
13485 epoll_create(int size)
13486 {
13487 return (syscall(__NR_epoll_create, size));
13488 }
13489
13490 int
13491 main(int argc, char **argv)
13492 {
13493 int epfd;
13494
13495 epfd = epoll_create(256);
13496 exit (epfd == -1 ? 1 : 0);
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_run "$LINENO"; then :
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13501 $as_echo "yes" >&6; }
13502
13503 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13504
13505 needsignal=yes
13506 have_epoll=yes
13507 case " $LIB@&t@OBJS " in
13508 *" epoll_sub.$ac_objext "* ) ;;
13509 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext"
13510 ;;
13511 esac
13512
13513
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 fi
13518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13519 conftest.$ac_objext conftest.beam conftest.$ac_ext
13520 fi
13521
13522 fi
13523 fi
13524 if test "x$haveepoll" = "xyes"; then
13525 EPOLL_BACKEND_TRUE=
13526 EPOLL_BACKEND_FALSE='#'
13527 else
13528 EPOLL_BACKEND_TRUE='#'
13529 EPOLL_BACKEND_FALSE=
13530 fi
13531
13532
13533 haveeventports=no
13534 for ac_func in port_create
13535 do :
13536 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13537 if test "x$ac_cv_func_port_create" = xyes; then :
13538 cat >>confdefs.h <<_ACEOF
13539 @%:@define HAVE_PORT_CREATE 1
13540 _ACEOF
13541 haveeventports=yes
13542 fi
13543 done
13544
13545 if test "x$haveeventports" = "xyes" ; then
13546
13547 $as_echo "@%:@define HAVE_EVENT_PORTS 1" >>confdefs.h
13548
13549 needsignal=yes
13550 fi
13551 if test "x$haveeventports" = "xyes"; then
13552 EVPORT_BACKEND_TRUE=
13553 EVPORT_BACKEND_FALSE='#'
13554 else
13555 EVPORT_BACKEND_TRUE='#'
13556 EVPORT_BACKEND_FALSE=
13557 fi
13558
13559
13560 if test "x$bwin32" = "xtrue"; then
13561 needsignal=yes
13562 fi
13563
13564 if test "x$needsignal" = "xyes"; then
13565 SIGNAL_SUPPORT_TRUE=
13566 SIGNAL_SUPPORT_FALSE='#'
13567 else
13568 SIGNAL_SUPPORT_TRUE='#'
13569 SIGNAL_SUPPORT_FALSE=
13570 fi
13571
13572
13573 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13574 if test "x$ac_cv_type_pid_t" = xyes; then :
13575
13576 else
13577
13578 cat >>confdefs.h <<_ACEOF
13579 @%:@define pid_t int
13580 _ACEOF
13581
13582 fi
13583
13584 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13585 if test "x$ac_cv_type_size_t" = xyes; then :
13586
13587 else
13588
13589 cat >>confdefs.h <<_ACEOF
13590 @%:@define size_t unsigned int
13591 _ACEOF
13592
13593 fi
13594
13595 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13596 if test "x$ac_cv_type_ssize_t" = xyes; then :
13597
13598 else
13599
13600 cat >>confdefs.h <<_ACEOF
13601 @%:@define ssize_t int
13602 _ACEOF
13603
13604 fi
13605
13606
13607 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13608 #include <stdint.h>
13609 #elif defined(HAVE_INTTYPES_H)
13610 #include <inttypes.h>
13611 #endif
13612 #ifdef HAVE_SYS_TYPES_H
13613 #include <sys/types.h>
13614 #endif
13615 "
13616 if test "x$ac_cv_type_uint64_t" = xyes; then :
13617
13618 cat >>confdefs.h <<_ACEOF
13619 @%:@define HAVE_UINT64_T 1
13620 _ACEOF
13621
13622
13623 fi
13624 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13625 #include <stdint.h>
13626 #elif defined(HAVE_INTTYPES_H)
13627 #include <inttypes.h>
13628 #endif
13629 #ifdef HAVE_SYS_TYPES_H
13630 #include <sys/types.h>
13631 #endif
13632 "
13633 if test "x$ac_cv_type_uint32_t" = xyes; then :
13634
13635 cat >>confdefs.h <<_ACEOF
13636 @%:@define HAVE_UINT32_T 1
13637 _ACEOF
13638
13639
13640 fi
13641 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13642 #include <stdint.h>
13643 #elif defined(HAVE_INTTYPES_H)
13644 #include <inttypes.h>
13645 #endif
13646 #ifdef HAVE_SYS_TYPES_H
13647 #include <sys/types.h>
13648 #endif
13649 "
13650 if test "x$ac_cv_type_uint16_t" = xyes; then :
13651
13652 cat >>confdefs.h <<_ACEOF
13653 @%:@define HAVE_UINT16_T 1
13654 _ACEOF
13655
13656
13657 fi
13658 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13659 #include <stdint.h>
13660 #elif defined(HAVE_INTTYPES_H)
13661 #include <inttypes.h>
13662 #endif
13663 #ifdef HAVE_SYS_TYPES_H
13664 #include <sys/types.h>
13665 #endif
13666 "
13667 if test "x$ac_cv_type_uint8_t" = xyes; then :
13668
13669 cat >>confdefs.h <<_ACEOF
13670 @%:@define HAVE_UINT8_T 1
13671 _ACEOF
13672
13673
13674 fi
13675 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13676 #include <stdint.h>
13677 #elif defined(HAVE_INTTYPES_H)
13678 #include <inttypes.h>
13679 #endif
13680 #ifdef HAVE_SYS_TYPES_H
13681 #include <sys/types.h>
13682 #endif
13683 "
13684 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13685
13686 cat >>confdefs.h <<_ACEOF
13687 @%:@define HAVE_UINTPTR_T 1
13688 _ACEOF
13689
13690
13691 fi
13692
13693
13694 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13695 #include <sys/types.h>
13696 #endif
13697 #ifdef HAVE_SYS_SELECT_H
13698 #include <sys/select.h>
13699 #endif
13700 "
13701 if test "x$ac_cv_type_fd_mask" = xyes; then :
13702
13703 cat >>confdefs.h <<_ACEOF
13704 @%:@define HAVE_FD_MASK 1
13705 _ACEOF
13706
13707
13708 fi
13709
13710
13711 # The cast to long int works around a bug in the HP C Compiler
13712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13714 # This bug is HP SR number 8606223364.
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13716 $as_echo_n "checking size of long long... " >&6; }
13717 if ${ac_cv_sizeof_long_long+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13721
13722 else
13723 if test "$ac_cv_type_long_long" = yes; then
13724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13726 as_fn_error 77 "cannot compute sizeof (long long)
13727 See \`config.log' for more details" "$LINENO" 5; }
13728 else
13729 ac_cv_sizeof_long_long=0
13730 fi
13731 fi
13732
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13735 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13736
13737
13738
13739 cat >>confdefs.h <<_ACEOF
13740 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13741 _ACEOF
13742
13743
13744 # The cast to long int works around a bug in the HP C Compiler
13745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13747 # This bug is HP SR number 8606223364.
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13749 $as_echo_n "checking size of long... " >&6; }
13750 if ${ac_cv_sizeof_long+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13754
13755 else
13756 if test "$ac_cv_type_long" = yes; then
13757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13759 as_fn_error 77 "cannot compute sizeof (long)
13760 See \`config.log' for more details" "$LINENO" 5; }
13761 else
13762 ac_cv_sizeof_long=0
13763 fi
13764 fi
13765
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13768 $as_echo "$ac_cv_sizeof_long" >&6; }
13769
13770
13771
13772 cat >>confdefs.h <<_ACEOF
13773 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13774 _ACEOF
13775
13776
13777 # The cast to long int works around a bug in the HP C Compiler
13778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13780 # This bug is HP SR number 8606223364.
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13782 $as_echo_n "checking size of int... " >&6; }
13783 if ${ac_cv_sizeof_int+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13787
13788 else
13789 if test "$ac_cv_type_int" = yes; then
13790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13792 as_fn_error 77 "cannot compute sizeof (int)
13793 See \`config.log' for more details" "$LINENO" 5; }
13794 else
13795 ac_cv_sizeof_int=0
13796 fi
13797 fi
13798
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13801 $as_echo "$ac_cv_sizeof_int" >&6; }
13802
13803
13804
13805 cat >>confdefs.h <<_ACEOF
13806 @%:@define SIZEOF_INT $ac_cv_sizeof_int
13807 _ACEOF
13808
13809
13810 # The cast to long int works around a bug in the HP C Compiler
13811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13813 # This bug is HP SR number 8606223364.
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13815 $as_echo_n "checking size of short... " >&6; }
13816 if ${ac_cv_sizeof_short+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13820
13821 else
13822 if test "$ac_cv_type_short" = yes; then
13823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13825 as_fn_error 77 "cannot compute sizeof (short)
13826 See \`config.log' for more details" "$LINENO" 5; }
13827 else
13828 ac_cv_sizeof_short=0
13829 fi
13830 fi
13831
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13834 $as_echo "$ac_cv_sizeof_short" >&6; }
13835
13836
13837
13838 cat >>confdefs.h <<_ACEOF
13839 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
13840 _ACEOF
13841
13842
13843 # The cast to long int works around a bug in the HP C Compiler
13844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846 # This bug is HP SR number 8606223364.
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13848 $as_echo_n "checking size of size_t... " >&6; }
13849 if ${ac_cv_sizeof_size_t+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13853
13854 else
13855 if test "$ac_cv_type_size_t" = yes; then
13856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13858 as_fn_error 77 "cannot compute sizeof (size_t)
13859 See \`config.log' for more details" "$LINENO" 5; }
13860 else
13861 ac_cv_sizeof_size_t=0
13862 fi
13863 fi
13864
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13867 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13868
13869
13870
13871 cat >>confdefs.h <<_ACEOF
13872 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13873 _ACEOF
13874
13875
13876 # The cast to long int works around a bug in the HP C Compiler
13877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13879 # This bug is HP SR number 8606223364.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13881 $as_echo_n "checking size of void *... " >&6; }
13882 if ${ac_cv_sizeof_void_p+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13886
13887 else
13888 if test "$ac_cv_type_void_p" = yes; then
13889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13891 as_fn_error 77 "cannot compute sizeof (void *)
13892 See \`config.log' for more details" "$LINENO" 5; }
13893 else
13894 ac_cv_sizeof_void_p=0
13895 fi
13896 fi
13897
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13900 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13901
13902
13903
13904 cat >>confdefs.h <<_ACEOF
13905 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13906 _ACEOF
13907
13908
13909
13910 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13911 #include <sys/types.h>
13912 #ifdef HAVE_NETINET_IN_H
13913 #include <netinet/in.h>
13914 #endif
13915 #ifdef HAVE_NETINET_IN6_H
13916 #include <netinet/in6.h>
13917 #endif
13918 #ifdef HAVE_SYS_SOCKET_H
13919 #include <sys/socket.h>
13920 #endif
13921 #ifdef HAVE_NETDB_H
13922 #include <netdb.h>
13923 #endif
13924 #ifdef WIN32
13925 #define WIN32_WINNT 0x400
13926 #define _WIN32_WINNT 0x400
13927 #define WIN32_LEAN_AND_MEAN
13928 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13929 #include <winsock.h>
13930 #else
13931 #include <winsock2.h>
13932 #include <ws2tcpip.h>
13933 #endif
13934 #endif
13935
13936 "
13937 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
13938
13939 cat >>confdefs.h <<_ACEOF
13940 @%:@define HAVE_STRUCT_IN6_ADDR 1
13941 _ACEOF
13942
13943
13944 fi
13945 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13946 #include <sys/types.h>
13947 #ifdef HAVE_NETINET_IN_H
13948 #include <netinet/in.h>
13949 #endif
13950 #ifdef HAVE_NETINET_IN6_H
13951 #include <netinet/in6.h>
13952 #endif
13953 #ifdef HAVE_SYS_SOCKET_H
13954 #include <sys/socket.h>
13955 #endif
13956 #ifdef HAVE_NETDB_H
13957 #include <netdb.h>
13958 #endif
13959 #ifdef WIN32
13960 #define WIN32_WINNT 0x400
13961 #define _WIN32_WINNT 0x400
13962 #define WIN32_LEAN_AND_MEAN
13963 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13964 #include <winsock.h>
13965 #else
13966 #include <winsock2.h>
13967 #include <ws2tcpip.h>
13968 #endif
13969 #endif
13970
13971 "
13972 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13973
13974 cat >>confdefs.h <<_ACEOF
13975 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
13976 _ACEOF
13977
13978
13979 fi
13980 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
13981 #include <sys/types.h>
13982 #ifdef HAVE_NETINET_IN_H
13983 #include <netinet/in.h>
13984 #endif
13985 #ifdef HAVE_NETINET_IN6_H
13986 #include <netinet/in6.h>
13987 #endif
13988 #ifdef HAVE_SYS_SOCKET_H
13989 #include <sys/socket.h>
13990 #endif
13991 #ifdef HAVE_NETDB_H
13992 #include <netdb.h>
13993 #endif
13994 #ifdef WIN32
13995 #define WIN32_WINNT 0x400
13996 #define _WIN32_WINNT 0x400
13997 #define WIN32_LEAN_AND_MEAN
13998 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13999 #include <winsock.h>
14000 #else
14001 #include <winsock2.h>
14002 #include <ws2tcpip.h>
14003 #endif
14004 #endif
14005
14006 "
14007 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14008
14009 cat >>confdefs.h <<_ACEOF
14010 @%:@define HAVE_SA_FAMILY_T 1
14011 _ACEOF
14012
14013
14014 fi
14015 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#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
14040
14041 "
14042 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14043
14044 cat >>confdefs.h <<_ACEOF
14045 @%:@define HAVE_STRUCT_ADDRINFO 1
14046 _ACEOF
14047
14048
14049 fi
14050 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#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
14075
14076 "
14077 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14078
14079 cat >>confdefs.h <<_ACEOF
14080 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
14081 _ACEOF
14082
14083
14084 fi
14085
14086 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#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 WIN32
14097 #define WIN32_WINNT 0x400
14098 #define _WIN32_WINNT 0x400
14099 #define WIN32_LEAN_AND_MEAN
14100 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14101 #include <winsock.h>
14102 #else
14103 #include <winsock2.h>
14104 #include <ws2tcpip.h>
14105 #endif
14106 #endif
14107
14108 "
14109 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14110
14111 cat >>confdefs.h <<_ACEOF
14112 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14113 _ACEOF
14114
14115
14116 fi
14117 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14118 #ifdef HAVE_NETINET_IN_H
14119 #include <netinet/in.h>
14120 #endif
14121 #ifdef HAVE_NETINET_IN6_H
14122 #include <netinet/in6.h>
14123 #endif
14124 #ifdef HAVE_SYS_SOCKET_H
14125 #include <sys/socket.h>
14126 #endif
14127 #ifdef WIN32
14128 #define WIN32_WINNT 0x400
14129 #define _WIN32_WINNT 0x400
14130 #define WIN32_LEAN_AND_MEAN
14131 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14132 #include <winsock.h>
14133 #else
14134 #include <winsock2.h>
14135 #include <ws2tcpip.h>
14136 #endif
14137 #endif
14138
14139 "
14140 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14141
14142 cat >>confdefs.h <<_ACEOF
14143 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14144 _ACEOF
14145
14146
14147 fi
14148 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14149 #ifdef HAVE_NETINET_IN_H
14150 #include <netinet/in.h>
14151 #endif
14152 #ifdef HAVE_NETINET_IN6_H
14153 #include <netinet/in6.h>
14154 #endif
14155 #ifdef HAVE_SYS_SOCKET_H
14156 #include <sys/socket.h>
14157 #endif
14158 #ifdef WIN32
14159 #define WIN32_WINNT 0x400
14160 #define _WIN32_WINNT 0x400
14161 #define WIN32_LEAN_AND_MEAN
14162 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14163 #include <winsock.h>
14164 #else
14165 #include <winsock2.h>
14166 #include <ws2tcpip.h>
14167 #endif
14168 #endif
14169
14170 "
14171 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14172
14173 cat >>confdefs.h <<_ACEOF
14174 @%:@define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14175 _ACEOF
14176
14177
14178 fi
14179 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14180 #ifdef HAVE_NETINET_IN_H
14181 #include <netinet/in.h>
14182 #endif
14183 #ifdef HAVE_NETINET_IN6_H
14184 #include <netinet/in6.h>
14185 #endif
14186 #ifdef HAVE_SYS_SOCKET_H
14187 #include <sys/socket.h>
14188 #endif
14189 #ifdef WIN32
14190 #define WIN32_WINNT 0x400
14191 #define _WIN32_WINNT 0x400
14192 #define WIN32_LEAN_AND_MEAN
14193 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14194 #include <winsock.h>
14195 #else
14196 #include <winsock2.h>
14197 #include <ws2tcpip.h>
14198 #endif
14199 #endif
14200
14201 "
14202 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14203
14204 cat >>confdefs.h <<_ACEOF
14205 @%:@define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14206 _ACEOF
14207
14208
14209 fi
14210 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14211 #ifdef HAVE_NETINET_IN_H
14212 #include <netinet/in.h>
14213 #endif
14214 #ifdef HAVE_NETINET_IN6_H
14215 #include <netinet/in6.h>
14216 #endif
14217 #ifdef HAVE_SYS_SOCKET_H
14218 #include <sys/socket.h>
14219 #endif
14220 #ifdef WIN32
14221 #define WIN32_WINNT 0x400
14222 #define _WIN32_WINNT 0x400
14223 #define WIN32_LEAN_AND_MEAN
14224 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14225 #include <winsock.h>
14226 #else
14227 #include <winsock2.h>
14228 #include <ws2tcpip.h>
14229 #endif
14230 #endif
14231
14232 "
14233 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14234
14235 cat >>confdefs.h <<_ACEOF
14236 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14237 _ACEOF
14238
14239
14240 fi
14241 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14242 #ifdef HAVE_NETINET_IN_H
14243 #include <netinet/in.h>
14244 #endif
14245 #ifdef HAVE_NETINET_IN6_H
14246 #include <netinet/in6.h>
14247 #endif
14248 #ifdef HAVE_SYS_SOCKET_H
14249 #include <sys/socket.h>
14250 #endif
14251 #ifdef WIN32
14252 #define WIN32_WINNT 0x400
14253 #define _WIN32_WINNT 0x400
14254 #define WIN32_LEAN_AND_MEAN
14255 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14256 #include <winsock.h>
14257 #else
14258 #include <winsock2.h>
14259 #include <ws2tcpip.h>
14260 #endif
14261 #endif
14262
14263 "
14264 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14265
14266 cat >>confdefs.h <<_ACEOF
14267 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14268 _ACEOF
14269
14270
14271 fi
14272
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14275 $as_echo_n "checking for socklen_t... " >&6; }
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278
14279 #include <sys/types.h>
14280 #include <sys/socket.h>
14281 int
14282 main ()
14283 {
14284 socklen_t x;
14285 ;
14286 return 0;
14287 }
14288 _ACEOF
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14291 $as_echo "yes" >&6; }
14292 else
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294 $as_echo "no" >&6; }
14295
14296 $as_echo "@%:@define socklen_t unsigned int" >>confdefs.h
14297
14298
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14303 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306
14307 int
14308 main ()
14309 {
14310 const char *cp = __func__;
14311 ;
14312 return 0;
14313 }
14314 _ACEOF
14315 if ac_fn_c_try_compile "$LINENO"; then :
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14317 $as_echo "yes" >&6; }
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14322 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325
14326 int
14327 main ()
14328 {
14329 const char *cp = __FUNCTION__;
14330 ;
14331 return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14336 $as_echo "yes" >&6; }
14337
14338 $as_echo "@%:@define __func__ __FUNCTION__" >>confdefs.h
14339
14340 else
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343
14344 $as_echo "@%:@define __func__ __FILE__" >>confdefs.h
14345
14346 fi
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350
14351
14352 # check if we can compile with pthreads
14353 have_pthreads=no
14354 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14355
14356
14357
14358 ac_ext=c
14359 ac_cpp='$CPP $CPPFLAGS'
14360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14363
14364 acx_pthread_ok=no
14365
14366 # We used to check for pthread.h first, but this fails if pthread.h
14367 # requires special compiler flags (e.g. on True64 or Sequent).
14368 # It gets checked for in the link test anyway.
14369
14370 # First of all, check if the user has set any of the PTHREAD_LIBS,
14371 # etcetera environment variables, and if threads linking works using
14372 # them:
14373 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14374 save_CFLAGS="$CFLAGS"
14375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14376 save_LIBS="$LIBS"
14377 LIBS="$PTHREAD_LIBS $LIBS"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14379 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char pthread_join ();
14390 int
14391 main ()
14392 {
14393 return pthread_join ();
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 acx_pthread_ok=yes
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14404 $as_echo "$acx_pthread_ok" >&6; }
14405 if test x"$acx_pthread_ok" = xno; then
14406 PTHREAD_LIBS=""
14407 PTHREAD_CFLAGS=""
14408 fi
14409 LIBS="$save_LIBS"
14410 CFLAGS="$save_CFLAGS"
14411 fi
14412
14413 # We must check for the threads library under a number of different
14414 # names; the ordering is very important because some systems
14415 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14416 # libraries is broken (non-POSIX).
14417
14418 # Create a list of thread flags to try. Items starting with a "-" are
14419 # C compiler flags, and other items are library names, except for "none"
14420 # which indicates that we try without any flags at all, and "pthread-config"
14421 # which is a program returning the flags for the Pth emulation library.
14422
14423 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14424
14425 # The ordering *is* (sometimes) important. Some notes on the
14426 # individual items follow:
14427
14428 # pthreads: AIX (must check this before -lpthread)
14429 # none: in case threads are in libc; should be tried before -Kthread and
14430 # other compiler flags to prevent continual compiler warnings
14431 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14432 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14433 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14434 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14435 # -pthreads: Solaris/gcc
14436 # -mthreads: Mingw32/gcc, Lynx/gcc
14437 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14438 # doesn't hurt to check since this sometimes defines pthreads too;
14439 # also defines -D_REENTRANT)
14440 # ... -mt is also the pthreads flag for HP/aCC
14441 # pthread: Linux, etcetera
14442 # --thread-safe: KAI C++
14443 # pthread-config: use pthread-config program (for GNU Pth library)
14444
14445 case "${host_cpu}-${host_os}" in
14446 *solaris*)
14447
14448 # On Solaris (at least, for some versions), libc contains stubbed
14449 # (non-functional) versions of the pthreads routines, so link-based
14450 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14451 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14452 # a function called by this macro, so we could check for that, but
14453 # who knows whether they'll stub that too in a future libc.) So,
14454 # we'll just look for -pthreads and -lpthread first:
14455
14456 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14457 ;;
14458 esac
14459
14460 if test x"$acx_pthread_ok" = xno; then
14461 for flag in $acx_pthread_flags; do
14462
14463 case $flag in
14464 none)
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14466 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14467 ;;
14468
14469 -*)
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14471 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14472 PTHREAD_CFLAGS="$flag"
14473 ;;
14474
14475 pthread-config)
14476 # Extract the first word of "pthread-config", so it can be a program name with args.
14477 set dummy pthread-config; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 if test -n "$acx_pthread_config"; then
14484 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14488 do
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_acx_pthread_config="yes"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14496 fi
14497 done
14498 done
14499 IFS=$as_save_IFS
14500
14501 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14502 fi
14503 fi
14504 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14505 if test -n "$acx_pthread_config"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14507 $as_echo "$acx_pthread_config" >&6; }
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14511 fi
14512
14513
14514 if test x"$acx_pthread_config" = xno; then continue; fi
14515 PTHREAD_CFLAGS="`pthread-config --cflags`"
14516 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14517 ;;
14518
14519 *)
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14521 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14522 PTHREAD_LIBS="-l$flag"
14523 ;;
14524 esac
14525
14526 save_LIBS="$LIBS"
14527 save_CFLAGS="$CFLAGS"
14528 LIBS="$PTHREAD_LIBS $LIBS"
14529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14530
14531 # Check for various functions. We must include pthread.h,
14532 # since some functions may be macros. (On the Sequent, we
14533 # need a special flag -Kthread to make this header compile.)
14534 # We check for pthread_join because it is in -lpthread on IRIX
14535 # while pthread_create is in libc. We check for pthread_attr_init
14536 # due to DEC craziness with -lpthreads. We check for
14537 # pthread_cleanup_push because it is one of the few pthread
14538 # functions on Solaris that doesn't have a non-functional libc stub.
14539 # We try pthread_create on general principles.
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <pthread.h>
14543 int
14544 main ()
14545 {
14546 pthread_t th; pthread_join(th, 0);
14547 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14548 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14549 ;
14550 return 0;
14551 }
14552 _ACEOF
14553 if ac_fn_c_try_link "$LINENO"; then :
14554 acx_pthread_ok=yes
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14558
14559 LIBS="$save_LIBS"
14560 CFLAGS="$save_CFLAGS"
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14563 $as_echo "$acx_pthread_ok" >&6; }
14564 if test "x$acx_pthread_ok" = xyes; then
14565 break;
14566 fi
14567
14568 PTHREAD_LIBS=""
14569 PTHREAD_CFLAGS=""
14570 done
14571 fi
14572
14573 # Various other checks:
14574 if test "x$acx_pthread_ok" = xyes; then
14575 save_LIBS="$LIBS"
14576 LIBS="$PTHREAD_LIBS $LIBS"
14577 save_CFLAGS="$CFLAGS"
14578 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14579
14580 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14582 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14583 attr_name=unknown
14584 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 #include <pthread.h>
14588 int
14589 main ()
14590 {
14591 int attr=$attr; return attr;
14592 ;
14593 return 0;
14594 }
14595 _ACEOF
14596 if ac_fn_c_try_link "$LINENO"; then :
14597 attr_name=$attr; break
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14601 done
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14603 $as_echo "$attr_name" >&6; }
14604 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14605
14606 cat >>confdefs.h <<_ACEOF
14607 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
14608 _ACEOF
14609
14610 fi
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14613 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14614 flag=no
14615 case "${host_cpu}-${host_os}" in
14616 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14617 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14618 esac
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14620 $as_echo "${flag}" >&6; }
14621 if test "x$flag" != xno; then
14622 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14623 fi
14624
14625 LIBS="$save_LIBS"
14626 CFLAGS="$save_CFLAGS"
14627
14628 # More AIX lossage: must compile with xlc_r or cc_r
14629 if test x"$GCC" != xyes; then
14630 for ac_prog in xlc_r cc_r
14631 do
14632 # Extract the first word of "$ac_prog", so it can be a program name with args.
14633 set dummy $ac_prog; ac_word=$2
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14635 $as_echo_n "checking for $ac_word... " >&6; }
14636 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 if test -n "$PTHREAD_CC"; then
14640 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14641 else
14642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH
14644 do
14645 IFS=$as_save_IFS
14646 test -z "$as_dir" && as_dir=.
14647 for ac_exec_ext in '' $ac_executable_extensions; do
14648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14649 ac_cv_prog_PTHREAD_CC="$ac_prog"
14650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14651 break 2
14652 fi
14653 done
14654 done
14655 IFS=$as_save_IFS
14656
14657 fi
14658 fi
14659 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14660 if test -n "$PTHREAD_CC"; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14662 $as_echo "$PTHREAD_CC" >&6; }
14663 else
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14666 fi
14667
14668
14669 test -n "$PTHREAD_CC" && break
14670 done
14671 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14672
14673 else
14674 PTHREAD_CC=$CC
14675 fi
14676 else
14677 PTHREAD_CC="$CC"
14678 fi
14679
14680
14681
14682
14683
14684 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14685 if test x"$acx_pthread_ok" = xyes; then
14686
14687
14688 $as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h
14689
14690 have_pthreads=yes
14691 :
14692 else
14693 acx_pthread_ok=no
14694
14695 fi
14696 ac_ext=c
14697 ac_cpp='$CPP $CPPFLAGS'
14698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14701
14702
14703 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14704 # The cast to long int works around a bug in the HP C Compiler
14705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14707 # This bug is HP SR number 8606223364.
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14709 $as_echo_n "checking size of pthread_t... " >&6; }
14710 if ${ac_cv_sizeof_pthread_t+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14714 #include <pthread.h>
14715
14716 "; then :
14717
14718 else
14719 if test "$ac_cv_type_pthread_t" = yes; then
14720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14722 as_fn_error 77 "cannot compute sizeof (pthread_t)
14723 See \`config.log' for more details" "$LINENO" 5; }
14724 else
14725 ac_cv_sizeof_pthread_t=0
14726 fi
14727 fi
14728
14729 fi
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14731 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14732
14733
14734
14735 cat >>confdefs.h <<_ACEOF
14736 @%:@define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14737 _ACEOF
14738
14739
14740 fi
14741 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14742 PTHREADS_TRUE=
14743 PTHREADS_FALSE='#'
14744 else
14745 PTHREADS_TRUE='#'
14746 PTHREADS_FALSE=
14747 fi
14748
14749
14750 # check if we should compile locking into the library
14751 if test x$enable_thread_support = xno; then
14752
14753 $as_echo "@%:@define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14754
14755 fi
14756
14757 # check if we should hard-code the mm functions.
14758 if test x$enable_malloc_replacement = xno; then
14759
14760 $as_echo "@%:@define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14761
14762 fi
14763
14764 # check if we should hard-code debugging out
14765 if test x$enable_debug_mode = xno; then
14766
14767 $as_echo "@%:@define DISABLE_DEBUG_MODE 1" >>confdefs.h
14768
14769 fi
14770
14771 # check if we have and should use openssl
14772 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14773 OPENSSL_TRUE=
14774 OPENSSL_FALSE='#'
14775 else
14776 OPENSSL_TRUE='#'
14777 OPENSSL_FALSE=
14778 fi
14779
14780
14781 # Add some more warnings which we use in development but not in the
14782 # released versions. (Some relevant gcc versions can't handle these.)
14783 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14784
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787
14788 int
14789 main ()
14790 {
14791
14792 #if !defined(__GNUC__) || (__GNUC__ < 4)
14793 #error
14794 #endif
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800 have_gcc4=yes
14801 else
14802 have_gcc4=no
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808
14809 int
14810 main ()
14811 {
14812
14813 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14814 #error
14815 #endif
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_compile "$LINENO"; then :
14821 have_gcc42=yes
14822 else
14823 have_gcc42=no
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829
14830 int
14831 main ()
14832 {
14833
14834 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14835 #error
14836 #endif
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_compile "$LINENO"; then :
14842 have_gcc45=yes
14843 else
14844 have_gcc45=no
14845 fi
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850
14851 int
14852 main ()
14853 {
14854
14855 #if !defined(__clang__)
14856 #error
14857 #endif
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 have_clang=yes
14864 else
14865 have_clang=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868
14869 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"
14870 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14871
14872 if test x$have_gcc4 = xyes ; then
14873 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14874 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14875 #CFLAGS="$CFLAGS -Wold-style-definition"
14876 fi
14877
14878 if test x$have_gcc42 = xyes ; then
14879 # These warnings break gcc 4.0.2 and work on gcc 4.2
14880 CFLAGS="$CFLAGS -Waddress"
14881 fi
14882
14883 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
14884 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14885 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14886 fi
14887
14888 if test x$have_gcc45 = xyes ; then
14889 # These warnings work on gcc 4.5
14890 CFLAGS="$CFLAGS -Wlogical-op"
14891 fi
14892
14893 if test x$have_clang = xyes; then
14894 # Disable the unused-function warnings, because these trigger
14895 # for minheap-internal.h related code.
14896 CFLAGS="$CFLAGS -Wno-unused-function"
14897 fi
14898
14899 ##This will break the world on some 64-bit architectures
14900 # CFLAGS="$CFLAGS -Winline"
14901
14902 fi
14903
14904 LIBEVENT_GC_SECTIONS=
14905 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14907 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14908 if ${libevent_cv_gc_sections_runs+:} false; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911
14912 origCFLAGS="$CFLAGS"
14913 CFLAGS="$CFLAGS -Wl,--gc-sections"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916
14917 #include <stdlib.h>
14918 #include <stdio.h>
14919
14920 int
14921 main ()
14922 {
14923
14924 FILE * fpC;
14925 char buf[32];
14926 size_t cch;
14927 int read_success_once;
14928
14929 fpC = fopen("conftest.c", "r");
14930 if (NULL == fpC)
14931 exit(1);
14932 do {
14933 cch = fread(buf, sizeof(buf), 1, fpC);
14934 read_success_once |= (0 != cch);
14935 } while (0 != cch);
14936 if (!read_success_once)
14937 exit(2);
14938 if (!feof(fpC))
14939 exit(3);
14940 if (0 != fclose(fpC))
14941 exit(4);
14942
14943 exit(EXIT_SUCCESS);
14944
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"; then :
14951
14952 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
14953 libevent_cv_gc_sections_runs=no
14954 else
14955 libevent_cv_gc_sections_runs=no
14956 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
14957 fi
14958
14959 else
14960 libevent_cv_gc_sections_runs=no
14961
14962 fi
14963 rm -f core conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14965 CFLAGS="$origCFLAGS"
14966 { origCFLAGS=; unset origCFLAGS;}
14967
14968
14969 fi
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
14971 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
14972 case "$libevent_cv_gc_sections_runs" in
14973 yes)
14974 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
14975 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
14976 ;;
14977 esac
14978 fi
14979
14980
14981 if test "$enable_libevent_install" = "yes"; then
14982 INSTALL_LIBEVENT_TRUE=
14983 INSTALL_LIBEVENT_FALSE='#'
14984 else
14985 INSTALL_LIBEVENT_TRUE='#'
14986 INSTALL_LIBEVENT_FALSE=
14987 fi
14988
14989
14990 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
14991
14992 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
14993
14994 cat >confcache <<\_ACEOF
14995 # This file is a shell script that caches the results of configure
14996 # tests run on this system so they can be shared between configure
14997 # scripts and configure runs, see configure's option --config-cache.
14998 # It is not useful on other systems. If it contains results you don't
14999 # want to keep, you may remove or edit it.
15000 #
15001 # config.status only pays attention to the cache file if you give it
15002 # the --recheck option to rerun configure.
15003 #
15004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15006 # following values.
15007
15008 _ACEOF
15009
15010 # The following way of writing the cache mishandles newlines in values,
15011 # but we know of no workaround that is simple, portable, and efficient.
15012 # So, we kill variables containing newlines.
15013 # Ultrix sh set writes to stderr and can't be redirected directly,
15014 # and sets the high bit in the cache file unless we assign to the vars.
15015 (
15016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15017 eval ac_val=\$$ac_var
15018 case $ac_val in #(
15019 *${as_nl}*)
15020 case $ac_var in #(
15021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15023 esac
15024 case $ac_var in #(
15025 _ | IFS | as_nl) ;; #(
15026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15027 *) { eval $ac_var=; unset $ac_var;} ;;
15028 esac ;;
15029 esac
15030 done
15031
15032 (set) 2>&1 |
15033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15034 *${as_nl}ac_space=\ *)
15035 # `set' does not quote correctly, so add quotes: double-quote
15036 # substitution turns \\\\ into \\, and sed turns \\ into \.
15037 sed -n \
15038 "s/'/'\\\\''/g;
15039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15040 ;; #(
15041 *)
15042 # `set' quotes correctly as required by POSIX, so do not add quotes.
15043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15044 ;;
15045 esac |
15046 sort
15047 ) |
15048 sed '
15049 /^ac_cv_env_/b end
15050 t clear
15051 :clear
15052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15053 t end
15054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15055 :end' >>confcache
15056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15057 if test -w "$cache_file"; then
15058 if test "x$cache_file" != "x/dev/null"; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15060 $as_echo "$as_me: updating cache $cache_file" >&6;}
15061 if test ! -f "$cache_file" || test -h "$cache_file"; then
15062 cat confcache >"$cache_file"
15063 else
15064 case $cache_file in #(
15065 */* | ?:*)
15066 mv -f confcache "$cache_file"$$ &&
15067 mv -f "$cache_file"$$ "$cache_file" ;; #(
15068 *)
15069 mv -f confcache "$cache_file" ;;
15070 esac
15071 fi
15072 fi
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15075 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15076 fi
15077 fi
15078 rm -f confcache
15079
15080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15081 # Let make expand exec_prefix.
15082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15083
15084 DEFS=-DHAVE_CONFIG_H
15085
15086 ac_libobjs=
15087 ac_ltlibobjs=
15088 U=
15089 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15090 # 1. Remove the extension, and $U if already installed.
15091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15094 # will be set to the directory where LIBOBJS objects are built.
15095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15097 done
15098 LIB@&t@OBJS=$ac_libobjs
15099
15100 LTLIBOBJS=$ac_ltlibobjs
15101
15102
15103 if test -n "$EXEEXT"; then
15104 am__EXEEXT_TRUE=
15105 am__EXEEXT_FALSE='#'
15106 else
15107 am__EXEEXT_TRUE='#'
15108 am__EXEEXT_FALSE=
15109 fi
15110
15111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15112 as_fn_error $? "conditional \"AMDEP\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 fi
15115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15116 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118 fi
15119 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15120 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122 fi
15123 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15124 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126 fi
15127 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15128 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130 fi
15131 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15132 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15134 fi
15135 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15136 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138 fi
15139 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15140 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142 fi
15143 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15144 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146 fi
15147 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15148 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150 fi
15151 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15152 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154 fi
15155 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15156 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15158 fi
15159 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15160 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162 fi
15163 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15164 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166 fi
15167 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15168 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170 fi
15171 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15172 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15174 fi
15175 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15176 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178 fi
15179
15180 : "${CONFIG_STATUS=./config.status}"
15181 ac_write_fail=0
15182 ac_clean_files_save=$ac_clean_files
15183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15185 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15186 as_write_fail=0
15187 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15188 #! $SHELL
15189 # Generated by $as_me.
15190 # Run this file to recreate the current configuration.
15191 # Compiler output produced by configure, useful for debugging
15192 # configure, is in config.log if it exists.
15193
15194 debug=false
15195 ac_cs_recheck=false
15196 ac_cs_silent=false
15197
15198 SHELL=\${CONFIG_SHELL-$SHELL}
15199 export SHELL
15200 _ASEOF
15201 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15202 ## -------------------- ##
15203 ## M4sh Initialization. ##
15204 ## -------------------- ##
15205
15206 # Be more Bourne compatible
15207 DUALCASE=1; export DUALCASE # for MKS sh
15208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15209 emulate sh
15210 NULLCMD=:
15211 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15212 # is contrary to our usage. Disable this feature.
15213 alias -g '${1+"$@"}'='"$@"'
15214 setopt NO_GLOB_SUBST
15215 else
15216 case `(set -o) 2>/dev/null` in @%:@(
15217 *posix*) :
15218 set -o posix ;; @%:@(
15219 *) :
15220 ;;
15221 esac
15222 fi
15223
15224
15225 as_nl='
15226 '
15227 export as_nl
15228 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15229 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15230 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15232 # Prefer a ksh shell builtin over an external printf program on Solaris,
15233 # but without wasting forks for bash or zsh.
15234 if test -z "$BASH_VERSION$ZSH_VERSION" \
15235 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15236 as_echo='print -r --'
15237 as_echo_n='print -rn --'
15238 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15239 as_echo='printf %s\n'
15240 as_echo_n='printf %s'
15241 else
15242 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15243 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15244 as_echo_n='/usr/ucb/echo -n'
15245 else
15246 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15247 as_echo_n_body='eval
15248 arg=$1;
15249 case $arg in @%:@(
15250 *"$as_nl"*)
15251 expr "X$arg" : "X\\(.*\\)$as_nl";
15252 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15253 esac;
15254 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15255 '
15256 export as_echo_n_body
15257 as_echo_n='sh -c $as_echo_n_body as_echo'
15258 fi
15259 export as_echo_body
15260 as_echo='sh -c $as_echo_body as_echo'
15261 fi
15262
15263 # The user is always right.
15264 if test "${PATH_SEPARATOR+set}" != set; then
15265 PATH_SEPARATOR=:
15266 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15267 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15268 PATH_SEPARATOR=';'
15269 }
15270 fi
15271
15272
15273 # IFS
15274 # We need space, tab and new line, in precisely that order. Quoting is
15275 # there to prevent editors from complaining about space-tab.
15276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15277 # splitting by setting IFS to empty value.)
15278 IFS=" "" $as_nl"
15279
15280 # Find who we are. Look in the path if we contain no directory separator.
15281 as_myself=
15282 case $0 in @%:@((
15283 *[\\/]* ) as_myself=$0 ;;
15284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15285 for as_dir in $PATH
15286 do
15287 IFS=$as_save_IFS
15288 test -z "$as_dir" && as_dir=.
15289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15290 done
15291 IFS=$as_save_IFS
15292
15293 ;;
15294 esac
15295 # We did not find ourselves, most probably we were run as `sh COMMAND'
15296 # in which case we are not to be found in the path.
15297 if test "x$as_myself" = x; then
15298 as_myself=$0
15299 fi
15300 if test ! -f "$as_myself"; then
15301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15302 exit 1
15303 fi
15304
15305 # Unset variables that we do not need and which cause bugs (e.g. in
15306 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15307 # suppresses any "Segmentation fault" message there. '((' could
15308 # trigger a bug in pdksh 5.2.14.
15309 for as_var in BASH_ENV ENV MAIL MAILPATH
15310 do eval test x\${$as_var+set} = xset \
15311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15312 done
15313 PS1='$ '
15314 PS2='> '
15315 PS4='+ '
15316
15317 # NLS nuisances.
15318 LC_ALL=C
15319 export LC_ALL
15320 LANGUAGE=C
15321 export LANGUAGE
15322
15323 # CDPATH.
15324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15325
15326
15327 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15328 @%:@ ----------------------------------------
15329 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15330 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15331 @%:@ script with STATUS, using 1 if that was 0.
15332 as_fn_error ()
15333 {
15334 as_status=$1; test $as_status -eq 0 && as_status=1
15335 if test "$4"; then
15336 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15338 fi
15339 $as_echo "$as_me: error: $2" >&2
15340 as_fn_exit $as_status
15341 } @%:@ as_fn_error
15342
15343
15344 @%:@ as_fn_set_status STATUS
15345 @%:@ -----------------------
15346 @%:@ Set @S|@? to STATUS, without forking.
15347 as_fn_set_status ()
15348 {
15349 return $1
15350 } @%:@ as_fn_set_status
15351
15352 @%:@ as_fn_exit STATUS
15353 @%:@ -----------------
15354 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15355 as_fn_exit ()
15356 {
15357 set +e
15358 as_fn_set_status $1
15359 exit $1
15360 } @%:@ as_fn_exit
15361
15362 @%:@ as_fn_unset VAR
15363 @%:@ ---------------
15364 @%:@ Portably unset VAR.
15365 as_fn_unset ()
15366 {
15367 { eval $1=; unset $1;}
15368 }
15369 as_unset=as_fn_unset
15370 @%:@ as_fn_append VAR VALUE
15371 @%:@ ----------------------
15372 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15373 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15374 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15375 @%:@ implementations.
15376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15377 eval 'as_fn_append ()
15378 {
15379 eval $1+=\$2
15380 }'
15381 else
15382 as_fn_append ()
15383 {
15384 eval $1=\$$1\$2
15385 }
15386 fi # as_fn_append
15387
15388 @%:@ as_fn_arith ARG...
15389 @%:@ ------------------
15390 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15391 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15392 @%:@ must be portable across @S|@(()) and expr.
15393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15394 eval 'as_fn_arith ()
15395 {
15396 as_val=$(( $* ))
15397 }'
15398 else
15399 as_fn_arith ()
15400 {
15401 as_val=`expr "$@" || test $? -eq 1`
15402 }
15403 fi # as_fn_arith
15404
15405
15406 if expr a : '\(a\)' >/dev/null 2>&1 &&
15407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15408 as_expr=expr
15409 else
15410 as_expr=false
15411 fi
15412
15413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15414 as_basename=basename
15415 else
15416 as_basename=false
15417 fi
15418
15419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15420 as_dirname=dirname
15421 else
15422 as_dirname=false
15423 fi
15424
15425 as_me=`$as_basename -- "$0" ||
15426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15427 X"$0" : 'X\(//\)$' \| \
15428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15429 $as_echo X/"$0" |
15430 sed '/^.*\/\([^/][^/]*\)\/*$/{
15431 s//\1/
15432 q
15433 }
15434 /^X\/\(\/\/\)$/{
15435 s//\1/
15436 q
15437 }
15438 /^X\/\(\/\).*/{
15439 s//\1/
15440 q
15441 }
15442 s/.*/./; q'`
15443
15444 # Avoid depending upon Character Ranges.
15445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15448 as_cr_digits='0123456789'
15449 as_cr_alnum=$as_cr_Letters$as_cr_digits
15450
15451 ECHO_C= ECHO_N= ECHO_T=
15452 case `echo -n x` in @%:@(((((
15453 -n*)
15454 case `echo 'xy\c'` in
15455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15456 xy) ECHO_C='\c';;
15457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15458 ECHO_T=' ';;
15459 esac;;
15460 *)
15461 ECHO_N='-n';;
15462 esac
15463
15464 rm -f conf$$ conf$$.exe conf$$.file
15465 if test -d conf$$.dir; then
15466 rm -f conf$$.dir/conf$$.file
15467 else
15468 rm -f conf$$.dir
15469 mkdir conf$$.dir 2>/dev/null
15470 fi
15471 if (echo >conf$$.file) 2>/dev/null; then
15472 if ln -s conf$$.file conf$$ 2>/dev/null; then
15473 as_ln_s='ln -s'
15474 # ... but there are two gotchas:
15475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15477 # In both cases, we have to default to `cp -p'.
15478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15479 as_ln_s='cp -p'
15480 elif ln conf$$.file conf$$ 2>/dev/null; then
15481 as_ln_s=ln
15482 else
15483 as_ln_s='cp -p'
15484 fi
15485 else
15486 as_ln_s='cp -p'
15487 fi
15488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15489 rmdir conf$$.dir 2>/dev/null
15490
15491
15492 @%:@ as_fn_mkdir_p
15493 @%:@ -------------
15494 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15495 as_fn_mkdir_p ()
15496 {
15497
15498 case $as_dir in #(
15499 -*) as_dir=./$as_dir;;
15500 esac
15501 test -d "$as_dir" || eval $as_mkdir_p || {
15502 as_dirs=
15503 while :; do
15504 case $as_dir in #(
15505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15506 *) as_qdir=$as_dir;;
15507 esac
15508 as_dirs="'$as_qdir' $as_dirs"
15509 as_dir=`$as_dirname -- "$as_dir" ||
15510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15511 X"$as_dir" : 'X\(//\)[^/]' \| \
15512 X"$as_dir" : 'X\(//\)$' \| \
15513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15514 $as_echo X"$as_dir" |
15515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15516 s//\1/
15517 q
15518 }
15519 /^X\(\/\/\)[^/].*/{
15520 s//\1/
15521 q
15522 }
15523 /^X\(\/\/\)$/{
15524 s//\1/
15525 q
15526 }
15527 /^X\(\/\).*/{
15528 s//\1/
15529 q
15530 }
15531 s/.*/./; q'`
15532 test -d "$as_dir" && break
15533 done
15534 test -z "$as_dirs" || eval "mkdir $as_dirs"
15535 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15536
15537
15538 } @%:@ as_fn_mkdir_p
15539 if mkdir -p . 2>/dev/null; then
15540 as_mkdir_p='mkdir -p "$as_dir"'
15541 else
15542 test -d ./-p && rmdir ./-p
15543 as_mkdir_p=false
15544 fi
15545
15546 if test -x / >/dev/null 2>&1; then
15547 as_test_x='test -x'
15548 else
15549 if ls -dL / >/dev/null 2>&1; then
15550 as_ls_L_option=L
15551 else
15552 as_ls_L_option=
15553 fi
15554 as_test_x='
15555 eval sh -c '\''
15556 if test -d "$1"; then
15557 test -d "$1/.";
15558 else
15559 case $1 in @%:@(
15560 -*)set "./$1";;
15561 esac;
15562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
15563 ???[sx]*):;;*)false;;esac;fi
15564 '\'' sh
15565 '
15566 fi
15567 as_executable_p=$as_test_x
15568
15569 # Sed expression to map a string onto a valid CPP name.
15570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15571
15572 # Sed expression to map a string onto a valid variable name.
15573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15574
15575
15576 exec 6>&1
15577 ## ----------------------------------- ##
15578 ## Main body of $CONFIG_STATUS script. ##
15579 ## ----------------------------------- ##
15580 _ASEOF
15581 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15582
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15584 # Save the log message, to keep $0 and so on meaningful, and to
15585 # report actual input values of CONFIG_FILES etc. instead of their
15586 # values after options handling.
15587 ac_log="
15588 This file was extended by $as_me, which was
15589 generated by GNU Autoconf 2.68. Invocation command line was
15590
15591 CONFIG_FILES = $CONFIG_FILES
15592 CONFIG_HEADERS = $CONFIG_HEADERS
15593 CONFIG_LINKS = $CONFIG_LINKS
15594 CONFIG_COMMANDS = $CONFIG_COMMANDS
15595 $ $0 $@
15596
15597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15598 "
15599
15600 _ACEOF
15601
15602 case $ac_config_files in *"
15603 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15604 esac
15605
15606 case $ac_config_headers in *"
15607 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15608 esac
15609
15610
15611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612 # Files that config.status was made for.
15613 config_files="$ac_config_files"
15614 config_headers="$ac_config_headers"
15615 config_commands="$ac_config_commands"
15616
15617 _ACEOF
15618
15619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15620 ac_cs_usage="\
15621 \`$as_me' instantiates files and other configuration actions
15622 from templates according to the current configuration. Unless the files
15623 and actions are specified as TAGs, all are instantiated by default.
15624
15625 Usage: $0 [OPTION]... [TAG]...
15626
15627 -h, --help print this help, then exit
15628 -V, --version print version number and configuration settings, then exit
15629 --config print configuration, then exit
15630 -q, --quiet, --silent
15631 do not print progress messages
15632 -d, --debug don't remove temporary files
15633 --recheck update $as_me by reconfiguring in the same conditions
15634 --file=FILE[:TEMPLATE]
15635 instantiate the configuration file FILE
15636 --header=FILE[:TEMPLATE]
15637 instantiate the configuration header FILE
15638
15639 Configuration files:
15640 $config_files
15641
15642 Configuration headers:
15643 $config_headers
15644
15645 Configuration commands:
15646 $config_commands
15647
15648 Report bugs to the package provider."
15649
15650 _ACEOF
15651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15652 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15653 ac_cs_version="\\
15654 config.status
15655 configured by $0, generated by GNU Autoconf 2.68,
15656 with options \\"\$ac_cs_config\\"
15657
15658 Copyright (C) 2010 Free Software Foundation, Inc.
15659 This config.status script is free software; the Free Software Foundation
15660 gives unlimited permission to copy, distribute and modify it."
15661
15662 ac_pwd='$ac_pwd'
15663 srcdir='$srcdir'
15664 INSTALL='$INSTALL'
15665 MKDIR_P='$MKDIR_P'
15666 AWK='$AWK'
15667 test -n "\$AWK" || AWK=awk
15668 _ACEOF
15669
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 # The default lists apply if the user does not specify any file.
15672 ac_need_defaults=:
15673 while test $# != 0
15674 do
15675 case $1 in
15676 --*=?*)
15677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15679 ac_shift=:
15680 ;;
15681 --*=)
15682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15683 ac_optarg=
15684 ac_shift=:
15685 ;;
15686 *)
15687 ac_option=$1
15688 ac_optarg=$2
15689 ac_shift=shift
15690 ;;
15691 esac
15692
15693 case $ac_option in
15694 # Handling of the options.
15695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15696 ac_cs_recheck=: ;;
15697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15698 $as_echo "$ac_cs_version"; exit ;;
15699 --config | --confi | --conf | --con | --co | --c )
15700 $as_echo "$ac_cs_config"; exit ;;
15701 --debug | --debu | --deb | --de | --d | -d )
15702 debug=: ;;
15703 --file | --fil | --fi | --f )
15704 $ac_shift
15705 case $ac_optarg in
15706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15707 '') as_fn_error $? "missing file argument" ;;
15708 esac
15709 as_fn_append CONFIG_FILES " '$ac_optarg'"
15710 ac_need_defaults=false;;
15711 --header | --heade | --head | --hea )
15712 $ac_shift
15713 case $ac_optarg in
15714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15715 esac
15716 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15717 ac_need_defaults=false;;
15718 --he | --h)
15719 # Conflict between --help and --header
15720 as_fn_error $? "ambiguous option: \`$1'
15721 Try \`$0 --help' for more information.";;
15722 --help | --hel | -h )
15723 $as_echo "$ac_cs_usage"; exit ;;
15724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15726 ac_cs_silent=: ;;
15727
15728 # This is an error.
15729 -*) as_fn_error $? "unrecognized option: \`$1'
15730 Try \`$0 --help' for more information." ;;
15731
15732 *) as_fn_append ac_config_targets " $1"
15733 ac_need_defaults=false ;;
15734
15735 esac
15736 shift
15737 done
15738
15739 ac_configure_extra_args=
15740
15741 if $ac_cs_silent; then
15742 exec 6>/dev/null
15743 ac_configure_extra_args="$ac_configure_extra_args --silent"
15744 fi
15745
15746 _ACEOF
15747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15748 if \$ac_cs_recheck; then
15749 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15750 shift
15751 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15752 CONFIG_SHELL='$SHELL'
15753 export CONFIG_SHELL
15754 exec "\$@"
15755 fi
15756
15757 _ACEOF
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759 exec 5>>config.log
15760 {
15761 echo
15762 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15763 @%:@@%:@ Running $as_me. @%:@@%:@
15764 _ASBOX
15765 $as_echo "$ac_log"
15766 } >&5
15767
15768 _ACEOF
15769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15770 #
15771 # INIT-COMMANDS
15772 #
15773 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15774
15775
15776 # The HP-UX ksh and POSIX shell print the target directory to stdout
15777 # if CDPATH is set.
15778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15779
15780 sed_quote_subst='$sed_quote_subst'
15781 double_quote_subst='$double_quote_subst'
15782 delay_variable_subst='$delay_variable_subst'
15783 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15784 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15785 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15786 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15787 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15788 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15789 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15790 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15791 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15792 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15793 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15794 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15795 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15796 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15797 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15798 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15799 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15800 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15801 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15802 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15803 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15804 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15805 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15806 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15807 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15808 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15809 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15810 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15811 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15812 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15813 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15814 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15815 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15816 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15817 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15818 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15819 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15820 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15821 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15824 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15825 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15826 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15827 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15828 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15829 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15830 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15831 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15832 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15833 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15834 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15835 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15836 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15837 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15838 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15839 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"`'
15840 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15841 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15842 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15843 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15844 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15845 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15846 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15847 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15848 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15849 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15850 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15851 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15852 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15853 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15854 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15855 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15856 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15857 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15858 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15859 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15860 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15861 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15862 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15863 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15864 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15865 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15866 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15867 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15868 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15869 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15870 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15871 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15872 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15873 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15874 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15875 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15876 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15877 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15878 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15879 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15880 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15881 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15882 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15883 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15884 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15885 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15886 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15887 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15888 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15889 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15890 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15891 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15892 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15893 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15894 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15895 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15896 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15897 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15898 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15899 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15900 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15901 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15902 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15903 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15904 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15905 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15906 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15907 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15908 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15909 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15910 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15911 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15912 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15913
15914 LTCC='$LTCC'
15915 LTCFLAGS='$LTCFLAGS'
15916 compiler='$compiler_DEFAULT'
15917
15918 # A function that is used when there is no print builtin or printf.
15919 func_fallback_echo ()
15920 {
15921 eval 'cat <<_LTECHO_EOF
15922 \$1
15923 _LTECHO_EOF'
15924 }
15925
15926 # Quote evaled strings.
15927 for var in SHELL \
15928 ECHO \
15929 PATH_SEPARATOR \
15930 SED \
15931 GREP \
15932 EGREP \
15933 FGREP \
15934 LD \
15935 NM \
15936 LN_S \
15937 lt_SP2NL \
15938 lt_NL2SP \
15939 reload_flag \
15940 OBJDUMP \
15941 deplibs_check_method \
15942 file_magic_cmd \
15943 file_magic_glob \
15944 want_nocaseglob \
15945 DLLTOOL \
15946 sharedlib_from_linklib_cmd \
15947 AR \
15948 AR_FLAGS \
15949 archiver_list_spec \
15950 STRIP \
15951 RANLIB \
15952 CC \
15953 CFLAGS \
15954 compiler \
15955 lt_cv_sys_global_symbol_pipe \
15956 lt_cv_sys_global_symbol_to_cdecl \
15957 lt_cv_sys_global_symbol_to_c_name_address \
15958 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15959 nm_file_list_spec \
15960 lt_prog_compiler_no_builtin_flag \
15961 lt_prog_compiler_pic \
15962 lt_prog_compiler_wl \
15963 lt_prog_compiler_static \
15964 lt_cv_prog_compiler_c_o \
15965 need_locks \
15966 MANIFEST_TOOL \
15967 DSYMUTIL \
15968 NMEDIT \
15969 LIPO \
15970 OTOOL \
15971 OTOOL64 \
15972 shrext_cmds \
15973 export_dynamic_flag_spec \
15974 whole_archive_flag_spec \
15975 compiler_needs_object \
15976 with_gnu_ld \
15977 allow_undefined_flag \
15978 no_undefined_flag \
15979 hardcode_libdir_flag_spec \
15980 hardcode_libdir_separator \
15981 exclude_expsyms \
15982 include_expsyms \
15983 file_list_spec \
15984 variables_saved_for_relink \
15985 libname_spec \
15986 library_names_spec \
15987 soname_spec \
15988 install_override_mode \
15989 finish_eval \
15990 old_striplib \
15991 striplib; do
15992 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15993 *[\\\\\\\`\\"\\\$]*)
15994 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15995 ;;
15996 *)
15997 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15998 ;;
15999 esac
16000 done
16001
16002 # Double-quote double-evaled strings.
16003 for var in reload_cmds \
16004 old_postinstall_cmds \
16005 old_postuninstall_cmds \
16006 old_archive_cmds \
16007 extract_expsyms_cmds \
16008 old_archive_from_new_cmds \
16009 old_archive_from_expsyms_cmds \
16010 archive_cmds \
16011 archive_expsym_cmds \
16012 module_cmds \
16013 module_expsym_cmds \
16014 export_symbols_cmds \
16015 prelink_cmds \
16016 postlink_cmds \
16017 postinstall_cmds \
16018 postuninstall_cmds \
16019 finish_cmds \
16020 sys_lib_search_path_spec \
16021 sys_lib_dlsearch_path_spec; do
16022 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16023 *[\\\\\\\`\\"\\\$]*)
16024 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16025 ;;
16026 *)
16027 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16028 ;;
16029 esac
16030 done
16031
16032 ac_aux_dir='$ac_aux_dir'
16033 xsi_shell='$xsi_shell'
16034 lt_shell_append='$lt_shell_append'
16035
16036 # See if we are running on zsh, and set the options which allow our
16037 # commands through without removal of \ escapes INIT.
16038 if test -n "\${ZSH_VERSION+set}" ; then
16039 setopt NO_GLOB_SUBST
16040 fi
16041
16042
16043 PACKAGE='$PACKAGE'
16044 VERSION='$VERSION'
16045 TIMESTAMP='$TIMESTAMP'
16046 RM='$RM'
16047 ofile='$ofile'
16048
16049
16050
16051
16052 _ACEOF
16053
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055
16056 # Handling of arguments.
16057 for ac_config_target in $ac_config_targets
16058 do
16059 case $ac_config_target in
16060 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16062 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16063 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16064 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16065 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16067 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16068 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16069 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16070
16071 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16072 esac
16073 done
16074
16075
16076 # If the user did not use the arguments to specify the items to instantiate,
16077 # then the envvar interface is used. Set only those that are not.
16078 # We use the long form for the default assignment because of an extremely
16079 # bizarre bug on SunOS 4.1.3.
16080 if $ac_need_defaults; then
16081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16084 fi
16085
16086 # Have a temporary directory for convenience. Make it in the build tree
16087 # simply because there is no reason against having it here, and in addition,
16088 # creating and moving files from /tmp can sometimes cause problems.
16089 # Hook for its removal unless debugging.
16090 # Note that there is a small window in which the directory will not be cleaned:
16091 # after its creation but before its name has been assigned to `$tmp'.
16092 $debug ||
16093 {
16094 tmp= ac_tmp=
16095 trap 'exit_status=$?
16096 : "${ac_tmp:=$tmp}"
16097 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16098 ' 0
16099 trap 'as_fn_exit 1' 1 2 13 15
16100 }
16101 # Create a (secure) tmp directory for tmp files.
16102
16103 {
16104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16105 test -d "$tmp"
16106 } ||
16107 {
16108 tmp=./conf$$-$RANDOM
16109 (umask 077 && mkdir "$tmp")
16110 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16111 ac_tmp=$tmp
16112
16113 # Set up the scripts for CONFIG_FILES section.
16114 # No need to generate them if there are no CONFIG_FILES.
16115 # This happens for instance with `./config.status config.h'.
16116 if test -n "$CONFIG_FILES"; then
16117
16118
16119 ac_cr=`echo X | tr X '\015'`
16120 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16121 # But we know of no other shell where ac_cr would be empty at this
16122 # point, so we can use a bashism as a fallback.
16123 if test "x$ac_cr" = x; then
16124 eval ac_cr=\$\'\\r\'
16125 fi
16126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16128 ac_cs_awk_cr='\\r'
16129 else
16130 ac_cs_awk_cr=$ac_cr
16131 fi
16132
16133 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16134 _ACEOF
16135
16136
16137 {
16138 echo "cat >conf$$subs.awk <<_ACEOF" &&
16139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16140 echo "_ACEOF"
16141 } >conf$$subs.sh ||
16142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16144 ac_delim='%!_!# '
16145 for ac_last_try in false false false false false :; do
16146 . ./conf$$subs.sh ||
16147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16148
16149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16150 if test $ac_delim_n = $ac_delim_num; then
16151 break
16152 elif $ac_last_try; then
16153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16154 else
16155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16156 fi
16157 done
16158 rm -f conf$$subs.sh
16159
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16161 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16162 _ACEOF
16163 sed -n '
16164 h
16165 s/^/S["/; s/!.*/"]=/
16166 p
16167 g
16168 s/^[^!]*!//
16169 :repl
16170 t repl
16171 s/'"$ac_delim"'$//
16172 t delim
16173 :nl
16174 h
16175 s/\(.\{148\}\)..*/\1/
16176 t more1
16177 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16178 p
16179 n
16180 b repl
16181 :more1
16182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16183 p
16184 g
16185 s/.\{148\}//
16186 t nl
16187 :delim
16188 h
16189 s/\(.\{148\}\)..*/\1/
16190 t more2
16191 s/["\\]/\\&/g; s/^/"/; s/$/"/
16192 p
16193 b
16194 :more2
16195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16196 p
16197 g
16198 s/.\{148\}//
16199 t delim
16200 ' <conf$$subs.awk | sed '
16201 /^[^""]/{
16202 N
16203 s/\n//
16204 }
16205 ' >>$CONFIG_STATUS || ac_write_fail=1
16206 rm -f conf$$subs.awk
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 _ACAWK
16209 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16210 for (key in S) S_is_set[key] = 1
16211 FS = "\a"
16212
16213 }
16214 {
16215 line = $ 0
16216 nfields = split(line, field, "@")
16217 substed = 0
16218 len = length(field[1])
16219 for (i = 2; i < nfields; i++) {
16220 key = field[i]
16221 keylen = length(key)
16222 if (S_is_set[key]) {
16223 value = S[key]
16224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16225 len += length(value) + length(field[++i])
16226 substed = 1
16227 } else
16228 len += 1 + keylen
16229 }
16230
16231 print line
16232 }
16233
16234 _ACAWK
16235 _ACEOF
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16239 else
16240 cat
16241 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16243 _ACEOF
16244
16245 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16246 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16247 # trailing colons and then remove the whole line if VPATH becomes empty
16248 # (actually we leave an empty line to preserve line numbers).
16249 if test "x$srcdir" = x.; then
16250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16251 h
16252 s///
16253 s/^/:/
16254 s/[ ]*$/:/
16255 s/:\$(srcdir):/:/g
16256 s/:\${srcdir}:/:/g
16257 s/:@srcdir@:/:/g
16258 s/^:*//
16259 s/:*$//
16260 x
16261 s/\(=[ ]*\).*/\1/
16262 G
16263 s/\n//
16264 s/^[^=]*=[ ]*$//
16265 }'
16266 fi
16267
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16269 fi # test -n "$CONFIG_FILES"
16270
16271 # Set up the scripts for CONFIG_HEADERS section.
16272 # No need to generate them if there are no CONFIG_HEADERS.
16273 # This happens for instance with `./config.status Makefile'.
16274 if test -n "$CONFIG_HEADERS"; then
16275 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16276 BEGIN {
16277 _ACEOF
16278
16279 # Transform confdefs.h into an awk script `defines.awk', embedded as
16280 # here-document in config.status, that substitutes the proper values into
16281 # config.h.in to produce config.h.
16282
16283 # Create a delimiter string that does not exist in confdefs.h, to ease
16284 # handling of long lines.
16285 ac_delim='%!_!# '
16286 for ac_last_try in false false :; do
16287 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16288 if test -z "$ac_tt"; then
16289 break
16290 elif $ac_last_try; then
16291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16292 else
16293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16294 fi
16295 done
16296
16297 # For the awk script, D is an array of macro values keyed by name,
16298 # likewise P contains macro parameters if any. Preserve backslash
16299 # newline sequences.
16300
16301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16302 sed -n '
16303 s/.\{148\}/&'"$ac_delim"'/g
16304 t rset
16305 :rset
16306 s/^[ ]*#[ ]*define[ ][ ]*/ /
16307 t def
16308 d
16309 :def
16310 s/\\$//
16311 t bsnl
16312 s/["\\]/\\&/g
16313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16314 D["\1"]=" \3"/p
16315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16316 d
16317 :bsnl
16318 s/["\\]/\\&/g
16319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16320 D["\1"]=" \3\\\\\\n"\\/p
16321 t cont
16322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16323 t cont
16324 d
16325 :cont
16326 n
16327 s/.\{148\}/&'"$ac_delim"'/g
16328 t clear
16329 :clear
16330 s/\\$//
16331 t bsnlc
16332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16333 d
16334 :bsnlc
16335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16336 b cont
16337 ' <confdefs.h | sed '
16338 s/'"$ac_delim"'/"\\\
16339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16340
16341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342 for (key in D) D_is_set[key] = 1
16343 FS = "\a"
16344 }
16345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16346 line = \$ 0
16347 split(line, arg, " ")
16348 if (arg[1] == "#") {
16349 defundef = arg[2]
16350 mac1 = arg[3]
16351 } else {
16352 defundef = substr(arg[1], 2)
16353 mac1 = arg[2]
16354 }
16355 split(mac1, mac2, "(") #)
16356 macro = mac2[1]
16357 prefix = substr(line, 1, index(line, defundef) - 1)
16358 if (D_is_set[macro]) {
16359 # Preserve the white space surrounding the "#".
16360 print prefix "define", macro P[macro] D[macro]
16361 next
16362 } else {
16363 # Replace #undef with comments. This is necessary, for example,
16364 # in the case of _POSIX_SOURCE, which is predefined and required
16365 # on some systems where configure will not decide to define it.
16366 if (defundef == "undef") {
16367 print "/*", prefix defundef, macro, "*/"
16368 next
16369 }
16370 }
16371 }
16372 { print }
16373 _ACAWK
16374 _ACEOF
16375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16377 fi # test -n "$CONFIG_HEADERS"
16378
16379
16380 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16381 shift
16382 for ac_tag
16383 do
16384 case $ac_tag in
16385 :[FHLC]) ac_mode=$ac_tag; continue;;
16386 esac
16387 case $ac_mode$ac_tag in
16388 :[FHL]*:*);;
16389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16390 :[FH]-) ac_tag=-:-;;
16391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16392 esac
16393 ac_save_IFS=$IFS
16394 IFS=:
16395 set x $ac_tag
16396 IFS=$ac_save_IFS
16397 shift
16398 ac_file=$1
16399 shift
16400
16401 case $ac_mode in
16402 :L) ac_source=$1;;
16403 :[FH])
16404 ac_file_inputs=
16405 for ac_f
16406 do
16407 case $ac_f in
16408 -) ac_f="$ac_tmp/stdin";;
16409 *) # Look for the file first in the build tree, then in the source tree
16410 # (if the path is not absolute). The absolute path cannot be DOS-style,
16411 # because $ac_f cannot contain `:'.
16412 test -f "$ac_f" ||
16413 case $ac_f in
16414 [\\/$]*) false;;
16415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16416 esac ||
16417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16418 esac
16419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16420 as_fn_append ac_file_inputs " '$ac_f'"
16421 done
16422
16423 # Let's still pretend it is `configure' which instantiates (i.e., don't
16424 # use $as_me), people would be surprised to read:
16425 # /* config.h. Generated by config.status. */
16426 configure_input='Generated from '`
16427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16428 `' by configure.'
16429 if test x"$ac_file" != x-; then
16430 configure_input="$ac_file. $configure_input"
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16432 $as_echo "$as_me: creating $ac_file" >&6;}
16433 fi
16434 # Neutralize special characters interpreted by sed in replacement strings.
16435 case $configure_input in #(
16436 *\&* | *\|* | *\\* )
16437 ac_sed_conf_input=`$as_echo "$configure_input" |
16438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16439 *) ac_sed_conf_input=$configure_input;;
16440 esac
16441
16442 case $ac_tag in
16443 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16445 esac
16446 ;;
16447 esac
16448
16449 ac_dir=`$as_dirname -- "$ac_file" ||
16450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16451 X"$ac_file" : 'X\(//\)[^/]' \| \
16452 X"$ac_file" : 'X\(//\)$' \| \
16453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16454 $as_echo X"$ac_file" |
16455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16456 s//\1/
16457 q
16458 }
16459 /^X\(\/\/\)[^/].*/{
16460 s//\1/
16461 q
16462 }
16463 /^X\(\/\/\)$/{
16464 s//\1/
16465 q
16466 }
16467 /^X\(\/\).*/{
16468 s//\1/
16469 q
16470 }
16471 s/.*/./; q'`
16472 as_dir="$ac_dir"; as_fn_mkdir_p
16473 ac_builddir=.
16474
16475 case "$ac_dir" in
16476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16477 *)
16478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16479 # A ".." for each directory in $ac_dir_suffix.
16480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16481 case $ac_top_builddir_sub in
16482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16484 esac ;;
16485 esac
16486 ac_abs_top_builddir=$ac_pwd
16487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16488 # for backward compatibility:
16489 ac_top_builddir=$ac_top_build_prefix
16490
16491 case $srcdir in
16492 .) # We are building in place.
16493 ac_srcdir=.
16494 ac_top_srcdir=$ac_top_builddir_sub
16495 ac_abs_top_srcdir=$ac_pwd ;;
16496 [\\/]* | ?:[\\/]* ) # Absolute name.
16497 ac_srcdir=$srcdir$ac_dir_suffix;
16498 ac_top_srcdir=$srcdir
16499 ac_abs_top_srcdir=$srcdir ;;
16500 *) # Relative name.
16501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16502 ac_top_srcdir=$ac_top_build_prefix$srcdir
16503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16504 esac
16505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16506
16507
16508 case $ac_mode in
16509 :F)
16510 #
16511 # CONFIG_FILE
16512 #
16513
16514 case $INSTALL in
16515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16517 esac
16518 ac_MKDIR_P=$MKDIR_P
16519 case $MKDIR_P in
16520 [\\/$]* | ?:[\\/]* ) ;;
16521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16522 esac
16523 _ACEOF
16524
16525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16526 # If the template does not know about datarootdir, expand it.
16527 # FIXME: This hack should be removed a few years after 2.60.
16528 ac_datarootdir_hack=; ac_datarootdir_seen=
16529 ac_sed_dataroot='
16530 /datarootdir/ {
16531 p
16532 q
16533 }
16534 /@datadir@/p
16535 /@docdir@/p
16536 /@infodir@/p
16537 /@localedir@/p
16538 /@mandir@/p'
16539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16540 *datarootdir*) ac_datarootdir_seen=yes;;
16541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16544 _ACEOF
16545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16546 ac_datarootdir_hack='
16547 s&@datadir@&$datadir&g
16548 s&@docdir@&$docdir&g
16549 s&@infodir@&$infodir&g
16550 s&@localedir@&$localedir&g
16551 s&@mandir@&$mandir&g
16552 s&\\\${datarootdir}&$datarootdir&g' ;;
16553 esac
16554 _ACEOF
16555
16556 # Neutralize VPATH when `$srcdir' = `.'.
16557 # Shell code in configure.ac might set extrasub.
16558 # FIXME: do we really want to maintain this feature?
16559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16560 ac_sed_extra="$ac_vpsub
16561 $extrasub
16562 _ACEOF
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 :t
16565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16566 s|@configure_input@|$ac_sed_conf_input|;t t
16567 s&@top_builddir@&$ac_top_builddir_sub&;t t
16568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16569 s&@srcdir@&$ac_srcdir&;t t
16570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16571 s&@top_srcdir@&$ac_top_srcdir&;t t
16572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16573 s&@builddir@&$ac_builddir&;t t
16574 s&@abs_builddir@&$ac_abs_builddir&;t t
16575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16576 s&@INSTALL@&$ac_INSTALL&;t t
16577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16578 $ac_datarootdir_hack
16579 "
16580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16581 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16582
16583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16584 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16586 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16588 which seems to be undefined. Please make sure it is defined" >&5
16589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16590 which seems to be undefined. Please make sure it is defined" >&2;}
16591
16592 rm -f "$ac_tmp/stdin"
16593 case $ac_file in
16594 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16595 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16596 esac \
16597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16598 ;;
16599 :H)
16600 #
16601 # CONFIG_HEADER
16602 #
16603 if test x"$ac_file" != x-; then
16604 {
16605 $as_echo "/* $configure_input */" \
16606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16607 } >"$ac_tmp/config.h" \
16608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16609 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16611 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16612 else
16613 rm -f "$ac_file"
16614 mv "$ac_tmp/config.h" "$ac_file" \
16615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16616 fi
16617 else
16618 $as_echo "/* $configure_input */" \
16619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16620 || as_fn_error $? "could not create -" "$LINENO" 5
16621 fi
16622 # Compute "$ac_file"'s index in $config_headers.
16623 _am_arg="$ac_file"
16624 _am_stamp_count=1
16625 for _am_header in $config_headers :; do
16626 case $_am_header in
16627 $_am_arg | $_am_arg:* )
16628 break ;;
16629 * )
16630 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16631 esac
16632 done
16633 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16634 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16635 X"$_am_arg" : 'X\(//\)[^/]' \| \
16636 X"$_am_arg" : 'X\(//\)$' \| \
16637 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16638 $as_echo X"$_am_arg" |
16639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16640 s//\1/
16641 q
16642 }
16643 /^X\(\/\/\)[^/].*/{
16644 s//\1/
16645 q
16646 }
16647 /^X\(\/\/\)$/{
16648 s//\1/
16649 q
16650 }
16651 /^X\(\/\).*/{
16652 s//\1/
16653 q
16654 }
16655 s/.*/./; q'`/stamp-h$_am_stamp_count
16656 ;;
16657
16658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16659 $as_echo "$as_me: executing $ac_file commands" >&6;}
16660 ;;
16661 esac
16662
16663
16664 case $ac_file$ac_mode in
16665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16666 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16667 # are listed without --file. Let's play safe and only enable the eval
16668 # if we detect the quoting.
16669 case $CONFIG_FILES in
16670 *\'*) eval set x "$CONFIG_FILES" ;;
16671 *) set x $CONFIG_FILES ;;
16672 esac
16673 shift
16674 for mf
16675 do
16676 # Strip MF so we end up with the name of the file.
16677 mf=`echo "$mf" | sed -e 's/:.*$//'`
16678 # Check whether this is an Automake generated Makefile or not.
16679 # We used to match only the files named `Makefile.in', but
16680 # some people rename them; so instead we look at the file content.
16681 # Grep'ing the first line is not enough: some people post-process
16682 # each Makefile.in and add a new line on top of each file to say so.
16683 # Grep'ing the whole file is not good either: AIX grep has a line
16684 # limit of 2048, but all sed's we know have understand at least 4000.
16685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16686 dirpart=`$as_dirname -- "$mf" ||
16687 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16688 X"$mf" : 'X\(//\)[^/]' \| \
16689 X"$mf" : 'X\(//\)$' \| \
16690 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16691 $as_echo X"$mf" |
16692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16693 s//\1/
16694 q
16695 }
16696 /^X\(\/\/\)[^/].*/{
16697 s//\1/
16698 q
16699 }
16700 /^X\(\/\/\)$/{
16701 s//\1/
16702 q
16703 }
16704 /^X\(\/\).*/{
16705 s//\1/
16706 q
16707 }
16708 s/.*/./; q'`
16709 else
16710 continue
16711 fi
16712 # Extract the definition of DEPDIR, am__include, and am__quote
16713 # from the Makefile without running `make'.
16714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16715 test -z "$DEPDIR" && continue
16716 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16717 test -z "am__include" && continue
16718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16719 # When using ansi2knr, U may be empty or an underscore; expand it
16720 U=`sed -n 's/^U = //p' < "$mf"`
16721 # Find all dependency output files, they are included files with
16722 # $(DEPDIR) in their names. We invoke sed twice because it is the
16723 # simplest approach to changing $(DEPDIR) to its actual value in the
16724 # expansion.
16725 for file in `sed -n "
16726 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16727 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16728 # Make sure the directory exists.
16729 test -f "$dirpart/$file" && continue
16730 fdir=`$as_dirname -- "$file" ||
16731 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16732 X"$file" : 'X\(//\)[^/]' \| \
16733 X"$file" : 'X\(//\)$' \| \
16734 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16735 $as_echo X"$file" |
16736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16737 s//\1/
16738 q
16739 }
16740 /^X\(\/\/\)[^/].*/{
16741 s//\1/
16742 q
16743 }
16744 /^X\(\/\/\)$/{
16745 s//\1/
16746 q
16747 }
16748 /^X\(\/\).*/{
16749 s//\1/
16750 q
16751 }
16752 s/.*/./; q'`
16753 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16754 # echo "creating $dirpart/$file"
16755 echo '# dummy' > "$dirpart/$file"
16756 done
16757 done
16758 }
16759 ;;
16760 "libtool":C)
16761
16762 # See if we are running on zsh, and set the options which allow our
16763 # commands through without removal of \ escapes.
16764 if test -n "${ZSH_VERSION+set}" ; then
16765 setopt NO_GLOB_SUBST
16766 fi
16767
16768 cfgfile="${ofile}T"
16769 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16770 $RM "$cfgfile"
16771
16772 cat <<_LT_EOF >> "$cfgfile"
16773 #! $SHELL
16774
16775 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16776 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16778 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16779 #
16780 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16781 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16782 # Foundation, Inc.
16783 # Written by Gordon Matzigkeit, 1996
16784 #
16785 # This file is part of GNU Libtool.
16786 #
16787 # GNU Libtool is free software; you can redistribute it and/or
16788 # modify it under the terms of the GNU General Public License as
16789 # published by the Free Software Foundation; either version 2 of
16790 # the License, or (at your option) any later version.
16791 #
16792 # As a special exception to the GNU General Public License,
16793 # if you distribute this file as part of a program or library that
16794 # is built using GNU Libtool, you may include this file under the
16795 # same distribution terms that you use for the rest of that program.
16796 #
16797 # GNU Libtool is distributed in the hope that it will be useful,
16798 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16799 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16800 # GNU General Public License for more details.
16801 #
16802 # You should have received a copy of the GNU General Public License
16803 # along with GNU Libtool; see the file COPYING. If not, a copy
16804 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16805 # obtained by writing to the Free Software Foundation, Inc.,
16806 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16807
16808
16809 # The names of the tagged configurations supported by this script.
16810 available_tags=""
16811
16812 # ### BEGIN LIBTOOL CONFIG
16813
16814 # Which release of libtool.m4 was used?
16815 macro_version=$macro_version
16816 macro_revision=$macro_revision
16817
16818 # Whether or not to build shared libraries.
16819 build_libtool_libs=$enable_shared
16820
16821 # Whether or not to build static libraries.
16822 build_old_libs=$enable_static
16823
16824 # What type of objects to build.
16825 pic_mode=$pic_mode
16826
16827 # Whether or not to optimize for fast installation.
16828 fast_install=$enable_fast_install
16829
16830 # Shell to use when invoking shell scripts.
16831 SHELL=$lt_SHELL
16832
16833 # An echo program that protects backslashes.
16834 ECHO=$lt_ECHO
16835
16836 # The PATH separator for the build system.
16837 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16838
16839 # The host system.
16840 host_alias=$host_alias
16841 host=$host
16842 host_os=$host_os
16843
16844 # The build system.
16845 build_alias=$build_alias
16846 build=$build
16847 build_os=$build_os
16848
16849 # A sed program that does not truncate output.
16850 SED=$lt_SED
16851
16852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16853 Xsed="\$SED -e 1s/^X//"
16854
16855 # A grep program that handles long lines.
16856 GREP=$lt_GREP
16857
16858 # An ERE matcher.
16859 EGREP=$lt_EGREP
16860
16861 # A literal string matcher.
16862 FGREP=$lt_FGREP
16863
16864 # A BSD- or MS-compatible name lister.
16865 NM=$lt_NM
16866
16867 # Whether we need soft or hard links.
16868 LN_S=$lt_LN_S
16869
16870 # What is the maximum length of a command?
16871 max_cmd_len=$max_cmd_len
16872
16873 # Object file suffix (normally "o").
16874 objext=$ac_objext
16875
16876 # Executable file suffix (normally "").
16877 exeext=$exeext
16878
16879 # whether the shell understands "unset".
16880 lt_unset=$lt_unset
16881
16882 # turn spaces into newlines.
16883 SP2NL=$lt_lt_SP2NL
16884
16885 # turn newlines into spaces.
16886 NL2SP=$lt_lt_NL2SP
16887
16888 # convert \$build file names to \$host format.
16889 to_host_file_cmd=$lt_cv_to_host_file_cmd
16890
16891 # convert \$build files to toolchain format.
16892 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16893
16894 # An object symbol dumper.
16895 OBJDUMP=$lt_OBJDUMP
16896
16897 # Method to check whether dependent libraries are shared objects.
16898 deplibs_check_method=$lt_deplibs_check_method
16899
16900 # Command to use when deplibs_check_method = "file_magic".
16901 file_magic_cmd=$lt_file_magic_cmd
16902
16903 # How to find potential files when deplibs_check_method = "file_magic".
16904 file_magic_glob=$lt_file_magic_glob
16905
16906 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16907 want_nocaseglob=$lt_want_nocaseglob
16908
16909 # DLL creation program.
16910 DLLTOOL=$lt_DLLTOOL
16911
16912 # Command to associate shared and link libraries.
16913 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16914
16915 # The archiver.
16916 AR=$lt_AR
16917
16918 # Flags to create an archive.
16919 AR_FLAGS=$lt_AR_FLAGS
16920
16921 # How to feed a file listing to the archiver.
16922 archiver_list_spec=$lt_archiver_list_spec
16923
16924 # A symbol stripping program.
16925 STRIP=$lt_STRIP
16926
16927 # Commands used to install an old-style archive.
16928 RANLIB=$lt_RANLIB
16929 old_postinstall_cmds=$lt_old_postinstall_cmds
16930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16931
16932 # Whether to use a lock for old archive extraction.
16933 lock_old_archive_extraction=$lock_old_archive_extraction
16934
16935 # A C compiler.
16936 LTCC=$lt_CC
16937
16938 # LTCC compiler flags.
16939 LTCFLAGS=$lt_CFLAGS
16940
16941 # Take the output of nm and produce a listing of raw symbols and C names.
16942 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16943
16944 # Transform the output of nm in a proper C declaration.
16945 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16946
16947 # Transform the output of nm in a C name address pair.
16948 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16949
16950 # Transform the output of nm in a C name address pair when lib prefix is needed.
16951 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16952
16953 # Specify filename containing input files for \$NM.
16954 nm_file_list_spec=$lt_nm_file_list_spec
16955
16956 # The root where to search for dependent libraries,and in which our libraries should be installed.
16957 lt_sysroot=$lt_sysroot
16958
16959 # The name of the directory that contains temporary libtool files.
16960 objdir=$objdir
16961
16962 # Used to examine libraries when file_magic_cmd begins with "file".
16963 MAGIC_CMD=$MAGIC_CMD
16964
16965 # Must we lock files when doing compilation?
16966 need_locks=$lt_need_locks
16967
16968 # Manifest tool.
16969 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16970
16971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16972 DSYMUTIL=$lt_DSYMUTIL
16973
16974 # Tool to change global to local symbols on Mac OS X.
16975 NMEDIT=$lt_NMEDIT
16976
16977 # Tool to manipulate fat objects and archives on Mac OS X.
16978 LIPO=$lt_LIPO
16979
16980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16981 OTOOL=$lt_OTOOL
16982
16983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16984 OTOOL64=$lt_OTOOL64
16985
16986 # Old archive suffix (normally "a").
16987 libext=$libext
16988
16989 # Shared library suffix (normally ".so").
16990 shrext_cmds=$lt_shrext_cmds
16991
16992 # The commands to extract the exported symbol list from a shared archive.
16993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16994
16995 # Variables whose values should be saved in libtool wrapper scripts and
16996 # restored at link time.
16997 variables_saved_for_relink=$lt_variables_saved_for_relink
16998
16999 # Do we need the "lib" prefix for modules?
17000 need_lib_prefix=$need_lib_prefix
17001
17002 # Do we need a version for libraries?
17003 need_version=$need_version
17004
17005 # Library versioning type.
17006 version_type=$version_type
17007
17008 # Shared library runtime path variable.
17009 runpath_var=$runpath_var
17010
17011 # Shared library path variable.
17012 shlibpath_var=$shlibpath_var
17013
17014 # Is shlibpath searched before the hard-coded library search path?
17015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17016
17017 # Format of library name prefix.
17018 libname_spec=$lt_libname_spec
17019
17020 # List of archive names. First name is the real one, the rest are links.
17021 # The last name is the one that the linker finds with -lNAME
17022 library_names_spec=$lt_library_names_spec
17023
17024 # The coded name of the library, if different from the real name.
17025 soname_spec=$lt_soname_spec
17026
17027 # Permission mode override for installation of shared libraries.
17028 install_override_mode=$lt_install_override_mode
17029
17030 # Command to use after installation of a shared archive.
17031 postinstall_cmds=$lt_postinstall_cmds
17032
17033 # Command to use after uninstallation of a shared archive.
17034 postuninstall_cmds=$lt_postuninstall_cmds
17035
17036 # Commands used to finish a libtool library installation in a directory.
17037 finish_cmds=$lt_finish_cmds
17038
17039 # As "finish_cmds", except a single script fragment to be evaled but
17040 # not shown.
17041 finish_eval=$lt_finish_eval
17042
17043 # Whether we should hardcode library paths into libraries.
17044 hardcode_into_libs=$hardcode_into_libs
17045
17046 # Compile-time system search path for libraries.
17047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17048
17049 # Run-time system search path for libraries.
17050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17051
17052 # Whether dlopen is supported.
17053 dlopen_support=$enable_dlopen
17054
17055 # Whether dlopen of programs is supported.
17056 dlopen_self=$enable_dlopen_self
17057
17058 # Whether dlopen of statically linked programs is supported.
17059 dlopen_self_static=$enable_dlopen_self_static
17060
17061 # Commands to strip libraries.
17062 old_striplib=$lt_old_striplib
17063 striplib=$lt_striplib
17064
17065
17066 # The linker used to build libraries.
17067 LD=$lt_LD
17068
17069 # How to create reloadable object files.
17070 reload_flag=$lt_reload_flag
17071 reload_cmds=$lt_reload_cmds
17072
17073 # Commands used to build an old-style archive.
17074 old_archive_cmds=$lt_old_archive_cmds
17075
17076 # A language specific compiler.
17077 CC=$lt_compiler
17078
17079 # Is the compiler the GNU compiler?
17080 with_gcc=$GCC
17081
17082 # Compiler flag to turn off builtin functions.
17083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17084
17085 # Additional compiler flags for building library objects.
17086 pic_flag=$lt_lt_prog_compiler_pic
17087
17088 # How to pass a linker flag through the compiler.
17089 wl=$lt_lt_prog_compiler_wl
17090
17091 # Compiler flag to prevent dynamic linking.
17092 link_static_flag=$lt_lt_prog_compiler_static
17093
17094 # Does compiler simultaneously support -c and -o options?
17095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17096
17097 # Whether or not to add -lc for building shared libraries.
17098 build_libtool_need_lc=$archive_cmds_need_lc
17099
17100 # Whether or not to disallow shared libs when runtime libs are static.
17101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17102
17103 # Compiler flag to allow reflexive dlopens.
17104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17105
17106 # Compiler flag to generate shared objects directly from archives.
17107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17108
17109 # Whether the compiler copes with passing no objects directly.
17110 compiler_needs_object=$lt_compiler_needs_object
17111
17112 # Create an old-style archive from a shared archive.
17113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17114
17115 # Create a temporary old-style archive to link instead of a shared archive.
17116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17117
17118 # Commands used to build a shared archive.
17119 archive_cmds=$lt_archive_cmds
17120 archive_expsym_cmds=$lt_archive_expsym_cmds
17121
17122 # Commands used to build a loadable module if different from building
17123 # a shared archive.
17124 module_cmds=$lt_module_cmds
17125 module_expsym_cmds=$lt_module_expsym_cmds
17126
17127 # Whether we are building with GNU ld or not.
17128 with_gnu_ld=$lt_with_gnu_ld
17129
17130 # Flag that allows shared libraries with undefined symbols to be built.
17131 allow_undefined_flag=$lt_allow_undefined_flag
17132
17133 # Flag that enforces no undefined symbols.
17134 no_undefined_flag=$lt_no_undefined_flag
17135
17136 # Flag to hardcode \$libdir into a binary during linking.
17137 # This must work even if \$libdir does not exist
17138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17139
17140 # Whether we need a single "-rpath" flag with a separated argument.
17141 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17142
17143 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17144 # DIR into the resulting binary.
17145 hardcode_direct=$hardcode_direct
17146
17147 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17148 # DIR into the resulting binary and the resulting library dependency is
17149 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17150 # library is relocated.
17151 hardcode_direct_absolute=$hardcode_direct_absolute
17152
17153 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17154 # into the resulting binary.
17155 hardcode_minus_L=$hardcode_minus_L
17156
17157 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17158 # into the resulting binary.
17159 hardcode_shlibpath_var=$hardcode_shlibpath_var
17160
17161 # Set to "yes" if building a shared library automatically hardcodes DIR
17162 # into the library and all subsequent libraries and executables linked
17163 # against it.
17164 hardcode_automatic=$hardcode_automatic
17165
17166 # Set to yes if linker adds runtime paths of dependent libraries
17167 # to runtime path list.
17168 inherit_rpath=$inherit_rpath
17169
17170 # Whether libtool must link a program against all its dependency libraries.
17171 link_all_deplibs=$link_all_deplibs
17172
17173 # Set to "yes" if exported symbols are required.
17174 always_export_symbols=$always_export_symbols
17175
17176 # The commands to list exported symbols.
17177 export_symbols_cmds=$lt_export_symbols_cmds
17178
17179 # Symbols that should not be listed in the preloaded symbols.
17180 exclude_expsyms=$lt_exclude_expsyms
17181
17182 # Symbols that must always be exported.
17183 include_expsyms=$lt_include_expsyms
17184
17185 # Commands necessary for linking programs (against libraries) with templates.
17186 prelink_cmds=$lt_prelink_cmds
17187
17188 # Commands necessary for finishing linking programs.
17189 postlink_cmds=$lt_postlink_cmds
17190
17191 # Specify filename containing input files.
17192 file_list_spec=$lt_file_list_spec
17193
17194 # How to hardcode a shared library path into an executable.
17195 hardcode_action=$hardcode_action
17196
17197 # ### END LIBTOOL CONFIG
17198
17199 _LT_EOF
17200
17201 case $host_os in
17202 aix3*)
17203 cat <<\_LT_EOF >> "$cfgfile"
17204 # AIX sometimes has problems with the GCC collect2 program. For some
17205 # reason, if we set the COLLECT_NAMES environment variable, the problems
17206 # vanish in a puff of smoke.
17207 if test "X${COLLECT_NAMES+set}" != Xset; then
17208 COLLECT_NAMES=
17209 export COLLECT_NAMES
17210 fi
17211 _LT_EOF
17212 ;;
17213 esac
17214
17215
17216 ltmain="$ac_aux_dir/ltmain.sh"
17217
17218
17219 # We use sed instead of cat because bash on DJGPP gets confused if
17220 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17221 # text mode, it properly converts lines to CR/LF. This bash problem
17222 # is reportedly fixed, but why not run on old versions too?
17223 sed '$q' "$ltmain" >> "$cfgfile" \
17224 || (rm -f "$cfgfile"; exit 1)
17225
17226 if test x"$xsi_shell" = xyes; then
17227 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17228 func_dirname ()\
17229 {\
17230 \ case ${1} in\
17231 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17232 \ * ) func_dirname_result="${3}" ;;\
17233 \ esac\
17234 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17235 && mv -f "$cfgfile.tmp" "$cfgfile" \
17236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17237 test 0 -eq $? || _lt_function_replace_fail=:
17238
17239
17240 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17241 func_basename ()\
17242 {\
17243 \ func_basename_result="${1##*/}"\
17244 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17245 && mv -f "$cfgfile.tmp" "$cfgfile" \
17246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17247 test 0 -eq $? || _lt_function_replace_fail=:
17248
17249
17250 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17251 func_dirname_and_basename ()\
17252 {\
17253 \ case ${1} in\
17254 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17255 \ * ) func_dirname_result="${3}" ;;\
17256 \ esac\
17257 \ func_basename_result="${1##*/}"\
17258 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17259 && mv -f "$cfgfile.tmp" "$cfgfile" \
17260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17261 test 0 -eq $? || _lt_function_replace_fail=:
17262
17263
17264 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17265 func_stripname ()\
17266 {\
17267 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17268 \ # positional parameters, so assign one to ordinary parameter first.\
17269 \ func_stripname_result=${3}\
17270 \ func_stripname_result=${func_stripname_result#"${1}"}\
17271 \ func_stripname_result=${func_stripname_result%"${2}"}\
17272 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17273 && mv -f "$cfgfile.tmp" "$cfgfile" \
17274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17275 test 0 -eq $? || _lt_function_replace_fail=:
17276
17277
17278 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17279 func_split_long_opt ()\
17280 {\
17281 \ func_split_long_opt_name=${1%%=*}\
17282 \ func_split_long_opt_arg=${1#*=}\
17283 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17284 && mv -f "$cfgfile.tmp" "$cfgfile" \
17285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17286 test 0 -eq $? || _lt_function_replace_fail=:
17287
17288
17289 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17290 func_split_short_opt ()\
17291 {\
17292 \ func_split_short_opt_arg=${1#??}\
17293 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17294 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17295 && mv -f "$cfgfile.tmp" "$cfgfile" \
17296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17297 test 0 -eq $? || _lt_function_replace_fail=:
17298
17299
17300 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17301 func_lo2o ()\
17302 {\
17303 \ case ${1} in\
17304 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17305 \ *) func_lo2o_result=${1} ;;\
17306 \ esac\
17307 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17308 && mv -f "$cfgfile.tmp" "$cfgfile" \
17309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17310 test 0 -eq $? || _lt_function_replace_fail=:
17311
17312
17313 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17314 func_xform ()\
17315 {\
17316 func_xform_result=${1%.*}.lo\
17317 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17318 && mv -f "$cfgfile.tmp" "$cfgfile" \
17319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17321
17322
17323 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17324 func_arith ()\
17325 {\
17326 func_arith_result=$(( $* ))\
17327 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17328 && mv -f "$cfgfile.tmp" "$cfgfile" \
17329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17330 test 0 -eq $? || _lt_function_replace_fail=:
17331
17332
17333 sed -e '/^func_len ()$/,/^} # func_len /c\
17334 func_len ()\
17335 {\
17336 func_len_result=${#1}\
17337 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17338 && mv -f "$cfgfile.tmp" "$cfgfile" \
17339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17340 test 0 -eq $? || _lt_function_replace_fail=:
17341
17342 fi
17343
17344 if test x"$lt_shell_append" = xyes; then
17345 sed -e '/^func_append ()$/,/^} # func_append /c\
17346 func_append ()\
17347 {\
17348 eval "${1}+=\\${2}"\
17349 } # Extended-shell func_append 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=:
17353
17354
17355 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17356 func_append_quoted ()\
17357 {\
17358 \ func_quote_for_eval "${2}"\
17359 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17360 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17361 && mv -f "$cfgfile.tmp" "$cfgfile" \
17362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17363 test 0 -eq $? || _lt_function_replace_fail=:
17364
17365
17366 # Save a `func_append' function call where possible by direct use of '+='
17367 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17368 && mv -f "$cfgfile.tmp" "$cfgfile" \
17369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17370 test 0 -eq $? || _lt_function_replace_fail=:
17371 else
17372 # Save a `func_append' function call even when '+=' is not available
17373 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17374 && mv -f "$cfgfile.tmp" "$cfgfile" \
17375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17376 test 0 -eq $? || _lt_function_replace_fail=:
17377 fi
17378
17379 if test x"$_lt_function_replace_fail" = x":"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17381 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17382 fi
17383
17384
17385 mv -f "$cfgfile" "$ofile" ||
17386 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17387 chmod +x "$ofile"
17388
17389 ;;
17390
17391 esac
17392 done # for ac_tag
17393
17394
17395 as_fn_exit 0
17396 _ACEOF
17397 ac_clean_files=$ac_clean_files_save
17398
17399 test $ac_write_fail = 0 ||
17400 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17401
17402
17403 # configure is writing to config.log, and then calls config.status.
17404 # config.status does its own redirection, appending to config.log.
17405 # Unfortunately, on DOS this fails, as config.log is still kept open
17406 # by configure, so config.status won't be able to write to it; its
17407 # output is simply discarded. So we exec the FD to /dev/null,
17408 # effectively closing config.log, so it can be properly (re)opened and
17409 # appended to by config.status. When coming back to configure, we
17410 # need to make the FD available again.
17411 if test "$no_create" != yes; then
17412 ac_cs_success=:
17413 ac_config_status_args=
17414 test "$silent" = yes &&
17415 ac_config_status_args="$ac_config_status_args --quiet"
17416 exec 5>/dev/null
17417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17418 exec 5>>config.log
17419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17420 # would make configure fail if this is the last instruction.
17421 $ac_cs_success || as_fn_exit 1
17422 fi
17423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17426 fi
17427