]> git.ipfire.org Git - thirdparty/squid.git/blame - configure
Bootstrapped
[thirdparty/squid.git] / configure
CommitLineData
090089c4 1#! /bin/sh
f4114eb4 2# From configure.in Revision: 1.438 .
090089c4 3# Guess values for system-dependent variables and create Makefiles.
505c100d 4# Generated by GNU Autoconf 2.59 for Squid Web Proxy 3.0.PRE4-CVS.
6e4fdb42 5#
6# Report bugs to <http://www.squid-cache.org/bugs/>.
090089c4 7#
af3004ff 8# Copyright (C) 2003 Free Software Foundation, Inc.
090089c4 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
33f5f8b9 11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
ad21602a 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
33f5f8b9 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
af3004ff 25DUALCASE=1; export DUALCASE # for MKS sh
33f5f8b9 26
33f5f8b9 27# Support unset when possible.
af3004ff 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33f5f8b9 29 as_unset=unset
30else
31 as_unset=false
32fi
33
ad21602a 34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
af3004ff 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad21602a 48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
33f5f8b9 66
67
68# Name of the executable.
ad21602a 69as_me=`$as_basename "$0" ||
33f5f8b9 70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
ad21602a 80
33f5f8b9 81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
ad21602a 91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33f5f8b9 95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
ad21602a 99 rm -f conf$$.sh
33f5f8b9 100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
ad21602a 147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33f5f8b9 149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
ad21602a 221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
af3004ff 224 test -d ./-p && rmdir ./-p
ad21602a 225 as_mkdir_p=false
226fi
227
33f5f8b9 228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
af3004ff 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33f5f8b9 232
233# Sed expression to map a string onto a valid variable name.
af3004ff 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33f5f8b9 235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
ad21602a 244$as_unset CDPATH
33f5f8b9 245
246
a33e1d91 247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
261 shift
262elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
264 :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
267 :
268else
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
275 shift
276 cat <<EOF
277$*
278EOF
279 exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
631008fb 284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a33e1d91 285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
693f5c2e 291 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292 echo_test_string=`eval $cmd` &&
a33e1d91 293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294 then
295 break
296 fi
297 done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
303 :
304else
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
308 #
309 # So, first we look for a working echo in the user's PATH.
310
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
313 IFS="$lt_save_ifs"
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
318 echo="$dir/echo"
319 break
320 fi
321 done
322 IFS="$lt_save_ifs"
323
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
330 echo='print -r'
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
337 export CONFIG_SHELL
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 else
340 # Try using printf.
341 echo='printf %s\n'
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
345 # Cool, printf works
346 :
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 export CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
354 export SHELL
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 else
362 # maybe with a smaller string...
363 prev=:
364
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367 then
368 break
369 fi
370 prev="$cmd"
371 done
372
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 else
378 # Oops. We lost completely, so just stick with echo.
379 echo=echo
380 fi
381 fi
382 fi
383 fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
33f5f8b9 401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
090089c4 411ac_default_prefix=/usr/local
ad21602a 412ac_config_libobj_dir=.
33f5f8b9 413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete. It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
6e4fdb42 425PACKAGE_NAME='Squid Web Proxy'
25b6a907 426PACKAGE_TARNAME='squid'
505c100d 427PACKAGE_VERSION='3.0.PRE4-CVS'
428PACKAGE_STRING='Squid Web Proxy 3.0.PRE4-CVS'
6e4fdb42 429PACKAGE_BUGREPORT='http://www.squid-cache.org/bugs/'
33f5f8b9 430
e6ccf245 431ac_unique_file="src/main.cc"
2877b8a9 432ac_default_prefix=/usr/local/squid
33f5f8b9 433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447# include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452# include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463# include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
12a5c9fd 470ac_subdirs_all="$ac_subdirs_all lib/libTrie"
f5691f9c 471ac_subdirs_all="$ac_subdirs_all lib/cppunit-1.10.0"
6e6cb8f0 472ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBADD_DL CGIEXT ENABLE_WIN32SPECIFIC_TRUE ENABLE_WIN32SPECIFIC_FALSE WIN32_PSAPI USE_IPC_WIN32_TRUE USE_IPC_WIN32_FALSE MINGW_LIBS CACHE_HTTP_PORT CACHE_ICP_PORT SQUID_CFLAGS SQUID_CXXFLAGS LIBDLMALLOC LIB_MALLOC STORE_OBJS STORE_LIBS STORE_LINKOBJS STORE_TESTS DISK_LIBS DISK_PROGRAMS DISK_LINKOBJS USE_AIOPS_WIN32_TRUE USE_AIOPS_WIN32_FALSE USE_AIO_WIN32_TRUE USE_AIO_WIN32_FALSE REPL_POLICIES REPL_OBJS REPL_LIBS ENABLE_PINGER_TRUE ENABLE_PINGER_FALSE USE_DELAY_POOLS_TRUE USE_DELAY_POOLS_FALSE USE_ESI_TRUE USE_ESI_FALSE USE_ICAP_CLIENT_TRUE USE_ICAP_CLIENT_FALSE ICAP_LIBS USE_SNMP_TRUE USE_SNMP_FALSE SNMPLIB makesnmplib ENABLE_ARP_ACL_TRUE ENABLE_ARP_ACL_FALSE ENABLE_HTCP_TRUE ENABLE_HTCP_FALSE ENABLE_SSL_TRUE ENABLE_SSL_FALSE NEED_OWN_MD5_TRUE NEED_OWN_MD5_FALSE SSLLIB ERR_DEFAULT_LANGUAGE ERR_LANGUAGES MAKE_LEAKFINDER_TRUE MAKE_LEAKFINDER_FALSE ENABLE_IDENT_TRUE ENABLE_IDENT_FALSE USE_DNSSERVER_TRUE USE_DNSSERVER_FALSE OPT_DEFAULT_HOSTS AUTH_MODULES AUTH_LIBS AUTH_LINKOBJS AUTH_OBJS BASIC_AUTH_HELPERS NTLM_AUTH_HELPERS NEGOTIATE_AUTH_HELPERS DIGEST_AUTH_HELPERS EXTERNAL_ACL_HELPERS LIBSASL ENABLE_UNLINKD_TRUE ENABLE_UNLINKD_FALSE ENABLE_XPROF_STATS_TRUE ENABLE_XPROF_STATS_FALSE CPPUNITCONFIG SQUID_CPPUNIT_LIBS SQUID_CPPUNIT_LA SQUID_CPPUNIT_INC SQUID_CPPUNIT_DIR SH FALSE TRUE RM MV MKDIR LN PERL AR_R ALLOCA CRYPTLIB LIB_LDAP LIB_LBER LIB_DB EPOLL_LIBS NEED_OWN_SNPRINTF_TRUE NEED_OWN_SNPRINTF_FALSE NEED_OWN_STRSEP_TRUE NEED_OWN_STRSEP_FALSE REGEXLIB LIBREGEX LIBOBJS XTRA_OBJS XTRA_LIBS subdirs LTLIBOBJS'
ad21602a 473ac_subst_files=''
090089c4 474
475# Initialize some variables set by options.
33f5f8b9 476ac_init_help=
477ac_init_version=false
090089c4 478# The variables have the same names as the options, with
479# dashes changed to underlines.
33f5f8b9 480cache_file=/dev/null
090089c4 481exec_prefix=NONE
090089c4 482no_create=
090089c4 483no_recursion=
484prefix=NONE
485program_prefix=NONE
486program_suffix=NONE
487program_transform_name=s,x,x,
488silent=
489site=
490srcdir=
090089c4 491verbose=
492x_includes=NONE
493x_libraries=NONE
33f5f8b9 494
495# Installation directory options.
496# These are left unexpanded so users can "make install exec_prefix=/foo"
497# and all the variables that are supposed to be based on exec_prefix
498# by default will actually change.
499# Use braces instead of parens because sh, perl, etc. also accept them.
090089c4 500bindir='${exec_prefix}/bin'
501sbindir='${exec_prefix}/sbin'
502libexecdir='${exec_prefix}/libexec'
503datadir='${prefix}/share'
504sysconfdir='${prefix}/etc'
505sharedstatedir='${prefix}/com'
506localstatedir='${prefix}/var'
507libdir='${exec_prefix}/lib'
508includedir='${prefix}/include'
509oldincludedir='/usr/include'
510infodir='${prefix}/info'
511mandir='${prefix}/man'
512
090089c4 513ac_prev=
514for ac_option
515do
090089c4 516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
519 ac_prev=
520 continue
521 fi
522
33f5f8b9 523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
090089c4 524
525 # Accept the important Cygnus configure options, so we can diagnose typos.
526
33f5f8b9 527 case $ac_option in
090089c4 528
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 ac_prev=bindir ;;
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
33f5f8b9 532 bindir=$ac_optarg ;;
090089c4 533
534 -build | --build | --buil | --bui | --bu)
33f5f8b9 535 ac_prev=build_alias ;;
090089c4 536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
33f5f8b9 537 build_alias=$ac_optarg ;;
090089c4 538
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
33f5f8b9 544 cache_file=$ac_optarg ;;
545
546 --config-cache | -C)
547 cache_file=config.cache ;;
090089c4 548
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 ac_prev=datadir ;;
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 | --da=*)
33f5f8b9 553 datadir=$ac_optarg ;;
090089c4 554
555 -disable-* | --disable-*)
33f5f8b9 556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
090089c4 557 # Reject names that are not valid shell variable names.
33f5f8b9 558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
090089c4 563
564 -enable-* | --enable-*)
33f5f8b9 565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
090089c4 566 # Reject names that are not valid shell variable names.
33f5f8b9 567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 case $ac_option in
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
090089c4 573 *) ac_optarg=yes ;;
574 esac
33f5f8b9 575 eval "enable_$ac_feature='$ac_optarg'" ;;
090089c4 576
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
33f5f8b9 584 exec_prefix=$ac_optarg ;;
090089c4 585
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
588 with_gas=yes ;;
589
33f5f8b9 590 -help | --help | --hel | --he | -h)
591 ac_init_help=long ;;
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
090089c4 596
597 -host | --host | --hos | --ho)
33f5f8b9 598 ac_prev=host_alias ;;
090089c4 599 -host=* | --host=* | --hos=* | --ho=*)
33f5f8b9 600 host_alias=$ac_optarg ;;
090089c4 601
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
33f5f8b9 607 includedir=$ac_optarg ;;
090089c4 608
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 ac_prev=infodir ;;
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
33f5f8b9 612 infodir=$ac_optarg ;;
090089c4 613
614 -libdir | --libdir | --libdi | --libd)
615 ac_prev=libdir ;;
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
33f5f8b9 617 libdir=$ac_optarg ;;
090089c4 618
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
33f5f8b9 624 libexecdir=$ac_optarg ;;
090089c4 625
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
33f5f8b9 633 localstatedir=$ac_optarg ;;
090089c4 634
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 ac_prev=mandir ;;
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
33f5f8b9 638 mandir=$ac_optarg ;;
090089c4 639
640 -nfp | --nfp | --nf)
641 # Obsolete; use --without-fp.
642 with_fp=no ;;
643
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
33f5f8b9 645 | --no-cr | --no-c | -n)
090089c4 646 no_create=yes ;;
647
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 no_recursion=yes ;;
651
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
33f5f8b9 659 oldincludedir=$ac_optarg ;;
090089c4 660
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 ac_prev=prefix ;;
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33f5f8b9 664 prefix=$ac_optarg ;;
090089c4 665
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
33f5f8b9 671 program_prefix=$ac_optarg ;;
090089c4 672
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
33f5f8b9 678 program_suffix=$ac_optarg ;;
090089c4 679
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
33f5f8b9 695 program_transform_name=$ac_optarg ;;
090089c4 696
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
699 silent=yes ;;
700
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 ac_prev=sbindir ;;
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 | --sbi=* | --sb=*)
33f5f8b9 705 sbindir=$ac_optarg ;;
090089c4 706
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
710 | --sha | --sh)
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 | --sha=* | --sh=*)
33f5f8b9 716 sharedstatedir=$ac_optarg ;;
090089c4 717
718 -site | --site | --sit)
719 ac_prev=site ;;
720 -site=* | --site=* | --sit=*)
33f5f8b9 721 site=$ac_optarg ;;
090089c4 722
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 ac_prev=srcdir ;;
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33f5f8b9 726 srcdir=$ac_optarg ;;
090089c4 727
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
33f5f8b9 733 sysconfdir=$ac_optarg ;;
090089c4 734
735 -target | --target | --targe | --targ | --tar | --ta | --t)
33f5f8b9 736 ac_prev=target_alias ;;
090089c4 737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
33f5f8b9 738 target_alias=$ac_optarg ;;
090089c4 739
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 verbose=yes ;;
742
33f5f8b9 743 -version | --version | --versio | --versi | --vers | -V)
744 ac_init_version=: ;;
090089c4 745
746 -with-* | --with-*)
33f5f8b9 747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
090089c4 748 # Reject names that are not valid shell variable names.
33f5f8b9 749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
090089c4 752 ac_package=`echo $ac_package| sed 's/-/_/g'`
33f5f8b9 753 case $ac_option in
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
090089c4 755 *) ac_optarg=yes ;;
756 esac
33f5f8b9 757 eval "with_$ac_package='$ac_optarg'" ;;
090089c4 758
759 -without-* | --without-*)
33f5f8b9 760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
090089c4 761 # Reject names that are not valid shell variable names.
33f5f8b9 762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
090089c4 767
768 --x)
769 # Obsolete; use --with-x.
770 with_x=yes ;;
771
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
33f5f8b9 777 x_includes=$ac_optarg ;;
090089c4 778
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
33f5f8b9 784 x_libraries=$ac_optarg ;;
090089c4 785
33f5f8b9 786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
090089c4 789 ;;
790
33f5f8b9 791 *=*)
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
799 export $ac_envvar ;;
800
090089c4 801 *)
33f5f8b9 802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
090089c4 807 ;;
808
809 esac
810done
811
812if test -n "$ac_prev"; then
33f5f8b9 813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
3f961930 816fi
3f961930 817
33f5f8b9 818# Be sure to have absolute paths.
819for ac_var in exec_prefix prefix
820do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827done
090089c4 828
33f5f8b9 829# Be sure to have absolute paths.
830for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
af3004ff 831 localstatedir libdir includedir oldincludedir infodir mandir
090089c4 832do
33f5f8b9 833 eval ac_val=$`echo $ac_var`
834 case $ac_val in
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
090089c4 838 esac
839done
840
33f5f8b9 841# There might be people who depend on the old broken behavior: `$host'
842# used to hold the argument of --host etc.
843# FIXME: To remove some day.
844build=$build_alias
845host=$host_alias
846target=$target_alias
847
848# FIXME: To remove some day.
849if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
855 cross_compiling=yes
856 fi
857fi
b65c7b0d 858
33f5f8b9 859ac_tool_prefix=
860test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862test "$silent" = yes && exec 6>/dev/null
090089c4 863
090089c4 864
865# Find the source files, if location was not specified.
866if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
33f5f8b9 869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
33f5f8b9 875echo X"$0" |
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
880 s/.*/./; q'`
090089c4 881 srcdir=$ac_confdir
882 if test ! -r $srcdir/$ac_unique_file; then
883 srcdir=..
884 fi
885else
886 ac_srcdir_defaulted=no
887fi
888if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
33f5f8b9 890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
090089c4 892 else
33f5f8b9 893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
090089c4 895 fi
896fi
ad21602a 897(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
33f5f8b9 900srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901ac_env_build_alias_set=${build_alias+set}
902ac_env_build_alias_value=$build_alias
903ac_cv_env_build_alias_set=${build_alias+set}
904ac_cv_env_build_alias_value=$build_alias
905ac_env_host_alias_set=${host_alias+set}
906ac_env_host_alias_value=$host_alias
907ac_cv_env_host_alias_set=${host_alias+set}
908ac_cv_env_host_alias_value=$host_alias
909ac_env_target_alias_set=${target_alias+set}
910ac_env_target_alias_value=$target_alias
911ac_cv_env_target_alias_set=${target_alias+set}
912ac_cv_env_target_alias_value=$target_alias
913ac_env_CC_set=${CC+set}
914ac_env_CC_value=$CC
915ac_cv_env_CC_set=${CC+set}
916ac_cv_env_CC_value=$CC
917ac_env_CFLAGS_set=${CFLAGS+set}
918ac_env_CFLAGS_value=$CFLAGS
919ac_cv_env_CFLAGS_set=${CFLAGS+set}
920ac_cv_env_CFLAGS_value=$CFLAGS
921ac_env_LDFLAGS_set=${LDFLAGS+set}
922ac_env_LDFLAGS_value=$LDFLAGS
923ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924ac_cv_env_LDFLAGS_value=$LDFLAGS
925ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_env_CPPFLAGS_value=$CPPFLAGS
927ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CPP_set=${CPP+set}
938ac_env_CPP_value=$CPP
939ac_cv_env_CPP_set=${CPP+set}
940ac_cv_env_CPP_value=$CPP
a33e1d91 941ac_env_CXXCPP_set=${CXXCPP+set}
942ac_env_CXXCPP_value=$CXXCPP
943ac_cv_env_CXXCPP_set=${CXXCPP+set}
944ac_cv_env_CXXCPP_value=$CXXCPP
945ac_env_F77_set=${F77+set}
946ac_env_F77_value=$F77
947ac_cv_env_F77_set=${F77+set}
948ac_cv_env_F77_value=$F77
949ac_env_FFLAGS_set=${FFLAGS+set}
950ac_env_FFLAGS_value=$FFLAGS
951ac_cv_env_FFLAGS_set=${FFLAGS+set}
952ac_cv_env_FFLAGS_value=$FFLAGS
090089c4 953
33f5f8b9 954#
955# Report the --help message.
956#
957if test "$ac_init_help" = "long"; then
958 # Omit some internal or obsolete options to make the list less imposing.
959 # This message is too long to be a string in the A/UX 3.1 sh.
960 cat <<_ACEOF
505c100d 961\`configure' configures Squid Web Proxy 3.0.PRE4-CVS to adapt to many kinds of systems.
090089c4 962
33f5f8b9 963Usage: $0 [OPTION]... [VAR=VALUE]...
090089c4 964
33f5f8b9 965To assign environment variables (e.g., CC, CFLAGS...), specify them as
966VAR=VALUE. See below for descriptions of some of the useful variables.
b65c7b0d 967
33f5f8b9 968Defaults for the options are specified in brackets.
b65c7b0d 969
33f5f8b9 970Configuration:
971 -h, --help display this help and exit
972 --help=short display options specific to this package
973 --help=recursive display the short help of all the included packages
974 -V, --version display version information and exit
975 -q, --quiet, --silent do not print \`checking...' messages
976 --cache-file=FILE cache test results in FILE [disabled]
977 -C, --config-cache alias for \`--cache-file=config.cache'
978 -n, --no-create do not create output files
979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980
981_ACEOF
982
983 cat <<_ACEOF
984Installation directories:
985 --prefix=PREFIX install architecture-independent files in PREFIX
af3004ff 986 [$ac_default_prefix]
33f5f8b9 987 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
af3004ff 988 [PREFIX]
b65c7b0d 989
33f5f8b9 990By default, \`make install' will install all the files in
991\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
992an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993for instance \`--prefix=\$HOME'.
b65c7b0d 994
33f5f8b9 995For better control, use the options below.
996
997Fine tuning of the installation directories:
998 --bindir=DIR user executables [EPREFIX/bin]
999 --sbindir=DIR system admin executables [EPREFIX/sbin]
1000 --libexecdir=DIR program executables [EPREFIX/libexec]
1001 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1005 --libdir=DIR object code libraries [EPREFIX/lib]
1006 --includedir=DIR C header files [PREFIX/include]
1007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1008 --infodir=DIR info documentation [PREFIX/info]
1009 --mandir=DIR man documentation [PREFIX/man]
1010_ACEOF
1011
1012 cat <<\_ACEOF
1013
1014Program names:
1015 --program-prefix=PREFIX prepend PREFIX to installed program names
1016 --program-suffix=SUFFIX append SUFFIX to installed program names
1017 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1018
1019System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
25b6a907 1026 case $ac_init_help in
505c100d 1027 short | recursive ) echo "Configuration of Squid Web Proxy 3.0.PRE4-CVS:";;
25b6a907 1028 esac
33f5f8b9 1029 cat <<\_ACEOF
1030
1031Optional Features:
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
07d1f987 1034 --enable-maintainer-mode enable make rules and dependencies not useful
1035 (and sometimes confusing) to the casual installer
1036 --disable-dependency-tracking speeds up one-time build
1037 --enable-dependency-tracking do not reject slow dependency extractors
a33e1d91 1038 --enable-shared[=PKGS]
07d1f987 1039 build shared libraries [default=no]
a33e1d91 1040 --enable-static[=PKGS]
1041 build static libraries [default=yes]
1042 --enable-fast-install[=PKGS]
1043 optimize for fast installation [default=yes]
1044 --disable-libtool-lock avoid locking (might break parallel builds)
33f5f8b9 1045 --enable-dlmalloc=LIB Compile & use the malloc package by Doug Lea
ae24c48d 1046 --enable-gnuregex Compile GNUregex. Unless you have reason to use this
ca732765 1047 option, you should not enable it. This library file
1048 is usually only required on Windows and very old
1049 Unix boxes which do not have their own regex library
1050 built in.
9a1efaa8 1051 --disable-optimizations Don't compile Squid with compiler optimizations enabled.
ca732765 1052 Optimization is good for production builds, but not
1053 good for debugging. During development, use
1054 --disable-optimizations to reduce compilation times
1055 and allow easier debugging. This option implicitly
1056 also enabled --disable-inline
3360d3f2 1057 --disable-inline Don't compile trivial methods as inline. Squid
ca732765 1058 is coded with much of the code able to be inlined.
1059 Inlining is good for production builds, but not
1060 good for development. During development, use
1061 --disable-inline to reduce compilation times and
1062 allow incremental builds to be quick. For
1063 production builds, or load tests, use
1064 --enable-inline to have squid make all trivial
1065 methods inlinable by the compiler.
33f5f8b9 1066 --enable-debug-cbdata Provide some debug information in cbdata
1067 --enable-xmalloc-statistics
1068 Show malloc statistics in status page
1069 --disable-carp Disable CARP support
1070 --enable-async-io=N_THREADS
1071 Shorthand for
1072 --with-aufs-threads=N_THREADS
1073 --with-pthreads
1074 --enable-storeio=ufs,aufs
1075 --enable-storeio=\"list of modules\"
1076 Build support for the list of store I/O modules.
1077 The default is only to build the "ufs" module.
1078 See src/fs for a list of available modules, or
1079 Programmers Guide section <not yet written>
1080 for details on how to build your custom store module
b9ae18aa 1081 --enable-disk-io=\"list of modules\"
1082 Build support for the list of disk I/O modules.
1083 The default is only to build the "Blocking" module.
1084 See src/DiskIO for a list of available modules, or
1085 Programmers Guide section <not yet written>
1086 for details on how to build your custom disk module
33f5f8b9 1087 --enable-removal-policies=\"list of policies\"
1088 Build support for the list of removal policies.
1089 The default is only to build the "lru" module.
1090 See src/repl for a list of available modules, or
1091 Programmers Guide section 9.9 for details on how
1092 to build your custom policy
1093 --enable-icmp Enable ICMP pinging
1094 --enable-delay-pools Enable delay pools to limit bandwidth usage
12a5c9fd 1095 --enable-esi Enable ESI for accelerators. Requires libexpat.
1096 Enabling ESI will cause squid to follow the Edge
1097 Acceleration Specification (www.esi.org). This
1098 causes squid to IGNORE client Cache-Control headers.
1099 DO NOT use this in a squid configured as a web
1100 proxy, ONLY use it in a squid configured for
1101 webserver acceleration.
2f2d507f 1102 --enable-icap-client Enable the ICAP client.
33f5f8b9 1103 --enable-useragent-log Enable logging of User-Agent header
1104 --enable-referer-log Enable logging of Referer header
1105 --disable-wccp Disable Web Cache Coordination Protocol
fbbe3d25 1106 --disable-wccpv2 Disable Web Cache Coordination V2 Protocol
33f5f8b9 1107 --enable-kill-parent-hack
1108 Kill parent on shutdown
1109 --enable-snmp Enable SNMP monitoring
1110 --enable-cachemgr-hostname=hostname
1111 Make cachemgr.cgi default to this host
1112 --enable-arp-acl Enable use of ARP ACL lists (ether address)
1113 --enable-htcp Enable HTCP protocol
1114 --enable-ssl Enable ssl gatewaying support using OpenSSL
1115 --enable-forw-via-db Enable Forw/Via database
1116 --enable-cache-digests Use Cache Digests
1117 see http://www.squid-cache.org/FAQ/FAQ-16.html
1118 --enable-default-err-language=lang
1119 Select default language for Error pages (see
1120 errors directory)
1121 --enable-err-languages=\"lang1 lang2..\"
1122 Select languages to be installed. (All will be
1123 installed by default)
ca732765 1124 --enable-poll Enable poll() support.
33f5f8b9 1125 --disable-poll Disable poll() support.
ca732765 1126 --enable-select Enable select() support.
33f5f8b9 1127 --disable-select Disable select() support.
ca732765 1128 --enable-kqueue Enable kqueue() support.
33f5f8b9 1129 --disable-kqueue Disable kqueue() support.
ca732765 1130 --enable-epoll Enable epoll() support.
1131 --disable-epoll Disable epoll() support.
33f5f8b9 1132 --disable-http-violations
1133 This allows you to remove code which is known to
1134 violate the HTTP protocol specification.
1135 --enable-ipf-transparent
1136 Enable Transparent Proxy support for systems
1137 using IP-Filter network address redirection.
1138 --enable-pf-transparent
1139 Enable Transparent Proxy support for systems
1140 using PF network address redirection.
1141 --enable-linux-netfilter
82fd361a 1142 Enable Transparent Proxy support for Linux (Netfilter) systems.
33f5f8b9 1143 --enable-leakfinder
1144 Enable Leak Finding code. Enabling this alone
1145 does nothing; you also have to modify the source
1146 code to use the leak finding functions. Probably
1147 Useful for hackers only.
1148 --disable-ident-lookups
1149 This allows you to remove code that performs
1150 Ident (RFC 931) lookups.
1151 --disable-internal-dns This prevents Squid from directly sending and
1152 receiving DNS messages, and instead enables the
1153 old external 'dnsserver' processes.
1154 --enable-truncate This uses truncate() instead of unlink() when
1155 removing cache files. Truncate gives a little
1156 performance improvement, but may cause problems
1157 when used with async I/O. Truncate uses more
1158 filesystem inodes than unlink..
c8a31e86 1159 --enable-hostname-checks
1160 Tells Squid to rejects any host names with
1161 odd characters in their name to conform with
1162 internet standards. This was the default in
1163 prior Squid versions, but since Squid-3 Squid
1164 no longer tries to police the use of DNS
33f5f8b9 1165 --enable-underscores Squid by default rejects any host names with _
1166 in their name to conform with internet standards.
1167 If you disagree with this you may allow _ in
1168 hostnames by using this switch, provided that
1169 the resolver library on the host where Squid runs
1170 does not reject _ in hostnames...
1171 --enable-default-hostsfile=path
1172 Select default location for hosts file.
1173 See hosts_file directive in squid.conf for details
1174 --enable-auth=\"list of auth scheme modules\"
1175 Build support for the list of authentication schemes.
1176 The default is to build support for the Basic scheme.
1177 See src/auth for a list of available modules, or
1178 Programmers Guide section authentication schemes
1179 for details on how to build your custom auth scheme
1180 module
33f5f8b9 1181 --enable-basic-auth-helpers=\"list of helpers\"
1182 This option selects which basic scheme proxy_auth
1183 helpers to build and install as part of the normal
1184 build process. For a list of available
1185 helpers see the helpers/basic_auth directory.
1186 --enable-ntlm-auth-helpers=\"list of helpers\"
1187 This option selects which proxy_auth ntlm helpers
1188 to build and install as part of the normal build
1189 process. For a list of available helpers see
1190 the helpers/ntlm_auth directory.
ce4caa86 1191 --enable-negotiate-auth-helpers=\"list of helpers\"
1192 This option selects which proxy_auth negotiate helpers
1193 to build and install as part of the normal build
1194 process. For a list of available helpers see
1195 the helpers/negotiate_auth directory.
33f5f8b9 1196 --enable-digest-auth-helpers=\"list of helpers\"
1197 This option selects which digest scheme authentication
1198 helpers to build and install as part of the normal build
1199 process. For a list of available helpers see the
1200 helpers/digest_auth directory.
1201 --enable-ntlm-fail-open Enable NTLM fail open, where a helper that fails one of the
1202 Authentication steps can allow squid to still authenticate
1203 the user.
1204 --enable-external-acl-helpers=\"list of helpers\"
1205 This option selects which external_acl helpers to
1206 build and install as part of the normal build
1207 process. For a list of available helpers see the
1208 helpers/external_acl directory.
a33e1d91 1209 --disable-mempools Disable memPools. Note that this option now simply sets the
ca732765 1210 default behaviour. Specific classes can override this at runtime, and
1211 only lib/MemPool.c needs to be altered to change the squid-wide
1212 default for all classes.
9e6ab3ce 1213 --enable-win32-service Compile Squid as a WIN32 Service
1214 Works only on Windows NT and Windows 2000 Platforms.
33f5f8b9 1215 --disable-unlinkd Do not use unlinkd
1216 --enable-stacktraces Enable automatic call backtrace on fatal errors
1217 --enable-cpu-profiling
1218 This option allows you to see which internal functions
1219 in Squid are consuming how much CPU. Compiles in probes
1220 that measure time spent in probed functions. Needs
1221 source modifications to add new probes. This is meant
1222 for developers to assist in performance optimisations
1223 of Squid internal functions.
1224 If you are not developer and not interested in the stats
1225 you shouldn't enable this, as overhead added, although
1226 small, is still overhead. See lib/Profiler.c for more.
1227
1228 --enable-x-accelerator-vary
1229 Enable support for the X-Accelerator-Vary
1230 HTTP header. Can be used to indicate
1231 variance within an accelerator setup.
1232 Typically used together with other code
1233 that adds custom HTTP headers to the requests.
1234
1235Optional Packages:
1236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a33e1d91 1238 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1239 --with-pic try to use only PIC/non-PIC objects [default=use
1240 both]
1241 --with-tags[=TAGS]
1242 include additional configurations [automatic]
33f5f8b9 1243 --with-aufs-threads=N_THREADS
1244 Tune the number of worker threads for the aufs object
1245 store.
1246 --with-pthreads Use POSIX Threads
1247 --with-aio Use POSIX AIO
1248 --with-dl Use dynamic linking
1249 --with-openssl=prefix
1250 Compile with the OpenSSL libraries. The path to
1251 the OpenSSL development libraries and headers
1252 installation can be specified if outside of the
1253 system standard directories
1254 --with-coss-membuf-size COSS membuf size (default 1048576 bytes)
ca732765 1255 --with-large-files Enable support for large files (logs etc). Still
1256 experimental.
1257 --with-build-environment=model
1258 The build environment to use. Normally one of
1259 POSIX_V6_ILP32_OFF32 32 bits
1260 POSIX_V6_ILP32_OFFBIG 32 bits with large file support
1261 POSIX_V6_LP64_OFF64 64 bits
1262 POSIX_V6_LPBIG_OFFBIG large pointers and files
1263 XBS5_ILP32_OFF32 32 bits (legacy)
1264 XBS5_ILP32_OFFBIG 32 bits with large file support (legacy)
1265 XBS5_LP64_OFF64 64 bits (legacy)
1266 XBS5_LPBIG_OFFBIG large pointers and files (legacy)
1267 default The default for your OS
00b2804c 1268 --with-valgrind Include debug instrumentation for use with valgrind
33f5f8b9 1269 --with-filedescriptors=NUMBER Force squid to support NUMBER filedescriptors
a33e1d91 1270 --with-cppunit-basedir=/path/to/cppunit-base
1271 Path where the cppunit headers are libraries are found
1272 for unit testing. (defaults to use internal copies -
1273 version 1.10.0)
1274
33f5f8b9 1275
1276Some influential environment variables:
1277 CC C compiler command
1278 CFLAGS C compiler flags
1279 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1280 nonstandard directory <lib dir>
1281 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1282 headers in a nonstandard directory <include dir>
1283 CXX C++ compiler command
1284 CXXFLAGS C++ compiler flags
1285 CPP C preprocessor
a33e1d91 1286 CXXCPP C++ preprocessor
1287 F77 Fortran 77 compiler command
1288 FFLAGS Fortran 77 compiler flags
33f5f8b9 1289
1290Use these variables to override the choices made by `configure' or to help
1291it to find libraries and programs with nonstandard names/locations.
1292
6e4fdb42 1293Report bugs to <http://www.squid-cache.org/bugs/>.
33f5f8b9 1294_ACEOF
1295fi
1296
1297if test "$ac_init_help" = "recursive"; then
1298 # If there are subdirs, report their specific --help.
1299 ac_popdir=`pwd`
1300 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1301 test -d $ac_dir || continue
1302 ac_builddir=.
1303
1304if test "$ac_dir" != .; then
1305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1306 # A "../" for each directory in $ac_dir_suffix.
1307 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1308else
1309 ac_dir_suffix= ac_top_builddir=
1310fi
1311
1312case $srcdir in
1313 .) # No --srcdir option. We are building in place.
1314 ac_srcdir=.
1315 if test -z "$ac_top_builddir"; then
1316 ac_top_srcdir=.
1317 else
1318 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1319 fi ;;
1320 [\\/]* | ?:[\\/]* ) # Absolute path.
1321 ac_srcdir=$srcdir$ac_dir_suffix;
1322 ac_top_srcdir=$srcdir ;;
1323 *) # Relative path.
1324 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1325 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1326esac
af3004ff 1327
1328# Do not use `cd foo && pwd` to compute absolute paths, because
1329# the directories may not exist.
1330case `pwd` in
1331.) ac_abs_builddir="$ac_dir";;
1332*)
1333 case "$ac_dir" in
1334 .) ac_abs_builddir=`pwd`;;
1335 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1336 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1337 esac;;
1338esac
1339case $ac_abs_builddir in
1340.) ac_abs_top_builddir=${ac_top_builddir}.;;
1341*)
1342 case ${ac_top_builddir}. in
1343 .) ac_abs_top_builddir=$ac_abs_builddir;;
1344 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1345 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1346 esac;;
1347esac
1348case $ac_abs_builddir in
1349.) ac_abs_srcdir=$ac_srcdir;;
1350*)
1351 case $ac_srcdir in
1352 .) ac_abs_srcdir=$ac_abs_builddir;;
1353 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1354 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1355 esac;;
1356esac
1357case $ac_abs_builddir in
1358.) ac_abs_top_srcdir=$ac_top_srcdir;;
1359*)
1360 case $ac_top_srcdir in
1361 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1362 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1363 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1364 esac;;
1365esac
33f5f8b9 1366
1367 cd $ac_dir
1368 # Check for guested configure; otherwise get Cygnus style configure.
1369 if test -f $ac_srcdir/configure.gnu; then
1370 echo
1371 $SHELL $ac_srcdir/configure.gnu --help=recursive
1372 elif test -f $ac_srcdir/configure; then
1373 echo
1374 $SHELL $ac_srcdir/configure --help=recursive
1375 elif test -f $ac_srcdir/configure.ac ||
af3004ff 1376 test -f $ac_srcdir/configure.in; then
33f5f8b9 1377 echo
1378 $ac_configure --help
1379 else
1380 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1381 fi
6263d81f 1382 cd $ac_popdir
33f5f8b9 1383 done
1384fi
1385
1386test -n "$ac_init_help" && exit 0
1387if $ac_init_version; then
1388 cat <<\_ACEOF
505c100d 1389Squid Web Proxy configure 3.0.PRE4-CVS
25b6a907 1390generated by GNU Autoconf 2.59
33f5f8b9 1391
af3004ff 1392Copyright (C) 2003 Free Software Foundation, Inc.
33f5f8b9 1393This configure script is free software; the Free Software Foundation
1394gives unlimited permission to copy, distribute and modify it.
1395_ACEOF
1396 exit 0
1397fi
1398exec 5>config.log
1399cat >&5 <<_ACEOF
1400This file contains any messages produced by compilers while
1401running configure, to aid debugging if configure makes a mistake.
1402
505c100d 1403It was created by Squid Web Proxy $as_me 3.0.PRE4-CVS, which was
af3004ff 1404generated by GNU Autoconf 2.59. Invocation command line was
33f5f8b9 1405
1406 $ $0 $@
1407
1408_ACEOF
1409{
1410cat <<_ASUNAME
1411## --------- ##
1412## Platform. ##
1413## --------- ##
1414
1415hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1416uname -m = `(uname -m) 2>/dev/null || echo unknown`
1417uname -r = `(uname -r) 2>/dev/null || echo unknown`
1418uname -s = `(uname -s) 2>/dev/null || echo unknown`
1419uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420
1421/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1422/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1423
1424/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1425/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1426/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1427hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1428/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1429/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1430/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1431
1432_ASUNAME
1433
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 echo "PATH: $as_dir"
1440done
1441
1442} >&5
1443
1444cat >&5 <<_ACEOF
1445
1446
1447## ----------- ##
1448## Core tests. ##
1449## ----------- ##
1450
1451_ACEOF
1452
1453
1454# Keep a trace of the command line.
1455# Strip out --no-create and --no-recursion so they do not pile up.
ad21602a 1456# Strip out --silent because we don't want to record it for future runs.
33f5f8b9 1457# Also quote any args containing shell meta-characters.
ad21602a 1458# Make two passes to allow for proper duplicate-argument suppression.
33f5f8b9 1459ac_configure_args=
ad21602a 1460ac_configure_args0=
1461ac_configure_args1=
33f5f8b9 1462ac_sep=
ad21602a 1463ac_must_keep_next=false
1464for ac_pass in 1 2
33f5f8b9 1465do
ad21602a 1466 for ac_arg
1467 do
1468 case $ac_arg in
1469 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471 | -silent | --silent | --silen | --sile | --sil)
1472 continue ;;
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 esac
1476 case $ac_pass in
1477 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 2)
1479 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1480 if test $ac_must_keep_next = true; then
af3004ff 1481 ac_must_keep_next=false # Got value, back to normal.
ad21602a 1482 else
af3004ff 1483 case $ac_arg in
1484 *=* | --config-cache | -C | -disable-* | --disable-* \
1485 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1486 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1487 | -with-* | --with-* | -without-* | --without-* | --x)
1488 case "$ac_configure_args0 " in
1489 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1490 esac
1491 ;;
1492 -* ) ac_must_keep_next=true ;;
1493 esac
ad21602a 1494 fi
1495 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1496 # Get rid of the leading space.
1497 ac_sep=" "
1498 ;;
1499 esac
1500 done
33f5f8b9 1501done
ad21602a 1502$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1503$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
33f5f8b9 1504
1505# When interrupted or exit'd, cleanup temporary files, and complete
1506# config.log. We remove comments because anyway the quotes in there
1507# would cause problems or look ugly.
1508# WARNING: Be sure not to use single quotes in there, as some shells,
1509# such as our DU 5.0 friend, will then `close' the trap.
1510trap 'exit_status=$?
1511 # Save into config.log some information that might help in debugging.
1512 {
1513 echo
ad21602a 1514
33f5f8b9 1515 cat <<\_ASBOX
1516## ---------------- ##
1517## Cache variables. ##
1518## ---------------- ##
1519_ASBOX
1520 echo
1521 # The following way of writing the cache mishandles newlines in values,
1522{
1523 (set) 2>&1 |
1524 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1525 *ac_space=\ *)
1526 sed -n \
af3004ff 1527 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
33f5f8b9 1529 ;;
1530 *)
1531 sed -n \
af3004ff 1532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33f5f8b9 1533 ;;
1534 esac;
1535}
1536 echo
ad21602a 1537
1538 cat <<\_ASBOX
1539## ----------------- ##
1540## Output variables. ##
1541## ----------------- ##
1542_ASBOX
1543 echo
1544 for ac_var in $ac_subst_vars
1545 do
1546 eval ac_val=$`echo $ac_var`
1547 echo "$ac_var='"'"'$ac_val'"'"'"
1548 done | sort
1549 echo
1550
1551 if test -n "$ac_subst_files"; then
1552 cat <<\_ASBOX
1553## ------------- ##
1554## Output files. ##
1555## ------------- ##
1556_ASBOX
1557 echo
1558 for ac_var in $ac_subst_files
1559 do
1560 eval ac_val=$`echo $ac_var`
af3004ff 1561 echo "$ac_var='"'"'$ac_val'"'"'"
ad21602a 1562 done | sort
1563 echo
1564 fi
1565
33f5f8b9 1566 if test -s confdefs.h; then
1567 cat <<\_ASBOX
1568## ----------- ##
1569## confdefs.h. ##
1570## ----------- ##
1571_ASBOX
1572 echo
ad21602a 1573 sed "/^$/d" confdefs.h | sort
33f5f8b9 1574 echo
1575 fi
1576 test "$ac_signal" != 0 &&
1577 echo "$as_me: caught signal $ac_signal"
1578 echo "$as_me: exit $exit_status"
1579 } >&5
af3004ff 1580 rm -f core *.core &&
33f5f8b9 1581 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1582 exit $exit_status
1583 ' 0
1584for ac_signal in 1 2 13 15; do
1585 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1586done
1587ac_signal=0
1588
1589# confdefs.h avoids OS command line length limits that DEFS can exceed.
1590rm -rf conftest* confdefs.h
1591# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1592echo >confdefs.h
1593
1594# Predefined preprocessor variables.
1595
1596cat >>confdefs.h <<_ACEOF
1597#define PACKAGE_NAME "$PACKAGE_NAME"
1598_ACEOF
1599
1600
1601cat >>confdefs.h <<_ACEOF
1602#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1603_ACEOF
1604
1605
1606cat >>confdefs.h <<_ACEOF
1607#define PACKAGE_VERSION "$PACKAGE_VERSION"
1608_ACEOF
1609
1610
1611cat >>confdefs.h <<_ACEOF
1612#define PACKAGE_STRING "$PACKAGE_STRING"
1613_ACEOF
1614
1615
1616cat >>confdefs.h <<_ACEOF
1617#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1618_ACEOF
1619
1620
1621# Let the site file select an alternate cache file if it wants to.
1622# Prefer explicitly selected file to automatically selected ones.
1623if test -z "$CONFIG_SITE"; then
1624 if test "x$prefix" != xNONE; then
1625 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1626 else
1627 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1628 fi
1629fi
1630for ac_site_file in $CONFIG_SITE; do
1631 if test -r "$ac_site_file"; then
1632 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1633echo "$as_me: loading site script $ac_site_file" >&6;}
1634 sed 's/^/| /' "$ac_site_file" >&5
1635 . "$ac_site_file"
1636 fi
1637done
1638
1639if test -r "$cache_file"; then
1640 # Some versions of bash will fail to source /dev/null (special
1641 # files actually), so we avoid doing that.
1642 if test -f "$cache_file"; then
1643 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1644echo "$as_me: loading cache $cache_file" >&6;}
1645 case $cache_file in
1646 [\\/]* | ?:[\\/]* ) . $cache_file;;
1647 *) . ./$cache_file;;
1648 esac
1649 fi
1650else
1651 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1652echo "$as_me: creating cache $cache_file" >&6;}
1653 >$cache_file
1654fi
1655
1656# Check that the precious variables saved in the cache have kept the same
1657# value.
1658ac_cache_corrupted=false
1659for ac_var in `(set) 2>&1 |
af3004ff 1660 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
33f5f8b9 1661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1662 eval ac_new_set=\$ac_env_${ac_var}_set
1663 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1664 eval ac_new_val="\$ac_env_${ac_var}_value"
1665 case $ac_old_set,$ac_new_set in
1666 set,)
1667 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1668echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1669 ac_cache_corrupted=: ;;
1670 ,set)
1671 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1672echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1673 ac_cache_corrupted=: ;;
1674 ,);;
1675 *)
1676 if test "x$ac_old_val" != "x$ac_new_val"; then
af3004ff 1677 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
33f5f8b9 1678echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
af3004ff 1679 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
33f5f8b9 1680echo "$as_me: former value: $ac_old_val" >&2;}
af3004ff 1681 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
33f5f8b9 1682echo "$as_me: current value: $ac_new_val" >&2;}
af3004ff 1683 ac_cache_corrupted=:
33f5f8b9 1684 fi;;
1685 esac
1686 # Pass precious variables to config.status.
1687 if test "$ac_new_set" = set; then
1688 case $ac_new_val in
1689 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1690 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 *) ac_arg=$ac_var=$ac_new_val ;;
1692 esac
1693 case " $ac_configure_args " in
1694 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1695 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1696 esac
1697 fi
1698done
1699if $ac_cache_corrupted; then
1700 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1701echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1702 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1703echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1704 { (exit 1); exit 1; }; }
1705fi
1706
1707ac_ext=c
1708ac_cpp='$CPP $CPPFLAGS'
1709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1711ac_compiler_gnu=$ac_cv_c_compiler_gnu
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
25b6a907 1724
1725
1726
1727
1728
1729
1730
1731
33f5f8b9 1732
1733
1734
1735
1736
1737
1738
ad21602a 1739
6e4fdb42 1740 ac_config_headers="$ac_config_headers include/autoconf.h"
dd0004a0 1741
33f5f8b9 1742ac_aux_dir=
1743for ac_dir in cfgaux $srcdir/cfgaux; do
1744 if test -f $ac_dir/install-sh; then
1745 ac_aux_dir=$ac_dir
1746 ac_install_sh="$ac_aux_dir/install-sh -c"
1747 break
1748 elif test -f $ac_dir/install.sh; then
1749 ac_aux_dir=$ac_dir
1750 ac_install_sh="$ac_aux_dir/install.sh -c"
1751 break
1752 elif test -f $ac_dir/shtool; then
1753 ac_aux_dir=$ac_dir
1754 ac_install_sh="$ac_aux_dir/shtool install -c"
1755 break
1756 fi
1757done
1758if test -z "$ac_aux_dir"; then
1759 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1760echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1761 { (exit 1); exit 1; }; }
1762fi
1763ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1764ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1765ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8efddab9 1766
6e4fdb42 1767
07d1f987 1768am__api_version="1.9"
a2794549 1769# Find a good install program. We prefer a C program (faster),
1770# so one script is as good as another. But avoid the broken or
1771# incompatible versions:
1772# SysV /etc/install, /usr/sbin/install
1773# SunOS /usr/etc/install
1774# IRIX /sbin/install
1775# AIX /bin/install
33f5f8b9 1776# AmigaOS /C/install, which installs bootblocks on floppy discs
a2794549 1777# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1778# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1779# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
af3004ff 1780# OS/2's system install, which has a completely different semantic
a2794549 1781# ./install, which can be erroneously created by make from ./install.sh.
33f5f8b9 1782echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1783echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
a2794549 1784if test -z "$INSTALL"; then
33f5f8b9 1785if test "${ac_cv_path_install+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 # Account for people who put trailing slashes in PATH elements.
1794case $as_dir/ in
1795 ./ | .// | /cC/* | \
1796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
af3004ff 1797 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
33f5f8b9 1798 /usr/ucb/* ) ;;
1799 *)
1800 # OSF1 and SCO ODT 3.0 have their own names for install.
1801 # Don't use installbsd from OSF since it installs stuff as root
1802 # by default.
1803 for ac_prog in ginstall scoinst install; do
1804 for ac_exec_ext in '' $ac_executable_extensions; do
af3004ff 1805 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1806 if test $ac_prog = install &&
1807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1808 # AIX install. It has an incompatible calling convention.
1809 :
1810 elif test $ac_prog = install &&
1811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812 # program-specific install script used by HP pwplus--don't use.
1813 :
1814 else
1815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1816 break 3
1817 fi
1818 fi
a2794549 1819 done
33f5f8b9 1820 done
1821 ;;
1822esac
1823done
1824
da22ac20 1825
da22ac20 1826fi
a2794549 1827 if test "${ac_cv_path_install+set}" = set; then
33f5f8b9 1828 INSTALL=$ac_cv_path_install
a2794549 1829 else
1830 # As a last resort, use the slow shell script. We don't cache a
1831 # path for INSTALL within a source directory, because that will
1832 # break other packages using the cache if that directory is
1833 # removed, or if the path is relative.
33f5f8b9 1834 INSTALL=$ac_install_sh
a2794549 1835 fi
1836fi
33f5f8b9 1837echo "$as_me:$LINENO: result: $INSTALL" >&5
1838echo "${ECHO_T}$INSTALL" >&6
da22ac20 1839
a2794549 1840# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1841# It thinks the first close brace ends the variable substitution.
1842test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
da22ac20 1843
33f5f8b9 1844test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
da22ac20 1845
a2794549 1846test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
da22ac20 1847
33f5f8b9 1848echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1849echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
a2794549 1850# Just in case
1851sleep 1
1852echo timestamp > conftest.file
1853# Do `set' in a subshell so we don't clobber the current shell's
1854# arguments. Must try -L first in case configure is actually a
1855# symlink; some systems play weird games with the mod time of symlinks
1856# (eg FreeBSD returns the mod time of the symlink's containing
1857# directory).
1858if (
1859 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1860 if test "$*" = "X"; then
1861 # -L didn't work.
1862 set X `ls -t $srcdir/configure conftest.file`
1863 fi
1864 rm -f conftest.file
1865 if test "$*" != "X $srcdir/configure conftest.file" \
1866 && test "$*" != "X conftest.file $srcdir/configure"; then
1867
1868 # If neither matched, then we have a broken ls. This can happen
1869 # if, for instance, CONFIG_SHELL is bash and it inherits a
1870 # broken ls alias from the environment. This has actually
1871 # happened. Such a system could not be considered "sane".
33f5f8b9 1872 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1873alias in your environment" >&5
1874echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1875alias in your environment" >&2;}
1876 { (exit 1); exit 1; }; }
a2794549 1877 fi
090089c4 1878
a2794549 1879 test "$2" = conftest.file
1880 )
1881then
1882 # Ok.
1883 :
1884else
33f5f8b9 1885 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1886Check your system clock" >&5
1887echo "$as_me: error: newly created file is older than distributed files!
1888Check your system clock" >&2;}
1889 { (exit 1); exit 1; }; }
a2794549 1890fi
33f5f8b9 1891echo "$as_me:$LINENO: result: yes" >&5
1892echo "${ECHO_T}yes" >&6
a2794549 1893test "$program_prefix" != NONE &&
33f5f8b9 1894 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a2794549 1895# Use a double $ so make ignores it.
1896test "$program_suffix" != NONE &&
33f5f8b9 1897 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1898# Double any \ or $. echo might interpret backslashes.
1899# By default was `s,x,x', remove it if useless.
1900cat <<\_ACEOF >conftest.sed
1901s/[\\$]/&&/g;s/;s,x,x,$//
1902_ACEOF
1903program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1904rm conftest.sed
1905
33f5f8b9 1906# expand $ac_aux_dir to an absolute path
ad21602a 1907am_aux_dir=`cd $ac_aux_dir && pwd`
a2794549 1908
8efddab9 1909test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
a2794549 1910# Use eval to expand $SHELL
1911if eval "$MISSING --run true"; then
1912 am_missing_run="$MISSING --run "
1913else
1914 am_missing_run=
ad21602a 1915 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1916echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
983061ed 1917fi
1918
07d1f987 1919if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1920 # We used to keeping the `.' as first argument, in order to
1921 # allow $(mkdir_p) to be used without argument. As in
1922 # $(mkdir_p) $(somedir)
1923 # where $(somedir) is conditionally defined. However this is wrong
1924 # for two reasons:
1925 # 1. if the package is installed by a user who cannot write `.'
1926 # make install will fail,
1927 # 2. the above comment should most certainly read
1928 # $(mkdir_p) $(DESTDIR)$(somedir)
1929 # so it does not work when $(somedir) is undefined and
1930 # $(DESTDIR) is not.
1931 # To support the latter case, we have to write
1932 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1933 # so the `.' trick is pointless.
1934 mkdir_p='mkdir -p --'
1935else
1936 # On NextStep and OpenStep, the `mkdir' command does not
1937 # recognize any option. It will interpret all options as
1938 # directories to create, and then abort because `.' already
1939 # exists.
1940 for d in ./-p ./--version;
1941 do
1942 test -d $d && rmdir $d
1943 done
1944 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1945 if test -f "$ac_aux_dir/mkinstalldirs"; then
1946 mkdir_p='$(mkinstalldirs)'
1947 else
1948 mkdir_p='$(install_sh) -d'
1949 fi
1950fi
1951
33f5f8b9 1952for ac_prog in gawk mawk nawk awk
a2794549 1953do
33f5f8b9 1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
a2794549 1955set dummy $ac_prog; ac_word=$2
33f5f8b9 1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_AWK+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
a2794549 1960else
1961 if test -n "$AWK"; then
1962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1963else
33f5f8b9 1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_AWK="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975done
1976done
1977
a2794549 1978fi
1979fi
33f5f8b9 1980AWK=$ac_cv_prog_AWK
a2794549 1981if test -n "$AWK"; then
33f5f8b9 1982 echo "$as_me:$LINENO: result: $AWK" >&5
1983echo "${ECHO_T}$AWK" >&6
a2794549 1984else
33f5f8b9 1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
a2794549 1987fi
df087e68 1988
33f5f8b9 1989 test -n "$AWK" && break
a2794549 1990done
0e6d05ef 1991
ad21602a 1992echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
af3004ff 1994set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
33f5f8b9 1995if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
a2794549 1997else
33f5f8b9 1998 cat >conftest.make <<\_ACEOF
a2794549 1999all:
ad21602a 2000 @echo 'ac_maketemp="$(MAKE)"'
33f5f8b9 2001_ACEOF
a2794549 2002# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33f5f8b9 2003eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
a2794549 2004if test -n "$ac_maketemp"; then
2005 eval ac_cv_prog_make_${ac_make}_set=yes
2006else
2007 eval ac_cv_prog_make_${ac_make}_set=no
a26bdc75 2008fi
33f5f8b9 2009rm -f conftest.make
a2794549 2010fi
2011if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
33f5f8b9 2012 echo "$as_me:$LINENO: result: yes" >&5
2013echo "${ECHO_T}yes" >&6
a2794549 2014 SET_MAKE=
2015else
33f5f8b9 2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
a2794549 2018 SET_MAKE="MAKE=${MAKE-make}"
2019fi
2020
ad21602a 2021rm -rf .tst 2>/dev/null
2022mkdir .tst 2>/dev/null
2023if test -d .tst; then
2024 am__leading_dot=.
8b036616 2025else
ad21602a 2026 am__leading_dot=_
8b036616 2027fi
ad21602a 2028rmdir .tst 2>/dev/null
8b036616 2029
07d1f987 2030# test to see if srcdir already configured
ad21602a 2031if test "`cd $srcdir && pwd`" != "`pwd`" &&
a2794549 2032 test -f $srcdir/config.status; then
33f5f8b9 2033 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2034echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2035 { (exit 1); exit 1; }; }
a2794549 2036fi
2037
ad21602a 2038# test whether we have cygpath
2039if test -z "$CYGPATH_W"; then
2040 if (cygpath --version) >/dev/null 2>/dev/null; then
2041 CYGPATH_W='cygpath -w'
2042 else
2043 CYGPATH_W=echo
2044 fi
2045fi
2046
2047
a2794549 2048# Define the identity of the package.
25b6a907 2049 PACKAGE='squid'
505c100d 2050 VERSION='3.0.PRE4-CVS'
ad21602a 2051
33f5f8b9 2052
2053cat >>confdefs.h <<_ACEOF
a2794549 2054#define PACKAGE "$PACKAGE"
33f5f8b9 2055_ACEOF
2056
b65c7b0d 2057
33f5f8b9 2058cat >>confdefs.h <<_ACEOF
a2794549 2059#define VERSION "$VERSION"
33f5f8b9 2060_ACEOF
a2794549 2061
a2794549 2062# Some tools Automake needs.
2063
ad21602a 2064ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
a2794549 2065
2066
2067AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2068
2069
ad21602a 2070AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
a2794549 2071
2072
2073AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2074
2075
2076MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2077
a2794549 2078install_sh=${install_sh-"$am_aux_dir/install-sh"}
2079
ad21602a 2080# Installed binaries are usually stripped using `strip' when the user
2081# run `make install-strip'. However `strip' might not be the right
2082# tool to use in cross-compilation environments, therefore Automake
2083# will honor the `STRIP' environment variable to overrule this program.
2084if test "$cross_compiling" != no; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2087set dummy ${ac_tool_prefix}strip; ac_word=$2
2088echo "$as_me:$LINENO: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090if test "${ac_cv_prog_STRIP+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093 if test -n "$STRIP"; then
2094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2095else
2096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2106 fi
2107done
2108done
2109
2110fi
2111fi
2112STRIP=$ac_cv_prog_STRIP
2113if test -n "$STRIP"; then
2114 echo "$as_me:$LINENO: result: $STRIP" >&5
2115echo "${ECHO_T}$STRIP" >&6
2116else
2117 echo "$as_me:$LINENO: result: no" >&5
2118echo "${ECHO_T}no" >&6
2119fi
2120
2121fi
2122if test -z "$ac_cv_prog_STRIP"; then
2123 ac_ct_STRIP=$STRIP
2124 # Extract the first word of "strip", so it can be a program name with args.
2125set dummy strip; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131 if test -n "$ac_ct_STRIP"; then
2132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_STRIP="strip"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2144 fi
2145done
2146done
2147
2148 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2149fi
2150fi
2151ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2152if test -n "$ac_ct_STRIP"; then
2153 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2154echo "${ECHO_T}$ac_ct_STRIP" >&6
2155else
2156 echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160 STRIP=$ac_ct_STRIP
2161else
2162 STRIP="$ac_cv_prog_STRIP"
2163fi
2164
2165fi
a2794549 2166INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2167
2168# We need awk for the "check" target. The system "awk" is bad on
2169# some platforms.
07d1f987 2170# Always define AMTAR for backward compatibility.
2171
2172AMTAR=${AMTAR-"${am_missing_run}tar"}
2173
25b6a907 2174
2175echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2176echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2177# Loop over all known methods to create a tar archive until one works.
2178_am_tools='gnutar plaintar pax cpio none'
2179_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2180# Do not fold the above two line into one, because Tru64 sh and
2181# Solaris sh will not grok spaces in the rhs of `-'.
2182for _am_tool in $_am_tools
2183do
2184 case $_am_tool in
2185 gnutar)
2186 for _am_tar in tar gnutar gtar;
2187 do
2188 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2189 ($_am_tar --version) >&5 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } && break
2193 done
2194 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2195 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2196 am__untar="$_am_tar -xf -"
2197 ;;
2198 plaintar)
2199 # Must skip GNU tar: if it does not support --format= it doesn't create
2200 # ustar tarball either.
2201 (tar --version) >/dev/null 2>&1 && continue
2202 am__tar='tar chf - "$$tardir"'
2203 am__tar_='tar chf - "$tardir"'
2204 am__untar='tar xf -'
2205 ;;
2206 pax)
2207 am__tar='pax -L -x ustar -w "$$tardir"'
2208 am__tar_='pax -L -x ustar -w "$tardir"'
2209 am__untar='pax -r'
2210 ;;
2211 cpio)
2212 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2213 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2214 am__untar='cpio -i -H ustar -d'
2215 ;;
2216 none)
2217 am__tar=false
2218 am__tar_=false
2219 am__untar=false
2220 ;;
2221 esac
2222
2223 # If the value was cached, stop now. We just wanted to have am__tar
2224 # and am__untar set.
2225 test -n "${am_cv_prog_tar_ustar}" && break
2226
2227 # tar/untar a dummy directory, and stop if the command works
2228 rm -rf conftest.dir
2229 mkdir conftest.dir
2230 echo GrepMe > conftest.dir/file
2231 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2232 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }
2236 rm -rf conftest.dir
2237 if test -s conftest.tar; then
2238 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2239 ($am__untar <conftest.tar) >&5 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2244 fi
2245done
2246rm -rf conftest.dir
2247
2248if test "${am_cv_prog_tar_ustar+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 am_cv_prog_tar_ustar=$_am_tool
2252fi
2253
2254echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2255echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
07d1f987 2256
2257
a2794549 2258
2259
a2794549 2260
33f5f8b9 2261
2262echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2263echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
b65c7b0d 2264 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2796fcd2 2265if test "${enable_maintainer_mode+set}" = set; then
2266 enableval="$enable_maintainer_mode"
2267 USE_MAINTAINER_MODE=$enableval
2268else
2269 USE_MAINTAINER_MODE=no
33f5f8b9 2270fi;
2271 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2272echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2796fcd2 2273
2796fcd2 2274
2275if test $USE_MAINTAINER_MODE = yes; then
2276 MAINTAINER_MODE_TRUE=
2277 MAINTAINER_MODE_FALSE='#'
2278else
2279 MAINTAINER_MODE_TRUE='#'
2280 MAINTAINER_MODE_FALSE=
2281fi
ad21602a 2282
2796fcd2 2283 MAINT=$MAINTAINER_MODE_TRUE
33f5f8b9 2284
2796fcd2 2285
30a4f2a8 2286
c65da457 2287PRESET_CFLAGS="$CFLAGS"
2288PRESET_LDFLAGS="$LDFLAGS"
2289
30a4f2a8 2290if test -z "$LDFLAGS"; then
a2794549 2291 LDFLAGS="-g"
30a4f2a8 2292fi
2293
33f5f8b9 2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2301set dummy ${ac_tool_prefix}gcc; ac_word=$2
2302echo "$as_me:$LINENO: checking for $ac_word" >&5
2303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304if test "${ac_cv_prog_CC+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2309else
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 break 2
2320 fi
2321done
2322done
2323
2324fi
2325fi
2326CC=$ac_cv_prog_CC
2327if test -n "$CC"; then
2328 echo "$as_me:$LINENO: result: $CC" >&5
2329echo "${ECHO_T}$CC" >&6
2330else
2331 echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6
2333fi
2334
2335fi
2336if test -z "$ac_cv_prog_CC"; then
2337 ac_ct_CC=$CC
2338 # Extract the first word of "gcc", so it can be a program name with args.
090089c4 2339set dummy gcc; ac_word=$2
33f5f8b9 2340echo "$as_me:$LINENO: checking for $ac_word" >&5
2341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345 if test -n "$ac_ct_CC"; then
2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347else
2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_ac_ct_CC="gcc"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2358 fi
2359done
2360done
2361
2362fi
2363fi
2364ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365if test -n "$ac_ct_CC"; then
2366 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367echo "${ECHO_T}$ac_ct_CC" >&6
2368else
2369 echo "$as_me:$LINENO: result: no" >&5
2370echo "${ECHO_T}no" >&6
2371fi
2372
2373 CC=$ac_ct_CC
2374else
2375 CC="$ac_cv_prog_CC"
2376fi
2377
2378if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2381set dummy ${ac_tool_prefix}cc; ac_word=$2
2382echo "$as_me:$LINENO: checking for $ac_word" >&5
2383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 2386else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389else
33f5f8b9 2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_CC="${ac_tool_prefix}cc"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2400 fi
2401done
2402done
2403
090089c4 2404fi
2405fi
33f5f8b9 2406CC=$ac_cv_prog_CC
090089c4 2407if test -n "$CC"; then
33f5f8b9 2408 echo "$as_me:$LINENO: result: $CC" >&5
2409echo "${ECHO_T}$CC" >&6
2410else
2411 echo "$as_me:$LINENO: result: no" >&5
2412echo "${ECHO_T}no" >&6
2413fi
2414
2415fi
2416if test -z "$ac_cv_prog_CC"; then
2417 ac_ct_CC=$CC
2418 # Extract the first word of "cc", so it can be a program name with args.
2419set dummy cc; ac_word=$2
2420echo "$as_me:$LINENO: checking for $ac_word" >&5
2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425 if test -n "$ac_ct_CC"; then
2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
090089c4 2427else
33f5f8b9 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_ac_ct_CC="cc"
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439done
2440done
2441
2442fi
2443fi
2444ac_ct_CC=$ac_cv_prog_ac_ct_CC
2445if test -n "$ac_ct_CC"; then
2446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2447echo "${ECHO_T}$ac_ct_CC" >&6
2448else
2449 echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6
090089c4 2451fi
2452
33f5f8b9 2453 CC=$ac_ct_CC
2454else
2455 CC="$ac_cv_prog_CC"
2456fi
2457
2458fi
03a0d3b0 2459if test -z "$CC"; then
2460 # Extract the first word of "cc", so it can be a program name with args.
2461set dummy cc; ac_word=$2
33f5f8b9 2462echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
03a0d3b0 2466else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469else
03a0d3b0 2470 ac_prog_rejected=no
33f5f8b9 2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2480 continue
2481 fi
2482 ac_cv_prog_CC="cc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486done
2487done
2488
03a0d3b0 2489if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2492 shift
33f5f8b9 2493 if test $# != 0; then
03a0d3b0 2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2497 shift
ad21602a 2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
03a0d3b0 2499 fi
2500fi
2501fi
2502fi
33f5f8b9 2503CC=$ac_cv_prog_CC
03a0d3b0 2504if test -n "$CC"; then
33f5f8b9 2505 echo "$as_me:$LINENO: result: $CC" >&5
2506echo "${ECHO_T}$CC" >&6
03a0d3b0 2507else
33f5f8b9 2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
03a0d3b0 2510fi
2511
33f5f8b9 2512fi
2513if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 for ac_prog in cl
2516 do
2517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2519echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
b7db09a3 2523else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
33f5f8b9 2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538done
2539done
2540
b7db09a3 2541fi
2542fi
33f5f8b9 2543CC=$ac_cv_prog_CC
b7db09a3 2544if test -n "$CC"; then
33f5f8b9 2545 echo "$as_me:$LINENO: result: $CC" >&5
2546echo "${ECHO_T}$CC" >&6
b7db09a3 2547else
33f5f8b9 2548 echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6
b65c7b0d 2550fi
33f5f8b9 2551
2552 test -n "$CC" && break
2553 done
2554fi
2555if test -z "$CC"; then
2556 ac_ct_CC=$CC
2557 for ac_prog in cl
2558do
2559 # Extract the first word of "$ac_prog", so it can be a program name with args.
2560set dummy $ac_prog; ac_word=$2
2561echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2563if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_ac_ct_CC="$ac_prog"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
b7db09a3 2579 fi
33f5f8b9 2580done
2581done
2582
2583fi
2584fi
2585ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586if test -n "$ac_ct_CC"; then
2587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2588echo "${ECHO_T}$ac_ct_CC" >&6
2589else
2590 echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6
b65c7b0d 2592fi
b1e77ec1 2593
33f5f8b9 2594 test -n "$ac_ct_CC" && break
2595done
b1e77ec1 2596
33f5f8b9 2597 CC=$ac_ct_CC
2598fi
2599
2600fi
b7db09a3 2601
b65c7b0d 2602
ad21602a 2603test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2604See \`config.log' for more details." >&5
2605echo "$as_me: error: no acceptable C compiler found in \$PATH
2606See \`config.log' for more details." >&2;}
33f5f8b9 2607 { (exit 1); exit 1; }; }
2608
2609# Provide some information about the compiler.
2610echo "$as_me:$LINENO:" \
2611 "checking for C compiler version" >&5
2612ac_compiler=`set X $ac_compile; echo $2`
2613{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2614 (eval $ac_compiler --version </dev/null >&5) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }
2618{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2619 (eval $ac_compiler -v </dev/null >&5) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }
2623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2624 (eval $ac_compiler -V </dev/null >&5) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }
2628
2629cat >conftest.$ac_ext <<_ACEOF
ad21602a 2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
b7db09a3 2635
33f5f8b9 2636int
2637main ()
2638{
2639
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644ac_clean_files_save=$ac_clean_files
ad21602a 2645ac_clean_files="$ac_clean_files a.out a.exe b.out"
33f5f8b9 2646# Try to create an executable without -o first, disregard a.out.
2647# It will help us diagnose broken compilers, and finding out an intuition
2648# of exeext.
af3004ff 2649echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2650echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
33f5f8b9 2651ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2652if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2653 (eval $ac_link_default) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; then
2657 # Find the output, starting from the most likely. This scheme is
2658# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2659# resort.
2660
2661# Be careful to initialize this variable, since it used to be cached.
2662# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2663ac_cv_exeext=
ad21602a 2664# b.out is created by i960 compilers.
2665for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2666do
2667 test -f "$ac_file" || continue
33f5f8b9 2668 case $ac_file in
ad21602a 2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
af3004ff 2670 ;;
ad21602a 2671 conftest.$ac_ext )
af3004ff 2672 # This is the source file.
2673 ;;
ad21602a 2674 [ab].out )
af3004ff 2675 # We found the default executable, but exeext='' is most
2676 # certainly right.
2677 break;;
ad21602a 2678 *.* )
af3004ff 2679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2680 # FIXME: I believe we export ac_cv_exeext for Libtool,
2681 # but it would be cool to find out if it's true. Does anybody
2682 # maintain Libtool? --akim.
2683 export ac_cv_exeext
2684 break;;
ad21602a 2685 * )
af3004ff 2686 break;;
33f5f8b9 2687 esac
2688done
2689else
2690 echo "$as_me: failed program was:" >&5
ad21602a 2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: C compiler cannot create executables
2696See \`config.log' for more details." >&2;}
33f5f8b9 2697 { (exit 77); exit 77; }; }
2698fi
2699
2700ac_exeext=$ac_cv_exeext
2701echo "$as_me:$LINENO: result: $ac_file" >&5
2702echo "${ECHO_T}$ac_file" >&6
2703
2704# Check the compiler produces executables we can run. If not, either
2705# the compiler is broken, or we cross compile.
2706echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2707echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2708# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2709# If not cross compiling, check that we can run a simple program.
2710if test "$cross_compiling" != yes; then
2711 if { ac_try='./$ac_file'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 cross_compiling=no
133b6d90 2718 else
33f5f8b9 2719 if test "$cross_compiling" = maybe; then
2720 cross_compiling=yes
2721 else
2722 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad21602a 2723If you meant to cross compile, use \`--host'.
2724See \`config.log' for more details." >&5
33f5f8b9 2725echo "$as_me: error: cannot run C compiled programs.
ad21602a 2726If you meant to cross compile, use \`--host'.
2727See \`config.log' for more details." >&2;}
33f5f8b9 2728 { (exit 1); exit 1; }; }
2729 fi
133b6d90 2730 fi
33f5f8b9 2731fi
2732echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734
ad21602a 2735rm -f a.out a.exe conftest$ac_cv_exeext b.out
33f5f8b9 2736ac_clean_files=$ac_clean_files_save
2737# Check the compiler produces executables we can run. If not, either
2738# the compiler is broken, or we cross compile.
2739echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2740echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2741echo "$as_me:$LINENO: result: $cross_compiling" >&5
2742echo "${ECHO_T}$cross_compiling" >&6
2743
2744echo "$as_me:$LINENO: checking for suffix of executables" >&5
2745echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2747 (eval $ac_link) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
2751 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2752# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2753# work properly (i.e., refer to `conftest.exe'), while it won't with
2754# `rm'.
ad21602a 2755for ac_file in conftest.exe conftest conftest.*; do
2756 test -f "$ac_file" || continue
33f5f8b9 2757 case $ac_file in
ad21602a 2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
33f5f8b9 2759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
af3004ff 2760 export ac_cv_exeext
2761 break;;
33f5f8b9 2762 * ) break;;
2763 esac
2764done
b1e77ec1 2765else
ad21602a 2766 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2767See \`config.log' for more details." >&5
2768echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2769See \`config.log' for more details." >&2;}
33f5f8b9 2770 { (exit 1); exit 1; }; }
b1e77ec1 2771fi
b1e77ec1 2772
33f5f8b9 2773rm -f conftest$ac_cv_exeext
2774echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2775echo "${ECHO_T}$ac_cv_exeext" >&6
b1e77ec1 2776
33f5f8b9 2777rm -f conftest.$ac_ext
2778EXEEXT=$ac_cv_exeext
2779ac_exeext=$EXEEXT
2780echo "$as_me:$LINENO: checking for suffix of object files" >&5
2781echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2782if test "${ac_cv_objext+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 2784else
33f5f8b9 2785 cat >conftest.$ac_ext <<_ACEOF
ad21602a 2786/* confdefs.h. */
2787_ACEOF
2788cat confdefs.h >>conftest.$ac_ext
2789cat >>conftest.$ac_ext <<_ACEOF
2790/* end confdefs.h. */
33f5f8b9 2791
33f5f8b9 2792int
2793main ()
2794{
2795
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800rm -f conftest.o conftest.obj
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; then
2806 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2807 case $ac_file in
ad21602a 2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
33f5f8b9 2809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2810 break;;
2811 esac
2812done
090089c4 2813else
33f5f8b9 2814 echo "$as_me: failed program was:" >&5
ad21602a 2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2818See \`config.log' for more details." >&5
2819echo "$as_me: error: cannot compute suffix of object files: cannot compile
2820See \`config.log' for more details." >&2;}
33f5f8b9 2821 { (exit 1); exit 1; }; }
090089c4 2822fi
33f5f8b9 2823
2824rm -f conftest.$ac_cv_objext conftest.$ac_ext
090089c4 2825fi
33f5f8b9 2826echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2827echo "${ECHO_T}$ac_cv_objext" >&6
2828OBJEXT=$ac_cv_objext
2829ac_objext=$OBJEXT
2830echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2831echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2832if test "${ac_cv_c_compiler_gnu+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835 cat >conftest.$ac_ext <<_ACEOF
ad21602a 2836/* confdefs.h. */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h. */
090089c4 2841
33f5f8b9 2842int
2843main ()
2844{
2845#ifndef __GNUC__
2846 choke me
2847#endif
b7db09a3 2848
33f5f8b9 2849 ;
2850 return 0;
2851}
2852_ACEOF
2853rm -f conftest.$ac_objext
2854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 2855 (eval $ac_compile) 2>conftest.er1
33f5f8b9 2856 ac_status=$?
af3004ff 2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
33f5f8b9 2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
6263d81f 2862 { ac_try='test -z "$ac_c_werror_flag"
2863 || test ! -s conftest.err'
af3004ff 2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; } &&
2869 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_compiler_gnu=yes
2876else
2877 echo "$as_me: failed program was:" >&5
ad21602a 2878sed 's/^/| /' conftest.$ac_ext >&5
2879
33f5f8b9 2880ac_compiler_gnu=no
2881fi
af3004ff 2882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 2883ac_cv_c_compiler_gnu=$ac_compiler_gnu
2884
2885fi
2886echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2887echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2888GCC=`test $ac_compiler_gnu = yes && echo yes`
2889ac_test_CFLAGS=${CFLAGS+set}
2890ac_save_CFLAGS=$CFLAGS
2891CFLAGS="-g"
2892echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2893echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2894if test "${ac_cv_prog_cc_g+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897 cat >conftest.$ac_ext <<_ACEOF
ad21602a 2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
b65c7b0d 2903
33f5f8b9 2904int
2905main ()
2906{
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
2913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 2914 (eval $ac_compile) 2>conftest.er1
33f5f8b9 2915 ac_status=$?
af3004ff 2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
33f5f8b9 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
6263d81f 2921 { ac_try='test -z "$ac_c_werror_flag"
2922 || test ! -s conftest.err'
af3004ff 2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
133b6d90 2934 ac_cv_prog_cc_g=yes
090089c4 2935else
33f5f8b9 2936 echo "$as_me: failed program was:" >&5
ad21602a 2937sed 's/^/| /' conftest.$ac_ext >&5
2938
33f5f8b9 2939ac_cv_prog_cc_g=no
090089c4 2940fi
af3004ff 2941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
090089c4 2942fi
33f5f8b9 2943echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2944echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
b7db09a3 2945if test "$ac_test_CFLAGS" = set; then
33f5f8b9 2946 CFLAGS=$ac_save_CFLAGS
b7db09a3 2947elif test $ac_cv_prog_cc_g = yes; then
2948 if test "$GCC" = yes; then
b1e77ec1 2949 CFLAGS="-g -O2"
2950 else
b7db09a3 2951 CFLAGS="-g"
090089c4 2952 fi
2953else
b7db09a3 2954 if test "$GCC" = yes; then
2955 CFLAGS="-O2"
2956 else
2957 CFLAGS=
2958 fi
090089c4 2959fi
ad21602a 2960echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2961echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2962if test "${ac_cv_prog_cc_stdc+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
2965 ac_cv_prog_cc_stdc=no
2966ac_save_CC=$CC
33f5f8b9 2967cat >conftest.$ac_ext <<_ACEOF
ad21602a 2968/* confdefs.h. */
658d5a21 2969_ACEOF
ad21602a 2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
2973#include <stdarg.h>
2974#include <stdio.h>
2975#include <sys/types.h>
2976#include <sys/stat.h>
2977/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2978struct buf { int x; };
2979FILE * (*rcsopen) (struct buf *, struct stat *, int);
2980static char *e (p, i)
2981 char **p;
2982 int i;
2983{
2984 return p[i];
2985}
2986static char *f (char * (*g) (char **, int), char **p, ...)
2987{
2988 char *s;
2989 va_list v;
2990 va_start (v,p);
2991 s = g (p, va_arg (v,int));
2992 va_end (v);
2993 return s;
2994}
af3004ff 2995
2996/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2997 function prototypes and stuff, but not '\xHH' hex character constants.
2998 These don't provoke an error unfortunately, instead are silently treated
2999 as 'x'. The following induces an error, until -std1 is added to get
3000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3001 array size at least. It's necessary to write '\x00'==0 to get something
3002 that's true only with -std1. */
3003int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3004
ad21602a 3005int test (int i, double x);
3006struct s1 {int (*f) (int a);};
3007struct s2 {int (*f) (double a);};
3008int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3009int argc;
3010char **argv;
3011int
3012main ()
3013{
3014return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019# Don't try gcc -ansi; that turns off useful extensions and
3020# breaks some systems' header files.
3021# AIX -qlanglvl=ansi
3022# Ultrix and OSF/1 -std1
3023# HP-UX 10.20 and later -Ae
3024# HP-UX older versions -Aa -D_HPUX_SOURCE
3025# SVR4 -Xc -D__EXTENSIONS__
3026for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3027do
3028 CC="$ac_save_CC $ac_arg"
3029 rm -f conftest.$ac_objext
658d5a21 3030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3031 (eval $ac_compile) 2>conftest.er1
658d5a21 3032 ac_status=$?
af3004ff 3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
658d5a21 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
6263d81f 3038 { ac_try='test -z "$ac_c_werror_flag"
3039 || test ! -s conftest.err'
af3004ff 3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
658d5a21 3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
ad21602a 3051 ac_cv_prog_cc_stdc=$ac_arg
3052break
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057fi
af3004ff 3058rm -f conftest.err conftest.$ac_objext
ad21602a 3059done
3060rm -f conftest.$ac_ext conftest.$ac_objext
3061CC=$ac_save_CC
3062
3063fi
3064
3065case "x$ac_cv_prog_cc_stdc" in
3066 x|xno)
3067 echo "$as_me:$LINENO: result: none needed" >&5
3068echo "${ECHO_T}none needed" >&6 ;;
3069 *)
3070 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3071echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3072 CC="$CC $ac_cv_prog_cc_stdc" ;;
3073esac
3074
3075# Some people use a C++ compiler to compile C. Since we use `exit',
3076# in C++ we need to declare it. In case someone uses the same compiler
3077# for both compiling C and C++ we need to have the C++ compiler decide
3078# the declaration of exit, since it's the most demanding environment.
3079cat >conftest.$ac_ext <<_ACEOF
3080#ifndef __cplusplus
3081 choke me
8b036616 3082#endif
ad21602a 3083_ACEOF
3084rm -f conftest.$ac_objext
3085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3086 (eval $ac_compile) 2>conftest.er1
ad21602a 3087 ac_status=$?
af3004ff 3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
ad21602a 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
6263d81f 3093 { ac_try='test -z "$ac_c_werror_flag"
3094 || test ! -s conftest.err'
af3004ff 3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
ad21602a 3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 for ac_declaration in \
af3004ff 3107 '' \
ad21602a 3108 'extern "C" void std::exit (int) throw (); using std::exit;' \
3109 'extern "C" void std::exit (int); using std::exit;' \
3110 'extern "C" void exit (int) throw ();' \
3111 'extern "C" void exit (int);' \
3112 'void exit (int);'
3113do
3114 cat >conftest.$ac_ext <<_ACEOF
ad21602a 3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
a33e1d91 3120$ac_declaration
af3004ff 3121#include <stdlib.h>
dd0004a0 3122int
3123main ()
2f44bd34 3124{
3125exit (42);
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3132 (eval $ac_compile) 2>conftest.er1
2f44bd34 3133 ac_status=$?
af3004ff 3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
2f44bd34 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
6263d81f 3139 { ac_try='test -z "$ac_c_werror_flag"
3140 || test ! -s conftest.err'
af3004ff 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 :
3153else
3154 echo "$as_me: failed program was:" >&5
ad21602a 3155sed 's/^/| /' conftest.$ac_ext >&5
3156
33f5f8b9 3157continue
3158fi
af3004ff 3159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 3160 cat >conftest.$ac_ext <<_ACEOF
ad21602a 3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
33f5f8b9 3166$ac_declaration
33f5f8b9 3167int
3168main ()
3169{
3170exit (42);
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3177 (eval $ac_compile) 2>conftest.er1
33f5f8b9 3178 ac_status=$?
af3004ff 3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
33f5f8b9 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
6263d81f 3184 { ac_try='test -z "$ac_c_werror_flag"
3185 || test ! -s conftest.err'
af3004ff 3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 break
3198else
3199 echo "$as_me: failed program was:" >&5
ad21602a 3200sed 's/^/| /' conftest.$ac_ext >&5
3201
33f5f8b9 3202fi
af3004ff 3203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 3204done
3205rm -f conftest*
3206if test -n "$ac_declaration"; then
3207 echo '#ifdef __cplusplus' >>confdefs.h
3208 echo $ac_declaration >>confdefs.h
3209 echo '#endif' >>confdefs.h
3210fi
3211
3212else
3213 echo "$as_me: failed program was:" >&5
ad21602a 3214sed 's/^/| /' conftest.$ac_ext >&5
3215
33f5f8b9 3216fi
af3004ff 3217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad21602a 3223DEPDIR="${am__leading_dot}deps"
3224
3225 ac_config_commands="$ac_config_commands depfiles"
090089c4 3226
3227
a2794549 3228am_make=${MAKE-make}
3229cat > confinc << 'END'
07d1f987 3230am__doit:
a2794549 3231 @echo done
07d1f987 3232.PHONY: am__doit
a2794549 3233END
3234# If we don't find an include directive, just comment out the code.
33f5f8b9 3235echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3236echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
ad21602a 3237am__include="#"
a2794549 3238am__quote=
3239_am_result=none
3240# First try GNU make style include.
3241echo "include confinc" > confmf
3242# We grep out `Entering directory' and `Leaving directory'
3243# messages which can occur if `w' ends up in MAKEFLAGS.
3244# In particular we don't look at `^make:' because GNU make might
3245# be invoked under some other name (usually "gmake"), in which
3246# case it prints its new name instead of `make'.
ad21602a 3247if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
a2794549 3248 am__include=include
3249 am__quote=
3250 _am_result=GNU
3251fi
3252# Now try BSD make style include.
3253if test "$am__include" = "#"; then
3254 echo '.include "confinc"' > confmf
3255 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3256 am__include=.include
ad21602a 3257 am__quote="\""
a2794549 3258 _am_result=BSD
3259 fi
3260fi
3261
3262
332dafa2 3263echo "$as_me:$LINENO: result: $_am_result" >&5
3264echo "${ECHO_T}$_am_result" >&6
3265rm -f confinc confmf
3266
ad21602a 3267# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3268if test "${enable_dependency_tracking+set}" = set; then
3269 enableval="$enable_dependency_tracking"
3270
3271fi;
3272if test "x$enable_dependency_tracking" != xno; then
3273 am_depcomp="$ac_aux_dir/depcomp"
3274 AMDEPBACKSLASH='\'
3275fi
3276
3277
3278if test "x$enable_dependency_tracking" != xno; then
3279 AMDEP_TRUE=
3280 AMDEP_FALSE='#'
3281else
3282 AMDEP_TRUE='#'
3283 AMDEP_FALSE=
3284fi
3285
3286
3287
a2794549 3288
3289depcc="$CC" am_compiler_list=
3290
33f5f8b9 3291echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3292echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3293if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
a2794549 3295else
3296 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3297 # We make a subdir and do the tests there. Otherwise we can end up
3298 # making bogus files that we don't know about and never remove. For
3299 # instance it was reported that on HP-UX the gcc test will end up
3300 # making a dummy file named `D' -- because `-MD' means `put the output
3301 # in D'.
3302 mkdir conftest.dir
3303 # Copy depcomp to subdir because otherwise we won't find it if we're
3304 # using a relative directory.
3305 cp "$am_depcomp" conftest.dir
3306 cd conftest.dir
07d1f987 3307 # We will build objects and dependencies in a subdirectory because
3308 # it helps to detect inapplicable dependency modes. For instance
3309 # both Tru64's cc and ICC support -MD to output dependencies as a
3310 # side effect of compilation, but ICC will put the dependencies in
3311 # the current directory while Tru64 will put them in the object
3312 # directory.
3313 mkdir sub
a2794549 3314
3315 am_cv_CC_dependencies_compiler_type=none
3316 if test "$am_compiler_list" = ""; then
3317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3318 fi
3319 for depmode in $am_compiler_list; do
07d1f987 3320 # Setup a source with many dependencies, because some compilers
3321 # like to wrap large dependency lists on column 80 (with \), and
3322 # we should not choose a depcomp mode which is confused by this.
3323 #
a2794549 3324 # We need to recreate these files for each test, as the compiler may
3325 # overwrite some of them when testing with obscure command lines.
3326 # This happens at least with the AIX C compiler.
07d1f987 3327 : > sub/conftest.c
3328 for i in 1 2 3 4 5 6; do
3329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3331 # Solaris 8's {/usr,}/bin/sh.
3332 touch sub/conftst$i.h
3333 done
3334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
a2794549 3335
3336 case $depmode in
3337 nosideeffect)
3338 # after this tag, mechanisms are not by side-effect, so they'll
3339 # only be used when explicitly requested
3340 if test "x$enable_dependency_tracking" = xyes; then
3341 continue
3342 else
3343 break
3344 fi
3345 ;;
3346 none) break ;;
3347 esac
3348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3349 # mode. It turns out that the SunPro C++ compiler does not properly
3350 # handle `-M -o', and we need to detect this.
3351 if depmode=$depmode \
07d1f987 3352 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3354 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
ad21602a 3355 >/dev/null 2>conftest.err &&
07d1f987 3356 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3357 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
a2794549 3358 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
ad21602a 3359 # icc doesn't choke on unknown options, it will just issue warnings
07d1f987 3360 # or remarks (even with -Werror). So we grep stderr for any message
3361 # that says an option was ignored or not supported.
3362 # When given -MP, icc 7.0 and 7.1 complain thusly:
3363 # icc: Command line warning: ignoring option '-M'; no argument required
3364 # The diagnosis changed in icc 8.0:
3365 # icc: Command line remark: option '-MP' not supported
3366 if (grep 'ignoring option' conftest.err ||
3367 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
ad21602a 3368 am_cv_CC_dependencies_compiler_type=$depmode
3369 break
3370 fi
a2794549 3371 fi
3372 done
3373
3374 cd ..
3375 rm -rf conftest.dir
3376else
3377 am_cv_CC_dependencies_compiler_type=none
3378fi
3379
3380fi
33f5f8b9 3381echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3382echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
ad21602a 3383CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3384
3385
3386
3387if
3388 test "x$enable_dependency_tracking" != xno \
3389 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3390 am__fastdepCC_TRUE=
3391 am__fastdepCC_FALSE='#'
3392else
3393 am__fastdepCC_TRUE='#'
3394 am__fastdepCC_FALSE=
3395fi
a2794549 3396
3397
cec01b94 3398if test "x$CC" != xcc; then
3399 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3400echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3401else
3402 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3403echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3404fi
3405set dummy $CC; ac_cc=`echo $2 |
3406 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3407if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416
3417int
3418main ()
3419{
3420
3421 ;
3422 return 0;
3423}
3424_ACEOF
3425# Make sure it works both with $CC and with simple cc.
3426# We do the test twice because some compilers refuse to overwrite an
3427# existing .o file with -o, though they will create one.
3428ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3429if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); };
3439then
3440 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3441 if test "x$CC" != xcc; then
3442 # Test first that cc exists at all.
3443 if { ac_try='cc -c conftest.$ac_ext >&5'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3449 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3450 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); };
3460 then
3461 # cc works too.
3462 :
3463 else
3464 # cc exists but doesn't like -o.
3465 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3466 fi
3467 fi
3468 fi
3469else
3470 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3471fi
3472rm -f conftest*
3473
3474fi
3475if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481
3482cat >>confdefs.h <<\_ACEOF
3483#define NO_MINUS_C_MINUS_O 1
3484_ACEOF
3485
3486fi
3487
3488# FIXME: we rely on the cache variable name because
3489# there is no other way.
3490set dummy $CC
3491ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3492if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3493 # Losing compiler, so override with the script.
3494 # FIXME: It is wrong to rewrite CC.
3495 # But if we don't then we get into trouble of one sort or another.
3496 # A longer-term fix would be to have automake use am__CC in this case,
3497 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3498 CC="$am_aux_dir/compile $CC"
3499fi
3500
c4b0db82 3501ac_ext=c
c4b0db82 3502ac_cpp='$CPP $CPPFLAGS'
33f5f8b9 3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
29b8d8d6 3506
33f5f8b9 3507ac_ext=cc
3508ac_cpp='$CXXCPP $CPPFLAGS'
3509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3512if test -n "$ac_tool_prefix"; then
3513 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3514 do
3515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3517echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519if test "${ac_cv_prog_CXX+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
29b8d8d6 3521else
3522 if test -n "$CXX"; then
3523 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3524else
33f5f8b9 3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536done
3537done
3538
29b8d8d6 3539fi
3540fi
33f5f8b9 3541CXX=$ac_cv_prog_CXX
29b8d8d6 3542if test -n "$CXX"; then
33f5f8b9 3543 echo "$as_me:$LINENO: result: $CXX" >&5
3544echo "${ECHO_T}$CXX" >&6
29b8d8d6 3545else
33f5f8b9 3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
29b8d8d6 3548fi
3549
33f5f8b9 3550 test -n "$CXX" && break
3551 done
3552fi
3553if test -z "$CXX"; then
3554 ac_ct_CXX=$CXX
3555 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3556do
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558set dummy $ac_prog; ac_word=$2
3559echo "$as_me:$LINENO: checking for $ac_word" >&5
3560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 if test -n "$ac_ct_CXX"; then
3565 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_ac_ct_CXX="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578done
29b8d8d6 3579done
3f961930 3580
33f5f8b9 3581fi
3582fi
3583ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3584if test -n "$ac_ct_CXX"; then
3585 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3586echo "${ECHO_T}$ac_ct_CXX" >&6
3587else
3588 echo "$as_me:$LINENO: result: no" >&5
3589echo "${ECHO_T}no" >&6
3590fi
3f961930 3591
33f5f8b9 3592 test -n "$ac_ct_CXX" && break
3593done
3594test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3595
3596 CXX=$ac_ct_CXX
3597fi
3598
3599
3600# Provide some information about the compiler.
3601echo "$as_me:$LINENO:" \
3602 "checking for C++ compiler version" >&5
3603ac_compiler=`set X $ac_compile; echo $2`
3604{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3605 (eval $ac_compiler --version </dev/null >&5) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }
3609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3610 (eval $ac_compiler -v </dev/null >&5) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }
3614{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3615 (eval $ac_compiler -V </dev/null >&5) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }
3619
3620echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3621echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3622if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 cat >conftest.$ac_ext <<_ACEOF
ad21602a 3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3f961930 3631
33f5f8b9 3632int
3633main ()
3634{
3635#ifndef __GNUC__
3636 choke me
3637#endif
29b8d8d6 3638
33f5f8b9 3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3645 (eval $ac_compile) 2>conftest.er1
33f5f8b9 3646 ac_status=$?
af3004ff 3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
33f5f8b9 3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
6263d81f 3652 { ac_try='test -z "$ac_cxx_werror_flag"
3653 || test ! -s conftest.err'
af3004ff 3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_compiler_gnu=yes
3666else
3667 echo "$as_me: failed program was:" >&5
ad21602a 3668sed 's/^/| /' conftest.$ac_ext >&5
3669
33f5f8b9 3670ac_compiler_gnu=no
3671fi
af3004ff 3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 3673ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3674
3675fi
3676echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3677echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3678GXX=`test $ac_compiler_gnu = yes && echo yes`
3679ac_test_CXXFLAGS=${CXXFLAGS+set}
3680ac_save_CXXFLAGS=$CXXFLAGS
3681CXXFLAGS="-g"
3682echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3683echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3684if test "${ac_cv_prog_cxx_g+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687 cat >conftest.$ac_ext <<_ACEOF
ad21602a 3688/* confdefs.h. */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h. */
29b8d8d6 3693
33f5f8b9 3694int
3695main ()
3696{
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702rm -f conftest.$ac_objext
3703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3704 (eval $ac_compile) 2>conftest.er1
33f5f8b9 3705 ac_status=$?
af3004ff 3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
33f5f8b9 3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
6263d81f 3711 { ac_try='test -z "$ac_cxx_werror_flag"
3712 || test ! -s conftest.err'
af3004ff 3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_prog_cxx_g=yes
3f961930 3725else
33f5f8b9 3726 echo "$as_me: failed program was:" >&5
ad21602a 3727sed 's/^/| /' conftest.$ac_ext >&5
3728
33f5f8b9 3729ac_cv_prog_cxx_g=no
3f961930 3730fi
af3004ff 3731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f961930 3732fi
33f5f8b9 3733echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3734echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
29b8d8d6 3735if test "$ac_test_CXXFLAGS" = set; then
33f5f8b9 3736 CXXFLAGS=$ac_save_CXXFLAGS
29b8d8d6 3737elif test $ac_cv_prog_cxx_g = yes; then
3738 if test "$GXX" = yes; then
3739 CXXFLAGS="-g -O2"
3740 else
3741 CXXFLAGS="-g"
3742 fi
3743else
3744 if test "$GXX" = yes; then
3745 CXXFLAGS="-O2"
3746 else
3747 CXXFLAGS=
3748 fi
3749fi
33f5f8b9 3750for ac_declaration in \
af3004ff 3751 '' \
33f5f8b9 3752 'extern "C" void std::exit (int) throw (); using std::exit;' \
3753 'extern "C" void std::exit (int); using std::exit;' \
3754 'extern "C" void exit (int) throw ();' \
3755 'extern "C" void exit (int);' \
3756 'void exit (int);'
3757do
3758 cat >conftest.$ac_ext <<_ACEOF
ad21602a 3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
a33e1d91 3764$ac_declaration
af3004ff 3765#include <stdlib.h>
33f5f8b9 3766int
3767main ()
3768{
3769exit (42);
3770 ;
3771 return 0;
3772}
3773_ACEOF
3774rm -f conftest.$ac_objext
3775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3776 (eval $ac_compile) 2>conftest.er1
33f5f8b9 3777 ac_status=$?
af3004ff 3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
33f5f8b9 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
6263d81f 3783 { ac_try='test -z "$ac_cxx_werror_flag"
3784 || test ! -s conftest.err'
af3004ff 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 :
3797else
3798 echo "$as_me: failed program was:" >&5
ad21602a 3799sed 's/^/| /' conftest.$ac_ext >&5
3800
33f5f8b9 3801continue
3802fi
af3004ff 3803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 3804 cat >conftest.$ac_ext <<_ACEOF
ad21602a 3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
33f5f8b9 3810$ac_declaration
33f5f8b9 3811int
3812main ()
3813{
3814exit (42);
3815 ;
3816 return 0;
3817}
3818_ACEOF
3819rm -f conftest.$ac_objext
3820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 3821 (eval $ac_compile) 2>conftest.er1
33f5f8b9 3822 ac_status=$?
af3004ff 3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
33f5f8b9 3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
6263d81f 3828 { ac_try='test -z "$ac_cxx_werror_flag"
3829 || test ! -s conftest.err'
af3004ff 3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; } &&
3835 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 break
3842else
3843 echo "$as_me: failed program was:" >&5
ad21602a 3844sed 's/^/| /' conftest.$ac_ext >&5
3845
33f5f8b9 3846fi
af3004ff 3847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 3848done
3849rm -f conftest*
3850if test -n "$ac_declaration"; then
3851 echo '#ifdef __cplusplus' >>confdefs.h
3852 echo $ac_declaration >>confdefs.h
3853 echo '#endif' >>confdefs.h
3854fi
3855
3856ac_ext=c
3857ac_cpp='$CPP $CPPFLAGS'
3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860ac_compiler_gnu=$ac_cv_c_compiler_gnu
b65c7b0d 3861
3862depcc="$CXX" am_compiler_list=
3863
33f5f8b9 3864echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3865echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3866if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
b65c7b0d 3868else
29b8d8d6 3869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3870 # We make a subdir and do the tests there. Otherwise we can end up
3871 # making bogus files that we don't know about and never remove. For
3872 # instance it was reported that on HP-UX the gcc test will end up
3873 # making a dummy file named `D' -- because `-MD' means `put the output
3874 # in D'.
3875 mkdir conftest.dir
3876 # Copy depcomp to subdir because otherwise we won't find it if we're
3877 # using a relative directory.
3878 cp "$am_depcomp" conftest.dir
3879 cd conftest.dir
07d1f987 3880 # We will build objects and dependencies in a subdirectory because
3881 # it helps to detect inapplicable dependency modes. For instance
3882 # both Tru64's cc and ICC support -MD to output dependencies as a
3883 # side effect of compilation, but ICC will put the dependencies in
3884 # the current directory while Tru64 will put them in the object
3885 # directory.
3886 mkdir sub
29b8d8d6 3887
3888 am_cv_CXX_dependencies_compiler_type=none
3889 if test "$am_compiler_list" = ""; then
3890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3891 fi
3892 for depmode in $am_compiler_list; do
07d1f987 3893 # Setup a source with many dependencies, because some compilers
3894 # like to wrap large dependency lists on column 80 (with \), and
3895 # we should not choose a depcomp mode which is confused by this.
3896 #
29b8d8d6 3897 # We need to recreate these files for each test, as the compiler may
3898 # overwrite some of them when testing with obscure command lines.
3899 # This happens at least with the AIX C compiler.
07d1f987 3900 : > sub/conftest.c
3901 for i in 1 2 3 4 5 6; do
3902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3903 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3904 # Solaris 8's {/usr,}/bin/sh.
3905 touch sub/conftst$i.h
3906 done
3907 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29b8d8d6 3908
3909 case $depmode in
3910 nosideeffect)
3911 # after this tag, mechanisms are not by side-effect, so they'll
3912 # only be used when explicitly requested
3913 if test "x$enable_dependency_tracking" = xyes; then
3914 continue
3915 else
3916 break
3917 fi
3918 ;;
3919 none) break ;;
3920 esac
3921 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3922 # mode. It turns out that the SunPro C++ compiler does not properly
3923 # handle `-M -o', and we need to detect this.
3924 if depmode=$depmode \
07d1f987 3925 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3927 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
ad21602a 3928 >/dev/null 2>conftest.err &&
07d1f987 3929 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3930 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
29b8d8d6 3931 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
ad21602a 3932 # icc doesn't choke on unknown options, it will just issue warnings
07d1f987 3933 # or remarks (even with -Werror). So we grep stderr for any message
3934 # that says an option was ignored or not supported.
3935 # When given -MP, icc 7.0 and 7.1 complain thusly:
3936 # icc: Command line warning: ignoring option '-M'; no argument required
3937 # The diagnosis changed in icc 8.0:
3938 # icc: Command line remark: option '-MP' not supported
3939 if (grep 'ignoring option' conftest.err ||
3940 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
ad21602a 3941 am_cv_CXX_dependencies_compiler_type=$depmode
3942 break
3943 fi
29b8d8d6 3944 fi
3945 done
3946
3947 cd ..
3948 rm -rf conftest.dir
3949else
3950 am_cv_CXX_dependencies_compiler_type=none
3951fi
3952
3953fi
33f5f8b9 3954echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3955echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
ad21602a 3956CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3957
3958
3959
3960if
3961 test "x$enable_dependency_tracking" != xno \
3962 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3963 am__fastdepCXX_TRUE=
3964 am__fastdepCXX_FALSE='#'
3965else
3966 am__fastdepCXX_TRUE='#'
3967 am__fastdepCXX_FALSE=
3968fi
29b8d8d6 3969
3970
a2794549 3971# Make sure we can run config.sub.
33f5f8b9 3972$ac_config_sub sun4 >/dev/null 2>&1 ||
3973 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3974echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3975 { (exit 1); exit 1; }; }
3f961930 3976
33f5f8b9 3977echo "$as_me:$LINENO: checking build system type" >&5
3978echo $ECHO_N "checking build system type... $ECHO_C" >&6
3979if test "${ac_cv_build+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
a2794549 3981else
33f5f8b9 3982 ac_cv_build_alias=$build_alias
3983test -z "$ac_cv_build_alias" &&
3984 ac_cv_build_alias=`$ac_config_guess`
3985test -z "$ac_cv_build_alias" &&
3986 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3987echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3988 { (exit 1); exit 1; }; }
3989ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3990 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3991echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3992 { (exit 1); exit 1; }; }
a2794549 3993
3f961930 3994fi
33f5f8b9 3995echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3996echo "${ECHO_T}$ac_cv_build" >&6
3997build=$ac_cv_build
3998build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3999build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4000build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a2794549 4001
b65c7b0d 4002
33f5f8b9 4003echo "$as_me:$LINENO: checking host system type" >&5
4004echo $ECHO_N "checking host system type... $ECHO_C" >&6
4005if test "${ac_cv_host+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
3f961930 4007else
33f5f8b9 4008 ac_cv_host_alias=$host_alias
4009test -z "$ac_cv_host_alias" &&
4010 ac_cv_host_alias=$ac_cv_build_alias
4011ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4012 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4013echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4014 { (exit 1); exit 1; }; }
4015
a2794549 4016fi
33f5f8b9 4017echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4018echo "${ECHO_T}$ac_cv_host" >&6
4019host=$ac_cv_host
4020host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4021host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4022host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a2794549 4023
a2794549 4024
a33e1d91 4025# Check whether --enable-shared or --disable-shared was given.
4026if test "${enable_shared+set}" = set; then
4027 enableval="$enable_shared"
4028 p=${PACKAGE-default}
4029 case $enableval in
4030 yes) enable_shared=yes ;;
4031 no) enable_shared=no ;;
4032 *)
4033 enable_shared=no
4034 # Look at the argument we got. We use all the common list separators.
4035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4036 for pkg in $enableval; do
4037 IFS="$lt_save_ifs"
4038 if test "X$pkg" = "X$p"; then
4039 enable_shared=yes
4040 fi
4041 done
4042 IFS="$lt_save_ifs"
4043 ;;
4044 esac
4045else
07d1f987 4046 enable_shared=no
a33e1d91 4047fi;
a2794549 4048
07d1f987 4049
a33e1d91 4050# Check whether --enable-static or --disable-static was given.
4051if test "${enable_static+set}" = set; then
4052 enableval="$enable_static"
4053 p=${PACKAGE-default}
4054 case $enableval in
4055 yes) enable_static=yes ;;
4056 no) enable_static=no ;;
4057 *)
4058 enable_static=no
4059 # Look at the argument we got. We use all the common list separators.
4060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4061 for pkg in $enableval; do
4062 IFS="$lt_save_ifs"
4063 if test "X$pkg" = "X$p"; then
4064 enable_static=yes
4065 fi
4066 done
4067 IFS="$lt_save_ifs"
4068 ;;
4069 esac
4070else
4071 enable_static=yes
4072fi;
a2794549 4073
a33e1d91 4074# Check whether --enable-fast-install or --disable-fast-install was given.
4075if test "${enable_fast_install+set}" = set; then
4076 enableval="$enable_fast_install"
4077 p=${PACKAGE-default}
4078 case $enableval in
4079 yes) enable_fast_install=yes ;;
4080 no) enable_fast_install=no ;;
4081 *)
4082 enable_fast_install=no
4083 # Look at the argument we got. We use all the common list separators.
4084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4085 for pkg in $enableval; do
4086 IFS="$lt_save_ifs"
4087 if test "X$pkg" = "X$p"; then
4088 enable_fast_install=yes
4089 fi
4090 done
4091 IFS="$lt_save_ifs"
4092 ;;
4093 esac
4094else
4095 enable_fast_install=yes
4096fi;
a2794549 4097
a33e1d91 4098echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4099echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4100if test "${lt_cv_path_SED+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 # Loop through the user's path and test for sed and gsed.
4104# Then use that list of sed's as ones to test for truncation.
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for lt_ac_prog in sed gsed; do
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4113 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4114 fi
4115 done
4116 done
4117done
4118lt_ac_max=0
4119lt_ac_count=0
4120# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4121# along with /bin/sed that truncates output.
4122for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
087278d6 4123 test ! -f $lt_ac_sed && continue
a33e1d91 4124 cat /dev/null > conftest.in
4125 lt_ac_count=0
4126 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4127 # Check for GNU sed and select it if it is found.
4128 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4129 lt_cv_path_SED=$lt_ac_sed
4130 break
4131 fi
4132 while true; do
4133 cat conftest.in conftest.in >conftest.tmp
4134 mv conftest.tmp conftest.in
4135 cp conftest.in conftest.nl
4136 echo >>conftest.nl
4137 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4138 cmp -s conftest.out conftest.nl || break
4139 # 10000 chars as input seems more than enough
4140 test $lt_ac_count -gt 10 && break
4141 lt_ac_count=`expr $lt_ac_count + 1`
4142 if test $lt_ac_count -gt $lt_ac_max; then
4143 lt_ac_max=$lt_ac_count
4144 lt_cv_path_SED=$lt_ac_sed
4145 fi
4146 done
4147done
a2794549 4148
a33e1d91 4149fi
a2794549 4150
631008fb 4151SED=$lt_cv_path_SED
a33e1d91 4152echo "$as_me:$LINENO: result: $SED" >&5
4153echo "${ECHO_T}$SED" >&6
a2794549 4154
a33e1d91 4155echo "$as_me:$LINENO: checking for egrep" >&5
4156echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4157if test "${ac_cv_prog_egrep+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
a2794549 4159else
a33e1d91 4160 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4161 then ac_cv_prog_egrep='grep -E'
4162 else ac_cv_prog_egrep='egrep'
4163 fi
a2794549 4164fi
a33e1d91 4165echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4166echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4167 EGREP=$ac_cv_prog_egrep
a2794549 4168
eee822a0 4169
a2794549 4170
a33e1d91 4171# Check whether --with-gnu-ld or --without-gnu-ld was given.
4172if test "${with_gnu_ld+set}" = set; then
4173 withval="$with_gnu_ld"
4174 test "$withval" = no || with_gnu_ld=yes
a2794549 4175else
a33e1d91 4176 with_gnu_ld=no
4177fi;
4178ac_prog=ld
4179if test "$GCC" = yes; then
4180 # Check if gcc -print-prog-name=ld gives a path.
4181 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4182echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4183 case $host in
4184 *-*-mingw*)
4185 # gcc leaves a trailing carriage return which upsets mingw
4186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4187 *)
4188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4189 esac
4190 case $ac_prog in
4191 # Accept absolute paths.
4192 [\\/]* | ?:[\\/]*)
4193 re_direlt='/[^/][^/]*/\.\./'
4194 # Canonicalize the pathname of ld
4195 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4196 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4197 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4198 done
4199 test -z "$LD" && LD="$ac_prog"
4200 ;;
4201 "")
4202 # If it fails, then pretend we aren't using GCC.
4203 ac_prog=ld
4204 ;;
4205 *)
4206 # If it is relative, then search for the first ld in PATH.
4207 with_gnu_ld=unknown
4208 ;;
4209 esac
4210elif test "$with_gnu_ld" = yes; then
4211 echo "$as_me:$LINENO: checking for GNU ld" >&5
4212echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4213else
4214 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4215echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
a2794549 4216fi
a33e1d91 4217if test "${lt_cv_path_LD+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 if test -z "$LD"; then
4221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4222 for ac_dir in $PATH; do
4223 IFS="$lt_save_ifs"
4224 test -z "$ac_dir" && ac_dir=.
4225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4226 lt_cv_path_LD="$ac_dir/$ac_prog"
4227 # Check to see if the program is GNU ld. I'd rather use --version,
693f5c2e 4228 # but apparently some variants of GNU ld only accept -v.
a33e1d91 4229 # Break only if it was the GNU/non-GNU ld that we prefer.
4230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4231 *GNU* | *'with BFD'*)
4232 test "$with_gnu_ld" != no && break
a2794549 4233 ;;
a33e1d91 4234 *)
4235 test "$with_gnu_ld" != yes && break
4236 ;;
4237 esac
4238 fi
4239 done
4240 IFS="$lt_save_ifs"
a2794549 4241else
a33e1d91 4242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4243fi
4244fi
4245
4246LD="$lt_cv_path_LD"
4247if test -n "$LD"; then
4248 echo "$as_me:$LINENO: result: $LD" >&5
4249echo "${ECHO_T}$LD" >&6
4250else
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4255echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4256 { (exit 1); exit 1; }; }
4257echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4258echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4259if test "${lt_cv_prog_gnu_ld+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261else
693f5c2e 4262 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a33e1d91 4263case `$LD -v 2>&1 </dev/null` in
4264*GNU* | *'with BFD'*)
4265 lt_cv_prog_gnu_ld=yes
4266 ;;
4267*)
4268 lt_cv_prog_gnu_ld=no
4269 ;;
4270esac
4271fi
4272echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4273echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4274with_gnu_ld=$lt_cv_prog_gnu_ld
4275
4276
4277echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4278echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4279if test "${lt_cv_ld_reload_flag+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282 lt_cv_ld_reload_flag='-r'
4283fi
4284echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4285echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4286reload_flag=$lt_cv_ld_reload_flag
4287case $reload_flag in
4288"" | " "*) ;;
4289*) reload_flag=" $reload_flag" ;;
4290esac
4291reload_cmds='$LD$reload_flag -o $output$reload_objs'
631008fb 4292case $host_os in
4293 darwin*)
4294 if test "$GCC" = yes; then
62567204 4295 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
631008fb 4296 else
4297 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4298 fi
4299 ;;
4300esac
a33e1d91 4301
4302echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4303echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4304if test "${lt_cv_path_NM+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307 if test -n "$NM"; then
4308 # Let the user override the test.
4309 lt_cv_path_NM="$NM"
4310else
62567204 4311 lt_nm_to_check="${ac_tool_prefix}nm"
4312 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4313 lt_nm_to_check="$lt_nm_to_check nm"
4314 fi
4315 for lt_tmp_nm in $lt_nm_to_check; do
4316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4317 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4318 IFS="$lt_save_ifs"
4319 test -z "$ac_dir" && ac_dir=.
4320 tmp_nm="$ac_dir/$lt_tmp_nm"
4321 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4322 # Check to see if the nm accepts a BSD-compat flag.
4323 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4324 # nm: unknown option "B" ignored
4325 # Tru64's nm complains that /dev/null is an invalid object file
4326 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4327 */dev/null* | *'Invalid file or object type'*)
4328 lt_cv_path_NM="$tmp_nm -B"
a33e1d91 4329 break
4330 ;;
4331 *)
62567204 4332 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4333 */dev/null*)
4334 lt_cv_path_NM="$tmp_nm -p"
4335 break
4336 ;;
4337 *)
4338 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4339 continue # so that we can try to find one that supports BSD flags
4340 ;;
4341 esac
a33e1d91 4342 ;;
4343 esac
62567204 4344 fi
4345 done
4346 IFS="$lt_save_ifs"
a33e1d91 4347 done
a33e1d91 4348 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4349fi
4350fi
4351echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4352echo "${ECHO_T}$lt_cv_path_NM" >&6
4353NM="$lt_cv_path_NM"
4354
4355echo "$as_me:$LINENO: checking whether ln -s works" >&5
4356echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4357LN_S=$as_ln_s
4358if test "$LN_S" = "ln -s"; then
4359 echo "$as_me:$LINENO: result: yes" >&5
4360echo "${ECHO_T}yes" >&6
4361else
4362 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4363echo "${ECHO_T}no, using $LN_S" >&6
4364fi
4365
4366echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4367echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4368if test "${lt_cv_deplibs_check_method+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371 lt_cv_file_magic_cmd='$MAGIC_CMD'
4372lt_cv_file_magic_test_file=
4373lt_cv_deplibs_check_method='unknown'
4374# Need to set the preceding variable on all platforms that support
4375# interlibrary dependencies.
4376# 'none' -- dependencies not supported.
4377# `unknown' -- same as none, but documents that we really don't know.
4378# 'pass_all' -- all dependencies passed with no checks.
4379# 'test_compile' -- check by making test program.
4380# 'file_magic [[regex]]' -- check by looking for files in library path
4381# which responds to the $file_magic_cmd with a given extended regex.
4382# If you have `file' or equivalent on your system and you're not sure
4383# whether `pass_all' will *always* work, you probably want this one.
4384
4385case $host_os in
4386aix4* | aix5*)
4387 lt_cv_deplibs_check_method=pass_all
4388 ;;
4389
4390beos*)
4391 lt_cv_deplibs_check_method=pass_all
4392 ;;
4393
631008fb 4394bsdi[45]*)
a33e1d91 4395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4396 lt_cv_file_magic_cmd='/usr/bin/file -L'
4397 lt_cv_file_magic_test_file=/shlib/libc.so
4398 ;;
4399
4400cygwin*)
4401 # func_win32_libid is a shell function defined in ltmain.sh
4402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4403 lt_cv_file_magic_cmd='func_win32_libid'
4404 ;;
4405
4406mingw* | pw32*)
4407 # Base MSYS/MinGW do not provide the 'file' command needed by
4408 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4410 lt_cv_file_magic_cmd='$OBJDUMP -f'
4411 ;;
4412
4413darwin* | rhapsody*)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416
087278d6 4417freebsd* | kfreebsd*-gnu | dragonfly*)
a33e1d91 4418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4419 case $host_cpu in
4420 i*86 )
4421 # Not sure whether the presence of OpenBSD here was a mistake.
4422 # Let's accept both of them until this is cleared up.
087278d6 4423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
a33e1d91 4424 lt_cv_file_magic_cmd=/usr/bin/file
4425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4426 ;;
4427 esac
4428 else
4429 lt_cv_deplibs_check_method=pass_all
4430 fi
4431 ;;
4432
4433gnu*)
4434 lt_cv_deplibs_check_method=pass_all
4435 ;;
4436
4437hpux10.20* | hpux11*)
4438 lt_cv_file_magic_cmd=/usr/bin/file
693f5c2e 4439 case $host_cpu in
a33e1d91 4440 ia64*)
4441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4443 ;;
4444 hppa*64*)
4445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4447 ;;
4448 *)
4449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4451 ;;
4452 esac
4453 ;;
4454
62567204 4455interix3*)
4456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4458 ;;
4459
a33e1d91 4460irix5* | irix6* | nonstopux*)
4461 case $LD in
4462 *-32|*"-32 ") libmagic=32-bit;;
4463 *-n32|*"-n32 ") libmagic=N32;;
4464 *-64|*"-64 ") libmagic=64-bit;;
4465 *) libmagic=never-match;;
4466 esac
4467 lt_cv_deplibs_check_method=pass_all
4468 ;;
4469
4470# This must be Linux ELF.
4471linux*)
a33e1d91 4472 lt_cv_deplibs_check_method=pass_all
4473 ;;
4474
6263d81f 4475netbsd*)
a33e1d91 4476 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4478 else
4479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4480 fi
4481 ;;
4482
4483newos6*)
4484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4485 lt_cv_file_magic_cmd=/usr/bin/file
4486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4487 ;;
4488
4489nto-qnx*)
4490 lt_cv_deplibs_check_method=unknown
4491 ;;
4492
4493openbsd*)
4494 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
631008fb 4495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a33e1d91 4496 else
631008fb 4497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a33e1d91 4498 fi
4499 ;;
4500
4501osf3* | osf4* | osf5*)
4502 lt_cv_deplibs_check_method=pass_all
4503 ;;
4504
a33e1d91 4505solaris*)
4506 lt_cv_deplibs_check_method=pass_all
4507 ;;
4508
62567204 4509sysv4 | sysv4.3*)
a33e1d91 4510 case $host_vendor in
4511 motorola)
4512 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]'
4513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4514 ;;
4515 ncr)
4516 lt_cv_deplibs_check_method=pass_all
4517 ;;
4518 sequent)
4519 lt_cv_file_magic_cmd='/bin/file'
4520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4521 ;;
4522 sni)
4523 lt_cv_file_magic_cmd='/bin/file'
4524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4525 lt_cv_file_magic_test_file=/lib/libc.so
4526 ;;
4527 siemens)
4528 lt_cv_deplibs_check_method=pass_all
4529 ;;
62567204 4530 pc)
4531 lt_cv_deplibs_check_method=pass_all
4532 ;;
a33e1d91 4533 esac
4534 ;;
4535
62567204 4536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
a33e1d91 4537 lt_cv_deplibs_check_method=pass_all
4538 ;;
4539esac
4540
4541fi
4542echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4543echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4544file_magic_cmd=$lt_cv_file_magic_cmd
4545deplibs_check_method=$lt_cv_deplibs_check_method
4546test -z "$deplibs_check_method" && deplibs_check_method=unknown
4547
4548
4549
4550
4551# If no C compiler was specified, use CC.
4552LTCC=${LTCC-"$CC"}
4553
62567204 4554# If no C compiler flags were specified, use CFLAGS.
4555LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4556
a33e1d91 4557# Allow CC to be a program name with arguments.
4558compiler=$CC
4559
4560
4561# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4562if test "${enable_libtool_lock+set}" = set; then
4563 enableval="$enable_libtool_lock"
4564
4565fi;
4566test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4567
4568# Some flags need to be propagated to the compiler or linker for good
4569# libtool support.
4570case $host in
4571ia64-*-hpux*)
4572 # Find out which ABI we are using.
4573 echo 'int i;' > conftest.$ac_ext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; then
4579 case `/usr/bin/file conftest.$ac_objext` in
4580 *ELF-32*)
4581 HPUX_IA64_MODE="32"
4582 ;;
4583 *ELF-64*)
4584 HPUX_IA64_MODE="64"
4585 ;;
4586 esac
4587 fi
4588 rm -rf conftest*
4589 ;;
4590*-*-irix6*)
4591 # Find out which ABI we are using.
00b2804c 4592 echo '#line 4592 "configure"' > conftest.$ac_ext
a33e1d91 4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; then
4598 if test "$lt_cv_prog_gnu_ld" = yes; then
4599 case `/usr/bin/file conftest.$ac_objext` in
4600 *32-bit*)
4601 LD="${LD-ld} -melf32bsmip"
4602 ;;
4603 *N32*)
4604 LD="${LD-ld} -melf32bmipn32"
4605 ;;
4606 *64-bit*)
4607 LD="${LD-ld} -melf64bmip"
4608 ;;
4609 esac
4610 else
4611 case `/usr/bin/file conftest.$ac_objext` in
4612 *32-bit*)
4613 LD="${LD-ld} -32"
4614 ;;
4615 *N32*)
4616 LD="${LD-ld} -n32"
4617 ;;
4618 *64-bit*)
4619 LD="${LD-ld} -64"
4620 ;;
4621 esac
4622 fi
4623 fi
4624 rm -rf conftest*
4625 ;;
4626
4627x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4628 # Find out which ABI we are using.
4629 echo 'int i;' > conftest.$ac_ext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; then
693f5c2e 4635 case `/usr/bin/file conftest.o` in
a33e1d91 4636 *32-bit*)
4637 case $host in
4638 x86_64-*linux*)
4639 LD="${LD-ld} -m elf_i386"
4640 ;;
4641 ppc64-*linux*|powerpc64-*linux*)
4642 LD="${LD-ld} -m elf32ppclinux"
4643 ;;
4644 s390x-*linux*)
4645 LD="${LD-ld} -m elf_s390"
4646 ;;
4647 sparc64-*linux*)
4648 LD="${LD-ld} -m elf32_sparc"
4649 ;;
4650 esac
4651 ;;
4652 *64-bit*)
4653 case $host in
4654 x86_64-*linux*)
4655 LD="${LD-ld} -m elf_x86_64"
4656 ;;
4657 ppc*-*linux*|powerpc*-*linux*)
4658 LD="${LD-ld} -m elf64ppc"
4659 ;;
4660 s390*-*linux*)
4661 LD="${LD-ld} -m elf64_s390"
4662 ;;
4663 sparc*-*linux*)
4664 LD="${LD-ld} -m elf64_sparc"
4665 ;;
4666 esac
4667 ;;
4668 esac
4669 fi
4670 rm -rf conftest*
4671 ;;
4672
4673*-*-sco3.2v5*)
4674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4675 SAVE_CFLAGS="$CFLAGS"
4676 CFLAGS="$CFLAGS -belf"
4677 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4678echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4679if test "${lt_cv_cc_needs_belf+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682 ac_ext=c
4683ac_cpp='$CPP $CPPFLAGS'
4684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687
4688 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694
4695int
4696main ()
4697{
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext conftest$ac_exeext
4704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 4705 (eval $ac_link) 2>conftest.er1
a33e1d91 4706 ac_status=$?
af3004ff 4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
a33e1d91 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
6263d81f 4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
af3004ff 4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest$ac_exeext'
a33e1d91 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 lt_cv_cc_needs_belf=yes
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730lt_cv_cc_needs_belf=no
4731fi
af3004ff 4732rm -f conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
a33e1d91 4734 ac_ext=c
4735ac_cpp='$CPP $CPPFLAGS'
4736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740fi
4741echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4742echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4743 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4744 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4745 CFLAGS="$SAVE_CFLAGS"
4746 fi
4747 ;;
62567204 4748sparc*-*solaris*)
4749 # Find out which ABI we are using.
4750 echo 'int i;' > conftest.$ac_ext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; then
4756 case `/usr/bin/file conftest.o` in
4757 *64-bit*)
4758 case $lt_cv_prog_gnu_ld in
4759 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4760 *) LD="${LD-ld} -64" ;;
4761 esac
4762 ;;
4763 esac
4764 fi
4765 rm -rf conftest*
4766 ;;
4767
a33e1d91 4768
4769esac
4770
4771need_locks="$enable_libtool_lock"
4772
4773
4774ac_ext=c
4775ac_cpp='$CPP $CPPFLAGS'
4776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4780echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4781# On Suns, sometimes $CPP names a directory.
4782if test -n "$CPP" && test -d "$CPP"; then
4783 CPP=
4784fi
4785if test -z "$CPP"; then
4786 if test "${ac_cv_prog_CPP+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 # Double quotes because CPP needs to be expanded
4790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4791 do
4792 ac_preproc_ok=false
4793for ac_c_preproc_warn_flag in '' yes
4794do
4795 # Use a header file that comes with gcc, so configuring glibc
4796 # with a fresh cross-compiler works.
4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 # <limits.h> exists even on freestanding compilers.
4799 # On the NeXT, cc -E runs the code through the compiler's parser,
4800 # not just through cpp. "Syntax error" is here to catch this case.
4801 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 4802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
4807#ifdef __STDC__
4808# include <limits.h>
4809#else
4810# include <assert.h>
4811#endif
af3004ff 4812 Syntax error
a33e1d91 4813_ACEOF
4814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null; then
4822 if test -s conftest.err; then
4823 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 4824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a33e1d91 4825 else
4826 ac_cpp_err=
4827 fi
4828else
4829 ac_cpp_err=yes
4830fi
4831if test -z "$ac_cpp_err"; then
4832 :
4833else
4834 echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 # Broken: fails on valid input.
4838continue
4839fi
4840rm -f conftest.err conftest.$ac_ext
4841
4842 # OK, works on sane cases. Now check whether non-existent headers
4843 # can be detected and how.
4844 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850#include <ac_nonexistent.h>
4851_ACEOF
4852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null; then
4860 if test -s conftest.err; then
4861 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 4862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a33e1d91 4863 else
4864 ac_cpp_err=
4865 fi
4866else
4867 ac_cpp_err=yes
4868fi
4869if test -z "$ac_cpp_err"; then
4870 # Broken: success on invalid input.
4871continue
4872else
4873 echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 # Passes both tests.
4877ac_preproc_ok=:
4878break
4879fi
4880rm -f conftest.err conftest.$ac_ext
4881
4882done
4883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884rm -f conftest.err conftest.$ac_ext
4885if $ac_preproc_ok; then
4886 break
4887fi
4888
4889 done
4890 ac_cv_prog_CPP=$CPP
4891
4892fi
4893 CPP=$ac_cv_prog_CPP
4894else
4895 ac_cv_prog_CPP=$CPP
4896fi
4897echo "$as_me:$LINENO: result: $CPP" >&5
4898echo "${ECHO_T}$CPP" >&6
4899ac_preproc_ok=false
4900for ac_c_preproc_warn_flag in '' yes
4901do
4902 # Use a header file that comes with gcc, so configuring glibc
4903 # with a fresh cross-compiler works.
4904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4905 # <limits.h> exists even on freestanding compilers.
4906 # On the NeXT, cc -E runs the code through the compiler's parser,
4907 # not just through cpp. "Syntax error" is here to catch this case.
4908 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 4909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
4914#ifdef __STDC__
4915# include <limits.h>
4916#else
4917# include <assert.h>
4918#endif
af3004ff 4919 Syntax error
a33e1d91 4920_ACEOF
4921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null; then
4929 if test -s conftest.err; then
4930 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 4931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a33e1d91 4932 else
4933 ac_cpp_err=
4934 fi
4935else
4936 ac_cpp_err=yes
4937fi
4938if test -z "$ac_cpp_err"; then
4939 :
4940else
4941 echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 # Broken: fails on valid input.
4945continue
4946fi
4947rm -f conftest.err conftest.$ac_ext
4948
4949 # OK, works on sane cases. Now check whether non-existent headers
4950 # can be detected and how.
4951 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 4952/* confdefs.h. */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h. */
4957#include <ac_nonexistent.h>
4958_ACEOF
4959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null; then
4967 if test -s conftest.err; then
4968 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 4969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a33e1d91 4970 else
4971 ac_cpp_err=
4972 fi
4973else
4974 ac_cpp_err=yes
4975fi
4976if test -z "$ac_cpp_err"; then
4977 # Broken: success on invalid input.
4978continue
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 # Passes both tests.
4984ac_preproc_ok=:
4985break
4986fi
4987rm -f conftest.err conftest.$ac_ext
4988
4989done
4990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991rm -f conftest.err conftest.$ac_ext
4992if $ac_preproc_ok; then
4993 :
4994else
4995 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4996See \`config.log' for more details." >&5
4997echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4998See \`config.log' for more details." >&2;}
4999 { (exit 1); exit 1; }; }
5000fi
5001
5002ac_ext=c
5003ac_cpp='$CPP $CPPFLAGS'
5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5010echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5011if test "${ac_cv_header_stdc+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013else
5014 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5015/* confdefs.h. */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h. */
5020#include <stdlib.h>
5021#include <stdarg.h>
5022#include <string.h>
5023#include <float.h>
5024
5025int
5026main ()
5027{
5028
5029 ;
5030 return 0;
5031}
5032_ACEOF
5033rm -f conftest.$ac_objext
5034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 5035 (eval $ac_compile) 2>conftest.er1
a33e1d91 5036 ac_status=$?
af3004ff 5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
a33e1d91 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
6263d81f 5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
af3004ff 5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
a33e1d91 5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_cv_header_stdc=yes
5056else
5057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060ac_cv_header_stdc=no
5061fi
af3004ff 5062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a33e1d91 5063
5064if test $ac_cv_header_stdc = yes; then
5065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5066 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072#include <string.h>
5073
5074_ACEOF
5075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5076 $EGREP "memchr" >/dev/null 2>&1; then
5077 :
5078else
5079 ac_cv_header_stdc=no
5080fi
5081rm -f conftest*
5082
5083fi
5084
5085if test $ac_cv_header_stdc = yes; then
5086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5087 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#include <stdlib.h>
5094
5095_ACEOF
5096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5097 $EGREP "free" >/dev/null 2>&1; then
5098 :
5099else
5100 ac_cv_header_stdc=no
5101fi
5102rm -f conftest*
5103
5104fi
5105
5106if test $ac_cv_header_stdc = yes; then
5107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5108 if test "$cross_compiling" = yes; then
5109 :
5110else
5111 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5112/* confdefs.h. */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h. */
5117#include <ctype.h>
5118#if ((' ' & 0x0FF) == 0x020)
5119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5121#else
5122# define ISLOWER(c) \
af3004ff 5123 (('a' <= (c) && (c) <= 'i') \
5124 || ('j' <= (c) && (c) <= 'r') \
5125 || ('s' <= (c) && (c) <= 'z'))
a33e1d91 5126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5127#endif
5128
5129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5130int
5131main ()
5132{
5133 int i;
5134 for (i = 0; i < 256; i++)
5135 if (XOR (islower (i), ISLOWER (i))
af3004ff 5136 || toupper (i) != TOUPPER (i))
a33e1d91 5137 exit(2);
5138 exit (0);
5139}
5140_ACEOF
5141rm -f conftest$ac_exeext
5142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 :
5153else
5154 echo "$as_me: program exited with status $ac_status" >&5
5155echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
5158( exit $ac_status )
5159ac_cv_header_stdc=no
5160fi
af3004ff 5161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a33e1d91 5162fi
5163fi
5164fi
5165echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5166echo "${ECHO_T}$ac_cv_header_stdc" >&6
5167if test $ac_cv_header_stdc = yes; then
5168
5169cat >>confdefs.h <<\_ACEOF
5170#define STDC_HEADERS 1
5171_ACEOF
5172
5173fi
5174
5175# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
af3004ff 5186 inttypes.h stdint.h unistd.h
a33e1d91 5187do
5188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5189echo "$as_me:$LINENO: checking for $ac_header" >&5
5190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5191if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5195/* confdefs.h. */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h. */
5200$ac_includes_default
5201
5202#include <$ac_header>
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 5206 (eval $ac_compile) 2>conftest.er1
a33e1d91 5207 ac_status=$?
af3004ff 5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
a33e1d91 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
6263d81f 5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
af3004ff 5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
a33e1d91 5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 eval "$as_ac_Header=yes"
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231eval "$as_ac_Header=no"
5232fi
af3004ff 5233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a33e1d91 5234fi
5235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5237if test `eval echo '${'$as_ac_Header'}'` = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240_ACEOF
5241
5242fi
5243
5244done
5245
5246
5247
5248for ac_header in dlfcn.h
5249do
5250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5251if eval "test \"\${$as_ac_Header+set}\" = set"; then
5252 echo "$as_me:$LINENO: checking for $ac_header" >&5
5253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5254if eval "test \"\${$as_ac_Header+set}\" = set"; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256fi
5257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5259else
5260 # Is the header compilable?
5261echo "$as_me:$LINENO: checking $ac_header usability" >&5
5262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5263cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5264/* confdefs.h. */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h. */
5269$ac_includes_default
5270#include <$ac_header>
5271_ACEOF
5272rm -f conftest.$ac_objext
5273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 5274 (eval $ac_compile) 2>conftest.er1
a33e1d91 5275 ac_status=$?
af3004ff 5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
a33e1d91 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
6263d81f 5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
af3004ff 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
a33e1d91 5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_header_compiler=yes
5295else
5296 echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299ac_header_compiler=no
5300fi
af3004ff 5301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a33e1d91 5302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5303echo "${ECHO_T}$ac_header_compiler" >&6
5304
5305# Is the header present?
5306echo "$as_me:$LINENO: checking $ac_header presence" >&5
5307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5308cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5309/* confdefs.h. */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h. */
5314#include <$ac_header>
5315_ACEOF
5316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null; then
5324 if test -s conftest.err; then
5325 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 5326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a33e1d91 5327 else
5328 ac_cpp_err=
5329 fi
5330else
5331 ac_cpp_err=yes
5332fi
5333if test -z "$ac_cpp_err"; then
5334 ac_header_preproc=yes
5335else
5336 echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_header_preproc=no
5340fi
5341rm -f conftest.err conftest.$ac_ext
5342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5343echo "${ECHO_T}$ac_header_preproc" >&6
5344
5345# So? What about this header?
af3004ff 5346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5347 yes:no: )
a33e1d91 5348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
af3004ff 5350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5352 ac_header_preproc=yes
a33e1d91 5353 ;;
af3004ff 5354 no:yes:* )
a33e1d91 5355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
af3004ff 5357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a33e1d91 5363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
af3004ff 5365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a33e1d91 5367 (
5368 cat <<\_ASBOX
6e4fdb42 5369## ----------------------------------------------- ##
5370## Report this to http://www.squid-cache.org/bugs/ ##
5371## ----------------------------------------------- ##
a33e1d91 5372_ASBOX
5373 ) |
5374 sed "s/^/$as_me: WARNING: /" >&2
5375 ;;
5376esac
5377echo "$as_me:$LINENO: checking for $ac_header" >&5
5378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5379if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
af3004ff 5382 eval "$as_ac_Header=\$ac_header_preproc"
a33e1d91 5383fi
5384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386
5387fi
5388if test `eval echo '${'$as_ac_Header'}'` = yes; then
5389 cat >>confdefs.h <<_ACEOF
5390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391_ACEOF
5392
5393fi
5394
5395done
5396
631008fb 5397
5398
5399if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5400 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5401 (test "X$CXX" != "Xg++"))) ; then
5402 ac_ext=cc
a33e1d91 5403ac_cpp='$CXXCPP $CPPFLAGS'
5404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5407echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5408echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5409if test -z "$CXXCPP"; then
5410 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 # Double quotes because CXXCPP needs to be expanded
5414 for CXXCPP in "$CXX -E" "/lib/cpp"
5415 do
5416 ac_preproc_ok=false
5417for ac_cxx_preproc_warn_flag in '' yes
5418do
5419 # Use a header file that comes with gcc, so configuring glibc
5420 # with a fresh cross-compiler works.
5421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422 # <limits.h> exists even on freestanding compilers.
5423 # On the NeXT, cc -E runs the code through the compiler's parser,
5424 # not just through cpp. "Syntax error" is here to catch this case.
5425 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431#ifdef __STDC__
5432# include <limits.h>
5433#else
5434# include <assert.h>
5435#endif
af3004ff 5436 Syntax error
a33e1d91 5437_ACEOF
5438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null; then
5446 if test -s conftest.err; then
5447 ac_cpp_err=$ac_cxx_preproc_warn_flag
af3004ff 5448 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a33e1d91 5449 else
5450 ac_cpp_err=
5451 fi
5452else
5453 ac_cpp_err=yes
5454fi
5455if test -z "$ac_cpp_err"; then
5456 :
5457else
5458 echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 # Broken: fails on valid input.
5462continue
5463fi
5464rm -f conftest.err conftest.$ac_ext
5465
5466 # OK, works on sane cases. Now check whether non-existent headers
5467 # can be detected and how.
5468 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
5474#include <ac_nonexistent.h>
5475_ACEOF
5476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_cxx_preproc_warn_flag
af3004ff 5486 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a33e1d91 5487 else
5488 ac_cpp_err=
5489 fi
5490else
5491 ac_cpp_err=yes
5492fi
5493if test -z "$ac_cpp_err"; then
5494 # Broken: success on invalid input.
5495continue
5496else
5497 echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 # Passes both tests.
5501ac_preproc_ok=:
5502break
5503fi
5504rm -f conftest.err conftest.$ac_ext
5505
5506done
5507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5508rm -f conftest.err conftest.$ac_ext
5509if $ac_preproc_ok; then
5510 break
5511fi
5512
5513 done
5514 ac_cv_prog_CXXCPP=$CXXCPP
5515
5516fi
5517 CXXCPP=$ac_cv_prog_CXXCPP
5518else
5519 ac_cv_prog_CXXCPP=$CXXCPP
5520fi
5521echo "$as_me:$LINENO: result: $CXXCPP" >&5
5522echo "${ECHO_T}$CXXCPP" >&6
5523ac_preproc_ok=false
5524for ac_cxx_preproc_warn_flag in '' yes
5525do
5526 # Use a header file that comes with gcc, so configuring glibc
5527 # with a fresh cross-compiler works.
5528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529 # <limits.h> exists even on freestanding compilers.
5530 # On the NeXT, cc -E runs the code through the compiler's parser,
5531 # not just through cpp. "Syntax error" is here to catch this case.
5532 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5533/* confdefs.h. */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h. */
5538#ifdef __STDC__
5539# include <limits.h>
5540#else
5541# include <assert.h>
5542#endif
af3004ff 5543 Syntax error
a33e1d91 5544_ACEOF
5545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } >/dev/null; then
5553 if test -s conftest.err; then
5554 ac_cpp_err=$ac_cxx_preproc_warn_flag
af3004ff 5555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a33e1d91 5556 else
5557 ac_cpp_err=
5558 fi
5559else
5560 ac_cpp_err=yes
5561fi
5562if test -z "$ac_cpp_err"; then
5563 :
5564else
5565 echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568 # Broken: fails on valid input.
5569continue
5570fi
5571rm -f conftest.err conftest.$ac_ext
5572
5573 # OK, works on sane cases. Now check whether non-existent headers
5574 # can be detected and how.
5575 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 5576/* confdefs.h. */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h. */
5581#include <ac_nonexistent.h>
5582_ACEOF
5583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev/null; then
5591 if test -s conftest.err; then
5592 ac_cpp_err=$ac_cxx_preproc_warn_flag
af3004ff 5593 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a33e1d91 5594 else
5595 ac_cpp_err=
5596 fi
5597else
5598 ac_cpp_err=yes
5599fi
5600if test -z "$ac_cpp_err"; then
5601 # Broken: success on invalid input.
5602continue
5603else
5604 echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 # Passes both tests.
5608ac_preproc_ok=:
5609break
5610fi
5611rm -f conftest.err conftest.$ac_ext
5612
5613done
5614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615rm -f conftest.err conftest.$ac_ext
5616if $ac_preproc_ok; then
5617 :
5618else
5619 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5620See \`config.log' for more details." >&5
5621echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5622See \`config.log' for more details." >&2;}
5623 { (exit 1); exit 1; }; }
5624fi
5625
5626ac_ext=cc
5627ac_cpp='$CXXCPP $CPPFLAGS'
5628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5631
631008fb 5632fi
5633
a33e1d91 5634
5635ac_ext=f
5636ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5637ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5639if test -n "$ac_tool_prefix"; then
af3004ff 5640 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
a33e1d91 5641 do
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5644echo "$as_me:$LINENO: checking for $ac_word" >&5
5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646if test "${ac_cv_prog_F77+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 if test -n "$F77"; then
5650 ac_cv_prog_F77="$F77" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664done
5665
5666fi
5667fi
5668F77=$ac_cv_prog_F77
5669if test -n "$F77"; then
5670 echo "$as_me:$LINENO: result: $F77" >&5
5671echo "${ECHO_T}$F77" >&6
5672else
5673 echo "$as_me:$LINENO: result: no" >&5
5674echo "${ECHO_T}no" >&6
5675fi
5676
5677 test -n "$F77" && break
5678 done
5679fi
5680if test -z "$F77"; then
5681 ac_ct_F77=$F77
af3004ff 5682 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
a33e1d91 5683do
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685set dummy $ac_prog; ac_word=$2
5686echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691 if test -n "$ac_ct_F77"; then
5692 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_F77="$ac_prog"
5702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706done
5707
5708fi
5709fi
5710ac_ct_F77=$ac_cv_prog_ac_ct_F77
5711if test -n "$ac_ct_F77"; then
5712 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5713echo "${ECHO_T}$ac_ct_F77" >&6
5714else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717fi
5718
5719 test -n "$ac_ct_F77" && break
5720done
5721
5722 F77=$ac_ct_F77
5723fi
5724
5725
5726# Provide some information about the compiler.
00b2804c 5727echo "$as_me:5727:" \
a33e1d91 5728 "checking for Fortran 77 compiler version" >&5
5729ac_compiler=`set X $ac_compile; echo $2`
5730{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5731 (eval $ac_compiler --version </dev/null >&5) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }
5735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5736 (eval $ac_compiler -v </dev/null >&5) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }
5740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5741 (eval $ac_compiler -V </dev/null >&5) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }
af3004ff 5745rm -f a.out
a33e1d91 5746
5747# If we don't use `.F' as extension, the preprocessor is not run on the
af3004ff 5748# input file. (Note that this only needs to work for GNU compilers.)
a33e1d91 5749ac_save_ext=$ac_ext
5750ac_ext=F
5751echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5752echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5753if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 program main
5758#ifndef __GNUC__
5759 choke me
5760#endif
5761
5762 end
5763_ACEOF
5764rm -f conftest.$ac_objext
5765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 5766 (eval $ac_compile) 2>conftest.er1
a33e1d91 5767 ac_status=$?
af3004ff 5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
a33e1d91 5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
6263d81f 5773 { ac_try='test -z "$ac_f77_werror_flag"
5774 || test ! -s conftest.err'
af3004ff 5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
a33e1d91 5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_compiler_gnu=yes
5787else
5788 echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791ac_compiler_gnu=no
5792fi
af3004ff 5793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a33e1d91 5794ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5795
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5798echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5799ac_ext=$ac_save_ext
a33e1d91 5800ac_test_FFLAGS=${FFLAGS+set}
5801ac_save_FFLAGS=$FFLAGS
5802FFLAGS=
5803echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5804echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5805if test "${ac_cv_prog_f77_g+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808 FFLAGS=-g
5809cat >conftest.$ac_ext <<_ACEOF
5810 program main
5811
5812 end
5813_ACEOF
5814rm -f conftest.$ac_objext
5815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 5816 (eval $ac_compile) 2>conftest.er1
a33e1d91 5817 ac_status=$?
af3004ff 5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
a33e1d91 5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
6263d81f 5823 { ac_try='test -z "$ac_f77_werror_flag"
5824 || test ! -s conftest.err'
af3004ff 5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
a33e1d91 5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_prog_f77_g=yes
5837else
5838 echo "$as_me: failed program was:" >&5
5839sed 's/^/| /' conftest.$ac_ext >&5
5840
5841ac_cv_prog_f77_g=no
5842fi
af3004ff 5843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a33e1d91 5844
5845fi
5846echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5847echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5848if test "$ac_test_FFLAGS" = set; then
5849 FFLAGS=$ac_save_FFLAGS
5850elif test $ac_cv_prog_f77_g = yes; then
af3004ff 5851 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
a33e1d91 5852 FFLAGS="-g -O2"
5853 else
5854 FFLAGS="-g"
5855 fi
5856else
af3004ff 5857 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
a33e1d91 5858 FFLAGS="-O2"
5859 else
5860 FFLAGS=
5861 fi
5862fi
af3004ff 5863
5864G77=`test $ac_compiler_gnu = yes && echo yes`
a33e1d91 5865ac_ext=c
5866ac_cpp='$CPP $CPPFLAGS'
5867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
5871
5872
5873# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5874
5875# find the maximum length of command line arguments
5876echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5877echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5878if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881 i=0
5882 teststring="ABCD"
5883
5884 case $build_os in
5885 msdosdjgpp*)
5886 # On DJGPP, this test can blow up pretty badly due to problems in libc
5887 # (any single argument exceeding 2000 bytes causes a buffer overrun
5888 # during glob expansion). Even if it were fixed, the result of this
5889 # check would be larger than it should be.
5890 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5891 ;;
5892
5893 gnu*)
5894 # Under GNU Hurd, this test is not required because there is
5895 # no limit to the length of command line arguments.
5896 # Libtool will interpret -1 as no limit whatsoever
5897 lt_cv_sys_max_cmd_len=-1;
5898 ;;
5899
5900 cygwin* | mingw*)
5901 # On Win9x/ME, this test blows up -- it succeeds, but takes
5902 # about 5 minutes as the teststring grows exponentially.
5903 # Worse, since 9x/ME are not pre-emptively multitasking,
5904 # you end up with a "frozen" computer, even though with patience
5905 # the test eventually succeeds (with a max line length of 256k).
5906 # Instead, let's just punt: use the minimum linelength reported by
5907 # all of the supported platforms: 8192 (on NT/2K/XP).
5908 lt_cv_sys_max_cmd_len=8192;
5909 ;;
5910
5911 amigaos*)
5912 # On AmigaOS with pdksh, this test takes hours, literally.
5913 # So we just punt and use a minimum line length of 8192.
5914 lt_cv_sys_max_cmd_len=8192;
5915 ;;
5916
087278d6 5917 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
631008fb 5918 # This has been around since 386BSD, at least. Likely further.
5919 if test -x /sbin/sysctl; then
5920 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5921 elif test -x /usr/sbin/sysctl; then
5922 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5923 else
693f5c2e 5924 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
631008fb 5925 fi
5926 # And add a safety zone
5927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
087278d6 5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
631008fb 5929 ;;
62567204 5930
5931 interix*)
5932 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5933 lt_cv_sys_max_cmd_len=196608
5934 ;;
5935
087278d6 5936 osf*)
5937 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5938 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5939 # nice to cause kernel panics so lets avoid the loop below.
5940 # First set a reasonable default.
5941 lt_cv_sys_max_cmd_len=16384
5942 #
5943 if test -x /sbin/sysconfig; then
5944 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5945 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5946 esac
5947 fi
5948 ;;
62567204 5949 sco3.2v5*)
5950 lt_cv_sys_max_cmd_len=102400
5951 ;;
5952 sysv5* | sco5v6* | sysv4.2uw2*)
5953 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5954 if test -n "$kargmax"; then
5955 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5956 else
5957 lt_cv_sys_max_cmd_len=32768
5958 fi
5959 ;;
087278d6 5960 *)
a33e1d91 5961 # If test is not a shell built-in, we'll probably end up computing a
5962 # maximum length that is only half of the actual maximum length, but
5963 # we can't tell.
631008fb 5964 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5965 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
a33e1d91 5966 = "XX$teststring") >/dev/null 2>&1 &&
5967 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5968 lt_cv_sys_max_cmd_len=$new_result &&
5969 test $i != 17 # 1/2 MB should be enough
5970 do
5971 i=`expr $i + 1`
5972 teststring=$teststring$teststring
5973 done
5974 teststring=
5975 # Add a significant safety factor because C++ compilers can tack on massive
5976 # amounts of additional arguments before passing them to the linker.
5977 # It appears as though 1/2 is a usable value.
5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5979 ;;
5980 esac
5981
5982fi
5983
5984if test -n $lt_cv_sys_max_cmd_len ; then
5985 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5986echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5987else
5988 echo "$as_me:$LINENO: result: none" >&5
5989echo "${ECHO_T}none" >&6
5990fi
5991
5992
5993
5994
5995# Check for command to grab the raw symbol name followed by C symbol from nm.
5996echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5997echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5998if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001
6002# These are sane defaults that work on at least a few old systems.
6003# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6004
6005# Character class describing NM global symbol codes.
6006symcode='[BCDEGRST]'
6007
6008# Regexp to match symbols that can be accessed directly from C.
6009sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6010
a33e1d91 6011# Transform an extracted symbol line into a proper C declaration
6012lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6013
6014# Transform an extracted symbol line into symbol name and symbol address
6015lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6016
6017# Define system-specific variables.
6018case $host_os in
6019aix*)
6020 symcode='[BCDT]'
6021 ;;
6022cygwin* | mingw* | pw32*)
6023 symcode='[ABCDGISTW]'
6024 ;;
6025hpux*) # Its linker distinguishes data from code symbols
6026 if test "$host_cpu" = ia64; then
6027 symcode='[ABCDEGRST]'
6028 fi
6029 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6030 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6031 ;;
631008fb 6032linux*)
6033 if test "$host_cpu" = ia64; then
6034 symcode='[ABCDGIRSTW]'
6035 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6036 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6037 fi
6038 ;;
a33e1d91 6039irix* | nonstopux*)
6040 symcode='[BCDEGRST]'
6041 ;;
6042osf*)
6043 symcode='[BCDEGQRST]'
6044 ;;
62567204 6045solaris*)
a33e1d91 6046 symcode='[BDRT]'
6047 ;;
62567204 6048sco3.2v5*)
6049 symcode='[DT]'
6050 ;;
6051sysv4.2uw2*)
6052 symcode='[DT]'
6053 ;;
6054sysv5* | sco5v6* | unixware* | OpenUNIX*)
6055 symcode='[ABDT]'
6056 ;;
a33e1d91 6057sysv4)
6058 symcode='[DFNSTU]'
6059 ;;
6060esac
6061
6062# Handle CRLF in mingw tool chain
6063opt_cr=
6064case $build_os in
6065mingw*)
6066 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6067 ;;
6068esac
6069
6070# If we're using GNU nm, then use its standard symbol codes.
6071case `$NM -V 2>&1` in
6072*GNU* | *'with BFD'*)
6073 symcode='[ABCDGIRSTW]' ;;
6074esac
6075
6076# Try without a prefix undercore, then with it.
6077for ac_symprfx in "" "_"; do
6078
087278d6 6079 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6080 symxfrm="\\1 $ac_symprfx\\2 \\2"
6081
a33e1d91 6082 # Write the raw and C identifiers.
087278d6 6083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
a33e1d91 6084
6085 # Check to see that the pipe works correctly.
6086 pipe_works=no
6087
6088 rm -f conftest*
6089 cat > conftest.$ac_ext <<EOF
6090#ifdef __cplusplus
6091extern "C" {
6092#endif
6093char nm_test_var;
6094void nm_test_func(){}
6095#ifdef __cplusplus
6096}
6097#endif
6098int main(){nm_test_var='a';nm_test_func();return(0);}
6099EOF
6100
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; then
6106 # Now try to grab the symbols.
6107 nlist=conftest.nm
6108 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6109 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && test -s "$nlist"; then
6113 # Try sorting and uniquifying the output.
6114 if sort "$nlist" | uniq > "$nlist"T; then
6115 mv -f "$nlist"T "$nlist"
6116 else
6117 rm -f "$nlist"T
6118 fi
6119
6120 # Make sure that we snagged all the symbols we need.
6121 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6122 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6123 cat <<EOF > conftest.$ac_ext
6124#ifdef __cplusplus
6125extern "C" {
6126#endif
6127
6128EOF
6129 # Now generate the symbol file.
6130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6131
6132 cat <<EOF >> conftest.$ac_ext
6133#if defined (__STDC__) && __STDC__
6134# define lt_ptr_t void *
6135#else
6136# define lt_ptr_t char *
6137# define const
6138#endif
6139
6140/* The mapping between symbol names and symbols. */
6141const struct {
6142 const char *name;
6143 lt_ptr_t address;
6144}
6145lt_preloaded_symbols[] =
6146{
6147EOF
6148 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6149 cat <<\EOF >> conftest.$ac_ext
6150 {0, (lt_ptr_t) 0}
6151};
6152
6153#ifdef __cplusplus
6154}
6155#endif
6156EOF
6157 # Now try linking the two files.
6158 mv conftest.$ac_objext conftstm.$ac_objext
6159 lt_save_LIBS="$LIBS"
6160 lt_save_CFLAGS="$CFLAGS"
6161 LIBS="conftstm.$ac_objext"
6162 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6168 pipe_works=yes
6169 fi
6170 LIBS="$lt_save_LIBS"
6171 CFLAGS="$lt_save_CFLAGS"
6172 else
6173 echo "cannot find nm_test_func in $nlist" >&5
6174 fi
6175 else
6176 echo "cannot find nm_test_var in $nlist" >&5
6177 fi
6178 else
6179 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6180 fi
6181 else
6182 echo "$progname: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 fi
6185 rm -f conftest* conftst*
6186
6187 # Do not use the global_symbol_pipe unless it works.
6188 if test "$pipe_works" = yes; then
6189 break
6190 else
6191 lt_cv_sys_global_symbol_pipe=
6192 fi
6193done
6194
6195fi
6196
6197if test -z "$lt_cv_sys_global_symbol_pipe"; then
6198 lt_cv_sys_global_symbol_to_cdecl=
6199fi
6200if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6201 echo "$as_me:$LINENO: result: failed" >&5
6202echo "${ECHO_T}failed" >&6
6203else
6204 echo "$as_me:$LINENO: result: ok" >&5
6205echo "${ECHO_T}ok" >&6
6206fi
6207
6208echo "$as_me:$LINENO: checking for objdir" >&5
6209echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6210if test "${lt_cv_objdir+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213 rm -f .libs 2>/dev/null
6214mkdir .libs 2>/dev/null
6215if test -d .libs; then
6216 lt_cv_objdir=.libs
6217else
6218 # MS-DOS does not allow filenames that begin with a dot.
6219 lt_cv_objdir=_libs
6220fi
6221rmdir .libs 2>/dev/null
6222fi
6223echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6224echo "${ECHO_T}$lt_cv_objdir" >&6
6225objdir=$lt_cv_objdir
6226
6227
6228
6229
6230
6231case $host_os in
6232aix3*)
6233 # AIX sometimes has problems with the GCC collect2 program. For some
6234 # reason, if we set the COLLECT_NAMES environment variable, the problems
6235 # vanish in a puff of smoke.
6236 if test "X${COLLECT_NAMES+set}" != Xset; then
6237 COLLECT_NAMES=
6238 export COLLECT_NAMES
6239 fi
6240 ;;
6241esac
6242
6243# Sed substitution that helps us do robust quoting. It backslashifies
6244# metacharacters that are still active within double-quoted strings.
087278d6 6245Xsed='sed -e 1s/^X//'
a33e1d91 6246sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6247
6248# Same as above, but do not quote variable references.
6249double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6250
6251# Sed substitution to delay expansion of an escaped shell variable in a
6252# double_quote_subst'ed string.
6253delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6254
6255# Sed substitution to avoid accidental globbing in evaled expressions
6256no_glob_subst='s/\*/\\\*/g'
6257
6258# Constants:
6259rm="rm -f"
6260
6261# Global variables:
6262default_ofile=libtool
6263can_build_shared=yes
6264
693f5c2e 6265# All known linkers require a `.a' archive for static linking (except MSVC,
a33e1d91 6266# which needs '.lib').
6267libext=a
6268ltmain="$ac_aux_dir/ltmain.sh"
6269ofile="$default_ofile"
6270with_gnu_ld="$lt_cv_prog_gnu_ld"
6271
6272if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6274set dummy ${ac_tool_prefix}ar; ac_word=$2
6275echo "$as_me:$LINENO: checking for $ac_word" >&5
6276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277if test "${ac_cv_prog_AR+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280 if test -n "$AR"; then
6281 ac_cv_prog_AR="$AR" # Let the user override the test.
6282else
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_AR="${ac_tool_prefix}ar"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294done
6295done
6296
6297fi
6298fi
6299AR=$ac_cv_prog_AR
6300if test -n "$AR"; then
6301 echo "$as_me:$LINENO: result: $AR" >&5
6302echo "${ECHO_T}$AR" >&6
6303else
6304 echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6
6306fi
6307
6308fi
6309if test -z "$ac_cv_prog_AR"; then
6310 ac_ct_AR=$AR
6311 # Extract the first word of "ar", so it can be a program name with args.
6312set dummy ar; ac_word=$2
6313echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318 if test -n "$ac_ct_AR"; then
6319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_ac_ct_AR="ar"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333done
6334
6335 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6336fi
6337fi
6338ac_ct_AR=$ac_cv_prog_ac_ct_AR
6339if test -n "$ac_ct_AR"; then
6340 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6341echo "${ECHO_T}$ac_ct_AR" >&6
6342else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345fi
6346
6347 AR=$ac_ct_AR
6348else
6349 AR="$ac_cv_prog_AR"
6350fi
6351
6352if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6357if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374done
6375done
6376
6377fi
6378fi
6379RANLIB=$ac_cv_prog_RANLIB
6380if test -n "$RANLIB"; then
6381 echo "$as_me:$LINENO: result: $RANLIB" >&5
6382echo "${ECHO_T}$RANLIB" >&6
6383else
6384 echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386fi
6387
6388fi
6389if test -z "$ac_cv_prog_RANLIB"; then
6390 ac_ct_RANLIB=$RANLIB
6391 # Extract the first word of "ranlib", so it can be a program name with args.
6392set dummy ranlib; ac_word=$2
6393echo "$as_me:$LINENO: checking for $ac_word" >&5
6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6395if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398 if test -n "$ac_ct_RANLIB"; then
6399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_RANLIB="ranlib"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412done
6413done
6414
6415 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6416fi
6417fi
6418ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419if test -n "$ac_ct_RANLIB"; then
6420 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6421echo "${ECHO_T}$ac_ct_RANLIB" >&6
6422else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425fi
6426
6427 RANLIB=$ac_ct_RANLIB
6428else
6429 RANLIB="$ac_cv_prog_RANLIB"
6430fi
6431
6432if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6434set dummy ${ac_tool_prefix}strip; ac_word=$2
6435echo "$as_me:$LINENO: checking for $ac_word" >&5
6436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437if test "${ac_cv_prog_STRIP+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440 if test -n "$STRIP"; then
6441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455done
6456
6457fi
6458fi
6459STRIP=$ac_cv_prog_STRIP
6460if test -n "$STRIP"; then
6461 echo "$as_me:$LINENO: result: $STRIP" >&5
6462echo "${ECHO_T}$STRIP" >&6
6463else
6464 echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
6466fi
6467
6468fi
6469if test -z "$ac_cv_prog_STRIP"; then
6470 ac_ct_STRIP=$STRIP
6471 # Extract the first word of "strip", so it can be a program name with args.
6472set dummy strip; ac_word=$2
6473echo "$as_me:$LINENO: checking for $ac_word" >&5
6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6475if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478 if test -n "$ac_ct_STRIP"; then
6479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_STRIP="strip"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493done
6494
6495 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6496fi
6497fi
6498ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6499if test -n "$ac_ct_STRIP"; then
6500 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6501echo "${ECHO_T}$ac_ct_STRIP" >&6
6502else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505fi
6506
6507 STRIP=$ac_ct_STRIP
6508else
6509 STRIP="$ac_cv_prog_STRIP"
6510fi
6511
6512
6513old_CC="$CC"
6514old_CFLAGS="$CFLAGS"
6515
6516# Set sane defaults for various variables
6517test -z "$AR" && AR=ar
6518test -z "$AR_FLAGS" && AR_FLAGS=cru
6519test -z "$AS" && AS=as
6520test -z "$CC" && CC=cc
6521test -z "$LTCC" && LTCC=$CC
62567204 6522test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a33e1d91 6523test -z "$DLLTOOL" && DLLTOOL=dlltool
6524test -z "$LD" && LD=ld
6525test -z "$LN_S" && LN_S="ln -s"
6526test -z "$MAGIC_CMD" && MAGIC_CMD=file
6527test -z "$NM" && NM=nm
6528test -z "$SED" && SED=sed
6529test -z "$OBJDUMP" && OBJDUMP=objdump
6530test -z "$RANLIB" && RANLIB=:
6531test -z "$STRIP" && STRIP=:
6532test -z "$ac_objext" && ac_objext=o
6533
6534# Determine commands to create old-style static archives.
6535old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6536old_postinstall_cmds='chmod 644 $oldlib'
6537old_postuninstall_cmds=
6538
6539if test -n "$RANLIB"; then
6540 case $host_os in
6541 openbsd*)
62567204 6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
a33e1d91 6543 ;;
6544 *)
62567204 6545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a33e1d91 6546 ;;
6547 esac
6548 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6549fi
6550
087278d6 6551for cc_temp in $compiler""; do
6552 case $cc_temp in
6553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6555 \-*) ;;
6556 *) break;;
6557 esac
6558done
6559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6560
631008fb 6561
a33e1d91 6562# Only perform the check for file, if the check method requires it
6563case $deplibs_check_method in
6564file_magic*)
6565 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6566 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6567echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6568if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 case $MAGIC_CMD in
6572[\\/*] | ?:[\\/]*)
6573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6574 ;;
6575*)
6576 lt_save_MAGIC_CMD="$MAGIC_CMD"
6577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6579 for ac_dir in $ac_dummy; do
6580 IFS="$lt_save_ifs"
6581 test -z "$ac_dir" && ac_dir=.
6582 if test -f $ac_dir/${ac_tool_prefix}file; then
6583 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6584 if test -n "$file_magic_test_file"; then
6585 case $deplibs_check_method in
6586 "file_magic "*)
693f5c2e 6587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a33e1d91 6588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6590 $EGREP "$file_magic_regex" > /dev/null; then
6591 :
6592 else
6593 cat <<EOF 1>&2
6594
6595*** Warning: the command libtool uses to detect shared libraries,
6596*** $file_magic_cmd, produces output that libtool cannot recognize.
6597*** The result is that libtool may fail to recognize shared libraries
6598*** as such. This will affect the creation of libtool libraries that
6599*** depend on shared libraries, but programs linked with such libtool
6600*** libraries will work regardless of this problem. Nevertheless, you
6601*** may want to report the problem to your system manager and/or to
6602*** bug-libtool@gnu.org
6603
6604EOF
6605 fi ;;
6606 esac
6607 fi
6608 break
6609 fi
6610 done
6611 IFS="$lt_save_ifs"
6612 MAGIC_CMD="$lt_save_MAGIC_CMD"
6613 ;;
6614esac
6615fi
6616
6617MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6618if test -n "$MAGIC_CMD"; then
6619 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6620echo "${ECHO_T}$MAGIC_CMD" >&6
6621else
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
6624fi
6625
6626if test -z "$lt_cv_path_MAGIC_CMD"; then
6627 if test -n "$ac_tool_prefix"; then
6628 echo "$as_me:$LINENO: checking for file" >&5
6629echo $ECHO_N "checking for file... $ECHO_C" >&6
6630if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 case $MAGIC_CMD in
6634[\\/*] | ?:[\\/]*)
6635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6636 ;;
6637*)
6638 lt_save_MAGIC_CMD="$MAGIC_CMD"
6639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6641 for ac_dir in $ac_dummy; do
6642 IFS="$lt_save_ifs"
6643 test -z "$ac_dir" && ac_dir=.
6644 if test -f $ac_dir/file; then
6645 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6646 if test -n "$file_magic_test_file"; then
6647 case $deplibs_check_method in
6648 "file_magic "*)
693f5c2e 6649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a33e1d91 6650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6652 $EGREP "$file_magic_regex" > /dev/null; then
6653 :
6654 else
6655 cat <<EOF 1>&2
6656
6657*** Warning: the command libtool uses to detect shared libraries,
6658*** $file_magic_cmd, produces output that libtool cannot recognize.
6659*** The result is that libtool may fail to recognize shared libraries
6660*** as such. This will affect the creation of libtool libraries that
6661*** depend on shared libraries, but programs linked with such libtool
6662*** libraries will work regardless of this problem. Nevertheless, you
6663*** may want to report the problem to your system manager and/or to
6664*** bug-libtool@gnu.org
6665
6666EOF
6667 fi ;;
6668 esac
6669 fi
6670 break
6671 fi
6672 done
6673 IFS="$lt_save_ifs"
6674 MAGIC_CMD="$lt_save_MAGIC_CMD"
6675 ;;
6676esac
6677fi
6678
6679MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6680if test -n "$MAGIC_CMD"; then
6681 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6682echo "${ECHO_T}$MAGIC_CMD" >&6
6683else
6684 echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6
6686fi
6687
6688 else
6689 MAGIC_CMD=:
6690 fi
6691fi
6692
6693 fi
6694 ;;
6695esac
6696
6697enable_dlopen=no
6698enable_win32_dll=no
6699
6700# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6701if test "${enable_libtool_lock+set}" = set; then
6702 enableval="$enable_libtool_lock"
6703
6704fi;
6705test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6706
6707
6708# Check whether --with-pic or --without-pic was given.
6709if test "${with_pic+set}" = set; then
6710 withval="$with_pic"
6711 pic_mode="$withval"
6712else
6713 pic_mode=default
6714fi;
6715test -z "$pic_mode" && pic_mode=default
6716
6717# Use C for the default configuration in the libtool script
6718tagname=
6719lt_save_CC="$CC"
6720ac_ext=c
6721ac_cpp='$CPP $CPPFLAGS'
6722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726
6727# Source file extension for C test sources.
6728ac_ext=c
6729
6730# Object file extension for compiled C test sources.
6731objext=o
6732objext=$objext
6733
6734# Code to be used in simple compile tests
6735lt_simple_compile_test_code="int some_variable = 0;\n"
6736
6737# Code to be used in simple link tests
6738lt_simple_link_test_code='int main(){return(0);}\n'
6739
6740
6741# If no C compiler was specified, use CC.
6742LTCC=${LTCC-"$CC"}
6743
62567204 6744# If no C compiler flags were specified, use CFLAGS.
6745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6746
a33e1d91 6747# Allow CC to be a program name with arguments.
6748compiler=$CC
6749
6750
087278d6 6751# save warnings/boilerplate of simple test code
6752ac_outfile=conftest.$ac_objext
6753printf "$lt_simple_compile_test_code" >conftest.$ac_ext
62567204 6754eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 6755_lt_compiler_boilerplate=`cat conftest.err`
6756$rm conftest*
6757
6758ac_outfile=conftest.$ac_objext
6759printf "$lt_simple_link_test_code" >conftest.$ac_ext
62567204 6760eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 6761_lt_linker_boilerplate=`cat conftest.err`
6762$rm conftest*
6763
6764
a33e1d91 6765
6766lt_prog_compiler_no_builtin_flag=
6767
6768if test "$GCC" = yes; then
6769 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6770
6771
6772echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6773echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6774if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776else
6777 lt_cv_prog_compiler_rtti_exceptions=no
6778 ac_outfile=conftest.$ac_objext
6779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6780 lt_compiler_flag="-fno-rtti -fno-exceptions"
6781 # Insert the option either (1) after the last *FLAGS variable, or
6782 # (2) before a word containing "conftest.", or (3) at the end.
6783 # Note that $ac_compile itself does not contain backslashes and begins
6784 # with a dollar sign (not a hyphen), so the echo should work correctly.
6785 # The option is referenced via a variable to avoid confusing sed.
6786 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 6787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 6788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6789 -e 's:$: $lt_compiler_flag:'`
00b2804c 6790 (eval echo "\"\$as_me:6790: $lt_compile\"" >&5)
a33e1d91 6791 (eval "$lt_compile" 2>conftest.err)
6792 ac_status=$?
6793 cat conftest.err >&5
00b2804c 6794 echo "$as_me:6794: \$? = $ac_status" >&5
a33e1d91 6795 if (exit $ac_status) && test -s "$ac_outfile"; then
6796 # The compiler can only warn and ignore the option if not recognized
087278d6 6797 # So say no if there are warnings other than the usual output.
62567204 6798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a33e1d91 6801 lt_cv_prog_compiler_rtti_exceptions=yes
6802 fi
6803 fi
6804 $rm conftest*
6805
6806fi
6807echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6808echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6809
6810if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6811 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6812else
6813 :
6814fi
6815
6816fi
6817
6818lt_prog_compiler_wl=
6819lt_prog_compiler_pic=
6820lt_prog_compiler_static=
6821
6822echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6823echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6824
6825 if test "$GCC" = yes; then
6826 lt_prog_compiler_wl='-Wl,'
6827 lt_prog_compiler_static='-static'
6828
6829 case $host_os in
6830 aix*)
6831 # All AIX code is PIC.
6832 if test "$host_cpu" = ia64; then
6833 # AIX 5 now supports IA64 processor
6834 lt_prog_compiler_static='-Bstatic'
6835 fi
6836 ;;
6837
6838 amigaos*)
6839 # FIXME: we need at least 68020 code to build shared libraries, but
6840 # adding the `-m68020' flag to GCC prevents building anything better,
6841 # like `-m68040'.
6842 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6843 ;;
6844
6845 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6846 # PIC is the default for these OSes.
6847 ;;
6848
6849 mingw* | pw32* | os2*)
6850 # This hack is so that the source file can tell whether it is being
6851 # built for inclusion in a dll (and should export symbols for example).
6852 lt_prog_compiler_pic='-DDLL_EXPORT'
6853 ;;
6854
6855 darwin* | rhapsody*)
6856 # PIC is the default on this platform
6857 # Common symbols not allowed in MH_DYLIB files
6858 lt_prog_compiler_pic='-fno-common'
6859 ;;
6860
62567204 6861 interix3*)
6862 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6863 # Instead, we relocate shared libraries at runtime.
6864 ;;
6865
a33e1d91 6866 msdosdjgpp*)
6867 # Just because we use GCC doesn't mean we suddenly get shared libraries
6868 # on systems that don't support them.
6869 lt_prog_compiler_can_build_shared=no
6870 enable_shared=no
6871 ;;
6872
6873 sysv4*MP*)
6874 if test -d /usr/nec; then
6875 lt_prog_compiler_pic=-Kconform_pic
6876 fi
6877 ;;
6878
6879 hpux*)
6880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6881 # not for PA HP-UX.
693f5c2e 6882 case $host_cpu in
a33e1d91 6883 hppa*64*|ia64*)
6884 # +Z the default
6885 ;;
6886 *)
6887 lt_prog_compiler_pic='-fPIC'
6888 ;;
6889 esac
6890 ;;
6891
6892 *)
6893 lt_prog_compiler_pic='-fPIC'
6894 ;;
6895 esac
6896 else
6897 # PORTME Check for flag to pass linker flags through the system compiler.
6898 case $host_os in
6899 aix*)
6900 lt_prog_compiler_wl='-Wl,'
6901 if test "$host_cpu" = ia64; then
6902 # AIX 5 now supports IA64 processor
6903 lt_prog_compiler_static='-Bstatic'
6904 else
6905 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6906 fi
6907 ;;
631008fb 6908 darwin*)
6909 # PIC is the default on this platform
6910 # Common symbols not allowed in MH_DYLIB files
087278d6 6911 case $cc_basename in
631008fb 6912 xlc*)
6913 lt_prog_compiler_pic='-qnocommon'
6914 lt_prog_compiler_wl='-Wl,'
6915 ;;
6916 esac
6917 ;;
a33e1d91 6918
6919 mingw* | pw32* | os2*)
6920 # This hack is so that the source file can tell whether it is being
6921 # built for inclusion in a dll (and should export symbols for example).
6922 lt_prog_compiler_pic='-DDLL_EXPORT'
6923 ;;
6924
6925 hpux9* | hpux10* | hpux11*)
6926 lt_prog_compiler_wl='-Wl,'
6927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6928 # not for PA HP-UX.
693f5c2e 6929 case $host_cpu in
a33e1d91 6930 hppa*64*|ia64*)
6931 # +Z the default
6932 ;;
6933 *)
6934 lt_prog_compiler_pic='+Z'
6935 ;;
6936 esac
6937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6938 lt_prog_compiler_static='${wl}-a ${wl}archive'
6939 ;;
6940
6941 irix5* | irix6* | nonstopux*)
6942 lt_prog_compiler_wl='-Wl,'
6943 # PIC (with -KPIC) is the default.
6944 lt_prog_compiler_static='-non_shared'
6945 ;;
6946
6947 newsos6)
6948 lt_prog_compiler_pic='-KPIC'
6949 lt_prog_compiler_static='-Bstatic'
6950 ;;
6951
6952 linux*)
087278d6 6953 case $cc_basename in
a33e1d91 6954 icc* | ecc*)
6955 lt_prog_compiler_wl='-Wl,'
6956 lt_prog_compiler_pic='-KPIC'
6957 lt_prog_compiler_static='-static'
6958 ;;
693f5c2e 6959 pgcc* | pgf77* | pgf90* | pgf95*)
087278d6 6960 # Portland Group compilers (*not* the Pentium gcc compiler,
6961 # which looks to be a dead project)
6962 lt_prog_compiler_wl='-Wl,'
6963 lt_prog_compiler_pic='-fpic'
693f5c2e 6964 lt_prog_compiler_static='-Bstatic'
087278d6 6965 ;;
a33e1d91 6966 ccc*)
6967 lt_prog_compiler_wl='-Wl,'
6968 # All Alpha code is PIC.
6969 lt_prog_compiler_static='-non_shared'
6970 ;;
6971 esac
6972 ;;
6973
6974 osf3* | osf4* | osf5*)
6975 lt_prog_compiler_wl='-Wl,'
6976 # All OSF/1 code is PIC.
6977 lt_prog_compiler_static='-non_shared'
6978 ;;
6979
a33e1d91 6980 solaris*)
a33e1d91 6981 lt_prog_compiler_pic='-KPIC'
6982 lt_prog_compiler_static='-Bstatic'
087278d6 6983 case $cc_basename in
6984 f77* | f90* | f95*)
6985 lt_prog_compiler_wl='-Qoption ld ';;
6986 *)
6987 lt_prog_compiler_wl='-Wl,';;
6988 esac
a33e1d91 6989 ;;
6990
6991 sunos4*)
6992 lt_prog_compiler_wl='-Qoption ld '
6993 lt_prog_compiler_pic='-PIC'
6994 lt_prog_compiler_static='-Bstatic'
6995 ;;
6996
62567204 6997 sysv4 | sysv4.2uw2* | sysv4.3*)
a33e1d91 6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-KPIC'
7000 lt_prog_compiler_static='-Bstatic'
7001 ;;
7002
7003 sysv4*MP*)
7004 if test -d /usr/nec ;then
7005 lt_prog_compiler_pic='-Kconform_pic'
7006 lt_prog_compiler_static='-Bstatic'
7007 fi
7008 ;;
7009
62567204 7010 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-Bstatic'
7014 ;;
7015
087278d6 7016 unicos*)
7017 lt_prog_compiler_wl='-Wl,'
7018 lt_prog_compiler_can_build_shared=no
7019 ;;
7020
a33e1d91 7021 uts4*)
7022 lt_prog_compiler_pic='-pic'
7023 lt_prog_compiler_static='-Bstatic'
7024 ;;
7025
7026 *)
7027 lt_prog_compiler_can_build_shared=no
7028 ;;
7029 esac
7030 fi
7031
7032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7033echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7034
7035#
7036# Check to make sure the PIC flag actually works.
7037#
7038if test -n "$lt_prog_compiler_pic"; then
7039
7040echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7041echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7042if test "${lt_prog_compiler_pic_works+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 lt_prog_compiler_pic_works=no
7046 ac_outfile=conftest.$ac_objext
7047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7048 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7049 # Insert the option either (1) after the last *FLAGS variable, or
7050 # (2) before a word containing "conftest.", or (3) at the end.
7051 # Note that $ac_compile itself does not contain backslashes and begins
7052 # with a dollar sign (not a hyphen), so the echo should work correctly.
7053 # The option is referenced via a variable to avoid confusing sed.
7054 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 7055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 7056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7057 -e 's:$: $lt_compiler_flag:'`
00b2804c 7058 (eval echo "\"\$as_me:7058: $lt_compile\"" >&5)
a33e1d91 7059 (eval "$lt_compile" 2>conftest.err)
7060 ac_status=$?
7061 cat conftest.err >&5
00b2804c 7062 echo "$as_me:7062: \$? = $ac_status" >&5
a33e1d91 7063 if (exit $ac_status) && test -s "$ac_outfile"; then
7064 # The compiler can only warn and ignore the option if not recognized
087278d6 7065 # So say no if there are warnings other than the usual output.
62567204 7066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7068 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a33e1d91 7069 lt_prog_compiler_pic_works=yes
7070 fi
7071 fi
7072 $rm conftest*
7073
7074fi
7075echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7076echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7077
7078if test x"$lt_prog_compiler_pic_works" = xyes; then
7079 case $lt_prog_compiler_pic in
7080 "" | " "*) ;;
7081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7082 esac
7083else
7084 lt_prog_compiler_pic=
7085 lt_prog_compiler_can_build_shared=no
7086fi
7087
7088fi
693f5c2e 7089case $host_os in
a33e1d91 7090 # For platforms which do not support PIC, -DPIC is meaningless:
7091 *djgpp*)
7092 lt_prog_compiler_pic=
7093 ;;
7094 *)
7095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7096 ;;
7097esac
7098
62567204 7099#
7100# Check to make sure the static flag actually works.
7101#
7102wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7103echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7104echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7105if test "${lt_prog_compiler_static_works+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 lt_prog_compiler_static_works=no
7109 save_LDFLAGS="$LDFLAGS"
7110 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7111 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7113 # The linker can only warn and ignore the option if not recognized
7114 # So say no if there are warnings
7115 if test -s conftest.err; then
7116 # Append any errors to the config.log.
7117 cat conftest.err 1>&5
7118 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7120 if diff conftest.exp conftest.er2 >/dev/null; then
7121 lt_prog_compiler_static_works=yes
7122 fi
7123 else
7124 lt_prog_compiler_static_works=yes
7125 fi
7126 fi
7127 $rm conftest*
7128 LDFLAGS="$save_LDFLAGS"
7129
7130fi
7131echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7132echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7133
7134if test x"$lt_prog_compiler_static_works" = xyes; then
7135 :
7136else
7137 lt_prog_compiler_static=
7138fi
7139
7140
a33e1d91 7141echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7142echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7143if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146 lt_cv_prog_compiler_c_o=no
7147 $rm -r conftest 2>/dev/null
7148 mkdir conftest
7149 cd conftest
7150 mkdir out
7151 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7152
7153 lt_compiler_flag="-o out/conftest2.$ac_objext"
7154 # Insert the option either (1) after the last *FLAGS variable, or
7155 # (2) before a word containing "conftest.", or (3) at the end.
7156 # Note that $ac_compile itself does not contain backslashes and begins
7157 # with a dollar sign (not a hyphen), so the echo should work correctly.
7158 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 7159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 7160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161 -e 's:$: $lt_compiler_flag:'`
00b2804c 7162 (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
a33e1d91 7163 (eval "$lt_compile" 2>out/conftest.err)
7164 ac_status=$?
7165 cat out/conftest.err >&5
00b2804c 7166 echo "$as_me:7166: \$? = $ac_status" >&5
a33e1d91 7167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7168 then
7169 # The compiler can only warn and ignore the option if not recognized
7170 # So say no if there are warnings
62567204 7171 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a33e1d91 7174 lt_cv_prog_compiler_c_o=yes
7175 fi
7176 fi
693f5c2e 7177 chmod u+w . 2>&5
a33e1d91 7178 $rm conftest*
7179 # SGI C++ compiler will create directory out/ii_files/ for
7180 # template instantiation
7181 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7182 $rm out/* && rmdir out
7183 cd ..
7184 rmdir conftest
7185 $rm conftest*
7186
7187fi
7188echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7189echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7190
7191
7192hard_links="nottested"
7193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7194 # do not overwrite the value of need_locks provided by the user
7195 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7196echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7197 hard_links=yes
7198 $rm conftest*
7199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7200 touch conftest.a
7201 ln conftest.a conftest.b 2>&5 || hard_links=no
7202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7203 echo "$as_me:$LINENO: result: $hard_links" >&5
7204echo "${ECHO_T}$hard_links" >&6
7205 if test "$hard_links" = no; then
7206 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7207echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7208 need_locks=warn
7209 fi
7210else
7211 need_locks=no
7212fi
7213
7214echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7215echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7216
7217 runpath_var=
7218 allow_undefined_flag=
7219 enable_shared_with_static_runtimes=no
7220 archive_cmds=
7221 archive_expsym_cmds=
7222 old_archive_From_new_cmds=
7223 old_archive_from_expsyms_cmds=
7224 export_dynamic_flag_spec=
7225 whole_archive_flag_spec=
7226 thread_safe_flag_spec=
7227 hardcode_libdir_flag_spec=
7228 hardcode_libdir_flag_spec_ld=
7229 hardcode_libdir_separator=
7230 hardcode_direct=no
7231 hardcode_minus_L=no
7232 hardcode_shlibpath_var=unsupported
7233 link_all_deplibs=unknown
7234 hardcode_automatic=no
7235 module_cmds=
7236 module_expsym_cmds=
7237 always_export_symbols=no
7238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7239 # include_expsyms should be a list of space-separated symbols to be *always*
7240 # included in the symbol list
7241 include_expsyms=
7242 # exclude_expsyms can be an extended regexp of symbols to exclude
7243 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7244 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7245 # as well as any symbol that contains `d'.
7246 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7247 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7248 # platforms (ab)use it in PIC code, but their linkers get confused if
7249 # the symbol is explicitly referenced. Since portable code cannot
7250 # rely on this symbol name, it's probably fine to never include it in
7251 # preloaded symbol tables.
7252 extract_expsyms_cmds=
087278d6 7253 # Just being paranoid about ensuring that cc_basename is set.
7254 for cc_temp in $compiler""; do
7255 case $cc_temp in
7256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7258 \-*) ;;
7259 *) break;;
7260 esac
7261done
7262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a33e1d91 7263
7264 case $host_os in
7265 cygwin* | mingw* | pw32*)
7266 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7267 # When not using gcc, we currently assume that we are using
7268 # Microsoft Visual C++.
7269 if test "$GCC" != yes; then
7270 with_gnu_ld=no
7271 fi
7272 ;;
62567204 7273 interix*)
7274 # we just hope/assume this is gcc and not c89 (= MSVC++)
7275 with_gnu_ld=yes
7276 ;;
a33e1d91 7277 openbsd*)
7278 with_gnu_ld=no
7279 ;;
7280 esac
7281
7282 ld_shlibs=yes
7283 if test "$with_gnu_ld" = yes; then
7284 # If archive_cmds runs LD, not CC, wlarc should be empty
7285 wlarc='${wl}'
7286
087278d6 7287 # Set some defaults for GNU ld with shared library support. These
7288 # are reset later if shared libraries are not supported. Putting them
7289 # here allows them to be overridden if necessary.
7290 runpath_var=LD_RUN_PATH
7291 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7292 export_dynamic_flag_spec='${wl}--export-dynamic'
7293 # ancient GNU ld didn't support --whole-archive et. al.
7294 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7295 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7296 else
7297 whole_archive_flag_spec=
7298 fi
7299 supports_anon_versioning=no
7300 case `$LD -v 2>/dev/null` in
7301 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7302 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7303 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7304 *\ 2.11.*) ;; # other 2.11 versions
7305 *) supports_anon_versioning=yes ;;
7306 esac
7307
a33e1d91 7308 # See if GNU ld supports shared libraries.
7309 case $host_os in
7310 aix3* | aix4* | aix5*)
7311 # On AIX/PPC, the GNU linker is very broken
7312 if test "$host_cpu" != ia64; then
7313 ld_shlibs=no
7314 cat <<EOF 1>&2
7315
7316*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7317*** to be unable to reliably create shared libraries on AIX.
7318*** Therefore, libtool is disabling shared libraries support. If you
7319*** really care for shared libraries, you may want to modify your PATH
7320*** so that a non-GNU linker is found, and then restart.
7321
7322EOF
7323 fi
7324 ;;
7325
7326 amigaos*)
7327 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)'
7328 hardcode_libdir_flag_spec='-L$libdir'
7329 hardcode_minus_L=yes
7330
7331 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7332 # that the semantics of dynamic libraries on AmigaOS, at least up
7333 # to version 4, is to share data among multiple programs linked
7334 # with the same dynamic library. Since this doesn't match the
7335 # behavior of shared libraries on other platforms, we can't use
7336 # them.
7337 ld_shlibs=no
7338 ;;
7339
7340 beos*)
7341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7342 allow_undefined_flag=unsupported
7343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7344 # support --undefined. This deserves some investigation. FIXME
7345 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7346 else
7347 ld_shlibs=no
7348 fi
7349 ;;
7350
7351 cygwin* | mingw* | pw32*)
7352 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7353 # as there is no search path for DLLs.
7354 hardcode_libdir_flag_spec='-L$libdir'
7355 allow_undefined_flag=unsupported
7356 always_export_symbols=no
7357 enable_shared_with_static_runtimes=yes
087278d6 7358 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a33e1d91 7359
7360 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
62567204 7361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 7362 # If the export-symbols file already is a .def file (1st line
7363 # is EXPORTS), use it as is; otherwise, prepend...
7364 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7365 cp $export_symbols $output_objdir/$soname.def;
7366 else
7367 echo EXPORTS > $output_objdir/$soname.def;
7368 cat $export_symbols >> $output_objdir/$soname.def;
7369 fi~
62567204 7370 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 7371 else
7372 ld_shlibs=no
7373 fi
7374 ;;
7375
62567204 7376 interix3*)
7377 hardcode_direct=no
7378 hardcode_shlibpath_var=no
7379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7380 export_dynamic_flag_spec='${wl}-E'
7381 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7382 # Instead, shared libraries are loaded at an image base (0x10000000 by
7383 # default) and relocated if they conflict, which is a slow very memory
7384 # consuming and fragmenting process. To avoid this, we pick a random,
7385 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7386 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7388 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'
7389 ;;
7390
087278d6 7391 linux*)
7392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7393 tmp_addflag=
7394 case $cc_basename,$host_cpu in
7395 pgcc*) # Portland Group C compiler
693f5c2e 7396 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 7397 tmp_addflag=' $pic_flag'
7398 ;;
693f5c2e 7399 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7400 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 7401 tmp_addflag=' $pic_flag -Mnomain' ;;
7402 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7403 tmp_addflag=' -i_dynamic' ;;
7404 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7405 tmp_addflag=' -i_dynamic -nofor_main' ;;
7406 ifc* | ifort*) # Intel Fortran compiler
7407 tmp_addflag=' -nofor_main' ;;
7408 esac
7409 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410
7411 if test $supports_anon_versioning = yes; then
7412 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7413 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7414 $echo "local: *; };" >> $output_objdir/$libname.ver~
7415 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7416 fi
7417 else
7418 ld_shlibs=no
7419 fi
7420 ;;
7421
6263d81f 7422 netbsd*)
a33e1d91 7423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7425 wlarc=
7426 else
7427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7429 fi
7430 ;;
7431
62567204 7432 solaris*)
a33e1d91 7433 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7434 ld_shlibs=no
7435 cat <<EOF 1>&2
7436
7437*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7438*** create shared libraries on Solaris systems. Therefore, libtool
7439*** is disabling shared libraries support. We urge you to upgrade GNU
7440*** binutils to release 2.9.1 or newer. Another option is to modify
7441*** your PATH or compiler configuration so that the native linker is
7442*** used, and then restart.
7443
7444EOF
7445 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7448 else
7449 ld_shlibs=no
7450 fi
7451 ;;
7452
62567204 7453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7454 case `$LD -v 2>&1` in
7455 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7456 ld_shlibs=no
7457 cat <<_LT_EOF 1>&2
7458
7459*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7460*** reliably create shared libraries on SCO systems. Therefore, libtool
7461*** is disabling shared libraries support. We urge you to upgrade GNU
7462*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7463*** your PATH or compiler configuration so that the native linker is
7464*** used, and then restart.
7465
7466_LT_EOF
7467 ;;
7468 *)
7469 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7470 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7473 else
7474 ld_shlibs=no
7475 fi
7476 ;;
7477 esac
7478 ;;
7479
a33e1d91 7480 sunos4*)
7481 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7482 wlarc=
7483 hardcode_direct=yes
7484 hardcode_shlibpath_var=no
7485 ;;
7486
a33e1d91 7487 *)
7488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7491 else
7492 ld_shlibs=no
7493 fi
7494 ;;
7495 esac
7496
087278d6 7497 if test "$ld_shlibs" = no; then
7498 runpath_var=
7499 hardcode_libdir_flag_spec=
7500 export_dynamic_flag_spec=
7501 whole_archive_flag_spec=
a33e1d91 7502 fi
7503 else
7504 # PORTME fill in a description of your system's linker (not GNU ld)
7505 case $host_os in
7506 aix3*)
7507 allow_undefined_flag=unsupported
7508 always_export_symbols=yes
7509 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'
7510 # Note: this linker hardcodes the directories in LIBPATH if there
7511 # are no directories specified by -L.
7512 hardcode_minus_L=yes
62567204 7513 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a33e1d91 7514 # Neither direct hardcoding nor static linking is supported with a
7515 # broken collect2.
7516 hardcode_direct=unsupported
7517 fi
7518 ;;
7519
7520 aix4* | aix5*)
7521 if test "$host_cpu" = ia64; then
7522 # On IA64, the linker does run time linking by default, so we don't
7523 # have to do anything special.
7524 aix_use_runtimelinking=no
7525 exp_sym_flag='-Bexport'
7526 no_entry_flag=""
7527 else
7528 # If we're using GNU nm, then we don't want the "-C" option.
7529 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7530 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7531 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7532 else
7533 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'
7534 fi
7535 aix_use_runtimelinking=no
7536
7537 # Test if we are trying to use run time linking or normal
7538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7539 # need to do runtime linking.
7540 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7541 for ld_flag in $LDFLAGS; do
7542 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7543 aix_use_runtimelinking=yes
7544 break
7545 fi
7546 done
62567204 7547 ;;
a33e1d91 7548 esac
7549
7550 exp_sym_flag='-bexport'
7551 no_entry_flag='-bnoentry'
7552 fi
7553
7554 # When large executables or shared objects are built, AIX ld can
7555 # have problems creating the table of contents. If linking a library
7556 # or program results in "error TOC overflow" add -mminimal-toc to
7557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7559
7560 archive_cmds=''
7561 hardcode_direct=yes
7562 hardcode_libdir_separator=':'
7563 link_all_deplibs=yes
7564
7565 if test "$GCC" = yes; then
087278d6 7566 case $host_os in aix4.[012]|aix4.[012].*)
a33e1d91 7567 # We only want to do this on AIX 4.2 and lower, the check
7568 # below for broken collect2 doesn't work under 4.3+
7569 collect2name=`${CC} -print-prog-name=collect2`
7570 if test -f "$collect2name" && \
7571 strings "$collect2name" | grep resolve_lib_name >/dev/null
7572 then
7573 # We have reworked collect2
7574 hardcode_direct=yes
7575 else
7576 # We have old collect2
7577 hardcode_direct=unsupported
7578 # It fails to find uninstalled libraries when the uninstalled
7579 # path is not listed in the libpath. Setting hardcode_minus_L
7580 # to unsupported forces relinking
7581 hardcode_minus_L=yes
7582 hardcode_libdir_flag_spec='-L$libdir'
7583 hardcode_libdir_separator=
7584 fi
62567204 7585 ;;
a33e1d91 7586 esac
7587 shared_flag='-shared'
087278d6 7588 if test "$aix_use_runtimelinking" = yes; then
7589 shared_flag="$shared_flag "'${wl}-G'
7590 fi
a33e1d91 7591 else
7592 # not using gcc
7593 if test "$host_cpu" = ia64; then
7594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7595 # chokes on -Wl,-G. The following line is correct:
7596 shared_flag='-G'
7597 else
62567204 7598 if test "$aix_use_runtimelinking" = yes; then
a33e1d91 7599 shared_flag='${wl}-G'
7600 else
7601 shared_flag='${wl}-bM:SRE'
62567204 7602 fi
a33e1d91 7603 fi
7604 fi
7605
7606 # It seems that -bexpall does not export symbols beginning with
7607 # underscore (_), so it is better to generate a list of symbols to export.
7608 always_export_symbols=yes
7609 if test "$aix_use_runtimelinking" = yes; then
7610 # Warning - without using the other runtime loading flags (-brtl),
7611 # -berok will link without error, but may produce a broken library.
7612 allow_undefined_flag='-berok'
7613 # Determine the default libpath from the value encoded in an empty executable.
7614 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 7615/* confdefs.h. */
7616_ACEOF
7617cat confdefs.h >>conftest.$ac_ext
7618cat >>conftest.$ac_ext <<_ACEOF
7619/* end confdefs.h. */
7620
7621int
7622main ()
7623{
7624
7625 ;
7626 return 0;
7627}
7628_ACEOF
7629rm -f conftest.$ac_objext conftest$ac_exeext
7630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 7631 (eval $ac_link) 2>conftest.er1
a33e1d91 7632 ac_status=$?
af3004ff 7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
a33e1d91 7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
6263d81f 7638 { ac_try='test -z "$ac_c_werror_flag"
7639 || test ! -s conftest.err'
af3004ff 7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest$ac_exeext'
a33e1d91 7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651
7652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7653}'`
7654# Check for a 64-bit object if we didn't find anything.
7655if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7656}'`; fi
7657else
7658 echo "$as_me: failed program was:" >&5
7659sed 's/^/| /' conftest.$ac_ext >&5
7660
7661fi
af3004ff 7662rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
a33e1d91 7664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7665
7666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
62567204 7667 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a33e1d91 7668 else
7669 if test "$host_cpu" = ia64; then
7670 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7671 allow_undefined_flag="-z nodefs"
62567204 7672 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"
a33e1d91 7673 else
7674 # Determine the default libpath from the value encoded in an empty executable.
7675 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 7676/* confdefs.h. */
7677_ACEOF
7678cat confdefs.h >>conftest.$ac_ext
7679cat >>conftest.$ac_ext <<_ACEOF
7680/* end confdefs.h. */
7681
7682int
7683main ()
7684{
7685
7686 ;
7687 return 0;
7688}
7689_ACEOF
7690rm -f conftest.$ac_objext conftest$ac_exeext
7691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 7692 (eval $ac_link) 2>conftest.er1
a33e1d91 7693 ac_status=$?
af3004ff 7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
a33e1d91 7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
6263d81f 7699 { ac_try='test -z "$ac_c_werror_flag"
7700 || test ! -s conftest.err'
af3004ff 7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
a33e1d91 7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712
7713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7714}'`
7715# Check for a 64-bit object if we didn't find anything.
7716if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7717}'`; fi
7718else
7719 echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722fi
af3004ff 7723rm -f conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
a33e1d91 7725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7726
7727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7728 # Warning - without using the other run time loading flags,
7729 # -berok will link without error, but may produce a broken library.
7730 no_undefined_flag=' ${wl}-bernotok'
7731 allow_undefined_flag=' ${wl}-berok'
a33e1d91 7732 # Exported symbols can be pulled into shared objects from archives
62567204 7733 whole_archive_flag_spec='$convenience'
a33e1d91 7734 archive_cmds_need_lc=yes
693f5c2e 7735 # This is similar to how AIX traditionally builds its shared libraries.
62567204 7736 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'
a33e1d91 7737 fi
7738 fi
7739 ;;
7740
7741 amigaos*)
7742 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)'
7743 hardcode_libdir_flag_spec='-L$libdir'
7744 hardcode_minus_L=yes
7745 # see comment about different semantics on the GNU ld section
7746 ld_shlibs=no
7747 ;;
7748
631008fb 7749 bsdi[45]*)
a33e1d91 7750 export_dynamic_flag_spec=-rdynamic
7751 ;;
7752
7753 cygwin* | mingw* | pw32*)
7754 # When not using gcc, we currently assume that we are using
7755 # Microsoft Visual C++.
7756 # hardcode_libdir_flag_spec is actually meaningless, as there is
7757 # no search path for DLLs.
7758 hardcode_libdir_flag_spec=' '
7759 allow_undefined_flag=unsupported
7760 # Tell ltmain to make .lib files, not .a files.
7761 libext=lib
7762 # Tell ltmain to make .dll files, not .so files.
7763 shrext_cmds=".dll"
7764 # FIXME: Setting linknames here is a bad hack.
7765 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7766 # The linker will automatically build a .lib file if we build a DLL.
7767 old_archive_From_new_cmds='true'
7768 # FIXME: Should let the user specify the lib program.
7769 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7770 fix_srcfile_path='`cygpath -w "$srcfile"`'
7771 enable_shared_with_static_runtimes=yes
7772 ;;
7773
7774 darwin* | rhapsody*)
693f5c2e 7775 case $host_os in
631008fb 7776 rhapsody* | darwin1.[012])
7777 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7778 ;;
7779 *) # Darwin 1.3 on
7780 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7781 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7782 else
7783 case ${MACOSX_DEPLOYMENT_TARGET} in
7784 10.[012])
7785 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7786 ;;
7787 10.*)
7788 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7789 ;;
7790 esac
7791 fi
7792 ;;
a33e1d91 7793 esac
631008fb 7794 archive_cmds_need_lc=no
a33e1d91 7795 hardcode_direct=no
7796 hardcode_automatic=yes
7797 hardcode_shlibpath_var=unsupported
631008fb 7798 whole_archive_flag_spec=''
a33e1d91 7799 link_all_deplibs=yes
631008fb 7800 if test "$GCC" = yes ; then
7801 output_verbose_link_cmd='echo'
7802 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7803 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 7804 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 7805 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7806 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
a33e1d91 7807 else
087278d6 7808 case $cc_basename in
631008fb 7809 xlc*)
7810 output_verbose_link_cmd='echo'
7811 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7812 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 7813 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 7814 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7815 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7816 ;;
7817 *)
7818 ld_shlibs=no
7819 ;;
7820 esac
a33e1d91 7821 fi
7822 ;;
7823
7824 dgux*)
7825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7826 hardcode_libdir_flag_spec='-L$libdir'
7827 hardcode_shlibpath_var=no
7828 ;;
7829
7830 freebsd1*)
7831 ld_shlibs=no
7832 ;;
7833
7834 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7835 # support. Future versions do this automatically, but an explicit c++rt0.o
7836 # does not break anything, and helps significantly (at the cost of a little
7837 # extra space).
7838 freebsd2.2*)
7839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7840 hardcode_libdir_flag_spec='-R$libdir'
7841 hardcode_direct=yes
7842 hardcode_shlibpath_var=no
7843 ;;
7844
7845 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7846 freebsd2*)
7847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7848 hardcode_direct=yes
7849 hardcode_minus_L=yes
7850 hardcode_shlibpath_var=no
7851 ;;
7852
7853 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6263d81f 7854 freebsd* | kfreebsd*-gnu | dragonfly*)
25b6a907 7855 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7856 hardcode_libdir_flag_spec='-R$libdir'
7857 hardcode_direct=yes
7858 hardcode_shlibpath_var=no
25b6a907 7859 ;;
7860
a33e1d91 7861 hpux9*)
7862 if test "$GCC" = yes; then
7863 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7864 else
7865 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'
7866 fi
7867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7868 hardcode_libdir_separator=:
7869 hardcode_direct=yes
7870
7871 # hardcode_minus_L: Not really in the search PATH,
7872 # but as the default location of the library.
7873 hardcode_minus_L=yes
7874 export_dynamic_flag_spec='${wl}-E'
7875 ;;
7876
62567204 7877 hpux10*)
7878 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7879 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7880 else
7881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7882 fi
7883 if test "$with_gnu_ld" = no; then
7884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7885 hardcode_libdir_separator=:
7886
7887 hardcode_direct=yes
7888 export_dynamic_flag_spec='${wl}-E'
7889
7890 # hardcode_minus_L: Not really in the search PATH,
7891 # but as the default location of the library.
7892 hardcode_minus_L=yes
7893 fi
7894 ;;
7895
7896 hpux11*)
a33e1d91 7897 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
693f5c2e 7898 case $host_cpu in
62567204 7899 hppa*64*)
a33e1d91 7900 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7901 ;;
62567204 7902 ia64*)
7903 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7904 ;;
a33e1d91 7905 *)
7906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7907 ;;
7908 esac
7909 else
693f5c2e 7910 case $host_cpu in
62567204 7911 hppa*64*)
7912 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7913 ;;
7914 ia64*)
7915 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 7916 ;;
7917 *)
62567204 7918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 7919 ;;
7920 esac
7921 fi
7922 if test "$with_gnu_ld" = no; then
62567204 7923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7924 hardcode_libdir_separator=:
7925
693f5c2e 7926 case $host_cpu in
62567204 7927 hppa*64*|ia64*)
a33e1d91 7928 hardcode_libdir_flag_spec_ld='+b $libdir'
a33e1d91 7929 hardcode_direct=no
7930 hardcode_shlibpath_var=no
a33e1d91 7931 ;;
7932 *)
a33e1d91 7933 hardcode_direct=yes
7934 export_dynamic_flag_spec='${wl}-E'
7935
7936 # hardcode_minus_L: Not really in the search PATH,
7937 # but as the default location of the library.
7938 hardcode_minus_L=yes
7939 ;;
7940 esac
7941 fi
7942 ;;
7943
7944 irix5* | irix6* | nonstopux*)
7945 if test "$GCC" = yes; then
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7947 else
7948 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7949 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7950 fi
7951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7952 hardcode_libdir_separator=:
7953 link_all_deplibs=yes
7954 ;;
7955
6263d81f 7956 netbsd*)
a33e1d91 7957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7959 else
7960 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7961 fi
7962 hardcode_libdir_flag_spec='-R$libdir'
7963 hardcode_direct=yes
7964 hardcode_shlibpath_var=no
7965 ;;
7966
7967 newsos6)
7968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7969 hardcode_direct=yes
7970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7971 hardcode_libdir_separator=:
7972 hardcode_shlibpath_var=no
7973 ;;
7974
7975 openbsd*)
7976 hardcode_direct=yes
7977 hardcode_shlibpath_var=no
7978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
631008fb 7980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a33e1d91 7981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7982 export_dynamic_flag_spec='${wl}-E'
7983 else
7984 case $host_os in
7985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7987 hardcode_libdir_flag_spec='-R$libdir'
7988 ;;
7989 *)
7990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7992 ;;
7993 esac
7994 fi
7995 ;;
7996
7997 os2*)
7998 hardcode_libdir_flag_spec='-L$libdir'
7999 hardcode_minus_L=yes
8000 allow_undefined_flag=unsupported
8001 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'
8002 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8003 ;;
8004
8005 osf3*)
8006 if test "$GCC" = yes; then
8007 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8008 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8009 else
8010 allow_undefined_flag=' -expect_unresolved \*'
8011 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8012 fi
8013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8014 hardcode_libdir_separator=:
8015 ;;
8016
8017 osf4* | osf5*) # as osf3* with the addition of -msym flag
8018 if test "$GCC" = yes; then
8019 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8020 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8022 else
8023 allow_undefined_flag=' -expect_unresolved \*'
8024 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8025 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
087278d6 8026 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a33e1d91 8027
8028 # Both c and cxx compiler support -rpath directly
8029 hardcode_libdir_flag_spec='-rpath $libdir'
8030 fi
8031 hardcode_libdir_separator=:
8032 ;;
8033
a33e1d91 8034 solaris*)
8035 no_undefined_flag=' -z text'
8036 if test "$GCC" = yes; then
087278d6 8037 wlarc='${wl}'
a33e1d91 8038 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8039 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8041 else
087278d6 8042 wlarc=''
a33e1d91 8043 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8044 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8046 fi
8047 hardcode_libdir_flag_spec='-R$libdir'
8048 hardcode_shlibpath_var=no
8049 case $host_os in
8050 solaris2.[0-5] | solaris2.[0-5].*) ;;
087278d6 8051 *)
8052 # The compiler driver will combine linker options so we
8053 # cannot just pass the convience library names through
8054 # without $wl, iff we do not link with $LD.
8055 # Luckily, gcc supports the same syntax we need for Sun Studio.
8056 # Supported since Solaris 2.6 (maybe 2.5.1?)
8057 case $wlarc in
8058 '')
8059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8060 *)
8061 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8062 esac ;;
a33e1d91 8063 esac
8064 link_all_deplibs=yes
8065 ;;
8066
8067 sunos4*)
8068 if test "x$host_vendor" = xsequent; then
8069 # Use $CC to link under sequent, because it throws in some extra .o
8070 # files that make .init and .fini sections work.
8071 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8072 else
8073 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8074 fi
8075 hardcode_libdir_flag_spec='-L$libdir'
8076 hardcode_direct=yes
8077 hardcode_minus_L=yes
8078 hardcode_shlibpath_var=no
8079 ;;
8080
8081 sysv4)
8082 case $host_vendor in
8083 sni)
8084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8085 hardcode_direct=yes # is this really true???
8086 ;;
8087 siemens)
8088 ## LD is ld it makes a PLAMLIB
8089 ## CC just makes a GrossModule.
8090 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8091 reload_cmds='$CC -r -o $output$reload_objs'
8092 hardcode_direct=no
8093 ;;
8094 motorola)
8095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8097 ;;
8098 esac
8099 runpath_var='LD_RUN_PATH'
8100 hardcode_shlibpath_var=no
8101 ;;
8102
8103 sysv4.3*)
8104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_shlibpath_var=no
8106 export_dynamic_flag_spec='-Bexport'
8107 ;;
8108
8109 sysv4*MP*)
8110 if test -d /usr/nec; then
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_shlibpath_var=no
8113 runpath_var=LD_RUN_PATH
8114 hardcode_runpath_var=yes
8115 ld_shlibs=yes
8116 fi
8117 ;;
8118
62567204 8119 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8120 no_undefined_flag='${wl}-z,text'
8121 archive_cmds_need_lc=no
a33e1d91 8122 hardcode_shlibpath_var=no
62567204 8123 runpath_var='LD_RUN_PATH'
a33e1d91 8124
a33e1d91 8125 if test "$GCC" = yes; then
62567204 8126 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8127 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 8128 else
62567204 8129 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8130 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 8131 fi
a33e1d91 8132 ;;
8133
62567204 8134 sysv5* | sco3.2v5* | sco5v6*)
8135 # Note: We can NOT use -z defs as we might desire, because we do not
8136 # link with -lc, and that would cause any symbols used from libc to
8137 # always be unresolved, which means just about no library would
8138 # ever link correctly. If we're not using GNU ld we use -z text
8139 # though, which does catch some bad symbols but isn't as heavy-handed
8140 # as -z defs.
8141 no_undefined_flag='${wl}-z,text'
8142 allow_undefined_flag='${wl}-z,nodefs'
8143 archive_cmds_need_lc=no
a33e1d91 8144 hardcode_shlibpath_var=no
62567204 8145 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8146 hardcode_libdir_separator=':'
8147 link_all_deplibs=yes
8148 export_dynamic_flag_spec='${wl}-Bexport'
a33e1d91 8149 runpath_var='LD_RUN_PATH'
62567204 8150
8151 if test "$GCC" = yes; then
8152 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8153 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8154 else
8155 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8157 fi
a33e1d91 8158 ;;
8159
8160 uts4*)
8161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8162 hardcode_libdir_flag_spec='-L$libdir'
8163 hardcode_shlibpath_var=no
8164 ;;
8165
8166 *)
8167 ld_shlibs=no
8168 ;;
8169 esac
8170 fi
8171
8172echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8173echo "${ECHO_T}$ld_shlibs" >&6
8174test "$ld_shlibs" = no && can_build_shared=no
8175
a33e1d91 8176#
8177# Do we need to explicitly link libc?
8178#
8179case "x$archive_cmds_need_lc" in
8180x|xyes)
8181 # Assume -lc should be added
8182 archive_cmds_need_lc=yes
8183
8184 if test "$enable_shared" = yes && test "$GCC" = yes; then
8185 case $archive_cmds in
8186 *'~'*)
8187 # FIXME: we may have to deal with multi-command sequences.
8188 ;;
8189 '$CC '*)
8190 # Test whether the compiler implicitly links with -lc since on some
8191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8192 # to ld, don't add -lc before -lgcc.
8193 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8194echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8195 $rm conftest*
8196 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8197
8198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199 (eval $ac_compile) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } 2>conftest.err; then
8203 soname=conftest
8204 lib=conftest
8205 libobjs=conftest.$ac_objext
8206 deplibs=
8207 wl=$lt_prog_compiler_wl
62567204 8208 pic_flag=$lt_prog_compiler_pic
a33e1d91 8209 compiler_flags=-v
8210 linker_flags=-v
8211 verstring=
8212 output_objdir=.
8213 libname=conftest
8214 lt_save_allow_undefined_flag=$allow_undefined_flag
8215 allow_undefined_flag=
8216 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8217 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }
8221 then
8222 archive_cmds_need_lc=no
8223 else
8224 archive_cmds_need_lc=yes
8225 fi
8226 allow_undefined_flag=$lt_save_allow_undefined_flag
8227 else
8228 cat conftest.err 1>&5
8229 fi
8230 $rm conftest*
8231 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8232echo "${ECHO_T}$archive_cmds_need_lc" >&6
8233 ;;
8234 esac
8235 fi
8236 ;;
8237esac
8238
8239echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8241library_names_spec=
8242libname_spec='lib$name'
8243soname_spec=
8244shrext_cmds=".so"
8245postinstall_cmds=
8246postuninstall_cmds=
8247finish_cmds=
8248finish_eval=
8249shlibpath_var=
8250shlibpath_overrides_runpath=unknown
8251version_type=none
8252dynamic_linker="$host_os ld.so"
8253sys_lib_dlsearch_path_spec="/lib /usr/lib"
8254if test "$GCC" = yes; then
8255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8257 # if the path contains ";" then we assume it to be the separator
8258 # otherwise default to the standard path separator (i.e. ":") - it is
8259 # assumed that no part of a normal pathname contains ";" but that should
8260 # okay in the real world where ";" in dirpaths is itself problematic.
8261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8262 else
8263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8264 fi
8265else
8266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8267fi
8268need_lib_prefix=unknown
8269hardcode_into_libs=no
8270
8271# when you set need_version to no, make sure it does not cause -set_version
8272# flags to be left without arguments
8273need_version=unknown
8274
8275case $host_os in
8276aix3*)
8277 version_type=linux
8278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8279 shlibpath_var=LIBPATH
8280
8281 # AIX 3 has no versioning support, so we append a major version to the name.
8282 soname_spec='${libname}${release}${shared_ext}$major'
8283 ;;
8284
8285aix4* | aix5*)
8286 version_type=linux
8287 need_lib_prefix=no
8288 need_version=no
8289 hardcode_into_libs=yes
8290 if test "$host_cpu" = ia64; then
8291 # AIX 5 supports IA64
8292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8293 shlibpath_var=LD_LIBRARY_PATH
8294 else
8295 # With GCC up to 2.95.x, collect2 would create an import file
8296 # for dependence libraries. The import file would start with
8297 # the line `#! .'. This would cause the generated library to
8298 # depend on `.', always an invalid library. This was fixed in
8299 # development snapshots of GCC prior to 3.0.
8300 case $host_os in
8301 aix4 | aix4.[01] | aix4.[01].*)
8302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8303 echo ' yes '
8304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8305 :
8306 else
8307 can_build_shared=no
8308 fi
8309 ;;
8310 esac
8311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8312 # soname into executable. Probably we can add versioning support to
8313 # collect2, so additional links can be useful in future.
8314 if test "$aix_use_runtimelinking" = yes; then
8315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8316 # instead of lib<name>.a to let people know that these are not
8317 # typical AIX shared libraries.
8318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8319 else
8320 # We preserve .a as extension for shared libraries through AIX4.2
8321 # and later when we are not doing run time linking.
8322 library_names_spec='${libname}${release}.a $libname.a'
8323 soname_spec='${libname}${release}${shared_ext}$major'
8324 fi
8325 shlibpath_var=LIBPATH
8326 fi
8327 ;;
8328
8329amigaos*)
8330 library_names_spec='$libname.ixlibrary $libname.a'
8331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8332 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8333 ;;
8334
8335beos*)
8336 library_names_spec='${libname}${shared_ext}'
8337 dynamic_linker="$host_os ld.so"
8338 shlibpath_var=LIBRARY_PATH
8339 ;;
8340
631008fb 8341bsdi[45]*)
a33e1d91 8342 version_type=linux
8343 need_version=no
8344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8345 soname_spec='${libname}${release}${shared_ext}$major'
8346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8347 shlibpath_var=LD_LIBRARY_PATH
8348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8350 # the default ld.so.conf also contains /usr/contrib/lib and
8351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8352 # libtool to hard-code these into programs
8353 ;;
8354
8355cygwin* | mingw* | pw32*)
8356 version_type=windows
8357 shrext_cmds=".dll"
8358 need_version=no
8359 need_lib_prefix=no
8360
8361 case $GCC,$host_os in
8362 yes,cygwin* | yes,mingw* | yes,pw32*)
8363 library_names_spec='$libname.dll.a'
8364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8365 postinstall_cmds='base_file=`basename \${file}`~
8366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8367 dldir=$destdir/`dirname \$dlpath`~
8368 test -d \$dldir || mkdir -p \$dldir~
693f5c2e 8369 $install_prog $dir/$dlname \$dldir/$dlname~
8370 chmod a+x \$dldir/$dlname'
a33e1d91 8371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8372 dlpath=$dir/\$dldll~
8373 $rm \$dlpath'
8374 shlibpath_overrides_runpath=yes
8375
8376 case $host_os in
8377 cygwin*)
8378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8381 ;;
8382 mingw*)
8383 # MinGW DLLs use traditional 'lib' prefix
8384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8387 # It is most probably a Windows format PATH printed by
8388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8389 # path with ; separators, and with drive letters. We can handle the
8390 # drive letters (cygwin fileutils understands them), so leave them,
8391 # especially as we might pass files found there to a mingw objdump,
8392 # which wouldn't understand a cygwinified path. Ahh.
8393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8394 else
8395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8396 fi
8397 ;;
8398 pw32*)
8399 # pw32 DLLs use 'pw' prefix rather than 'lib'
087278d6 8400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a33e1d91 8401 ;;
8402 esac
8403 ;;
8404
8405 *)
8406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8407 ;;
8408 esac
8409 dynamic_linker='Win32 ld.exe'
8410 # FIXME: first we should search . and the directory the executable is in
8411 shlibpath_var=PATH
8412 ;;
8413
8414darwin* | rhapsody*)
8415 dynamic_linker="$host_os dyld"
8416 version_type=darwin
8417 need_lib_prefix=no
8418 need_version=no
8419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8420 soname_spec='${libname}${release}${major}$shared_ext'
8421 shlibpath_overrides_runpath=yes
8422 shlibpath_var=DYLD_LIBRARY_PATH
693f5c2e 8423 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a33e1d91 8424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8425 if test "$GCC" = yes; then
8426 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8427 else
8428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8429 fi
8430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8431 ;;
8432
8433dgux*)
8434 version_type=linux
8435 need_lib_prefix=no
8436 need_version=no
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8438 soname_spec='${libname}${release}${shared_ext}$major'
8439 shlibpath_var=LD_LIBRARY_PATH
8440 ;;
8441
8442freebsd1*)
8443 dynamic_linker=no
8444 ;;
8445
8446kfreebsd*-gnu)
8447 version_type=linux
8448 need_lib_prefix=no
8449 need_version=no
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 shlibpath_overrides_runpath=no
8454 hardcode_into_libs=yes
8455 dynamic_linker='GNU ld.so'
8456 ;;
8457
087278d6 8458freebsd* | dragonfly*)
8459 # DragonFly does not have aout. When/if they implement a new
8460 # versioning mechanism, adjust this.
693f5c2e 8461 if test -x /usr/bin/objformat; then
8462 objformat=`/usr/bin/objformat`
8463 else
8464 case $host_os in
8465 freebsd[123]*) objformat=aout ;;
8466 *) objformat=elf ;;
8467 esac
8468 fi
a33e1d91 8469 version_type=freebsd-$objformat
8470 case $version_type in
8471 freebsd-elf*)
8472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8473 need_version=no
8474 need_lib_prefix=no
8475 ;;
8476 freebsd-*)
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8478 need_version=yes
8479 ;;
8480 esac
8481 shlibpath_var=LD_LIBRARY_PATH
8482 case $host_os in
8483 freebsd2*)
8484 shlibpath_overrides_runpath=yes
8485 ;;
087278d6 8486 freebsd3.[01]* | freebsdelf3.[01]*)
a33e1d91 8487 shlibpath_overrides_runpath=yes
8488 hardcode_into_libs=yes
8489 ;;
62567204 8490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a33e1d91 8492 shlibpath_overrides_runpath=no
8493 hardcode_into_libs=yes
8494 ;;
62567204 8495 freebsd*) # from 4.6 on
8496 shlibpath_overrides_runpath=yes
8497 hardcode_into_libs=yes
8498 ;;
a33e1d91 8499 esac
8500 ;;
8501
8502gnu*)
8503 version_type=linux
8504 need_lib_prefix=no
8505 need_version=no
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8507 soname_spec='${libname}${release}${shared_ext}$major'
8508 shlibpath_var=LD_LIBRARY_PATH
8509 hardcode_into_libs=yes
8510 ;;
8511
8512hpux9* | hpux10* | hpux11*)
8513 # Give a soname corresponding to the major version so that dld.sl refuses to
8514 # link against other versions.
8515 version_type=sunos
8516 need_lib_prefix=no
8517 need_version=no
693f5c2e 8518 case $host_cpu in
a33e1d91 8519 ia64*)
8520 shrext_cmds='.so'
8521 hardcode_into_libs=yes
8522 dynamic_linker="$host_os dld.so"
8523 shlibpath_var=LD_LIBRARY_PATH
8524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8526 soname_spec='${libname}${release}${shared_ext}$major'
8527 if test "X$HPUX_IA64_MODE" = X32; then
8528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8529 else
8530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8531 fi
8532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8533 ;;
8534 hppa*64*)
8535 shrext_cmds='.sl'
8536 hardcode_into_libs=yes
8537 dynamic_linker="$host_os dld.sl"
8538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8544 ;;
8545 *)
8546 shrext_cmds='.sl'
8547 dynamic_linker="$host_os dld.sl"
8548 shlibpath_var=SHLIB_PATH
8549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8551 soname_spec='${libname}${release}${shared_ext}$major'
8552 ;;
8553 esac
8554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8555 postinstall_cmds='chmod 555 $lib'
8556 ;;
8557
62567204 8558interix3*)
8559 version_type=linux
8560 need_lib_prefix=no
8561 need_version=no
8562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8563 soname_spec='${libname}${release}${shared_ext}$major'
8564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8565 shlibpath_var=LD_LIBRARY_PATH
8566 shlibpath_overrides_runpath=no
8567 hardcode_into_libs=yes
8568 ;;
8569
a33e1d91 8570irix5* | irix6* | nonstopux*)
8571 case $host_os in
8572 nonstopux*) version_type=nonstopux ;;
8573 *)
8574 if test "$lt_cv_prog_gnu_ld" = yes; then
8575 version_type=linux
8576 else
8577 version_type=irix
8578 fi ;;
8579 esac
8580 need_lib_prefix=no
8581 need_version=no
8582 soname_spec='${libname}${release}${shared_ext}$major'
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8584 case $host_os in
8585 irix5* | nonstopux*)
8586 libsuff= shlibsuff=
8587 ;;
8588 *)
8589 case $LD in # libtool.m4 will add one of these switches to LD
8590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8591 libsuff= shlibsuff= libmagic=32-bit;;
8592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8593 libsuff=32 shlibsuff=N32 libmagic=N32;;
8594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8596 *) libsuff= shlibsuff= libmagic=never-match;;
8597 esac
8598 ;;
8599 esac
8600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8601 shlibpath_overrides_runpath=no
8602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8604 hardcode_into_libs=yes
8605 ;;
8606
8607# No shared lib support for Linux oldld, aout, or coff.
8608linux*oldld* | linux*aout* | linux*coff*)
8609 dynamic_linker=no
8610 ;;
8611
8612# This must be Linux ELF.
8613linux*)
8614 version_type=linux
8615 need_lib_prefix=no
8616 need_version=no
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 shlibpath_overrides_runpath=no
8622 # This implies no fast_install, which is unacceptable.
8623 # Some rework will be needed to allow for fast_install
8624 # before this can be enabled.
8625 hardcode_into_libs=yes
8626
8627 # Append ld.so.conf contents to the search path
8628 if test -f /etc/ld.so.conf; then
087278d6 8629 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
a33e1d91 8630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8631 fi
8632
8633 # We used to test for /lib/ld.so.1 and disable shared libraries on
8634 # powerpc, because MkLinux only supported shared libraries with the
8635 # GNU dynamic linker. Since this was broken with cross compilers,
8636 # most powerpc-linux boxes support dynamic linking these days and
8637 # people can always --disable-shared, the test was removed, and we
8638 # assume the GNU/Linux dynamic linker is in use.
8639 dynamic_linker='GNU/Linux ld.so'
8640 ;;
8641
8642knetbsd*-gnu)
8643 version_type=linux
8644 need_lib_prefix=no
8645 need_version=no
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 shlibpath_overrides_runpath=no
8650 hardcode_into_libs=yes
8651 dynamic_linker='GNU ld.so'
8652 ;;
8653
8654netbsd*)
8655 version_type=sunos
8656 need_lib_prefix=no
8657 need_version=no
8658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8661 dynamic_linker='NetBSD (a.out) ld.so'
8662 else
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8665 dynamic_linker='NetBSD ld.elf_so'
8666 fi
8667 shlibpath_var=LD_LIBRARY_PATH
8668 shlibpath_overrides_runpath=yes
8669 hardcode_into_libs=yes
8670 ;;
8671
8672newsos6)
8673 version_type=linux
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 shlibpath_var=LD_LIBRARY_PATH
8676 shlibpath_overrides_runpath=yes
8677 ;;
8678
8679nto-qnx*)
8680 version_type=linux
8681 need_lib_prefix=no
8682 need_version=no
8683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684 soname_spec='${libname}${release}${shared_ext}$major'
8685 shlibpath_var=LD_LIBRARY_PATH
8686 shlibpath_overrides_runpath=yes
8687 ;;
8688
8689openbsd*)
8690 version_type=sunos
62567204 8691 sys_lib_dlsearch_path_spec="/usr/lib"
a33e1d91 8692 need_lib_prefix=no
087278d6 8693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8694 case $host_os in
8695 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8696 *) need_version=no ;;
8697 esac
a33e1d91 8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8702 case $host_os in
8703 openbsd2.[89] | openbsd2.[89].*)
8704 shlibpath_overrides_runpath=no
8705 ;;
8706 *)
8707 shlibpath_overrides_runpath=yes
8708 ;;
8709 esac
8710 else
8711 shlibpath_overrides_runpath=yes
8712 fi
8713 ;;
8714
8715os2*)
8716 libname_spec='$name'
8717 shrext_cmds=".dll"
8718 need_lib_prefix=no
8719 library_names_spec='$libname${shared_ext} $libname.a'
8720 dynamic_linker='OS/2 ld.exe'
8721 shlibpath_var=LIBPATH
8722 ;;
8723
8724osf3* | osf4* | osf5*)
8725 version_type=osf
8726 need_lib_prefix=no
8727 need_version=no
8728 soname_spec='${libname}${release}${shared_ext}$major'
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 shlibpath_var=LD_LIBRARY_PATH
8731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8733 ;;
8734
a33e1d91 8735solaris*)
8736 version_type=linux
8737 need_lib_prefix=no
8738 need_version=no
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 soname_spec='${libname}${release}${shared_ext}$major'
8741 shlibpath_var=LD_LIBRARY_PATH
8742 shlibpath_overrides_runpath=yes
8743 hardcode_into_libs=yes
8744 # ldd complains unless libraries are executable
8745 postinstall_cmds='chmod +x $lib'
8746 ;;
8747
8748sunos4*)
8749 version_type=sunos
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8752 shlibpath_var=LD_LIBRARY_PATH
8753 shlibpath_overrides_runpath=yes
8754 if test "$with_gnu_ld" = yes; then
8755 need_lib_prefix=no
8756 fi
8757 need_version=yes
8758 ;;
8759
62567204 8760sysv4 | sysv4.3*)
a33e1d91 8761 version_type=linux
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 shlibpath_var=LD_LIBRARY_PATH
8765 case $host_vendor in
8766 sni)
8767 shlibpath_overrides_runpath=no
8768 need_lib_prefix=no
8769 export_dynamic_flag_spec='${wl}-Blargedynsym'
8770 runpath_var=LD_RUN_PATH
8771 ;;
8772 siemens)
8773 need_lib_prefix=no
8774 ;;
8775 motorola)
8776 need_lib_prefix=no
8777 need_version=no
8778 shlibpath_overrides_runpath=no
8779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8780 ;;
8781 esac
8782 ;;
8783
8784sysv4*MP*)
8785 if test -d /usr/nec ;then
8786 version_type=linux
8787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8788 soname_spec='$libname${shared_ext}.$major'
8789 shlibpath_var=LD_LIBRARY_PATH
8790 fi
8791 ;;
8792
62567204 8793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8794 version_type=freebsd-elf
8795 need_lib_prefix=no
8796 need_version=no
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 hardcode_into_libs=yes
8801 if test "$with_gnu_ld" = yes; then
8802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8803 shlibpath_overrides_runpath=no
8804 else
8805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8806 shlibpath_overrides_runpath=yes
8807 case $host_os in
8808 sco3.2v5*)
8809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8810 ;;
8811 esac
8812 fi
8813 sys_lib_dlsearch_path_spec='/usr/lib'
8814 ;;
8815
8816uts4*)
8817 version_type=linux
a33e1d91 8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 shlibpath_var=LD_LIBRARY_PATH
8821 ;;
8822
8823*)
8824 dynamic_linker=no
8825 ;;
8826esac
8827echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8828echo "${ECHO_T}$dynamic_linker" >&6
8829test "$dynamic_linker" = no && can_build_shared=no
8830
62567204 8831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8832if test "$GCC" = yes; then
8833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8834fi
8835
a33e1d91 8836echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8837echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8838hardcode_action=
8839if test -n "$hardcode_libdir_flag_spec" || \
631008fb 8840 test -n "$runpath_var" || \
8841 test "X$hardcode_automatic" = "Xyes" ; then
a33e1d91 8842
8843 # We can hardcode non-existant directories.
8844 if test "$hardcode_direct" != no &&
8845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8846 # have to relink, otherwise we might link with an installed library
8847 # when we should be linking with a yet-to-be-installed one
8848 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8849 test "$hardcode_minus_L" != no; then
8850 # Linking always hardcodes the temporary library directory.
8851 hardcode_action=relink
8852 else
8853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8854 hardcode_action=immediate
8855 fi
8856else
8857 # We cannot hardcode anything, or else we can only hardcode existing
8858 # directories.
8859 hardcode_action=unsupported
8860fi
8861echo "$as_me:$LINENO: result: $hardcode_action" >&5
8862echo "${ECHO_T}$hardcode_action" >&6
8863
8864if test "$hardcode_action" = relink; then
8865 # Fast installation is not supported
8866 enable_fast_install=no
8867elif test "$shlibpath_overrides_runpath" = yes ||
8868 test "$enable_shared" = no; then
8869 # Fast installation is not necessary
8870 enable_fast_install=needless
8871fi
8872
8873striplib=
8874old_striplib=
8875echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8876echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8877if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8878 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8879 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8880 echo "$as_me:$LINENO: result: yes" >&5
8881echo "${ECHO_T}yes" >&6
8882else
8883# FIXME - insert some real tests, host_os isn't really good enough
8884 case $host_os in
8885 darwin*)
8886 if test -n "$STRIP" ; then
8887 striplib="$STRIP -x"
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893fi
8894 ;;
8895 *)
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 ;;
8899 esac
8900fi
8901
8902if test "x$enable_dlopen" != xyes; then
8903 enable_dlopen=unknown
8904 enable_dlopen_self=unknown
8905 enable_dlopen_self_static=unknown
8906else
8907 lt_cv_dlopen=no
8908 lt_cv_dlopen_libs=
8909
8910 case $host_os in
8911 beos*)
8912 lt_cv_dlopen="load_add_on"
8913 lt_cv_dlopen_libs=
8914 lt_cv_dlopen_self=yes
8915 ;;
8916
8917 mingw* | pw32*)
8918 lt_cv_dlopen="LoadLibrary"
8919 lt_cv_dlopen_libs=
8920 ;;
8921
8922 cygwin*)
8923 lt_cv_dlopen="dlopen"
8924 lt_cv_dlopen_libs=
8925 ;;
8926
8927 darwin*)
8928 # if libdl is installed we need to link against it
8929 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8930echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8931if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8933else
8934 ac_check_lib_save_LIBS=$LIBS
8935LIBS="-ldl $LIBS"
8936cat >conftest.$ac_ext <<_ACEOF
a33e1d91 8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
8942
8943/* Override any gcc2 internal prototype to avoid an error. */
8944#ifdef __cplusplus
8945extern "C"
8946#endif
8947/* We use char because int might match the return type of a gcc2
8948 builtin and then its argument prototype would still apply. */
8949char dlopen ();
8950int
8951main ()
8952{
8953dlopen ();
8954 ;
8955 return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 8960 (eval $ac_link) 2>conftest.er1
a33e1d91 8961 ac_status=$?
af3004ff 8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
a33e1d91 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
6263d81f 8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
af3004ff 8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest$ac_exeext'
a33e1d91 8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_cv_lib_dl_dlopen=yes
8981else
8982 echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985ac_cv_lib_dl_dlopen=no
8986fi
af3004ff 8987rm -f conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext conftest.$ac_ext
a33e1d91 8989LIBS=$ac_check_lib_save_LIBS
8990fi
8991echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8992echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8993if test $ac_cv_lib_dl_dlopen = yes; then
8994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8995else
8996
8997 lt_cv_dlopen="dyld"
8998 lt_cv_dlopen_libs=
8999 lt_cv_dlopen_self=yes
9000
9001fi
9002
9003 ;;
9004
9005 *)
9006 echo "$as_me:$LINENO: checking for shl_load" >&5
9007echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9008if test "${ac_cv_func_shl_load+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010else
9011 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 9012/* confdefs.h. */
9013_ACEOF
9014cat confdefs.h >>conftest.$ac_ext
9015cat >>conftest.$ac_ext <<_ACEOF
9016/* end confdefs.h. */
af3004ff 9017/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9019#define shl_load innocuous_shl_load
9020
a33e1d91 9021/* System header to define __stub macros and hopefully few prototypes,
9022 which can conflict with char shl_load (); below.
9023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9024 <limits.h> exists even on freestanding compilers. */
af3004ff 9025
a33e1d91 9026#ifdef __STDC__
9027# include <limits.h>
9028#else
9029# include <assert.h>
9030#endif
af3004ff 9031
9032#undef shl_load
9033
a33e1d91 9034/* Override any gcc2 internal prototype to avoid an error. */
9035#ifdef __cplusplus
9036extern "C"
9037{
9038#endif
9039/* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041char shl_load ();
9042/* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045#if defined (__stub_shl_load) || defined (__stub___shl_load)
9046choke me
9047#else
9048char (*f) () = shl_load;
9049#endif
9050#ifdef __cplusplus
9051}
9052#endif
9053
9054int
9055main ()
9056{
9057return f != shl_load;
9058 ;
9059 return 0;
9060}
9061_ACEOF
9062rm -f conftest.$ac_objext conftest$ac_exeext
9063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 9064 (eval $ac_link) 2>conftest.er1
a33e1d91 9065 ac_status=$?
af3004ff 9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
a33e1d91 9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
6263d81f 9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
af3004ff 9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest$ac_exeext'
a33e1d91 9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_func_shl_load=yes
9085else
9086 echo "$as_me: failed program was:" >&5
9087sed 's/^/| /' conftest.$ac_ext >&5
9088
9089ac_cv_func_shl_load=no
9090fi
af3004ff 9091rm -f conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
a33e1d91 9093fi
9094echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9095echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9096if test $ac_cv_func_shl_load = yes; then
9097 lt_cv_dlopen="shl_load"
9098else
9099 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9100echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9101if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104 ac_check_lib_save_LIBS=$LIBS
9105LIBS="-ldld $LIBS"
9106cat >conftest.$ac_ext <<_ACEOF
a33e1d91 9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112
9113/* Override any gcc2 internal prototype to avoid an error. */
9114#ifdef __cplusplus
9115extern "C"
9116#endif
9117/* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9119char shl_load ();
9120int
9121main ()
9122{
9123shl_load ();
9124 ;
9125 return 0;
9126}
9127_ACEOF
9128rm -f conftest.$ac_objext conftest$ac_exeext
9129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 9130 (eval $ac_link) 2>conftest.er1
a33e1d91 9131 ac_status=$?
af3004ff 9132 grep -v '^ *+' conftest.er1 >conftest.err
9133 rm -f conftest.er1
9134 cat conftest.err >&5
a33e1d91 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
6263d81f 9137 { ac_try='test -z "$ac_c_werror_flag"
9138 || test ! -s conftest.err'
af3004ff 9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 (eval $ac_try) 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; } &&
9144 { ac_try='test -s conftest$ac_exeext'
a33e1d91 9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_lib_dld_shl_load=yes
9151else
9152 echo "$as_me: failed program was:" >&5
9153sed 's/^/| /' conftest.$ac_ext >&5
9154
9155ac_cv_lib_dld_shl_load=no
9156fi
af3004ff 9157rm -f conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
a33e1d91 9159LIBS=$ac_check_lib_save_LIBS
9160fi
9161echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9162echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9163if test $ac_cv_lib_dld_shl_load = yes; then
9164 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9165else
9166 echo "$as_me:$LINENO: checking for dlopen" >&5
9167echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9168if test "${ac_cv_func_dlopen+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170else
9171 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 9172/* confdefs.h. */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h. */
af3004ff 9177/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9179#define dlopen innocuous_dlopen
9180
a33e1d91 9181/* System header to define __stub macros and hopefully few prototypes,
9182 which can conflict with char dlopen (); below.
9183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9184 <limits.h> exists even on freestanding compilers. */
af3004ff 9185
a33e1d91 9186#ifdef __STDC__
9187# include <limits.h>
9188#else
9189# include <assert.h>
9190#endif
af3004ff 9191
9192#undef dlopen
9193
a33e1d91 9194/* Override any gcc2 internal prototype to avoid an error. */
9195#ifdef __cplusplus
9196extern "C"
9197{
9198#endif
9199/* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9201char dlopen ();
9202/* The GNU C library defines this for functions which it implements
9203 to always fail with ENOSYS. Some functions are actually named
9204 something starting with __ and the normal name is an alias. */
9205#if defined (__stub_dlopen) || defined (__stub___dlopen)
9206choke me
9207#else
9208char (*f) () = dlopen;
9209#endif
9210#ifdef __cplusplus
9211}
9212#endif
9213
9214int
9215main ()
9216{
9217return f != dlopen;
9218 ;
9219 return 0;
9220}
9221_ACEOF
9222rm -f conftest.$ac_objext conftest$ac_exeext
9223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 9224 (eval $ac_link) 2>conftest.er1
a33e1d91 9225 ac_status=$?
af3004ff 9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
a33e1d91 9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
6263d81f 9231 { ac_try='test -z "$ac_c_werror_flag"
9232 || test ! -s conftest.err'
af3004ff 9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
a33e1d91 9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_func_dlopen=yes
9245else
9246 echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
9249ac_cv_func_dlopen=no
9250fi
af3004ff 9251rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
a33e1d91 9253fi
9254echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9255echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9256if test $ac_cv_func_dlopen = yes; then
9257 lt_cv_dlopen="dlopen"
9258else
9259 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9260echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9261if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264 ac_check_lib_save_LIBS=$LIBS
9265LIBS="-ldl $LIBS"
9266cat >conftest.$ac_ext <<_ACEOF
a33e1d91 9267/* confdefs.h. */
9268_ACEOF
9269cat confdefs.h >>conftest.$ac_ext
9270cat >>conftest.$ac_ext <<_ACEOF
9271/* end confdefs.h. */
9272
9273/* Override any gcc2 internal prototype to avoid an error. */
9274#ifdef __cplusplus
9275extern "C"
9276#endif
9277/* We use char because int might match the return type of a gcc2
9278 builtin and then its argument prototype would still apply. */
9279char dlopen ();
9280int
9281main ()
9282{
9283dlopen ();
9284 ;
9285 return 0;
9286}
9287_ACEOF
9288rm -f conftest.$ac_objext conftest$ac_exeext
9289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 9290 (eval $ac_link) 2>conftest.er1
a33e1d91 9291 ac_status=$?
af3004ff 9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
a33e1d91 9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
6263d81f 9297 { ac_try='test -z "$ac_c_werror_flag"
9298 || test ! -s conftest.err'
af3004ff 9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest$ac_exeext'
a33e1d91 9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_lib_dl_dlopen=yes
9311else
9312 echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315ac_cv_lib_dl_dlopen=no
9316fi
af3004ff 9317rm -f conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
a33e1d91 9319LIBS=$ac_check_lib_save_LIBS
9320fi
9321echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9322echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9323if test $ac_cv_lib_dl_dlopen = yes; then
9324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9325else
9326 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9327echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9328if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9330else
9331 ac_check_lib_save_LIBS=$LIBS
9332LIBS="-lsvld $LIBS"
9333cat >conftest.$ac_ext <<_ACEOF
a33e1d91 9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h. */
9339
9340/* Override any gcc2 internal prototype to avoid an error. */
9341#ifdef __cplusplus
9342extern "C"
9343#endif
9344/* We use char because int might match the return type of a gcc2
9345 builtin and then its argument prototype would still apply. */
9346char dlopen ();
9347int
9348main ()
9349{
9350dlopen ();
9351 ;
9352 return 0;
9353}
9354_ACEOF
9355rm -f conftest.$ac_objext conftest$ac_exeext
9356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 9357 (eval $ac_link) 2>conftest.er1
a33e1d91 9358 ac_status=$?
af3004ff 9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
a33e1d91 9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
6263d81f 9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
af3004ff 9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest$ac_exeext'
a33e1d91 9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_cv_lib_svld_dlopen=yes
9378else
9379 echo "$as_me: failed program was:" >&5
9380sed 's/^/| /' conftest.$ac_ext >&5
9381
9382ac_cv_lib_svld_dlopen=no
9383fi
af3004ff 9384rm -f conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
a33e1d91 9386LIBS=$ac_check_lib_save_LIBS
9387fi
9388echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9389echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9390if test $ac_cv_lib_svld_dlopen = yes; then
9391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9392else
9393 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9394echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9395if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397else
9398 ac_check_lib_save_LIBS=$LIBS
9399LIBS="-ldld $LIBS"
9400cat >conftest.$ac_ext <<_ACEOF
a33e1d91 9401/* confdefs.h. */
9402_ACEOF
9403cat confdefs.h >>conftest.$ac_ext
9404cat >>conftest.$ac_ext <<_ACEOF
9405/* end confdefs.h. */
9406
9407/* Override any gcc2 internal prototype to avoid an error. */
9408#ifdef __cplusplus
9409extern "C"
9410#endif
9411/* We use char because int might match the return type of a gcc2
9412 builtin and then its argument prototype would still apply. */
9413char dld_link ();
9414int
9415main ()
9416{
9417dld_link ();
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 9424 (eval $ac_link) 2>conftest.er1
a33e1d91 9425 ac_status=$?
af3004ff 9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
a33e1d91 9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
6263d81f 9431 { ac_try='test -z "$ac_c_werror_flag"
9432 || test ! -s conftest.err'
af3004ff 9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; } &&
9438 { ac_try='test -s conftest$ac_exeext'
a33e1d91 9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_cv_lib_dld_dld_link=yes
9445else
9446 echo "$as_me: failed program was:" >&5
9447sed 's/^/| /' conftest.$ac_ext >&5
9448
9449ac_cv_lib_dld_dld_link=no
9450fi
af3004ff 9451rm -f conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
a33e1d91 9453LIBS=$ac_check_lib_save_LIBS
9454fi
9455echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9456echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9457if test $ac_cv_lib_dld_dld_link = yes; then
9458 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9459fi
9460
9461
9462fi
9463
9464
9465fi
9466
9467
9468fi
9469
9470
9471fi
9472
9473
9474fi
9475
9476 ;;
9477 esac
9478
9479 if test "x$lt_cv_dlopen" != xno; then
9480 enable_dlopen=yes
9481 else
9482 enable_dlopen=no
9483 fi
9484
9485 case $lt_cv_dlopen in
9486 dlopen)
9487 save_CPPFLAGS="$CPPFLAGS"
9488 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9489
9490 save_LDFLAGS="$LDFLAGS"
62567204 9491 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
a33e1d91 9492
9493 save_LIBS="$LIBS"
9494 LIBS="$lt_cv_dlopen_libs $LIBS"
9495
9496 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9497echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9498if test "${lt_cv_dlopen_self+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501 if test "$cross_compiling" = yes; then :
9502 lt_cv_dlopen_self=cross
9503else
9504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9505 lt_status=$lt_dlunknown
9506 cat > conftest.$ac_ext <<EOF
00b2804c 9507#line 9507 "configure"
a33e1d91 9508#include "confdefs.h"
9509
9510#if HAVE_DLFCN_H
9511#include <dlfcn.h>
9512#endif
9513
9514#include <stdio.h>
9515
9516#ifdef RTLD_GLOBAL
9517# define LT_DLGLOBAL RTLD_GLOBAL
9518#else
9519# ifdef DL_GLOBAL
9520# define LT_DLGLOBAL DL_GLOBAL
9521# else
9522# define LT_DLGLOBAL 0
9523# endif
9524#endif
9525
9526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9527 find out it does not work in some platform. */
9528#ifndef LT_DLLAZY_OR_NOW
9529# ifdef RTLD_LAZY
9530# define LT_DLLAZY_OR_NOW RTLD_LAZY
9531# else
9532# ifdef DL_LAZY
9533# define LT_DLLAZY_OR_NOW DL_LAZY
9534# else
9535# ifdef RTLD_NOW
9536# define LT_DLLAZY_OR_NOW RTLD_NOW
9537# else
9538# ifdef DL_NOW
9539# define LT_DLLAZY_OR_NOW DL_NOW
9540# else
9541# define LT_DLLAZY_OR_NOW 0
9542# endif
9543# endif
9544# endif
9545# endif
9546#endif
9547
9548#ifdef __cplusplus
9549extern "C" void exit (int);
9550#endif
9551
9552void fnord() { int i=42;}
9553int main ()
9554{
9555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9556 int status = $lt_dlunknown;
9557
9558 if (self)
9559 {
9560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9561 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9562 /* dlclose (self); */
9563 }
62567204 9564 else
9565 puts (dlerror ());
a33e1d91 9566
9567 exit (status);
9568}
9569EOF
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
693f5c2e 9575 (./conftest; exit; ) >&5 2>/dev/null
a33e1d91 9576 lt_status=$?
9577 case x$lt_status in
9578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
62567204 9580 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a33e1d91 9581 esac
9582 else :
9583 # compilation failed
9584 lt_cv_dlopen_self=no
9585 fi
9586fi
9587rm -fr conftest*
9588
9589
9590fi
9591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9592echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9593
9594 if test "x$lt_cv_dlopen_self" = xyes; then
62567204 9595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
a33e1d91 9596 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9597echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9598if test "${lt_cv_dlopen_self_static+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600else
9601 if test "$cross_compiling" = yes; then :
9602 lt_cv_dlopen_self_static=cross
9603else
9604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9605 lt_status=$lt_dlunknown
9606 cat > conftest.$ac_ext <<EOF
00b2804c 9607#line 9607 "configure"
a33e1d91 9608#include "confdefs.h"
9609
9610#if HAVE_DLFCN_H
9611#include <dlfcn.h>
9612#endif
9613
9614#include <stdio.h>
9615
9616#ifdef RTLD_GLOBAL
9617# define LT_DLGLOBAL RTLD_GLOBAL
9618#else
9619# ifdef DL_GLOBAL
9620# define LT_DLGLOBAL DL_GLOBAL
9621# else
9622# define LT_DLGLOBAL 0
9623# endif
9624#endif
9625
9626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9627 find out it does not work in some platform. */
9628#ifndef LT_DLLAZY_OR_NOW
9629# ifdef RTLD_LAZY
9630# define LT_DLLAZY_OR_NOW RTLD_LAZY
9631# else
9632# ifdef DL_LAZY
9633# define LT_DLLAZY_OR_NOW DL_LAZY
9634# else
9635# ifdef RTLD_NOW
9636# define LT_DLLAZY_OR_NOW RTLD_NOW
9637# else
9638# ifdef DL_NOW
9639# define LT_DLLAZY_OR_NOW DL_NOW
9640# else
9641# define LT_DLLAZY_OR_NOW 0
9642# endif
9643# endif
9644# endif
9645# endif
9646#endif
9647
9648#ifdef __cplusplus
9649extern "C" void exit (int);
9650#endif
9651
9652void fnord() { int i=42;}
9653int main ()
9654{
9655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9656 int status = $lt_dlunknown;
9657
9658 if (self)
9659 {
9660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9661 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9662 /* dlclose (self); */
9663 }
62567204 9664 else
9665 puts (dlerror ());
a33e1d91 9666
9667 exit (status);
9668}
9669EOF
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
693f5c2e 9675 (./conftest; exit; ) >&5 2>/dev/null
a33e1d91 9676 lt_status=$?
9677 case x$lt_status in
9678 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9679 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
62567204 9680 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
a33e1d91 9681 esac
9682 else :
9683 # compilation failed
9684 lt_cv_dlopen_self_static=no
9685 fi
9686fi
9687rm -fr conftest*
9688
9689
9690fi
9691echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9692echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9693 fi
9694
9695 CPPFLAGS="$save_CPPFLAGS"
9696 LDFLAGS="$save_LDFLAGS"
9697 LIBS="$save_LIBS"
9698 ;;
9699 esac
9700
9701 case $lt_cv_dlopen_self in
9702 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9703 *) enable_dlopen_self=unknown ;;
9704 esac
9705
9706 case $lt_cv_dlopen_self_static in
9707 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9708 *) enable_dlopen_self_static=unknown ;;
9709 esac
9710fi
9711
9712
62567204 9713# Report which library types will actually be built
a33e1d91 9714echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9715echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9716echo "$as_me:$LINENO: result: $can_build_shared" >&5
9717echo "${ECHO_T}$can_build_shared" >&6
9718
9719echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9720echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9721test "$can_build_shared" = "no" && enable_shared=no
9722
9723# On AIX, shared libraries and static libraries use the same namespace, and
9724# are all built from PIC.
693f5c2e 9725case $host_os in
a33e1d91 9726aix3*)
9727 test "$enable_shared" = yes && enable_static=no
9728 if test -n "$RANLIB"; then
9729 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9730 postinstall_cmds='$RANLIB $lib'
9731 fi
9732 ;;
9733
9734aix4* | aix5*)
9735 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9736 test "$enable_shared" = yes && enable_static=no
9737 fi
9738 ;;
9739esac
9740echo "$as_me:$LINENO: result: $enable_shared" >&5
9741echo "${ECHO_T}$enable_shared" >&6
9742
9743echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9744echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9745# Make sure either enable_shared or enable_static is yes.
9746test "$enable_shared" = yes || enable_static=yes
9747echo "$as_me:$LINENO: result: $enable_static" >&5
9748echo "${ECHO_T}$enable_static" >&6
9749
9750# The else clause should only fire when bootstrapping the
9751# libtool distribution, otherwise you forgot to ship ltmain.sh
9752# with your package, and you will get complaints that there are
9753# no rules to generate ltmain.sh.
9754if test -f "$ltmain"; then
9755 # See if we are running on zsh, and set the options which allow our commands through
9756 # without removal of \ escapes.
9757 if test -n "${ZSH_VERSION+set}" ; then
9758 setopt NO_GLOB_SUBST
9759 fi
9760 # Now quote all the things that may contain metacharacters while being
9761 # careful not to overquote the AC_SUBSTed values. We take copies of the
9762 # variables and quote the copies for generation of the libtool script.
62567204 9763 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a33e1d91 9764 SED SHELL STRIP \
9765 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9766 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9767 deplibs_check_method reload_flag reload_cmds need_locks \
9768 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9769 lt_cv_sys_global_symbol_to_c_name_address \
9770 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9771 old_postinstall_cmds old_postuninstall_cmds \
9772 compiler \
9773 CC \
9774 LD \
9775 lt_prog_compiler_wl \
9776 lt_prog_compiler_pic \
9777 lt_prog_compiler_static \
9778 lt_prog_compiler_no_builtin_flag \
9779 export_dynamic_flag_spec \
9780 thread_safe_flag_spec \
9781 whole_archive_flag_spec \
9782 enable_shared_with_static_runtimes \
9783 old_archive_cmds \
9784 old_archive_from_new_cmds \
9785 predep_objects \
9786 postdep_objects \
9787 predeps \
9788 postdeps \
9789 compiler_lib_search_path \
9790 archive_cmds \
9791 archive_expsym_cmds \
9792 postinstall_cmds \
9793 postuninstall_cmds \
9794 old_archive_from_expsyms_cmds \
9795 allow_undefined_flag \
9796 no_undefined_flag \
9797 export_symbols_cmds \
9798 hardcode_libdir_flag_spec \
9799 hardcode_libdir_flag_spec_ld \
9800 hardcode_libdir_separator \
9801 hardcode_automatic \
9802 module_cmds \
9803 module_expsym_cmds \
9804 lt_cv_prog_compiler_c_o \
9805 exclude_expsyms \
9806 include_expsyms; do
9807
9808 case $var in
9809 old_archive_cmds | \
9810 old_archive_from_new_cmds | \
9811 archive_cmds | \
9812 archive_expsym_cmds | \
9813 module_cmds | \
9814 module_expsym_cmds | \
9815 old_archive_from_expsyms_cmds | \
9816 export_symbols_cmds | \
9817 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9818 postinstall_cmds | postuninstall_cmds | \
9819 old_postinstall_cmds | old_postuninstall_cmds | \
9820 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9821 # Double-quote double-evaled strings.
9822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9823 ;;
9824 *)
9825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9826 ;;
9827 esac
9828 done
9829
9830 case $lt_echo in
9831 *'\$0 --fallback-echo"')
9832 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9833 ;;
9834 esac
9835
9836cfgfile="${ofile}T"
9837 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9838 $rm -f "$cfgfile"
9839 { echo "$as_me:$LINENO: creating $ofile" >&5
9840echo "$as_me: creating $ofile" >&6;}
9841
9842 cat <<__EOF__ >> "$cfgfile"
9843#! $SHELL
9844
9845# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9846# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9847# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9848#
9849# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9850# Free Software Foundation, Inc.
9851#
9852# This file is part of GNU Libtool:
9853# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9854#
9855# This program is free software; you can redistribute it and/or modify
9856# it under the terms of the GNU General Public License as published by
9857# the Free Software Foundation; either version 2 of the License, or
9858# (at your option) any later version.
9859#
9860# This program is distributed in the hope that it will be useful, but
9861# WITHOUT ANY WARRANTY; without even the implied warranty of
9862# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9863# General Public License for more details.
9864#
9865# You should have received a copy of the GNU General Public License
9866# along with this program; if not, write to the Free Software
087278d6 9867# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
a33e1d91 9868#
9869# As a special exception to the GNU General Public License, if you
9870# distribute this file as part of a program that contains a
9871# configuration script generated by Autoconf, you may include it under
9872# the same distribution terms that you use for the rest of that program.
9873
9874# A sed program that does not truncate output.
9875SED=$lt_SED
9876
9877# Sed that helps us avoid accidentally triggering echo(1) options like -n.
087278d6 9878Xsed="$SED -e 1s/^X//"
a33e1d91 9879
9880# The HP-UX ksh and POSIX shell print the target directory to stdout
9881# if CDPATH is set.
631008fb 9882(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a33e1d91 9883
9884# The names of the tagged configurations supported by this script.
9885available_tags=
9886
9887# ### BEGIN LIBTOOL CONFIG
9888
9889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9890
9891# Shell to use when invoking shell scripts.
9892SHELL=$lt_SHELL
9893
9894# Whether or not to build shared libraries.
9895build_libtool_libs=$enable_shared
9896
9897# Whether or not to build static libraries.
9898build_old_libs=$enable_static
9899
9900# Whether or not to add -lc for building shared libraries.
9901build_libtool_need_lc=$archive_cmds_need_lc
9902
9903# Whether or not to disallow shared libs when runtime libs are static
9904allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9905
9906# Whether or not to optimize for fast installation.
9907fast_install=$enable_fast_install
9908
9909# The host system.
9910host_alias=$host_alias
9911host=$host
087278d6 9912host_os=$host_os
9913
9914# The build system.
9915build_alias=$build_alias
9916build=$build
9917build_os=$build_os
a33e1d91 9918
9919# An echo program that does not interpret backslashes.
9920echo=$lt_echo
9921
9922# The archiver.
9923AR=$lt_AR
9924AR_FLAGS=$lt_AR_FLAGS
9925
9926# A C compiler.
9927LTCC=$lt_LTCC
9928
62567204 9929# LTCC compiler flags.
9930LTCFLAGS=$lt_LTCFLAGS
9931
a33e1d91 9932# A language-specific compiler.
9933CC=$lt_compiler
9934
9935# Is the compiler the GNU C compiler?
9936with_gcc=$GCC
9937
9938# An ERE matcher.
9939EGREP=$lt_EGREP
9940
9941# The linker used to build libraries.
9942LD=$lt_LD
9943
9944# Whether we need hard or soft links.
9945LN_S=$lt_LN_S
9946
9947# A BSD-compatible nm program.
9948NM=$lt_NM
9949
9950# A symbol stripping program
9951STRIP=$lt_STRIP
9952
9953# Used to examine libraries when file_magic_cmd begins "file"
9954MAGIC_CMD=$MAGIC_CMD
9955
9956# Used on cygwin: DLL creation program.
9957DLLTOOL="$DLLTOOL"
9958
9959# Used on cygwin: object dumper.
9960OBJDUMP="$OBJDUMP"
9961
9962# Used on cygwin: assembler.
9963AS="$AS"
9964
9965# The name of the directory that contains temporary libtool files.
9966objdir=$objdir
9967
9968# How to create reloadable object files.
9969reload_flag=$lt_reload_flag
9970reload_cmds=$lt_reload_cmds
9971
9972# How to pass a linker flag through the compiler.
9973wl=$lt_lt_prog_compiler_wl
9974
9975# Object file suffix (normally "o").
9976objext="$ac_objext"
9977
9978# Old archive suffix (normally "a").
9979libext="$libext"
9980
9981# Shared library suffix (normally ".so").
9982shrext_cmds='$shrext_cmds'
9983
9984# Executable file suffix (normally "").
9985exeext="$exeext"
9986
9987# Additional compiler flags for building library objects.
9988pic_flag=$lt_lt_prog_compiler_pic
9989pic_mode=$pic_mode
9990
9991# What is the maximum length of a command?
9992max_cmd_len=$lt_cv_sys_max_cmd_len
9993
9994# Does compiler simultaneously support -c and -o options?
9995compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9996
087278d6 9997# Must we lock files when doing compilation?
a33e1d91 9998need_locks=$lt_need_locks
9999
10000# Do we need the lib prefix for modules?
10001need_lib_prefix=$need_lib_prefix
10002
10003# Do we need a version for libraries?
10004need_version=$need_version
10005
10006# Whether dlopen is supported.
10007dlopen_support=$enable_dlopen
10008
10009# Whether dlopen of programs is supported.
10010dlopen_self=$enable_dlopen_self
10011
10012# Whether dlopen of statically linked programs is supported.
10013dlopen_self_static=$enable_dlopen_self_static
10014
10015# Compiler flag to prevent dynamic linking.
10016link_static_flag=$lt_lt_prog_compiler_static
10017
10018# Compiler flag to turn off builtin functions.
10019no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10020
10021# Compiler flag to allow reflexive dlopens.
10022export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10023
10024# Compiler flag to generate shared objects directly from archives.
10025whole_archive_flag_spec=$lt_whole_archive_flag_spec
10026
10027# Compiler flag to generate thread-safe objects.
10028thread_safe_flag_spec=$lt_thread_safe_flag_spec
10029
10030# Library versioning type.
10031version_type=$version_type
10032
10033# Format of library name prefix.
10034libname_spec=$lt_libname_spec
10035
10036# List of archive names. First name is the real one, the rest are links.
10037# The last name is the one that the linker finds with -lNAME.
10038library_names_spec=$lt_library_names_spec
10039
10040# The coded name of the library, if different from the real name.
10041soname_spec=$lt_soname_spec
10042
10043# Commands used to build and install an old-style archive.
10044RANLIB=$lt_RANLIB
10045old_archive_cmds=$lt_old_archive_cmds
10046old_postinstall_cmds=$lt_old_postinstall_cmds
10047old_postuninstall_cmds=$lt_old_postuninstall_cmds
10048
10049# Create an old-style archive from a shared archive.
10050old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10051
10052# Create a temporary old-style archive to link instead of a shared archive.
10053old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10054
10055# Commands used to build and install a shared archive.
10056archive_cmds=$lt_archive_cmds
10057archive_expsym_cmds=$lt_archive_expsym_cmds
10058postinstall_cmds=$lt_postinstall_cmds
10059postuninstall_cmds=$lt_postuninstall_cmds
10060
10061# Commands used to build a loadable module (assumed same as above if empty)
10062module_cmds=$lt_module_cmds
10063module_expsym_cmds=$lt_module_expsym_cmds
10064
10065# Commands to strip libraries.
10066old_striplib=$lt_old_striplib
10067striplib=$lt_striplib
10068
10069# Dependencies to place before the objects being linked to create a
10070# shared library.
10071predep_objects=$lt_predep_objects
10072
10073# Dependencies to place after the objects being linked to create a
10074# shared library.
10075postdep_objects=$lt_postdep_objects
10076
10077# Dependencies to place before the objects being linked to create a
10078# shared library.
10079predeps=$lt_predeps
10080
10081# Dependencies to place after the objects being linked to create a
10082# shared library.
10083postdeps=$lt_postdeps
10084
10085# The library search path used internally by the compiler when linking
10086# a shared library.
10087compiler_lib_search_path=$lt_compiler_lib_search_path
10088
10089# Method to check whether dependent libraries are shared objects.
10090deplibs_check_method=$lt_deplibs_check_method
10091
10092# Command to use when deplibs_check_method == file_magic.
10093file_magic_cmd=$lt_file_magic_cmd
10094
10095# Flag that allows shared libraries with undefined symbols to be built.
10096allow_undefined_flag=$lt_allow_undefined_flag
10097
10098# Flag that forces no undefined symbols.
10099no_undefined_flag=$lt_no_undefined_flag
10100
10101# Commands used to finish a libtool library installation in a directory.
10102finish_cmds=$lt_finish_cmds
10103
10104# Same as above, but a single script fragment to be evaled but not shown.
10105finish_eval=$lt_finish_eval
10106
10107# Take the output of nm and produce a listing of raw symbols and C names.
10108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10109
10110# Transform the output of nm in a proper C declaration
10111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10112
10113# Transform the output of nm in a C name address pair
10114global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10115
10116# This is the shared library runtime path variable.
10117runpath_var=$runpath_var
10118
10119# This is the shared library path variable.
10120shlibpath_var=$shlibpath_var
10121
10122# Is shlibpath searched before the hard-coded library search path?
10123shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10124
10125# How to hardcode a shared library path into an executable.
10126hardcode_action=$hardcode_action
10127
10128# Whether we should hardcode library paths into libraries.
10129hardcode_into_libs=$hardcode_into_libs
10130
10131# Flag to hardcode \$libdir into a binary during linking.
10132# This must work even if \$libdir does not exist.
10133hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10134
10135# If ld is used when linking, flag to hardcode \$libdir into
10136# a binary during linking. This must work even if \$libdir does
10137# not exist.
10138hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10139
10140# Whether we need a single -rpath flag with a separated argument.
10141hardcode_libdir_separator=$lt_hardcode_libdir_separator
10142
10143# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10144# resulting binary.
10145hardcode_direct=$hardcode_direct
10146
10147# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10148# resulting binary.
10149hardcode_minus_L=$hardcode_minus_L
10150
10151# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10152# the resulting binary.
10153hardcode_shlibpath_var=$hardcode_shlibpath_var
10154
10155# Set to yes if building a shared library automatically hardcodes DIR into the library
10156# and all subsequent libraries and executables linked against it.
10157hardcode_automatic=$hardcode_automatic
10158
10159# Variables whose values should be saved in libtool wrapper scripts and
10160# restored at relink time.
10161variables_saved_for_relink="$variables_saved_for_relink"
10162
10163# Whether libtool must link a program against all its dependency libraries.
10164link_all_deplibs=$link_all_deplibs
10165
10166# Compile-time system search path for libraries
10167sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10168
10169# Run-time system search path for libraries
10170sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10171
10172# Fix the shell variable \$srcfile for the compiler.
10173fix_srcfile_path="$fix_srcfile_path"
10174
10175# Set to yes if exported symbols are required.
10176always_export_symbols=$always_export_symbols
10177
10178# The commands to list exported symbols.
10179export_symbols_cmds=$lt_export_symbols_cmds
10180
10181# The commands to extract the exported symbol list from a shared archive.
10182extract_expsyms_cmds=$lt_extract_expsyms_cmds
10183
10184# Symbols that should not be listed in the preloaded symbols.
10185exclude_expsyms=$lt_exclude_expsyms
10186
10187# Symbols that must always be exported.
10188include_expsyms=$lt_include_expsyms
10189
10190# ### END LIBTOOL CONFIG
10191
10192__EOF__
10193
10194
10195 case $host_os in
10196 aix3*)
10197 cat <<\EOF >> "$cfgfile"
10198
10199# AIX sometimes has problems with the GCC collect2 program. For some
10200# reason, if we set the COLLECT_NAMES environment variable, the problems
10201# vanish in a puff of smoke.
10202if test "X${COLLECT_NAMES+set}" != Xset; then
10203 COLLECT_NAMES=
10204 export COLLECT_NAMES
10205fi
10206EOF
10207 ;;
10208 esac
10209
10210 # We use sed instead of cat because bash on DJGPP gets confused if
10211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10212 # text mode, it properly converts lines to CR/LF. This bash problem
10213 # is reportedly fixed, but why not run on old versions too?
10214 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10215
10216 mv -f "$cfgfile" "$ofile" || \
10217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10218 chmod +x "$ofile"
10219
10220else
10221 # If there is no Makefile yet, we rely on a make rule to execute
10222 # `config.status --recheck' to rerun these tests and create the
10223 # libtool script then.
10224 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10225 if test -f "$ltmain_in"; then
10226 test -f Makefile && make "$ltmain"
10227 fi
10228fi
10229
10230
10231ac_ext=c
10232ac_cpp='$CPP $CPPFLAGS'
10233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10235ac_compiler_gnu=$ac_cv_c_compiler_gnu
10236
10237CC="$lt_save_CC"
10238
10239
10240# Check whether --with-tags or --without-tags was given.
10241if test "${with_tags+set}" = set; then
10242 withval="$with_tags"
10243 tagnames="$withval"
10244fi;
10245
10246if test -f "$ltmain" && test -n "$tagnames"; then
10247 if test ! -f "${ofile}"; then
10248 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10249echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10250 fi
10251
10252 if test -z "$LTCC"; then
10253 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10254 if test -z "$LTCC"; then
10255 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10256echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10257 else
10258 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10259echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10260 fi
10261 fi
62567204 10262 if test -z "$LTCFLAGS"; then
10263 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10264 fi
a33e1d91 10265
10266 # Extract list of available tagged configurations in $ofile.
10267 # Note that this assumes the entire list is on one line.
10268 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10269
10270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10271 for tagname in $tagnames; do
10272 IFS="$lt_save_ifs"
10273 # Check whether tagname contains only valid characters
10274 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10275 "") ;;
10276 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10277echo "$as_me: error: invalid tag name: $tagname" >&2;}
10278 { (exit 1); exit 1; }; }
10279 ;;
10280 esac
10281
10282 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10283 then
10284 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10285echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10286 { (exit 1); exit 1; }; }
10287 fi
10288
10289 # Update the list of available tags.
10290 if test -n "$tagname"; then
10291 echo appending configuration tag \"$tagname\" to $ofile
10292
10293 case $tagname in
10294 CXX)
631008fb 10295 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10296 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10297 (test "X$CXX" != "Xg++"))) ; then
a33e1d91 10298 ac_ext=cc
10299ac_cpp='$CXXCPP $CPPFLAGS'
10300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10303
10304
10305
10306
10307archive_cmds_need_lc_CXX=no
10308allow_undefined_flag_CXX=
10309always_export_symbols_CXX=no
10310archive_expsym_cmds_CXX=
10311export_dynamic_flag_spec_CXX=
10312hardcode_direct_CXX=no
10313hardcode_libdir_flag_spec_CXX=
10314hardcode_libdir_flag_spec_ld_CXX=
10315hardcode_libdir_separator_CXX=
10316hardcode_minus_L_CXX=no
62567204 10317hardcode_shlibpath_var_CXX=unsupported
a33e1d91 10318hardcode_automatic_CXX=no
10319module_cmds_CXX=
10320module_expsym_cmds_CXX=
10321link_all_deplibs_CXX=unknown
10322old_archive_cmds_CXX=$old_archive_cmds
10323no_undefined_flag_CXX=
10324whole_archive_flag_spec_CXX=
10325enable_shared_with_static_runtimes_CXX=no
10326
10327# Dependencies to place before and after the object being linked:
10328predep_objects_CXX=
10329postdep_objects_CXX=
10330predeps_CXX=
10331postdeps_CXX=
10332compiler_lib_search_path_CXX=
10333
10334# Source file extension for C++ test sources.
693f5c2e 10335ac_ext=cpp
a33e1d91 10336
10337# Object file extension for compiled C++ test sources.
10338objext=o
10339objext_CXX=$objext
10340
10341# Code to be used in simple compile tests
10342lt_simple_compile_test_code="int some_variable = 0;\n"
10343
10344# Code to be used in simple link tests
62567204 10345lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a33e1d91 10346
10347# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10348
10349# If no C compiler was specified, use CC.
10350LTCC=${LTCC-"$CC"}
10351
62567204 10352# If no C compiler flags were specified, use CFLAGS.
10353LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10354
a33e1d91 10355# Allow CC to be a program name with arguments.
10356compiler=$CC
10357
10358
087278d6 10359# save warnings/boilerplate of simple test code
10360ac_outfile=conftest.$ac_objext
10361printf "$lt_simple_compile_test_code" >conftest.$ac_ext
62567204 10362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 10363_lt_compiler_boilerplate=`cat conftest.err`
10364$rm conftest*
10365
10366ac_outfile=conftest.$ac_objext
10367printf "$lt_simple_link_test_code" >conftest.$ac_ext
62567204 10368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 10369_lt_linker_boilerplate=`cat conftest.err`
10370$rm conftest*
10371
10372
a33e1d91 10373# Allow CC to be a program name with arguments.
10374lt_save_CC=$CC
10375lt_save_LD=$LD
10376lt_save_GCC=$GCC
10377GCC=$GXX
10378lt_save_with_gnu_ld=$with_gnu_ld
10379lt_save_path_LD=$lt_cv_path_LD
10380if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10381 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10382else
62567204 10383 $as_unset lt_cv_prog_gnu_ld
a33e1d91 10384fi
10385if test -n "${lt_cv_path_LDCXX+set}"; then
10386 lt_cv_path_LD=$lt_cv_path_LDCXX
10387else
62567204 10388 $as_unset lt_cv_path_LD
a33e1d91 10389fi
10390test -z "${LDCXX+set}" || LD=$LDCXX
10391CC=${CXX-"c++"}
10392compiler=$CC
10393compiler_CXX=$CC
087278d6 10394for cc_temp in $compiler""; do
10395 case $cc_temp in
10396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10398 \-*) ;;
10399 *) break;;
10400 esac
10401done
10402cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10403
a33e1d91 10404
10405# We don't want -fno-exception wen compiling C++ code, so set the
10406# no_builtin_flag separately
10407if test "$GXX" = yes; then
10408 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10409else
10410 lt_prog_compiler_no_builtin_flag_CXX=
10411fi
10412
10413if test "$GXX" = yes; then
10414 # Set up default GNU C++ configuration
10415
10416
10417# Check whether --with-gnu-ld or --without-gnu-ld was given.
10418if test "${with_gnu_ld+set}" = set; then
10419 withval="$with_gnu_ld"
10420 test "$withval" = no || with_gnu_ld=yes
10421else
10422 with_gnu_ld=no
10423fi;
10424ac_prog=ld
10425if test "$GCC" = yes; then
10426 # Check if gcc -print-prog-name=ld gives a path.
10427 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10428echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10429 case $host in
10430 *-*-mingw*)
10431 # gcc leaves a trailing carriage return which upsets mingw
10432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10433 *)
10434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10435 esac
10436 case $ac_prog in
10437 # Accept absolute paths.
10438 [\\/]* | ?:[\\/]*)
10439 re_direlt='/[^/][^/]*/\.\./'
10440 # Canonicalize the pathname of ld
10441 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10443 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10444 done
10445 test -z "$LD" && LD="$ac_prog"
10446 ;;
10447 "")
10448 # If it fails, then pretend we aren't using GCC.
10449 ac_prog=ld
10450 ;;
10451 *)
10452 # If it is relative, then search for the first ld in PATH.
10453 with_gnu_ld=unknown
10454 ;;
10455 esac
10456elif test "$with_gnu_ld" = yes; then
10457 echo "$as_me:$LINENO: checking for GNU ld" >&5
10458echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10459else
10460 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10461echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10462fi
10463if test "${lt_cv_path_LD+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465else
10466 if test -z "$LD"; then
10467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10468 for ac_dir in $PATH; do
10469 IFS="$lt_save_ifs"
10470 test -z "$ac_dir" && ac_dir=.
10471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10472 lt_cv_path_LD="$ac_dir/$ac_prog"
10473 # Check to see if the program is GNU ld. I'd rather use --version,
693f5c2e 10474 # but apparently some variants of GNU ld only accept -v.
a33e1d91 10475 # Break only if it was the GNU/non-GNU ld that we prefer.
10476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10477 *GNU* | *'with BFD'*)
10478 test "$with_gnu_ld" != no && break
10479 ;;
10480 *)
10481 test "$with_gnu_ld" != yes && break
10482 ;;
10483 esac
10484 fi
10485 done
10486 IFS="$lt_save_ifs"
10487else
10488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10489fi
10490fi
10491
10492LD="$lt_cv_path_LD"
10493if test -n "$LD"; then
10494 echo "$as_me:$LINENO: result: $LD" >&5
10495echo "${ECHO_T}$LD" >&6
10496else
10497 echo "$as_me:$LINENO: result: no" >&5
10498echo "${ECHO_T}no" >&6
10499fi
10500test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10501echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10502 { (exit 1); exit 1; }; }
10503echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10504echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10505if test "${lt_cv_prog_gnu_ld+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
693f5c2e 10508 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a33e1d91 10509case `$LD -v 2>&1 </dev/null` in
10510*GNU* | *'with BFD'*)
10511 lt_cv_prog_gnu_ld=yes
10512 ;;
10513*)
10514 lt_cv_prog_gnu_ld=no
10515 ;;
10516esac
10517fi
10518echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10519echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10520with_gnu_ld=$lt_cv_prog_gnu_ld
10521
10522
10523
10524 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10525 # archiving commands below assume that GNU ld is being used.
10526 if test "$with_gnu_ld" = yes; then
10527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10529
10530 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10532
10533 # If archive_cmds runs LD, not CC, wlarc should be empty
10534 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10535 # investigate it a little bit more. (MM)
10536 wlarc='${wl}'
10537
10538 # ancient GNU ld didn't support --whole-archive et. al.
10539 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10540 grep 'no-whole-archive' > /dev/null; then
10541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10542 else
10543 whole_archive_flag_spec_CXX=
10544 fi
10545 else
10546 with_gnu_ld=no
10547 wlarc=
10548
10549 # A generic and very simple default shared library creation
10550 # command for GNU C++ for the case where it uses the native
10551 # linker, instead of GNU ld. If possible, this setting should
10552 # overridden to take advantage of the native linker features on
10553 # the platform it is being used on.
10554 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10555 fi
10556
10557 # Commands to make compiler produce verbose output that lists
10558 # what "hidden" libraries, object files and flags are used when
10559 # linking a shared library.
10560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10561
10562else
10563 GXX=no
10564 with_gnu_ld=no
10565 wlarc=
10566fi
10567
10568# PORTME: fill in a description of your system's C++ link characteristics
10569echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10570echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10571ld_shlibs_CXX=yes
10572case $host_os in
10573 aix3*)
10574 # FIXME: insert proper C++ library support
10575 ld_shlibs_CXX=no
10576 ;;
10577 aix4* | aix5*)
10578 if test "$host_cpu" = ia64; then
10579 # On IA64, the linker does run time linking by default, so we don't
10580 # have to do anything special.
10581 aix_use_runtimelinking=no
10582 exp_sym_flag='-Bexport'
10583 no_entry_flag=""
10584 else
10585 aix_use_runtimelinking=no
10586
10587 # Test if we are trying to use run time linking or normal
10588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10589 # need to do runtime linking.
10590 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10591 for ld_flag in $LDFLAGS; do
10592 case $ld_flag in
10593 *-brtl*)
10594 aix_use_runtimelinking=yes
10595 break
10596 ;;
10597 esac
10598 done
62567204 10599 ;;
a33e1d91 10600 esac
10601
10602 exp_sym_flag='-bexport'
10603 no_entry_flag='-bnoentry'
10604 fi
10605
10606 # When large executables or shared objects are built, AIX ld can
10607 # have problems creating the table of contents. If linking a library
10608 # or program results in "error TOC overflow" add -mminimal-toc to
10609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10611
10612 archive_cmds_CXX=''
10613 hardcode_direct_CXX=yes
10614 hardcode_libdir_separator_CXX=':'
10615 link_all_deplibs_CXX=yes
10616
10617 if test "$GXX" = yes; then
087278d6 10618 case $host_os in aix4.[012]|aix4.[012].*)
a33e1d91 10619 # We only want to do this on AIX 4.2 and lower, the check
10620 # below for broken collect2 doesn't work under 4.3+
10621 collect2name=`${CC} -print-prog-name=collect2`
10622 if test -f "$collect2name" && \
10623 strings "$collect2name" | grep resolve_lib_name >/dev/null
10624 then
10625 # We have reworked collect2
10626 hardcode_direct_CXX=yes
10627 else
10628 # We have old collect2
10629 hardcode_direct_CXX=unsupported
10630 # It fails to find uninstalled libraries when the uninstalled
10631 # path is not listed in the libpath. Setting hardcode_minus_L
10632 # to unsupported forces relinking
10633 hardcode_minus_L_CXX=yes
10634 hardcode_libdir_flag_spec_CXX='-L$libdir'
10635 hardcode_libdir_separator_CXX=
10636 fi
62567204 10637 ;;
a33e1d91 10638 esac
10639 shared_flag='-shared'
087278d6 10640 if test "$aix_use_runtimelinking" = yes; then
10641 shared_flag="$shared_flag "'${wl}-G'
10642 fi
a33e1d91 10643 else
10644 # not using gcc
10645 if test "$host_cpu" = ia64; then
10646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10647 # chokes on -Wl,-G. The following line is correct:
10648 shared_flag='-G'
10649 else
10650 if test "$aix_use_runtimelinking" = yes; then
10651 shared_flag='${wl}-G'
10652 else
10653 shared_flag='${wl}-bM:SRE'
10654 fi
10655 fi
10656 fi
10657
10658 # It seems that -bexpall does not export symbols beginning with
10659 # underscore (_), so it is better to generate a list of symbols to export.
10660 always_export_symbols_CXX=yes
10661 if test "$aix_use_runtimelinking" = yes; then
10662 # Warning - without using the other runtime loading flags (-brtl),
10663 # -berok will link without error, but may produce a broken library.
10664 allow_undefined_flag_CXX='-berok'
10665 # Determine the default libpath from the value encoded in an empty executable.
10666 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
10672
10673int
10674main ()
10675{
10676
10677 ;
10678 return 0;
10679}
10680_ACEOF
10681rm -f conftest.$ac_objext conftest$ac_exeext
10682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 10683 (eval $ac_link) 2>conftest.er1
a33e1d91 10684 ac_status=$?
af3004ff 10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
a33e1d91 10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
6263d81f 10690 { ac_try='test -z "$ac_cxx_werror_flag"
10691 || test ! -s conftest.err'
af3004ff 10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest$ac_exeext'
a33e1d91 10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703
10704aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10705}'`
10706# Check for a 64-bit object if we didn't find anything.
10707if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10708}'`; fi
10709else
10710 echo "$as_me: failed program was:" >&5
10711sed 's/^/| /' conftest.$ac_ext >&5
10712
10713fi
af3004ff 10714rm -f conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
a33e1d91 10716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10717
10718 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10719
62567204 10720 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a33e1d91 10721 else
10722 if test "$host_cpu" = ia64; then
10723 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10724 allow_undefined_flag_CXX="-z nodefs"
62567204 10725 archive_expsym_cmds_CXX="\$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"
a33e1d91 10726 else
10727 # Determine the default libpath from the value encoded in an empty executable.
10728 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735int
10736main ()
10737{
10738
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743rm -f conftest.$ac_objext conftest$ac_exeext
10744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 10745 (eval $ac_link) 2>conftest.er1
a33e1d91 10746 ac_status=$?
af3004ff 10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
a33e1d91 10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
6263d81f 10752 { ac_try='test -z "$ac_cxx_werror_flag"
10753 || test ! -s conftest.err'
af3004ff 10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
a33e1d91 10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765
10766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10767}'`
10768# Check for a 64-bit object if we didn't find anything.
10769if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10770}'`; fi
10771else
10772 echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
10775fi
af3004ff 10776rm -f conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
a33e1d91 10778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10779
10780 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10781 # Warning - without using the other run time loading flags,
10782 # -berok will link without error, but may produce a broken library.
10783 no_undefined_flag_CXX=' ${wl}-bernotok'
10784 allow_undefined_flag_CXX=' ${wl}-berok'
a33e1d91 10785 # Exported symbols can be pulled into shared objects from archives
62567204 10786 whole_archive_flag_spec_CXX='$convenience'
a33e1d91 10787 archive_cmds_need_lc_CXX=yes
693f5c2e 10788 # This is similar to how AIX traditionally builds its shared libraries.
62567204 10789 archive_expsym_cmds_CXX="\$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'
a33e1d91 10790 fi
10791 fi
10792 ;;
62567204 10793
10794 beos*)
10795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10796 allow_undefined_flag_CXX=unsupported
10797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10798 # support --undefined. This deserves some investigation. FIXME
10799 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10800 else
10801 ld_shlibs_CXX=no
10802 fi
10803 ;;
10804
a33e1d91 10805 chorus*)
10806 case $cc_basename in
10807 *)
10808 # FIXME: insert proper C++ library support
10809 ld_shlibs_CXX=no
10810 ;;
10811 esac
10812 ;;
10813
a33e1d91 10814 cygwin* | mingw* | pw32*)
10815 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10816 # as there is no search path for DLLs.
10817 hardcode_libdir_flag_spec_CXX='-L$libdir'
10818 allow_undefined_flag_CXX=unsupported
10819 always_export_symbols_CXX=no
10820 enable_shared_with_static_runtimes_CXX=yes
10821
10822 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
62567204 10823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 10824 # If the export-symbols file already is a .def file (1st line
10825 # is EXPORTS), use it as is; otherwise, prepend...
10826 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10827 cp $export_symbols $output_objdir/$soname.def;
10828 else
10829 echo EXPORTS > $output_objdir/$soname.def;
10830 cat $export_symbols >> $output_objdir/$soname.def;
10831 fi~
62567204 10832 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 10833 else
10834 ld_shlibs_CXX=no
10835 fi
10836 ;;
631008fb 10837 darwin* | rhapsody*)
693f5c2e 10838 case $host_os in
631008fb 10839 rhapsody* | darwin1.[012])
10840 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10841 ;;
10842 *) # Darwin 1.3 on
10843 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10844 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10845 else
10846 case ${MACOSX_DEPLOYMENT_TARGET} in
10847 10.[012])
10848 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10849 ;;
10850 10.*)
10851 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10852 ;;
10853 esac
10854 fi
10855 ;;
10856 esac
10857 archive_cmds_need_lc_CXX=no
10858 hardcode_direct_CXX=no
10859 hardcode_automatic_CXX=yes
10860 hardcode_shlibpath_var_CXX=unsupported
10861 whole_archive_flag_spec_CXX=''
10862 link_all_deplibs_CXX=yes
a33e1d91 10863
631008fb 10864 if test "$GXX" = yes ; then
10865 lt_int_apple_cc_single_mod=no
10866 output_verbose_link_cmd='echo'
10867 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10868 lt_int_apple_cc_single_mod=yes
10869 fi
10870 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10871 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
a33e1d91 10872 else
631008fb 10873 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10874 fi
10875 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 10876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 10877 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10878 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10879 else
10880 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10881 fi
10882 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10883 else
087278d6 10884 case $cc_basename in
631008fb 10885 xlc*)
10886 output_verbose_link_cmd='echo'
10887 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10888 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 10889 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 10890 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10891 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10892 ;;
10893 *)
10894 ld_shlibs_CXX=no
10895 ;;
10896 esac
a33e1d91 10897 fi
631008fb 10898 ;;
a33e1d91 10899
10900 dgux*)
10901 case $cc_basename in
087278d6 10902 ec++*)
a33e1d91 10903 # FIXME: insert proper C++ library support
10904 ld_shlibs_CXX=no
10905 ;;
087278d6 10906 ghcx*)
a33e1d91 10907 # Green Hills C++ Compiler
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10910 ;;
10911 *)
10912 # FIXME: insert proper C++ library support
10913 ld_shlibs_CXX=no
10914 ;;
10915 esac
10916 ;;
087278d6 10917 freebsd[12]*)
a33e1d91 10918 # C++ shared libraries reported to be fairly broken before switch to ELF
10919 ld_shlibs_CXX=no
10920 ;;
10921 freebsd-elf*)
10922 archive_cmds_need_lc_CXX=no
10923 ;;
087278d6 10924 freebsd* | kfreebsd*-gnu | dragonfly*)
a33e1d91 10925 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10926 # conventions
10927 ld_shlibs_CXX=yes
10928 ;;
10929 gnu*)
10930 ;;
10931 hpux9*)
10932 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10933 hardcode_libdir_separator_CXX=:
10934 export_dynamic_flag_spec_CXX='${wl}-E'
10935 hardcode_direct_CXX=yes
10936 hardcode_minus_L_CXX=yes # Not in the search PATH,
10937 # but as the default
10938 # location of the library.
10939
10940 case $cc_basename in
087278d6 10941 CC*)
a33e1d91 10942 # FIXME: insert proper C++ library support
10943 ld_shlibs_CXX=no
10944 ;;
087278d6 10945 aCC*)
a33e1d91 10946 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10950 #
10951 # There doesn't appear to be a way to prevent this compiler from
10952 # explicitly linking system object files so we need to strip them
10953 # from the output so that they don't get included in the library
10954 # dependencies.
087278d6 10955 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
a33e1d91 10956 ;;
10957 *)
10958 if test "$GXX" = yes; then
10959 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10960 else
10961 # FIXME: insert proper C++ library support
10962 ld_shlibs_CXX=no
10963 fi
10964 ;;
10965 esac
10966 ;;
10967 hpux10*|hpux11*)
10968 if test $with_gnu_ld = no; then
62567204 10969 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10970 hardcode_libdir_separator_CXX=:
10971
693f5c2e 10972 case $host_cpu in
62567204 10973 hppa*64*|ia64*)
a33e1d91 10974 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
a33e1d91 10975 ;;
10976 *)
a33e1d91 10977 export_dynamic_flag_spec_CXX='${wl}-E'
10978 ;;
10979 esac
10980 fi
693f5c2e 10981 case $host_cpu in
62567204 10982 hppa*64*|ia64*)
a33e1d91 10983 hardcode_direct_CXX=no
10984 hardcode_shlibpath_var_CXX=no
a33e1d91 10985 ;;
10986 *)
10987 hardcode_direct_CXX=yes
10988 hardcode_minus_L_CXX=yes # Not in the search PATH,
10989 # but as the default
10990 # location of the library.
10991 ;;
10992 esac
10993
10994 case $cc_basename in
087278d6 10995 CC*)
a33e1d91 10996 # FIXME: insert proper C++ library support
10997 ld_shlibs_CXX=no
10998 ;;
087278d6 10999 aCC*)
693f5c2e 11000 case $host_cpu in
62567204 11001 hppa*64*)
11002 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11003 ;;
11004 ia64*)
11005 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a33e1d91 11006 ;;
11007 *)
11008 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11009 ;;
11010 esac
11011 # Commands to make compiler produce verbose output that lists
11012 # what "hidden" libraries, object files and flags are used when
11013 # linking a shared library.
11014 #
11015 # There doesn't appear to be a way to prevent this compiler from
11016 # explicitly linking system object files so we need to strip them
11017 # from the output so that they don't get included in the library
11018 # dependencies.
11019 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11020 ;;
11021 *)
11022 if test "$GXX" = yes; then
11023 if test $with_gnu_ld = no; then
693f5c2e 11024 case $host_cpu in
62567204 11025 hppa*64*)
11026 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11027 ;;
11028 ia64*)
11029 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a33e1d91 11030 ;;
11031 *)
11032 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11033 ;;
11034 esac
11035 fi
11036 else
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11039 fi
11040 ;;
11041 esac
11042 ;;
62567204 11043 interix3*)
11044 hardcode_direct_CXX=no
11045 hardcode_shlibpath_var_CXX=no
11046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11047 export_dynamic_flag_spec_CXX='${wl}-E'
11048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11049 # Instead, shared libraries are loaded at an image base (0x10000000 by
11050 # default) and relocated if they conflict, which is a slow very memory
11051 # consuming and fragmenting process. To avoid this, we pick a random,
11052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11054 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11055 archive_expsym_cmds_CXX='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'
11056 ;;
a33e1d91 11057 irix5* | irix6*)
11058 case $cc_basename in
087278d6 11059 CC*)
a33e1d91 11060 # SGI C++
087278d6 11061 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
a33e1d91 11062
11063 # Archives containing C++ object files must be created using
11064 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11065 # necessary to make sure instantiated templates are included
11066 # in the archive.
11067 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11068 ;;
11069 *)
11070 if test "$GXX" = yes; then
11071 if test "$with_gnu_ld" = no; then
087278d6 11072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a33e1d91 11073 else
11074 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11075 fi
11076 fi
11077 link_all_deplibs_CXX=yes
11078 ;;
11079 esac
11080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11081 hardcode_libdir_separator_CXX=:
11082 ;;
11083 linux*)
11084 case $cc_basename in
087278d6 11085 KCC*)
a33e1d91 11086 # Kuck and Associates, Inc. (KAI) C++ Compiler
11087
11088 # KCC will only create a shared library if the output file
11089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11090 # to its proper name (with version) after linking.
11091 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11092 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11093 # Commands to make compiler produce verbose output that lists
11094 # what "hidden" libraries, object files and flags are used when
11095 # linking a shared library.
11096 #
11097 # There doesn't appear to be a way to prevent this compiler from
11098 # explicitly linking system object files so we need to strip them
11099 # from the output so that they don't get included in the library
11100 # dependencies.
11101 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11102
11103 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11105
11106 # Archives containing C++ object files must be created using
11107 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11108 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11109 ;;
087278d6 11110 icpc*)
a33e1d91 11111 # Intel C++
11112 with_gnu_ld=yes
631008fb 11113 # version 8.0 and above of icpc choke on multiply defined symbols
11114 # if we add $predep_objects and $postdep_objects, however 7.1 and
11115 # earlier do not add the objects themselves.
11116 case `$CC -V 2>&1` in
11117 *"Version 7."*)
11118 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11119 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11120 ;;
11121 *) # Version 8.0 or newer
087278d6 11122 tmp_idyn=
11123 case $host_cpu in
11124 ia64*) tmp_idyn=' -i_dynamic';;
11125 esac
11126 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11127 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
631008fb 11128 ;;
11129 esac
a33e1d91 11130 archive_cmds_need_lc_CXX=no
11131 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11133 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11134 ;;
087278d6 11135 pgCC*)
11136 # Portland Group C++ compiler
11137 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11138 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11139
11140 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
693f5c2e 11142 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 11143 ;;
11144 cxx*)
a33e1d91 11145 # Compaq C++
11146 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11147 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11148
11149 runpath_var=LD_RUN_PATH
11150 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11151 hardcode_libdir_separator_CXX=:
11152
11153 # Commands to make compiler produce verbose output that lists
11154 # what "hidden" libraries, object files and flags are used when
11155 # linking a shared library.
11156 #
11157 # There doesn't appear to be a way to prevent this compiler from
11158 # explicitly linking system object files so we need to strip them
11159 # from the output so that they don't get included in the library
11160 # dependencies.
11161 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11162 ;;
11163 esac
11164 ;;
11165 lynxos*)
11166 # FIXME: insert proper C++ library support
11167 ld_shlibs_CXX=no
11168 ;;
11169 m88k*)
11170 # FIXME: insert proper C++ library support
11171 ld_shlibs_CXX=no
11172 ;;
11173 mvs*)
11174 case $cc_basename in
087278d6 11175 cxx*)
a33e1d91 11176 # FIXME: insert proper C++ library support
11177 ld_shlibs_CXX=no
11178 ;;
11179 *)
11180 # FIXME: insert proper C++ library support
11181 ld_shlibs_CXX=no
11182 ;;
11183 esac
11184 ;;
6263d81f 11185 netbsd*)
a33e1d91 11186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11187 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11188 wlarc=
11189 hardcode_libdir_flag_spec_CXX='-R$libdir'
11190 hardcode_direct_CXX=yes
11191 hardcode_shlibpath_var_CXX=no
11192 fi
11193 # Workaround some broken pre-1.5 toolchains
11194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11195 ;;
631008fb 11196 openbsd2*)
11197 # C++ shared libraries are fairly broken
11198 ld_shlibs_CXX=no
11199 ;;
11200 openbsd*)
11201 hardcode_direct_CXX=yes
11202 hardcode_shlibpath_var_CXX=no
11203 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11206 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11207 export_dynamic_flag_spec_CXX='${wl}-E'
11208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11209 fi
11210 output_verbose_link_cmd='echo'
11211 ;;
a33e1d91 11212 osf3*)
11213 case $cc_basename in
087278d6 11214 KCC*)
a33e1d91 11215 # Kuck and Associates, Inc. (KAI) C++ Compiler
11216
11217 # KCC will only create a shared library if the output file
11218 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11219 # to its proper name (with version) after linking.
11220 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11221
11222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11223 hardcode_libdir_separator_CXX=:
11224
11225 # Archives containing C++ object files must be created using
11226 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11227 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11228
11229 ;;
087278d6 11230 RCC*)
a33e1d91 11231 # Rational C++ 2.4.1
11232 # FIXME: insert proper C++ library support
11233 ld_shlibs_CXX=no
11234 ;;
087278d6 11235 cxx*)
a33e1d91 11236 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
087278d6 11237 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
a33e1d91 11238
11239 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11240 hardcode_libdir_separator_CXX=:
11241
11242 # Commands to make compiler produce verbose output that lists
11243 # what "hidden" libraries, object files and flags are used when
11244 # linking a shared library.
11245 #
11246 # There doesn't appear to be a way to prevent this compiler from
11247 # explicitly linking system object files so we need to strip them
11248 # from the output so that they don't get included in the library
11249 # dependencies.
11250 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11251 ;;
11252 *)
11253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11254 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
087278d6 11255 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a33e1d91 11256
11257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11258 hardcode_libdir_separator_CXX=:
11259
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11264
11265 else
11266 # FIXME: insert proper C++ library support
11267 ld_shlibs_CXX=no
11268 fi
11269 ;;
11270 esac
11271 ;;
11272 osf4* | osf5*)
11273 case $cc_basename in
087278d6 11274 KCC*)
a33e1d91 11275 # Kuck and Associates, Inc. (KAI) C++ Compiler
11276
11277 # KCC will only create a shared library if the output file
11278 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11279 # to its proper name (with version) after linking.
11280 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11281
11282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11283 hardcode_libdir_separator_CXX=:
11284
11285 # Archives containing C++ object files must be created using
11286 # the KAI C++ compiler.
11287 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11288 ;;
087278d6 11289 RCC*)
a33e1d91 11290 # Rational C++ 2.4.1
11291 # FIXME: insert proper C++ library support
11292 ld_shlibs_CXX=no
11293 ;;
087278d6 11294 cxx*)
a33e1d91 11295 allow_undefined_flag_CXX=' -expect_unresolved \*'
087278d6 11296 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
a33e1d91 11297 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11298 echo "-hidden">> $lib.exp~
087278d6 11299 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
a33e1d91 11300 $rm $lib.exp'
11301
11302 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11303 hardcode_libdir_separator_CXX=:
11304
11305 # Commands to make compiler produce verbose output that lists
11306 # what "hidden" libraries, object files and flags are used when
11307 # linking a shared library.
11308 #
11309 # There doesn't appear to be a way to prevent this compiler from
11310 # explicitly linking system object files so we need to strip them
11311 # from the output so that they don't get included in the library
11312 # dependencies.
11313 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11314 ;;
11315 *)
11316 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11317 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
087278d6 11318 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a33e1d91 11319
11320 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11321 hardcode_libdir_separator_CXX=:
11322
11323 # Commands to make compiler produce verbose output that lists
11324 # what "hidden" libraries, object files and flags are used when
11325 # linking a shared library.
11326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11327
11328 else
11329 # FIXME: insert proper C++ library support
11330 ld_shlibs_CXX=no
11331 fi
11332 ;;
11333 esac
11334 ;;
11335 psos*)
11336 # FIXME: insert proper C++ library support
11337 ld_shlibs_CXX=no
11338 ;;
a33e1d91 11339 sunos4*)
11340 case $cc_basename in
087278d6 11341 CC*)
a33e1d91 11342 # Sun C++ 4.x
11343 # FIXME: insert proper C++ library support
11344 ld_shlibs_CXX=no
11345 ;;
087278d6 11346 lcc*)
a33e1d91 11347 # Lucid
11348 # FIXME: insert proper C++ library support
11349 ld_shlibs_CXX=no
11350 ;;
11351 *)
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11354 ;;
11355 esac
11356 ;;
11357 solaris*)
11358 case $cc_basename in
087278d6 11359 CC*)
a33e1d91 11360 # Sun C++ 4.2, 5.x and Centerline C++
693f5c2e 11361 archive_cmds_need_lc_CXX=yes
a33e1d91 11362 no_undefined_flag_CXX=' -zdefs'
693f5c2e 11363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a33e1d91 11364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
693f5c2e 11365 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
a33e1d91 11366
11367 hardcode_libdir_flag_spec_CXX='-R$libdir'
11368 hardcode_shlibpath_var_CXX=no
11369 case $host_os in
087278d6 11370 solaris2.[0-5] | solaris2.[0-5].*) ;;
a33e1d91 11371 *)
11372 # The C++ compiler is used as linker so we must use $wl
11373 # flag to pass the commands to the underlying system
087278d6 11374 # linker. We must also pass each convience library through
11375 # to the system linker between allextract/defaultextract.
11376 # The C++ compiler will combine linker options so we
11377 # cannot just pass the convience library names through
11378 # without $wl.
a33e1d91 11379 # Supported since Solaris 2.6 (maybe 2.5.1?)
087278d6 11380 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
a33e1d91 11381 ;;
11382 esac
11383 link_all_deplibs_CXX=yes
11384
693f5c2e 11385 output_verbose_link_cmd='echo'
a33e1d91 11386
11387 # Archives containing C++ object files must be created using
11388 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11389 # necessary to make sure instantiated templates are included
11390 # in the archive.
11391 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11392 ;;
087278d6 11393 gcx*)
a33e1d91 11394 # Green Hills C++ Compiler
11395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11396
11397 # The C++ compiler must be used to create the archive.
11398 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11399 ;;
11400 *)
11401 # GNU C++ compiler with Solaris linker
11402 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11403 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11404 if $CC --version | grep -v '^2\.7' > /dev/null; then
11405 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11406 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11407 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11408
11409 # Commands to make compiler produce verbose output that lists
11410 # what "hidden" libraries, object files and flags are used when
11411 # linking a shared library.
11412 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11413 else
11414 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11415 # platform.
11416 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11417 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11418 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11419
11420 # Commands to make compiler produce verbose output that lists
11421 # what "hidden" libraries, object files and flags are used when
11422 # linking a shared library.
11423 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11424 fi
11425
11426 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11427 fi
11428 ;;
11429 esac
11430 ;;
62567204 11431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11432 no_undefined_flag_CXX='${wl}-z,text'
11433 archive_cmds_need_lc_CXX=no
11434 hardcode_shlibpath_var_CXX=no
11435 runpath_var='LD_RUN_PATH'
11436
11437 case $cc_basename in
11438 CC*)
11439 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11440 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11441 ;;
11442 *)
11443 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11444 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11445 ;;
11446 esac
11447 ;;
11448 sysv5* | sco3.2v5* | sco5v6*)
11449 # Note: We can NOT use -z defs as we might desire, because we do not
11450 # link with -lc, and that would cause any symbols used from libc to
11451 # always be unresolved, which means just about no library would
11452 # ever link correctly. If we're not using GNU ld we use -z text
11453 # though, which does catch some bad symbols but isn't as heavy-handed
11454 # as -z defs.
11455 # For security reasons, it is highly recommended that you always
11456 # use absolute paths for naming shared libraries, and exclude the
11457 # DT_RUNPATH tag from executables and libraries. But doing so
11458 # requires that you compile everything twice, which is a pain.
11459 # So that behaviour is only enabled if SCOABSPATH is set to a
11460 # non-empty value in the environment. Most likely only useful for
11461 # creating official distributions of packages.
11462 # This is a hack until libtool officially supports absolute path
11463 # names for shared libraries.
11464 no_undefined_flag_CXX='${wl}-z,text'
11465 allow_undefined_flag_CXX='${wl}-z,nodefs'
a33e1d91 11466 archive_cmds_need_lc_CXX=no
62567204 11467 hardcode_shlibpath_var_CXX=no
11468 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11469 hardcode_libdir_separator_CXX=':'
11470 link_all_deplibs_CXX=yes
11471 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11472 runpath_var='LD_RUN_PATH'
11473
11474 case $cc_basename in
11475 CC*)
11476 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11477 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11478 ;;
11479 *)
11480 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11481 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11482 ;;
11483 esac
a33e1d91 11484 ;;
11485 tandem*)
11486 case $cc_basename in
087278d6 11487 NCC*)
a33e1d91 11488 # NonStop-UX NCC 3.20
11489 # FIXME: insert proper C++ library support
11490 ld_shlibs_CXX=no
11491 ;;
11492 *)
11493 # FIXME: insert proper C++ library support
11494 ld_shlibs_CXX=no
11495 ;;
11496 esac
11497 ;;
11498 vxworks*)
11499 # FIXME: insert proper C++ library support
11500 ld_shlibs_CXX=no
11501 ;;
11502 *)
11503 # FIXME: insert proper C++ library support
11504 ld_shlibs_CXX=no
11505 ;;
11506esac
11507echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11508echo "${ECHO_T}$ld_shlibs_CXX" >&6
11509test "$ld_shlibs_CXX" = no && can_build_shared=no
11510
11511GCC_CXX="$GXX"
11512LD_CXX="$LD"
11513
11514
11515cat > conftest.$ac_ext <<EOF
11516class Foo
11517{
11518public:
11519 Foo (void) { a = 0; }
11520private:
11521 int a;
11522};
11523EOF
11524
11525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; then
11530 # Parse the compiler output and extract the necessary
11531 # objects, libraries and library flags.
11532
11533 # Sentinel used to keep track of whether or not we are before
11534 # the conftest object file.
11535 pre_test_object_deps_done=no
11536
11537 # The `*' in the case matches for architectures that use `case' in
11538 # $output_verbose_cmd can trigger glob expansion during the loop
11539 # eval without this substitution.
693f5c2e 11540 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a33e1d91 11541
11542 for p in `eval $output_verbose_link_cmd`; do
11543 case $p in
11544
11545 -L* | -R* | -l*)
11546 # Some compilers place space between "-{L,R}" and the path.
11547 # Remove the space.
11548 if test $p = "-L" \
11549 || test $p = "-R"; then
11550 prev=$p
11551 continue
11552 else
11553 prev=
11554 fi
11555
11556 if test "$pre_test_object_deps_done" = no; then
11557 case $p in
11558 -L* | -R*)
11559 # Internal compiler library paths should come after those
11560 # provided the user. The postdeps already come after the
11561 # user supplied libs so there is no need to process them.
11562 if test -z "$compiler_lib_search_path_CXX"; then
11563 compiler_lib_search_path_CXX="${prev}${p}"
11564 else
11565 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11566 fi
11567 ;;
11568 # The "-l" case would never come before the object being
11569 # linked, so don't bother handling this case.
11570 esac
11571 else
11572 if test -z "$postdeps_CXX"; then
11573 postdeps_CXX="${prev}${p}"
11574 else
11575 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11576 fi
11577 fi
11578 ;;
11579
11580 *.$objext)
11581 # This assumes that the test object file only shows up
11582 # once in the compiler output.
11583 if test "$p" = "conftest.$objext"; then
11584 pre_test_object_deps_done=yes
11585 continue
11586 fi
11587
11588 if test "$pre_test_object_deps_done" = no; then
11589 if test -z "$predep_objects_CXX"; then
11590 predep_objects_CXX="$p"
11591 else
11592 predep_objects_CXX="$predep_objects_CXX $p"
11593 fi
11594 else
11595 if test -z "$postdep_objects_CXX"; then
11596 postdep_objects_CXX="$p"
11597 else
11598 postdep_objects_CXX="$postdep_objects_CXX $p"
11599 fi
11600 fi
11601 ;;
11602
11603 *) ;; # Ignore the rest.
11604
11605 esac
11606 done
11607
11608 # Clean up.
11609 rm -f a.out a.exe
11610else
11611 echo "libtool.m4: error: problem compiling CXX test program"
11612fi
11613
11614$rm -f confest.$objext
11615
693f5c2e 11616# PORTME: override above test on systems where it is broken
11617case $host_os in
62567204 11618interix3*)
11619 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11620 # hack all around it, let's just trust "g++" to DTRT.
11621 predep_objects_CXX=
11622 postdep_objects_CXX=
11623 postdeps_CXX=
11624 ;;
11625
693f5c2e 11626solaris*)
11627 case $cc_basename in
11628 CC*)
11629 # Adding this requires a known-good setup of shared libraries for
11630 # Sun compiler versions before 5.6, else PIC objects from an old
11631 # archive will be linked into the output, leading to subtle bugs.
11632 postdeps_CXX='-lCstd -lCrun'
11633 ;;
11634 esac
62567204 11635 ;;
693f5c2e 11636esac
11637
11638
a33e1d91 11639case " $postdeps_CXX " in
11640*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11641esac
11642
11643lt_prog_compiler_wl_CXX=
11644lt_prog_compiler_pic_CXX=
11645lt_prog_compiler_static_CXX=
11646
11647echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11648echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11649
11650 # C++ specific cases for pic, static, wl, etc.
11651 if test "$GXX" = yes; then
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 lt_prog_compiler_static_CXX='-static'
11654
11655 case $host_os in
11656 aix*)
11657 # All AIX code is PIC.
11658 if test "$host_cpu" = ia64; then
11659 # AIX 5 now supports IA64 processor
11660 lt_prog_compiler_static_CXX='-Bstatic'
11661 fi
11662 ;;
11663 amigaos*)
11664 # FIXME: we need at least 68020 code to build shared libraries, but
11665 # adding the `-m68020' flag to GCC prevents building anything better,
11666 # like `-m68040'.
11667 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11668 ;;
11669 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11670 # PIC is the default for these OSes.
11671 ;;
11672 mingw* | os2* | pw32*)
11673 # This hack is so that the source file can tell whether it is being
11674 # built for inclusion in a dll (and should export symbols for example).
11675 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11676 ;;
11677 darwin* | rhapsody*)
11678 # PIC is the default on this platform
11679 # Common symbols not allowed in MH_DYLIB files
11680 lt_prog_compiler_pic_CXX='-fno-common'
11681 ;;
11682 *djgpp*)
11683 # DJGPP does not support shared libraries at all
11684 lt_prog_compiler_pic_CXX=
11685 ;;
62567204 11686 interix3*)
11687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11688 # Instead, we relocate shared libraries at runtime.
11689 ;;
a33e1d91 11690 sysv4*MP*)
11691 if test -d /usr/nec; then
11692 lt_prog_compiler_pic_CXX=-Kconform_pic
11693 fi
11694 ;;
11695 hpux*)
11696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11697 # not for PA HP-UX.
693f5c2e 11698 case $host_cpu in
a33e1d91 11699 hppa*64*|ia64*)
11700 ;;
11701 *)
11702 lt_prog_compiler_pic_CXX='-fPIC'
11703 ;;
11704 esac
11705 ;;
11706 *)
11707 lt_prog_compiler_pic_CXX='-fPIC'
11708 ;;
11709 esac
11710 else
11711 case $host_os in
11712 aix4* | aix5*)
11713 # All AIX code is PIC.
11714 if test "$host_cpu" = ia64; then
11715 # AIX 5 now supports IA64 processor
11716 lt_prog_compiler_static_CXX='-Bstatic'
11717 else
11718 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11719 fi
11720 ;;
11721 chorus*)
11722 case $cc_basename in
087278d6 11723 cxch68*)
a33e1d91 11724 # Green Hills C++ Compiler
11725 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11726 ;;
11727 esac
11728 ;;
631008fb 11729 darwin*)
11730 # PIC is the default on this platform
11731 # Common symbols not allowed in MH_DYLIB files
087278d6 11732 case $cc_basename in
631008fb 11733 xlc*)
11734 lt_prog_compiler_pic_CXX='-qnocommon'
11735 lt_prog_compiler_wl_CXX='-Wl,'
11736 ;;
11737 esac
11738 ;;
a33e1d91 11739 dgux*)
11740 case $cc_basename in
087278d6 11741 ec++*)
a33e1d91 11742 lt_prog_compiler_pic_CXX='-KPIC'
11743 ;;
087278d6 11744 ghcx*)
a33e1d91 11745 # Green Hills C++ Compiler
11746 lt_prog_compiler_pic_CXX='-pic'
11747 ;;
11748 *)
11749 ;;
11750 esac
11751 ;;
087278d6 11752 freebsd* | kfreebsd*-gnu | dragonfly*)
a33e1d91 11753 # FreeBSD uses GNU C++
11754 ;;
11755 hpux9* | hpux10* | hpux11*)
11756 case $cc_basename in
087278d6 11757 CC*)
a33e1d91 11758 lt_prog_compiler_wl_CXX='-Wl,'
62567204 11759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a33e1d91 11760 if test "$host_cpu" != ia64; then
11761 lt_prog_compiler_pic_CXX='+Z'
11762 fi
11763 ;;
087278d6 11764 aCC*)
a33e1d91 11765 lt_prog_compiler_wl_CXX='-Wl,'
62567204 11766 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
693f5c2e 11767 case $host_cpu in
a33e1d91 11768 hppa*64*|ia64*)
11769 # +Z the default
11770 ;;
11771 *)
11772 lt_prog_compiler_pic_CXX='+Z'
11773 ;;
11774 esac
11775 ;;
11776 *)
11777 ;;
11778 esac
11779 ;;
62567204 11780 interix*)
11781 # This is c89, which is MS Visual C++ (no shared libs)
11782 # Anyone wants to do a port?
11783 ;;
a33e1d91 11784 irix5* | irix6* | nonstopux*)
11785 case $cc_basename in
087278d6 11786 CC*)
a33e1d91 11787 lt_prog_compiler_wl_CXX='-Wl,'
11788 lt_prog_compiler_static_CXX='-non_shared'
11789 # CC pic flag -KPIC is the default.
11790 ;;
11791 *)
11792 ;;
11793 esac
11794 ;;
11795 linux*)
11796 case $cc_basename in
087278d6 11797 KCC*)
a33e1d91 11798 # KAI C++ Compiler
11799 lt_prog_compiler_wl_CXX='--backend -Wl,'
11800 lt_prog_compiler_pic_CXX='-fPIC'
11801 ;;
087278d6 11802 icpc* | ecpc*)
a33e1d91 11803 # Intel C++
11804 lt_prog_compiler_wl_CXX='-Wl,'
11805 lt_prog_compiler_pic_CXX='-KPIC'
11806 lt_prog_compiler_static_CXX='-static'
11807 ;;
087278d6 11808 pgCC*)
11809 # Portland Group C++ compiler.
11810 lt_prog_compiler_wl_CXX='-Wl,'
11811 lt_prog_compiler_pic_CXX='-fpic'
693f5c2e 11812 lt_prog_compiler_static_CXX='-Bstatic'
087278d6 11813 ;;
11814 cxx*)
a33e1d91 11815 # Compaq C++
11816 # Make sure the PIC flag is empty. It appears that all Alpha
11817 # Linux and Compaq Tru64 Unix objects are PIC.
11818 lt_prog_compiler_pic_CXX=
11819 lt_prog_compiler_static_CXX='-non_shared'
11820 ;;
11821 *)
11822 ;;
11823 esac
11824 ;;
11825 lynxos*)
11826 ;;
11827 m88k*)
11828 ;;
11829 mvs*)
11830 case $cc_basename in
087278d6 11831 cxx*)
a33e1d91 11832 lt_prog_compiler_pic_CXX='-W c,exportall'
11833 ;;
11834 *)
11835 ;;
11836 esac
11837 ;;
6263d81f 11838 netbsd*)
a33e1d91 11839 ;;
11840 osf3* | osf4* | osf5*)
11841 case $cc_basename in
087278d6 11842 KCC*)
a33e1d91 11843 lt_prog_compiler_wl_CXX='--backend -Wl,'
11844 ;;
087278d6 11845 RCC*)
a33e1d91 11846 # Rational C++ 2.4.1
11847 lt_prog_compiler_pic_CXX='-pic'
11848 ;;
087278d6 11849 cxx*)
a33e1d91 11850 # Digital/Compaq C++
11851 lt_prog_compiler_wl_CXX='-Wl,'
11852 # Make sure the PIC flag is empty. It appears that all Alpha
11853 # Linux and Compaq Tru64 Unix objects are PIC.
11854 lt_prog_compiler_pic_CXX=
11855 lt_prog_compiler_static_CXX='-non_shared'
11856 ;;
11857 *)
11858 ;;
11859 esac
11860 ;;
11861 psos*)
11862 ;;
a33e1d91 11863 solaris*)
11864 case $cc_basename in
087278d6 11865 CC*)
a33e1d91 11866 # Sun C++ 4.2, 5.x and Centerline C++
11867 lt_prog_compiler_pic_CXX='-KPIC'
11868 lt_prog_compiler_static_CXX='-Bstatic'
11869 lt_prog_compiler_wl_CXX='-Qoption ld '
11870 ;;
087278d6 11871 gcx*)
a33e1d91 11872 # Green Hills C++ Compiler
11873 lt_prog_compiler_pic_CXX='-PIC'
11874 ;;
11875 *)
11876 ;;
11877 esac
11878 ;;
11879 sunos4*)
11880 case $cc_basename in
087278d6 11881 CC*)
a33e1d91 11882 # Sun C++ 4.x
11883 lt_prog_compiler_pic_CXX='-pic'
11884 lt_prog_compiler_static_CXX='-Bstatic'
11885 ;;
087278d6 11886 lcc*)
a33e1d91 11887 # Lucid
11888 lt_prog_compiler_pic_CXX='-pic'
11889 ;;
11890 *)
11891 ;;
11892 esac
11893 ;;
11894 tandem*)
11895 case $cc_basename in
087278d6 11896 NCC*)
a33e1d91 11897 # NonStop-UX NCC 3.20
11898 lt_prog_compiler_pic_CXX='-KPIC'
11899 ;;
11900 *)
11901 ;;
11902 esac
11903 ;;
62567204 11904 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11905 case $cc_basename in
11906 CC*)
11907 lt_prog_compiler_wl_CXX='-Wl,'
11908 lt_prog_compiler_pic_CXX='-KPIC'
11909 lt_prog_compiler_static_CXX='-Bstatic'
11910 ;;
11911 esac
a33e1d91 11912 ;;
11913 vxworks*)
11914 ;;
11915 *)
11916 lt_prog_compiler_can_build_shared_CXX=no
11917 ;;
11918 esac
11919 fi
11920
11921echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11922echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11923
11924#
11925# Check to make sure the PIC flag actually works.
11926#
11927if test -n "$lt_prog_compiler_pic_CXX"; then
11928
11929echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11930echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11931if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 lt_prog_compiler_pic_works_CXX=no
11935 ac_outfile=conftest.$ac_objext
11936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11937 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11938 # Insert the option either (1) after the last *FLAGS variable, or
11939 # (2) before a word containing "conftest.", or (3) at the end.
11940 # Note that $ac_compile itself does not contain backslashes and begins
11941 # with a dollar sign (not a hyphen), so the echo should work correctly.
11942 # The option is referenced via a variable to avoid confusing sed.
11943 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 11944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 11945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11946 -e 's:$: $lt_compiler_flag:'`
00b2804c 11947 (eval echo "\"\$as_me:11947: $lt_compile\"" >&5)
a33e1d91 11948 (eval "$lt_compile" 2>conftest.err)
11949 ac_status=$?
11950 cat conftest.err >&5
00b2804c 11951 echo "$as_me:11951: \$? = $ac_status" >&5
a33e1d91 11952 if (exit $ac_status) && test -s "$ac_outfile"; then
11953 # The compiler can only warn and ignore the option if not recognized
087278d6 11954 # So say no if there are warnings other than the usual output.
62567204 11955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a33e1d91 11958 lt_prog_compiler_pic_works_CXX=yes
11959 fi
11960 fi
11961 $rm conftest*
11962
11963fi
11964echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11965echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11966
11967if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11968 case $lt_prog_compiler_pic_CXX in
11969 "" | " "*) ;;
11970 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11971 esac
11972else
11973 lt_prog_compiler_pic_CXX=
11974 lt_prog_compiler_can_build_shared_CXX=no
11975fi
11976
11977fi
693f5c2e 11978case $host_os in
a33e1d91 11979 # For platforms which do not support PIC, -DPIC is meaningless:
11980 *djgpp*)
11981 lt_prog_compiler_pic_CXX=
11982 ;;
11983 *)
11984 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11985 ;;
11986esac
11987
62567204 11988#
11989# Check to make sure the static flag actually works.
11990#
11991wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11992echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11993echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11994if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 lt_prog_compiler_static_works_CXX=no
11998 save_LDFLAGS="$LDFLAGS"
11999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12000 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12002 # The linker can only warn and ignore the option if not recognized
12003 # So say no if there are warnings
12004 if test -s conftest.err; then
12005 # Append any errors to the config.log.
12006 cat conftest.err 1>&5
12007 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12009 if diff conftest.exp conftest.er2 >/dev/null; then
12010 lt_prog_compiler_static_works_CXX=yes
12011 fi
12012 else
12013 lt_prog_compiler_static_works_CXX=yes
12014 fi
12015 fi
12016 $rm conftest*
12017 LDFLAGS="$save_LDFLAGS"
12018
12019fi
12020echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12021echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12022
12023if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12024 :
12025else
12026 lt_prog_compiler_static_CXX=
12027fi
12028
12029
a33e1d91 12030echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12031echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12032if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 lt_cv_prog_compiler_c_o_CXX=no
12036 $rm -r conftest 2>/dev/null
12037 mkdir conftest
12038 cd conftest
12039 mkdir out
12040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12041
12042 lt_compiler_flag="-o out/conftest2.$ac_objext"
12043 # Insert the option either (1) after the last *FLAGS variable, or
12044 # (2) before a word containing "conftest.", or (3) at the end.
12045 # Note that $ac_compile itself does not contain backslashes and begins
12046 # with a dollar sign (not a hyphen), so the echo should work correctly.
12047 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 12048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 12049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12050 -e 's:$: $lt_compiler_flag:'`
00b2804c 12051 (eval echo "\"\$as_me:12051: $lt_compile\"" >&5)
a33e1d91 12052 (eval "$lt_compile" 2>out/conftest.err)
12053 ac_status=$?
12054 cat out/conftest.err >&5
00b2804c 12055 echo "$as_me:12055: \$? = $ac_status" >&5
a33e1d91 12056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12057 then
12058 # The compiler can only warn and ignore the option if not recognized
12059 # So say no if there are warnings
62567204 12060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a33e1d91 12063 lt_cv_prog_compiler_c_o_CXX=yes
12064 fi
12065 fi
693f5c2e 12066 chmod u+w . 2>&5
a33e1d91 12067 $rm conftest*
12068 # SGI C++ compiler will create directory out/ii_files/ for
12069 # template instantiation
12070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12071 $rm out/* && rmdir out
12072 cd ..
12073 rmdir conftest
12074 $rm conftest*
12075
12076fi
12077echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12078echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12079
12080
12081hard_links="nottested"
12082if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12083 # do not overwrite the value of need_locks provided by the user
12084 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12085echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12086 hard_links=yes
12087 $rm conftest*
12088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12089 touch conftest.a
12090 ln conftest.a conftest.b 2>&5 || hard_links=no
12091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12092 echo "$as_me:$LINENO: result: $hard_links" >&5
12093echo "${ECHO_T}$hard_links" >&6
12094 if test "$hard_links" = no; then
12095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12096echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12097 need_locks=warn
12098 fi
12099else
12100 need_locks=no
12101fi
12102
12103echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12104echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12105
12106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12107 case $host_os in
12108 aix4* | aix5*)
12109 # If we're using GNU nm, then we don't want the "-C" option.
12110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12111 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12112 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12113 else
12114 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12115 fi
12116 ;;
12117 pw32*)
12118 export_symbols_cmds_CXX="$ltdll_cmds"
12119 ;;
12120 cygwin* | mingw*)
087278d6 12121 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a33e1d91 12122 ;;
12123 *)
12124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12125 ;;
12126 esac
12127
12128echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12129echo "${ECHO_T}$ld_shlibs_CXX" >&6
12130test "$ld_shlibs_CXX" = no && can_build_shared=no
12131
a33e1d91 12132#
12133# Do we need to explicitly link libc?
12134#
12135case "x$archive_cmds_need_lc_CXX" in
12136x|xyes)
12137 # Assume -lc should be added
12138 archive_cmds_need_lc_CXX=yes
12139
12140 if test "$enable_shared" = yes && test "$GCC" = yes; then
12141 case $archive_cmds_CXX in
12142 *'~'*)
12143 # FIXME: we may have to deal with multi-command sequences.
12144 ;;
12145 '$CC '*)
12146 # Test whether the compiler implicitly links with -lc since on some
12147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12148 # to ld, don't add -lc before -lgcc.
12149 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12150echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12151 $rm conftest*
12152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12153
12154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12155 (eval $ac_compile) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } 2>conftest.err; then
12159 soname=conftest
12160 lib=conftest
12161 libobjs=conftest.$ac_objext
12162 deplibs=
12163 wl=$lt_prog_compiler_wl_CXX
62567204 12164 pic_flag=$lt_prog_compiler_pic_CXX
a33e1d91 12165 compiler_flags=-v
12166 linker_flags=-v
12167 verstring=
12168 output_objdir=.
12169 libname=conftest
12170 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12171 allow_undefined_flag_CXX=
12172 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12173 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }
12177 then
12178 archive_cmds_need_lc_CXX=no
12179 else
12180 archive_cmds_need_lc_CXX=yes
12181 fi
12182 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12183 else
12184 cat conftest.err 1>&5
12185 fi
12186 $rm conftest*
12187 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12188echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12189 ;;
12190 esac
12191 fi
12192 ;;
12193esac
12194
12195echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12196echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12197library_names_spec=
12198libname_spec='lib$name'
12199soname_spec=
12200shrext_cmds=".so"
12201postinstall_cmds=
12202postuninstall_cmds=
12203finish_cmds=
12204finish_eval=
12205shlibpath_var=
12206shlibpath_overrides_runpath=unknown
12207version_type=none
12208dynamic_linker="$host_os ld.so"
12209sys_lib_dlsearch_path_spec="/lib /usr/lib"
12210if test "$GCC" = yes; then
12211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12212 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12213 # if the path contains ";" then we assume it to be the separator
12214 # otherwise default to the standard path separator (i.e. ":") - it is
12215 # assumed that no part of a normal pathname contains ";" but that should
12216 # okay in the real world where ";" in dirpaths is itself problematic.
12217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12218 else
12219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12220 fi
12221else
12222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12223fi
12224need_lib_prefix=unknown
12225hardcode_into_libs=no
12226
12227# when you set need_version to no, make sure it does not cause -set_version
12228# flags to be left without arguments
12229need_version=unknown
12230
12231case $host_os in
12232aix3*)
12233 version_type=linux
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12235 shlibpath_var=LIBPATH
12236
12237 # AIX 3 has no versioning support, so we append a major version to the name.
12238 soname_spec='${libname}${release}${shared_ext}$major'
12239 ;;
12240
12241aix4* | aix5*)
12242 version_type=linux
12243 need_lib_prefix=no
12244 need_version=no
12245 hardcode_into_libs=yes
12246 if test "$host_cpu" = ia64; then
12247 # AIX 5 supports IA64
12248 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 else
12251 # With GCC up to 2.95.x, collect2 would create an import file
12252 # for dependence libraries. The import file would start with
12253 # the line `#! .'. This would cause the generated library to
12254 # depend on `.', always an invalid library. This was fixed in
12255 # development snapshots of GCC prior to 3.0.
12256 case $host_os in
12257 aix4 | aix4.[01] | aix4.[01].*)
12258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12259 echo ' yes '
12260 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12261 :
12262 else
12263 can_build_shared=no
12264 fi
12265 ;;
12266 esac
12267 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12268 # soname into executable. Probably we can add versioning support to
12269 # collect2, so additional links can be useful in future.
12270 if test "$aix_use_runtimelinking" = yes; then
12271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12272 # instead of lib<name>.a to let people know that these are not
12273 # typical AIX shared libraries.
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 else
12276 # We preserve .a as extension for shared libraries through AIX4.2
12277 # and later when we are not doing run time linking.
12278 library_names_spec='${libname}${release}.a $libname.a'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 fi
12281 shlibpath_var=LIBPATH
12282 fi
12283 ;;
12284
12285amigaos*)
12286 library_names_spec='$libname.ixlibrary $libname.a'
12287 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12288 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12289 ;;
12290
12291beos*)
12292 library_names_spec='${libname}${shared_ext}'
12293 dynamic_linker="$host_os ld.so"
12294 shlibpath_var=LIBRARY_PATH
12295 ;;
12296
631008fb 12297bsdi[45]*)
a33e1d91 12298 version_type=linux
12299 need_version=no
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12303 shlibpath_var=LD_LIBRARY_PATH
12304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12306 # the default ld.so.conf also contains /usr/contrib/lib and
12307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12308 # libtool to hard-code these into programs
12309 ;;
12310
12311cygwin* | mingw* | pw32*)
12312 version_type=windows
12313 shrext_cmds=".dll"
12314 need_version=no
12315 need_lib_prefix=no
12316
12317 case $GCC,$host_os in
12318 yes,cygwin* | yes,mingw* | yes,pw32*)
12319 library_names_spec='$libname.dll.a'
12320 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12321 postinstall_cmds='base_file=`basename \${file}`~
12322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12323 dldir=$destdir/`dirname \$dlpath`~
12324 test -d \$dldir || mkdir -p \$dldir~
693f5c2e 12325 $install_prog $dir/$dlname \$dldir/$dlname~
12326 chmod a+x \$dldir/$dlname'
a33e1d91 12327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12328 dlpath=$dir/\$dldll~
12329 $rm \$dlpath'
12330 shlibpath_overrides_runpath=yes
12331
12332 case $host_os in
12333 cygwin*)
12334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12337 ;;
12338 mingw*)
12339 # MinGW DLLs use traditional 'lib' prefix
12340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12343 # It is most probably a Windows format PATH printed by
12344 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12345 # path with ; separators, and with drive letters. We can handle the
12346 # drive letters (cygwin fileutils understands them), so leave them,
12347 # especially as we might pass files found there to a mingw objdump,
12348 # which wouldn't understand a cygwinified path. Ahh.
12349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12350 else
12351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12352 fi
12353 ;;
12354 pw32*)
12355 # pw32 DLLs use 'pw' prefix rather than 'lib'
087278d6 12356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a33e1d91 12357 ;;
12358 esac
12359 ;;
12360
12361 *)
12362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12363 ;;
12364 esac
12365 dynamic_linker='Win32 ld.exe'
12366 # FIXME: first we should search . and the directory the executable is in
12367 shlibpath_var=PATH
12368 ;;
12369
12370darwin* | rhapsody*)
12371 dynamic_linker="$host_os dyld"
12372 version_type=darwin
12373 need_lib_prefix=no
12374 need_version=no
12375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12376 soname_spec='${libname}${release}${major}$shared_ext'
12377 shlibpath_overrides_runpath=yes
12378 shlibpath_var=DYLD_LIBRARY_PATH
693f5c2e 12379 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a33e1d91 12380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12381 if test "$GCC" = yes; then
12382 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12383 else
12384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12385 fi
12386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12387 ;;
12388
12389dgux*)
12390 version_type=linux
12391 need_lib_prefix=no
12392 need_version=no
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 ;;
12397
12398freebsd1*)
12399 dynamic_linker=no
12400 ;;
12401
12402kfreebsd*-gnu)
12403 version_type=linux
12404 need_lib_prefix=no
12405 need_version=no
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12411 dynamic_linker='GNU ld.so'
12412 ;;
12413
087278d6 12414freebsd* | dragonfly*)
12415 # DragonFly does not have aout. When/if they implement a new
12416 # versioning mechanism, adjust this.
693f5c2e 12417 if test -x /usr/bin/objformat; then
12418 objformat=`/usr/bin/objformat`
12419 else
12420 case $host_os in
12421 freebsd[123]*) objformat=aout ;;
12422 *) objformat=elf ;;
12423 esac
12424 fi
a33e1d91 12425 version_type=freebsd-$objformat
12426 case $version_type in
12427 freebsd-elf*)
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12429 need_version=no
12430 need_lib_prefix=no
12431 ;;
12432 freebsd-*)
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12434 need_version=yes
12435 ;;
12436 esac
12437 shlibpath_var=LD_LIBRARY_PATH
12438 case $host_os in
12439 freebsd2*)
12440 shlibpath_overrides_runpath=yes
12441 ;;
087278d6 12442 freebsd3.[01]* | freebsdelf3.[01]*)
a33e1d91 12443 shlibpath_overrides_runpath=yes
12444 hardcode_into_libs=yes
12445 ;;
62567204 12446 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12447 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a33e1d91 12448 shlibpath_overrides_runpath=no
12449 hardcode_into_libs=yes
12450 ;;
62567204 12451 freebsd*) # from 4.6 on
12452 shlibpath_overrides_runpath=yes
12453 hardcode_into_libs=yes
12454 ;;
a33e1d91 12455 esac
12456 ;;
12457
12458gnu*)
12459 version_type=linux
12460 need_lib_prefix=no
12461 need_version=no
12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12463 soname_spec='${libname}${release}${shared_ext}$major'
12464 shlibpath_var=LD_LIBRARY_PATH
12465 hardcode_into_libs=yes
12466 ;;
12467
12468hpux9* | hpux10* | hpux11*)
12469 # Give a soname corresponding to the major version so that dld.sl refuses to
12470 # link against other versions.
12471 version_type=sunos
12472 need_lib_prefix=no
12473 need_version=no
693f5c2e 12474 case $host_cpu in
a33e1d91 12475 ia64*)
12476 shrext_cmds='.so'
12477 hardcode_into_libs=yes
12478 dynamic_linker="$host_os dld.so"
12479 shlibpath_var=LD_LIBRARY_PATH
12480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482 soname_spec='${libname}${release}${shared_ext}$major'
12483 if test "X$HPUX_IA64_MODE" = X32; then
12484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12485 else
12486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12487 fi
12488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12489 ;;
12490 hppa*64*)
12491 shrext_cmds='.sl'
12492 hardcode_into_libs=yes
12493 dynamic_linker="$host_os dld.sl"
12494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12497 soname_spec='${libname}${release}${shared_ext}$major'
12498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12500 ;;
12501 *)
12502 shrext_cmds='.sl'
12503 dynamic_linker="$host_os dld.sl"
12504 shlibpath_var=SHLIB_PATH
12505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507 soname_spec='${libname}${release}${shared_ext}$major'
12508 ;;
12509 esac
12510 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12511 postinstall_cmds='chmod 555 $lib'
12512 ;;
12513
62567204 12514interix3*)
12515 version_type=linux
12516 need_lib_prefix=no
12517 need_version=no
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath=no
12523 hardcode_into_libs=yes
12524 ;;
12525
a33e1d91 12526irix5* | irix6* | nonstopux*)
12527 case $host_os in
12528 nonstopux*) version_type=nonstopux ;;
12529 *)
12530 if test "$lt_cv_prog_gnu_ld" = yes; then
12531 version_type=linux
12532 else
12533 version_type=irix
12534 fi ;;
12535 esac
12536 need_lib_prefix=no
12537 need_version=no
12538 soname_spec='${libname}${release}${shared_ext}$major'
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12540 case $host_os in
12541 irix5* | nonstopux*)
12542 libsuff= shlibsuff=
12543 ;;
12544 *)
12545 case $LD in # libtool.m4 will add one of these switches to LD
12546 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12547 libsuff= shlibsuff= libmagic=32-bit;;
12548 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12549 libsuff=32 shlibsuff=N32 libmagic=N32;;
12550 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12551 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12552 *) libsuff= shlibsuff= libmagic=never-match;;
12553 esac
12554 ;;
12555 esac
12556 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12557 shlibpath_overrides_runpath=no
12558 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12559 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12560 hardcode_into_libs=yes
12561 ;;
12562
12563# No shared lib support for Linux oldld, aout, or coff.
12564linux*oldld* | linux*aout* | linux*coff*)
12565 dynamic_linker=no
12566 ;;
12567
12568# This must be Linux ELF.
12569linux*)
12570 version_type=linux
12571 need_lib_prefix=no
12572 need_version=no
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574 soname_spec='${libname}${release}${shared_ext}$major'
12575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=no
12578 # This implies no fast_install, which is unacceptable.
12579 # Some rework will be needed to allow for fast_install
12580 # before this can be enabled.
12581 hardcode_into_libs=yes
12582
12583 # Append ld.so.conf contents to the search path
12584 if test -f /etc/ld.so.conf; then
087278d6 12585 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
a33e1d91 12586 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12587 fi
12588
12589 # We used to test for /lib/ld.so.1 and disable shared libraries on
12590 # powerpc, because MkLinux only supported shared libraries with the
12591 # GNU dynamic linker. Since this was broken with cross compilers,
12592 # most powerpc-linux boxes support dynamic linking these days and
12593 # people can always --disable-shared, the test was removed, and we
12594 # assume the GNU/Linux dynamic linker is in use.
12595 dynamic_linker='GNU/Linux ld.so'
12596 ;;
12597
12598knetbsd*-gnu)
12599 version_type=linux
12600 need_lib_prefix=no
12601 need_version=no
12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 shlibpath_overrides_runpath=no
12606 hardcode_into_libs=yes
12607 dynamic_linker='GNU ld.so'
12608 ;;
12609
12610netbsd*)
12611 version_type=sunos
12612 need_lib_prefix=no
12613 need_version=no
12614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12617 dynamic_linker='NetBSD (a.out) ld.so'
12618 else
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 dynamic_linker='NetBSD ld.elf_so'
12622 fi
12623 shlibpath_var=LD_LIBRARY_PATH
12624 shlibpath_overrides_runpath=yes
12625 hardcode_into_libs=yes
12626 ;;
12627
12628newsos6)
12629 version_type=linux
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631 shlibpath_var=LD_LIBRARY_PATH
12632 shlibpath_overrides_runpath=yes
12633 ;;
12634
12635nto-qnx*)
12636 version_type=linux
12637 need_lib_prefix=no
12638 need_version=no
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12640 soname_spec='${libname}${release}${shared_ext}$major'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=yes
12643 ;;
12644
12645openbsd*)
12646 version_type=sunos
62567204 12647 sys_lib_dlsearch_path_spec="/usr/lib"
a33e1d91 12648 need_lib_prefix=no
087278d6 12649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12650 case $host_os in
12651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12652 *) need_version=no ;;
12653 esac
a33e1d91 12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12658 case $host_os in
12659 openbsd2.[89] | openbsd2.[89].*)
12660 shlibpath_overrides_runpath=no
12661 ;;
12662 *)
12663 shlibpath_overrides_runpath=yes
12664 ;;
12665 esac
12666 else
12667 shlibpath_overrides_runpath=yes
12668 fi
12669 ;;
12670
12671os2*)
12672 libname_spec='$name'
12673 shrext_cmds=".dll"
12674 need_lib_prefix=no
12675 library_names_spec='$libname${shared_ext} $libname.a'
12676 dynamic_linker='OS/2 ld.exe'
12677 shlibpath_var=LIBPATH
12678 ;;
12679
12680osf3* | osf4* | osf5*)
12681 version_type=osf
12682 need_lib_prefix=no
12683 need_version=no
12684 soname_spec='${libname}${release}${shared_ext}$major'
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12689 ;;
12690
a33e1d91 12691solaris*)
12692 version_type=linux
12693 need_lib_prefix=no
12694 need_version=no
12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12696 soname_spec='${libname}${release}${shared_ext}$major'
12697 shlibpath_var=LD_LIBRARY_PATH
12698 shlibpath_overrides_runpath=yes
12699 hardcode_into_libs=yes
12700 # ldd complains unless libraries are executable
12701 postinstall_cmds='chmod +x $lib'
12702 ;;
12703
12704sunos4*)
12705 version_type=sunos
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12708 shlibpath_var=LD_LIBRARY_PATH
12709 shlibpath_overrides_runpath=yes
12710 if test "$with_gnu_ld" = yes; then
12711 need_lib_prefix=no
12712 fi
12713 need_version=yes
12714 ;;
12715
62567204 12716sysv4 | sysv4.3*)
a33e1d91 12717 version_type=linux
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 shlibpath_var=LD_LIBRARY_PATH
12721 case $host_vendor in
12722 sni)
12723 shlibpath_overrides_runpath=no
12724 need_lib_prefix=no
12725 export_dynamic_flag_spec='${wl}-Blargedynsym'
12726 runpath_var=LD_RUN_PATH
12727 ;;
12728 siemens)
12729 need_lib_prefix=no
12730 ;;
12731 motorola)
12732 need_lib_prefix=no
12733 need_version=no
12734 shlibpath_overrides_runpath=no
12735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12736 ;;
12737 esac
12738 ;;
12739
12740sysv4*MP*)
12741 if test -d /usr/nec ;then
12742 version_type=linux
12743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12744 soname_spec='$libname${shared_ext}.$major'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 fi
12747 ;;
12748
62567204 12749sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12750 version_type=freebsd-elf
12751 need_lib_prefix=no
12752 need_version=no
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 hardcode_into_libs=yes
12757 if test "$with_gnu_ld" = yes; then
12758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12759 shlibpath_overrides_runpath=no
12760 else
12761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12762 shlibpath_overrides_runpath=yes
12763 case $host_os in
12764 sco3.2v5*)
12765 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12766 ;;
12767 esac
12768 fi
12769 sys_lib_dlsearch_path_spec='/usr/lib'
12770 ;;
12771
a33e1d91 12772uts4*)
12773 version_type=linux
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 ;;
12778
12779*)
12780 dynamic_linker=no
12781 ;;
12782esac
12783echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12784echo "${ECHO_T}$dynamic_linker" >&6
12785test "$dynamic_linker" = no && can_build_shared=no
12786
62567204 12787variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12788if test "$GCC" = yes; then
12789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12790fi
12791
a33e1d91 12792echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12793echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12794hardcode_action_CXX=
12795if test -n "$hardcode_libdir_flag_spec_CXX" || \
631008fb 12796 test -n "$runpath_var_CXX" || \
12797 test "X$hardcode_automatic_CXX" = "Xyes" ; then
a33e1d91 12798
12799 # We can hardcode non-existant directories.
12800 if test "$hardcode_direct_CXX" != no &&
12801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12802 # have to relink, otherwise we might link with an installed library
12803 # when we should be linking with a yet-to-be-installed one
12804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12805 test "$hardcode_minus_L_CXX" != no; then
12806 # Linking always hardcodes the temporary library directory.
12807 hardcode_action_CXX=relink
12808 else
12809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12810 hardcode_action_CXX=immediate
12811 fi
12812else
12813 # We cannot hardcode anything, or else we can only hardcode existing
12814 # directories.
12815 hardcode_action_CXX=unsupported
12816fi
12817echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12818echo "${ECHO_T}$hardcode_action_CXX" >&6
12819
12820if test "$hardcode_action_CXX" = relink; then
12821 # Fast installation is not supported
12822 enable_fast_install=no
12823elif test "$shlibpath_overrides_runpath" = yes ||
12824 test "$enable_shared" = no; then
12825 # Fast installation is not necessary
12826 enable_fast_install=needless
12827fi
12828
a33e1d91 12829
62567204 12830# The else clause should only fire when bootstrapping the
12831# libtool distribution, otherwise you forgot to ship ltmain.sh
12832# with your package, and you will get complaints that there are
12833# no rules to generate ltmain.sh.
12834if test -f "$ltmain"; then
12835 # See if we are running on zsh, and set the options which allow our commands through
12836 # without removal of \ escapes.
12837 if test -n "${ZSH_VERSION+set}" ; then
12838 setopt NO_GLOB_SUBST
12839 fi
12840 # Now quote all the things that may contain metacharacters while being
12841 # careful not to overquote the AC_SUBSTed values. We take copies of the
12842 # variables and quote the copies for generation of the libtool script.
12843 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12844 SED SHELL STRIP \
12845 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12846 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12847 deplibs_check_method reload_flag reload_cmds need_locks \
12848 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12849 lt_cv_sys_global_symbol_to_c_name_address \
12850 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12851 old_postinstall_cmds old_postuninstall_cmds \
12852 compiler_CXX \
12853 CC_CXX \
12854 LD_CXX \
12855 lt_prog_compiler_wl_CXX \
12856 lt_prog_compiler_pic_CXX \
12857 lt_prog_compiler_static_CXX \
12858 lt_prog_compiler_no_builtin_flag_CXX \
12859 export_dynamic_flag_spec_CXX \
12860 thread_safe_flag_spec_CXX \
12861 whole_archive_flag_spec_CXX \
12862 enable_shared_with_static_runtimes_CXX \
12863 old_archive_cmds_CXX \
12864 old_archive_from_new_cmds_CXX \
12865 predep_objects_CXX \
12866 postdep_objects_CXX \
12867 predeps_CXX \
12868 postdeps_CXX \
12869 compiler_lib_search_path_CXX \
12870 archive_cmds_CXX \
12871 archive_expsym_cmds_CXX \
12872 postinstall_cmds_CXX \
12873 postuninstall_cmds_CXX \
12874 old_archive_from_expsyms_cmds_CXX \
12875 allow_undefined_flag_CXX \
12876 no_undefined_flag_CXX \
12877 export_symbols_cmds_CXX \
12878 hardcode_libdir_flag_spec_CXX \
12879 hardcode_libdir_flag_spec_ld_CXX \
12880 hardcode_libdir_separator_CXX \
12881 hardcode_automatic_CXX \
12882 module_cmds_CXX \
12883 module_expsym_cmds_CXX \
12884 lt_cv_prog_compiler_c_o_CXX \
12885 exclude_expsyms_CXX \
12886 include_expsyms_CXX; do
a33e1d91 12887
62567204 12888 case $var in
12889 old_archive_cmds_CXX | \
12890 old_archive_from_new_cmds_CXX | \
12891 archive_cmds_CXX | \
12892 archive_expsym_cmds_CXX | \
12893 module_cmds_CXX | \
12894 module_expsym_cmds_CXX | \
12895 old_archive_from_expsyms_cmds_CXX | \
12896 export_symbols_cmds_CXX | \
12897 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12898 postinstall_cmds | postuninstall_cmds | \
12899 old_postinstall_cmds | old_postuninstall_cmds | \
12900 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12901 # Double-quote double-evaled strings.
12902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12903 ;;
12904 *)
12905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12906 ;;
12907 esac
12908 done
a33e1d91 12909
62567204 12910 case $lt_echo in
12911 *'\$0 --fallback-echo"')
12912 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12913 ;;
12914 esac
a33e1d91 12915
62567204 12916cfgfile="$ofile"
a33e1d91 12917
62567204 12918 cat <<__EOF__ >> "$cfgfile"
12919# ### BEGIN LIBTOOL TAG CONFIG: $tagname
a33e1d91 12920
62567204 12921# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
af3004ff 12922
62567204 12923# Shell to use when invoking shell scripts.
12924SHELL=$lt_SHELL
af3004ff 12925
62567204 12926# Whether or not to build shared libraries.
12927build_libtool_libs=$enable_shared
af3004ff 12928
62567204 12929# Whether or not to build static libraries.
12930build_old_libs=$enable_static
af3004ff 12931
62567204 12932# Whether or not to add -lc for building shared libraries.
12933build_libtool_need_lc=$archive_cmds_need_lc_CXX
a33e1d91 12934
62567204 12935# Whether or not to disallow shared libs when runtime libs are static
12936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
a33e1d91 12937
62567204 12938# Whether or not to optimize for fast installation.
12939fast_install=$enable_fast_install
a33e1d91 12940
62567204 12941# The host system.
12942host_alias=$host_alias
12943host=$host
12944host_os=$host_os
a33e1d91 12945
62567204 12946# The build system.
12947build_alias=$build_alias
12948build=$build
12949build_os=$build_os
af3004ff 12950
62567204 12951# An echo program that does not interpret backslashes.
12952echo=$lt_echo
af3004ff 12953
62567204 12954# The archiver.
12955AR=$lt_AR
12956AR_FLAGS=$lt_AR_FLAGS
af3004ff 12957
62567204 12958# A C compiler.
12959LTCC=$lt_LTCC
af3004ff 12960
62567204 12961# LTCC compiler flags.
12962LTCFLAGS=$lt_LTCFLAGS
a33e1d91 12963
62567204 12964# A language-specific compiler.
12965CC=$lt_compiler_CXX
a33e1d91 12966
62567204 12967# Is the compiler the GNU C compiler?
12968with_gcc=$GCC_CXX
a33e1d91 12969
62567204 12970# An ERE matcher.
12971EGREP=$lt_EGREP
a33e1d91 12972
62567204 12973# The linker used to build libraries.
12974LD=$lt_LD_CXX
a33e1d91 12975
62567204 12976# Whether we need hard or soft links.
12977LN_S=$lt_LN_S
a33e1d91 12978
62567204 12979# A BSD-compatible nm program.
12980NM=$lt_NM
a33e1d91 12981
62567204 12982# A symbol stripping program
12983STRIP=$lt_STRIP
a33e1d91 12984
62567204 12985# Used to examine libraries when file_magic_cmd begins "file"
12986MAGIC_CMD=$MAGIC_CMD
a33e1d91 12987
62567204 12988# Used on cygwin: DLL creation program.
12989DLLTOOL="$DLLTOOL"
a33e1d91 12990
62567204 12991# Used on cygwin: object dumper.
12992OBJDUMP="$OBJDUMP"
a33e1d91 12993
62567204 12994# Used on cygwin: assembler.
12995AS="$AS"
a33e1d91 12996
62567204 12997# The name of the directory that contains temporary libtool files.
12998objdir=$objdir
a33e1d91 12999
62567204 13000# How to create reloadable object files.
13001reload_flag=$lt_reload_flag
13002reload_cmds=$lt_reload_cmds
a33e1d91 13003
62567204 13004# How to pass a linker flag through the compiler.
13005wl=$lt_lt_prog_compiler_wl_CXX
a33e1d91 13006
62567204 13007# Object file suffix (normally "o").
13008objext="$ac_objext"
a33e1d91 13009
62567204 13010# Old archive suffix (normally "a").
13011libext="$libext"
a33e1d91 13012
62567204 13013# Shared library suffix (normally ".so").
13014shrext_cmds='$shrext_cmds'
a33e1d91 13015
62567204 13016# Executable file suffix (normally "").
13017exeext="$exeext"
a33e1d91 13018
62567204 13019# Additional compiler flags for building library objects.
13020pic_flag=$lt_lt_prog_compiler_pic_CXX
13021pic_mode=$pic_mode
a33e1d91 13022
62567204 13023# What is the maximum length of a command?
13024max_cmd_len=$lt_cv_sys_max_cmd_len
a33e1d91 13025
62567204 13026# Does compiler simultaneously support -c and -o options?
13027compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
a33e1d91 13028
62567204 13029# Must we lock files when doing compilation?
13030need_locks=$lt_need_locks
a33e1d91 13031
62567204 13032# Do we need the lib prefix for modules?
13033need_lib_prefix=$need_lib_prefix
a33e1d91 13034
62567204 13035# Do we need a version for libraries?
13036need_version=$need_version
a33e1d91 13037
62567204 13038# Whether dlopen is supported.
13039dlopen_support=$enable_dlopen
a33e1d91 13040
62567204 13041# Whether dlopen of programs is supported.
13042dlopen_self=$enable_dlopen_self
a33e1d91 13043
62567204 13044# Whether dlopen of statically linked programs is supported.
13045dlopen_self_static=$enable_dlopen_self_static
a33e1d91 13046
62567204 13047# Compiler flag to prevent dynamic linking.
13048link_static_flag=$lt_lt_prog_compiler_static_CXX
a33e1d91 13049
62567204 13050# Compiler flag to turn off builtin functions.
13051no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
a33e1d91 13052
62567204 13053# Compiler flag to allow reflexive dlopens.
13054export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
a33e1d91 13055
62567204 13056# Compiler flag to generate shared objects directly from archives.
13057whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
a33e1d91 13058
62567204 13059# Compiler flag to generate thread-safe objects.
13060thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
a33e1d91 13061
62567204 13062# Library versioning type.
13063version_type=$version_type
a33e1d91 13064
62567204 13065# Format of library name prefix.
13066libname_spec=$lt_libname_spec
a33e1d91 13067
62567204 13068# List of archive names. First name is the real one, the rest are links.
13069# The last name is the one that the linker finds with -lNAME.
13070library_names_spec=$lt_library_names_spec
a33e1d91 13071
62567204 13072# The coded name of the library, if different from the real name.
13073soname_spec=$lt_soname_spec
a33e1d91 13074
62567204 13075# Commands used to build and install an old-style archive.
13076RANLIB=$lt_RANLIB
13077old_archive_cmds=$lt_old_archive_cmds_CXX
13078old_postinstall_cmds=$lt_old_postinstall_cmds
13079old_postuninstall_cmds=$lt_old_postuninstall_cmds
a33e1d91 13080
62567204 13081# Create an old-style archive from a shared archive.
13082old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
a33e1d91 13083
62567204 13084# Create a temporary old-style archive to link instead of a shared archive.
13085old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
a33e1d91 13086
62567204 13087# Commands used to build and install a shared archive.
13088archive_cmds=$lt_archive_cmds_CXX
13089archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13090postinstall_cmds=$lt_postinstall_cmds
13091postuninstall_cmds=$lt_postuninstall_cmds
a33e1d91 13092
62567204 13093# Commands used to build a loadable module (assumed same as above if empty)
13094module_cmds=$lt_module_cmds_CXX
13095module_expsym_cmds=$lt_module_expsym_cmds_CXX
a33e1d91 13096
62567204 13097# Commands to strip libraries.
13098old_striplib=$lt_old_striplib
13099striplib=$lt_striplib
a33e1d91 13100
62567204 13101# Dependencies to place before the objects being linked to create a
13102# shared library.
13103predep_objects=$lt_predep_objects_CXX
a33e1d91 13104
62567204 13105# Dependencies to place after the objects being linked to create a
13106# shared library.
13107postdep_objects=$lt_postdep_objects_CXX
a33e1d91 13108
62567204 13109# Dependencies to place before the objects being linked to create a
13110# shared library.
13111predeps=$lt_predeps_CXX
a33e1d91 13112
62567204 13113# Dependencies to place after the objects being linked to create a
13114# shared library.
13115postdeps=$lt_postdeps_CXX
a33e1d91 13116
62567204 13117# The library search path used internally by the compiler when linking
13118# a shared library.
13119compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
a33e1d91 13120
62567204 13121# Method to check whether dependent libraries are shared objects.
13122deplibs_check_method=$lt_deplibs_check_method
a33e1d91 13123
62567204 13124# Command to use when deplibs_check_method == file_magic.
13125file_magic_cmd=$lt_file_magic_cmd
a33e1d91 13126
62567204 13127# Flag that allows shared libraries with undefined symbols to be built.
13128allow_undefined_flag=$lt_allow_undefined_flag_CXX
a33e1d91 13129
62567204 13130# Flag that forces no undefined symbols.
13131no_undefined_flag=$lt_no_undefined_flag_CXX
a33e1d91 13132
62567204 13133# Commands used to finish a libtool library installation in a directory.
13134finish_cmds=$lt_finish_cmds
a33e1d91 13135
62567204 13136# Same as above, but a single script fragment to be evaled but not shown.
13137finish_eval=$lt_finish_eval
a33e1d91 13138
62567204 13139# Take the output of nm and produce a listing of raw symbols and C names.
13140global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
a33e1d91 13141
62567204 13142# Transform the output of nm in a proper C declaration
13143global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
a33e1d91 13144
62567204 13145# Transform the output of nm in a C name address pair
13146global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
a33e1d91 13147
62567204 13148# This is the shared library runtime path variable.
13149runpath_var=$runpath_var
a33e1d91 13150
13151# This is the shared library path variable.
13152shlibpath_var=$shlibpath_var
13153
13154# Is shlibpath searched before the hard-coded library search path?
13155shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13156
13157# How to hardcode a shared library path into an executable.
13158hardcode_action=$hardcode_action_CXX
13159
13160# Whether we should hardcode library paths into libraries.
13161hardcode_into_libs=$hardcode_into_libs
13162
13163# Flag to hardcode \$libdir into a binary during linking.
13164# This must work even if \$libdir does not exist.
13165hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13166
13167# If ld is used when linking, flag to hardcode \$libdir into
13168# a binary during linking. This must work even if \$libdir does
13169# not exist.
13170hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13171
13172# Whether we need a single -rpath flag with a separated argument.
13173hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13174
13175# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13176# resulting binary.
13177hardcode_direct=$hardcode_direct_CXX
13178
13179# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13180# resulting binary.
13181hardcode_minus_L=$hardcode_minus_L_CXX
13182
13183# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13184# the resulting binary.
13185hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13186
13187# Set to yes if building a shared library automatically hardcodes DIR into the library
13188# and all subsequent libraries and executables linked against it.
13189hardcode_automatic=$hardcode_automatic_CXX
13190
13191# Variables whose values should be saved in libtool wrapper scripts and
13192# restored at relink time.
13193variables_saved_for_relink="$variables_saved_for_relink"
13194
13195# Whether libtool must link a program against all its dependency libraries.
13196link_all_deplibs=$link_all_deplibs_CXX
13197
13198# Compile-time system search path for libraries
13199sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13200
13201# Run-time system search path for libraries
13202sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13203
13204# Fix the shell variable \$srcfile for the compiler.
13205fix_srcfile_path="$fix_srcfile_path_CXX"
13206
13207# Set to yes if exported symbols are required.
13208always_export_symbols=$always_export_symbols_CXX
13209
13210# The commands to list exported symbols.
13211export_symbols_cmds=$lt_export_symbols_cmds_CXX
13212
13213# The commands to extract the exported symbol list from a shared archive.
13214extract_expsyms_cmds=$lt_extract_expsyms_cmds
13215
13216# Symbols that should not be listed in the preloaded symbols.
13217exclude_expsyms=$lt_exclude_expsyms_CXX
13218
13219# Symbols that must always be exported.
13220include_expsyms=$lt_include_expsyms_CXX
13221
13222# ### END LIBTOOL TAG CONFIG: $tagname
13223
13224__EOF__
13225
13226
13227else
13228 # If there is no Makefile yet, we rely on a make rule to execute
13229 # `config.status --recheck' to rerun these tests and create the
13230 # libtool script then.
13231 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13232 if test -f "$ltmain_in"; then
13233 test -f Makefile && make "$ltmain"
13234 fi
13235fi
13236
13237
13238ac_ext=c
13239ac_cpp='$CPP $CPPFLAGS'
13240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13242ac_compiler_gnu=$ac_cv_c_compiler_gnu
13243
13244CC=$lt_save_CC
13245LDCXX=$LD
13246LD=$lt_save_LD
13247GCC=$lt_save_GCC
13248with_gnu_ldcxx=$with_gnu_ld
13249with_gnu_ld=$lt_save_with_gnu_ld
13250lt_cv_path_LDCXX=$lt_cv_path_LD
13251lt_cv_path_LD=$lt_save_path_LD
13252lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13253lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13254
13255 else
13256 tagname=""
13257 fi
13258 ;;
13259
13260 F77)
13261 if test -n "$F77" && test "X$F77" != "Xno"; then
13262
13263ac_ext=f
13264ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13265ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13266ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13267
13268
13269archive_cmds_need_lc_F77=no
13270allow_undefined_flag_F77=
13271always_export_symbols_F77=no
13272archive_expsym_cmds_F77=
13273export_dynamic_flag_spec_F77=
13274hardcode_direct_F77=no
13275hardcode_libdir_flag_spec_F77=
13276hardcode_libdir_flag_spec_ld_F77=
13277hardcode_libdir_separator_F77=
13278hardcode_minus_L_F77=no
13279hardcode_automatic_F77=no
13280module_cmds_F77=
13281module_expsym_cmds_F77=
13282link_all_deplibs_F77=unknown
13283old_archive_cmds_F77=$old_archive_cmds
13284no_undefined_flag_F77=
13285whole_archive_flag_spec_F77=
13286enable_shared_with_static_runtimes_F77=no
13287
13288# Source file extension for f77 test sources.
13289ac_ext=f
13290
13291# Object file extension for compiled f77 test sources.
13292objext=o
13293objext_F77=$objext
13294
13295# Code to be used in simple compile tests
13296lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13297
13298# Code to be used in simple link tests
13299lt_simple_link_test_code=" program t\n end\n"
13300
13301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13302
13303# If no C compiler was specified, use CC.
13304LTCC=${LTCC-"$CC"}
13305
62567204 13306# If no C compiler flags were specified, use CFLAGS.
13307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13308
a33e1d91 13309# Allow CC to be a program name with arguments.
13310compiler=$CC
13311
13312
087278d6 13313# save warnings/boilerplate of simple test code
13314ac_outfile=conftest.$ac_objext
13315printf "$lt_simple_compile_test_code" >conftest.$ac_ext
62567204 13316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 13317_lt_compiler_boilerplate=`cat conftest.err`
13318$rm conftest*
13319
13320ac_outfile=conftest.$ac_objext
13321printf "$lt_simple_link_test_code" >conftest.$ac_ext
62567204 13322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 13323_lt_linker_boilerplate=`cat conftest.err`
13324$rm conftest*
13325
13326
a33e1d91 13327# Allow CC to be a program name with arguments.
13328lt_save_CC="$CC"
13329CC=${F77-"f77"}
13330compiler=$CC
13331compiler_F77=$CC
087278d6 13332for cc_temp in $compiler""; do
13333 case $cc_temp in
13334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13336 \-*) ;;
13337 *) break;;
13338 esac
13339done
13340cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13341
a33e1d91 13342
13343echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13344echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13345echo "$as_me:$LINENO: result: $can_build_shared" >&5
13346echo "${ECHO_T}$can_build_shared" >&6
13347
13348echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13349echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13350test "$can_build_shared" = "no" && enable_shared=no
13351
13352# On AIX, shared libraries and static libraries use the same namespace, and
13353# are all built from PIC.
693f5c2e 13354case $host_os in
a33e1d91 13355aix3*)
13356 test "$enable_shared" = yes && enable_static=no
13357 if test -n "$RANLIB"; then
13358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13359 postinstall_cmds='$RANLIB $lib'
13360 fi
13361 ;;
13362aix4* | aix5*)
087278d6 13363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13364 test "$enable_shared" = yes && enable_static=no
13365 fi
a33e1d91 13366 ;;
13367esac
13368echo "$as_me:$LINENO: result: $enable_shared" >&5
13369echo "${ECHO_T}$enable_shared" >&6
13370
13371echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13372echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13373# Make sure either enable_shared or enable_static is yes.
13374test "$enable_shared" = yes || enable_static=yes
13375echo "$as_me:$LINENO: result: $enable_static" >&5
13376echo "${ECHO_T}$enable_static" >&6
13377
a33e1d91 13378GCC_F77="$G77"
13379LD_F77="$LD"
13380
13381lt_prog_compiler_wl_F77=
13382lt_prog_compiler_pic_F77=
13383lt_prog_compiler_static_F77=
13384
13385echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13386echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13387
13388 if test "$GCC" = yes; then
13389 lt_prog_compiler_wl_F77='-Wl,'
13390 lt_prog_compiler_static_F77='-static'
13391
13392 case $host_os in
13393 aix*)
13394 # All AIX code is PIC.
13395 if test "$host_cpu" = ia64; then
13396 # AIX 5 now supports IA64 processor
13397 lt_prog_compiler_static_F77='-Bstatic'
13398 fi
13399 ;;
13400
13401 amigaos*)
13402 # FIXME: we need at least 68020 code to build shared libraries, but
13403 # adding the `-m68020' flag to GCC prevents building anything better,
13404 # like `-m68040'.
13405 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13406 ;;
13407
13408 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13409 # PIC is the default for these OSes.
13410 ;;
13411
13412 mingw* | pw32* | os2*)
13413 # This hack is so that the source file can tell whether it is being
13414 # built for inclusion in a dll (and should export symbols for example).
13415 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13416 ;;
13417
13418 darwin* | rhapsody*)
13419 # PIC is the default on this platform
13420 # Common symbols not allowed in MH_DYLIB files
13421 lt_prog_compiler_pic_F77='-fno-common'
13422 ;;
13423
62567204 13424 interix3*)
13425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13426 # Instead, we relocate shared libraries at runtime.
13427 ;;
13428
a33e1d91 13429 msdosdjgpp*)
13430 # Just because we use GCC doesn't mean we suddenly get shared libraries
13431 # on systems that don't support them.
13432 lt_prog_compiler_can_build_shared_F77=no
13433 enable_shared=no
13434 ;;
13435
13436 sysv4*MP*)
13437 if test -d /usr/nec; then
13438 lt_prog_compiler_pic_F77=-Kconform_pic
13439 fi
13440 ;;
13441
13442 hpux*)
13443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13444 # not for PA HP-UX.
693f5c2e 13445 case $host_cpu in
a33e1d91 13446 hppa*64*|ia64*)
13447 # +Z the default
13448 ;;
13449 *)
13450 lt_prog_compiler_pic_F77='-fPIC'
13451 ;;
13452 esac
13453 ;;
13454
13455 *)
13456 lt_prog_compiler_pic_F77='-fPIC'
13457 ;;
13458 esac
13459 else
13460 # PORTME Check for flag to pass linker flags through the system compiler.
13461 case $host_os in
13462 aix*)
13463 lt_prog_compiler_wl_F77='-Wl,'
13464 if test "$host_cpu" = ia64; then
13465 # AIX 5 now supports IA64 processor
13466 lt_prog_compiler_static_F77='-Bstatic'
13467 else
13468 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13469 fi
13470 ;;
631008fb 13471 darwin*)
13472 # PIC is the default on this platform
13473 # Common symbols not allowed in MH_DYLIB files
087278d6 13474 case $cc_basename in
631008fb 13475 xlc*)
13476 lt_prog_compiler_pic_F77='-qnocommon'
13477 lt_prog_compiler_wl_F77='-Wl,'
13478 ;;
13479 esac
13480 ;;
a33e1d91 13481
13482 mingw* | pw32* | os2*)
13483 # This hack is so that the source file can tell whether it is being
13484 # built for inclusion in a dll (and should export symbols for example).
13485 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13486 ;;
13487
13488 hpux9* | hpux10* | hpux11*)
13489 lt_prog_compiler_wl_F77='-Wl,'
13490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13491 # not for PA HP-UX.
693f5c2e 13492 case $host_cpu in
a33e1d91 13493 hppa*64*|ia64*)
13494 # +Z the default
13495 ;;
13496 *)
13497 lt_prog_compiler_pic_F77='+Z'
13498 ;;
13499 esac
13500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13501 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13502 ;;
13503
13504 irix5* | irix6* | nonstopux*)
13505 lt_prog_compiler_wl_F77='-Wl,'
13506 # PIC (with -KPIC) is the default.
13507 lt_prog_compiler_static_F77='-non_shared'
13508 ;;
13509
13510 newsos6)
13511 lt_prog_compiler_pic_F77='-KPIC'
13512 lt_prog_compiler_static_F77='-Bstatic'
13513 ;;
13514
13515 linux*)
087278d6 13516 case $cc_basename in
a33e1d91 13517 icc* | ecc*)
13518 lt_prog_compiler_wl_F77='-Wl,'
13519 lt_prog_compiler_pic_F77='-KPIC'
13520 lt_prog_compiler_static_F77='-static'
13521 ;;
693f5c2e 13522 pgcc* | pgf77* | pgf90* | pgf95*)
087278d6 13523 # Portland Group compilers (*not* the Pentium gcc compiler,
13524 # which looks to be a dead project)
13525 lt_prog_compiler_wl_F77='-Wl,'
13526 lt_prog_compiler_pic_F77='-fpic'
693f5c2e 13527 lt_prog_compiler_static_F77='-Bstatic'
087278d6 13528 ;;
a33e1d91 13529 ccc*)
13530 lt_prog_compiler_wl_F77='-Wl,'
13531 # All Alpha code is PIC.
13532 lt_prog_compiler_static_F77='-non_shared'
13533 ;;
13534 esac
13535 ;;
13536
13537 osf3* | osf4* | osf5*)
13538 lt_prog_compiler_wl_F77='-Wl,'
13539 # All OSF/1 code is PIC.
13540 lt_prog_compiler_static_F77='-non_shared'
13541 ;;
13542
a33e1d91 13543 solaris*)
a33e1d91 13544 lt_prog_compiler_pic_F77='-KPIC'
13545 lt_prog_compiler_static_F77='-Bstatic'
087278d6 13546 case $cc_basename in
13547 f77* | f90* | f95*)
13548 lt_prog_compiler_wl_F77='-Qoption ld ';;
13549 *)
13550 lt_prog_compiler_wl_F77='-Wl,';;
13551 esac
a33e1d91 13552 ;;
13553
13554 sunos4*)
13555 lt_prog_compiler_wl_F77='-Qoption ld '
13556 lt_prog_compiler_pic_F77='-PIC'
13557 lt_prog_compiler_static_F77='-Bstatic'
13558 ;;
13559
62567204 13560 sysv4 | sysv4.2uw2* | sysv4.3*)
a33e1d91 13561 lt_prog_compiler_wl_F77='-Wl,'
13562 lt_prog_compiler_pic_F77='-KPIC'
13563 lt_prog_compiler_static_F77='-Bstatic'
13564 ;;
13565
13566 sysv4*MP*)
13567 if test -d /usr/nec ;then
13568 lt_prog_compiler_pic_F77='-Kconform_pic'
13569 lt_prog_compiler_static_F77='-Bstatic'
13570 fi
13571 ;;
13572
62567204 13573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13574 lt_prog_compiler_wl_F77='-Wl,'
13575 lt_prog_compiler_pic_F77='-KPIC'
13576 lt_prog_compiler_static_F77='-Bstatic'
13577 ;;
13578
087278d6 13579 unicos*)
13580 lt_prog_compiler_wl_F77='-Wl,'
13581 lt_prog_compiler_can_build_shared_F77=no
13582 ;;
13583
a33e1d91 13584 uts4*)
13585 lt_prog_compiler_pic_F77='-pic'
13586 lt_prog_compiler_static_F77='-Bstatic'
13587 ;;
13588
13589 *)
13590 lt_prog_compiler_can_build_shared_F77=no
13591 ;;
13592 esac
13593 fi
13594
13595echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13596echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13597
13598#
13599# Check to make sure the PIC flag actually works.
13600#
13601if test -n "$lt_prog_compiler_pic_F77"; then
13602
13603echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13604echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13605if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 lt_prog_compiler_pic_works_F77=no
13609 ac_outfile=conftest.$ac_objext
13610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13611 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13612 # Insert the option either (1) after the last *FLAGS variable, or
13613 # (2) before a word containing "conftest.", or (3) at the end.
13614 # Note that $ac_compile itself does not contain backslashes and begins
13615 # with a dollar sign (not a hyphen), so the echo should work correctly.
13616 # The option is referenced via a variable to avoid confusing sed.
13617 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 13618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 13619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13620 -e 's:$: $lt_compiler_flag:'`
00b2804c 13621 (eval echo "\"\$as_me:13621: $lt_compile\"" >&5)
a33e1d91 13622 (eval "$lt_compile" 2>conftest.err)
13623 ac_status=$?
13624 cat conftest.err >&5
00b2804c 13625 echo "$as_me:13625: \$? = $ac_status" >&5
a33e1d91 13626 if (exit $ac_status) && test -s "$ac_outfile"; then
13627 # The compiler can only warn and ignore the option if not recognized
087278d6 13628 # So say no if there are warnings other than the usual output.
62567204 13629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a33e1d91 13632 lt_prog_compiler_pic_works_F77=yes
13633 fi
13634 fi
13635 $rm conftest*
13636
13637fi
13638echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13639echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13640
13641if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13642 case $lt_prog_compiler_pic_F77 in
13643 "" | " "*) ;;
13644 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13645 esac
13646else
13647 lt_prog_compiler_pic_F77=
13648 lt_prog_compiler_can_build_shared_F77=no
13649fi
13650
13651fi
693f5c2e 13652case $host_os in
a33e1d91 13653 # For platforms which do not support PIC, -DPIC is meaningless:
13654 *djgpp*)
13655 lt_prog_compiler_pic_F77=
13656 ;;
13657 *)
13658 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13659 ;;
13660esac
13661
62567204 13662#
13663# Check to make sure the static flag actually works.
13664#
13665wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13666echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13667echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13668if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 lt_prog_compiler_static_works_F77=no
13672 save_LDFLAGS="$LDFLAGS"
13673 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13674 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13676 # The linker can only warn and ignore the option if not recognized
13677 # So say no if there are warnings
13678 if test -s conftest.err; then
13679 # Append any errors to the config.log.
13680 cat conftest.err 1>&5
13681 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13683 if diff conftest.exp conftest.er2 >/dev/null; then
13684 lt_prog_compiler_static_works_F77=yes
13685 fi
13686 else
13687 lt_prog_compiler_static_works_F77=yes
13688 fi
13689 fi
13690 $rm conftest*
13691 LDFLAGS="$save_LDFLAGS"
13692
13693fi
13694echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13695echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13696
13697if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13698 :
13699else
13700 lt_prog_compiler_static_F77=
13701fi
13702
13703
a33e1d91 13704echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13705echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13706if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708else
13709 lt_cv_prog_compiler_c_o_F77=no
13710 $rm -r conftest 2>/dev/null
13711 mkdir conftest
13712 cd conftest
13713 mkdir out
13714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13715
13716 lt_compiler_flag="-o out/conftest2.$ac_objext"
13717 # Insert the option either (1) after the last *FLAGS variable, or
13718 # (2) before a word containing "conftest.", or (3) at the end.
13719 # Note that $ac_compile itself does not contain backslashes and begins
13720 # with a dollar sign (not a hyphen), so the echo should work correctly.
13721 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 13722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 13723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13724 -e 's:$: $lt_compiler_flag:'`
00b2804c 13725 (eval echo "\"\$as_me:13725: $lt_compile\"" >&5)
a33e1d91 13726 (eval "$lt_compile" 2>out/conftest.err)
13727 ac_status=$?
13728 cat out/conftest.err >&5
00b2804c 13729 echo "$as_me:13729: \$? = $ac_status" >&5
a33e1d91 13730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13731 then
13732 # The compiler can only warn and ignore the option if not recognized
13733 # So say no if there are warnings
62567204 13734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a33e1d91 13737 lt_cv_prog_compiler_c_o_F77=yes
13738 fi
13739 fi
693f5c2e 13740 chmod u+w . 2>&5
a33e1d91 13741 $rm conftest*
13742 # SGI C++ compiler will create directory out/ii_files/ for
13743 # template instantiation
13744 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13745 $rm out/* && rmdir out
13746 cd ..
13747 rmdir conftest
13748 $rm conftest*
13749
13750fi
13751echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13752echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13753
13754
13755hard_links="nottested"
13756if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13757 # do not overwrite the value of need_locks provided by the user
13758 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13759echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13760 hard_links=yes
13761 $rm conftest*
13762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13763 touch conftest.a
13764 ln conftest.a conftest.b 2>&5 || hard_links=no
13765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13766 echo "$as_me:$LINENO: result: $hard_links" >&5
13767echo "${ECHO_T}$hard_links" >&6
13768 if test "$hard_links" = no; then
13769 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13770echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13771 need_locks=warn
13772 fi
13773else
13774 need_locks=no
13775fi
13776
13777echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13778echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13779
13780 runpath_var=
13781 allow_undefined_flag_F77=
13782 enable_shared_with_static_runtimes_F77=no
13783 archive_cmds_F77=
13784 archive_expsym_cmds_F77=
13785 old_archive_From_new_cmds_F77=
13786 old_archive_from_expsyms_cmds_F77=
13787 export_dynamic_flag_spec_F77=
13788 whole_archive_flag_spec_F77=
13789 thread_safe_flag_spec_F77=
13790 hardcode_libdir_flag_spec_F77=
13791 hardcode_libdir_flag_spec_ld_F77=
13792 hardcode_libdir_separator_F77=
13793 hardcode_direct_F77=no
13794 hardcode_minus_L_F77=no
13795 hardcode_shlibpath_var_F77=unsupported
13796 link_all_deplibs_F77=unknown
13797 hardcode_automatic_F77=no
13798 module_cmds_F77=
13799 module_expsym_cmds_F77=
13800 always_export_symbols_F77=no
13801 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13802 # include_expsyms should be a list of space-separated symbols to be *always*
13803 # included in the symbol list
13804 include_expsyms_F77=
13805 # exclude_expsyms can be an extended regexp of symbols to exclude
13806 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13807 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13808 # as well as any symbol that contains `d'.
13809 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13810 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13811 # platforms (ab)use it in PIC code, but their linkers get confused if
13812 # the symbol is explicitly referenced. Since portable code cannot
13813 # rely on this symbol name, it's probably fine to never include it in
13814 # preloaded symbol tables.
13815 extract_expsyms_cmds=
087278d6 13816 # Just being paranoid about ensuring that cc_basename is set.
13817 for cc_temp in $compiler""; do
13818 case $cc_temp in
13819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13821 \-*) ;;
13822 *) break;;
13823 esac
13824done
13825cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a33e1d91 13826
13827 case $host_os in
13828 cygwin* | mingw* | pw32*)
13829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13830 # When not using gcc, we currently assume that we are using
13831 # Microsoft Visual C++.
13832 if test "$GCC" != yes; then
13833 with_gnu_ld=no
13834 fi
13835 ;;
62567204 13836 interix*)
13837 # we just hope/assume this is gcc and not c89 (= MSVC++)
13838 with_gnu_ld=yes
13839 ;;
a33e1d91 13840 openbsd*)
13841 with_gnu_ld=no
13842 ;;
13843 esac
13844
13845 ld_shlibs_F77=yes
13846 if test "$with_gnu_ld" = yes; then
13847 # If archive_cmds runs LD, not CC, wlarc should be empty
13848 wlarc='${wl}'
13849
087278d6 13850 # Set some defaults for GNU ld with shared library support. These
13851 # are reset later if shared libraries are not supported. Putting them
13852 # here allows them to be overridden if necessary.
13853 runpath_var=LD_RUN_PATH
13854 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13855 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13856 # ancient GNU ld didn't support --whole-archive et. al.
13857 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13858 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13859 else
13860 whole_archive_flag_spec_F77=
13861 fi
13862 supports_anon_versioning=no
13863 case `$LD -v 2>/dev/null` in
13864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13867 *\ 2.11.*) ;; # other 2.11 versions
13868 *) supports_anon_versioning=yes ;;
13869 esac
13870
a33e1d91 13871 # See if GNU ld supports shared libraries.
13872 case $host_os in
13873 aix3* | aix4* | aix5*)
13874 # On AIX/PPC, the GNU linker is very broken
13875 if test "$host_cpu" != ia64; then
13876 ld_shlibs_F77=no
13877 cat <<EOF 1>&2
13878
13879*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13880*** to be unable to reliably create shared libraries on AIX.
13881*** Therefore, libtool is disabling shared libraries support. If you
13882*** really care for shared libraries, you may want to modify your PATH
13883*** so that a non-GNU linker is found, and then restart.
13884
13885EOF
13886 fi
13887 ;;
13888
13889 amigaos*)
13890 archive_cmds_F77='$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)'
13891 hardcode_libdir_flag_spec_F77='-L$libdir'
13892 hardcode_minus_L_F77=yes
13893
13894 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13895 # that the semantics of dynamic libraries on AmigaOS, at least up
13896 # to version 4, is to share data among multiple programs linked
13897 # with the same dynamic library. Since this doesn't match the
13898 # behavior of shared libraries on other platforms, we can't use
13899 # them.
13900 ld_shlibs_F77=no
13901 ;;
13902
13903 beos*)
13904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13905 allow_undefined_flag_F77=unsupported
13906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13907 # support --undefined. This deserves some investigation. FIXME
13908 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13909 else
13910 ld_shlibs_F77=no
13911 fi
13912 ;;
13913
13914 cygwin* | mingw* | pw32*)
13915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13916 # as there is no search path for DLLs.
13917 hardcode_libdir_flag_spec_F77='-L$libdir'
13918 allow_undefined_flag_F77=unsupported
13919 always_export_symbols_F77=no
13920 enable_shared_with_static_runtimes_F77=yes
087278d6 13921 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a33e1d91 13922
13923 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
62567204 13924 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 13925 # If the export-symbols file already is a .def file (1st line
13926 # is EXPORTS), use it as is; otherwise, prepend...
13927 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13928 cp $export_symbols $output_objdir/$soname.def;
13929 else
13930 echo EXPORTS > $output_objdir/$soname.def;
13931 cat $export_symbols >> $output_objdir/$soname.def;
13932 fi~
62567204 13933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 13934 else
087278d6 13935 ld_shlibs_F77=no
13936 fi
13937 ;;
13938
62567204 13939 interix3*)
13940 hardcode_direct_F77=no
13941 hardcode_shlibpath_var_F77=no
13942 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13943 export_dynamic_flag_spec_F77='${wl}-E'
13944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13945 # Instead, shared libraries are loaded at an image base (0x10000000 by
13946 # default) and relocated if they conflict, which is a slow very memory
13947 # consuming and fragmenting process. To avoid this, we pick a random,
13948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13950 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13951 archive_expsym_cmds_F77='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'
13952 ;;
13953
087278d6 13954 linux*)
13955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13956 tmp_addflag=
13957 case $cc_basename,$host_cpu in
13958 pgcc*) # Portland Group C compiler
693f5c2e 13959 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 13960 tmp_addflag=' $pic_flag'
13961 ;;
693f5c2e 13962 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13963 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 13964 tmp_addflag=' $pic_flag -Mnomain' ;;
13965 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13966 tmp_addflag=' -i_dynamic' ;;
13967 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13968 tmp_addflag=' -i_dynamic -nofor_main' ;;
13969 ifc* | ifort*) # Intel Fortran compiler
13970 tmp_addflag=' -nofor_main' ;;
13971 esac
13972 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13973
13974 if test $supports_anon_versioning = yes; then
13975 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13977 $echo "local: *; };" >> $output_objdir/$libname.ver~
13978 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13979 fi
13980 else
13981 ld_shlibs_F77=no
a33e1d91 13982 fi
13983 ;;
13984
6263d81f 13985 netbsd*)
a33e1d91 13986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13987 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13988 wlarc=
13989 else
13990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13991 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13992 fi
13993 ;;
13994
62567204 13995 solaris*)
a33e1d91 13996 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13997 ld_shlibs_F77=no
13998 cat <<EOF 1>&2
13999
14000*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14001*** create shared libraries on Solaris systems. Therefore, libtool
14002*** is disabling shared libraries support. We urge you to upgrade GNU
14003*** binutils to release 2.9.1 or newer. Another option is to modify
14004*** your PATH or compiler configuration so that the native linker is
14005*** used, and then restart.
14006
14007EOF
14008 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14009 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14011 else
14012 ld_shlibs_F77=no
14013 fi
14014 ;;
14015
62567204 14016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14017 case `$LD -v 2>&1` in
14018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14019 ld_shlibs_F77=no
14020 cat <<_LT_EOF 1>&2
14021
14022*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14023*** reliably create shared libraries on SCO systems. Therefore, libtool
14024*** is disabling shared libraries support. We urge you to upgrade GNU
14025*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14026*** your PATH or compiler configuration so that the native linker is
14027*** used, and then restart.
14028
14029_LT_EOF
14030 ;;
14031 *)
14032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14033 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14034 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14035 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14036 else
14037 ld_shlibs_F77=no
14038 fi
14039 ;;
14040 esac
14041 ;;
14042
a33e1d91 14043 sunos4*)
14044 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14045 wlarc=
14046 hardcode_direct_F77=yes
14047 hardcode_shlibpath_var_F77=no
14048 ;;
14049
a33e1d91 14050 *)
14051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14052 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14053 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14054 else
14055 ld_shlibs_F77=no
14056 fi
14057 ;;
14058 esac
14059
087278d6 14060 if test "$ld_shlibs_F77" = no; then
14061 runpath_var=
14062 hardcode_libdir_flag_spec_F77=
14063 export_dynamic_flag_spec_F77=
14064 whole_archive_flag_spec_F77=
a33e1d91 14065 fi
14066 else
14067 # PORTME fill in a description of your system's linker (not GNU ld)
14068 case $host_os in
14069 aix3*)
14070 allow_undefined_flag_F77=unsupported
14071 always_export_symbols_F77=yes
14072 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14073 # Note: this linker hardcodes the directories in LIBPATH if there
14074 # are no directories specified by -L.
14075 hardcode_minus_L_F77=yes
62567204 14076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a33e1d91 14077 # Neither direct hardcoding nor static linking is supported with a
14078 # broken collect2.
14079 hardcode_direct_F77=unsupported
14080 fi
14081 ;;
14082
14083 aix4* | aix5*)
14084 if test "$host_cpu" = ia64; then
14085 # On IA64, the linker does run time linking by default, so we don't
14086 # have to do anything special.
14087 aix_use_runtimelinking=no
14088 exp_sym_flag='-Bexport'
14089 no_entry_flag=""
14090 else
14091 # If we're using GNU nm, then we don't want the "-C" option.
14092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14093 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14094 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14095 else
14096 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14097 fi
14098 aix_use_runtimelinking=no
14099
14100 # Test if we are trying to use run time linking or normal
14101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14102 # need to do runtime linking.
14103 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14104 for ld_flag in $LDFLAGS; do
14105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14106 aix_use_runtimelinking=yes
14107 break
14108 fi
14109 done
62567204 14110 ;;
a33e1d91 14111 esac
14112
14113 exp_sym_flag='-bexport'
14114 no_entry_flag='-bnoentry'
14115 fi
14116
14117 # When large executables or shared objects are built, AIX ld can
14118 # have problems creating the table of contents. If linking a library
14119 # or program results in "error TOC overflow" add -mminimal-toc to
14120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14122
14123 archive_cmds_F77=''
14124 hardcode_direct_F77=yes
14125 hardcode_libdir_separator_F77=':'
14126 link_all_deplibs_F77=yes
14127
14128 if test "$GCC" = yes; then
087278d6 14129 case $host_os in aix4.[012]|aix4.[012].*)
a33e1d91 14130 # We only want to do this on AIX 4.2 and lower, the check
14131 # below for broken collect2 doesn't work under 4.3+
14132 collect2name=`${CC} -print-prog-name=collect2`
14133 if test -f "$collect2name" && \
14134 strings "$collect2name" | grep resolve_lib_name >/dev/null
14135 then
14136 # We have reworked collect2
14137 hardcode_direct_F77=yes
14138 else
14139 # We have old collect2
14140 hardcode_direct_F77=unsupported
14141 # It fails to find uninstalled libraries when the uninstalled
14142 # path is not listed in the libpath. Setting hardcode_minus_L
14143 # to unsupported forces relinking
14144 hardcode_minus_L_F77=yes
14145 hardcode_libdir_flag_spec_F77='-L$libdir'
14146 hardcode_libdir_separator_F77=
14147 fi
62567204 14148 ;;
a33e1d91 14149 esac
14150 shared_flag='-shared'
087278d6 14151 if test "$aix_use_runtimelinking" = yes; then
14152 shared_flag="$shared_flag "'${wl}-G'
14153 fi
a33e1d91 14154 else
14155 # not using gcc
14156 if test "$host_cpu" = ia64; then
14157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14158 # chokes on -Wl,-G. The following line is correct:
14159 shared_flag='-G'
14160 else
62567204 14161 if test "$aix_use_runtimelinking" = yes; then
a33e1d91 14162 shared_flag='${wl}-G'
14163 else
14164 shared_flag='${wl}-bM:SRE'
62567204 14165 fi
a33e1d91 14166 fi
14167 fi
14168
14169 # It seems that -bexpall does not export symbols beginning with
14170 # underscore (_), so it is better to generate a list of symbols to export.
14171 always_export_symbols_F77=yes
14172 if test "$aix_use_runtimelinking" = yes; then
14173 # Warning - without using the other runtime loading flags (-brtl),
14174 # -berok will link without error, but may produce a broken library.
14175 allow_undefined_flag_F77='-berok'
14176 # Determine the default libpath from the value encoded in an empty executable.
14177 cat >conftest.$ac_ext <<_ACEOF
14178 program main
14179
14180 end
14181_ACEOF
14182rm -f conftest.$ac_objext conftest$ac_exeext
14183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 14184 (eval $ac_link) 2>conftest.er1
a33e1d91 14185 ac_status=$?
af3004ff 14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
a33e1d91 14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
6263d81f 14191 { ac_try='test -z "$ac_f77_werror_flag"
14192 || test ! -s conftest.err'
af3004ff 14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest$ac_exeext'
a33e1d91 14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204
14205aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14206}'`
14207# Check for a 64-bit object if we didn't find anything.
14208if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14209}'`; fi
14210else
14211 echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214fi
af3004ff 14215rm -f conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
a33e1d91 14217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14218
14219 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
62567204 14220 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a33e1d91 14221 else
14222 if test "$host_cpu" = ia64; then
14223 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14224 allow_undefined_flag_F77="-z nodefs"
62567204 14225 archive_expsym_cmds_F77="\$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"
a33e1d91 14226 else
14227 # Determine the default libpath from the value encoded in an empty executable.
14228 cat >conftest.$ac_ext <<_ACEOF
14229 program main
14230
14231 end
14232_ACEOF
14233rm -f conftest.$ac_objext conftest$ac_exeext
14234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 14235 (eval $ac_link) 2>conftest.er1
a33e1d91 14236 ac_status=$?
af3004ff 14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
a33e1d91 14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
6263d81f 14242 { ac_try='test -z "$ac_f77_werror_flag"
14243 || test ! -s conftest.err'
af3004ff 14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest$ac_exeext'
a33e1d91 14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255
14256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14257}'`
14258# Check for a 64-bit object if we didn't find anything.
14259if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14260}'`; fi
14261else
14262 echo "$as_me: failed program was:" >&5
14263sed 's/^/| /' conftest.$ac_ext >&5
14264
14265fi
af3004ff 14266rm -f conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
a33e1d91 14268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14269
14270 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14271 # Warning - without using the other run time loading flags,
14272 # -berok will link without error, but may produce a broken library.
14273 no_undefined_flag_F77=' ${wl}-bernotok'
14274 allow_undefined_flag_F77=' ${wl}-berok'
a33e1d91 14275 # Exported symbols can be pulled into shared objects from archives
62567204 14276 whole_archive_flag_spec_F77='$convenience'
a33e1d91 14277 archive_cmds_need_lc_F77=yes
693f5c2e 14278 # This is similar to how AIX traditionally builds its shared libraries.
62567204 14279 archive_expsym_cmds_F77="\$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'
a33e1d91 14280 fi
14281 fi
14282 ;;
14283
14284 amigaos*)
14285 archive_cmds_F77='$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)'
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 hardcode_minus_L_F77=yes
14288 # see comment about different semantics on the GNU ld section
14289 ld_shlibs_F77=no
14290 ;;
14291
631008fb 14292 bsdi[45]*)
a33e1d91 14293 export_dynamic_flag_spec_F77=-rdynamic
14294 ;;
14295
14296 cygwin* | mingw* | pw32*)
14297 # When not using gcc, we currently assume that we are using
14298 # Microsoft Visual C++.
14299 # hardcode_libdir_flag_spec is actually meaningless, as there is
14300 # no search path for DLLs.
14301 hardcode_libdir_flag_spec_F77=' '
14302 allow_undefined_flag_F77=unsupported
14303 # Tell ltmain to make .lib files, not .a files.
14304 libext=lib
14305 # Tell ltmain to make .dll files, not .so files.
14306 shrext_cmds=".dll"
14307 # FIXME: Setting linknames here is a bad hack.
14308 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14309 # The linker will automatically build a .lib file if we build a DLL.
14310 old_archive_From_new_cmds_F77='true'
14311 # FIXME: Should let the user specify the lib program.
14312 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
087278d6 14313 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
a33e1d91 14314 enable_shared_with_static_runtimes_F77=yes
14315 ;;
14316
14317 darwin* | rhapsody*)
693f5c2e 14318 case $host_os in
631008fb 14319 rhapsody* | darwin1.[012])
14320 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14321 ;;
14322 *) # Darwin 1.3 on
14323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14324 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14325 else
14326 case ${MACOSX_DEPLOYMENT_TARGET} in
14327 10.[012])
14328 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14329 ;;
14330 10.*)
14331 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14332 ;;
14333 esac
14334 fi
14335 ;;
a33e1d91 14336 esac
631008fb 14337 archive_cmds_need_lc_F77=no
a33e1d91 14338 hardcode_direct_F77=no
14339 hardcode_automatic_F77=yes
14340 hardcode_shlibpath_var_F77=unsupported
631008fb 14341 whole_archive_flag_spec_F77=''
a33e1d91 14342 link_all_deplibs_F77=yes
631008fb 14343 if test "$GCC" = yes ; then
14344 output_verbose_link_cmd='echo'
14345 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14346 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 14347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 14348 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14349 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
a33e1d91 14350 else
087278d6 14351 case $cc_basename in
631008fb 14352 xlc*)
14353 output_verbose_link_cmd='echo'
14354 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14355 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 14356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 14357 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14358 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14359 ;;
14360 *)
14361 ld_shlibs_F77=no
14362 ;;
14363 esac
a33e1d91 14364 fi
14365 ;;
14366
14367 dgux*)
14368 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14369 hardcode_libdir_flag_spec_F77='-L$libdir'
14370 hardcode_shlibpath_var_F77=no
14371 ;;
14372
14373 freebsd1*)
14374 ld_shlibs_F77=no
14375 ;;
14376
14377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14378 # support. Future versions do this automatically, but an explicit c++rt0.o
14379 # does not break anything, and helps significantly (at the cost of a little
14380 # extra space).
14381 freebsd2.2*)
14382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14383 hardcode_libdir_flag_spec_F77='-R$libdir'
14384 hardcode_direct_F77=yes
14385 hardcode_shlibpath_var_F77=no
14386 ;;
14387
14388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14389 freebsd2*)
14390 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14391 hardcode_direct_F77=yes
14392 hardcode_minus_L_F77=yes
14393 hardcode_shlibpath_var_F77=no
14394 ;;
14395
14396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6263d81f 14397 freebsd* | kfreebsd*-gnu | dragonfly*)
a33e1d91 14398 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14399 hardcode_libdir_flag_spec_F77='-R$libdir'
14400 hardcode_direct_F77=yes
14401 hardcode_shlibpath_var_F77=no
14402 ;;
14403
14404 hpux9*)
14405 if test "$GCC" = yes; then
14406 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14407 else
14408 archive_cmds_F77='$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'
14409 fi
14410 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14411 hardcode_libdir_separator_F77=:
14412 hardcode_direct_F77=yes
14413
14414 # hardcode_minus_L: Not really in the search PATH,
14415 # but as the default location of the library.
14416 hardcode_minus_L_F77=yes
14417 export_dynamic_flag_spec_F77='${wl}-E'
14418 ;;
14419
62567204 14420 hpux10*)
14421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14422 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14423 else
14424 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14425 fi
14426 if test "$with_gnu_ld" = no; then
14427 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14428 hardcode_libdir_separator_F77=:
14429
14430 hardcode_direct_F77=yes
14431 export_dynamic_flag_spec_F77='${wl}-E'
14432
14433 # hardcode_minus_L: Not really in the search PATH,
14434 # but as the default location of the library.
14435 hardcode_minus_L_F77=yes
14436 fi
14437 ;;
14438
14439 hpux11*)
a33e1d91 14440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
693f5c2e 14441 case $host_cpu in
62567204 14442 hppa*64*)
a33e1d91 14443 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14444 ;;
62567204 14445 ia64*)
14446 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14447 ;;
a33e1d91 14448 *)
14449 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14450 ;;
14451 esac
14452 else
693f5c2e 14453 case $host_cpu in
62567204 14454 hppa*64*)
14455 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14456 ;;
14457 ia64*)
14458 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 14459 ;;
14460 *)
62567204 14461 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 14462 ;;
14463 esac
14464 fi
14465 if test "$with_gnu_ld" = no; then
62567204 14466 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14467 hardcode_libdir_separator_F77=:
14468
693f5c2e 14469 case $host_cpu in
62567204 14470 hppa*64*|ia64*)
a33e1d91 14471 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
a33e1d91 14472 hardcode_direct_F77=no
14473 hardcode_shlibpath_var_F77=no
a33e1d91 14474 ;;
14475 *)
a33e1d91 14476 hardcode_direct_F77=yes
14477 export_dynamic_flag_spec_F77='${wl}-E'
14478
14479 # hardcode_minus_L: Not really in the search PATH,
14480 # but as the default location of the library.
14481 hardcode_minus_L_F77=yes
14482 ;;
14483 esac
14484 fi
14485 ;;
14486
14487 irix5* | irix6* | nonstopux*)
14488 if test "$GCC" = yes; then
14489 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14490 else
14491 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14492 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14493 fi
14494 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14495 hardcode_libdir_separator_F77=:
14496 link_all_deplibs_F77=yes
14497 ;;
14498
6263d81f 14499 netbsd*)
a33e1d91 14500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14501 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14502 else
14503 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14504 fi
14505 hardcode_libdir_flag_spec_F77='-R$libdir'
14506 hardcode_direct_F77=yes
14507 hardcode_shlibpath_var_F77=no
14508 ;;
14509
14510 newsos6)
14511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14512 hardcode_direct_F77=yes
14513 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14514 hardcode_libdir_separator_F77=:
14515 hardcode_shlibpath_var_F77=no
14516 ;;
14517
14518 openbsd*)
14519 hardcode_direct_F77=yes
14520 hardcode_shlibpath_var_F77=no
14521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14522 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
631008fb 14523 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a33e1d91 14524 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14525 export_dynamic_flag_spec_F77='${wl}-E'
14526 else
14527 case $host_os in
14528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14529 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14530 hardcode_libdir_flag_spec_F77='-R$libdir'
14531 ;;
14532 *)
14533 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14534 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14535 ;;
14536 esac
14537 fi
14538 ;;
14539
14540 os2*)
14541 hardcode_libdir_flag_spec_F77='-L$libdir'
14542 hardcode_minus_L_F77=yes
14543 allow_undefined_flag_F77=unsupported
14544 archive_cmds_F77='$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'
14545 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14546 ;;
14547
14548 osf3*)
14549 if test "$GCC" = yes; then
14550 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14551 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14552 else
14553 allow_undefined_flag_F77=' -expect_unresolved \*'
14554 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14555 fi
14556 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14557 hardcode_libdir_separator_F77=:
14558 ;;
14559
14560 osf4* | osf5*) # as osf3* with the addition of -msym flag
14561 if test "$GCC" = yes; then
14562 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14563 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14565 else
14566 allow_undefined_flag_F77=' -expect_unresolved \*'
14567 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14568 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
087278d6 14569 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a33e1d91 14570
14571 # Both c and cxx compiler support -rpath directly
14572 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14573 fi
14574 hardcode_libdir_separator_F77=:
14575 ;;
14576
a33e1d91 14577 solaris*)
14578 no_undefined_flag_F77=' -z text'
14579 if test "$GCC" = yes; then
087278d6 14580 wlarc='${wl}'
a33e1d91 14581 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14583 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14584 else
087278d6 14585 wlarc=''
a33e1d91 14586 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14587 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14589 fi
14590 hardcode_libdir_flag_spec_F77='-R$libdir'
14591 hardcode_shlibpath_var_F77=no
14592 case $host_os in
14593 solaris2.[0-5] | solaris2.[0-5].*) ;;
087278d6 14594 *)
14595 # The compiler driver will combine linker options so we
14596 # cannot just pass the convience library names through
14597 # without $wl, iff we do not link with $LD.
14598 # Luckily, gcc supports the same syntax we need for Sun Studio.
14599 # Supported since Solaris 2.6 (maybe 2.5.1?)
14600 case $wlarc in
14601 '')
14602 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14603 *)
14604 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14605 esac ;;
a33e1d91 14606 esac
14607 link_all_deplibs_F77=yes
14608 ;;
14609
14610 sunos4*)
14611 if test "x$host_vendor" = xsequent; then
14612 # Use $CC to link under sequent, because it throws in some extra .o
14613 # files that make .init and .fini sections work.
14614 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14615 else
14616 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14617 fi
14618 hardcode_libdir_flag_spec_F77='-L$libdir'
14619 hardcode_direct_F77=yes
14620 hardcode_minus_L_F77=yes
14621 hardcode_shlibpath_var_F77=no
14622 ;;
14623
14624 sysv4)
14625 case $host_vendor in
14626 sni)
14627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628 hardcode_direct_F77=yes # is this really true???
14629 ;;
14630 siemens)
14631 ## LD is ld it makes a PLAMLIB
14632 ## CC just makes a GrossModule.
14633 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14634 reload_cmds_F77='$CC -r -o $output$reload_objs'
14635 hardcode_direct_F77=no
14636 ;;
14637 motorola)
14638 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14640 ;;
14641 esac
14642 runpath_var='LD_RUN_PATH'
14643 hardcode_shlibpath_var_F77=no
14644 ;;
14645
14646 sysv4.3*)
14647 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648 hardcode_shlibpath_var_F77=no
14649 export_dynamic_flag_spec_F77='-Bexport'
14650 ;;
14651
14652 sysv4*MP*)
14653 if test -d /usr/nec; then
14654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655 hardcode_shlibpath_var_F77=no
14656 runpath_var=LD_RUN_PATH
14657 hardcode_runpath_var=yes
14658 ld_shlibs_F77=yes
14659 fi
14660 ;;
14661
62567204 14662 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14663 no_undefined_flag_F77='${wl}-z,text'
14664 archive_cmds_need_lc_F77=no
a33e1d91 14665 hardcode_shlibpath_var_F77=no
62567204 14666 runpath_var='LD_RUN_PATH'
a33e1d91 14667
a33e1d91 14668 if test "$GCC" = yes; then
62567204 14669 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14670 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 14671 else
62567204 14672 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14673 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 14674 fi
a33e1d91 14675 ;;
14676
62567204 14677 sysv5* | sco3.2v5* | sco5v6*)
14678 # Note: We can NOT use -z defs as we might desire, because we do not
14679 # link with -lc, and that would cause any symbols used from libc to
14680 # always be unresolved, which means just about no library would
14681 # ever link correctly. If we're not using GNU ld we use -z text
14682 # though, which does catch some bad symbols but isn't as heavy-handed
14683 # as -z defs.
14684 no_undefined_flag_F77='${wl}-z,text'
14685 allow_undefined_flag_F77='${wl}-z,nodefs'
14686 archive_cmds_need_lc_F77=no
a33e1d91 14687 hardcode_shlibpath_var_F77=no
62567204 14688 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14689 hardcode_libdir_separator_F77=':'
14690 link_all_deplibs_F77=yes
14691 export_dynamic_flag_spec_F77='${wl}-Bexport'
a33e1d91 14692 runpath_var='LD_RUN_PATH'
62567204 14693
14694 if test "$GCC" = yes; then
14695 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14696 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14697 else
14698 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14699 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14700 fi
a33e1d91 14701 ;;
14702
14703 uts4*)
14704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14705 hardcode_libdir_flag_spec_F77='-L$libdir'
14706 hardcode_shlibpath_var_F77=no
14707 ;;
14708
14709 *)
14710 ld_shlibs_F77=no
14711 ;;
14712 esac
14713 fi
14714
14715echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14716echo "${ECHO_T}$ld_shlibs_F77" >&6
14717test "$ld_shlibs_F77" = no && can_build_shared=no
14718
a33e1d91 14719#
14720# Do we need to explicitly link libc?
14721#
14722case "x$archive_cmds_need_lc_F77" in
14723x|xyes)
14724 # Assume -lc should be added
14725 archive_cmds_need_lc_F77=yes
14726
14727 if test "$enable_shared" = yes && test "$GCC" = yes; then
14728 case $archive_cmds_F77 in
14729 *'~'*)
14730 # FIXME: we may have to deal with multi-command sequences.
14731 ;;
14732 '$CC '*)
14733 # Test whether the compiler implicitly links with -lc since on some
14734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14735 # to ld, don't add -lc before -lgcc.
14736 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14737echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14738 $rm conftest*
14739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14740
14741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742 (eval $ac_compile) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } 2>conftest.err; then
14746 soname=conftest
14747 lib=conftest
14748 libobjs=conftest.$ac_objext
14749 deplibs=
14750 wl=$lt_prog_compiler_wl_F77
62567204 14751 pic_flag=$lt_prog_compiler_pic_F77
a33e1d91 14752 compiler_flags=-v
14753 linker_flags=-v
14754 verstring=
14755 output_objdir=.
14756 libname=conftest
14757 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14758 allow_undefined_flag_F77=
14759 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14760 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }
14764 then
14765 archive_cmds_need_lc_F77=no
14766 else
14767 archive_cmds_need_lc_F77=yes
14768 fi
14769 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14770 else
14771 cat conftest.err 1>&5
14772 fi
14773 $rm conftest*
14774 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14775echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14776 ;;
14777 esac
14778 fi
14779 ;;
14780esac
14781
14782echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14783echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14784library_names_spec=
14785libname_spec='lib$name'
14786soname_spec=
14787shrext_cmds=".so"
14788postinstall_cmds=
14789postuninstall_cmds=
14790finish_cmds=
14791finish_eval=
14792shlibpath_var=
14793shlibpath_overrides_runpath=unknown
14794version_type=none
14795dynamic_linker="$host_os ld.so"
14796sys_lib_dlsearch_path_spec="/lib /usr/lib"
14797if test "$GCC" = yes; then
14798 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14799 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14800 # if the path contains ";" then we assume it to be the separator
14801 # otherwise default to the standard path separator (i.e. ":") - it is
14802 # assumed that no part of a normal pathname contains ";" but that should
14803 # okay in the real world where ";" in dirpaths is itself problematic.
14804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14805 else
14806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14807 fi
14808else
14809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14810fi
14811need_lib_prefix=unknown
14812hardcode_into_libs=no
14813
14814# when you set need_version to no, make sure it does not cause -set_version
14815# flags to be left without arguments
14816need_version=unknown
14817
14818case $host_os in
14819aix3*)
14820 version_type=linux
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14822 shlibpath_var=LIBPATH
14823
14824 # AIX 3 has no versioning support, so we append a major version to the name.
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 ;;
14827
14828aix4* | aix5*)
14829 version_type=linux
14830 need_lib_prefix=no
14831 need_version=no
14832 hardcode_into_libs=yes
14833 if test "$host_cpu" = ia64; then
14834 # AIX 5 supports IA64
14835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 else
14838 # With GCC up to 2.95.x, collect2 would create an import file
14839 # for dependence libraries. The import file would start with
14840 # the line `#! .'. This would cause the generated library to
14841 # depend on `.', always an invalid library. This was fixed in
14842 # development snapshots of GCC prior to 3.0.
14843 case $host_os in
14844 aix4 | aix4.[01] | aix4.[01].*)
14845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14846 echo ' yes '
14847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14848 :
14849 else
14850 can_build_shared=no
14851 fi
14852 ;;
14853 esac
14854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14855 # soname into executable. Probably we can add versioning support to
14856 # collect2, so additional links can be useful in future.
14857 if test "$aix_use_runtimelinking" = yes; then
14858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14859 # instead of lib<name>.a to let people know that these are not
14860 # typical AIX shared libraries.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 else
14863 # We preserve .a as extension for shared libraries through AIX4.2
14864 # and later when we are not doing run time linking.
14865 library_names_spec='${libname}${release}.a $libname.a'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 fi
14868 shlibpath_var=LIBPATH
14869 fi
14870 ;;
14871
14872amigaos*)
14873 library_names_spec='$libname.ixlibrary $libname.a'
14874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14875 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14876 ;;
14877
14878beos*)
14879 library_names_spec='${libname}${shared_ext}'
14880 dynamic_linker="$host_os ld.so"
14881 shlibpath_var=LIBRARY_PATH
14882 ;;
14883
631008fb 14884bsdi[45]*)
a33e1d91 14885 version_type=linux
14886 need_version=no
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14893 # the default ld.so.conf also contains /usr/contrib/lib and
14894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14895 # libtool to hard-code these into programs
14896 ;;
14897
14898cygwin* | mingw* | pw32*)
14899 version_type=windows
14900 shrext_cmds=".dll"
14901 need_version=no
14902 need_lib_prefix=no
14903
14904 case $GCC,$host_os in
14905 yes,cygwin* | yes,mingw* | yes,pw32*)
14906 library_names_spec='$libname.dll.a'
14907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14908 postinstall_cmds='base_file=`basename \${file}`~
14909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14910 dldir=$destdir/`dirname \$dlpath`~
14911 test -d \$dldir || mkdir -p \$dldir~
693f5c2e 14912 $install_prog $dir/$dlname \$dldir/$dlname~
14913 chmod a+x \$dldir/$dlname'
a33e1d91 14914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14915 dlpath=$dir/\$dldll~
14916 $rm \$dlpath'
14917 shlibpath_overrides_runpath=yes
14918
14919 case $host_os in
14920 cygwin*)
14921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14923 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14924 ;;
14925 mingw*)
14926 # MinGW DLLs use traditional 'lib' prefix
14927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14929 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14930 # It is most probably a Windows format PATH printed by
14931 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14932 # path with ; separators, and with drive letters. We can handle the
14933 # drive letters (cygwin fileutils understands them), so leave them,
14934 # especially as we might pass files found there to a mingw objdump,
14935 # which wouldn't understand a cygwinified path. Ahh.
14936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14937 else
14938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14939 fi
14940 ;;
14941 pw32*)
14942 # pw32 DLLs use 'pw' prefix rather than 'lib'
087278d6 14943 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a33e1d91 14944 ;;
14945 esac
14946 ;;
14947
14948 *)
14949 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14950 ;;
14951 esac
14952 dynamic_linker='Win32 ld.exe'
14953 # FIXME: first we should search . and the directory the executable is in
14954 shlibpath_var=PATH
14955 ;;
14956
14957darwin* | rhapsody*)
14958 dynamic_linker="$host_os dyld"
14959 version_type=darwin
14960 need_lib_prefix=no
14961 need_version=no
14962 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14963 soname_spec='${libname}${release}${major}$shared_ext'
14964 shlibpath_overrides_runpath=yes
14965 shlibpath_var=DYLD_LIBRARY_PATH
693f5c2e 14966 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a33e1d91 14967 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14968 if test "$GCC" = yes; then
14969 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14970 else
14971 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14972 fi
14973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14974 ;;
14975
14976dgux*)
14977 version_type=linux
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 ;;
14984
14985freebsd1*)
14986 dynamic_linker=no
14987 ;;
14988
14989kfreebsd*-gnu)
14990 version_type=linux
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=no
14997 hardcode_into_libs=yes
14998 dynamic_linker='GNU ld.so'
14999 ;;
15000
087278d6 15001freebsd* | dragonfly*)
15002 # DragonFly does not have aout. When/if they implement a new
15003 # versioning mechanism, adjust this.
693f5c2e 15004 if test -x /usr/bin/objformat; then
15005 objformat=`/usr/bin/objformat`
15006 else
15007 case $host_os in
15008 freebsd[123]*) objformat=aout ;;
15009 *) objformat=elf ;;
15010 esac
15011 fi
a33e1d91 15012 version_type=freebsd-$objformat
15013 case $version_type in
15014 freebsd-elf*)
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15016 need_version=no
15017 need_lib_prefix=no
15018 ;;
15019 freebsd-*)
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15021 need_version=yes
15022 ;;
15023 esac
15024 shlibpath_var=LD_LIBRARY_PATH
15025 case $host_os in
15026 freebsd2*)
15027 shlibpath_overrides_runpath=yes
15028 ;;
087278d6 15029 freebsd3.[01]* | freebsdelf3.[01]*)
a33e1d91 15030 shlibpath_overrides_runpath=yes
15031 hardcode_into_libs=yes
15032 ;;
62567204 15033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a33e1d91 15035 shlibpath_overrides_runpath=no
15036 hardcode_into_libs=yes
15037 ;;
62567204 15038 freebsd*) # from 4.6 on
15039 shlibpath_overrides_runpath=yes
15040 hardcode_into_libs=yes
15041 ;;
a33e1d91 15042 esac
15043 ;;
15044
15045gnu*)
15046 version_type=linux
15047 need_lib_prefix=no
15048 need_version=no
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 shlibpath_var=LD_LIBRARY_PATH
15052 hardcode_into_libs=yes
15053 ;;
15054
15055hpux9* | hpux10* | hpux11*)
15056 # Give a soname corresponding to the major version so that dld.sl refuses to
15057 # link against other versions.
15058 version_type=sunos
15059 need_lib_prefix=no
15060 need_version=no
693f5c2e 15061 case $host_cpu in
a33e1d91 15062 ia64*)
15063 shrext_cmds='.so'
15064 hardcode_into_libs=yes
15065 dynamic_linker="$host_os dld.so"
15066 shlibpath_var=LD_LIBRARY_PATH
15067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 if test "X$HPUX_IA64_MODE" = X32; then
15071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15072 else
15073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15074 fi
15075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15076 ;;
15077 hppa*64*)
15078 shrext_cmds='.sl'
15079 hardcode_into_libs=yes
15080 dynamic_linker="$host_os dld.sl"
15081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15087 ;;
15088 *)
15089 shrext_cmds='.sl'
15090 dynamic_linker="$host_os dld.sl"
15091 shlibpath_var=SHLIB_PATH
15092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 ;;
15096 esac
15097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15098 postinstall_cmds='chmod 555 $lib'
15099 ;;
15100
62567204 15101interix3*)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15111 ;;
15112
a33e1d91 15113irix5* | irix6* | nonstopux*)
15114 case $host_os in
15115 nonstopux*) version_type=nonstopux ;;
15116 *)
15117 if test "$lt_cv_prog_gnu_ld" = yes; then
15118 version_type=linux
15119 else
15120 version_type=irix
15121 fi ;;
15122 esac
15123 need_lib_prefix=no
15124 need_version=no
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15127 case $host_os in
15128 irix5* | nonstopux*)
15129 libsuff= shlibsuff=
15130 ;;
15131 *)
15132 case $LD in # libtool.m4 will add one of these switches to LD
15133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15134 libsuff= shlibsuff= libmagic=32-bit;;
15135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15136 libsuff=32 shlibsuff=N32 libmagic=N32;;
15137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15139 *) libsuff= shlibsuff= libmagic=never-match;;
15140 esac
15141 ;;
15142 esac
15143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15144 shlibpath_overrides_runpath=no
15145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15147 hardcode_into_libs=yes
15148 ;;
15149
15150# No shared lib support for Linux oldld, aout, or coff.
15151linux*oldld* | linux*aout* | linux*coff*)
15152 dynamic_linker=no
15153 ;;
15154
15155# This must be Linux ELF.
15156linux*)
15157 version_type=linux
15158 need_lib_prefix=no
15159 need_version=no
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161 soname_spec='${libname}${release}${shared_ext}$major'
15162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=no
15165 # This implies no fast_install, which is unacceptable.
15166 # Some rework will be needed to allow for fast_install
15167 # before this can be enabled.
15168 hardcode_into_libs=yes
15169
15170 # Append ld.so.conf contents to the search path
15171 if test -f /etc/ld.so.conf; then
087278d6 15172 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
a33e1d91 15173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15174 fi
15175
15176 # We used to test for /lib/ld.so.1 and disable shared libraries on
15177 # powerpc, because MkLinux only supported shared libraries with the
15178 # GNU dynamic linker. Since this was broken with cross compilers,
15179 # most powerpc-linux boxes support dynamic linking these days and
15180 # people can always --disable-shared, the test was removed, and we
15181 # assume the GNU/Linux dynamic linker is in use.
15182 dynamic_linker='GNU/Linux ld.so'
15183 ;;
15184
15185knetbsd*-gnu)
15186 version_type=linux
15187 need_lib_prefix=no
15188 need_version=no
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=no
15193 hardcode_into_libs=yes
15194 dynamic_linker='GNU ld.so'
15195 ;;
15196
15197netbsd*)
15198 version_type=sunos
15199 need_lib_prefix=no
15200 need_version=no
15201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204 dynamic_linker='NetBSD (a.out) ld.so'
15205 else
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 dynamic_linker='NetBSD ld.elf_so'
15209 fi
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15212 hardcode_into_libs=yes
15213 ;;
15214
15215newsos6)
15216 version_type=linux
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 shlibpath_overrides_runpath=yes
15220 ;;
15221
15222nto-qnx*)
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=yes
15230 ;;
15231
15232openbsd*)
15233 version_type=sunos
62567204 15234 sys_lib_dlsearch_path_spec="/usr/lib"
a33e1d91 15235 need_lib_prefix=no
087278d6 15236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15237 case $host_os in
15238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15239 *) need_version=no ;;
15240 esac
a33e1d91 15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15245 case $host_os in
15246 openbsd2.[89] | openbsd2.[89].*)
15247 shlibpath_overrides_runpath=no
15248 ;;
15249 *)
15250 shlibpath_overrides_runpath=yes
15251 ;;
15252 esac
15253 else
15254 shlibpath_overrides_runpath=yes
15255 fi
15256 ;;
15257
15258os2*)
15259 libname_spec='$name'
15260 shrext_cmds=".dll"
15261 need_lib_prefix=no
15262 library_names_spec='$libname${shared_ext} $libname.a'
15263 dynamic_linker='OS/2 ld.exe'
15264 shlibpath_var=LIBPATH
15265 ;;
15266
15267osf3* | osf4* | osf5*)
15268 version_type=osf
15269 need_lib_prefix=no
15270 need_version=no
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15276 ;;
15277
a33e1d91 15278solaris*)
15279 version_type=linux
15280 need_lib_prefix=no
15281 need_version=no
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15287 # ldd complains unless libraries are executable
15288 postinstall_cmds='chmod +x $lib'
15289 ;;
15290
15291sunos4*)
15292 version_type=sunos
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes
15297 if test "$with_gnu_ld" = yes; then
15298 need_lib_prefix=no
15299 fi
15300 need_version=yes
15301 ;;
15302
62567204 15303sysv4 | sysv4.3*)
a33e1d91 15304 version_type=linux
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306 soname_spec='${libname}${release}${shared_ext}$major'
15307 shlibpath_var=LD_LIBRARY_PATH
15308 case $host_vendor in
15309 sni)
15310 shlibpath_overrides_runpath=no
15311 need_lib_prefix=no
15312 export_dynamic_flag_spec='${wl}-Blargedynsym'
15313 runpath_var=LD_RUN_PATH
15314 ;;
15315 siemens)
15316 need_lib_prefix=no
15317 ;;
15318 motorola)
15319 need_lib_prefix=no
15320 need_version=no
15321 shlibpath_overrides_runpath=no
15322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15323 ;;
15324 esac
15325 ;;
15326
15327sysv4*MP*)
15328 if test -d /usr/nec ;then
15329 version_type=linux
15330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15331 soname_spec='$libname${shared_ext}.$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 fi
15334 ;;
15335
62567204 15336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15337 version_type=freebsd-elf
15338 need_lib_prefix=no
15339 need_version=no
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 hardcode_into_libs=yes
15344 if test "$with_gnu_ld" = yes; then
15345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15346 shlibpath_overrides_runpath=no
15347 else
15348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15349 shlibpath_overrides_runpath=yes
15350 case $host_os in
15351 sco3.2v5*)
15352 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15353 ;;
15354 esac
15355 fi
15356 sys_lib_dlsearch_path_spec='/usr/lib'
15357 ;;
15358
a33e1d91 15359uts4*)
15360 version_type=linux
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 ;;
15365
15366*)
15367 dynamic_linker=no
15368 ;;
15369esac
15370echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15371echo "${ECHO_T}$dynamic_linker" >&6
15372test "$dynamic_linker" = no && can_build_shared=no
15373
62567204 15374variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15375if test "$GCC" = yes; then
15376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15377fi
15378
a33e1d91 15379echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15380echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15381hardcode_action_F77=
15382if test -n "$hardcode_libdir_flag_spec_F77" || \
631008fb 15383 test -n "$runpath_var_F77" || \
15384 test "X$hardcode_automatic_F77" = "Xyes" ; then
a33e1d91 15385
15386 # We can hardcode non-existant directories.
15387 if test "$hardcode_direct_F77" != no &&
15388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389 # have to relink, otherwise we might link with an installed library
15390 # when we should be linking with a yet-to-be-installed one
15391 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15392 test "$hardcode_minus_L_F77" != no; then
15393 # Linking always hardcodes the temporary library directory.
15394 hardcode_action_F77=relink
15395 else
15396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397 hardcode_action_F77=immediate
15398 fi
15399else
15400 # We cannot hardcode anything, or else we can only hardcode existing
15401 # directories.
15402 hardcode_action_F77=unsupported
15403fi
15404echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15405echo "${ECHO_T}$hardcode_action_F77" >&6
15406
15407if test "$hardcode_action_F77" = relink; then
15408 # Fast installation is not supported
15409 enable_fast_install=no
15410elif test "$shlibpath_overrides_runpath" = yes ||
15411 test "$enable_shared" = no; then
15412 # Fast installation is not necessary
15413 enable_fast_install=needless
15414fi
15415
a33e1d91 15416
15417# The else clause should only fire when bootstrapping the
15418# libtool distribution, otherwise you forgot to ship ltmain.sh
15419# with your package, and you will get complaints that there are
15420# no rules to generate ltmain.sh.
15421if test -f "$ltmain"; then
15422 # See if we are running on zsh, and set the options which allow our commands through
15423 # without removal of \ escapes.
15424 if test -n "${ZSH_VERSION+set}" ; then
15425 setopt NO_GLOB_SUBST
15426 fi
15427 # Now quote all the things that may contain metacharacters while being
15428 # careful not to overquote the AC_SUBSTed values. We take copies of the
15429 # variables and quote the copies for generation of the libtool script.
62567204 15430 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a33e1d91 15431 SED SHELL STRIP \
15432 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15433 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15434 deplibs_check_method reload_flag reload_cmds need_locks \
15435 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15436 lt_cv_sys_global_symbol_to_c_name_address \
15437 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15438 old_postinstall_cmds old_postuninstall_cmds \
15439 compiler_F77 \
15440 CC_F77 \
15441 LD_F77 \
15442 lt_prog_compiler_wl_F77 \
15443 lt_prog_compiler_pic_F77 \
15444 lt_prog_compiler_static_F77 \
15445 lt_prog_compiler_no_builtin_flag_F77 \
15446 export_dynamic_flag_spec_F77 \
15447 thread_safe_flag_spec_F77 \
15448 whole_archive_flag_spec_F77 \
15449 enable_shared_with_static_runtimes_F77 \
15450 old_archive_cmds_F77 \
15451 old_archive_from_new_cmds_F77 \
15452 predep_objects_F77 \
15453 postdep_objects_F77 \
15454 predeps_F77 \
15455 postdeps_F77 \
15456 compiler_lib_search_path_F77 \
15457 archive_cmds_F77 \
15458 archive_expsym_cmds_F77 \
15459 postinstall_cmds_F77 \
15460 postuninstall_cmds_F77 \
15461 old_archive_from_expsyms_cmds_F77 \
15462 allow_undefined_flag_F77 \
15463 no_undefined_flag_F77 \
15464 export_symbols_cmds_F77 \
15465 hardcode_libdir_flag_spec_F77 \
15466 hardcode_libdir_flag_spec_ld_F77 \
15467 hardcode_libdir_separator_F77 \
15468 hardcode_automatic_F77 \
15469 module_cmds_F77 \
15470 module_expsym_cmds_F77 \
15471 lt_cv_prog_compiler_c_o_F77 \
15472 exclude_expsyms_F77 \
15473 include_expsyms_F77; do
15474
15475 case $var in
15476 old_archive_cmds_F77 | \
15477 old_archive_from_new_cmds_F77 | \
15478 archive_cmds_F77 | \
15479 archive_expsym_cmds_F77 | \
15480 module_cmds_F77 | \
15481 module_expsym_cmds_F77 | \
15482 old_archive_from_expsyms_cmds_F77 | \
15483 export_symbols_cmds_F77 | \
15484 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15485 postinstall_cmds | postuninstall_cmds | \
15486 old_postinstall_cmds | old_postuninstall_cmds | \
15487 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15488 # Double-quote double-evaled strings.
15489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15490 ;;
15491 *)
15492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15493 ;;
15494 esac
15495 done
15496
15497 case $lt_echo in
15498 *'\$0 --fallback-echo"')
15499 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15500 ;;
15501 esac
15502
15503cfgfile="$ofile"
15504
15505 cat <<__EOF__ >> "$cfgfile"
15506# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15507
15508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15509
15510# Shell to use when invoking shell scripts.
15511SHELL=$lt_SHELL
15512
15513# Whether or not to build shared libraries.
15514build_libtool_libs=$enable_shared
15515
15516# Whether or not to build static libraries.
15517build_old_libs=$enable_static
15518
15519# Whether or not to add -lc for building shared libraries.
15520build_libtool_need_lc=$archive_cmds_need_lc_F77
15521
15522# Whether or not to disallow shared libs when runtime libs are static
15523allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15524
15525# Whether or not to optimize for fast installation.
15526fast_install=$enable_fast_install
15527
15528# The host system.
15529host_alias=$host_alias
15530host=$host
087278d6 15531host_os=$host_os
15532
15533# The build system.
15534build_alias=$build_alias
15535build=$build
15536build_os=$build_os
a33e1d91 15537
15538# An echo program that does not interpret backslashes.
15539echo=$lt_echo
15540
15541# The archiver.
15542AR=$lt_AR
15543AR_FLAGS=$lt_AR_FLAGS
15544
15545# A C compiler.
15546LTCC=$lt_LTCC
15547
62567204 15548# LTCC compiler flags.
15549LTCFLAGS=$lt_LTCFLAGS
15550
a33e1d91 15551# A language-specific compiler.
15552CC=$lt_compiler_F77
15553
15554# Is the compiler the GNU C compiler?
15555with_gcc=$GCC_F77
15556
15557# An ERE matcher.
15558EGREP=$lt_EGREP
15559
15560# The linker used to build libraries.
15561LD=$lt_LD_F77
15562
15563# Whether we need hard or soft links.
15564LN_S=$lt_LN_S
15565
15566# A BSD-compatible nm program.
15567NM=$lt_NM
15568
15569# A symbol stripping program
15570STRIP=$lt_STRIP
15571
15572# Used to examine libraries when file_magic_cmd begins "file"
15573MAGIC_CMD=$MAGIC_CMD
15574
15575# Used on cygwin: DLL creation program.
15576DLLTOOL="$DLLTOOL"
15577
15578# Used on cygwin: object dumper.
15579OBJDUMP="$OBJDUMP"
15580
15581# Used on cygwin: assembler.
15582AS="$AS"
15583
15584# The name of the directory that contains temporary libtool files.
15585objdir=$objdir
15586
15587# How to create reloadable object files.
15588reload_flag=$lt_reload_flag
15589reload_cmds=$lt_reload_cmds
15590
15591# How to pass a linker flag through the compiler.
15592wl=$lt_lt_prog_compiler_wl_F77
15593
15594# Object file suffix (normally "o").
15595objext="$ac_objext"
15596
15597# Old archive suffix (normally "a").
15598libext="$libext"
15599
15600# Shared library suffix (normally ".so").
15601shrext_cmds='$shrext_cmds'
15602
15603# Executable file suffix (normally "").
15604exeext="$exeext"
15605
15606# Additional compiler flags for building library objects.
15607pic_flag=$lt_lt_prog_compiler_pic_F77
15608pic_mode=$pic_mode
15609
15610# What is the maximum length of a command?
15611max_cmd_len=$lt_cv_sys_max_cmd_len
15612
15613# Does compiler simultaneously support -c and -o options?
15614compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15615
087278d6 15616# Must we lock files when doing compilation?
a33e1d91 15617need_locks=$lt_need_locks
15618
15619# Do we need the lib prefix for modules?
15620need_lib_prefix=$need_lib_prefix
15621
15622# Do we need a version for libraries?
15623need_version=$need_version
15624
15625# Whether dlopen is supported.
15626dlopen_support=$enable_dlopen
15627
15628# Whether dlopen of programs is supported.
15629dlopen_self=$enable_dlopen_self
15630
15631# Whether dlopen of statically linked programs is supported.
15632dlopen_self_static=$enable_dlopen_self_static
15633
15634# Compiler flag to prevent dynamic linking.
15635link_static_flag=$lt_lt_prog_compiler_static_F77
15636
15637# Compiler flag to turn off builtin functions.
15638no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15639
15640# Compiler flag to allow reflexive dlopens.
15641export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15642
15643# Compiler flag to generate shared objects directly from archives.
15644whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15645
15646# Compiler flag to generate thread-safe objects.
15647thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15648
15649# Library versioning type.
15650version_type=$version_type
15651
15652# Format of library name prefix.
15653libname_spec=$lt_libname_spec
15654
15655# List of archive names. First name is the real one, the rest are links.
15656# The last name is the one that the linker finds with -lNAME.
15657library_names_spec=$lt_library_names_spec
15658
15659# The coded name of the library, if different from the real name.
15660soname_spec=$lt_soname_spec
15661
15662# Commands used to build and install an old-style archive.
15663RANLIB=$lt_RANLIB
15664old_archive_cmds=$lt_old_archive_cmds_F77
15665old_postinstall_cmds=$lt_old_postinstall_cmds
15666old_postuninstall_cmds=$lt_old_postuninstall_cmds
15667
15668# Create an old-style archive from a shared archive.
15669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15670
15671# Create a temporary old-style archive to link instead of a shared archive.
15672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15673
15674# Commands used to build and install a shared archive.
15675archive_cmds=$lt_archive_cmds_F77
15676archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15677postinstall_cmds=$lt_postinstall_cmds
15678postuninstall_cmds=$lt_postuninstall_cmds
15679
15680# Commands used to build a loadable module (assumed same as above if empty)
15681module_cmds=$lt_module_cmds_F77
15682module_expsym_cmds=$lt_module_expsym_cmds_F77
15683
15684# Commands to strip libraries.
15685old_striplib=$lt_old_striplib
15686striplib=$lt_striplib
15687
15688# Dependencies to place before the objects being linked to create a
15689# shared library.
15690predep_objects=$lt_predep_objects_F77
15691
15692# Dependencies to place after the objects being linked to create a
15693# shared library.
15694postdep_objects=$lt_postdep_objects_F77
15695
15696# Dependencies to place before the objects being linked to create a
15697# shared library.
15698predeps=$lt_predeps_F77
15699
15700# Dependencies to place after the objects being linked to create a
15701# shared library.
15702postdeps=$lt_postdeps_F77
15703
15704# The library search path used internally by the compiler when linking
15705# a shared library.
15706compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15707
15708# Method to check whether dependent libraries are shared objects.
15709deplibs_check_method=$lt_deplibs_check_method
15710
15711# Command to use when deplibs_check_method == file_magic.
15712file_magic_cmd=$lt_file_magic_cmd
15713
15714# Flag that allows shared libraries with undefined symbols to be built.
15715allow_undefined_flag=$lt_allow_undefined_flag_F77
15716
15717# Flag that forces no undefined symbols.
15718no_undefined_flag=$lt_no_undefined_flag_F77
15719
15720# Commands used to finish a libtool library installation in a directory.
15721finish_cmds=$lt_finish_cmds
15722
15723# Same as above, but a single script fragment to be evaled but not shown.
15724finish_eval=$lt_finish_eval
15725
15726# Take the output of nm and produce a listing of raw symbols and C names.
15727global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15728
15729# Transform the output of nm in a proper C declaration
15730global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15731
15732# Transform the output of nm in a C name address pair
15733global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15734
15735# This is the shared library runtime path variable.
15736runpath_var=$runpath_var
15737
15738# This is the shared library path variable.
15739shlibpath_var=$shlibpath_var
15740
15741# Is shlibpath searched before the hard-coded library search path?
15742shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15743
15744# How to hardcode a shared library path into an executable.
15745hardcode_action=$hardcode_action_F77
15746
15747# Whether we should hardcode library paths into libraries.
15748hardcode_into_libs=$hardcode_into_libs
15749
15750# Flag to hardcode \$libdir into a binary during linking.
15751# This must work even if \$libdir does not exist.
15752hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15753
15754# If ld is used when linking, flag to hardcode \$libdir into
15755# a binary during linking. This must work even if \$libdir does
15756# not exist.
15757hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15758
15759# Whether we need a single -rpath flag with a separated argument.
15760hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15761
15762# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15763# resulting binary.
15764hardcode_direct=$hardcode_direct_F77
15765
15766# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15767# resulting binary.
15768hardcode_minus_L=$hardcode_minus_L_F77
15769
15770# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15771# the resulting binary.
15772hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15773
15774# Set to yes if building a shared library automatically hardcodes DIR into the library
15775# and all subsequent libraries and executables linked against it.
15776hardcode_automatic=$hardcode_automatic_F77
15777
15778# Variables whose values should be saved in libtool wrapper scripts and
15779# restored at relink time.
15780variables_saved_for_relink="$variables_saved_for_relink"
15781
15782# Whether libtool must link a program against all its dependency libraries.
15783link_all_deplibs=$link_all_deplibs_F77
15784
15785# Compile-time system search path for libraries
15786sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15787
15788# Run-time system search path for libraries
15789sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15790
15791# Fix the shell variable \$srcfile for the compiler.
15792fix_srcfile_path="$fix_srcfile_path_F77"
15793
15794# Set to yes if exported symbols are required.
15795always_export_symbols=$always_export_symbols_F77
15796
15797# The commands to list exported symbols.
15798export_symbols_cmds=$lt_export_symbols_cmds_F77
15799
15800# The commands to extract the exported symbol list from a shared archive.
15801extract_expsyms_cmds=$lt_extract_expsyms_cmds
15802
15803# Symbols that should not be listed in the preloaded symbols.
15804exclude_expsyms=$lt_exclude_expsyms_F77
15805
15806# Symbols that must always be exported.
15807include_expsyms=$lt_include_expsyms_F77
15808
15809# ### END LIBTOOL TAG CONFIG: $tagname
15810
15811__EOF__
15812
15813
15814else
15815 # If there is no Makefile yet, we rely on a make rule to execute
15816 # `config.status --recheck' to rerun these tests and create the
15817 # libtool script then.
15818 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15819 if test -f "$ltmain_in"; then
15820 test -f Makefile && make "$ltmain"
15821 fi
15822fi
15823
15824
15825ac_ext=c
15826ac_cpp='$CPP $CPPFLAGS'
15827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830
15831CC="$lt_save_CC"
15832
15833 else
15834 tagname=""
15835 fi
15836 ;;
15837
15838 GCJ)
15839 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15840
15841
15842
15843# Source file extension for Java test sources.
15844ac_ext=java
15845
15846# Object file extension for compiled Java test sources.
15847objext=o
15848objext_GCJ=$objext
15849
15850# Code to be used in simple compile tests
15851lt_simple_compile_test_code="class foo {}\n"
15852
15853# Code to be used in simple link tests
087278d6 15854lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a33e1d91 15855
15856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15857
15858# If no C compiler was specified, use CC.
15859LTCC=${LTCC-"$CC"}
15860
62567204 15861# If no C compiler flags were specified, use CFLAGS.
15862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15863
a33e1d91 15864# Allow CC to be a program name with arguments.
15865compiler=$CC
15866
15867
087278d6 15868# save warnings/boilerplate of simple test code
15869ac_outfile=conftest.$ac_objext
15870printf "$lt_simple_compile_test_code" >conftest.$ac_ext
62567204 15871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 15872_lt_compiler_boilerplate=`cat conftest.err`
15873$rm conftest*
15874
15875ac_outfile=conftest.$ac_objext
15876printf "$lt_simple_link_test_code" >conftest.$ac_ext
62567204 15877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 15878_lt_linker_boilerplate=`cat conftest.err`
15879$rm conftest*
15880
15881
a33e1d91 15882# Allow CC to be a program name with arguments.
15883lt_save_CC="$CC"
15884CC=${GCJ-"gcj"}
15885compiler=$CC
15886compiler_GCJ=$CC
087278d6 15887for cc_temp in $compiler""; do
15888 case $cc_temp in
15889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15891 \-*) ;;
15892 *) break;;
15893 esac
15894done
15895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15896
a33e1d91 15897
15898# GCJ did not exist at the time GCC didn't implicitly link libc in.
15899archive_cmds_need_lc_GCJ=no
15900
087278d6 15901old_archive_cmds_GCJ=$old_archive_cmds
15902
a33e1d91 15903
15904lt_prog_compiler_no_builtin_flag_GCJ=
15905
15906if test "$GCC" = yes; then
15907 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15908
15909
15910echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15911echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15912if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914else
15915 lt_cv_prog_compiler_rtti_exceptions=no
15916 ac_outfile=conftest.$ac_objext
15917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15918 lt_compiler_flag="-fno-rtti -fno-exceptions"
15919 # Insert the option either (1) after the last *FLAGS variable, or
15920 # (2) before a word containing "conftest.", or (3) at the end.
15921 # Note that $ac_compile itself does not contain backslashes and begins
15922 # with a dollar sign (not a hyphen), so the echo should work correctly.
15923 # The option is referenced via a variable to avoid confusing sed.
15924 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 15925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 15926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15927 -e 's:$: $lt_compiler_flag:'`
00b2804c 15928 (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
a33e1d91 15929 (eval "$lt_compile" 2>conftest.err)
15930 ac_status=$?
15931 cat conftest.err >&5
00b2804c 15932 echo "$as_me:15932: \$? = $ac_status" >&5
a33e1d91 15933 if (exit $ac_status) && test -s "$ac_outfile"; then
15934 # The compiler can only warn and ignore the option if not recognized
087278d6 15935 # So say no if there are warnings other than the usual output.
62567204 15936 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a33e1d91 15939 lt_cv_prog_compiler_rtti_exceptions=yes
15940 fi
15941 fi
15942 $rm conftest*
15943
15944fi
15945echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15946echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15947
15948if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15949 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15950else
15951 :
15952fi
15953
15954fi
15955
15956lt_prog_compiler_wl_GCJ=
15957lt_prog_compiler_pic_GCJ=
15958lt_prog_compiler_static_GCJ=
15959
15960echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15961echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15962
15963 if test "$GCC" = yes; then
15964 lt_prog_compiler_wl_GCJ='-Wl,'
15965 lt_prog_compiler_static_GCJ='-static'
15966
15967 case $host_os in
15968 aix*)
15969 # All AIX code is PIC.
15970 if test "$host_cpu" = ia64; then
15971 # AIX 5 now supports IA64 processor
15972 lt_prog_compiler_static_GCJ='-Bstatic'
15973 fi
15974 ;;
15975
15976 amigaos*)
15977 # FIXME: we need at least 68020 code to build shared libraries, but
15978 # adding the `-m68020' flag to GCC prevents building anything better,
15979 # like `-m68040'.
15980 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15981 ;;
15982
15983 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15984 # PIC is the default for these OSes.
15985 ;;
15986
15987 mingw* | pw32* | os2*)
15988 # This hack is so that the source file can tell whether it is being
15989 # built for inclusion in a dll (and should export symbols for example).
15990 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15991 ;;
15992
15993 darwin* | rhapsody*)
15994 # PIC is the default on this platform
15995 # Common symbols not allowed in MH_DYLIB files
15996 lt_prog_compiler_pic_GCJ='-fno-common'
15997 ;;
15998
62567204 15999 interix3*)
16000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16001 # Instead, we relocate shared libraries at runtime.
16002 ;;
16003
a33e1d91 16004 msdosdjgpp*)
16005 # Just because we use GCC doesn't mean we suddenly get shared libraries
16006 # on systems that don't support them.
16007 lt_prog_compiler_can_build_shared_GCJ=no
16008 enable_shared=no
16009 ;;
16010
16011 sysv4*MP*)
16012 if test -d /usr/nec; then
16013 lt_prog_compiler_pic_GCJ=-Kconform_pic
16014 fi
16015 ;;
16016
16017 hpux*)
16018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16019 # not for PA HP-UX.
693f5c2e 16020 case $host_cpu in
a33e1d91 16021 hppa*64*|ia64*)
16022 # +Z the default
16023 ;;
16024 *)
16025 lt_prog_compiler_pic_GCJ='-fPIC'
16026 ;;
16027 esac
16028 ;;
16029
16030 *)
16031 lt_prog_compiler_pic_GCJ='-fPIC'
16032 ;;
16033 esac
16034 else
16035 # PORTME Check for flag to pass linker flags through the system compiler.
16036 case $host_os in
16037 aix*)
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 if test "$host_cpu" = ia64; then
16040 # AIX 5 now supports IA64 processor
16041 lt_prog_compiler_static_GCJ='-Bstatic'
16042 else
16043 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16044 fi
16045 ;;
631008fb 16046 darwin*)
16047 # PIC is the default on this platform
16048 # Common symbols not allowed in MH_DYLIB files
087278d6 16049 case $cc_basename in
631008fb 16050 xlc*)
16051 lt_prog_compiler_pic_GCJ='-qnocommon'
16052 lt_prog_compiler_wl_GCJ='-Wl,'
16053 ;;
16054 esac
16055 ;;
a33e1d91 16056
16057 mingw* | pw32* | os2*)
16058 # This hack is so that the source file can tell whether it is being
16059 # built for inclusion in a dll (and should export symbols for example).
16060 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16061 ;;
16062
16063 hpux9* | hpux10* | hpux11*)
16064 lt_prog_compiler_wl_GCJ='-Wl,'
16065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16066 # not for PA HP-UX.
693f5c2e 16067 case $host_cpu in
a33e1d91 16068 hppa*64*|ia64*)
16069 # +Z the default
16070 ;;
16071 *)
16072 lt_prog_compiler_pic_GCJ='+Z'
16073 ;;
16074 esac
16075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16076 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16077 ;;
16078
16079 irix5* | irix6* | nonstopux*)
16080 lt_prog_compiler_wl_GCJ='-Wl,'
16081 # PIC (with -KPIC) is the default.
16082 lt_prog_compiler_static_GCJ='-non_shared'
16083 ;;
16084
16085 newsos6)
16086 lt_prog_compiler_pic_GCJ='-KPIC'
16087 lt_prog_compiler_static_GCJ='-Bstatic'
16088 ;;
16089
16090 linux*)
087278d6 16091 case $cc_basename in
a33e1d91 16092 icc* | ecc*)
16093 lt_prog_compiler_wl_GCJ='-Wl,'
16094 lt_prog_compiler_pic_GCJ='-KPIC'
16095 lt_prog_compiler_static_GCJ='-static'
16096 ;;
693f5c2e 16097 pgcc* | pgf77* | pgf90* | pgf95*)
087278d6 16098 # Portland Group compilers (*not* the Pentium gcc compiler,
16099 # which looks to be a dead project)
16100 lt_prog_compiler_wl_GCJ='-Wl,'
16101 lt_prog_compiler_pic_GCJ='-fpic'
693f5c2e 16102 lt_prog_compiler_static_GCJ='-Bstatic'
087278d6 16103 ;;
a33e1d91 16104 ccc*)
16105 lt_prog_compiler_wl_GCJ='-Wl,'
16106 # All Alpha code is PIC.
16107 lt_prog_compiler_static_GCJ='-non_shared'
16108 ;;
16109 esac
16110 ;;
16111
16112 osf3* | osf4* | osf5*)
16113 lt_prog_compiler_wl_GCJ='-Wl,'
16114 # All OSF/1 code is PIC.
16115 lt_prog_compiler_static_GCJ='-non_shared'
16116 ;;
16117
a33e1d91 16118 solaris*)
a33e1d91 16119 lt_prog_compiler_pic_GCJ='-KPIC'
16120 lt_prog_compiler_static_GCJ='-Bstatic'
087278d6 16121 case $cc_basename in
16122 f77* | f90* | f95*)
16123 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16124 *)
16125 lt_prog_compiler_wl_GCJ='-Wl,';;
16126 esac
a33e1d91 16127 ;;
16128
16129 sunos4*)
16130 lt_prog_compiler_wl_GCJ='-Qoption ld '
16131 lt_prog_compiler_pic_GCJ='-PIC'
16132 lt_prog_compiler_static_GCJ='-Bstatic'
16133 ;;
16134
62567204 16135 sysv4 | sysv4.2uw2* | sysv4.3*)
a33e1d91 16136 lt_prog_compiler_wl_GCJ='-Wl,'
16137 lt_prog_compiler_pic_GCJ='-KPIC'
16138 lt_prog_compiler_static_GCJ='-Bstatic'
16139 ;;
16140
16141 sysv4*MP*)
16142 if test -d /usr/nec ;then
16143 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16144 lt_prog_compiler_static_GCJ='-Bstatic'
16145 fi
16146 ;;
16147
62567204 16148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16149 lt_prog_compiler_wl_GCJ='-Wl,'
16150 lt_prog_compiler_pic_GCJ='-KPIC'
16151 lt_prog_compiler_static_GCJ='-Bstatic'
16152 ;;
16153
087278d6 16154 unicos*)
16155 lt_prog_compiler_wl_GCJ='-Wl,'
16156 lt_prog_compiler_can_build_shared_GCJ=no
16157 ;;
16158
a33e1d91 16159 uts4*)
16160 lt_prog_compiler_pic_GCJ='-pic'
16161 lt_prog_compiler_static_GCJ='-Bstatic'
16162 ;;
16163
16164 *)
16165 lt_prog_compiler_can_build_shared_GCJ=no
16166 ;;
16167 esac
16168 fi
16169
16170echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16171echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16172
16173#
16174# Check to make sure the PIC flag actually works.
16175#
16176if test -n "$lt_prog_compiler_pic_GCJ"; then
16177
16178echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16179echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16180if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182else
16183 lt_prog_compiler_pic_works_GCJ=no
16184 ac_outfile=conftest.$ac_objext
16185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16187 # Insert the option either (1) after the last *FLAGS variable, or
16188 # (2) before a word containing "conftest.", or (3) at the end.
16189 # Note that $ac_compile itself does not contain backslashes and begins
16190 # with a dollar sign (not a hyphen), so the echo should work correctly.
16191 # The option is referenced via a variable to avoid confusing sed.
16192 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 16193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 16194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16195 -e 's:$: $lt_compiler_flag:'`
00b2804c 16196 (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
a33e1d91 16197 (eval "$lt_compile" 2>conftest.err)
16198 ac_status=$?
16199 cat conftest.err >&5
00b2804c 16200 echo "$as_me:16200: \$? = $ac_status" >&5
a33e1d91 16201 if (exit $ac_status) && test -s "$ac_outfile"; then
16202 # The compiler can only warn and ignore the option if not recognized
087278d6 16203 # So say no if there are warnings other than the usual output.
62567204 16204 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a33e1d91 16207 lt_prog_compiler_pic_works_GCJ=yes
16208 fi
16209 fi
16210 $rm conftest*
16211
16212fi
16213echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16214echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16215
16216if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16217 case $lt_prog_compiler_pic_GCJ in
16218 "" | " "*) ;;
16219 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16220 esac
16221else
16222 lt_prog_compiler_pic_GCJ=
16223 lt_prog_compiler_can_build_shared_GCJ=no
16224fi
16225
16226fi
693f5c2e 16227case $host_os in
a33e1d91 16228 # For platforms which do not support PIC, -DPIC is meaningless:
16229 *djgpp*)
16230 lt_prog_compiler_pic_GCJ=
16231 ;;
16232 *)
16233 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16234 ;;
16235esac
16236
62567204 16237#
16238# Check to make sure the static flag actually works.
16239#
16240wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16241echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16242echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16243if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245else
16246 lt_prog_compiler_static_works_GCJ=no
16247 save_LDFLAGS="$LDFLAGS"
16248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16249 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251 # The linker can only warn and ignore the option if not recognized
16252 # So say no if there are warnings
16253 if test -s conftest.err; then
16254 # Append any errors to the config.log.
16255 cat conftest.err 1>&5
16256 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258 if diff conftest.exp conftest.er2 >/dev/null; then
16259 lt_prog_compiler_static_works_GCJ=yes
16260 fi
16261 else
16262 lt_prog_compiler_static_works_GCJ=yes
16263 fi
16264 fi
16265 $rm conftest*
16266 LDFLAGS="$save_LDFLAGS"
16267
16268fi
16269echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16270echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16271
16272if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16273 :
16274else
16275 lt_prog_compiler_static_GCJ=
16276fi
16277
16278
a33e1d91 16279echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16280echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16281if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284 lt_cv_prog_compiler_c_o_GCJ=no
16285 $rm -r conftest 2>/dev/null
16286 mkdir conftest
16287 cd conftest
16288 mkdir out
16289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16290
16291 lt_compiler_flag="-o out/conftest2.$ac_objext"
16292 # Insert the option either (1) after the last *FLAGS variable, or
16293 # (2) before a word containing "conftest.", or (3) at the end.
16294 # Note that $ac_compile itself does not contain backslashes and begins
16295 # with a dollar sign (not a hyphen), so the echo should work correctly.
16296 lt_compile=`echo "$ac_compile" | $SED \
693f5c2e 16297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a33e1d91 16298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16299 -e 's:$: $lt_compiler_flag:'`
00b2804c 16300 (eval echo "\"\$as_me:16300: $lt_compile\"" >&5)
a33e1d91 16301 (eval "$lt_compile" 2>out/conftest.err)
16302 ac_status=$?
16303 cat out/conftest.err >&5
00b2804c 16304 echo "$as_me:16304: \$? = $ac_status" >&5
a33e1d91 16305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16306 then
16307 # The compiler can only warn and ignore the option if not recognized
16308 # So say no if there are warnings
62567204 16309 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a33e1d91 16312 lt_cv_prog_compiler_c_o_GCJ=yes
16313 fi
16314 fi
693f5c2e 16315 chmod u+w . 2>&5
a33e1d91 16316 $rm conftest*
16317 # SGI C++ compiler will create directory out/ii_files/ for
16318 # template instantiation
16319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16320 $rm out/* && rmdir out
16321 cd ..
16322 rmdir conftest
16323 $rm conftest*
16324
16325fi
16326echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16327echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16328
16329
16330hard_links="nottested"
16331if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16332 # do not overwrite the value of need_locks provided by the user
16333 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16334echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16335 hard_links=yes
16336 $rm conftest*
16337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16338 touch conftest.a
16339 ln conftest.a conftest.b 2>&5 || hard_links=no
16340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16341 echo "$as_me:$LINENO: result: $hard_links" >&5
16342echo "${ECHO_T}$hard_links" >&6
16343 if test "$hard_links" = no; then
16344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16345echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16346 need_locks=warn
16347 fi
16348else
16349 need_locks=no
16350fi
16351
16352echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16353echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16354
16355 runpath_var=
16356 allow_undefined_flag_GCJ=
16357 enable_shared_with_static_runtimes_GCJ=no
16358 archive_cmds_GCJ=
16359 archive_expsym_cmds_GCJ=
16360 old_archive_From_new_cmds_GCJ=
16361 old_archive_from_expsyms_cmds_GCJ=
16362 export_dynamic_flag_spec_GCJ=
16363 whole_archive_flag_spec_GCJ=
16364 thread_safe_flag_spec_GCJ=
16365 hardcode_libdir_flag_spec_GCJ=
16366 hardcode_libdir_flag_spec_ld_GCJ=
16367 hardcode_libdir_separator_GCJ=
16368 hardcode_direct_GCJ=no
16369 hardcode_minus_L_GCJ=no
16370 hardcode_shlibpath_var_GCJ=unsupported
16371 link_all_deplibs_GCJ=unknown
16372 hardcode_automatic_GCJ=no
16373 module_cmds_GCJ=
16374 module_expsym_cmds_GCJ=
16375 always_export_symbols_GCJ=no
16376 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377 # include_expsyms should be a list of space-separated symbols to be *always*
16378 # included in the symbol list
16379 include_expsyms_GCJ=
16380 # exclude_expsyms can be an extended regexp of symbols to exclude
16381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16383 # as well as any symbol that contains `d'.
16384 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16386 # platforms (ab)use it in PIC code, but their linkers get confused if
16387 # the symbol is explicitly referenced. Since portable code cannot
16388 # rely on this symbol name, it's probably fine to never include it in
16389 # preloaded symbol tables.
16390 extract_expsyms_cmds=
087278d6 16391 # Just being paranoid about ensuring that cc_basename is set.
16392 for cc_temp in $compiler""; do
16393 case $cc_temp in
16394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16396 \-*) ;;
16397 *) break;;
16398 esac
16399done
16400cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a33e1d91 16401
16402 case $host_os in
16403 cygwin* | mingw* | pw32*)
16404 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16405 # When not using gcc, we currently assume that we are using
16406 # Microsoft Visual C++.
16407 if test "$GCC" != yes; then
16408 with_gnu_ld=no
16409 fi
16410 ;;
62567204 16411 interix*)
16412 # we just hope/assume this is gcc and not c89 (= MSVC++)
16413 with_gnu_ld=yes
16414 ;;
a33e1d91 16415 openbsd*)
16416 with_gnu_ld=no
16417 ;;
16418 esac
16419
16420 ld_shlibs_GCJ=yes
16421 if test "$with_gnu_ld" = yes; then
16422 # If archive_cmds runs LD, not CC, wlarc should be empty
16423 wlarc='${wl}'
16424
087278d6 16425 # Set some defaults for GNU ld with shared library support. These
16426 # are reset later if shared libraries are not supported. Putting them
16427 # here allows them to be overridden if necessary.
16428 runpath_var=LD_RUN_PATH
16429 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16430 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16431 # ancient GNU ld didn't support --whole-archive et. al.
16432 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16433 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16434 else
16435 whole_archive_flag_spec_GCJ=
16436 fi
16437 supports_anon_versioning=no
16438 case `$LD -v 2>/dev/null` in
16439 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16440 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16441 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16442 *\ 2.11.*) ;; # other 2.11 versions
16443 *) supports_anon_versioning=yes ;;
16444 esac
16445
a33e1d91 16446 # See if GNU ld supports shared libraries.
16447 case $host_os in
16448 aix3* | aix4* | aix5*)
16449 # On AIX/PPC, the GNU linker is very broken
16450 if test "$host_cpu" != ia64; then
16451 ld_shlibs_GCJ=no
16452 cat <<EOF 1>&2
16453
16454*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16455*** to be unable to reliably create shared libraries on AIX.
16456*** Therefore, libtool is disabling shared libraries support. If you
16457*** really care for shared libraries, you may want to modify your PATH
16458*** so that a non-GNU linker is found, and then restart.
16459
16460EOF
16461 fi
16462 ;;
16463
16464 amigaos*)
16465 archive_cmds_GCJ='$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)'
16466 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16467 hardcode_minus_L_GCJ=yes
16468
16469 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16470 # that the semantics of dynamic libraries on AmigaOS, at least up
16471 # to version 4, is to share data among multiple programs linked
16472 # with the same dynamic library. Since this doesn't match the
16473 # behavior of shared libraries on other platforms, we can't use
16474 # them.
16475 ld_shlibs_GCJ=no
16476 ;;
16477
16478 beos*)
16479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16480 allow_undefined_flag_GCJ=unsupported
16481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16482 # support --undefined. This deserves some investigation. FIXME
16483 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484 else
16485 ld_shlibs_GCJ=no
16486 fi
16487 ;;
16488
16489 cygwin* | mingw* | pw32*)
16490 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16491 # as there is no search path for DLLs.
16492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16493 allow_undefined_flag_GCJ=unsupported
16494 always_export_symbols_GCJ=no
16495 enable_shared_with_static_runtimes_GCJ=yes
087278d6 16496 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a33e1d91 16497
16498 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
62567204 16499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 16500 # If the export-symbols file already is a .def file (1st line
16501 # is EXPORTS), use it as is; otherwise, prepend...
16502 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16503 cp $export_symbols $output_objdir/$soname.def;
16504 else
16505 echo EXPORTS > $output_objdir/$soname.def;
16506 cat $export_symbols >> $output_objdir/$soname.def;
16507 fi~
62567204 16508 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a33e1d91 16509 else
087278d6 16510 ld_shlibs_GCJ=no
16511 fi
16512 ;;
16513
62567204 16514 interix3*)
16515 hardcode_direct_GCJ=no
16516 hardcode_shlibpath_var_GCJ=no
16517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16518 export_dynamic_flag_spec_GCJ='${wl}-E'
16519 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16520 # Instead, shared libraries are loaded at an image base (0x10000000 by
16521 # default) and relocated if they conflict, which is a slow very memory
16522 # consuming and fragmenting process. To avoid this, we pick a random,
16523 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16524 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16525 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16526 archive_expsym_cmds_GCJ='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'
16527 ;;
16528
087278d6 16529 linux*)
16530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16531 tmp_addflag=
16532 case $cc_basename,$host_cpu in
16533 pgcc*) # Portland Group C compiler
693f5c2e 16534 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 16535 tmp_addflag=' $pic_flag'
16536 ;;
693f5c2e 16537 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16538 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
087278d6 16539 tmp_addflag=' $pic_flag -Mnomain' ;;
16540 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16541 tmp_addflag=' -i_dynamic' ;;
16542 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16543 tmp_addflag=' -i_dynamic -nofor_main' ;;
16544 ifc* | ifort*) # Intel Fortran compiler
16545 tmp_addflag=' -nofor_main' ;;
16546 esac
16547 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16548
16549 if test $supports_anon_versioning = yes; then
16550 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16551 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16552 $echo "local: *; };" >> $output_objdir/$libname.ver~
16553 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16554 fi
16555 else
16556 ld_shlibs_GCJ=no
a33e1d91 16557 fi
16558 ;;
16559
6263d81f 16560 netbsd*)
a33e1d91 16561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16562 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16563 wlarc=
16564 else
16565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16566 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16567 fi
16568 ;;
16569
62567204 16570 solaris*)
a33e1d91 16571 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16572 ld_shlibs_GCJ=no
16573 cat <<EOF 1>&2
16574
16575*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16576*** create shared libraries on Solaris systems. Therefore, libtool
16577*** is disabling shared libraries support. We urge you to upgrade GNU
16578*** binutils to release 2.9.1 or newer. Another option is to modify
16579*** your PATH or compiler configuration so that the native linker is
16580*** used, and then restart.
16581
16582EOF
16583 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16586 else
16587 ld_shlibs_GCJ=no
16588 fi
16589 ;;
16590
62567204 16591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16592 case `$LD -v 2>&1` in
16593 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16594 ld_shlibs_GCJ=no
16595 cat <<_LT_EOF 1>&2
16596
16597*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16598*** reliably create shared libraries on SCO systems. Therefore, libtool
16599*** is disabling shared libraries support. We urge you to upgrade GNU
16600*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16601*** your PATH or compiler configuration so that the native linker is
16602*** used, and then restart.
16603
16604_LT_EOF
16605 ;;
16606 *)
16607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16608 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16609 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16610 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16611 else
16612 ld_shlibs_GCJ=no
16613 fi
16614 ;;
16615 esac
16616 ;;
16617
a33e1d91 16618 sunos4*)
16619 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16620 wlarc=
16621 hardcode_direct_GCJ=yes
16622 hardcode_shlibpath_var_GCJ=no
16623 ;;
16624
a33e1d91 16625 *)
16626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16627 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16628 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16629 else
16630 ld_shlibs_GCJ=no
16631 fi
16632 ;;
16633 esac
16634
087278d6 16635 if test "$ld_shlibs_GCJ" = no; then
16636 runpath_var=
16637 hardcode_libdir_flag_spec_GCJ=
16638 export_dynamic_flag_spec_GCJ=
16639 whole_archive_flag_spec_GCJ=
a33e1d91 16640 fi
16641 else
16642 # PORTME fill in a description of your system's linker (not GNU ld)
16643 case $host_os in
16644 aix3*)
16645 allow_undefined_flag_GCJ=unsupported
16646 always_export_symbols_GCJ=yes
16647 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16648 # Note: this linker hardcodes the directories in LIBPATH if there
16649 # are no directories specified by -L.
16650 hardcode_minus_L_GCJ=yes
62567204 16651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a33e1d91 16652 # Neither direct hardcoding nor static linking is supported with a
16653 # broken collect2.
16654 hardcode_direct_GCJ=unsupported
16655 fi
16656 ;;
16657
16658 aix4* | aix5*)
16659 if test "$host_cpu" = ia64; then
16660 # On IA64, the linker does run time linking by default, so we don't
16661 # have to do anything special.
16662 aix_use_runtimelinking=no
16663 exp_sym_flag='-Bexport'
16664 no_entry_flag=""
16665 else
16666 # If we're using GNU nm, then we don't want the "-C" option.
16667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16669 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16670 else
16671 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16672 fi
16673 aix_use_runtimelinking=no
16674
16675 # Test if we are trying to use run time linking or normal
16676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16677 # need to do runtime linking.
16678 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16679 for ld_flag in $LDFLAGS; do
16680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16681 aix_use_runtimelinking=yes
16682 break
16683 fi
16684 done
62567204 16685 ;;
a33e1d91 16686 esac
16687
16688 exp_sym_flag='-bexport'
16689 no_entry_flag='-bnoentry'
16690 fi
16691
16692 # When large executables or shared objects are built, AIX ld can
16693 # have problems creating the table of contents. If linking a library
16694 # or program results in "error TOC overflow" add -mminimal-toc to
16695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16697
16698 archive_cmds_GCJ=''
16699 hardcode_direct_GCJ=yes
16700 hardcode_libdir_separator_GCJ=':'
16701 link_all_deplibs_GCJ=yes
16702
16703 if test "$GCC" = yes; then
087278d6 16704 case $host_os in aix4.[012]|aix4.[012].*)
a33e1d91 16705 # We only want to do this on AIX 4.2 and lower, the check
16706 # below for broken collect2 doesn't work under 4.3+
16707 collect2name=`${CC} -print-prog-name=collect2`
16708 if test -f "$collect2name" && \
16709 strings "$collect2name" | grep resolve_lib_name >/dev/null
16710 then
16711 # We have reworked collect2
16712 hardcode_direct_GCJ=yes
16713 else
16714 # We have old collect2
16715 hardcode_direct_GCJ=unsupported
16716 # It fails to find uninstalled libraries when the uninstalled
16717 # path is not listed in the libpath. Setting hardcode_minus_L
16718 # to unsupported forces relinking
16719 hardcode_minus_L_GCJ=yes
16720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16721 hardcode_libdir_separator_GCJ=
16722 fi
62567204 16723 ;;
a33e1d91 16724 esac
16725 shared_flag='-shared'
087278d6 16726 if test "$aix_use_runtimelinking" = yes; then
16727 shared_flag="$shared_flag "'${wl}-G'
16728 fi
a33e1d91 16729 else
16730 # not using gcc
16731 if test "$host_cpu" = ia64; then
16732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16733 # chokes on -Wl,-G. The following line is correct:
16734 shared_flag='-G'
16735 else
62567204 16736 if test "$aix_use_runtimelinking" = yes; then
a33e1d91 16737 shared_flag='${wl}-G'
16738 else
16739 shared_flag='${wl}-bM:SRE'
62567204 16740 fi
a33e1d91 16741 fi
16742 fi
16743
16744 # It seems that -bexpall does not export symbols beginning with
16745 # underscore (_), so it is better to generate a list of symbols to export.
16746 always_export_symbols_GCJ=yes
16747 if test "$aix_use_runtimelinking" = yes; then
16748 # Warning - without using the other runtime loading flags (-brtl),
16749 # -berok will link without error, but may produce a broken library.
16750 allow_undefined_flag_GCJ='-berok'
16751 # Determine the default libpath from the value encoded in an empty executable.
16752 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
16758
16759int
16760main ()
16761{
16762
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext conftest$ac_exeext
16768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 16769 (eval $ac_link) 2>conftest.er1
a33e1d91 16770 ac_status=$?
af3004ff 16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
a33e1d91 16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
6263d81f 16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
af3004ff 16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest$ac_exeext'
a33e1d91 16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789
16790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16791}'`
16792# Check for a 64-bit object if we didn't find anything.
16793if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16794}'`; fi
16795else
16796 echo "$as_me: failed program was:" >&5
16797sed 's/^/| /' conftest.$ac_ext >&5
16798
16799fi
af3004ff 16800rm -f conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
a33e1d91 16802if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16803
16804 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
62567204 16805 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a33e1d91 16806 else
16807 if test "$host_cpu" = ia64; then
16808 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16809 allow_undefined_flag_GCJ="-z nodefs"
62567204 16810 archive_expsym_cmds_GCJ="\$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"
a33e1d91 16811 else
16812 # Determine the default libpath from the value encoded in an empty executable.
16813 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819
16820int
16821main ()
16822{
16823
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext conftest$ac_exeext
16829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 16830 (eval $ac_link) 2>conftest.er1
a33e1d91 16831 ac_status=$?
af3004ff 16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
a33e1d91 16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
6263d81f 16837 { ac_try='test -z "$ac_c_werror_flag"
16838 || test ! -s conftest.err'
af3004ff 16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest$ac_exeext'
a33e1d91 16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850
16851aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16852}'`
16853# Check for a 64-bit object if we didn't find anything.
16854if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16855}'`; fi
16856else
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860fi
af3004ff 16861rm -f conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
a33e1d91 16863if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16864
16865 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16866 # Warning - without using the other run time loading flags,
16867 # -berok will link without error, but may produce a broken library.
16868 no_undefined_flag_GCJ=' ${wl}-bernotok'
16869 allow_undefined_flag_GCJ=' ${wl}-berok'
a33e1d91 16870 # Exported symbols can be pulled into shared objects from archives
62567204 16871 whole_archive_flag_spec_GCJ='$convenience'
a33e1d91 16872 archive_cmds_need_lc_GCJ=yes
693f5c2e 16873 # This is similar to how AIX traditionally builds its shared libraries.
62567204 16874 archive_expsym_cmds_GCJ="\$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'
a33e1d91 16875 fi
16876 fi
16877 ;;
16878
16879 amigaos*)
16880 archive_cmds_GCJ='$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)'
16881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882 hardcode_minus_L_GCJ=yes
16883 # see comment about different semantics on the GNU ld section
16884 ld_shlibs_GCJ=no
16885 ;;
16886
631008fb 16887 bsdi[45]*)
a33e1d91 16888 export_dynamic_flag_spec_GCJ=-rdynamic
16889 ;;
16890
16891 cygwin* | mingw* | pw32*)
16892 # When not using gcc, we currently assume that we are using
16893 # Microsoft Visual C++.
16894 # hardcode_libdir_flag_spec is actually meaningless, as there is
16895 # no search path for DLLs.
16896 hardcode_libdir_flag_spec_GCJ=' '
16897 allow_undefined_flag_GCJ=unsupported
16898 # Tell ltmain to make .lib files, not .a files.
16899 libext=lib
16900 # Tell ltmain to make .dll files, not .so files.
16901 shrext_cmds=".dll"
16902 # FIXME: Setting linknames here is a bad hack.
16903 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16904 # The linker will automatically build a .lib file if we build a DLL.
16905 old_archive_From_new_cmds_GCJ='true'
16906 # FIXME: Should let the user specify the lib program.
16907 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
087278d6 16908 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
a33e1d91 16909 enable_shared_with_static_runtimes_GCJ=yes
16910 ;;
16911
16912 darwin* | rhapsody*)
693f5c2e 16913 case $host_os in
631008fb 16914 rhapsody* | darwin1.[012])
16915 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16916 ;;
16917 *) # Darwin 1.3 on
16918 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16919 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16920 else
16921 case ${MACOSX_DEPLOYMENT_TARGET} in
16922 10.[012])
16923 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16924 ;;
16925 10.*)
16926 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16927 ;;
16928 esac
16929 fi
16930 ;;
a33e1d91 16931 esac
631008fb 16932 archive_cmds_need_lc_GCJ=no
a33e1d91 16933 hardcode_direct_GCJ=no
16934 hardcode_automatic_GCJ=yes
16935 hardcode_shlibpath_var_GCJ=unsupported
631008fb 16936 whole_archive_flag_spec_GCJ=''
a33e1d91 16937 link_all_deplibs_GCJ=yes
631008fb 16938 if test "$GCC" = yes ; then
16939 output_verbose_link_cmd='echo'
16940 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16941 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 16942 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 16943 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16944 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
a33e1d91 16945 else
087278d6 16946 case $cc_basename in
631008fb 16947 xlc*)
16948 output_verbose_link_cmd='echo'
16949 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16950 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
693f5c2e 16951 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
631008fb 16952 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16953 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16954 ;;
16955 *)
16956 ld_shlibs_GCJ=no
16957 ;;
16958 esac
a33e1d91 16959 fi
16960 ;;
16961
16962 dgux*)
16963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16965 hardcode_shlibpath_var_GCJ=no
16966 ;;
16967
16968 freebsd1*)
16969 ld_shlibs_GCJ=no
16970 ;;
16971
16972 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16973 # support. Future versions do this automatically, but an explicit c++rt0.o
16974 # does not break anything, and helps significantly (at the cost of a little
16975 # extra space).
16976 freebsd2.2*)
16977 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979 hardcode_direct_GCJ=yes
16980 hardcode_shlibpath_var_GCJ=no
16981 ;;
16982
16983 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16984 freebsd2*)
16985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct_GCJ=yes
16987 hardcode_minus_L_GCJ=yes
16988 hardcode_shlibpath_var_GCJ=no
16989 ;;
16990
16991 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6263d81f 16992 freebsd* | kfreebsd*-gnu | dragonfly*)
25b6a907 16993 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16994 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16995 hardcode_direct_GCJ=yes
16996 hardcode_shlibpath_var_GCJ=no
16997 ;;
16998
a33e1d91 16999 hpux9*)
17000 if test "$GCC" = yes; then
17001 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17002 else
17003 archive_cmds_GCJ='$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'
17004 fi
17005 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17006 hardcode_libdir_separator_GCJ=:
17007 hardcode_direct_GCJ=yes
17008
17009 # hardcode_minus_L: Not really in the search PATH,
17010 # but as the default location of the library.
17011 hardcode_minus_L_GCJ=yes
17012 export_dynamic_flag_spec_GCJ='${wl}-E'
17013 ;;
17014
62567204 17015 hpux10*)
17016 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17017 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17018 else
17019 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17020 fi
17021 if test "$with_gnu_ld" = no; then
17022 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17023 hardcode_libdir_separator_GCJ=:
17024
17025 hardcode_direct_GCJ=yes
17026 export_dynamic_flag_spec_GCJ='${wl}-E'
17027
17028 # hardcode_minus_L: Not really in the search PATH,
17029 # but as the default location of the library.
17030 hardcode_minus_L_GCJ=yes
17031 fi
17032 ;;
17033
17034 hpux11*)
a33e1d91 17035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
693f5c2e 17036 case $host_cpu in
62567204 17037 hppa*64*)
a33e1d91 17038 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17039 ;;
62567204 17040 ia64*)
17041 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17042 ;;
a33e1d91 17043 *)
17044 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17045 ;;
17046 esac
17047 else
693f5c2e 17048 case $host_cpu in
62567204 17049 hppa*64*)
17050 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 ;;
17052 ia64*)
17053 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 17054 ;;
17055 *)
62567204 17056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 17057 ;;
17058 esac
17059 fi
17060 if test "$with_gnu_ld" = no; then
62567204 17061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17062 hardcode_libdir_separator_GCJ=:
17063
693f5c2e 17064 case $host_cpu in
62567204 17065 hppa*64*|ia64*)
a33e1d91 17066 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
a33e1d91 17067 hardcode_direct_GCJ=no
17068 hardcode_shlibpath_var_GCJ=no
a33e1d91 17069 ;;
17070 *)
a33e1d91 17071 hardcode_direct_GCJ=yes
17072 export_dynamic_flag_spec_GCJ='${wl}-E'
17073
17074 # hardcode_minus_L: Not really in the search PATH,
17075 # but as the default location of the library.
17076 hardcode_minus_L_GCJ=yes
17077 ;;
17078 esac
17079 fi
17080 ;;
17081
17082 irix5* | irix6* | nonstopux*)
17083 if test "$GCC" = yes; then
17084 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17085 else
17086 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17087 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17088 fi
17089 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17090 hardcode_libdir_separator_GCJ=:
17091 link_all_deplibs_GCJ=yes
17092 ;;
17093
6263d81f 17094 netbsd*)
a33e1d91 17095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17096 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17097 else
17098 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17099 fi
17100 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17101 hardcode_direct_GCJ=yes
17102 hardcode_shlibpath_var_GCJ=no
17103 ;;
17104
17105 newsos6)
17106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_direct_GCJ=yes
17108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17109 hardcode_libdir_separator_GCJ=:
17110 hardcode_shlibpath_var_GCJ=no
17111 ;;
17112
17113 openbsd*)
17114 hardcode_direct_GCJ=yes
17115 hardcode_shlibpath_var_GCJ=no
17116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17117 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
631008fb 17118 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a33e1d91 17119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17120 export_dynamic_flag_spec_GCJ='${wl}-E'
17121 else
17122 case $host_os in
17123 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17124 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17126 ;;
17127 *)
17128 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17130 ;;
17131 esac
17132 fi
17133 ;;
17134
17135 os2*)
17136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17137 hardcode_minus_L_GCJ=yes
17138 allow_undefined_flag_GCJ=unsupported
17139 archive_cmds_GCJ='$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'
17140 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17141 ;;
17142
17143 osf3*)
17144 if test "$GCC" = yes; then
17145 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17146 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17147 else
17148 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17149 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17150 fi
17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152 hardcode_libdir_separator_GCJ=:
17153 ;;
17154
17155 osf4* | osf5*) # as osf3* with the addition of -msym flag
17156 if test "$GCC" = yes; then
17157 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17158 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17160 else
17161 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17162 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17163 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
087278d6 17164 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a33e1d91 17165
17166 # Both c and cxx compiler support -rpath directly
17167 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17168 fi
17169 hardcode_libdir_separator_GCJ=:
17170 ;;
17171
a33e1d91 17172 solaris*)
17173 no_undefined_flag_GCJ=' -z text'
17174 if test "$GCC" = yes; then
087278d6 17175 wlarc='${wl}'
a33e1d91 17176 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17177 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17178 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17179 else
087278d6 17180 wlarc=''
a33e1d91 17181 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17182 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17183 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17184 fi
17185 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17186 hardcode_shlibpath_var_GCJ=no
17187 case $host_os in
17188 solaris2.[0-5] | solaris2.[0-5].*) ;;
087278d6 17189 *)
17190 # The compiler driver will combine linker options so we
17191 # cannot just pass the convience library names through
17192 # without $wl, iff we do not link with $LD.
17193 # Luckily, gcc supports the same syntax we need for Sun Studio.
17194 # Supported since Solaris 2.6 (maybe 2.5.1?)
17195 case $wlarc in
17196 '')
17197 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17198 *)
17199 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17200 esac ;;
a33e1d91 17201 esac
17202 link_all_deplibs_GCJ=yes
17203 ;;
17204
17205 sunos4*)
17206 if test "x$host_vendor" = xsequent; then
17207 # Use $CC to link under sequent, because it throws in some extra .o
17208 # files that make .init and .fini sections work.
17209 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17210 else
17211 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17212 fi
17213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214 hardcode_direct_GCJ=yes
17215 hardcode_minus_L_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=no
17217 ;;
17218
17219 sysv4)
17220 case $host_vendor in
17221 sni)
17222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223 hardcode_direct_GCJ=yes # is this really true???
17224 ;;
17225 siemens)
17226 ## LD is ld it makes a PLAMLIB
17227 ## CC just makes a GrossModule.
17228 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17229 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17230 hardcode_direct_GCJ=no
17231 ;;
17232 motorola)
17233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17234 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17235 ;;
17236 esac
17237 runpath_var='LD_RUN_PATH'
17238 hardcode_shlibpath_var_GCJ=no
17239 ;;
17240
17241 sysv4.3*)
17242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243 hardcode_shlibpath_var_GCJ=no
17244 export_dynamic_flag_spec_GCJ='-Bexport'
17245 ;;
17246
17247 sysv4*MP*)
17248 if test -d /usr/nec; then
17249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250 hardcode_shlibpath_var_GCJ=no
17251 runpath_var=LD_RUN_PATH
17252 hardcode_runpath_var=yes
17253 ld_shlibs_GCJ=yes
17254 fi
17255 ;;
17256
62567204 17257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17258 no_undefined_flag_GCJ='${wl}-z,text'
17259 archive_cmds_need_lc_GCJ=no
a33e1d91 17260 hardcode_shlibpath_var_GCJ=no
62567204 17261 runpath_var='LD_RUN_PATH'
a33e1d91 17262
a33e1d91 17263 if test "$GCC" = yes; then
62567204 17264 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17265 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 17266 else
62567204 17267 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17268 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a33e1d91 17269 fi
a33e1d91 17270 ;;
17271
62567204 17272 sysv5* | sco3.2v5* | sco5v6*)
17273 # Note: We can NOT use -z defs as we might desire, because we do not
17274 # link with -lc, and that would cause any symbols used from libc to
17275 # always be unresolved, which means just about no library would
17276 # ever link correctly. If we're not using GNU ld we use -z text
17277 # though, which does catch some bad symbols but isn't as heavy-handed
17278 # as -z defs.
17279 no_undefined_flag_GCJ='${wl}-z,text'
17280 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17281 archive_cmds_need_lc_GCJ=no
a33e1d91 17282 hardcode_shlibpath_var_GCJ=no
62567204 17283 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17284 hardcode_libdir_separator_GCJ=':'
17285 link_all_deplibs_GCJ=yes
17286 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a33e1d91 17287 runpath_var='LD_RUN_PATH'
62567204 17288
17289 if test "$GCC" = yes; then
17290 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17291 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17292 else
17293 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17294 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 fi
a33e1d91 17296 ;;
17297
17298 uts4*)
17299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301 hardcode_shlibpath_var_GCJ=no
17302 ;;
17303
17304 *)
17305 ld_shlibs_GCJ=no
17306 ;;
17307 esac
17308 fi
17309
17310echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17311echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17312test "$ld_shlibs_GCJ" = no && can_build_shared=no
17313
a33e1d91 17314#
17315# Do we need to explicitly link libc?
17316#
17317case "x$archive_cmds_need_lc_GCJ" in
17318x|xyes)
17319 # Assume -lc should be added
17320 archive_cmds_need_lc_GCJ=yes
17321
17322 if test "$enable_shared" = yes && test "$GCC" = yes; then
17323 case $archive_cmds_GCJ in
17324 *'~'*)
17325 # FIXME: we may have to deal with multi-command sequences.
17326 ;;
17327 '$CC '*)
17328 # Test whether the compiler implicitly links with -lc since on some
17329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17330 # to ld, don't add -lc before -lgcc.
17331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17333 $rm conftest*
17334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17335
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } 2>conftest.err; then
17341 soname=conftest
17342 lib=conftest
17343 libobjs=conftest.$ac_objext
17344 deplibs=
17345 wl=$lt_prog_compiler_wl_GCJ
62567204 17346 pic_flag=$lt_prog_compiler_pic_GCJ
a33e1d91 17347 compiler_flags=-v
17348 linker_flags=-v
17349 verstring=
17350 output_objdir=.
17351 libname=conftest
17352 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17353 allow_undefined_flag_GCJ=
17354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17355 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }
17359 then
17360 archive_cmds_need_lc_GCJ=no
17361 else
17362 archive_cmds_need_lc_GCJ=yes
17363 fi
17364 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17365 else
17366 cat conftest.err 1>&5
17367 fi
17368 $rm conftest*
17369 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17370echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17371 ;;
17372 esac
17373 fi
17374 ;;
17375esac
17376
17377echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17378echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17379library_names_spec=
17380libname_spec='lib$name'
17381soname_spec=
17382shrext_cmds=".so"
17383postinstall_cmds=
17384postuninstall_cmds=
17385finish_cmds=
17386finish_eval=
17387shlibpath_var=
17388shlibpath_overrides_runpath=unknown
17389version_type=none
17390dynamic_linker="$host_os ld.so"
17391sys_lib_dlsearch_path_spec="/lib /usr/lib"
17392if test "$GCC" = yes; then
17393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17395 # if the path contains ";" then we assume it to be the separator
17396 # otherwise default to the standard path separator (i.e. ":") - it is
17397 # assumed that no part of a normal pathname contains ";" but that should
17398 # okay in the real world where ";" in dirpaths is itself problematic.
17399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17400 else
17401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17402 fi
17403else
17404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17405fi
17406need_lib_prefix=unknown
17407hardcode_into_libs=no
17408
17409# when you set need_version to no, make sure it does not cause -set_version
17410# flags to be left without arguments
17411need_version=unknown
17412
17413case $host_os in
17414aix3*)
17415 version_type=linux
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17417 shlibpath_var=LIBPATH
17418
17419 # AIX 3 has no versioning support, so we append a major version to the name.
17420 soname_spec='${libname}${release}${shared_ext}$major'
17421 ;;
17422
17423aix4* | aix5*)
17424 version_type=linux
17425 need_lib_prefix=no
17426 need_version=no
17427 hardcode_into_libs=yes
17428 if test "$host_cpu" = ia64; then
17429 # AIX 5 supports IA64
17430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 else
17433 # With GCC up to 2.95.x, collect2 would create an import file
17434 # for dependence libraries. The import file would start with
17435 # the line `#! .'. This would cause the generated library to
17436 # depend on `.', always an invalid library. This was fixed in
17437 # development snapshots of GCC prior to 3.0.
17438 case $host_os in
17439 aix4 | aix4.[01] | aix4.[01].*)
17440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17441 echo ' yes '
17442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17443 :
17444 else
17445 can_build_shared=no
17446 fi
17447 ;;
17448 esac
17449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17450 # soname into executable. Probably we can add versioning support to
17451 # collect2, so additional links can be useful in future.
17452 if test "$aix_use_runtimelinking" = yes; then
17453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17454 # instead of lib<name>.a to let people know that these are not
17455 # typical AIX shared libraries.
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 else
17458 # We preserve .a as extension for shared libraries through AIX4.2
17459 # and later when we are not doing run time linking.
17460 library_names_spec='${libname}${release}.a $libname.a'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 fi
17463 shlibpath_var=LIBPATH
62567204 17464 fi
17465 ;;
a33e1d91 17466
62567204 17467amigaos*)
17468 library_names_spec='$libname.ixlibrary $libname.a'
17469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17470 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17471 ;;
a33e1d91 17472
62567204 17473beos*)
17474 library_names_spec='${libname}${shared_ext}'
17475 dynamic_linker="$host_os ld.so"
17476 shlibpath_var=LIBRARY_PATH
17477 ;;
a33e1d91 17478
62567204 17479bsdi[45]*)
17480 version_type=linux
17481 need_version=no
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17488 # the default ld.so.conf also contains /usr/contrib/lib and
17489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17490 # libtool to hard-code these into programs
17491 ;;
a33e1d91 17492
62567204 17493cygwin* | mingw* | pw32*)
17494 version_type=windows
17495 shrext_cmds=".dll"
17496 need_version=no
17497 need_lib_prefix=no
a33e1d91 17498
62567204 17499 case $GCC,$host_os in
17500 yes,cygwin* | yes,mingw* | yes,pw32*)
17501 library_names_spec='$libname.dll.a'
17502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17503 postinstall_cmds='base_file=`basename \${file}`~
17504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17505 dldir=$destdir/`dirname \$dlpath`~
17506 test -d \$dldir || mkdir -p \$dldir~
17507 $install_prog $dir/$dlname \$dldir/$dlname~
17508 chmod a+x \$dldir/$dlname'
17509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17510 dlpath=$dir/\$dldll~
17511 $rm \$dlpath'
17512 shlibpath_overrides_runpath=yes
a33e1d91 17513
62567204 17514 case $host_os in
17515 cygwin*)
17516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17519 ;;
17520 mingw*)
17521 # MinGW DLLs use traditional 'lib' prefix
17522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17525 # It is most probably a Windows format PATH printed by
17526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17527 # path with ; separators, and with drive letters. We can handle the
17528 # drive letters (cygwin fileutils understands them), so leave them,
17529 # especially as we might pass files found there to a mingw objdump,
17530 # which wouldn't understand a cygwinified path. Ahh.
17531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17532 else
17533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17534 fi
17535 ;;
17536 pw32*)
17537 # pw32 DLLs use 'pw' prefix rather than 'lib'
17538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17539 ;;
17540 esac
17541 ;;
a33e1d91 17542
62567204 17543 *)
17544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17545 ;;
17546 esac
17547 dynamic_linker='Win32 ld.exe'
17548 # FIXME: first we should search . and the directory the executable is in
17549 shlibpath_var=PATH
17550 ;;
a33e1d91 17551
62567204 17552darwin* | rhapsody*)
17553 dynamic_linker="$host_os dyld"
17554 version_type=darwin
17555 need_lib_prefix=no
17556 need_version=no
17557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17558 soname_spec='${libname}${release}${major}$shared_ext'
17559 shlibpath_overrides_runpath=yes
17560 shlibpath_var=DYLD_LIBRARY_PATH
17561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17563 if test "$GCC" = yes; then
17564 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17565 else
17566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17567 fi
17568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17569 ;;
a33e1d91 17570
62567204 17571dgux*)
17572 version_type=linux
17573 need_lib_prefix=no
17574 need_version=no
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 ;;
a33e1d91 17579
62567204 17580freebsd1*)
17581 dynamic_linker=no
17582 ;;
a33e1d91 17583
62567204 17584kfreebsd*-gnu)
17585 version_type=linux
17586 need_lib_prefix=no
17587 need_version=no
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 shlibpath_overrides_runpath=no
17592 hardcode_into_libs=yes
17593 dynamic_linker='GNU ld.so'
17594 ;;
a33e1d91 17595
62567204 17596freebsd* | dragonfly*)
17597 # DragonFly does not have aout. When/if they implement a new
17598 # versioning mechanism, adjust this.
17599 if test -x /usr/bin/objformat; then
17600 objformat=`/usr/bin/objformat`
17601 else
17602 case $host_os in
17603 freebsd[123]*) objformat=aout ;;
17604 *) objformat=elf ;;
17605 esac
17606 fi
17607 version_type=freebsd-$objformat
17608 case $version_type in
17609 freebsd-elf*)
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17611 need_version=no
17612 need_lib_prefix=no
17613 ;;
17614 freebsd-*)
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17616 need_version=yes
17617 ;;
17618 esac
17619 shlibpath_var=LD_LIBRARY_PATH
17620 case $host_os in
17621 freebsd2*)
17622 shlibpath_overrides_runpath=yes
17623 ;;
17624 freebsd3.[01]* | freebsdelf3.[01]*)
17625 shlibpath_overrides_runpath=yes
17626 hardcode_into_libs=yes
17627 ;;
17628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17630 shlibpath_overrides_runpath=no
17631 hardcode_into_libs=yes
17632 ;;
17633 freebsd*) # from 4.6 on
17634 shlibpath_overrides_runpath=yes
17635 hardcode_into_libs=yes
17636 ;;
17637 esac
17638 ;;
a33e1d91 17639
62567204 17640gnu*)
17641 version_type=linux
17642 need_lib_prefix=no
17643 need_version=no
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 hardcode_into_libs=yes
17648 ;;
a33e1d91 17649
62567204 17650hpux9* | hpux10* | hpux11*)
17651 # Give a soname corresponding to the major version so that dld.sl refuses to
17652 # link against other versions.
17653 version_type=sunos
17654 need_lib_prefix=no
17655 need_version=no
17656 case $host_cpu in
17657 ia64*)
17658 shrext_cmds='.so'
17659 hardcode_into_libs=yes
17660 dynamic_linker="$host_os dld.so"
17661 shlibpath_var=LD_LIBRARY_PATH
17662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 if test "X$HPUX_IA64_MODE" = X32; then
17666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17667 else
17668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17669 fi
17670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17671 ;;
17672 hppa*64*)
17673 shrext_cmds='.sl'
17674 hardcode_into_libs=yes
17675 dynamic_linker="$host_os dld.sl"
17676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17682 ;;
17683 *)
17684 shrext_cmds='.sl'
17685 dynamic_linker="$host_os dld.sl"
17686 shlibpath_var=SHLIB_PATH
17687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
a33e1d91 17690 ;;
17691 esac
62567204 17692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17693 postinstall_cmds='chmod 555 $lib'
17694 ;;
a33e1d91 17695
62567204 17696interix3*)
17697 version_type=linux
17698 need_lib_prefix=no
17699 need_version=no
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=no
17705 hardcode_into_libs=yes
17706 ;;
a33e1d91 17707
62567204 17708irix5* | irix6* | nonstopux*)
17709 case $host_os in
17710 nonstopux*) version_type=nonstopux ;;
17711 *)
17712 if test "$lt_cv_prog_gnu_ld" = yes; then
17713 version_type=linux
17714 else
17715 version_type=irix
17716 fi ;;
17717 esac
17718 need_lib_prefix=no
17719 need_version=no
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17722 case $host_os in
17723 irix5* | nonstopux*)
17724 libsuff= shlibsuff=
17725 ;;
17726 *)
17727 case $LD in # libtool.m4 will add one of these switches to LD
17728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17729 libsuff= shlibsuff= libmagic=32-bit;;
17730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17731 libsuff=32 shlibsuff=N32 libmagic=N32;;
17732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17734 *) libsuff= shlibsuff= libmagic=never-match;;
17735 esac
17736 ;;
17737 esac
17738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17739 shlibpath_overrides_runpath=no
17740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17742 hardcode_into_libs=yes
17743 ;;
a33e1d91 17744
62567204 17745# No shared lib support for Linux oldld, aout, or coff.
17746linux*oldld* | linux*aout* | linux*coff*)
17747 dynamic_linker=no
17748 ;;
a33e1d91 17749
62567204 17750# This must be Linux ELF.
17751linux*)
17752 version_type=linux
17753 need_lib_prefix=no
17754 need_version=no
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17758 shlibpath_var=LD_LIBRARY_PATH
17759 shlibpath_overrides_runpath=no
17760 # This implies no fast_install, which is unacceptable.
17761 # Some rework will be needed to allow for fast_install
17762 # before this can be enabled.
17763 hardcode_into_libs=yes
a33e1d91 17764
62567204 17765 # Append ld.so.conf contents to the search path
17766 if test -f /etc/ld.so.conf; then
17767 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17769 fi
a33e1d91 17770
62567204 17771 # We used to test for /lib/ld.so.1 and disable shared libraries on
17772 # powerpc, because MkLinux only supported shared libraries with the
17773 # GNU dynamic linker. Since this was broken with cross compilers,
17774 # most powerpc-linux boxes support dynamic linking these days and
17775 # people can always --disable-shared, the test was removed, and we
17776 # assume the GNU/Linux dynamic linker is in use.
17777 dynamic_linker='GNU/Linux ld.so'
17778 ;;
a33e1d91 17779
62567204 17780knetbsd*-gnu)
17781 version_type=linux
17782 need_lib_prefix=no
17783 need_version=no
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17785 soname_spec='${libname}${release}${shared_ext}$major'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=no
17788 hardcode_into_libs=yes
17789 dynamic_linker='GNU ld.so'
17790 ;;
a33e1d91 17791
62567204 17792netbsd*)
17793 version_type=sunos
17794 need_lib_prefix=no
17795 need_version=no
17796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17799 dynamic_linker='NetBSD (a.out) ld.so'
17800 else
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17802 soname_spec='${libname}${release}${shared_ext}$major'
17803 dynamic_linker='NetBSD ld.elf_so'
a33e1d91 17804 fi
62567204 17805 shlibpath_var=LD_LIBRARY_PATH
17806 shlibpath_overrides_runpath=yes
17807 hardcode_into_libs=yes
17808 ;;
a33e1d91 17809
62567204 17810newsos6)
17811 version_type=linux
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17813 shlibpath_var=LD_LIBRARY_PATH
17814 shlibpath_overrides_runpath=yes
17815 ;;
a33e1d91 17816
62567204 17817nto-qnx*)
17818 version_type=linux
17819 need_lib_prefix=no
17820 need_version=no
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath=yes
17825 ;;
a33e1d91 17826
62567204 17827openbsd*)
17828 version_type=sunos
17829 sys_lib_dlsearch_path_spec="/usr/lib"
17830 need_lib_prefix=no
17831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17832 case $host_os in
17833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17834 *) need_version=no ;;
17835 esac
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17840 case $host_os in
17841 openbsd2.[89] | openbsd2.[89].*)
17842 shlibpath_overrides_runpath=no
17843 ;;
17844 *)
17845 shlibpath_overrides_runpath=yes
17846 ;;
17847 esac
17848 else
17849 shlibpath_overrides_runpath=yes
17850 fi
17851 ;;
a33e1d91 17852
62567204 17853os2*)
17854 libname_spec='$name'
17855 shrext_cmds=".dll"
17856 need_lib_prefix=no
17857 library_names_spec='$libname${shared_ext} $libname.a'
17858 dynamic_linker='OS/2 ld.exe'
17859 shlibpath_var=LIBPATH
17860 ;;
a33e1d91 17861
62567204 17862osf3* | osf4* | osf5*)
17863 version_type=osf
17864 need_lib_prefix=no
17865 need_version=no
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17871 ;;
a33e1d91 17872
62567204 17873solaris*)
17874 version_type=linux
17875 need_lib_prefix=no
17876 need_version=no
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 soname_spec='${libname}${release}${shared_ext}$major'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 shlibpath_overrides_runpath=yes
17881 hardcode_into_libs=yes
17882 # ldd complains unless libraries are executable
17883 postinstall_cmds='chmod +x $lib'
17884 ;;
a33e1d91 17885
62567204 17886sunos4*)
17887 version_type=sunos
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17890 shlibpath_var=LD_LIBRARY_PATH
17891 shlibpath_overrides_runpath=yes
17892 if test "$with_gnu_ld" = yes; then
17893 need_lib_prefix=no
17894 fi
17895 need_version=yes
17896 ;;
a33e1d91 17897
62567204 17898sysv4 | sysv4.3*)
17899 version_type=linux
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 case $host_vendor in
17904 sni)
17905 shlibpath_overrides_runpath=no
17906 need_lib_prefix=no
17907 export_dynamic_flag_spec='${wl}-Blargedynsym'
17908 runpath_var=LD_RUN_PATH
17909 ;;
17910 siemens)
17911 need_lib_prefix=no
17912 ;;
17913 motorola)
17914 need_lib_prefix=no
17915 need_version=no
17916 shlibpath_overrides_runpath=no
17917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17918 ;;
17919 esac
17920 ;;
a33e1d91 17921
62567204 17922sysv4*MP*)
17923 if test -d /usr/nec ;then
17924 version_type=linux
17925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17926 soname_spec='$libname${shared_ext}.$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 fi
17929 ;;
17930
17931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17932 version_type=freebsd-elf
17933 need_lib_prefix=no
17934 need_version=no
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17936 soname_spec='${libname}${release}${shared_ext}$major'
17937 shlibpath_var=LD_LIBRARY_PATH
17938 hardcode_into_libs=yes
17939 if test "$with_gnu_ld" = yes; then
17940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17941 shlibpath_overrides_runpath=no
17942 else
17943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17944 shlibpath_overrides_runpath=yes
17945 case $host_os in
17946 sco3.2v5*)
17947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17948 ;;
a33e1d91 17949 esac
a33e1d91 17950 fi
62567204 17951 sys_lib_dlsearch_path_spec='/usr/lib'
17952 ;;
17953
17954uts4*)
17955 version_type=linux
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 ;;
a33e1d91 17960
62567204 17961*)
17962 dynamic_linker=no
17963 ;;
17964esac
17965echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17966echo "${ECHO_T}$dynamic_linker" >&6
17967test "$dynamic_linker" = no && can_build_shared=no
a33e1d91 17968
62567204 17969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17970if test "$GCC" = yes; then
17971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
a33e1d91 17972fi
a33e1d91 17973
62567204 17974echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17975echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17976hardcode_action_GCJ=
17977if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17978 test -n "$runpath_var_GCJ" || \
17979 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
a33e1d91 17980
62567204 17981 # We can hardcode non-existant directories.
17982 if test "$hardcode_direct_GCJ" != no &&
17983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17984 # have to relink, otherwise we might link with an installed library
17985 # when we should be linking with a yet-to-be-installed one
17986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17987 test "$hardcode_minus_L_GCJ" != no; then
17988 # Linking always hardcodes the temporary library directory.
17989 hardcode_action_GCJ=relink
17990 else
17991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17992 hardcode_action_GCJ=immediate
17993 fi
17994else
17995 # We cannot hardcode anything, or else we can only hardcode existing
17996 # directories.
17997 hardcode_action_GCJ=unsupported
17998fi
17999echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18000echo "${ECHO_T}$hardcode_action_GCJ" >&6
a33e1d91 18001
62567204 18002if test "$hardcode_action_GCJ" = relink; then
18003 # Fast installation is not supported
18004 enable_fast_install=no
18005elif test "$shlibpath_overrides_runpath" = yes ||
18006 test "$enable_shared" = no; then
18007 # Fast installation is not necessary
18008 enable_fast_install=needless
a33e1d91 18009fi
18010
18011
18012# The else clause should only fire when bootstrapping the
18013# libtool distribution, otherwise you forgot to ship ltmain.sh
18014# with your package, and you will get complaints that there are
18015# no rules to generate ltmain.sh.
18016if test -f "$ltmain"; then
18017 # See if we are running on zsh, and set the options which allow our commands through
18018 # without removal of \ escapes.
18019 if test -n "${ZSH_VERSION+set}" ; then
18020 setopt NO_GLOB_SUBST
18021 fi
18022 # Now quote all the things that may contain metacharacters while being
18023 # careful not to overquote the AC_SUBSTed values. We take copies of the
18024 # variables and quote the copies for generation of the libtool script.
62567204 18025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a33e1d91 18026 SED SHELL STRIP \
18027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18029 deplibs_check_method reload_flag reload_cmds need_locks \
18030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18031 lt_cv_sys_global_symbol_to_c_name_address \
18032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18033 old_postinstall_cmds old_postuninstall_cmds \
18034 compiler_GCJ \
18035 CC_GCJ \
18036 LD_GCJ \
18037 lt_prog_compiler_wl_GCJ \
18038 lt_prog_compiler_pic_GCJ \
18039 lt_prog_compiler_static_GCJ \
18040 lt_prog_compiler_no_builtin_flag_GCJ \
18041 export_dynamic_flag_spec_GCJ \
18042 thread_safe_flag_spec_GCJ \
18043 whole_archive_flag_spec_GCJ \
18044 enable_shared_with_static_runtimes_GCJ \
18045 old_archive_cmds_GCJ \
18046 old_archive_from_new_cmds_GCJ \
18047 predep_objects_GCJ \
18048 postdep_objects_GCJ \
18049 predeps_GCJ \
18050 postdeps_GCJ \
18051 compiler_lib_search_path_GCJ \
18052 archive_cmds_GCJ \
18053 archive_expsym_cmds_GCJ \
18054 postinstall_cmds_GCJ \
18055 postuninstall_cmds_GCJ \
18056 old_archive_from_expsyms_cmds_GCJ \
18057 allow_undefined_flag_GCJ \
18058 no_undefined_flag_GCJ \
18059 export_symbols_cmds_GCJ \
18060 hardcode_libdir_flag_spec_GCJ \
18061 hardcode_libdir_flag_spec_ld_GCJ \
18062 hardcode_libdir_separator_GCJ \
18063 hardcode_automatic_GCJ \
18064 module_cmds_GCJ \
18065 module_expsym_cmds_GCJ \
18066 lt_cv_prog_compiler_c_o_GCJ \
18067 exclude_expsyms_GCJ \
18068 include_expsyms_GCJ; do
18069
18070 case $var in
18071 old_archive_cmds_GCJ | \
18072 old_archive_from_new_cmds_GCJ | \
18073 archive_cmds_GCJ | \
18074 archive_expsym_cmds_GCJ | \
18075 module_cmds_GCJ | \
18076 module_expsym_cmds_GCJ | \
18077 old_archive_from_expsyms_cmds_GCJ | \
18078 export_symbols_cmds_GCJ | \
18079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18080 postinstall_cmds | postuninstall_cmds | \
18081 old_postinstall_cmds | old_postuninstall_cmds | \
18082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18083 # Double-quote double-evaled strings.
18084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18085 ;;
18086 *)
18087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18088 ;;
18089 esac
18090 done
18091
18092 case $lt_echo in
18093 *'\$0 --fallback-echo"')
18094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18095 ;;
18096 esac
18097
18098cfgfile="$ofile"
18099
18100 cat <<__EOF__ >> "$cfgfile"
18101# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18102
18103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18104
18105# Shell to use when invoking shell scripts.
18106SHELL=$lt_SHELL
18107
18108# Whether or not to build shared libraries.
18109build_libtool_libs=$enable_shared
18110
18111# Whether or not to build static libraries.
18112build_old_libs=$enable_static
18113
18114# Whether or not to add -lc for building shared libraries.
18115build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18116
18117# Whether or not to disallow shared libs when runtime libs are static
18118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18119
18120# Whether or not to optimize for fast installation.
18121fast_install=$enable_fast_install
18122
18123# The host system.
18124host_alias=$host_alias
18125host=$host
087278d6 18126host_os=$host_os
18127
18128# The build system.
18129build_alias=$build_alias
18130build=$build
18131build_os=$build_os
a33e1d91 18132
18133# An echo program that does not interpret backslashes.
18134echo=$lt_echo
18135
18136# The archiver.
18137AR=$lt_AR
18138AR_FLAGS=$lt_AR_FLAGS
18139
18140# A C compiler.
18141LTCC=$lt_LTCC
18142
62567204 18143# LTCC compiler flags.
18144LTCFLAGS=$lt_LTCFLAGS
18145
a33e1d91 18146# A language-specific compiler.
18147CC=$lt_compiler_GCJ
18148
18149# Is the compiler the GNU C compiler?
18150with_gcc=$GCC_GCJ
18151
18152# An ERE matcher.
18153EGREP=$lt_EGREP
18154
18155# The linker used to build libraries.
18156LD=$lt_LD_GCJ
18157
18158# Whether we need hard or soft links.
18159LN_S=$lt_LN_S
18160
18161# A BSD-compatible nm program.
18162NM=$lt_NM
18163
18164# A symbol stripping program
18165STRIP=$lt_STRIP
18166
18167# Used to examine libraries when file_magic_cmd begins "file"
18168MAGIC_CMD=$MAGIC_CMD
18169
18170# Used on cygwin: DLL creation program.
18171DLLTOOL="$DLLTOOL"
18172
18173# Used on cygwin: object dumper.
18174OBJDUMP="$OBJDUMP"
18175
18176# Used on cygwin: assembler.
18177AS="$AS"
18178
18179# The name of the directory that contains temporary libtool files.
18180objdir=$objdir
18181
18182# How to create reloadable object files.
18183reload_flag=$lt_reload_flag
18184reload_cmds=$lt_reload_cmds
18185
18186# How to pass a linker flag through the compiler.
18187wl=$lt_lt_prog_compiler_wl_GCJ
18188
18189# Object file suffix (normally "o").
18190objext="$ac_objext"
18191
18192# Old archive suffix (normally "a").
18193libext="$libext"
18194
18195# Shared library suffix (normally ".so").
18196shrext_cmds='$shrext_cmds'
18197
18198# Executable file suffix (normally "").
18199exeext="$exeext"
18200
18201# Additional compiler flags for building library objects.
18202pic_flag=$lt_lt_prog_compiler_pic_GCJ
18203pic_mode=$pic_mode
18204
18205# What is the maximum length of a command?
18206max_cmd_len=$lt_cv_sys_max_cmd_len
18207
18208# Does compiler simultaneously support -c and -o options?
18209compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18210
087278d6 18211# Must we lock files when doing compilation?
a33e1d91 18212need_locks=$lt_need_locks
18213
18214# Do we need the lib prefix for modules?
18215need_lib_prefix=$need_lib_prefix
18216
18217# Do we need a version for libraries?
18218need_version=$need_version
18219
18220# Whether dlopen is supported.
18221dlopen_support=$enable_dlopen
18222
18223# Whether dlopen of programs is supported.
18224dlopen_self=$enable_dlopen_self
18225
18226# Whether dlopen of statically linked programs is supported.
18227dlopen_self_static=$enable_dlopen_self_static
18228
18229# Compiler flag to prevent dynamic linking.
18230link_static_flag=$lt_lt_prog_compiler_static_GCJ
18231
18232# Compiler flag to turn off builtin functions.
18233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18234
18235# Compiler flag to allow reflexive dlopens.
18236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18237
18238# Compiler flag to generate shared objects directly from archives.
18239whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18240
18241# Compiler flag to generate thread-safe objects.
18242thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18243
18244# Library versioning type.
18245version_type=$version_type
18246
18247# Format of library name prefix.
18248libname_spec=$lt_libname_spec
18249
18250# List of archive names. First name is the real one, the rest are links.
18251# The last name is the one that the linker finds with -lNAME.
18252library_names_spec=$lt_library_names_spec
18253
18254# The coded name of the library, if different from the real name.
18255soname_spec=$lt_soname_spec
18256
18257# Commands used to build and install an old-style archive.
18258RANLIB=$lt_RANLIB
18259old_archive_cmds=$lt_old_archive_cmds_GCJ
18260old_postinstall_cmds=$lt_old_postinstall_cmds
18261old_postuninstall_cmds=$lt_old_postuninstall_cmds
18262
18263# Create an old-style archive from a shared archive.
18264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18265
18266# Create a temporary old-style archive to link instead of a shared archive.
18267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18268
18269# Commands used to build and install a shared archive.
18270archive_cmds=$lt_archive_cmds_GCJ
18271archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18272postinstall_cmds=$lt_postinstall_cmds
18273postuninstall_cmds=$lt_postuninstall_cmds
18274
18275# Commands used to build a loadable module (assumed same as above if empty)
18276module_cmds=$lt_module_cmds_GCJ
18277module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18278
18279# Commands to strip libraries.
18280old_striplib=$lt_old_striplib
18281striplib=$lt_striplib
18282
18283# Dependencies to place before the objects being linked to create a
18284# shared library.
18285predep_objects=$lt_predep_objects_GCJ
18286
18287# Dependencies to place after the objects being linked to create a
18288# shared library.
18289postdep_objects=$lt_postdep_objects_GCJ
18290
18291# Dependencies to place before the objects being linked to create a
18292# shared library.
18293predeps=$lt_predeps_GCJ
18294
18295# Dependencies to place after the objects being linked to create a
18296# shared library.
18297postdeps=$lt_postdeps_GCJ
18298
18299# The library search path used internally by the compiler when linking
18300# a shared library.
18301compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18302
18303# Method to check whether dependent libraries are shared objects.
18304deplibs_check_method=$lt_deplibs_check_method
18305
18306# Command to use when deplibs_check_method == file_magic.
18307file_magic_cmd=$lt_file_magic_cmd
18308
18309# Flag that allows shared libraries with undefined symbols to be built.
18310allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18311
18312# Flag that forces no undefined symbols.
18313no_undefined_flag=$lt_no_undefined_flag_GCJ
18314
18315# Commands used to finish a libtool library installation in a directory.
18316finish_cmds=$lt_finish_cmds
18317
18318# Same as above, but a single script fragment to be evaled but not shown.
18319finish_eval=$lt_finish_eval
18320
18321# Take the output of nm and produce a listing of raw symbols and C names.
18322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18323
18324# Transform the output of nm in a proper C declaration
18325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18326
18327# Transform the output of nm in a C name address pair
18328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18329
18330# This is the shared library runtime path variable.
18331runpath_var=$runpath_var
18332
18333# This is the shared library path variable.
18334shlibpath_var=$shlibpath_var
18335
18336# Is shlibpath searched before the hard-coded library search path?
18337shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18338
18339# How to hardcode a shared library path into an executable.
18340hardcode_action=$hardcode_action_GCJ
18341
18342# Whether we should hardcode library paths into libraries.
18343hardcode_into_libs=$hardcode_into_libs
18344
18345# Flag to hardcode \$libdir into a binary during linking.
18346# This must work even if \$libdir does not exist.
18347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18348
18349# If ld is used when linking, flag to hardcode \$libdir into
18350# a binary during linking. This must work even if \$libdir does
18351# not exist.
18352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18353
18354# Whether we need a single -rpath flag with a separated argument.
18355hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18356
18357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18358# resulting binary.
18359hardcode_direct=$hardcode_direct_GCJ
18360
18361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18362# resulting binary.
18363hardcode_minus_L=$hardcode_minus_L_GCJ
18364
18365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18366# the resulting binary.
18367hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18368
18369# Set to yes if building a shared library automatically hardcodes DIR into the library
18370# and all subsequent libraries and executables linked against it.
18371hardcode_automatic=$hardcode_automatic_GCJ
18372
18373# Variables whose values should be saved in libtool wrapper scripts and
18374# restored at relink time.
18375variables_saved_for_relink="$variables_saved_for_relink"
18376
18377# Whether libtool must link a program against all its dependency libraries.
18378link_all_deplibs=$link_all_deplibs_GCJ
18379
18380# Compile-time system search path for libraries
18381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18382
18383# Run-time system search path for libraries
18384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18385
18386# Fix the shell variable \$srcfile for the compiler.
18387fix_srcfile_path="$fix_srcfile_path_GCJ"
18388
18389# Set to yes if exported symbols are required.
18390always_export_symbols=$always_export_symbols_GCJ
18391
18392# The commands to list exported symbols.
18393export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18394
18395# The commands to extract the exported symbol list from a shared archive.
18396extract_expsyms_cmds=$lt_extract_expsyms_cmds
18397
18398# Symbols that should not be listed in the preloaded symbols.
18399exclude_expsyms=$lt_exclude_expsyms_GCJ
18400
18401# Symbols that must always be exported.
18402include_expsyms=$lt_include_expsyms_GCJ
18403
18404# ### END LIBTOOL TAG CONFIG: $tagname
18405
18406__EOF__
18407
18408
18409else
18410 # If there is no Makefile yet, we rely on a make rule to execute
18411 # `config.status --recheck' to rerun these tests and create the
18412 # libtool script then.
18413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18414 if test -f "$ltmain_in"; then
18415 test -f Makefile && make "$ltmain"
18416 fi
18417fi
18418
18419
18420ac_ext=c
18421ac_cpp='$CPP $CPPFLAGS'
18422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18424ac_compiler_gnu=$ac_cv_c_compiler_gnu
18425
18426CC="$lt_save_CC"
18427
18428 else
18429 tagname=""
18430 fi
18431 ;;
18432
18433 RC)
18434
18435
18436
18437# Source file extension for RC test sources.
18438ac_ext=rc
18439
18440# Object file extension for compiled RC test sources.
18441objext=o
18442objext_RC=$objext
18443
18444# Code to be used in simple compile tests
18445lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18446
18447# Code to be used in simple link tests
18448lt_simple_link_test_code="$lt_simple_compile_test_code"
18449
18450# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18451
18452# If no C compiler was specified, use CC.
18453LTCC=${LTCC-"$CC"}
18454
62567204 18455# If no C compiler flags were specified, use CFLAGS.
18456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18457
a33e1d91 18458# Allow CC to be a program name with arguments.
18459compiler=$CC
18460
18461
087278d6 18462# save warnings/boilerplate of simple test code
18463ac_outfile=conftest.$ac_objext
18464printf "$lt_simple_compile_test_code" >conftest.$ac_ext
62567204 18465eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 18466_lt_compiler_boilerplate=`cat conftest.err`
18467$rm conftest*
18468
18469ac_outfile=conftest.$ac_objext
18470printf "$lt_simple_link_test_code" >conftest.$ac_ext
62567204 18471eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
087278d6 18472_lt_linker_boilerplate=`cat conftest.err`
18473$rm conftest*
18474
18475
a33e1d91 18476# Allow CC to be a program name with arguments.
18477lt_save_CC="$CC"
18478CC=${RC-"windres"}
18479compiler=$CC
18480compiler_RC=$CC
087278d6 18481for cc_temp in $compiler""; do
18482 case $cc_temp in
18483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18485 \-*) ;;
18486 *) break;;
18487 esac
18488done
18489cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18490
a33e1d91 18491lt_cv_prog_compiler_c_o_RC=yes
18492
18493# The else clause should only fire when bootstrapping the
18494# libtool distribution, otherwise you forgot to ship ltmain.sh
18495# with your package, and you will get complaints that there are
18496# no rules to generate ltmain.sh.
18497if test -f "$ltmain"; then
18498 # See if we are running on zsh, and set the options which allow our commands through
18499 # without removal of \ escapes.
18500 if test -n "${ZSH_VERSION+set}" ; then
18501 setopt NO_GLOB_SUBST
18502 fi
18503 # Now quote all the things that may contain metacharacters while being
18504 # careful not to overquote the AC_SUBSTed values. We take copies of the
18505 # variables and quote the copies for generation of the libtool script.
62567204 18506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a33e1d91 18507 SED SHELL STRIP \
18508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18510 deplibs_check_method reload_flag reload_cmds need_locks \
18511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18512 lt_cv_sys_global_symbol_to_c_name_address \
18513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18514 old_postinstall_cmds old_postuninstall_cmds \
18515 compiler_RC \
18516 CC_RC \
18517 LD_RC \
18518 lt_prog_compiler_wl_RC \
18519 lt_prog_compiler_pic_RC \
18520 lt_prog_compiler_static_RC \
18521 lt_prog_compiler_no_builtin_flag_RC \
18522 export_dynamic_flag_spec_RC \
18523 thread_safe_flag_spec_RC \
18524 whole_archive_flag_spec_RC \
18525 enable_shared_with_static_runtimes_RC \
18526 old_archive_cmds_RC \
18527 old_archive_from_new_cmds_RC \
18528 predep_objects_RC \
18529 postdep_objects_RC \
18530 predeps_RC \
18531 postdeps_RC \
18532 compiler_lib_search_path_RC \
18533 archive_cmds_RC \
18534 archive_expsym_cmds_RC \
18535 postinstall_cmds_RC \
18536 postuninstall_cmds_RC \
18537 old_archive_from_expsyms_cmds_RC \
18538 allow_undefined_flag_RC \
18539 no_undefined_flag_RC \
18540 export_symbols_cmds_RC \
18541 hardcode_libdir_flag_spec_RC \
18542 hardcode_libdir_flag_spec_ld_RC \
18543 hardcode_libdir_separator_RC \
18544 hardcode_automatic_RC \
18545 module_cmds_RC \
18546 module_expsym_cmds_RC \
18547 lt_cv_prog_compiler_c_o_RC \
18548 exclude_expsyms_RC \
18549 include_expsyms_RC; do
18550
18551 case $var in
18552 old_archive_cmds_RC | \
18553 old_archive_from_new_cmds_RC | \
18554 archive_cmds_RC | \
18555 archive_expsym_cmds_RC | \
18556 module_cmds_RC | \
18557 module_expsym_cmds_RC | \
18558 old_archive_from_expsyms_cmds_RC | \
18559 export_symbols_cmds_RC | \
18560 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18561 postinstall_cmds | postuninstall_cmds | \
18562 old_postinstall_cmds | old_postuninstall_cmds | \
18563 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18564 # Double-quote double-evaled strings.
18565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18566 ;;
18567 *)
18568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18569 ;;
18570 esac
18571 done
18572
18573 case $lt_echo in
18574 *'\$0 --fallback-echo"')
18575 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18576 ;;
18577 esac
18578
18579cfgfile="$ofile"
18580
18581 cat <<__EOF__ >> "$cfgfile"
18582# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18583
18584# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18585
18586# Shell to use when invoking shell scripts.
18587SHELL=$lt_SHELL
18588
18589# Whether or not to build shared libraries.
18590build_libtool_libs=$enable_shared
18591
18592# Whether or not to build static libraries.
18593build_old_libs=$enable_static
18594
18595# Whether or not to add -lc for building shared libraries.
18596build_libtool_need_lc=$archive_cmds_need_lc_RC
18597
18598# Whether or not to disallow shared libs when runtime libs are static
18599allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18600
18601# Whether or not to optimize for fast installation.
18602fast_install=$enable_fast_install
18603
18604# The host system.
18605host_alias=$host_alias
18606host=$host
087278d6 18607host_os=$host_os
18608
18609# The build system.
18610build_alias=$build_alias
18611build=$build
18612build_os=$build_os
a33e1d91 18613
18614# An echo program that does not interpret backslashes.
18615echo=$lt_echo
18616
18617# The archiver.
18618AR=$lt_AR
18619AR_FLAGS=$lt_AR_FLAGS
18620
18621# A C compiler.
18622LTCC=$lt_LTCC
18623
62567204 18624# LTCC compiler flags.
18625LTCFLAGS=$lt_LTCFLAGS
18626
a33e1d91 18627# A language-specific compiler.
18628CC=$lt_compiler_RC
18629
18630# Is the compiler the GNU C compiler?
18631with_gcc=$GCC_RC
18632
18633# An ERE matcher.
18634EGREP=$lt_EGREP
18635
18636# The linker used to build libraries.
18637LD=$lt_LD_RC
18638
18639# Whether we need hard or soft links.
18640LN_S=$lt_LN_S
18641
18642# A BSD-compatible nm program.
18643NM=$lt_NM
18644
18645# A symbol stripping program
18646STRIP=$lt_STRIP
18647
18648# Used to examine libraries when file_magic_cmd begins "file"
18649MAGIC_CMD=$MAGIC_CMD
18650
18651# Used on cygwin: DLL creation program.
18652DLLTOOL="$DLLTOOL"
18653
18654# Used on cygwin: object dumper.
18655OBJDUMP="$OBJDUMP"
18656
18657# Used on cygwin: assembler.
18658AS="$AS"
18659
18660# The name of the directory that contains temporary libtool files.
18661objdir=$objdir
18662
18663# How to create reloadable object files.
18664reload_flag=$lt_reload_flag
18665reload_cmds=$lt_reload_cmds
18666
18667# How to pass a linker flag through the compiler.
18668wl=$lt_lt_prog_compiler_wl_RC
18669
18670# Object file suffix (normally "o").
18671objext="$ac_objext"
18672
18673# Old archive suffix (normally "a").
18674libext="$libext"
18675
18676# Shared library suffix (normally ".so").
18677shrext_cmds='$shrext_cmds'
18678
18679# Executable file suffix (normally "").
18680exeext="$exeext"
18681
18682# Additional compiler flags for building library objects.
18683pic_flag=$lt_lt_prog_compiler_pic_RC
18684pic_mode=$pic_mode
18685
18686# What is the maximum length of a command?
18687max_cmd_len=$lt_cv_sys_max_cmd_len
18688
18689# Does compiler simultaneously support -c and -o options?
18690compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18691
087278d6 18692# Must we lock files when doing compilation?
a33e1d91 18693need_locks=$lt_need_locks
18694
18695# Do we need the lib prefix for modules?
18696need_lib_prefix=$need_lib_prefix
18697
18698# Do we need a version for libraries?
18699need_version=$need_version
18700
18701# Whether dlopen is supported.
18702dlopen_support=$enable_dlopen
18703
18704# Whether dlopen of programs is supported.
18705dlopen_self=$enable_dlopen_self
18706
18707# Whether dlopen of statically linked programs is supported.
18708dlopen_self_static=$enable_dlopen_self_static
18709
18710# Compiler flag to prevent dynamic linking.
18711link_static_flag=$lt_lt_prog_compiler_static_RC
18712
18713# Compiler flag to turn off builtin functions.
18714no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18715
18716# Compiler flag to allow reflexive dlopens.
18717export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18718
18719# Compiler flag to generate shared objects directly from archives.
18720whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18721
18722# Compiler flag to generate thread-safe objects.
18723thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18724
18725# Library versioning type.
18726version_type=$version_type
18727
18728# Format of library name prefix.
18729libname_spec=$lt_libname_spec
18730
18731# List of archive names. First name is the real one, the rest are links.
18732# The last name is the one that the linker finds with -lNAME.
18733library_names_spec=$lt_library_names_spec
18734
18735# The coded name of the library, if different from the real name.
18736soname_spec=$lt_soname_spec
18737
18738# Commands used to build and install an old-style archive.
18739RANLIB=$lt_RANLIB
18740old_archive_cmds=$lt_old_archive_cmds_RC
18741old_postinstall_cmds=$lt_old_postinstall_cmds
18742old_postuninstall_cmds=$lt_old_postuninstall_cmds
18743
18744# Create an old-style archive from a shared archive.
18745old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18746
18747# Create a temporary old-style archive to link instead of a shared archive.
18748old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18749
18750# Commands used to build and install a shared archive.
18751archive_cmds=$lt_archive_cmds_RC
18752archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18753postinstall_cmds=$lt_postinstall_cmds
18754postuninstall_cmds=$lt_postuninstall_cmds
18755
18756# Commands used to build a loadable module (assumed same as above if empty)
18757module_cmds=$lt_module_cmds_RC
18758module_expsym_cmds=$lt_module_expsym_cmds_RC
18759
18760# Commands to strip libraries.
18761old_striplib=$lt_old_striplib
18762striplib=$lt_striplib
18763
18764# Dependencies to place before the objects being linked to create a
18765# shared library.
18766predep_objects=$lt_predep_objects_RC
18767
18768# Dependencies to place after the objects being linked to create a
18769# shared library.
18770postdep_objects=$lt_postdep_objects_RC
18771
18772# Dependencies to place before the objects being linked to create a
18773# shared library.
18774predeps=$lt_predeps_RC
18775
18776# Dependencies to place after the objects being linked to create a
18777# shared library.
18778postdeps=$lt_postdeps_RC
18779
18780# The library search path used internally by the compiler when linking
18781# a shared library.
18782compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18783
18784# Method to check whether dependent libraries are shared objects.
18785deplibs_check_method=$lt_deplibs_check_method
18786
18787# Command to use when deplibs_check_method == file_magic.
18788file_magic_cmd=$lt_file_magic_cmd
18789
18790# Flag that allows shared libraries with undefined symbols to be built.
18791allow_undefined_flag=$lt_allow_undefined_flag_RC
18792
18793# Flag that forces no undefined symbols.
18794no_undefined_flag=$lt_no_undefined_flag_RC
18795
18796# Commands used to finish a libtool library installation in a directory.
18797finish_cmds=$lt_finish_cmds
18798
18799# Same as above, but a single script fragment to be evaled but not shown.
18800finish_eval=$lt_finish_eval
18801
18802# Take the output of nm and produce a listing of raw symbols and C names.
18803global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18804
18805# Transform the output of nm in a proper C declaration
18806global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18807
18808# Transform the output of nm in a C name address pair
18809global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18810
18811# This is the shared library runtime path variable.
18812runpath_var=$runpath_var
18813
18814# This is the shared library path variable.
18815shlibpath_var=$shlibpath_var
18816
18817# Is shlibpath searched before the hard-coded library search path?
18818shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18819
18820# How to hardcode a shared library path into an executable.
18821hardcode_action=$hardcode_action_RC
18822
18823# Whether we should hardcode library paths into libraries.
18824hardcode_into_libs=$hardcode_into_libs
18825
18826# Flag to hardcode \$libdir into a binary during linking.
18827# This must work even if \$libdir does not exist.
18828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18829
18830# If ld is used when linking, flag to hardcode \$libdir into
18831# a binary during linking. This must work even if \$libdir does
18832# not exist.
18833hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18834
18835# Whether we need a single -rpath flag with a separated argument.
18836hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18837
18838# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18839# resulting binary.
18840hardcode_direct=$hardcode_direct_RC
18841
18842# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18843# resulting binary.
18844hardcode_minus_L=$hardcode_minus_L_RC
18845
18846# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18847# the resulting binary.
18848hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18849
18850# Set to yes if building a shared library automatically hardcodes DIR into the library
18851# and all subsequent libraries and executables linked against it.
18852hardcode_automatic=$hardcode_automatic_RC
18853
18854# Variables whose values should be saved in libtool wrapper scripts and
18855# restored at relink time.
18856variables_saved_for_relink="$variables_saved_for_relink"
18857
18858# Whether libtool must link a program against all its dependency libraries.
18859link_all_deplibs=$link_all_deplibs_RC
18860
18861# Compile-time system search path for libraries
18862sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18863
18864# Run-time system search path for libraries
18865sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18866
18867# Fix the shell variable \$srcfile for the compiler.
18868fix_srcfile_path="$fix_srcfile_path_RC"
18869
18870# Set to yes if exported symbols are required.
18871always_export_symbols=$always_export_symbols_RC
18872
18873# The commands to list exported symbols.
18874export_symbols_cmds=$lt_export_symbols_cmds_RC
18875
18876# The commands to extract the exported symbol list from a shared archive.
18877extract_expsyms_cmds=$lt_extract_expsyms_cmds
18878
18879# Symbols that should not be listed in the preloaded symbols.
18880exclude_expsyms=$lt_exclude_expsyms_RC
18881
18882# Symbols that must always be exported.
18883include_expsyms=$lt_include_expsyms_RC
18884
18885# ### END LIBTOOL TAG CONFIG: $tagname
18886
18887__EOF__
18888
18889
18890else
18891 # If there is no Makefile yet, we rely on a make rule to execute
18892 # `config.status --recheck' to rerun these tests and create the
18893 # libtool script then.
18894 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18895 if test -f "$ltmain_in"; then
18896 test -f Makefile && make "$ltmain"
18897 fi
18898fi
18899
18900
18901ac_ext=c
18902ac_cpp='$CPP $CPPFLAGS'
18903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905ac_compiler_gnu=$ac_cv_c_compiler_gnu
18906
18907CC="$lt_save_CC"
18908
18909 ;;
18910
18911 *)
18912 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18913echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18914 { (exit 1); exit 1; }; }
18915 ;;
18916 esac
18917
18918 # Append the new tag name to the list of available tags.
18919 if test -n "$tagname" ; then
18920 available_tags="$available_tags $tagname"
18921 fi
18922 fi
18923 done
18924 IFS="$lt_save_ifs"
18925
18926 # Now substitute the updated list of available tags.
18927 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18928 mv "${ofile}T" "$ofile"
18929 chmod +x "$ofile"
18930 else
18931 rm -f "${ofile}T"
18932 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18933echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18934 { (exit 1); exit 1; }; }
18935 fi
18936fi
18937
18938
18939
18940# This can be used to rebuild libtool when needed
18941LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18942
18943# Always use our own libtool.
18944LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18945
18946# Prevent multiple expansion
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967LIBADD_DL=
18968
18969ac_ext=c
18970ac_cpp='$CPP $CPPFLAGS'
18971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974
18975
18976echo "$as_me:$LINENO: checking for shl_load" >&5
18977echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18978if test "${ac_cv_func_shl_load+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
af3004ff 18987/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18989#define shl_load innocuous_shl_load
18990
a33e1d91 18991/* System header to define __stub macros and hopefully few prototypes,
18992 which can conflict with char shl_load (); below.
18993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18994 <limits.h> exists even on freestanding compilers. */
af3004ff 18995
a33e1d91 18996#ifdef __STDC__
18997# include <limits.h>
18998#else
18999# include <assert.h>
19000#endif
af3004ff 19001
19002#undef shl_load
19003
a33e1d91 19004/* Override any gcc2 internal prototype to avoid an error. */
19005#ifdef __cplusplus
19006extern "C"
19007{
19008#endif
19009/* We use char because int might match the return type of a gcc2
19010 builtin and then its argument prototype would still apply. */
19011char shl_load ();
19012/* The GNU C library defines this for functions which it implements
19013 to always fail with ENOSYS. Some functions are actually named
19014 something starting with __ and the normal name is an alias. */
19015#if defined (__stub_shl_load) || defined (__stub___shl_load)
19016choke me
19017#else
19018char (*f) () = shl_load;
19019#endif
19020#ifdef __cplusplus
19021}
19022#endif
19023
19024int
19025main ()
19026{
19027return f != shl_load;
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032rm -f conftest.$ac_objext conftest$ac_exeext
19033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19034 (eval $ac_link) 2>conftest.er1
a33e1d91 19035 ac_status=$?
af3004ff 19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
a33e1d91 19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
6263d81f 19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
af3004ff 19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_func_shl_load=yes
19055else
19056 echo "$as_me: failed program was:" >&5
19057sed 's/^/| /' conftest.$ac_ext >&5
19058
19059ac_cv_func_shl_load=no
19060fi
af3004ff 19061rm -f conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19063fi
19064echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19065echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19066if test $ac_cv_func_shl_load = yes; then
19067
19068cat >>confdefs.h <<\_ACEOF
19069#define HAVE_SHL_LOAD 1
19070_ACEOF
19071
19072else
19073 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19074echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19075if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19077else
19078 ac_check_lib_save_LIBS=$LIBS
19079LIBS="-ldld $LIBS"
19080cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19081/* confdefs.h. */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h. */
19086
19087/* Override any gcc2 internal prototype to avoid an error. */
19088#ifdef __cplusplus
19089extern "C"
19090#endif
19091/* We use char because int might match the return type of a gcc2
19092 builtin and then its argument prototype would still apply. */
19093char shl_load ();
19094int
19095main ()
19096{
19097shl_load ();
19098 ;
19099 return 0;
19100}
19101_ACEOF
19102rm -f conftest.$ac_objext conftest$ac_exeext
19103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19104 (eval $ac_link) 2>conftest.er1
a33e1d91 19105 ac_status=$?
af3004ff 19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
a33e1d91 19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } &&
6263d81f 19111 { ac_try='test -z "$ac_c_werror_flag"
19112 || test ! -s conftest.err'
af3004ff 19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_dld_shl_load=yes
19125else
19126 echo "$as_me: failed program was:" >&5
19127sed 's/^/| /' conftest.$ac_ext >&5
19128
19129ac_cv_lib_dld_shl_load=no
19130fi
af3004ff 19131rm -f conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19133LIBS=$ac_check_lib_save_LIBS
19134fi
19135echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19136echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19137if test $ac_cv_lib_dld_shl_load = yes; then
19138
19139cat >>confdefs.h <<\_ACEOF
19140#define HAVE_SHL_LOAD 1
19141_ACEOF
19142
19143 LIBADD_DL="$LIBADD_DL -ldld"
19144else
19145 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19146echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19147if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150 ac_check_lib_save_LIBS=$LIBS
19151LIBS="-ldl $LIBS"
19152cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158
19159/* Override any gcc2 internal prototype to avoid an error. */
19160#ifdef __cplusplus
19161extern "C"
19162#endif
19163/* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19165char dlopen ();
19166int
19167main ()
19168{
19169dlopen ();
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext conftest$ac_exeext
19175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19176 (eval $ac_link) 2>conftest.er1
a33e1d91 19177 ac_status=$?
af3004ff 19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
a33e1d91 19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
6263d81f 19183 { ac_try='test -z "$ac_c_werror_flag"
19184 || test ! -s conftest.err'
af3004ff 19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_lib_dl_dlopen=yes
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
19201ac_cv_lib_dl_dlopen=no
19202fi
af3004ff 19203rm -f conftest.err conftest.$ac_objext \
19204 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19205LIBS=$ac_check_lib_save_LIBS
19206fi
19207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19209if test $ac_cv_lib_dl_dlopen = yes; then
19210
19211cat >>confdefs.h <<\_ACEOF
19212#define HAVE_LIBDL 1
19213_ACEOF
19214
19215 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19216else
19217 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223#if HAVE_DLFCN_H
19224# include <dlfcn.h>
19225#endif
19226
19227int
19228main ()
19229{
19230dlopen(0, 0);
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext conftest$ac_exeext
19236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19237 (eval $ac_link) 2>conftest.er1
a33e1d91 19238 ac_status=$?
af3004ff 19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
a33e1d91 19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
6263d81f 19244 { ac_try='test -z "$ac_c_werror_flag"
19245 || test ! -s conftest.err'
af3004ff 19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257
19258cat >>confdefs.h <<\_ACEOF
19259#define HAVE_LIBDL 1
19260_ACEOF
19261 libltdl_cv_func_dlopen="yes"
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
19266echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19267echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19268if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 ac_check_lib_save_LIBS=$LIBS
19272LIBS="-lsvld $LIBS"
19273cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19274/* confdefs.h. */
19275_ACEOF
19276cat confdefs.h >>conftest.$ac_ext
19277cat >>conftest.$ac_ext <<_ACEOF
19278/* end confdefs.h. */
19279
19280/* Override any gcc2 internal prototype to avoid an error. */
19281#ifdef __cplusplus
19282extern "C"
19283#endif
19284/* We use char because int might match the return type of a gcc2
19285 builtin and then its argument prototype would still apply. */
19286char dlopen ();
19287int
19288main ()
19289{
19290dlopen ();
19291 ;
19292 return 0;
19293}
19294_ACEOF
19295rm -f conftest.$ac_objext conftest$ac_exeext
19296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19297 (eval $ac_link) 2>conftest.er1
a33e1d91 19298 ac_status=$?
af3004ff 19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
a33e1d91 19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
6263d81f 19304 { ac_try='test -z "$ac_c_werror_flag"
19305 || test ! -s conftest.err'
af3004ff 19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_lib_svld_dlopen=yes
19318else
19319 echo "$as_me: failed program was:" >&5
19320sed 's/^/| /' conftest.$ac_ext >&5
19321
19322ac_cv_lib_svld_dlopen=no
19323fi
af3004ff 19324rm -f conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19326LIBS=$ac_check_lib_save_LIBS
19327fi
19328echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19329echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19330if test $ac_cv_lib_svld_dlopen = yes; then
19331
19332cat >>confdefs.h <<\_ACEOF
19333#define HAVE_LIBDL 1
19334_ACEOF
19335
19336 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
19337else
19338 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19339echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19340if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342else
19343 ac_check_lib_save_LIBS=$LIBS
19344LIBS="-ldld $LIBS"
19345cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351
19352/* Override any gcc2 internal prototype to avoid an error. */
19353#ifdef __cplusplus
19354extern "C"
19355#endif
19356/* We use char because int might match the return type of a gcc2
19357 builtin and then its argument prototype would still apply. */
19358char dld_link ();
19359int
19360main ()
19361{
19362dld_link ();
19363 ;
19364 return 0;
19365}
19366_ACEOF
19367rm -f conftest.$ac_objext conftest$ac_exeext
19368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19369 (eval $ac_link) 2>conftest.er1
a33e1d91 19370 ac_status=$?
af3004ff 19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
a33e1d91 19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
6263d81f 19376 { ac_try='test -z "$ac_c_werror_flag"
19377 || test ! -s conftest.err'
af3004ff 19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_lib_dld_dld_link=yes
19390else
19391 echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394ac_cv_lib_dld_dld_link=no
19395fi
af3004ff 19396rm -f conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19401echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19402if test $ac_cv_lib_dld_dld_link = yes; then
19403
19404cat >>confdefs.h <<\_ACEOF
19405#define HAVE_DLD 1
19406_ACEOF
19407
19408 LIBADD_DL="$LIBADD_DL -ldld"
19409else
19410 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19411echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
19412if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414else
19415 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19416/* confdefs.h. */
19417_ACEOF
19418cat confdefs.h >>conftest.$ac_ext
19419cat >>conftest.$ac_ext <<_ACEOF
19420/* end confdefs.h. */
af3004ff 19421/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19423#define _dyld_func_lookup innocuous__dyld_func_lookup
19424
a33e1d91 19425/* System header to define __stub macros and hopefully few prototypes,
19426 which can conflict with char _dyld_func_lookup (); below.
19427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19428 <limits.h> exists even on freestanding compilers. */
af3004ff 19429
a33e1d91 19430#ifdef __STDC__
19431# include <limits.h>
19432#else
19433# include <assert.h>
19434#endif
af3004ff 19435
19436#undef _dyld_func_lookup
19437
a33e1d91 19438/* Override any gcc2 internal prototype to avoid an error. */
19439#ifdef __cplusplus
19440extern "C"
19441{
19442#endif
19443/* We use char because int might match the return type of a gcc2
19444 builtin and then its argument prototype would still apply. */
19445char _dyld_func_lookup ();
19446/* The GNU C library defines this for functions which it implements
19447 to always fail with ENOSYS. Some functions are actually named
19448 something starting with __ and the normal name is an alias. */
19449#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
19450choke me
19451#else
19452char (*f) () = _dyld_func_lookup;
19453#endif
19454#ifdef __cplusplus
19455}
19456#endif
19457
19458int
19459main ()
19460{
19461return f != _dyld_func_lookup;
19462 ;
19463 return 0;
19464}
19465_ACEOF
19466rm -f conftest.$ac_objext conftest$ac_exeext
19467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19468 (eval $ac_link) 2>conftest.er1
a33e1d91 19469 ac_status=$?
af3004ff 19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
a33e1d91 19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
6263d81f 19475 { ac_try='test -z "$ac_c_werror_flag"
19476 || test ! -s conftest.err'
af3004ff 19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_func__dyld_func_lookup=yes
19489else
19490 echo "$as_me: failed program was:" >&5
19491sed 's/^/| /' conftest.$ac_ext >&5
19492
19493ac_cv_func__dyld_func_lookup=no
19494fi
af3004ff 19495rm -f conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19497fi
19498echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
19499echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
19500if test $ac_cv_func__dyld_func_lookup = yes; then
19501
19502cat >>confdefs.h <<\_ACEOF
19503#define HAVE_DYLD 1
19504_ACEOF
19505
19506fi
19507
19508
19509fi
19510
19511
19512fi
19513
19514
19515fi
af3004ff 19516rm -f conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19518
19519fi
19520
19521
19522fi
19523
19524
19525fi
19526
19527
19528if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19529then
19530 lt_save_LIBS="$LIBS"
19531 LIBS="$LIBS $LIBADD_DL"
19532
19533for ac_func in dlerror
19534do
19535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19536echo "$as_me:$LINENO: checking for $ac_func" >&5
19537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19538if eval "test \"\${$as_ac_var+set}\" = set"; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540else
19541 cat >conftest.$ac_ext <<_ACEOF
a33e1d91 19542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
af3004ff 19547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19549#define $ac_func innocuous_$ac_func
19550
a33e1d91 19551/* System header to define __stub macros and hopefully few prototypes,
19552 which can conflict with char $ac_func (); below.
19553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19554 <limits.h> exists even on freestanding compilers. */
af3004ff 19555
a33e1d91 19556#ifdef __STDC__
19557# include <limits.h>
19558#else
19559# include <assert.h>
19560#endif
af3004ff 19561
19562#undef $ac_func
19563
a33e1d91 19564/* Override any gcc2 internal prototype to avoid an error. */
19565#ifdef __cplusplus
19566extern "C"
19567{
19568#endif
19569/* We use char because int might match the return type of a gcc2
19570 builtin and then its argument prototype would still apply. */
19571char $ac_func ();
19572/* The GNU C library defines this for functions which it implements
19573 to always fail with ENOSYS. Some functions are actually named
19574 something starting with __ and the normal name is an alias. */
19575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19576choke me
19577#else
19578char (*f) () = $ac_func;
19579#endif
19580#ifdef __cplusplus
19581}
19582#endif
19583
19584int
19585main ()
19586{
19587return f != $ac_func;
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext conftest$ac_exeext
19593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 19594 (eval $ac_link) 2>conftest.er1
a33e1d91 19595 ac_status=$?
af3004ff 19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
a33e1d91 19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
6263d81f 19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
af3004ff 19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest$ac_exeext'
a33e1d91 19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 eval "$as_ac_var=yes"
19615else
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619eval "$as_ac_var=no"
19620fi
af3004ff 19621rm -f conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
a33e1d91 19623fi
19624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19626if test `eval echo '${'$as_ac_var'}'` = yes; then
19627 cat >>confdefs.h <<_ACEOF
19628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19629_ACEOF
19630
19631fi
19632done
19633
19634 LIBS="$lt_save_LIBS"
19635fi
19636ac_ext=c
19637ac_cpp='$CPP $CPPFLAGS'
19638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19640ac_compiler_gnu=$ac_cv_c_compiler_gnu
19641
19642
07d1f987 19643if test -n "$ac_tool_prefix"; then
19644 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19645set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19646echo "$as_me:$LINENO: checking for $ac_word" >&5
19647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19648if test "${ac_cv_prog_RANLIB+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651 if test -n "$RANLIB"; then
19652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19653else
19654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19655for as_dir in $PATH
19656do
19657 IFS=$as_save_IFS
19658 test -z "$as_dir" && as_dir=.
19659 for ac_exec_ext in '' $ac_executable_extensions; do
19660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19661 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19663 break 2
19664 fi
19665done
19666done
19667
19668fi
19669fi
19670RANLIB=$ac_cv_prog_RANLIB
19671if test -n "$RANLIB"; then
19672 echo "$as_me:$LINENO: result: $RANLIB" >&5
19673echo "${ECHO_T}$RANLIB" >&6
19674else
19675 echo "$as_me:$LINENO: result: no" >&5
19676echo "${ECHO_T}no" >&6
19677fi
19678
19679fi
19680if test -z "$ac_cv_prog_RANLIB"; then
19681 ac_ct_RANLIB=$RANLIB
19682 # Extract the first word of "ranlib", so it can be a program name with args.
19683set dummy ranlib; ac_word=$2
19684echo "$as_me:$LINENO: checking for $ac_word" >&5
19685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19686if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688else
19689 if test -n "$ac_ct_RANLIB"; then
19690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19691else
19692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19693for as_dir in $PATH
19694do
19695 IFS=$as_save_IFS
19696 test -z "$as_dir" && as_dir=.
19697 for ac_exec_ext in '' $ac_executable_extensions; do
19698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19699 ac_cv_prog_ac_ct_RANLIB="ranlib"
19700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19701 break 2
19702 fi
19703done
19704done
19705
19706 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19707fi
19708fi
19709ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19710if test -n "$ac_ct_RANLIB"; then
19711 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19712echo "${ECHO_T}$ac_ct_RANLIB" >&6
19713else
19714 echo "$as_me:$LINENO: result: no" >&5
19715echo "${ECHO_T}no" >&6
19716fi
19717
19718 RANLIB=$ac_ct_RANLIB
19719else
19720 RANLIB="$ac_cv_prog_RANLIB"
19721fi
19722
a33e1d91 19723
19724
19725CRYPTLIB=''
19726REGEXLIB='' # -lregex
19727LIBREGEX='' # libregex.a
19728
19729
19730
19731
19732if test -z "$EXEEXT"; then
19733 CGIEXT=".cgi"
19734else
19735 # automake automatically adds .exe when installing binaries
19736 CGIEXT=""
19737fi
19738
19739
19740case "$host_os" in
07d1f987 19741mingw|mingw32|cygwin|cygwin32)
a33e1d91 19742
19743
19744if true; then
19745 ENABLE_WIN32SPECIFIC_TRUE=
19746 ENABLE_WIN32SPECIFIC_FALSE='#'
19747else
19748 ENABLE_WIN32SPECIFIC_TRUE='#'
19749 ENABLE_WIN32SPECIFIC_FALSE=
19750fi
19751
19752 ;;
19753*)
19754
19755
19756if false; then
19757 ENABLE_WIN32SPECIFIC_TRUE=
19758 ENABLE_WIN32SPECIFIC_FALSE='#'
19759else
19760 ENABLE_WIN32SPECIFIC_TRUE='#'
19761 ENABLE_WIN32SPECIFIC_FALSE=
a2794549 19762fi
ad21602a 19763
a2794549 19764 ;;
19765esac
19766
07d1f987 19767case "$host_os" in
19768mingw|mingw32)
19769 # Extract the first word of "psapi.dll", so it can be a program name with args.
19770set dummy psapi.dll; ac_word=$2
19771echo "$as_me:$LINENO: checking for $ac_word" >&5
19772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19773if test "${ac_cv_path_WIN32_PSAPI+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775else
19776 case $WIN32_PSAPI in
19777 [\\/]* | ?:[\\/]*)
19778 ac_cv_path_WIN32_PSAPI="$WIN32_PSAPI" # Let the user override the test with a path.
19779 ;;
19780 *)
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782for as_dir in $PATH
19783do
19784 IFS=$as_save_IFS
19785 test -z "$as_dir" && as_dir=.
19786 for ac_exec_ext in '' $ac_executable_extensions; do
19787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19788 ac_cv_path_WIN32_PSAPI="$as_dir/$ac_word$ac_exec_ext"
19789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19790 break 2
19791 fi
19792done
19793done
19794
19795 test -z "$ac_cv_path_WIN32_PSAPI" && ac_cv_path_WIN32_PSAPI="none"
19796 ;;
19797esac
19798fi
19799WIN32_PSAPI=$ac_cv_path_WIN32_PSAPI
19800
19801if test -n "$WIN32_PSAPI"; then
19802 echo "$as_me:$LINENO: result: $WIN32_PSAPI" >&5
19803echo "${ECHO_T}$WIN32_PSAPI" >&6
19804else
19805 echo "$as_me:$LINENO: result: no" >&5
19806echo "${ECHO_T}no" >&6
19807fi
19808
19809 CFLAGS="$CFLAGS -mthreads"
19810 CXXFLAGS="$CXXFLAGS -mthreads"
19811 if test "$ac_cv_path_WIN32_PSAPI" = "none"; then
19812 echo "PSAPI.DLL is recommended to run Squid on Windows NT Platform"
19813 echo "Please see PSAPI.DLL section on doc/win32-relnotes.html."
19814 else
19815
19816cat >>confdefs.h <<\_ACEOF
19817#define HAVE_WIN32_PSAPI 1
19818_ACEOF
19819
19820 LIBS="$LIBS -lpsapi"
19821 fi
ced2e74b 19822 MINGW_LIBS="-lmingwex"
19823
bfd36867 19824
19825if true; then
19826 USE_IPC_WIN32_TRUE=
19827 USE_IPC_WIN32_FALSE='#'
19828else
19829 USE_IPC_WIN32_TRUE='#'
19830 USE_IPC_WIN32_FALSE=
19831fi
19832
19833
19834 ;;
19835*)
19836
19837
19838if false; then
19839 USE_IPC_WIN32_TRUE=
19840 USE_IPC_WIN32_FALSE='#'
19841else
19842 USE_IPC_WIN32_TRUE='#'
19843 USE_IPC_WIN32_FALSE=
19844fi
19845
07d1f987 19846 ;;
19847esac
19848
a2794549 19849if test -z "$CACHE_HTTP_PORT"; then
19850 CACHE_HTTP_PORT="3128"
19851fi
19852if test -z "$CACHE_ICP_PORT"; then
19853 CACHE_ICP_PORT="3130"
19854fi
19855
33f5f8b9 19856
19857cat >>confdefs.h <<_ACEOF
4d683a65 19858#define CACHE_HTTP_PORT $CACHE_HTTP_PORT
33f5f8b9 19859_ACEOF
19860
a2794549 19861
e16674da 19862
33f5f8b9 19863cat >>confdefs.h <<_ACEOF
4d683a65 19864#define CACHE_ICP_PORT $CACHE_ICP_PORT
33f5f8b9 19865_ACEOF
a2794549 19866
19867
33f5f8b9 19868
19869cat >>confdefs.h <<_ACEOF
a2794549 19870#define CONFIG_HOST_TYPE "$host"
33f5f8b9 19871_ACEOF
19872
a2794549 19873
19874
33f5f8b9 19875cat >>confdefs.h <<_ACEOF
781ba3fb 19876#define SQUID_CONFIGURE_OPTIONS "$ac_configure_args"
33f5f8b9 19877_ACEOF
19878
19879
cec01b94 19880case "$host" in
19881 mab-next-nextstep3)
19882 CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
19883 ;;
19884esac
781ba3fb 19885
cec01b94 19886if test "$GCC" = "yes"; then
19887 GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
19888 GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'`
19889 case "$host" in
19890 i386-*-freebsd*)
19891 if test $GCCVER2 -lt 300 ; then
19892 echo "ERROR: GCC $GCCVER causes a coredump on $host"
19893 echo "ERROR: Try a more recent GCC version"
19894 sleep 5
19895 fi
19896 ;;
19897 esac
19898 unset GCCVER
19899 unset GCCVER2
33f5f8b9 19900fi
a2794549 19901
cec01b94 19902if test -z "$PRESET_CFLAGS"; then
19903 if test "$GCC" = "yes"; then
19904 case "$host" in
19905 *-sun-sunos*)
19906 # sunos has too many warnings for this to be useful
19907 # motorola too
19908 ;;
19909 *m88k*)
19910 # Motorola cc/ld does not like -02 but is ok on -O
19911 CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
19912 ;;
19913 *)
c65da457 19914 CFLAGS="-Wall $CFLAGS"
cec01b94 19915 ;;
19916 esac
19917 else
19918 case "$host" in
19919 *mips-sgi-irix6.*)
19920 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
c65da457 19921 CFLAGS="-O3 -OPT:Olimit=0:space=OFF \
cec01b94 19922 -woff 1009,1014,1110,1116,1185,1188,1204,1230,1233 \
19923 -Wl,-woff,85,-woff,84,-woff,134 \
c65da457 19924 -nostdinc -I/usr/include -D_BSD_SIGNALS $CFLAGS"
cec01b94 19925 ;;
19926 alpha-dec-osf4.*)
19927 # Mogul says DEC compilers take both -g and -O2
19928 CFLAGS=`echo $CFLAGS | sed -e 's/-g/-g3/'`
c65da457 19929 CFLAGS="-O2 $CFLAGS"
cec01b94 19930 ;;
19931 *)
19932 ;;
19933 esac
19934 fi
33f5f8b9 19935fi
33f5f8b9 19936
cec01b94 19937if test "$GCC" = "yes"; then
19938 SQUID_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments"
19939 SQUID_CXXFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments"
33f5f8b9 19940else
cec01b94 19941 SQUID_CFLAGS=
19942 SQUID_CXXFLAGS=
33f5f8b9 19943fi
19944
33f5f8b9 19945
33f5f8b9 19946
33f5f8b9 19947
cec01b94 19948 echo "$as_me:$LINENO: checking whether compiler accepts -fhuge-objects" >&5
19949echo $ECHO_N "checking whether compiler accepts -fhuge-objects... $ECHO_C" >&6
19950 if test "${ac_cv_test_checkforhugeobjects+set}" = set; then
33f5f8b9 19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952else
33f5f8b9 19953
cec01b94 19954 ac_cv_test_checkforhugeobjects=`echo "int foo;" > conftest.cc
19955${CXX} -Werror -fhuge-objects -c conftest.cc 2>/dev/null
19956res=$?
19957rm -f conftest.*
19958echo yes
19959exit $res`
19960 if [ $? -ne 0 ]
19961 then ac_cv_test_checkforhugeobjects=no
19962 else if [ -z "$ac_cv_test_checkforhugeobjects" ]
19963 then ac_cv_test_checkforhugeobjects=yes
19964 fi ; fi
33f5f8b9 19965
d96ceb8e 19966fi
cec01b94 19967 # end of CACHE_VAL
19968 echo "$as_me:$LINENO: result: ${ac_cv_test_checkforhugeobjects}" >&5
19969echo "${ECHO_T}${ac_cv_test_checkforhugeobjects}" >&6
d96ceb8e 19970
cec01b94 19971 if test "X${ac_cv_test_checkforhugeobjects}" != Xno
19972 then
19973 HUGE_OBJECT_FLAG="-fhuge-objects"
19974 else
19975 HUGE_OBJECT_FLAG=""
33f5f8b9 19976 fi
33f5f8b9 19977
cec01b94 19978SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG"
d96ceb8e 19979
cec01b94 19980if test -z "$PRESET_LDFLAGS"; then
19981 if test "$GCC" = "yes"; then
19982 case "$host" in
c65da457 19983 *mips-sgi-irix6.*)
19984 # Silence Linker warnings 84, 85 and 134
19985 LDFLAGS="-Wl,-woff,85 -Wl,-woff,84 -Wl,-woff,134 $LDFLAGS"
19986 ;;
cec01b94 19987 *)
19988 # nothing
19989 ;;
19990 esac
19991 else
19992 case "$host" in
c65da457 19993 *)
19994 # nothing
cec01b94 19995 ;;
19996 esac
19997 fi
30a4f2a8 19998fi
2060fa9a 19999
e5f4e1b0 20000# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
20001if test "${enable_dlmalloc+set}" = set; then
20002 enableval="$enable_dlmalloc"
33f5f8b9 20003
94d48591 20004 case "$enableval" in
20005 'yes')
029ce4ae 20006 use_dlmalloc="yes"
94d48591 20007 LIBDLMALLOC="libdlmalloc.a"
20008 LIB_MALLOC="-L../lib -ldlmalloc"
029ce4ae 20009 echo "dlmalloc enabled"
94d48591 20010 ;;
20011 'no')
029ce4ae 20012 use_dlmalloc="no"
20013 echo "dlmalloc disabled"
94d48591 20014 ;;
029ce4ae 20015 *) use_dlmalloc="yes"
20016 LIB_MALLOC="$enableval"
20017 echo "dlmalloc enabled with $LIB_MALLOC"
20018 esac
20019
33f5f8b9 20020fi;
3f961930 20021if test "${use_dlmalloc-unset}" = unset; then
029ce4ae 20022 case "$host" in
20023 i386-*-solaris2.*)
20024 echo "Enabling dlmalloc for $host"
20025 use_dlmalloc="yes"
d20b1cd0 20026 LIBDLMALLOC="libdlmalloc.a"
20027 LIB_MALLOC="-L../lib -ldlmalloc"
029ce4ae 20028 ;;
e8dbaa90 20029 *-sgi-irix*)
20030 echo "Enabling dlmalloc for $host"
20031 use_dlmalloc="yes"
20032 LIBDLMALLOC="libdlmalloc.a"
20033 LIB_MALLOC="-L../lib -ldlmalloc"
20034 ;;
029ce4ae 20035 esac
20036fi
20037if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
20038 # Ok. dlmalloc was enabled before, but state may be changed.
20039 # we have to test these again
20040 unset ac_cv_func_mallinfo
20041 unset ac_cv_func_mallocblksize
20042 unset ac_cv_func_free
20043 unset ac_cv_func_realloc
20044 unset ac_cv_func_memalign
20045 unset ac_cv_func_valloc
20046 unset ac_cv_func_pvalloc
20047 unset ac_cv_func_calloc
20048 unset ac_cv_func_cfree
20049 unset ac_cv_func_malloc_trim
20050 unset ac_cv_func_malloc_usable_size
20051 unset ac_cv_func_malloc_stats
20052 unset ac_cv_func_mallinfo
20053 unset ac_cv_func_mallopt
20054 unset ac_cv_lib_gnumalloc
20055 unset ac_cv_header_gnumalloc_h
20056 unset ac_cv_lib_malloc
20057 unset ac_cv_enabled_dlmalloc
20058fi
20059if test "$use_dlmalloc" = yes; then
94d48591 20060 ac_cv_func_mallinfo="yes"
20061 ac_cv_func_mallocblksize="no"
20062 ac_cv_func_free="yes"
20063 ac_cv_func_realloc="yes"
20064 ac_cv_func_memalign="yes"
20065 ac_cv_func_valloc="yes"
20066 ac_cv_func_pvalloc="yes"
20067 ac_cv_func_calloc="yes"
20068 ac_cv_func_cfree="yes"
20069 ac_cv_func_malloc_trim="yes"
20070 ac_cv_func_malloc_usable_size="yes"
20071 ac_cv_func_malloc_stats="yes"
94d48591 20072 ac_cv_func_mallopt="yes"
20073 ac_cv_lib_gnumalloc="no"
85efe3ec 20074 ac_cv_header_gnumalloc_h="no"
94d48591 20075 ac_cv_lib_malloc="no"
20076 ac_cv_enabled_dlmalloc="yes"
33f5f8b9 20077
20078cat >>confdefs.h <<\_ACEOF
d96ceb8e 20079#define USE_DLMALLOC 1
33f5f8b9 20080_ACEOF
d96ceb8e 20081
e5f4e1b0 20082fi
20083
20084
20085
20086
20087# Check whether --enable-gnuregex or --disable-gnuregex was given.
20088if test "${enable_gnuregex+set}" = set; then
20089 enableval="$enable_gnuregex"
20090 USE_GNUREGEX=$enableval
33f5f8b9 20091fi;
e5f4e1b0 20092
3360d3f2 20093SquidInline="yes"
9a1efaa8 20094
20095# Check whether --enable-optimizations or --disable-optimizations was given.
20096if test "${enable_optimizations+set}" = set; then
20097 enableval="$enable_optimizations"
20098 if test "$enableval" = "no" ; then
20099 echo "Disabling compiler optimizations (-O flag)"
20100 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
20101 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[0-9]*//'`"
20102 SquidInline="no"
20103 fi
20104
20105fi;
20106
3360d3f2 20107# Check whether --enable-inline or --disable-inline was given.
20108if test "${enable_inline+set}" = set; then
20109 enableval="$enable_inline"
20110 if test "$enableval" = "no" ; then
20111 SquidInline="no"
20112 fi
20113
20114fi;
20115
20116if test "$SquidInline" = "yes" ; then
20117
20118cat >>confdefs.h <<\_ACEOF
20119#define _SQUID_INLINE_ inline
20120_ACEOF
20121
20122
20123cat >>confdefs.h <<\_ACEOF
20124#define _USE_INLINE_
20125_ACEOF
20126
20127else
9a1efaa8 20128 echo "Inlining optimization disabled"
3360d3f2 20129
20130cat >>confdefs.h <<\_ACEOF
20131#define _SQUID_INLINE_
20132_ACEOF
20133
20134fi
20135
a454bd49 20136# Check whether --enable-debug-cbdata or --disable-debug-cbdata was given.
20137if test "${enable_debug_cbdata+set}" = set; then
20138 enableval="$enable_debug_cbdata"
20139 if test "$enableval" = "yes" ; then
20140 echo "cbdata debugging enabled"
33f5f8b9 20141
20142cat >>confdefs.h <<\_ACEOF
a454bd49 20143#define CBDATA_DEBUG 1
33f5f8b9 20144_ACEOF
a454bd49 20145
20146 fi
20147
33f5f8b9 20148fi;
a454bd49 20149
e5f4e1b0 20150
20151
d9180414 20152# Check whether --enable-xmalloc-statistics or --disable-xmalloc-statistics was given.
e5f4e1b0 20153if test "${enable_xmalloc_statistics+set}" = set; then
20154 enableval="$enable_xmalloc_statistics"
20155 if test "$enableval" = "yes" ; then
20156 echo "Malloc statistics enabled"
33f5f8b9 20157
20158cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20159#define XMALLOC_STATISTICS 1
33f5f8b9 20160_ACEOF
e5f4e1b0 20161
20162 fi
20163
33f5f8b9 20164fi;
e5f4e1b0 20165
d5a00a1e 20166use_carp=1
3f628dde 20167# Check whether --enable-carp or --disable-carp was given.
20168if test "${enable_carp+set}" = set; then
20169 enableval="$enable_carp"
919bc7b6 20170 if test "$enableval" = "no" ; then
20171 echo "CARP disabled"
d5a00a1e 20172 use_carp=0
20173 fi
20174
20175fi;
20176if test $use_carp = 1; then
33f5f8b9 20177
20178cat >>confdefs.h <<\_ACEOF
d5a00a1e 20179#define USE_CARP 1
33f5f8b9 20180_ACEOF
919bc7b6 20181
d5a00a1e 20182fi
3f628dde 20183
cd748f27 20184# Check whether --enable-async-io or --disable-async-io was given.
e5f4e1b0 20185if test "${enable_async_io+set}" = set; then
20186 enableval="$enable_async_io"
cd748f27 20187 case $enableval in
9bc73deb 20188 yes)
8fab2eba 20189 with_pthreads="yes"
cd748f27 20190 STORE_MODULES="ufs aufs"
9bc73deb 20191 ;;
20192 no)
9bc73deb 20193 ;;
20194 *)
f85c88f3 20195 aufs_io_threads=$enableval
8fab2eba 20196 with_pthreads="yes"
cd748f27 20197 STORE_MODULES="ufs aufs"
9bc73deb 20198 ;;
20199 esac
20200
33f5f8b9 20201fi;
9bc73deb 20202
20203
f85c88f3 20204# Check whether --with-aufs-threads or --without-aufs-threads was given.
20205if test "${with_aufs_threads+set}" = set; then
20206 withval="$with_aufs_threads"
e825dd59 20207 case $withval in
20208 [0-9]*)
20209 aufs_io_threads=$withval
20210 ;;
20211 *)
20212 echo "ERROR: Invalid --with-aufs-threads argument"
20213 exit 1
20214 ;;
20215 esac
20216
33f5f8b9 20217fi;
f85c88f3 20218if test "$aufs_io_threads"; then
20219 echo "With $aufs_io_threads aufs threads"
33f5f8b9 20220
20221cat >>confdefs.h <<_ACEOF
f85c88f3 20222#define AUFS_IO_THREADS $aufs_io_threads
33f5f8b9 20223_ACEOF
e5f4e1b0 20224
cd748f27 20225fi
20226
33f5f8b9 20227
cd748f27 20228# Check whether --with-pthreads or --without-pthreads was given.
20229if test "${with_pthreads+set}" = set; then
20230 withval="$with_pthreads"
cd748f27 20231
33f5f8b9 20232fi;
0205c9c8 20233if test "$with_pthreads" = "yes"; then
cd748f27 20234 echo "With pthreads"
cd748f27 20235fi
20236
33f5f8b9 20237
f85c88f3 20238# Check whether --with-aio or --without-aio was given.
20239if test "${with_aio+set}" = set; then
20240 withval="$with_aio"
f85c88f3 20241
33f5f8b9 20242fi;
0205c9c8 20243if test "$with_aio" = "yes"; then
f85c88f3 20244 echo "With aio"
f85c88f3 20245fi
20246
33f5f8b9 20247
0205c9c8 20248# Check whether --with-dl or --without-dl was given.
20249if test "${with_dl+set}" = set; then
20250 withval="$with_dl"
0205c9c8 20251
33f5f8b9 20252fi;
0205c9c8 20253if test "$with_dl" = "yes"; then
20254 echo "With dl"
20255fi
f85c88f3 20256
cd748f27 20257# Check whether --enable-storeio or --disable-storeio was given.
20258if test "${enable_storeio+set}" = set; then
20259 enableval="$enable_storeio"
20260 case $enableval in
20261 yes)
e825dd59 20262 for dir in $srcdir/src/fs/*; do
20263 module="`basename $dir`"
20264 if test -d "$dir" && test "$module" != CVS; then
20265 STORE_MODULES="$STORE_MODULES $module"
0205c9c8 20266 fi
cd748f27 20267 done
20268 ;;
20269 no)
20270 ;;
e825dd59 20271 *)
20272 STORE_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
c68e9c6b 20273 ;;
cd748f27 20274 esac
20275
20276else
20277 if test -z "$STORE_MODULES"; then
20278 STORE_MODULES="ufs"
20279 fi
20280
33f5f8b9 20281fi;
e825dd59 20282if test -n "$STORE_MODULES"; then
20283 for module in $STORE_MODULES; do
20284 if test -d $srcdir/src/fs/$module; then
20285 :
20286 else
20287 echo "ERROR: storeio $module does not exists"
20288 exit 1
20289 fi
20290 done
20291 echo "Store modules built: $STORE_MODULES"
70fd1c3d 20292 STORE_LINKOBJS=
20293 for module in $STORE_MODULES; do
20294 STORE_LINKOBJS="$STORE_LINKOBJS fs/${module}/StoreFS${module}.o"
20295 done
e825dd59 20296fi
34cdec6e 20297UFS_FOUND=
e825dd59 20298NEED_UFS=
b9ae18aa 20299NEED_BLOCKING=
20300NEED_DISKDAEMON=
20301NEED_DISKTHREADS=
20302NEED_AIO=
6a2814f7 20303STORE_TESTS=
a2794549 20304for fs in $STORE_MODULES none; do
0205c9c8 20305 case "$fs" in
20306 diskd)
e825dd59 20307 NEED_UFS="true"
b9ae18aa 20308 NEED_BLOCKING="true"
20309 NEED_DISKDAEMON="true"
0205c9c8 20310 ;;
20311 aufs)
e825dd59 20312 NEED_UFS="true"
b9ae18aa 20313 NEED_BLOCKING="true"
20314 NEED_DISKTHREADS="true"
0205c9c8 20315 ;;
20316 coss)
6a2814f7 20317 NEED_AIO="true"
d93c6669 20318 STORE_TESTS="$STORE_TESTS tests/testCoss$EXEEXT"
6a2814f7 20319 ;;
20320 null)
20321 STORE_TESTS="$STORE_TESTS tests/testNull$EXEEXT"
0205c9c8 20322 ;;
34cdec6e 20323 ufs)
6a2814f7 20324 UFS_FOUND="true"
20325 STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT"
0205c9c8 20326 esac
a2794549 20327done
b9ae18aa 20328STORE_OBJS=
20329STORE_LIBS=
20330for fs in $STORE_MODULES; do
20331 case "$fs" in
20332 diskd);;
20333 aufs);;
20334 *)
20335 STORE_OBJS="$STORE_OBJS fs/lib${fs}.a"
20336 STORE_LIBS="$STORE_LIBS lib${fs}.a"
20337 ;;
20338 esac
20339done
a2794549 20340
e825dd59 20341if test -z "$UFS_FOUND" && test -n "$NEED_UFS"; then
d93c6669 20342 echo "adding UFS, as it contains core logic for diskd and aufs"
20343 STORE_OBJS="$STORE_OBJS fs/libufs.a"
20344 STORE_LIBS="$STORE_LIBS libufs.a"
20345 STORE_MODULES="$STORE_MODULES ufs"
20346 STORE_LINKOBJS="$STORE_LINKOBJS fs/ufs/StoreFSufs.o"
20347 STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT"
34cdec6e 20348fi
20349
20350
a2794549 20351
20352
5968c189 20353
6a2814f7 20354
b9ae18aa 20355# Check whether --enable-disk-io or --disable-disk-io was given.
20356if test "${enable_disk_io+set}" = set; then
20357 enableval="$enable_disk_io"
20358 case $enableval in
20359 yes)
20360 for dir in $srcdir/src/DiskIO/*; do
20361 module="`basename $dir`"
20362 if test -d "$dir" && test "$module" != CVS; then
20363 DISK_MODULES="$DISK_MODULES $module"
20364 fi
20365 done
20366 ;;
20367 no)
20368 ;;
20369 *)
20370 DISK_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
20371 ;;
20372 esac
20373
20374else
20375 if test -z "$DISK_MODULES"; then
20376 DISK_MODULES="Blocking"
20377 fi
20378
20379fi;
20380if test -n "$DISK_MODULES"; then
20381 for module in $DISK_MODULES; do
20382 if test -d $srcdir/src/DiskIO/$module; then
20383 :
20384 else
20385 echo "ERROR: disk-io $module does not exists"
20386 exit 1
20387 fi
20388 done
20389 DISK_LIBS="lib`echo $DISK_MODULES|sed -e 's% %.a lib%g'`.a"
20390 DISK_LINKOBJS=
20391 for module in $DISK_MODULES; do
20392 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/${module}/${module}DiskIOModule.o"
20393 done
20394fi
20395for fs in $DISK_MODULES none; do
20396 case "$fs" in
20397 DiskDaemon)
20398 DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd"
20399 FOUND_DISKDAEMON="true"
20400 ;;
20401 DiskThreads)
20402 FOUND_DISKTHREADS="true"
20403 ;;
20404 AIO)
20405 FOUND_AIO="true"
20406 ;;
20407 Blocking)
20408 FOUND_BLOCKING="true"
20409 esac
20410done
20411
20412if test -z "$FOUND_BLOCKING" && test -n "$NEED_BLOCKING"; then
c2158752 20413 echo "adding Blocking, as it is used by an active, legacy Store Module"
20414 DISK_LIBS="$DISK_LIBS libBlocking.a"
20415 DISK_MODULES="$DISK_MODULES Blocking"
20416 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/Blocking/BlockingDiskIOModule.o"
b9ae18aa 20417fi
20418
20419if test -z "$FOUND_DISKDAEMON" && test -n "$NEED_DISKDAEMON"; then
c2158752 20420 echo "adding DiskDaemon, as it is used by an active, legacy Store Module"
20421 DISK_LIBS="$DISK_LIBS libDiskDaemon.a"
20422 DISK_MODULES="$DISK_MODULES DiskDaemon"
20423 DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd"
20424 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o"
b9ae18aa 20425fi
20426
20427if test -z "$FOUND_DISKTHREADS" && test -n "$NEED_DISKTHREADS"; then
c2158752 20428 echo "adding DiskThreads, as it is used by an active, legacy Store Module"
20429 DISK_LIBS="$DISK_LIBS libDiskThreads.a"
20430 DISK_MODULES="$DISK_MODULES DiskThreads"
20431 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskThreads/DiskThreadsDiskIOModule.o"
b9ae18aa 20432fi
c7cee0a7 20433
b9ae18aa 20434if test -z "$FOUND_AIO" && test -n "$NEED_AIO"; then
c2158752 20435 echo "adding AIO, as it is used by an active, legacy Store Module"
20436 DISK_LIBS="$DISK_LIBS libAIO.a"
20437 DISK_MODULES="$DISK_MODULES AIO"
20438 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o"
b9ae18aa 20439fi
20440echo "IO Modules built: $DISK_MODULES"
6e6cb8f0 20441USE_AIOPS_WIN32=0
20442USE_AIO_WIN32=0
b9ae18aa 20443for fs in $DISK_MODULES none; do
20444 case "$fs" in
20445 DiskThreads)
20446 if test -z "$with_pthreads"; then
c7cee0a7 20447 case "$host_os" in
f4114eb4 20448 mingw|mingw32)
6e6cb8f0 20449 USE_AIOPS_WIN32=1
c7cee0a7 20450 echo "DiskThreads IO Module used, Windows threads support automatically enabled"
20451 ;;
20452 *)
c7cee0a7 20453 echo "DiskThreads IO Module used, pthreads support automatically enabled"
20454 with_pthreads=yes
20455 ;;
20456 esac
b9ae18aa 20457 fi
20458 ;;
20459 AIO)
20460 if test -z "$with_aio"; then
c2158752 20461 case "$host_os" in
f4114eb4 20462 mingw|mingw32)
6e6cb8f0 20463 USE_AIO_WIN32=1
c2158752 20464 echo "Aio IO Module used, Windows overlapped I/O support automatically enabled"
20465 ;;
20466 *)
c2158752 20467 echo "Aio IO Module used, aio support automatically enabled"
20468 with_aio=yes
20469 ;;
20470 esac
b9ae18aa 20471 fi
20472 ;;
20473 esac
20474done
20475
20476
20477
c9ce3663 20478
c9ce3663 20479
6e6cb8f0 20480
20481if test "$USE_AIOPS_WIN32" = 1; then
20482 USE_AIOPS_WIN32_TRUE=
20483 USE_AIOPS_WIN32_FALSE='#'
20484else
20485 USE_AIOPS_WIN32_TRUE='#'
20486 USE_AIOPS_WIN32_FALSE=
20487fi
20488
20489
20490
20491if test "$USE_AIO_WIN32" = 1; then
20492 USE_AIO_WIN32_TRUE=
20493 USE_AIO_WIN32_FALSE='#'
20494else
20495 USE_AIO_WIN32_TRUE='#'
20496 USE_AIO_WIN32_FALSE=
20497fi
20498
20499
d9180414 20500# Check whether --enable-removal-policies or --disable-removal-policies was given.
c9ce3663 20501if test "${enable_removal_policies+set}" = set; then
20502 enableval="$enable_removal_policies"
20503 case $enableval in
20504 yes)
e825dd59 20505 for dir in $srcdir/src/repl/*; do
20506 module="`basename $dir`"
20507 if test -d "$dir" && test "$module" != CVS; then
20508 REPL_POLICIES="$REPL_POLICIES $module"
c9ce3663 20509 fi
20510 done
20511 ;;
20512 no)
20513 ;;
e825dd59 20514 *)
20515 REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
c9ce3663 20516 ;;
20517 esac
20518
20519else
20520 if test -z "$REPL_POLICIES"; then
20521 REPL_POLICIES="lru"
20522 fi
20523
33f5f8b9 20524fi;
e825dd59 20525if test -n "$REPL_POLICIES"; then
20526 for module in $REPL_POLICIES; do
20527 if test -d $srcdir/src/repl/$module; then
20528 :
20529 else
20530 echo "ERROR: Removal policy $module does not exists"
20531 exit 1
20532 fi
20533 done
20534 echo "Removal policies built: $REPL_POLICIES"
20535 REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a"
20536 REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`"
20537fi
c9ce3663 20538
c9ce3663 20539
042b1f8a 20540
c9ce3663 20541
6487cca8 20542
20543
20544if false; then
20545 ENABLE_PINGER_TRUE=
20546 ENABLE_PINGER_FALSE='#'
20547else
20548 ENABLE_PINGER_TRUE='#'
20549 ENABLE_PINGER_FALSE=
20550fi
ad21602a 20551
e5f4e1b0 20552# Check whether --enable-icmp or --disable-icmp was given.
20553if test "${enable_icmp+set}" = set; then
20554 enableval="$enable_icmp"
20555 if test "$enableval" = "yes" ; then
20556 echo "ICMP enabled"
33f5f8b9 20557
20558cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20559#define USE_ICMP 1
33f5f8b9 20560_ACEOF
20561
e5f4e1b0 20562
e5f4e1b0 20563
6487cca8 20564if true; then
20565 ENABLE_PINGER_TRUE=
20566 ENABLE_PINGER_FALSE='#'
20567else
20568 ENABLE_PINGER_TRUE='#'
20569 ENABLE_PINGER_FALSE=
e5f4e1b0 20570fi
ad21602a 20571
6487cca8 20572 fi
e5f4e1b0 20573
33f5f8b9 20574fi;
a2794549 20575
20576
8efddab9 20577
a2794549 20578if false; then
20579 USE_DELAY_POOLS_TRUE=
20580 USE_DELAY_POOLS_FALSE='#'
20581else
20582 USE_DELAY_POOLS_TRUE='#'
20583 USE_DELAY_POOLS_FALSE=
20584fi
ad21602a 20585
d9180414 20586# Check whether --enable-delay-pools or --disable-delay-pools was given.
95e36d02 20587if test "${enable_delay_pools+set}" = set; then
20588 enableval="$enable_delay_pools"
e5f4e1b0 20589 if test "$enableval" = "yes" ; then
95e36d02 20590 echo "Delay pools enabled"
33f5f8b9 20591
20592cat >>confdefs.h <<\_ACEOF
95e36d02 20593#define DELAY_POOLS 1
33f5f8b9 20594_ACEOF
20595
e5f4e1b0 20596
e5f4e1b0 20597
a2794549 20598if true; then
20599 USE_DELAY_POOLS_TRUE=
20600 USE_DELAY_POOLS_FALSE='#'
20601else
20602 USE_DELAY_POOLS_TRUE='#'
20603 USE_DELAY_POOLS_FALSE=
e5f4e1b0 20604fi
ad21602a 20605
a2794549 20606 fi
e5f4e1b0 20607
33f5f8b9 20608fi;
95e36d02 20609
9fcb1cd6 20610
12a5c9fd 20611
20612if false; then
20613 USE_ESI_TRUE=
20614 USE_ESI_FALSE='#'
20615else
20616 USE_ESI_TRUE='#'
20617 USE_ESI_FALSE=
20618fi
ad21602a 20619
12a5c9fd 20620# Check whether --enable-esi or --disable-esi was given.
20621if test "${enable_esi+set}" = set; then
20622 enableval="$enable_esi"
20623 ac_cv_use_esi=$enableval
20624else
20625 ac_cv_use_esi=no
20626fi;
20627echo "$as_me:$LINENO: checking whether to enable ESI" >&5
20628echo $ECHO_N "checking whether to enable ESI... $ECHO_C" >&6
20629if test "${ac_cv_use_esi+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631else
20632 ac_cv_use_esi=no
20633fi
20634echo "$as_me:$LINENO: result: $ac_cv_use_esi" >&5
20635echo "${ECHO_T}$ac_cv_use_esi" >&6
20636if test "$ac_cv_use_esi" = "yes" ; then
20637
20638cat >>confdefs.h <<\_ACEOF
20639#define ESI 1
20640_ACEOF
20641
20642
20643
20644if true; then
20645 USE_ESI_TRUE=
20646 USE_ESI_FALSE='#'
20647else
20648 USE_ESI_TRUE='#'
20649 USE_ESI_FALSE=
20650fi
ad21602a 20651
3b258ec1 20652 XTRA_LIBS="$XTRA_LIBS -lexpat -lxml2"
029d84da 20653else
20654
20655cat >>confdefs.h <<\_ACEOF
20656#define ESI 0
20657_ACEOF
20658
12a5c9fd 20659fi
20660
20661
2f2d507f 20662
20663if false; then
20664 USE_ICAP_CLIENT_TRUE=
20665 USE_ICAP_CLIENT_FALSE='#'
20666else
20667 USE_ICAP_CLIENT_TRUE='#'
20668 USE_ICAP_CLIENT_FALSE=
20669fi
20670
20671# Check whether --enable-icap-client or --disable-icap-client was given.
20672if test "${enable_icap_client+set}" = set; then
20673 enableval="$enable_icap_client"
20674 ac_cv_use_icap_client=$enableval
20675else
20676 ac_cv_use_icap_client=no
20677fi;
20678echo "$as_me:$LINENO: checking whether to enable the ICAP client" >&5
20679echo $ECHO_N "checking whether to enable the ICAP client... $ECHO_C" >&6
20680if test "${ac_cv_use_icap_client+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682else
20683 ac_cv_use_icap_client=no
20684fi
20685echo "$as_me:$LINENO: result: $ac_cv_use_icap_client" >&5
20686echo "${ECHO_T}$ac_cv_use_icap_client" >&6
20687if test "$ac_cv_use_icap_client" = "yes" ; then
20688
20689cat >>confdefs.h <<\_ACEOF
20690#define ICAP_CLIENT 1
20691_ACEOF
20692
20693
20694
20695if true; then
20696 USE_ICAP_CLIENT_TRUE=
20697 USE_ICAP_CLIENT_FALSE='#'
20698else
20699 USE_ICAP_CLIENT_TRUE='#'
20700 USE_ICAP_CLIENT_FALSE=
20701fi
20702
958bc9ca 20703 ICAP_LIBS="ICAP/libicap.a"
2f2d507f 20704else
20705
20706cat >>confdefs.h <<\_ACEOF
20707#define ICAP_CLIENT 0
20708_ACEOF
20709
958bc9ca 20710 ICAP_LIBS=""
2f2d507f 20711fi
20712
20713
958bc9ca 20714
d9180414 20715# Check whether --enable-useragent-log or --disable-useragent-log was given.
e5f4e1b0 20716if test "${enable_useragent_log+set}" = set; then
20717 enableval="$enable_useragent_log"
20718 if test "$enableval" = "yes" ; then
20719 echo "User-Agent logging enabled"
33f5f8b9 20720
20721cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20722#define USE_USERAGENT_LOG 1
33f5f8b9 20723_ACEOF
e5f4e1b0 20724
20725 fi
20726
33f5f8b9 20727fi;
e5f4e1b0 20728
dfca7e1a 20729# Check whether --enable-referer-log or --disable-referer-log was given.
20730if test "${enable_referer_log+set}" = set; then
20731 enableval="$enable_referer_log"
20732 if test "$enableval" = "yes" ; then
20733 echo "Referer logging enabled"
33f5f8b9 20734
20735cat >>confdefs.h <<\_ACEOF
dfca7e1a 20736#define USE_REFERER_LOG 1
33f5f8b9 20737_ACEOF
dfca7e1a 20738
20739 fi
20740
33f5f8b9 20741fi;
dfca7e1a 20742
fbbe3d25 20743USE_WCCP=1
320e9f36 20744# Check whether --enable-wccp or --disable-wccp was given.
20745if test "${enable_wccp+set}" = set; then
20746 enableval="$enable_wccp"
eb824054 20747 if test "$enableval" = "no" ; then
20748 echo "Web Cache Coordination Protocol disabled"
fbbe3d25 20749 USE_WCCP=0
d5a00a1e 20750 fi
20751
20752fi;
fbbe3d25 20753if test $USE_WCCP = 1; then
33f5f8b9 20754
20755cat >>confdefs.h <<\_ACEOF
d5a00a1e 20756#define USE_WCCP 1
33f5f8b9 20757_ACEOF
eb824054 20758
fbbe3d25 20759fi
20760
20761USE_WCCPv2=1
20762# Check whether --enable-wccpv2 or --disable-wccpv2 was given.
20763if test "${enable_wccpv2+set}" = set; then
20764 enableval="$enable_wccpv2"
20765 if test "$enableval" = "no" ; then
20766 echo "Web Cache Coordination V2 Protocol disabled"
20767 USE_WCCPv2=0
20768 fi
20769
20770fi;
20771if test $USE_WCCPv2 = 1; then
20772
20773cat >>confdefs.h <<\_ACEOF
20774#define USE_WCCPv2 1
33f5f8b9 20775_ACEOF
320e9f36 20776
d5a00a1e 20777fi
320e9f36 20778
d9180414 20779# Check whether --enable-kill-parent-hack or --disable-kill-parent-hack was given.
68d3e4a5 20780if test "${enable_kill_parent_hack+set}" = set; then
20781 enableval="$enable_kill_parent_hack"
e5f4e1b0 20782 if test "$enableval" = "yes" ; then
20783 echo "Kill parent on shutdown"
33f5f8b9 20784
20785cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20786#define KILL_PARENT_OPT 1
33f5f8b9 20787_ACEOF
e5f4e1b0 20788
20789 fi
20790
33f5f8b9 20791fi;
e5f4e1b0 20792
a2794549 20793
20794
20795if false; then
20796 USE_SNMP_TRUE=
20797 USE_SNMP_FALSE='#'
20798else
20799 USE_SNMP_TRUE='#'
20800 USE_SNMP_FALSE=
20801fi
ad21602a 20802
e5f4e1b0 20803# Check whether --enable-snmp or --disable-snmp was given.
20804if test "${enable_snmp+set}" = set; then
20805 enableval="$enable_snmp"
20806 if test "$enableval" = "yes" ; then
20807 echo "SNMP monitoring enabled"
33f5f8b9 20808
20809cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20810#define SQUID_SNMP 1
33f5f8b9 20811_ACEOF
e5f4e1b0 20812
20813 SNMPLIB='-L../snmplib -lsnmp'
33f5f8b9 20814
a2794549 20815
20816if true; then
20817 USE_SNMP_TRUE=
20818 USE_SNMP_FALSE='#'
20819else
20820 USE_SNMP_TRUE='#'
20821 USE_SNMP_FALSE=
20822fi
ad21602a 20823
8a7f0105 20824 SNMP_MAKEFILE=./snmplib/Makefile
e5f4e1b0 20825 makesnmplib=snmplib
20826 fi
20827
33f5f8b9 20828fi;
e5f4e1b0 20829
20830
20831
d9180414 20832# Check whether --enable-cachemgr-hostname or --disable-cachemgr-hostname was given.
e5f4e1b0 20833if test "${enable_cachemgr_hostname+set}" = set; then
20834 enableval="$enable_cachemgr_hostname"
20835 case $enableval in
20836 yes)
33f5f8b9 20837
20838cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20839#define CACHEMGR_HOSTNAME getfullhostname()
33f5f8b9 20840_ACEOF
e5f4e1b0 20841
20842 echo "Cachemgr default hostname == host where cachemgr runs"
20843 ;;
20844 no)
20845 : # Nothing to do..
20846 ;;
20847 *)
33f5f8b9 20848 cat >>confdefs.h <<_ACEOF
e5f4e1b0 20849#define CACHEMGR_HOSTNAME "${enableval}"
33f5f8b9 20850_ACEOF
e5f4e1b0 20851
20852 echo "Cachemgr default hostname set to ${enableval}"
20853 ;;
20854 esac
20855
33f5f8b9 20856fi;
e5f4e1b0 20857
b0dd28ba 20858
20859
20860if false; then
20861 ENABLE_ARP_ACL_TRUE=
20862 ENABLE_ARP_ACL_FALSE='#'
20863else
20864 ENABLE_ARP_ACL_TRUE='#'
20865 ENABLE_ARP_ACL_FALSE=
20866fi
ad21602a 20867
d9180414 20868# Check whether --enable-arp-acl or --disable-arp-acl was given.
e5f4e1b0 20869if test "${enable_arp_acl+set}" = set; then
20870 enableval="$enable_arp_acl"
20871 if test "$enableval" = "yes" ; then
20872 echo "ARP ACL lists enabled (ether address)"
933cc58d 20873 case "$host" in
eb15aa64 20874 *-linux-*)
20875 ;;
631008fb 20876 *-solaris*)
a931a29b 20877 ;;
51fcf1f1 20878 *-freebsd*)
20879 ;;
f71a524f 20880 *-openbsd*)
20881 ;;
7611ad08 20882 *-cygwin*)
20883 LIBS="$LIBS -liphlpapi"
20884 ;;
20885 *-mingw*)
20886 LIBS="$LIBS -liphlpapi"
20887 ;;
933cc58d 20888 *)
eb15aa64 20889 echo "WARNING: ARP ACL support probably won't work on $host."
933cc58d 20890 sleep 10
20891 ;;
20892 esac
33f5f8b9 20893
20894cat >>confdefs.h <<\_ACEOF
e5f4e1b0 20895#define USE_ARP_ACL 1
33f5f8b9 20896_ACEOF
e5f4e1b0 20897
b0dd28ba 20898
20899
20900if true; then
20901 ENABLE_ARP_ACL_TRUE=
20902 ENABLE_ARP_ACL_FALSE='#'
20903else
20904 ENABLE_ARP_ACL_TRUE='#'
20905 ENABLE_ARP_ACL_FALSE=
20906fi
ad21602a 20907
e5f4e1b0 20908 fi
20909
33f5f8b9 20910fi;
e5f4e1b0 20911
a2794549 20912
20913
20914if false; then
20915 ENABLE_HTCP_TRUE=
20916 ENABLE_HTCP_FALSE='#'
20917else
20918 ENABLE_HTCP_TRUE='#'
20919 ENABLE_HTCP_FALSE=
20920fi
ad21602a 20921
14e8e510 20922# Check whether --enable-htcp or --disable-htcp was given.
20923if test "${enable_htcp+set}" = set; then
20924 enableval="$enable_htcp"
b4b8b6da 20925 if test "$enableval" = "yes" ; then
20926 echo "HTCP enabled"
33f5f8b9 20927
20928cat >>confdefs.h <<\_ACEOF
14e8e510 20929#define USE_HTCP 1
33f5f8b9 20930_ACEOF
20931
14e8e510 20932
a2794549 20933
20934if true; then
20935 ENABLE_HTCP_TRUE=
20936 ENABLE_HTCP_FALSE='#'
20937else
20938 ENABLE_HTCP_TRUE='#'
20939 ENABLE_HTCP_FALSE=
20940fi
ad21602a 20941
b4b8b6da 20942 fi
14e8e510 20943
33f5f8b9 20944fi;
14e8e510 20945
b4b8b6da 20946
a2794549 20947
20948if false; then
20949 ENABLE_SSL_TRUE=
20950 ENABLE_SSL_FALSE='#'
20951else
20952 ENABLE_SSL_TRUE='#'
20953 ENABLE_SSL_FALSE=
20954fi
a2794549 20955
ad21602a 20956
53f16c78 20957# Check whether --enable-ssl or --disable-ssl was given.
20958if test "${enable_ssl+set}" = set; then
20959 enableval="$enable_ssl"
20960 if test "$enableval" != "no"; then
3dff197f 20961 echo "SSL gatewaying using OpenSSL enabled"
33f5f8b9 20962
20963cat >>confdefs.h <<\_ACEOF
53f16c78 20964#define USE_SSL 1
33f5f8b9 20965_ACEOF
20966
53f16c78 20967
a2794549 20968
20969if true; then
20970 ENABLE_SSL_TRUE=
20971 ENABLE_SSL_FALSE='#'
20972else
20973 ENABLE_SSL_TRUE='#'
20974 ENABLE_SSL_FALSE=
20975fi
ad21602a 20976
07d1f987 20977 case "$host_os" in
20978 mingw|mingw32)
20979 SSLLIB='-lssl -lcrypto -lgdi32'
20980 ;;
20981 *)
20982 SSLLIB='-lssl -lcrypto'
20983 ;;
20984 esac
53f16c78 20985 USE_OPENSSL=1
20986 fi
20987
33f5f8b9 20988fi;
53f16c78 20989
3dff197f 20990
20991
20992if true; then
20993 NEED_OWN_MD5_TRUE=
20994 NEED_OWN_MD5_FALSE='#'
20995else
20996 NEED_OWN_MD5_TRUE='#'
20997 NEED_OWN_MD5_FALSE=
20998fi
20999
33f5f8b9 21000
ad21602a 21001
53f16c78 21002# Check whether --with-openssl or --without-openssl was given.
21003if test "${with_openssl+set}" = set; then
21004 withval="$with_openssl"
33f5f8b9 21005
dd283e6e 21006 case "$with_openssl" in
53f16c78 21007 yes)
21008 USE_OPENSSL=1
21009 ;;
21010 no)
21011 USE_OPENSSL=
21012 ;;
21013 *)
dd283e6e 21014 SSLLIBDIR="$with_openssl/lib"
730d4a97 21015 CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
53f16c78 21016 USE_OPENSSL=1
21017 esac
21018
33f5f8b9 21019fi;
53f16c78 21020
21021if test -n "$USE_OPENSSL"; then
3dff197f 21022 echo "Using OpenSSL MD5 implementation"
33f5f8b9 21023
21024cat >>confdefs.h <<\_ACEOF
53f16c78 21025#define USE_OPENSSL 1
33f5f8b9 21026_ACEOF
21027
53f16c78 21028
3dff197f 21029
21030if false; then
21031 NEED_OWN_MD5_TRUE=
21032 NEED_OWN_MD5_FALSE='#'
21033else
21034 NEED_OWN_MD5_TRUE='#'
21035 NEED_OWN_MD5_FALSE=
21036fi
ad21602a 21037
53f16c78 21038 if test -z "$SSLLIB"; then
21039 SSLLIB="-lcrypto" # for MD5 routines
21040 fi
9282cc28 21041 if test -d /usr/kerberos/include && test -z "$SSLLIBDIR" && test -f /usr/include/openssl/kssl.h; then
21042 echo "OpenSSL depends on Kerberos"
21043 SSLLIBDIR="/usr/kerberos/lib"
21044 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
21045 fi
53f16c78 21046fi
21047if test -n "$SSLLIBDIR"; then
21048 SSLLIB="-L$SSLLIBDIR $SSLLIB"
21049fi
53f16c78 21050
21051
02749868 21052# Check whether --enable-forw-via-db or --disable-forw-via-db was given.
21053if test "${enable_forw_via_db+set}" = set; then
21054 enableval="$enable_forw_via_db"
21055 if test "$enableval" = "yes" ; then
21056 echo "FORW-VIA enabled"
33f5f8b9 21057
21058cat >>confdefs.h <<\_ACEOF
02749868 21059#define FORW_VIA_DB 1
33f5f8b9 21060_ACEOF
02749868 21061
21062 fi
21063
33f5f8b9 21064fi;
02749868 21065
22df58ea 21066# Check whether --enable-cache-digests or --disable-cache-digests was given.
21067if test "${enable_cache_digests+set}" = set; then
21068 enableval="$enable_cache_digests"
484f2ebc 21069 if test "$enableval" = "yes" ; then
22df58ea 21070 echo "USE_CACHE_DIGESTS enabled"
33f5f8b9 21071
21072cat >>confdefs.h <<\_ACEOF
22df58ea 21073#define USE_CACHE_DIGESTS 1
33f5f8b9 21074_ACEOF
484f2ebc 21075
21076 fi
21077
33f5f8b9 21078fi;
484f2ebc 21079
8c3926c5 21080# Check whether --enable-default-err-language or --disable-default-err-language was given.
21081if test "${enable_default_err_language+set}" = set; then
21082 enableval="$enable_default_err_language"
33f5f8b9 21083
230a03f6 21084 if test -d $srcdir/errors/$enableval; then
8c3926c5 21085 ERR_DEFAULT_LANGUAGE=$enableval
933cc58d 21086 else
e0a8c463 21087 echo "ERROR! Unknown language $enableval, see errors/ directory"
933cc58d 21088 exit 1
21089 fi
93a8bb45 21090
933cc58d 21091else
8c3926c5 21092 ERR_DEFAULT_LANGUAGE="English"
33f5f8b9 21093fi;
8c3926c5 21094
21095
21096# Check whether --enable-err-languages or --disable-err-languages was given.
21097if test "${enable_err_languages+set}" = set; then
21098 enableval="$enable_err_languages"
33f5f8b9 21099
8c3926c5 21100 for l in $enableval; do
21101 if test -d $srcdir/errors/$l; then :; else
21102 echo "ERROR! Unknown language $$l, see errors/"
21103 exit 1
21104 fi
21105 done
21106 ERR_LANGUAGES=$enableval
21107
21108else
33f5f8b9 21109
8c3926c5 21110 ERR_LANGUAGES=
21111 for l in $srcdir/errors/*; do
feee755e 21112 if test -f $l/ERR_ACCESS_DENIED; then
8c3926c5 21113 ERR_LANGUAGES="$ERR_LANGUAGES `basename $l`"
21114 fi
21115 done
21116
33f5f8b9 21117fi;
933cc58d 21118
21119
21120
cd748f27 21121# Check whether --with-coss-membuf-size or --without-coss-membuf-size was given.
21122if test "${with_coss_membuf_size+set}" = set; then
21123 withval="$with_coss_membuf_size"
21124 if test "$with_coss_membuf_size"; then
21125 echo "Setting COSS membuf size to $with_coss_membuf_size bytes"
33f5f8b9 21126
21127cat >>confdefs.h <<_ACEOF
cd748f27 21128#define COSS_MEMBUF_SZ $with_coss_membuf_size
33f5f8b9 21129_ACEOF
cd748f27 21130
21131 fi
21132
33f5f8b9 21133fi;
cd748f27 21134
9bb83c8b 21135# Check whether --enable-poll or --disable-poll was given.
21136if test "${enable_poll+set}" = set; then
21137 enableval="$enable_poll"
33f5f8b9 21138
c68e9c6b 21139 case "$enableval" in
21140 yes)
9bb83c8b 21141 echo "Forcing poll() to be enabled"
21142 ac_cv_func_poll='yes'
c68e9c6b 21143 ;;
21144 no)
21145 echo "Forcing poll() to be disabled"
21146 ac_cv_func_poll='no'
21147 ;;
21148 esac
9bb83c8b 21149
33f5f8b9 21150fi;
9bb83c8b 21151
1b3db6d9 21152# Check whether --enable-select or --disable-select was given.
21153if test "${enable_select+set}" = set; then
21154 enableval="$enable_select"
33f5f8b9 21155
1b3db6d9 21156 case "$enableval" in
21157 yes)
21158 echo "Forcing select() to be enabled"
21159 ac_cv_func_select='yes'
21160 ;;
21161 no)
21162 echo "Forcing select() to be disabled"
21163 ac_cv_func_select='no'
21164 ;;
21165 esac
21166
33f5f8b9 21167fi;
1b3db6d9 21168
21169# Check whether --enable-kqueue or --disable-kqueue was given.
21170if test "${enable_kqueue+set}" = set; then
21171 enableval="$enable_kqueue"
33f5f8b9 21172
1b3db6d9 21173 case "$enableval" in
21174 yes)
21175 echo "Forcing kqueue() to be enabled"
21176 ac_cv_func_kqueue='yes'
21177 ;;
21178 no)
21179 echo "Forcing kqueue() to be disabled"
21180 ac_cv_func_kqueue='no'
21181 ;;
21182esac
21183
33f5f8b9 21184fi;
1b3db6d9 21185
867db1c2 21186# Check whether --enable-epoll or --disable-epoll was given.
21187if test "${enable_epoll+set}" = set; then
21188 enableval="$enable_epoll"
21189
21190 case "$enableval" in
21191 yes)
21192 echo "Forcing epoll() to be enabled"
21193 ac_cv_func_epoll='yes'
867db1c2 21194 ;;
21195 no)
21196 echo "Forcing epoll() to be disabled"
21197 ac_cv_func_epoll='no'
21198 ;;
21199esac
21200
21201fi;
21202
21203
d5a00a1e 21204http_violations=1
6eec93b2 21205# Check whether --enable-http-violations or --disable-http-violations was given.
21206if test "${enable_http_violations+set}" = set; then
21207 enableval="$enable_http_violations"
21208 if test "$enableval" = "no" ; then
21209 echo "Disabling HTTP Violations"
d5a00a1e 21210 http_violations=0
21211 fi
21212
21213fi;
21214if test $http_violations = 1; then
33f5f8b9 21215
21216cat >>confdefs.h <<\_ACEOF
d5a00a1e 21217#define HTTP_VIOLATIONS 1
33f5f8b9 21218_ACEOF
6eec93b2 21219
d5a00a1e 21220else
33f5f8b9 21221 cat >>confdefs.h <<\_ACEOF
d5a00a1e 21222#define HTTP_VIOLATIONS 0
33f5f8b9 21223_ACEOF
6eec93b2 21224
d5a00a1e 21225fi
6eec93b2 21226
5cafc1d6 21227# Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
21228if test "${enable_ipf_transparent+set}" = set; then
21229 enableval="$enable_ipf_transparent"
21230 if test "$enableval" = "yes" ; then
21231 echo "IP-Filter Transparent Proxy enabled"
33f5f8b9 21232
21233cat >>confdefs.h <<\_ACEOF
5cafc1d6 21234#define IPF_TRANSPARENT 1
33f5f8b9 21235_ACEOF
5cafc1d6 21236
21237 IPF_TRANSPARENT="yes"
21238 fi
21239
33f5f8b9 21240fi;
5cafc1d6 21241
0205c9c8 21242# Check whether --enable-pf-transparent or --disable-pf-transparent was given.
21243if test "${enable_pf_transparent+set}" = set; then
21244 enableval="$enable_pf_transparent"
21245 if test "$enableval" = "yes" ; then
21246 echo "PF Transparent Proxy enabled"
33f5f8b9 21247
21248cat >>confdefs.h <<\_ACEOF
0205c9c8 21249#define PF_TRANSPARENT 1
33f5f8b9 21250_ACEOF
0205c9c8 21251
21252 PF_TRANSPARENT="yes"
21253 fi
21254
33f5f8b9 21255fi;
0205c9c8 21256
d852fbad 21257# Check whether --enable-linux-netfilter or --disable-linux-netfilter was given.
21258if test "${enable_linux_netfilter+set}" = set; then
21259 enableval="$enable_linux_netfilter"
21260 if test "$enableval" = "yes" ; then
82fd361a 21261 echo "Linux (Netfilter) Transparent Proxy enabled"
33f5f8b9 21262
21263cat >>confdefs.h <<\_ACEOF
d852fbad 21264#define LINUX_NETFILTER 1
33f5f8b9 21265_ACEOF
d852fbad 21266
21267 LINUX_NETFILTER="yes"
21268 fi
21269
33f5f8b9 21270fi;
d852fbad 21271
ca732765 21272buildmodel=""
21273needlargefiles=
21274
21275
21276# Check whether --with-large-files or --without-large-files was given.
21277if test "${with_large_files+set}" = set; then
21278 withval="$with_large_files"
21279 if test "$withval" = yes; then
21280 needlargefiles=1
ffbbfa56 21281 fi
21282
33f5f8b9 21283fi;
ffbbfa56 21284
a2794549 21285
ca732765 21286# Check whether --with-build-environment or --without-build-environment was given.
21287if test "${with_build_environment+set}" = set; then
21288 withval="$with_build_environment"
21289 case "$withval" in
21290 yes|no)
21291 echo "--with-build-environment expects a build environment string as used by getconf"
21292 exit 1
21293 ;;
21294 *)
21295 buildmodel="$withval"
21296 ;;
21297 esac
21298
21299fi;
21300
21301if test $needlargefiles && test -z "$buildmodel"; then
21302 for model in POSIX_V6_ILP32_OFFBIG XBS5_ILP32_OFFBIG POSIX_V6_LP64_OFF64 XBS5_LP64_OFF64 POSIX_V6_LPBIG_OFFBIG XBS5_LPBIG_OFFBIG; do
21303 if test "`getconf _$model 2>/dev/null || true`" = 1 || test "`getconf $model 2>/dev/null || true`" ; then
21304 buildmodel=$model
21305 break
21306 fi
21307 done
21308 if test -z "$buildmodel"; then
21309 echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64"
21310 sleep 1
21311 CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
00549620 21312 CXXFLAGS="-D_FILE_OFFSET_BITS=64 $CXXFLAGS"
ca732765 21313 fi
21314fi
21315if test -n "$buildmodel" && test "$buildmodel" != "default"; then
21316 echo "Using $buildmodel build environment"
21317 if test "`getconf _$buildmodel 2>/dev/null || true`" = 1 || test "`getconf $buildmodel 2>/dev/null || true`" ; then
21318 : # All fine
21319 else
21320 echo "ERROR: Build environment $buildmodel not known to getconf."
21321 exit 1
21322 fi
21323 CFLAGS="`getconf ${buildmodel}_CFLAGS` $CFLAGS"
00549620 21324 CXXFLAGS="`getconf ${buildmodel}_CFLAGS` $CXXFLAGS"
ca732765 21325 LIBS="`getconf ${buildmodel}_LIBS` $LIBS"
21326 LDFLAGS="`getconf ${buildmodel}_LDFLAGS` $LDFLAGS"
21327 case "$host" in
21328 *-solaris*)
21329 if test "$GCC" = "yes"; then
21330 echo "Removing -Xa for gcc on $host"
21331 CFLAGS="`echo $CFLAGS | sed -e 's/-Xa//'`"
00549620 21332 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Xa//'`"
ca732765 21333 fi
c65da457 21334 echo "Removing -Usun on $host"
ca732765 21335 CFLAGS="`echo $CFLAGS | sed -e 's/-Usun//'`"
00549620 21336 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Usun//'`"
ca732765 21337 ;;
c65da457 21338 *-sgi-irix6.*)
21339 if test "$GCC" = "yes"; then
21340 CFLAGS="`echo $CFLAGS | sed -e 's/-n32/-mabi=n32/'`"
537835cd 21341 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-n32/-mabi=n32/'`"
c65da457 21342 LDFLAGS="`echo $LDFLAGS | sed -e 's/-n32//'`"
21343 CFLAGS="`echo $CFLAGS | sed -e 's/-64/-mabi=64/'`"
537835cd 21344 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-64/-mabi=64/'`"
c65da457 21345 LDFLAGS="`echo $LDFLAGS | sed -e 's/-64//'`"
21346 fi
21347 ;;
ca732765 21348 *)
21349 ;;
21350 esac
21351fi
21352
21353
a2794549 21354
21355if false; then
21356 MAKE_LEAKFINDER_TRUE=
21357 MAKE_LEAKFINDER_FALSE='#'
21358else
21359 MAKE_LEAKFINDER_TRUE='#'
21360 MAKE_LEAKFINDER_FALSE=
21361fi
ad21602a 21362
5d620373 21363# Check whether --enable-leakfinder or --disable-leakfinder was given.
21364if test "${enable_leakfinder+set}" = set; then
21365 enableval="$enable_leakfinder"
21366 if test "$enableval" = "yes" ; then
21367 echo "Leak-Finding enabled"
33f5f8b9 21368
21369cat >>confdefs.h <<\_ACEOF
5d620373 21370#define USE_LEAKFINDER 1
33f5f8b9 21371_ACEOF
5d620373 21372
5d620373 21373 USE_LEAKFINDER="yes"
33f5f8b9 21374
5d620373 21375
a2794549 21376if true; then
21377 MAKE_LEAKFINDER_TRUE=
21378 MAKE_LEAKFINDER_FALSE='#'
21379else
21380 MAKE_LEAKFINDER_TRUE='#'
21381 MAKE_LEAKFINDER_FALSE=
5d620373 21382fi
ad21602a 21383
a2794549 21384 fi
5d620373 21385
33f5f8b9 21386fi;
5d620373 21387
d5a00a1e 21388use_ident=1
3898f57f 21389# Check whether --enable-ident-lookups or --disable-ident-lookups was given.
21390if test "${enable_ident_lookups+set}" = set; then
21391 enableval="$enable_ident_lookups"
21392 if test "$enableval" = "no" ; then
21393 echo "Disabling Ident Lookups"
d5a00a1e 21394 use_ident=0
21395 fi
21396
21397fi;
21398if test $use_ident = 1; then
33f5f8b9 21399
21400cat >>confdefs.h <<\_ACEOF
d5a00a1e 21401#define USE_IDENT 1
33f5f8b9 21402_ACEOF
3898f57f 21403
8000a965 21404
21405
21406if true; then
21407 ENABLE_IDENT_TRUE=
21408 ENABLE_IDENT_FALSE='#'
21409else
21410 ENABLE_IDENT_TRUE='#'
21411 ENABLE_IDENT_FALSE=
21412fi
ad21602a 21413
d5a00a1e 21414else
33f5f8b9 21415 cat >>confdefs.h <<\_ACEOF
d5a00a1e 21416#define USE_IDENT 0
33f5f8b9 21417_ACEOF
3898f57f 21418
8000a965 21419
21420
21421if false; then
21422 ENABLE_IDENT_TRUE=
21423 ENABLE_IDENT_FALSE='#'
21424else
21425 ENABLE_IDENT_TRUE='#'
21426 ENABLE_IDENT_FALSE=
21427fi
ad21602a 21428
d5a00a1e 21429fi
3898f57f 21430
a2794549 21431
21432
21433if false; then
21434 USE_DNSSERVER_TRUE=
21435 USE_DNSSERVER_FALSE='#'
21436else
21437 USE_DNSSERVER_TRUE='#'
21438 USE_DNSSERVER_FALSE=
21439fi
ad21602a 21440
3c573763 21441use_dnsserver=
eb824054 21442# Check whether --enable-internal-dns or --disable-internal-dns was given.
21443if test "${enable_internal_dns+set}" = set; then
21444 enableval="$enable_internal_dns"
21445 if test "$enableval" = "no" ; then
21446 echo "Disabling Internal DNS queries"
3c573763 21447 use_dnsserver="yes"
21448 fi
eb824054 21449
33f5f8b9 21450fi;
3c573763 21451if test "$use_dnsserver" = "yes"; then
33f5f8b9 21452
21453cat >>confdefs.h <<\_ACEOF
7b800d9f 21454#define USE_DNSSERVERS 1
33f5f8b9 21455_ACEOF
21456
eb824054 21457
a2794549 21458
21459if true; then
21460 USE_DNSSERVER_TRUE=
21461 USE_DNSSERVER_FALSE='#'
21462else
21463 USE_DNSSERVER_TRUE='#'
21464 USE_DNSSERVER_FALSE=
21465fi
ad21602a 21466
eb824054 21467fi
21468
eb824054 21469# Check whether --enable-truncate or --disable-truncate was given.
21470if test "${enable_truncate+set}" = set; then
21471 enableval="$enable_truncate"
21472 if test "$enableval" = "yes" ; then
21473 echo "Enabling truncate instead of unlink"
33f5f8b9 21474
21475cat >>confdefs.h <<\_ACEOF
eb824054 21476#define USE_TRUNCATE 1
33f5f8b9 21477_ACEOF
eb824054 21478
21479 fi
21480
33f5f8b9 21481fi;
eb824054 21482
f388e9b4 21483# Check whether --enable-hostname-checks or --disable-hostname-checks was given.
c8a31e86 21484if test "${enable_hostname_checks+set}" = set; then
21485 enableval="$enable_hostname_checks"
21486 if test "$enableval" = "yes"; then
e344b46d 21487 echo "Enabling hostname sanity checks"
c8a31e86 21488
21489cat >>confdefs.h <<\_ACEOF
21490#define CHECK_HOSTNAMES 1
21491_ACEOF
21492
f388e9b4 21493 fi
21494
21495fi;
c8a31e86 21496
9bc73deb 21497# Check whether --enable-underscores or --disable-underscores was given.
21498if test "${enable_underscores+set}" = set; then
21499 enableval="$enable_underscores"
21500 if test "$enableval" = "yes" ; then
21501 echo "Enabling the use of underscores in host names"
33f5f8b9 21502
21503cat >>confdefs.h <<\_ACEOF
9bc73deb 21504#define ALLOW_HOSTNAME_UNDERSCORES 1
33f5f8b9 21505_ACEOF
9bc73deb 21506
21507 fi
21508
33f5f8b9 21509fi;
9bc73deb 21510
8e90adb6 21511# Check whether --enable-default-hostsfile or --disable-default-hostsfile was given.
21512if test "${enable_default_hostsfile+set}" = set; then
21513 enableval="$enable_default_hostsfile"
33f5f8b9 21514
8e90adb6 21515 if test "$enableval" != "none" ; then
21516 if test -f $enableval; then
21517 OPT_DEFAULT_HOSTS=$enableval
21518 else
21519 echo "Warning Unable to find $enableval"
21520 sleep 5
21521 fi
21522 else
33f5f8b9 21523 OPT_DEFAULT_HOSTS="none"
8e90adb6 21524 fi
21525 echo "Default hosts file set to: $enableval"
21526
21527else
21528 OPT_DEFAULT_HOSTS="/etc/hosts"
33f5f8b9 21529fi;
8e90adb6 21530
21531
968bed6f 21532# Check whether --enable-auth or --disable-auth was given.
21533if test "${enable_auth+set}" = set; then
21534 enableval="$enable_auth"
21535 case $enableval in
21536 yes)
6bf717ad 21537 for dir in $srcdir/src/auth/*; do
21538 module="`basename $dir`"
e825dd59 21539 if test -d "$dir" && test "$module" != CVS; then
6bf717ad 21540 AUTH_MODULES="$AUTH_MODULES $module"
968bed6f 21541 fi
21542 done
21543 ;;
21544 no)
21545 ;;
e825dd59 21546 *)
21547 AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21548 ;;
968bed6f 21549 esac
21550
21551else
21552 if test -z "$AUTH_MODULES"; then
4bf2a6c5 21553 AUTH_MODULES="ntlm basic digest negotiate"
968bed6f 21554 fi
21555
33f5f8b9 21556fi;
e825dd59 21557if test -n "$AUTH_MODULES"; then
21558 for module in $AUTH_MODULES; do
21559 if test -d $srcdir/src/auth/$module; then
21560 :
21561 else
21562 echo "ERROR: Auth scheme $module does not exists"
21563 exit 1
21564 fi
b6926c60 21565 eval AUTH_MODULE_${module}=yes
e825dd59 21566 done
21567 echo "Auth scheme modules built: $AUTH_MODULES"
21568 AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a"
21569 AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`"
bb4a1cf7 21570else
21571 echo "Auth scheme modules built: None"
e825dd59 21572fi
a33e1d91 21573AUTH_LINKOBJS=
21574for module in $AUTH_MODULES; do
21575 AUTH_LINKOBJS="$AUTH_LINKOBJS auth/${module}/${module}Scheme.o"
21576done
21577
968bed6f 21578
968bed6f 21579
968bed6f 21580
21581
b6926c60 21582if test -n "$AUTH_MODULE_basic"; then
21583 BASIC_AUTH_HELPERS="all"
21584fi
968bed6f 21585# Check whether --enable-basic-auth-helpers or --disable-basic-auth-helpers was given.
21586if test "${enable_basic_auth_helpers+set}" = set; then
21587 enableval="$enable_basic_auth_helpers"
b7db09a3 21588 case "$enableval" in
33f5f8b9 21589 yes)
b6926c60 21590 BASIC_AUTH_HELPERS="all"
e825dd59 21591 ;;
b7db09a3 21592 no)
b6926c60 21593 BASIC_AUTH_HELPERS=""
e825dd59 21594 ;;
b7db09a3 21595 *)
b6926c60 21596 if test -z "$AUTH_MODULE_basic"; then
21597 echo "WARNING: Basic auth helpers selected without the basic scheme enabled"
21598 sleep 15
21599 fi
e825dd59 21600 BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21601 ;;
b7db09a3 21602 esac
21603
33f5f8b9 21604fi;
b6926c60 21605if test "$BASIC_AUTH_HELPERS" = "all" ; then
21606 BASIC_AUTH_HELPERS=""
21607 for dir in $srcdir/helpers/basic_auth/*; do
21608 helper="`basename $dir`"
21609 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21610 BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS $helper"
21611 fi
21612 done
21613fi
fc83a946 21614if test -n "$BASIC_AUTH_HELPERS"; then
d0b3b2fe 21615 for helper in $BASIC_AUTH_HELPERS; do
e825dd59 21616 if test -d $srcdir/helpers/basic_auth/$helper; then
a33e1d91 21617 case $helper in
21618 SASL)
21619 require_sasl=yes
21620 ;;
21621 esac
d0b3b2fe 21622 else
e825dd59 21623 echo "ERROR: Basic auth helper $helper does not exists"
21624 exit 1
d0b3b2fe 21625 fi
21626 done
fc83a946 21627 echo "Basic auth helpers built: $BASIC_AUTH_HELPERS"
b7db09a3 21628fi
21629
21630
b6926c60 21631if test -n "$AUTH_MODULE_ntlm"; then
21632 NTLM_AUTH_HELPERS="all"
21633fi
968bed6f 21634# Check whether --enable-ntlm-auth-helpers or --disable-ntlm-auth-helpers was given.
21635if test "${enable_ntlm_auth_helpers+set}" = set; then
21636 enableval="$enable_ntlm_auth_helpers"
21637 case "$enableval" in
33f5f8b9 21638 yes)
b6926c60 21639 NTLM_AUTH_HELPERS="all"
e825dd59 21640 ;;
968bed6f 21641 no)
b6926c60 21642 NTLM_AUTH_HELPERS=""
e825dd59 21643 ;;
968bed6f 21644 *)
e825dd59 21645 NTLM_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21646 ;;
968bed6f 21647 esac
21648
33f5f8b9 21649fi;
b6926c60 21650if test "$NTLM_AUTH_HELPERS" = "all" ; then
21651 NTLM_AUTH_HELPERS=""
21652 for dir in $srcdir/helpers/ntlm_auth/*; do
21653 helper="`basename $dir`"
21654 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21655 NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS $helper"
21656 fi
21657 done
21658fi
968bed6f 21659if test -n "$NTLM_AUTH_HELPERS"; then
d0b3b2fe 21660 for helper in $NTLM_AUTH_HELPERS; do
e825dd59 21661 if test -d $srcdir/helpers/ntlm_auth/$helper; then
21662 :
d0b3b2fe 21663 else
e825dd59 21664 echo "ERROR: NTLM Auth helper $helper does not exists"
21665 exit 1
d0b3b2fe 21666 fi
21667 done
968bed6f 21668 echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS"
21669fi
21670
21671
b6926c60 21672if test -n "$AUTH_MODULE_negotiate"; then
21673 NEGOTIATE_AUTH_HELPERS="all"
21674fi
ce4caa86 21675# Check whether --enable-negotiate-auth-helpers or --disable-negotiate-auth-helpers was given.
21676if test "${enable_negotiate_auth_helpers+set}" = set; then
21677 enableval="$enable_negotiate_auth_helpers"
21678 case "$enableval" in
21679 yes)
b6926c60 21680 NEGOTIATE_AUTH_HELPERS="all"
ce4caa86 21681 ;;
21682 no)
b6926c60 21683 NEGOTIATE_AUTH_HELPERS=""
ce4caa86 21684 ;;
21685 *)
21686 NEGOTIATE_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21687 ;;
21688 esac
21689
21690fi;
b6926c60 21691if test "$NEGOTIATE_AUTH_HELPERS" = "all" ; then
21692 NEGOTIATE_AUTH_HELPERS=""
21693 for dir in $srcdir/helpers/negotiate_auth/*; do
21694 helper="`basename $dir`"
21695 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21696 NEGOTIATE_AUTH_HELPERS="$NEGOTIATE_AUTH_HELPERS $helper"
21697 fi
21698 done
21699fi
ce4caa86 21700if test -n "$NEGOTIATE_AUTH_HELPERS"; then
21701 for helper in $NEGOTIATE_AUTH_HELPERS; do
21702 if test -d $srcdir/helpers/negotiate_auth/$helper; then
21703 :
21704 else
21705 echo "ERROR: Negotiate Auth helper $helper does not exists"
21706 exit 1
21707 fi
21708 done
21709 echo "Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS"
21710fi
21711
21712
b6926c60 21713if test -n "$AUTH_MODULE_digest"; then
21714 DIGEST_AUTH_HELPERS=all
21715fi
96ef0ce9 21716# Check whether --enable-digest-auth-helpers or --disable-digest-auth-helpers was given.
21717if test "${enable_digest_auth_helpers+set}" = set; then
21718 enableval="$enable_digest_auth_helpers"
21719 case "$enableval" in
21720 yes)
b6926c60 21721 DIGEST_AUTH_HELPERS="all"
e825dd59 21722 ;;
96ef0ce9 21723 no)
b6926c60 21724 DIGEST_AUTH_HELPERS=""
e825dd59 21725 ;;
96ef0ce9 21726 *)
e825dd59 21727 DIGEST_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21728 ;;
96ef0ce9 21729 esac
21730
33f5f8b9 21731fi;
b6926c60 21732if test "$DIGEST_AUTH_HELPERS" = "all" ; then
21733 DIGEST_AUTH_HELPERS=""
21734 for dir in $srcdir/helpers/digest_auth/*; do
21735 helper="`basename $dir`"
21736 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21737 DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS $helper"
21738 fi
21739 done
21740fi
96ef0ce9 21741if test -n "$DIGEST_AUTH_HELPERS"; then
ca86b2d8 21742 for helper in $DIGEST_AUTH_HELPERS; do
21743 if test -f $srcdir/helpers/digest_auth/$helper/Makefile.in; then
21744 :
21745 else
21746 echo "ERROR: digest auth helper $helper does not exists"
21747 exit 1
21748 fi
21749 done
96ef0ce9 21750 echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS"
21751fi
21752
968bed6f 21753
1aca689d 21754# Check whether --enable-ntlm-fail-open or --disable-ntlm-fail-open was given.
21755if test "${enable_ntlm_fail_open+set}" = set; then
21756 enableval="$enable_ntlm_fail_open"
21757 if test "$enableval" = "yes" ; then
33f5f8b9 21758
21759cat >>confdefs.h <<\_ACEOF
1aca689d 21760#define NTLM_FAIL_OPEN 1
33f5f8b9 21761_ACEOF
1aca689d 21762
21763 fi
21764
33f5f8b9 21765fi;
1aca689d 21766
b6926c60 21767EXTERNAL_ACL_HELPERS=all
ee07e408 21768# Check whether --enable-external-acl-helpers or --disable-external-acl-helpers was given.
21769if test "${enable_external_acl_helpers+set}" = set; then
21770 enableval="$enable_external_acl_helpers"
21771 case "$enableval" in
21772 yes)
b6926c60 21773 EXTERNAL_ACL_HELPERS=all
e825dd59 21774 ;;
ee07e408 21775 no)
b6926c60 21776 EXTERNAL_ACL_HELPERS=""
e825dd59 21777 ;;
ee07e408 21778 *)
e825dd59 21779 EXTERNAL_ACL_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21780 ;;
ee07e408 21781 esac
21782
33f5f8b9 21783fi;
b6926c60 21784if test "$EXTERNAL_ACL_HELPERS" = "all" ; then
7861e7c9 21785 EXTERNAL_ACL_HELPERS=""
b6926c60 21786 for dir in $srcdir/helpers/external_acl/*; do
21787 helper="`basename $dir`"
21788 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21789 EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $helper"
21790 fi
21791 done
21792fi
ee07e408 21793if test -n "$EXTERNAL_ACL_HELPERS"; then
d0b3b2fe 21794 for helper in $EXTERNAL_ACL_HELPERS; do
21795 if test -f $srcdir/helpers/external_acl/$helper/Makefile.in; then
21796 :
21797 else
ca86b2d8 21798 echo "ERROR: external acl helper $helper does not exists"
d0b3b2fe 21799 exit 1
21800 fi
21801 done
ee07e408 21802 echo "External acl helpers built: $EXTERNAL_ACL_HELPERS"
21803fi
21804
21805
a33e1d91 21806
00b2804c 21807# Check whether --with-valgrind or --without-valgrind was given.
21808if test "${with_valgrind+set}" = set; then
21809 withval="$with_valgrind"
21810 case $withval in
21811 yes)
21812 valgrind=1
21813 ;;
21814 no)
21815 valgrind=
21816 ;;
21817 *)
21818 CPPFLAGS="$CPPFLAGS -I${enableval}/include"
21819 valgrind=1
21820 ;;
21821 esac
21822 if test $valgrind; then
21823
21824cat >>confdefs.h <<\_ACEOF
21825#define WITH_VALGRIND 1
21826_ACEOF
21827
21828 echo "Valgrind debug support enabled"
21829 fi
21830
21831fi;
21832
21833
a33e1d91 21834cat >>confdefs.h <<\_ACEOF
21835#define DISABLE_POOLS 0
21836_ACEOF
21837
d96ceb8e 21838# Check whether --enable-mempools or --disable-mempools was given.
21839if test "${enable_mempools+set}" = set; then
21840 enableval="$enable_mempools"
21841 if test "$enableval" = "no" ; then
21842 echo "memPools disabled"
33f5f8b9 21843
a33e1d91 21844cat >>confdefs.h <<\_ACEOF
21845#define DISABLE_POOLS 1
21846_ACEOF
21847
21848 fi
21849
21850fi;
21851
21852# Check whether --enable-win32-service or --disable-win32-service was given.
21853if test "${enable_win32_service+set}" = set; then
21854 enableval="$enable_win32_service"
21855 if test "$enableval" = "yes" ; then
21856 echo "Enabling WIN32 run service mode"
21857
21858cat >>confdefs.h <<\_ACEOF
21859#define USE_WIN32_SERVICE 1
21860_ACEOF
21861
21862 fi
21863
21864fi;
21865
21866
a33e1d91 21867if test "$require_sasl" = "yes"; then
21868
21869
21870for ac_header in sasl/sasl.h sasl.h
21871do
21872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21873if eval "test \"\${$as_ac_Header+set}\" = set"; then
21874 echo "$as_me:$LINENO: checking for $ac_header" >&5
21875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21876if eval "test \"\${$as_ac_Header+set}\" = set"; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21878fi
21879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21881else
21882 # Is the header compilable?
21883echo "$as_me:$LINENO: checking $ac_header usability" >&5
21884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21885cat >conftest.$ac_ext <<_ACEOF
a33e1d91 21886/* confdefs.h. */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h. */
21891$ac_includes_default
21892#include <$ac_header>
21893_ACEOF
21894rm -f conftest.$ac_objext
21895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 21896 (eval $ac_compile) 2>conftest.er1
a33e1d91 21897 ac_status=$?
af3004ff 21898 grep -v '^ *+' conftest.er1 >conftest.err
21899 rm -f conftest.er1
21900 cat conftest.err >&5
a33e1d91 21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } &&
6263d81f 21903 { ac_try='test -z "$ac_c_werror_flag"
21904 || test ! -s conftest.err'
af3004ff 21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } &&
21910 { ac_try='test -s conftest.$ac_objext'
a33e1d91 21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 ac_header_compiler=yes
21917else
21918 echo "$as_me: failed program was:" >&5
21919sed 's/^/| /' conftest.$ac_ext >&5
21920
21921ac_header_compiler=no
21922fi
af3004ff 21923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a33e1d91 21924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21925echo "${ECHO_T}$ac_header_compiler" >&6
21926
21927# Is the header present?
21928echo "$as_me:$LINENO: checking $ac_header presence" >&5
21929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21930cat >conftest.$ac_ext <<_ACEOF
a33e1d91 21931/* confdefs.h. */
33f5f8b9 21932_ACEOF
a33e1d91 21933cat confdefs.h >>conftest.$ac_ext
21934cat >>conftest.$ac_ext <<_ACEOF
21935/* end confdefs.h. */
21936#include <$ac_header>
21937_ACEOF
21938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } >/dev/null; then
21946 if test -s conftest.err; then
21947 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 21948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a33e1d91 21949 else
21950 ac_cpp_err=
d96ceb8e 21951 fi
a33e1d91 21952else
21953 ac_cpp_err=yes
21954fi
21955if test -z "$ac_cpp_err"; then
21956 ac_header_preproc=yes
21957else
21958 echo "$as_me: failed program was:" >&5
21959sed 's/^/| /' conftest.$ac_ext >&5
d96ceb8e 21960
a33e1d91 21961 ac_header_preproc=no
21962fi
21963rm -f conftest.err conftest.$ac_ext
21964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21965echo "${ECHO_T}$ac_header_preproc" >&6
d96ceb8e 21966
a33e1d91 21967# So? What about this header?
af3004ff 21968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21969 yes:no: )
a33e1d91 21970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
af3004ff 21972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21974 ac_header_preproc=yes
a33e1d91 21975 ;;
af3004ff 21976 no:yes:* )
a33e1d91 21977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
af3004ff 21979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a33e1d91 21985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
af3004ff 21987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a33e1d91 21989 (
21990 cat <<\_ASBOX
6e4fdb42 21991## ----------------------------------------------- ##
21992## Report this to http://www.squid-cache.org/bugs/ ##
21993## ----------------------------------------------- ##
a33e1d91 21994_ASBOX
21995 ) |
21996 sed "s/^/$as_me: WARNING: /" >&2
21997 ;;
21998esac
21999echo "$as_me:$LINENO: checking for $ac_header" >&5
22000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22001if eval "test \"\${$as_ac_Header+set}\" = set"; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
af3004ff 22004 eval "$as_ac_Header=\$ac_header_preproc"
a33e1d91 22005fi
22006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9e6ab3ce 22008
a33e1d91 22009fi
22010if test `eval echo '${'$as_ac_Header'}'` = yes; then
22011 cat >>confdefs.h <<_ACEOF
22012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9e6ab3ce 22013_ACEOF
22014
a33e1d91 22015fi
7f013c67 22016
a33e1d91 22017done
7f013c67 22018
a33e1d91 22019 if test "$ac_cv_header_sasl_sasl_h" = "yes"; then
22020 echo "using SASL2"
22021 LIBSASL="-lsasl2"
22022 else
22023 if test "$ac_cv_header_sasl_h" = "yes"; then
22024 echo "using SASL"
22025 LIBSASL="-lsasl"
22026 else
22027 echo "ERROR: Neither SASL nor SASL2 found"
22028 exit 1
22029 fi
22030 fi
7f013c67 22031
a33e1d91 22032fi
7f013c67 22033
fe0810ac 22034# Check whether --enable-unlinkd or --disable-unlinkd was given.
22035if test "${enable_unlinkd+set}" = set; then
22036 enableval="$enable_unlinkd"
22037 if test "$enableval" = "no" ; then
3c573763 22038 use_unlinkd=no
fe0810ac 22039 else
3c573763 22040 use_unlinkd=yes
fe0810ac 22041 fi
22042
22043else
33f5f8b9 22044
fe0810ac 22045 # Here we should probably use some magic depending on the selected
22046 # storage models
3c573763 22047 use_unlinkd=yes
fe0810ac 22048
33f5f8b9 22049fi;
3c573763 22050if test "$use_unlinkd" = "yes"; then
fe0810ac 22051 echo "unlinkd enabled"
33f5f8b9 22052
22053cat >>confdefs.h <<\_ACEOF
fe0810ac 22054#define USE_UNLINKD 1
33f5f8b9 22055_ACEOF
22056
fe0810ac 22057
a2794549 22058
22059if true; then
22060 ENABLE_UNLINKD_TRUE=
22061 ENABLE_UNLINKD_FALSE='#'
fe0810ac 22062else
a2794549 22063 ENABLE_UNLINKD_TRUE='#'
22064 ENABLE_UNLINKD_FALSE=
fe0810ac 22065fi
ad21602a 22066
a2794549 22067else
22068 echo "unlinkd disabled"
33f5f8b9 22069
fe0810ac 22070
a2794549 22071if false; then
22072 ENABLE_UNLINKD_TRUE=
22073 ENABLE_UNLINKD_FALSE='#'
22074else
22075 ENABLE_UNLINKD_TRUE='#'
22076 ENABLE_UNLINKD_FALSE=
22077fi
ad21602a 22078
a2794549 22079fi
fe0810ac 22080
22081# Check whether --enable-stacktraces or --disable-stacktraces was given.
22082if test "${enable_stacktraces+set}" = set; then
22083 enableval="$enable_stacktraces"
22084 if test "$enableval" = "yes" ; then
22085 echo "Enabling automatic stack backtraces on fatal errors"
33f5f8b9 22086
22087cat >>confdefs.h <<\_ACEOF
fe0810ac 22088#define PRINT_STACK_TRACE 1
33f5f8b9 22089_ACEOF
fe0810ac 22090
22091 fi
22092
33f5f8b9 22093fi;
fe0810ac 22094
88bfe092 22095
22096
22097if false; then
22098 ENABLE_XPROF_STATS_TRUE=
22099 ENABLE_XPROF_STATS_FALSE='#'
22100else
22101 ENABLE_XPROF_STATS_TRUE='#'
22102 ENABLE_XPROF_STATS_FALSE=
22103fi
ad21602a 22104
88bfe092 22105# Check whether --enable-cpu-profiling or --disable-cpu-profiling was given.
22106if test "${enable_cpu_profiling+set}" = set; then
22107 enableval="$enable_cpu_profiling"
22108 if test "$enableval" = "yes" ; then
22109 echo "Enabling cpu-profiling"
33f5f8b9 22110
22111cat >>confdefs.h <<\_ACEOF
88bfe092 22112#define USE_XPROF_STATS 1
33f5f8b9 22113_ACEOF
22114
88bfe092 22115
88bfe092 22116
22117if true; then
22118 ENABLE_XPROF_STATS_TRUE=
22119 ENABLE_XPROF_STATS_FALSE='#'
22120else
22121 ENABLE_XPROF_STATS_TRUE='#'
22122 ENABLE_XPROF_STATS_FALSE=
22123fi
ad21602a 22124
88bfe092 22125 fi
22126
33f5f8b9 22127fi;
88bfe092 22128
53f16c78 22129# Check whether --enable-x_accelerator_vary or --disable-x_accelerator_vary was given.
22130if test "${enable_x_accelerator_vary+set}" = set; then
22131 enableval="$enable_x_accelerator_vary"
22132 if test "$enableval" = "yes" ; then
22133 echo "Enabling support for X-Accelerator-Vary"
33f5f8b9 22134
22135cat >>confdefs.h <<\_ACEOF
53f16c78 22136#define X_ACCELERATOR_VARY 1
33f5f8b9 22137_ACEOF
53f16c78 22138
22139 fi
22140
33f5f8b9 22141fi;
53f16c78 22142
22143
ba077dfb 22144# Check whether --with-filedescriptors or --without-filedescriptors was given.
22145if test "${with_filedescriptors+set}" = set; then
22146 withval="$with_filedescriptors"
33f5f8b9 22147 squid_filedescriptors_num=$withval
22148fi;
ba077dfb 22149
8b5e106b 22150# Extract the first word of "cppunit-config", so it can be a program name with args.
22151set dummy cppunit-config; ac_word=$2
22152echo "$as_me:$LINENO: checking for $ac_word" >&5
22153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22154if test "${ac_cv_path_CPPUNITCONFIG+set}" = set; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22156else
22157 case $CPPUNITCONFIG in
22158 [\\/]* | ?:[\\/]*)
22159 ac_cv_path_CPPUNITCONFIG="$CPPUNITCONFIG" # Let the user override the test with a path.
22160 ;;
22161 *)
22162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22163for as_dir in $PATH
22164do
22165 IFS=$as_save_IFS
22166 test -z "$as_dir" && as_dir=.
22167 for ac_exec_ext in '' $ac_executable_extensions; do
22168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22169 ac_cv_path_CPPUNITCONFIG="$as_dir/$ac_word$ac_exec_ext"
22170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22171 break 2
22172 fi
22173done
22174done
22175
22176 test -z "$ac_cv_path_CPPUNITCONFIG" && ac_cv_path_CPPUNITCONFIG="false"
22177 ;;
22178esac
22179fi
22180CPPUNITCONFIG=$ac_cv_path_CPPUNITCONFIG
22181
22182if test -n "$CPPUNITCONFIG"; then
22183 echo "$as_me:$LINENO: result: $CPPUNITCONFIG" >&5
22184echo "${ECHO_T}$CPPUNITCONFIG" >&6
22185else
22186 echo "$as_me:$LINENO: result: no" >&5
22187echo "${ECHO_T}no" >&6
22188fi
22189
22190if $CPPUNITCONFIG --help >/dev/null; then
a33e1d91 22191 echo "using system installed cppunit"
22192 SQUID_CPPUNIT_DIR=''
8b5e106b 22193 SQUID_CPPUNIT_LIBS="`$CPPUNITCONFIG --libs`"
22194 SQUID_CPPUNIT_LA=''
22195 SQUID_CPPUNIT_INC="`$CPPUNITCONFIG --cflags`"
22196else
22197 SQUID_CPPUNIT_DIR='cppunit-1.10.0'
22198 SQUID_CPPUNIT_LA='$(top_builddir)/lib/cppunit-1.10.0/src/cppunit/libcppunit.la'
22199 SQUID_CPPUNIT_LIBS='$(SQUID_CPPUNIT_LA)'
22200 SQUID_CPPUNIT_INC='-I$(top_builddir)/lib/cppunit-1.10.0/include -I $(top_srcdir)/lib/cppunit-1.10.0/include'
a33e1d91 22201fi
22202
8b5e106b 22203
a33e1d91 22204# Check whether --with-cppunit-basedir or --without-cppunit-basedir was given.
22205if test "${with_cppunit_basedir+set}" = set; then
22206 withval="$with_cppunit_basedir"
22207 if test -f $withval/include/cppunit/TestCase.h; then
22208 echo "Using cppunit includes from $withval"
22209 SQUID_CPPUNIT_INC="-I${withval}/include"
22210 else
22211 echo "ERROR: Cannot find cppunit at $withval"
22212 exit 1
22213 fi
22214 if test -f $withval/lib/libcppunit.la; then
22215 echo "Using cppunit lib from $withval"
22216 SQUID_CPPUNIT_LA="-I${withval}/lib/libcppunit.la"
8b5e106b 22217 SQUID_CPPUNIT_LIBS='$(SQUID_CPPUNIT_LA)'
a33e1d91 22218 else
22219 echo "ERROR: Cannot find cppunit at $withval"
22220 exit 1
22221 fi
22222 SQUID_CPPUNIT_DIR=''
22223
22224fi;
22225
22226
22227
22228
8b5e106b 22229
fd9aaa3e 22230# Force some compilers to use ANSI features
22231#
22232case "$host" in
22233 alpha-dec-osf*)
22234 if test "$ac_cv_prog_CC" = "cc" ; then
22235 echo "adding '-std1' to cc args for $host"
22236 CC="cc -std1";
22237 ac_cv_prog_CC="$CC"
22238 fi
22239 ;;
c68e9c6b 22240 *-hp-hpux*)
22241 if test "$ac_cv_prog_CC" = "cc" ; then
22242 echo "adding '-Ae' to cc args for $host"
22243 CC="cc -Ae";
22244 ac_cv_prog_CC="$CC"
22245 fi
22246 ;;
fd9aaa3e 22247esac
22248
33f5f8b9 22249ac_ext=c
22250ac_cpp='$CPP $CPPFLAGS'
22251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253ac_compiler_gnu=$ac_cv_c_compiler_gnu
22254echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
22255echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
090089c4 22256# On Suns, sometimes $CPP names a directory.
22257if test -n "$CPP" && test -d "$CPP"; then
22258 CPP=
22259fi
22260if test -z "$CPP"; then
33f5f8b9 22261 if test "${ac_cv_prog_CPP+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263else
22264 # Double quotes because CPP needs to be expanded
22265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
22266 do
22267 ac_preproc_ok=false
22268for ac_c_preproc_warn_flag in '' yes
22269do
22270 # Use a header file that comes with gcc, so configuring glibc
22271 # with a fresh cross-compiler works.
ad21602a 22272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22273 # <limits.h> exists even on freestanding compilers.
090089c4 22274 # On the NeXT, cc -E runs the code through the compiler's parser,
33f5f8b9 22275 # not just through cpp. "Syntax error" is here to catch this case.
22276 cat >conftest.$ac_ext <<_ACEOF
ad21602a 22277/* confdefs.h. */
22278_ACEOF
22279cat confdefs.h >>conftest.$ac_ext
22280cat >>conftest.$ac_ext <<_ACEOF
22281/* end confdefs.h. */
22282#ifdef __STDC__
22283# include <limits.h>
22284#else
22285# include <assert.h>
22286#endif
af3004ff 22287 Syntax error
33f5f8b9 22288_ACEOF
22289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22291 ac_status=$?
ad21602a 22292 grep -v '^ *+' conftest.er1 >conftest.err
33f5f8b9 22293 rm -f conftest.er1
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } >/dev/null; then
22297 if test -s conftest.err; then
22298 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 22299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33f5f8b9 22300 else
22301 ac_cpp_err=
22302 fi
22303else
22304 ac_cpp_err=yes
22305fi
22306if test -z "$ac_cpp_err"; then
090089c4 22307 :
22308else
33f5f8b9 22309 echo "$as_me: failed program was:" >&5
ad21602a 22310sed 's/^/| /' conftest.$ac_ext >&5
22311
33f5f8b9 22312 # Broken: fails on valid input.
22313continue
22314fi
22315rm -f conftest.err conftest.$ac_ext
22316
22317 # OK, works on sane cases. Now check whether non-existent headers
22318 # can be detected and how.
22319 cat >conftest.$ac_ext <<_ACEOF
ad21602a 22320/* confdefs.h. */
22321_ACEOF
22322cat confdefs.h >>conftest.$ac_ext
22323cat >>conftest.$ac_ext <<_ACEOF
22324/* end confdefs.h. */
33f5f8b9 22325#include <ac_nonexistent.h>
22326_ACEOF
22327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22329 ac_status=$?
ad21602a 22330 grep -v '^ *+' conftest.er1 >conftest.err
33f5f8b9 22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } >/dev/null; then
22335 if test -s conftest.err; then
22336 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 22337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33f5f8b9 22338 else
22339 ac_cpp_err=
22340 fi
22341else
22342 ac_cpp_err=yes
22343fi
22344if test -z "$ac_cpp_err"; then
22345 # Broken: success on invalid input.
22346continue
b7db09a3 22347else
33f5f8b9 22348 echo "$as_me: failed program was:" >&5
ad21602a 22349sed 's/^/| /' conftest.$ac_ext >&5
22350
33f5f8b9 22351 # Passes both tests.
22352ac_preproc_ok=:
22353break
22354fi
22355rm -f conftest.err conftest.$ac_ext
22356
22357done
22358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22359rm -f conftest.err conftest.$ac_ext
22360if $ac_preproc_ok; then
22361 break
22362fi
22363
22364 done
22365 ac_cv_prog_CPP=$CPP
22366
22367fi
22368 CPP=$ac_cv_prog_CPP
22369else
22370 ac_cv_prog_CPP=$CPP
22371fi
22372echo "$as_me:$LINENO: result: $CPP" >&5
22373echo "${ECHO_T}$CPP" >&6
22374ac_preproc_ok=false
22375for ac_c_preproc_warn_flag in '' yes
22376do
22377 # Use a header file that comes with gcc, so configuring glibc
22378 # with a fresh cross-compiler works.
ad21602a 22379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22380 # <limits.h> exists even on freestanding compilers.
33f5f8b9 22381 # On the NeXT, cc -E runs the code through the compiler's parser,
22382 # not just through cpp. "Syntax error" is here to catch this case.
22383 cat >conftest.$ac_ext <<_ACEOF
ad21602a 22384/* confdefs.h. */
22385_ACEOF
22386cat confdefs.h >>conftest.$ac_ext
22387cat >>conftest.$ac_ext <<_ACEOF
22388/* end confdefs.h. */
22389#ifdef __STDC__
22390# include <limits.h>
22391#else
22392# include <assert.h>
22393#endif
af3004ff 22394 Syntax error
33f5f8b9 22395_ACEOF
22396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2475ee6d 22397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33f5f8b9 22398 ac_status=$?
ad21602a 22399 grep -v '^ *+' conftest.er1 >conftest.err
33f5f8b9 22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } >/dev/null; then
22404 if test -s conftest.err; then
22405 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 22406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33f5f8b9 22407 else
22408 ac_cpp_err=
22409 fi
22410else
22411 ac_cpp_err=yes
22412fi
22413if test -z "$ac_cpp_err"; then
090089c4 22414 :
22415else
33f5f8b9 22416 echo "$as_me: failed program was:" >&5
ad21602a 22417sed 's/^/| /' conftest.$ac_ext >&5
22418
33f5f8b9 22419 # Broken: fails on valid input.
22420continue
b7db09a3 22421fi
33f5f8b9 22422rm -f conftest.err conftest.$ac_ext
22423
22424 # OK, works on sane cases. Now check whether non-existent headers
22425 # can be detected and how.
22426 cat >conftest.$ac_ext <<_ACEOF
ad21602a 22427/* confdefs.h. */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h. */
33f5f8b9 22432#include <ac_nonexistent.h>
22433_ACEOF
22434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22436 ac_status=$?
ad21602a 22437 grep -v '^ *+' conftest.er1 >conftest.err
33f5f8b9 22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } >/dev/null; then
22442 if test -s conftest.err; then
22443 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 22444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33f5f8b9 22445 else
22446 ac_cpp_err=
22447 fi
22448else
22449 ac_cpp_err=yes
090089c4 22450fi
33f5f8b9 22451if test -z "$ac_cpp_err"; then
22452 # Broken: success on invalid input.
22453continue
22454else
22455 echo "$as_me: failed program was:" >&5
ad21602a 22456sed 's/^/| /' conftest.$ac_ext >&5
22457
33f5f8b9 22458 # Passes both tests.
22459ac_preproc_ok=:
22460break
3f961930 22461fi
33f5f8b9 22462rm -f conftest.err conftest.$ac_ext
22463
22464done
22465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22466rm -f conftest.err conftest.$ac_ext
22467if $ac_preproc_ok; then
22468 :
090089c4 22469else
ad21602a 22470 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22471See \`config.log' for more details." >&5
22472echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22473See \`config.log' for more details." >&2;}
33f5f8b9 22474 { (exit 1); exit 1; }; }
090089c4 22475fi
33f5f8b9 22476
22477ac_ext=c
22478ac_cpp='$CPP $CPPFLAGS'
22479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22481ac_compiler_gnu=$ac_cv_c_compiler_gnu
090089c4 22482
090089c4 22483# Find a good install program. We prefer a C program (faster),
22484# so one script is as good as another. But avoid the broken or
22485# incompatible versions:
22486# SysV /etc/install, /usr/sbin/install
22487# SunOS /usr/etc/install
22488# IRIX /sbin/install
22489# AIX /bin/install
33f5f8b9 22490# AmigaOS /C/install, which installs bootblocks on floppy discs
b7db09a3 22491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
090089c4 22492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
22493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
af3004ff 22494# OS/2's system install, which has a completely different semantic
090089c4 22495# ./install, which can be erroneously created by make from ./install.sh.
33f5f8b9 22496echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
22497echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
090089c4 22498if test -z "$INSTALL"; then
33f5f8b9 22499if test "${ac_cv_path_install+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501else
22502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22503for as_dir in $PATH
22504do
22505 IFS=$as_save_IFS
22506 test -z "$as_dir" && as_dir=.
22507 # Account for people who put trailing slashes in PATH elements.
22508case $as_dir/ in
22509 ./ | .// | /cC/* | \
22510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
af3004ff 22511 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
33f5f8b9 22512 /usr/ucb/* ) ;;
22513 *)
22514 # OSF1 and SCO ODT 3.0 have their own names for install.
22515 # Don't use installbsd from OSF since it installs stuff as root
22516 # by default.
22517 for ac_prog in ginstall scoinst install; do
22518 for ac_exec_ext in '' $ac_executable_extensions; do
af3004ff 22519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
22520 if test $ac_prog = install &&
22521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22522 # AIX install. It has an incompatible calling convention.
22523 :
22524 elif test $ac_prog = install &&
22525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22526 # program-specific install script used by HP pwplus--don't use.
22527 :
22528 else
22529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22530 break 3
22531 fi
22532 fi
090089c4 22533 done
33f5f8b9 22534 done
22535 ;;
22536esac
22537done
22538
090089c4 22539
22540fi
22541 if test "${ac_cv_path_install+set}" = set; then
33f5f8b9 22542 INSTALL=$ac_cv_path_install
090089c4 22543 else
22544 # As a last resort, use the slow shell script. We don't cache a
22545 # path for INSTALL within a source directory, because that will
22546 # break other packages using the cache if that directory is
22547 # removed, or if the path is relative.
33f5f8b9 22548 INSTALL=$ac_install_sh
090089c4 22549 fi
22550fi
33f5f8b9 22551echo "$as_me:$LINENO: result: $INSTALL" >&5
22552echo "${ECHO_T}$INSTALL" >&6
090089c4 22553
22554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22555# It thinks the first close brace ends the variable substitution.
22556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22557
33f5f8b9 22558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b7db09a3 22559
090089c4 22560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22561
33f5f8b9 22562echo "$as_me:$LINENO: checking whether ln -s works" >&5
22563echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
22564LN_S=$as_ln_s
22565if test "$LN_S" = "ln -s"; then
22566 echo "$as_me:$LINENO: result: yes" >&5
22567echo "${ECHO_T}yes" >&6
090089c4 22568else
33f5f8b9 22569 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
22570echo "${ECHO_T}no, using $LN_S" >&6
090089c4 22571fi
22572
81280a96 22573# Extract the first word of "sh", so it can be a program name with args.
22574set dummy sh; ac_word=$2
33f5f8b9 22575echo "$as_me:$LINENO: checking for $ac_word" >&5
22576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22577if test "${ac_cv_path_SH+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
81280a96 22579else
33f5f8b9 22580 case $SH in
22581 [\\/]* | ?:[\\/]*)
81280a96 22582 ac_cv_path_SH="$SH" # Let the user override the test with a path.
22583 ;;
22584 *)
33f5f8b9 22585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22586for as_dir in $PATH
22587do
22588 IFS=$as_save_IFS
22589 test -z "$as_dir" && as_dir=.
22590 for ac_exec_ext in '' $ac_executable_extensions; do
22591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22592 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
22593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22594 break 2
22595 fi
22596done
22597done
22598
81280a96 22599 test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
22600 ;;
22601esac
22602fi
33f5f8b9 22603SH=$ac_cv_path_SH
22604
81280a96 22605if test -n "$SH"; then
33f5f8b9 22606 echo "$as_me:$LINENO: result: $SH" >&5
22607echo "${ECHO_T}$SH" >&6
81280a96 22608else
33f5f8b9 22609 echo "$as_me:$LINENO: result: no" >&5
22610echo "${ECHO_T}no" >&6
81280a96 22611fi
22612
d9f67e6f 22613# Extract the first word of "false", so it can be a program name with args.
22614set dummy false; ac_word=$2
33f5f8b9 22615echo "$as_me:$LINENO: checking for $ac_word" >&5
22616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22617if test "${ac_cv_path_FALSE+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
d9f67e6f 22619else
33f5f8b9 22620 case $FALSE in
22621 [\\/]* | ?:[\\/]*)
d9f67e6f 22622 ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
22623 ;;
22624 *)
33f5f8b9 22625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22626for as_dir in $PATH
22627do
22628 IFS=$as_save_IFS
22629 test -z "$as_dir" && as_dir=.
22630 for ac_exec_ext in '' $ac_executable_extensions; do
22631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22632 ac_cv_path_FALSE="$as_dir/$ac_word$ac_exec_ext"
22633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22634 break 2
22635 fi
22636done
22637done
22638
d9f67e6f 22639 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false"
22640 ;;
22641esac
22642fi
33f5f8b9 22643FALSE=$ac_cv_path_FALSE
22644
d9f67e6f 22645if test -n "$FALSE"; then
33f5f8b9 22646 echo "$as_me:$LINENO: result: $FALSE" >&5
22647echo "${ECHO_T}$FALSE" >&6
d9f67e6f 22648else
33f5f8b9 22649 echo "$as_me:$LINENO: result: no" >&5
22650echo "${ECHO_T}no" >&6
d9f67e6f 22651fi
22652
22653# Extract the first word of "true", so it can be a program name with args.
22654set dummy true; ac_word=$2
33f5f8b9 22655echo "$as_me:$LINENO: checking for $ac_word" >&5
22656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22657if test "${ac_cv_path_TRUE+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
d9f67e6f 22659else
33f5f8b9 22660 case $TRUE in
22661 [\\/]* | ?:[\\/]*)
d9f67e6f 22662 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
22663 ;;
22664 *)
33f5f8b9 22665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22666for as_dir in $PATH
22667do
22668 IFS=$as_save_IFS
22669 test -z "$as_dir" && as_dir=.
22670 for ac_exec_ext in '' $ac_executable_extensions; do
22671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22672 ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
22673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22674 break 2
22675 fi
22676done
22677done
22678
d9f67e6f 22679 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true"
22680 ;;
22681esac
22682fi
33f5f8b9 22683TRUE=$ac_cv_path_TRUE
22684
d9f67e6f 22685if test -n "$TRUE"; then
33f5f8b9 22686 echo "$as_me:$LINENO: result: $TRUE" >&5
22687echo "${ECHO_T}$TRUE" >&6
d9f67e6f 22688else
33f5f8b9 22689 echo "$as_me:$LINENO: result: no" >&5
22690echo "${ECHO_T}no" >&6
d9f67e6f 22691fi
22692
090089c4 22693# Extract the first word of "rm", so it can be a program name with args.
22694set dummy rm; ac_word=$2
33f5f8b9 22695echo "$as_me:$LINENO: checking for $ac_word" >&5
22696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22697if test "${ac_cv_path_RM+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 22699else
33f5f8b9 22700 case $RM in
22701 [\\/]* | ?:[\\/]*)
090089c4 22702 ac_cv_path_RM="$RM" # Let the user override the test with a path.
22703 ;;
22704 *)
33f5f8b9 22705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22706for as_dir in $PATH
22707do
22708 IFS=$as_save_IFS
22709 test -z "$as_dir" && as_dir=.
22710 for ac_exec_ext in '' $ac_executable_extensions; do
22711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22712 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
22713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22714 break 2
22715 fi
22716done
22717done
22718
d9f67e6f 22719 test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE"
090089c4 22720 ;;
22721esac
22722fi
33f5f8b9 22723RM=$ac_cv_path_RM
22724
090089c4 22725if test -n "$RM"; then
33f5f8b9 22726 echo "$as_me:$LINENO: result: $RM" >&5
22727echo "${ECHO_T}$RM" >&6
090089c4 22728else
33f5f8b9 22729 echo "$as_me:$LINENO: result: no" >&5
22730echo "${ECHO_T}no" >&6
090089c4 22731fi
22732
22733# Extract the first word of "mv", so it can be a program name with args.
22734set dummy mv; ac_word=$2
33f5f8b9 22735echo "$as_me:$LINENO: checking for $ac_word" >&5
22736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22737if test "${ac_cv_path_MV+set}" = set; then
22738 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 22739else
33f5f8b9 22740 case $MV in
22741 [\\/]* | ?:[\\/]*)
090089c4 22742 ac_cv_path_MV="$MV" # Let the user override the test with a path.
22743 ;;
22744 *)
33f5f8b9 22745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22746for as_dir in $PATH
22747do
22748 IFS=$as_save_IFS
22749 test -z "$as_dir" && as_dir=.
22750 for ac_exec_ext in '' $ac_executable_extensions; do
22751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22752 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
22753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22754 break 2
22755 fi
22756done
22757done
22758
d9f67e6f 22759 test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE"
090089c4 22760 ;;
22761esac
22762fi
33f5f8b9 22763MV=$ac_cv_path_MV
22764
090089c4 22765if test -n "$MV"; then
33f5f8b9 22766 echo "$as_me:$LINENO: result: $MV" >&5
22767echo "${ECHO_T}$MV" >&6
090089c4 22768else
33f5f8b9 22769 echo "$as_me:$LINENO: result: no" >&5
22770echo "${ECHO_T}no" >&6
090089c4 22771fi
22772
22773# Extract the first word of "mkdir", so it can be a program name with args.
22774set dummy mkdir; ac_word=$2
33f5f8b9 22775echo "$as_me:$LINENO: checking for $ac_word" >&5
22776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22777if test "${ac_cv_path_MKDIR+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 22779else
33f5f8b9 22780 case $MKDIR in
22781 [\\/]* | ?:[\\/]*)
090089c4 22782 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22783 ;;
22784 *)
33f5f8b9 22785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22786for as_dir in $PATH
22787do
22788 IFS=$as_save_IFS
22789 test -z "$as_dir" && as_dir=.
22790 for ac_exec_ext in '' $ac_executable_extensions; do
22791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22792 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22794 break 2
22795 fi
22796done
22797done
22798
d9f67e6f 22799 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE"
090089c4 22800 ;;
22801esac
22802fi
33f5f8b9 22803MKDIR=$ac_cv_path_MKDIR
22804
090089c4 22805if test -n "$MKDIR"; then
33f5f8b9 22806 echo "$as_me:$LINENO: result: $MKDIR" >&5
22807echo "${ECHO_T}$MKDIR" >&6
090089c4 22808else
33f5f8b9 22809 echo "$as_me:$LINENO: result: no" >&5
22810echo "${ECHO_T}no" >&6
090089c4 22811fi
22812
22813# Extract the first word of "ln", so it can be a program name with args.
22814set dummy ln; ac_word=$2
33f5f8b9 22815echo "$as_me:$LINENO: checking for $ac_word" >&5
22816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22817if test "${ac_cv_path_LN+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 22819else
33f5f8b9 22820 case $LN in
22821 [\\/]* | ?:[\\/]*)
090089c4 22822 ac_cv_path_LN="$LN" # Let the user override the test with a path.
22823 ;;
22824 *)
33f5f8b9 22825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22826for as_dir in $PATH
22827do
22828 IFS=$as_save_IFS
22829 test -z "$as_dir" && as_dir=.
22830 for ac_exec_ext in '' $ac_executable_extensions; do
22831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22832 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
22833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22834 break 2
22835 fi
22836done
22837done
22838
090089c4 22839 test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp"
22840 ;;
22841esac
22842fi
33f5f8b9 22843LN=$ac_cv_path_LN
22844
090089c4 22845if test -n "$LN"; then
33f5f8b9 22846 echo "$as_me:$LINENO: result: $LN" >&5
22847echo "${ECHO_T}$LN" >&6
090089c4 22848else
33f5f8b9 22849 echo "$as_me:$LINENO: result: no" >&5
22850echo "${ECHO_T}no" >&6
090089c4 22851fi
22852
090089c4 22853# Extract the first word of "perl", so it can be a program name with args.
22854set dummy perl; ac_word=$2
33f5f8b9 22855echo "$as_me:$LINENO: checking for $ac_word" >&5
22856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22857if test "${ac_cv_path_PERL+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 22859else
33f5f8b9 22860 case $PERL in
22861 [\\/]* | ?:[\\/]*)
983061ed 22862 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
090089c4 22863 ;;
22864 *)
33f5f8b9 22865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866for as_dir in $PATH
22867do
22868 IFS=$as_save_IFS
22869 test -z "$as_dir" && as_dir=.
22870 for ac_exec_ext in '' $ac_executable_extensions; do
22871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22874 break 2
22875 fi
22876done
22877done
22878
4e9d8e26 22879 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
090089c4 22880 ;;
22881esac
22882fi
33f5f8b9 22883PERL=$ac_cv_path_PERL
22884
983061ed 22885if test -n "$PERL"; then
33f5f8b9 22886 echo "$as_me:$LINENO: result: $PERL" >&5
22887echo "${ECHO_T}$PERL" >&6
090089c4 22888else
33f5f8b9 22889 echo "$as_me:$LINENO: result: no" >&5
22890echo "${ECHO_T}no" >&6
090089c4 22891fi
22892
6ad85e8a 22893# Extract the first word of "ar", so it can be a program name with args.
22894set dummy ar; ac_word=$2
33f5f8b9 22895echo "$as_me:$LINENO: checking for $ac_word" >&5
22896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22897if test "${ac_cv_path_AR+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
6ad85e8a 22899else
33f5f8b9 22900 case $AR in
22901 [\\/]* | ?:[\\/]*)
6ad85e8a 22902 ac_cv_path_AR="$AR" # Let the user override the test with a path.
22903 ;;
22904 *)
33f5f8b9 22905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22906for as_dir in $PATH
22907do
22908 IFS=$as_save_IFS
22909 test -z "$as_dir" && as_dir=.
22910 for ac_exec_ext in '' $ac_executable_extensions; do
22911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22912 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
22913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22914 break 2
22915 fi
22916done
22917done
22918
6ad85e8a 22919 test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE"
22920 ;;
22921esac
22922fi
33f5f8b9 22923AR=$ac_cv_path_AR
22924
6ad85e8a 22925if test -n "$AR"; then
33f5f8b9 22926 echo "$as_me:$LINENO: result: $AR" >&5
22927echo "${ECHO_T}$AR" >&6
6ad85e8a 22928else
33f5f8b9 22929 echo "$as_me:$LINENO: result: no" >&5
22930echo "${ECHO_T}no" >&6
6ad85e8a 22931fi
22932
22933
4e9d8e26 22934if test "$ac_cv_path_PERL" = "none"; then
22935 echo "Perl is required to compile Squid"
22936 echo "Please install Perl and then re-run configure"
22937 exit 1
22938fi
22939
6ad85e8a 22940case "$host" in
22941 *-hp-hpux*)
22942 echo "Disabling 'ranlib' for HP-UX..."
22943 RANLIB=":"
22944 ;;
22945esac
22946
22947AR_R="$AR r"
22948case "$host" in
22949 *-next-nextstep3)
22950 AR="libtool -o"
22951 ;;
22952esac
090089c4 22953
090089c4 22954
33f5f8b9 22955
22956
22957
22958
22959
090089c4 22960ac_header_dirent=no
33f5f8b9 22961for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22962 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22963echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22964echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22965if eval "test \"\${$as_ac_Header+set}\" = set"; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967else
22968 cat >conftest.$ac_ext <<_ACEOF
ad21602a 22969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
090089c4 22974#include <sys/types.h>
22975#include <$ac_hdr>
33f5f8b9 22976
33f5f8b9 22977int
22978main ()
22979{
22980if ((DIR *) 0)
22981return 0;
22982 ;
22983 return 0;
22984}
22985_ACEOF
22986rm -f conftest.$ac_objext
22987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 22988 (eval $ac_compile) 2>conftest.er1
33f5f8b9 22989 ac_status=$?
af3004ff 22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
33f5f8b9 22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } &&
6263d81f 22995 { ac_try='test -z "$ac_c_werror_flag"
22996 || test ! -s conftest.err'
af3004ff 22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
22999 ac_status=$?
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; } &&
23002 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23005 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 eval "$as_ac_Header=yes"
23009else
23010 echo "$as_me: failed program was:" >&5
ad21602a 23011sed 's/^/| /' conftest.$ac_ext >&5
23012
33f5f8b9 23013eval "$as_ac_Header=no"
23014fi
af3004ff 23015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 23016fi
23017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23019if test `eval echo '${'$as_ac_Header'}'` = yes; then
23020 cat >>confdefs.h <<_ACEOF
23021#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23022_ACEOF
23023
23024ac_header_dirent=$ac_hdr; break
090089c4 23025fi
33f5f8b9 23026
090089c4 23027done
23028# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23029if test $ac_header_dirent = dirent.h; then
33f5f8b9 23030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23031echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23032if test "${ac_cv_search_opendir+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23034else
23035 ac_func_search_save_LIBS=$LIBS
23036ac_cv_search_opendir=no
23037cat >conftest.$ac_ext <<_ACEOF
ad21602a 23038/* confdefs.h. */
23039_ACEOF
23040cat confdefs.h >>conftest.$ac_ext
23041cat >>conftest.$ac_ext <<_ACEOF
23042/* end confdefs.h. */
33f5f8b9 23043
b65c7b0d 23044/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 23045#ifdef __cplusplus
23046extern "C"
23047#endif
b65c7b0d 23048/* We use char because int might match the return type of a gcc2
33f5f8b9 23049 builtin and then its argument prototype would still apply. */
23050char opendir ();
33f5f8b9 23051int
23052main ()
23053{
23054opendir ();
23055 ;
23056 return 0;
23057}
23058_ACEOF
23059rm -f conftest.$ac_objext conftest$ac_exeext
23060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 23061 (eval $ac_link) 2>conftest.er1
33f5f8b9 23062 ac_status=$?
af3004ff 23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
33f5f8b9 23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } &&
6263d81f 23068 { ac_try='test -z "$ac_c_werror_flag"
23069 || test ! -s conftest.err'
af3004ff 23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } &&
23075 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_search_opendir="none required"
23082else
23083 echo "$as_me: failed program was:" >&5
ad21602a 23084sed 's/^/| /' conftest.$ac_ext >&5
23085
33f5f8b9 23086fi
af3004ff 23087rm -f conftest.err conftest.$ac_objext \
23088 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 23089if test "$ac_cv_search_opendir" = no; then
23090 for ac_lib in dir; do
23091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23092 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23093/* confdefs.h. */
23094_ACEOF
23095cat confdefs.h >>conftest.$ac_ext
23096cat >>conftest.$ac_ext <<_ACEOF
23097/* end confdefs.h. */
b65c7b0d 23098
33f5f8b9 23099/* Override any gcc2 internal prototype to avoid an error. */
23100#ifdef __cplusplus
23101extern "C"
23102#endif
23103/* We use char because int might match the return type of a gcc2
23104 builtin and then its argument prototype would still apply. */
23105char opendir ();
33f5f8b9 23106int
23107main ()
23108{
23109opendir ();
23110 ;
23111 return 0;
23112}
23113_ACEOF
23114rm -f conftest.$ac_objext conftest$ac_exeext
23115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 23116 (eval $ac_link) 2>conftest.er1
33f5f8b9 23117 ac_status=$?
af3004ff 23118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
33f5f8b9 23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } &&
6263d81f 23123 { ac_try='test -z "$ac_c_werror_flag"
23124 || test ! -s conftest.err'
af3004ff 23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; } &&
23130 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 ac_cv_search_opendir="-l$ac_lib"
23137break
23138else
23139 echo "$as_me: failed program was:" >&5
ad21602a 23140sed 's/^/| /' conftest.$ac_ext >&5
23141
33f5f8b9 23142fi
af3004ff 23143rm -f conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 23145 done
090089c4 23146fi
33f5f8b9 23147LIBS=$ac_func_search_save_LIBS
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23150echo "${ECHO_T}$ac_cv_search_opendir" >&6
23151if test "$ac_cv_search_opendir" != no; then
23152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23153
3f961930 23154fi
dd0004a0 23155
090089c4 23156else
33f5f8b9 23157 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23158echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23159if test "${ac_cv_search_opendir+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 23161else
33f5f8b9 23162 ac_func_search_save_LIBS=$LIBS
23163ac_cv_search_opendir=no
23164cat >conftest.$ac_ext <<_ACEOF
ad21602a 23165/* confdefs.h. */
23166_ACEOF
23167cat confdefs.h >>conftest.$ac_ext
23168cat >>conftest.$ac_ext <<_ACEOF
23169/* end confdefs.h. */
33f5f8b9 23170
b65c7b0d 23171/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 23172#ifdef __cplusplus
23173extern "C"
23174#endif
b65c7b0d 23175/* We use char because int might match the return type of a gcc2
33f5f8b9 23176 builtin and then its argument prototype would still apply. */
23177char opendir ();
33f5f8b9 23178int
23179main ()
23180{
23181opendir ();
23182 ;
23183 return 0;
23184}
23185_ACEOF
23186rm -f conftest.$ac_objext conftest$ac_exeext
23187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 23188 (eval $ac_link) 2>conftest.er1
33f5f8b9 23189 ac_status=$?
af3004ff 23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
33f5f8b9 23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
6263d81f 23195 { ac_try='test -z "$ac_c_werror_flag"
23196 || test ! -s conftest.err'
af3004ff 23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; } &&
23202 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23205 ac_status=$?
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; }; then
23208 ac_cv_search_opendir="none required"
23209else
23210 echo "$as_me: failed program was:" >&5
ad21602a 23211sed 's/^/| /' conftest.$ac_ext >&5
23212
33f5f8b9 23213fi
af3004ff 23214rm -f conftest.err conftest.$ac_objext \
23215 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 23216if test "$ac_cv_search_opendir" = no; then
23217 for ac_lib in x; do
23218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23219 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23220/* confdefs.h. */
23221_ACEOF
23222cat confdefs.h >>conftest.$ac_ext
23223cat >>conftest.$ac_ext <<_ACEOF
23224/* end confdefs.h. */
b65c7b0d 23225
33f5f8b9 23226/* Override any gcc2 internal prototype to avoid an error. */
23227#ifdef __cplusplus
23228extern "C"
23229#endif
23230/* We use char because int might match the return type of a gcc2
23231 builtin and then its argument prototype would still apply. */
23232char opendir ();
33f5f8b9 23233int
23234main ()
23235{
23236opendir ();
23237 ;
23238 return 0;
23239}
23240_ACEOF
23241rm -f conftest.$ac_objext conftest$ac_exeext
23242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 23243 (eval $ac_link) 2>conftest.er1
33f5f8b9 23244 ac_status=$?
af3004ff 23245 grep -v '^ *+' conftest.er1 >conftest.err
23246 rm -f conftest.er1
23247 cat conftest.err >&5
33f5f8b9 23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } &&
6263d81f 23250 { ac_try='test -z "$ac_c_werror_flag"
23251 || test ! -s conftest.err'
af3004ff 23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; } &&
23257 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; }; then
23263 ac_cv_search_opendir="-l$ac_lib"
23264break
23265else
23266 echo "$as_me: failed program was:" >&5
ad21602a 23267sed 's/^/| /' conftest.$ac_ext >&5
23268
33f5f8b9 23269fi
af3004ff 23270rm -f conftest.err conftest.$ac_objext \
23271 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 23272 done
090089c4 23273fi
33f5f8b9 23274LIBS=$ac_func_search_save_LIBS
23275fi
23276echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23277echo "${ECHO_T}$ac_cv_search_opendir" >&6
23278if test "$ac_cv_search_opendir" != no; then
23279 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23280
090089c4 23281fi
23282
3f961930 23283fi
b65c7b0d 23284
33f5f8b9 23285echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23286echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23287if test "${ac_cv_header_stdc+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 23289else
33f5f8b9 23290 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23291/* confdefs.h. */
23292_ACEOF
23293cat confdefs.h >>conftest.$ac_ext
23294cat >>conftest.$ac_ext <<_ACEOF
23295/* end confdefs.h. */
090089c4 23296#include <stdlib.h>
23297#include <stdarg.h>
23298#include <string.h>
23299#include <float.h>
33f5f8b9 23300
ad21602a 23301int
23302main ()
23303{
23304
23305 ;
23306 return 0;
23307}
33f5f8b9 23308_ACEOF
ad21602a 23309rm -f conftest.$ac_objext
23310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 23311 (eval $ac_compile) 2>conftest.er1
658d5a21 23312 ac_status=$?
af3004ff 23313 grep -v '^ *+' conftest.er1 >conftest.err
23314 rm -f conftest.er1
23315 cat conftest.err >&5
658d5a21 23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad21602a 23317 (exit $ac_status); } &&
6263d81f 23318 { ac_try='test -z "$ac_c_werror_flag"
23319 || test ! -s conftest.err'
af3004ff 23320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; } &&
23325 { ac_try='test -s conftest.$ac_objext'
ad21602a 23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; }; then
090089c4 23331 ac_cv_header_stdc=yes
23332else
33f5f8b9 23333 echo "$as_me: failed program was:" >&5
ad21602a 23334sed 's/^/| /' conftest.$ac_ext >&5
23335
23336ac_cv_header_stdc=no
090089c4 23337fi
af3004ff 23338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
090089c4 23339
23340if test $ac_cv_header_stdc = yes; then
23341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
33f5f8b9 23342 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23343/* confdefs.h. */
23344_ACEOF
23345cat confdefs.h >>conftest.$ac_ext
23346cat >>conftest.$ac_ext <<_ACEOF
23347/* end confdefs.h. */
090089c4 23348#include <string.h>
33f5f8b9 23349
23350_ACEOF
090089c4 23351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad21602a 23352 $EGREP "memchr" >/dev/null 2>&1; then
090089c4 23353 :
23354else
090089c4 23355 ac_cv_header_stdc=no
23356fi
23357rm -f conftest*
23358
23359fi
23360
23361if test $ac_cv_header_stdc = yes; then
23362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
33f5f8b9 23363 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23364/* confdefs.h. */
23365_ACEOF
23366cat confdefs.h >>conftest.$ac_ext
23367cat >>conftest.$ac_ext <<_ACEOF
23368/* end confdefs.h. */
090089c4 23369#include <stdlib.h>
33f5f8b9 23370
23371_ACEOF
090089c4 23372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad21602a 23373 $EGREP "free" >/dev/null 2>&1; then
090089c4 23374 :
23375else
090089c4 23376 ac_cv_header_stdc=no
23377fi
23378rm -f conftest*
23379
23380fi
23381
23382if test $ac_cv_header_stdc = yes; then
23383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
33f5f8b9 23384 if test "$cross_compiling" = yes; then
090089c4 23385 :
23386else
33f5f8b9 23387 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23388/* confdefs.h. */
23389_ACEOF
23390cat confdefs.h >>conftest.$ac_ext
23391cat >>conftest.$ac_ext <<_ACEOF
23392/* end confdefs.h. */
090089c4 23393#include <ctype.h>
33f5f8b9 23394#if ((' ' & 0x0FF) == 0x020)
23395# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23396# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23397#else
ad21602a 23398# define ISLOWER(c) \
af3004ff 23399 (('a' <= (c) && (c) <= 'i') \
23400 || ('j' <= (c) && (c) <= 'r') \
23401 || ('s' <= (c) && (c) <= 'z'))
33f5f8b9 23402# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23403#endif
3f961930 23404
33f5f8b9 23405#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23406int
23407main ()
23408{
23409 int i;
23410 for (i = 0; i < 256; i++)
23411 if (XOR (islower (i), ISLOWER (i))
af3004ff 23412 || toupper (i) != TOUPPER (i))
33f5f8b9 23413 exit(2);
23414 exit (0);
23415}
23416_ACEOF
23417rm -f conftest$ac_exeext
23418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23419 (eval $ac_link) 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
090089c4 23428 :
23429else
33f5f8b9 23430 echo "$as_me: program exited with status $ac_status" >&5
23431echo "$as_me: failed program was:" >&5
ad21602a 23432sed 's/^/| /' conftest.$ac_ext >&5
23433
33f5f8b9 23434( exit $ac_status )
23435ac_cv_header_stdc=no
090089c4 23436fi
af3004ff 23437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b1e77ec1 23438fi
090089c4 23439fi
23440fi
33f5f8b9 23441echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23442echo "${ECHO_T}$ac_cv_header_stdc" >&6
3f961930 23443if test $ac_cv_header_stdc = yes; then
a33e1d91 23444
23445cat >>confdefs.h <<\_ACEOF
23446#define STDC_HEADERS 1
33f5f8b9 23447_ACEOF
23448
23449fi
23450
33f5f8b9 23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
33f5f8b9 23517
23518
23519
f9576890 23520
23521
a54a73b0 23522
02d05ccb 23523
abae1390 23524
1c4c11ab 23525
23526
b6205de8 23527
5bd2db13 23528
9465011f 23529
33f5f8b9 23530
23531
23532for ac_header in \
23533 arpa/inet.h \
23534 arpa/nameser.h \
23535 assert.h \
23536 bstring.h \
23537 crypt.h \
23538 ctype.h \
23539 errno.h \
23540 execinfo.h \
23541 fcntl.h \
02d05ccb 23542 fnmatch.h \
33f5f8b9 23543 getopt.h \
23544 gnumalloc.h \
23545 grp.h \
23546 ip_compat.h \
23547 ip_fil_compat.h \
23548 ip_fil.h \
23549 ip_nat.h \
b6205de8 23550 ipl.h \
33f5f8b9 23551 libc.h \
23552 limits.h \
33f5f8b9 23553 malloc.h \
23554 math.h \
23555 memory.h \
23556 mount.h \
33f5f8b9 23557 net/pfvar.h \
23558 netdb.h \
33f5f8b9 23559 netinet/in.h \
23560 netinet/tcp.h \
33f5f8b9 23561 netinet/ip_fil_compat.h \
33f5f8b9 23562 openssl/err.h \
23563 openssl/md5.h \
23564 openssl/ssl.h \
a54a73b0 23565 openssl/engine.h \
9465011f 23566 paths.h \
33f5f8b9 23567 poll.h \
23568 pwd.h \
5bd2db13 23569 shadow.h \
33f5f8b9 23570 regex.h \
33f5f8b9 23571 sched.h \
23572 signal.h \
23573 stdarg.h \
23574 stddef.h \
30a4f2a8 23575 stdio.h \
db40ae20 23576 stdlib.h \
23577 string.h \
23578 strings.h \
6a771064 23579 sys/bitypes.h \
f9576890 23580 sys/bswap.h \
23581 sys/endian.h \
db40ae20 23582 sys/file.h \
5cafc1d6 23583 sys/ioctl.h \
30a4f2a8 23584 sys/param.h \
abae1390 23585 sys/prctl.h \
77e4c0c9 23586 sys/msg.h \
30a4f2a8 23587 sys/resource.h \
db40ae20 23588 sys/select.h\
30a4f2a8 23589 sys/socket.h \
23590 sys/stat.h \
b075cbb1 23591 sys/statvfs.h \
3c641669 23592 syscall.h \
30a4f2a8 23593 sys/syscall.h \
db40ae20 23594 sys/time.h \
23595 sys/types.h \
30a4f2a8 23596 sys/un.h \
b075cbb1 23597 sys/vfs.h \
30a4f2a8 23598 sys/wait.h \
db40ae20 23599 syslog.h \
30a4f2a8 23600 time.h \
23601 unistd.h \
3c641669 23602 utime.h \
30a4f2a8 23603 varargs.h \
77d6bd88 23604 byteswap.h \
23605 glib.h \
60d096f4 23606 stdint.h \
23607 inttypes.h \
3c641669 23608 grp.h \
23609 nss_common.h \
1c4c11ab 23610 nss.h \
23611 db.h \
23612 db_185.h
db40ae20 23613
090089c4 23614do
33f5f8b9 23615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23616if eval "test \"\${$as_ac_Header+set}\" = set"; then
23617 echo "$as_me:$LINENO: checking for $ac_header" >&5
23618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23619if eval "test \"\${$as_ac_Header+set}\" = set"; then
23620 echo $ECHO_N "(cached) $ECHO_C" >&6
23621fi
23622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23624else
23625 # Is the header compilable?
23626echo "$as_me:$LINENO: checking $ac_header usability" >&5
23627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23628cat >conftest.$ac_ext <<_ACEOF
ad21602a 23629/* confdefs.h. */
23630_ACEOF
23631cat confdefs.h >>conftest.$ac_ext
23632cat >>conftest.$ac_ext <<_ACEOF
23633/* end confdefs.h. */
33f5f8b9 23634$ac_includes_default
23635#include <$ac_header>
23636_ACEOF
23637rm -f conftest.$ac_objext
23638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 23639 (eval $ac_compile) 2>conftest.er1
33f5f8b9 23640 ac_status=$?
af3004ff 23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
33f5f8b9 23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } &&
6263d81f 23646 { ac_try='test -z "$ac_c_werror_flag"
23647 || test ! -s conftest.err'
af3004ff 23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; } &&
23653 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 23654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); }; }; then
23659 ac_header_compiler=yes
23660else
23661 echo "$as_me: failed program was:" >&5
ad21602a 23662sed 's/^/| /' conftest.$ac_ext >&5
23663
33f5f8b9 23664ac_header_compiler=no
23665fi
af3004ff 23666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 23667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23668echo "${ECHO_T}$ac_header_compiler" >&6
23669
23670# Is the header present?
23671echo "$as_me:$LINENO: checking $ac_header presence" >&5
23672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23673cat >conftest.$ac_ext <<_ACEOF
ad21602a 23674/* confdefs.h. */
23675_ACEOF
23676cat confdefs.h >>conftest.$ac_ext
23677cat >>conftest.$ac_ext <<_ACEOF
23678/* end confdefs.h. */
33f5f8b9 23679#include <$ac_header>
23680_ACEOF
23681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23683 ac_status=$?
ad21602a 23684 grep -v '^ *+' conftest.er1 >conftest.err
33f5f8b9 23685 rm -f conftest.er1
23686 cat conftest.err >&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } >/dev/null; then
23689 if test -s conftest.err; then
23690 ac_cpp_err=$ac_c_preproc_warn_flag
af3004ff 23691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33f5f8b9 23692 else
23693 ac_cpp_err=
23694 fi
23695else
23696 ac_cpp_err=yes
23697fi
23698if test -z "$ac_cpp_err"; then
23699 ac_header_preproc=yes
23700else
23701 echo "$as_me: failed program was:" >&5
ad21602a 23702sed 's/^/| /' conftest.$ac_ext >&5
23703
33f5f8b9 23704 ac_header_preproc=no
23705fi
23706rm -f conftest.err conftest.$ac_ext
23707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23708echo "${ECHO_T}$ac_header_preproc" >&6
23709
23710# So? What about this header?
af3004ff 23711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23712 yes:no: )
33f5f8b9 23713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
af3004ff 23715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23717 ac_header_preproc=yes
ad21602a 23718 ;;
af3004ff 23719 no:yes:* )
33f5f8b9 23720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
af3004ff 23722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33f5f8b9 23728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
ad21602a 23729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
af3004ff 23730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad21602a 23732 (
23733 cat <<\_ASBOX
6e4fdb42 23734## ----------------------------------------------- ##
23735## Report this to http://www.squid-cache.org/bugs/ ##
23736## ----------------------------------------------- ##
ad21602a 23737_ASBOX
23738 ) |
23739 sed "s/^/$as_me: WARNING: /" >&2
23740 ;;
33f5f8b9 23741esac
23742echo "$as_me:$LINENO: checking for $ac_header" >&5
23743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23744if eval "test \"\${$as_ac_Header+set}\" = set"; then
23745 echo $ECHO_N "(cached) $ECHO_C" >&6
23746else
af3004ff 23747 eval "$as_ac_Header=\$ac_header_preproc"
aee0606f 23748fi
33f5f8b9 23749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23751
b65c7b0d 23752fi
33f5f8b9 23753if test `eval echo '${'$as_ac_Header'}'` = yes; then
23754 cat >>confdefs.h <<_ACEOF
23755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23756_ACEOF
23757
aee0606f 23758fi
33f5f8b9 23759
23760done
23761
23762
5a3237b0 23763
23764for ac_header in linux/netfilter_ipv4.h
23765do
23766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23767echo "$as_me:$LINENO: checking for $ac_header" >&5
23768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23769if eval "test \"\${$as_ac_Header+set}\" = set"; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23771else
23772 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23773/* confdefs.h. */
23774_ACEOF
23775cat confdefs.h >>conftest.$ac_ext
23776cat >>conftest.$ac_ext <<_ACEOF
23777/* end confdefs.h. */
5a3237b0 23778
23779/* What a mess.. many systems have added the (now standard) bit types
23780 * in their own ways, so we need to scan a wide variety of headers to
23781 * find them..
23782 * IMPORTANT: Keep include/squid_types.h syncronised with this list
23783 */
23784#if HAVE_SYS_TYPES_H
23785#include <sys/types.h>
23786#endif
23787#if STDC_HEADERS
23788#include <stdlib.h>
23789#include <stddef.h>
23790#endif
23791#if HAVE_INTTYPES_H
23792#include <inttypes.h>
23793#endif
23794#if HAVE_SYS_BITYPES_H
23795#include <sys/bitypes.h>
23796#endif
11e71ab8 23797#if HAVE_SYS_SELECT_H
23798#include <sys/select.h>
23799#endif
5a3237b0 23800
23801#if HAVE_LIMITS_H
23802#include <limits.h>
23803#endif
23804
23805
23806#include <$ac_header>
23807_ACEOF
23808rm -f conftest.$ac_objext
23809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 23810 (eval $ac_compile) 2>conftest.er1
5a3237b0 23811 ac_status=$?
af3004ff 23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
5a3237b0 23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } &&
6263d81f 23817 { ac_try='test -z "$ac_c_werror_flag"
23818 || test ! -s conftest.err'
af3004ff 23819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820 (eval $ac_try) 2>&5
23821 ac_status=$?
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); }; } &&
23824 { ac_try='test -s conftest.$ac_objext'
5a3237b0 23825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); }; }; then
23830 eval "$as_ac_Header=yes"
23831else
23832 echo "$as_me: failed program was:" >&5
ad21602a 23833sed 's/^/| /' conftest.$ac_ext >&5
23834
5a3237b0 23835eval "$as_ac_Header=no"
23836fi
af3004ff 23837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5a3237b0 23838fi
23839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23841if test `eval echo '${'$as_ac_Header'}'` = yes; then
23842 cat >>confdefs.h <<_ACEOF
23843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23844_ACEOF
23845
23846fi
23847
23848done
23849
23850
23851
23852
23853
23854
23855
77e4c0c9 23856
23857
b6205de8 23858
5a3237b0 23859for ac_header in net/if.h \
23860 netinet/if_ether.h\
23861 netinet/ip_compat.h\
23862 netinet/ip_fil.h\
77e4c0c9 23863 netinet/ip_nat.h\
b6205de8 23864 netinet/ipl.h \
77e4c0c9 23865 sys/mount.h\
23866 resolv.h
5a3237b0 23867do
23868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23869echo "$as_me:$LINENO: checking for $ac_header" >&5
23870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23871if eval "test \"\${$as_ac_Header+set}\" = set"; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873else
23874 cat >conftest.$ac_ext <<_ACEOF
ad21602a 23875/* confdefs.h. */
23876_ACEOF
23877cat confdefs.h >>conftest.$ac_ext
23878cat >>conftest.$ac_ext <<_ACEOF
23879/* end confdefs.h. */
5a3237b0 23880
23881
23882/* What a mess.. many systems have added the (now standard) bit types
23883 * in their own ways, so we need to scan a wide variety of headers to
23884 * find them..
23885 * IMPORTANT: Keep include/squid_types.h syncronised with this list
23886 */
23887#if HAVE_SYS_TYPES_H
23888#include <sys/types.h>
23889#endif
23890#if STDC_HEADERS
23891#include <stdlib.h>
23892#include <stddef.h>
23893#endif
23894#if HAVE_INTTYPES_H
23895#include <inttypes.h>
23896#endif
23897#if HAVE_SYS_BITYPES_H
23898#include <sys/bitypes.h>
23899#endif
11e71ab8 23900#if HAVE_SYS_SELECT_H
23901#include <sys/select.h>
23902#endif
5a3237b0 23903
621dffc6 23904#if HAVE_SYS_TIME_H
23905#include <sys/time.h>
23906#endif
5a3237b0 23907#if HAVE_SYS_SOCKET_H
23908#include <sys/socket.h>
23909#endif
23910#if HAVE_NETINET_IN_H
23911#include <netinet/in.h>
23912#endif
23913#if HAVE_NETINET_IP_COMPAT_H
23914#include <netinet/ip_compat.h>
23915#endif
5a3237b0 23916#if HAVE_NET_IF_H
23917#include <net/if.h>
23918#endif
621dffc6 23919#if HAVE_NETINET_IP_FIL_H
23920#include <netinet/ip_fil.h>
23921#endif
77e4c0c9 23922#if HAVE_SYS_PARAM_H
23923#include <sys/param.h>
23924#endif
5a3237b0 23925
23926
23927#include <$ac_header>
23928_ACEOF
23929rm -f conftest.$ac_objext
23930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 23931 (eval $ac_compile) 2>conftest.er1
5a3237b0 23932 ac_status=$?
af3004ff 23933 grep -v '^ *+' conftest.er1 >conftest.err
23934 rm -f conftest.er1
23935 cat conftest.err >&5
5a3237b0 23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } &&
6263d81f 23938 { ac_try='test -z "$ac_c_werror_flag"
23939 || test ! -s conftest.err'
af3004ff 23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; } &&
23945 { ac_try='test -s conftest.$ac_objext'
5a3237b0 23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; }; then
23951 eval "$as_ac_Header=yes"
23952else
23953 echo "$as_me: failed program was:" >&5
ad21602a 23954sed 's/^/| /' conftest.$ac_ext >&5
23955
5a3237b0 23956eval "$as_ac_Header=no"
23957fi
af3004ff 23958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
332dafa2 23959fi
23960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23962if test `eval echo '${'$as_ac_Header'}'` = yes; then
23963 cat >>confdefs.h <<_ACEOF
23964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23965_ACEOF
4016808a 23966
23967fi
6693af0d 23968
23969done
23970
23971
286bd1fc 23972
23973for ac_header in libxml/parser.h
23974do
23975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23976if eval "test \"\${$as_ac_Header+set}\" = set"; then
23977 echo "$as_me:$LINENO: checking for $ac_header" >&5
23978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23979if eval "test \"\${$as_ac_Header+set}\" = set"; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23981fi
23982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23984else
23985 # Is the header compilable?
23986echo "$as_me:$LINENO: checking $ac_header usability" >&5
23987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23988cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h. */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h. */
23994$ac_includes_default
23995#include <$ac_header>
23996_ACEOF
23997rm -f conftest.$ac_objext
23998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
6263d81f 24006 { ac_try='test -z "$ac_c_werror_flag"
24007 || test ! -s conftest.err'
286bd1fc 24008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; } &&
24013 { ac_try='test -s conftest.$ac_objext'
24014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); }; }; then
24019 ac_header_compiler=yes
24020else
24021 echo "$as_me: failed program was:" >&5
24022sed 's/^/| /' conftest.$ac_ext >&5
24023
24024ac_header_compiler=no
24025fi
24026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24028echo "${ECHO_T}$ac_header_compiler" >&6
24029
24030# Is the header present?
24031echo "$as_me:$LINENO: checking $ac_header presence" >&5
24032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24033cat >conftest.$ac_ext <<_ACEOF
24034/* confdefs.h. */
24035_ACEOF
24036cat confdefs.h >>conftest.$ac_ext
24037cat >>conftest.$ac_ext <<_ACEOF
24038/* end confdefs.h. */
24039#include <$ac_header>
24040_ACEOF
24041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } >/dev/null; then
24049 if test -s conftest.err; then
24050 ac_cpp_err=$ac_c_preproc_warn_flag
24051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24052 else
24053 ac_cpp_err=
24054 fi
24055else
24056 ac_cpp_err=yes
24057fi
24058if test -z "$ac_cpp_err"; then
24059 ac_header_preproc=yes
24060else
24061 echo "$as_me: failed program was:" >&5
24062sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ac_header_preproc=no
24065fi
24066rm -f conftest.err conftest.$ac_ext
24067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24068echo "${ECHO_T}$ac_header_preproc" >&6
24069
24070# So? What about this header?
24071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24072 yes:no: )
24073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24077 ac_header_preproc=yes
24078 ;;
24079 no:yes:* )
24080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24092 (
24093 cat <<\_ASBOX
6e4fdb42 24094## ----------------------------------------------- ##
24095## Report this to http://www.squid-cache.org/bugs/ ##
24096## ----------------------------------------------- ##
286bd1fc 24097_ASBOX
24098 ) |
24099 sed "s/^/$as_me: WARNING: /" >&2
24100 ;;
24101esac
24102echo "$as_me:$LINENO: checking for $ac_header" >&5
24103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24104if eval "test \"\${$as_ac_Header+set}\" = set"; then
24105 echo $ECHO_N "(cached) $ECHO_C" >&6
24106else
24107 eval "$as_ac_Header=\$ac_header_preproc"
24108fi
24109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24111
24112fi
24113if test `eval echo '${'$as_ac_Header'}'` = yes; then
24114 cat >>confdefs.h <<_ACEOF
24115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24116_ACEOF
24117
24118else
24119
24120 SAVED_CPPFLAGS="$CPPFLAGS"
24121 CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS"
24122 unset ac_cv_header_libxml_parser_h
24123
24124for ac_header in libxml/parser.h
24125do
24126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24127if eval "test \"\${$as_ac_Header+set}\" = set"; then
24128 echo "$as_me:$LINENO: checking for $ac_header" >&5
24129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24130if eval "test \"\${$as_ac_Header+set}\" = set"; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24132fi
24133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24135else
24136 # Is the header compilable?
24137echo "$as_me:$LINENO: checking $ac_header usability" >&5
24138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24139cat >conftest.$ac_ext <<_ACEOF
24140/* confdefs.h. */
24141_ACEOF
24142cat confdefs.h >>conftest.$ac_ext
24143cat >>conftest.$ac_ext <<_ACEOF
24144/* end confdefs.h. */
24145$ac_includes_default
24146#include <$ac_header>
24147_ACEOF
24148rm -f conftest.$ac_objext
24149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150 (eval $ac_compile) 2>conftest.er1
24151 ac_status=$?
24152 grep -v '^ *+' conftest.er1 >conftest.err
24153 rm -f conftest.er1
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } &&
6263d81f 24157 { ac_try='test -z "$ac_c_werror_flag"
24158 || test ! -s conftest.err'
286bd1fc 24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24161 ac_status=$?
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; } &&
24164 { ac_try='test -s conftest.$ac_objext'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_header_compiler=yes
24171else
24172 echo "$as_me: failed program was:" >&5
24173sed 's/^/| /' conftest.$ac_ext >&5
24174
24175ac_header_compiler=no
24176fi
24177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24179echo "${ECHO_T}$ac_header_compiler" >&6
24180
24181# Is the header present?
24182echo "$as_me:$LINENO: checking $ac_header presence" >&5
24183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24184cat >conftest.$ac_ext <<_ACEOF
24185/* confdefs.h. */
24186_ACEOF
24187cat confdefs.h >>conftest.$ac_ext
24188cat >>conftest.$ac_ext <<_ACEOF
24189/* end confdefs.h. */
24190#include <$ac_header>
24191_ACEOF
24192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24194 ac_status=$?
24195 grep -v '^ *+' conftest.er1 >conftest.err
24196 rm -f conftest.er1
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } >/dev/null; then
24200 if test -s conftest.err; then
24201 ac_cpp_err=$ac_c_preproc_warn_flag
24202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24203 else
24204 ac_cpp_err=
24205 fi
24206else
24207 ac_cpp_err=yes
24208fi
24209if test -z "$ac_cpp_err"; then
24210 ac_header_preproc=yes
24211else
24212 echo "$as_me: failed program was:" >&5
24213sed 's/^/| /' conftest.$ac_ext >&5
24214
24215 ac_header_preproc=no
24216fi
24217rm -f conftest.err conftest.$ac_ext
24218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24219echo "${ECHO_T}$ac_header_preproc" >&6
24220
24221# So? What about this header?
24222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24223 yes:no: )
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24228 ac_header_preproc=yes
24229 ;;
24230 no:yes:* )
24231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24243 (
24244 cat <<\_ASBOX
6e4fdb42 24245## ----------------------------------------------- ##
24246## Report this to http://www.squid-cache.org/bugs/ ##
24247## ----------------------------------------------- ##
286bd1fc 24248_ASBOX
24249 ) |
24250 sed "s/^/$as_me: WARNING: /" >&2
24251 ;;
24252esac
24253echo "$as_me:$LINENO: checking for $ac_header" >&5
24254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24255if eval "test \"\${$as_ac_Header+set}\" = set"; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24257else
24258 eval "$as_ac_Header=\$ac_header_preproc"
24259fi
24260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24262
24263fi
24264if test `eval echo '${'$as_ac_Header'}'` = yes; then
24265 cat >>confdefs.h <<_ACEOF
24266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24267_ACEOF
24268
24269else
24270
24271 CPPFLAGS="$SAVED_CPPFLAGS"
24272
24273fi
24274
24275done
24276
24277
24278fi
24279
24280done
24281
24282
33f5f8b9 24283echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24284echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24285if test "${ac_cv_c_const+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24287else
24288 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24289/* confdefs.h. */
24290_ACEOF
24291cat confdefs.h >>conftest.$ac_ext
24292cat >>conftest.$ac_ext <<_ACEOF
24293/* end confdefs.h. */
aee0606f 24294
33f5f8b9 24295int
24296main ()
24297{
24298/* FIXME: Include the comments suggested by Paul. */
24299#ifndef __cplusplus
24300 /* Ultrix mips cc rejects this. */
24301 typedef int charset[2];
24302 const charset x;
24303 /* SunOS 4.1.1 cc rejects this. */
24304 char const *const *ccp;
24305 char **p;
24306 /* NEC SVR4.0.2 mips cc rejects this. */
24307 struct point {int x, y;};
24308 static struct point const zero = {0,0};
24309 /* AIX XL C 1.02.0.0 rejects this.
24310 It does not let you subtract one const X* pointer from another in
24311 an arm of an if-expression whose if-part is not a constant
24312 expression */
24313 const char *g = "string";
24314 ccp = &g + (g ? g-g : 0);
24315 /* HPUX 7.0 cc rejects these. */
24316 ++ccp;
24317 p = (char**) ccp;
24318 ccp = (char const *const *) p;
24319 { /* SCO 3.2v4 cc rejects this. */
24320 char *t;
24321 char const *s = 0 ? (char *) 0 : (char const *) 0;
24322
24323 *t++ = 0;
24324 }
24325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24326 int x[] = {25, 17};
24327 const int *foo = &x[0];
24328 ++foo;
24329 }
24330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24331 typedef const int *iptr;
24332 iptr p = 0;
24333 ++p;
24334 }
24335 { /* AIX XL C 1.02.0.0 rejects this saying
24336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24337 struct s { int j; const int *ap[3]; };
24338 struct s *b; b->j = 5;
24339 }
24340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24341 const int foo = 10;
24342 }
24343#endif
b65c7b0d 24344
33f5f8b9 24345 ;
24346 return 0;
24347}
24348_ACEOF
24349rm -f conftest.$ac_objext
24350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24351 (eval $ac_compile) 2>conftest.er1
33f5f8b9 24352 ac_status=$?
af3004ff 24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
33f5f8b9 24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
6263d81f 24358 { ac_try='test -z "$ac_c_werror_flag"
24359 || test ! -s conftest.err'
af3004ff 24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
b65c7b0d 24371 ac_cv_c_const=yes
24372else
33f5f8b9 24373 echo "$as_me: failed program was:" >&5
ad21602a 24374sed 's/^/| /' conftest.$ac_ext >&5
24375
33f5f8b9 24376ac_cv_c_const=no
b65c7b0d 24377fi
af3004ff 24378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b65c7b0d 24379fi
33f5f8b9 24380echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24381echo "${ECHO_T}$ac_cv_c_const" >&6
3f961930 24382if test $ac_cv_c_const = no; then
33f5f8b9 24383
24384cat >>confdefs.h <<\_ACEOF
24385#define const
24386_ACEOF
aee0606f 24387
24388fi
24389
33f5f8b9 24390echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24391echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
24392if test "${ac_cv_c_bigendian+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
cbc2450f 24394else
33f5f8b9 24395 # See if sys/param.h defines the BYTE_ORDER macro.
24396cat >conftest.$ac_ext <<_ACEOF
ad21602a 24397/* confdefs.h. */
24398_ACEOF
24399cat confdefs.h >>conftest.$ac_ext
24400cat >>conftest.$ac_ext <<_ACEOF
24401/* end confdefs.h. */
cbc2450f 24402#include <sys/types.h>
24403#include <sys/param.h>
cbc2450f 24404
33f5f8b9 24405int
24406main ()
24407{
cbc2450f 24408#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24409 bogus endian macros
24410#endif
33f5f8b9 24411
24412 ;
24413 return 0;
24414}
24415_ACEOF
24416rm -f conftest.$ac_objext
24417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24418 (eval $ac_compile) 2>conftest.er1
33f5f8b9 24419 ac_status=$?
af3004ff 24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
33f5f8b9 24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
6263d81f 24425 { ac_try='test -z "$ac_c_werror_flag"
24426 || test ! -s conftest.err'
af3004ff 24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; } &&
24432 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; }; then
cbc2450f 24438 # It does; now see whether it defined to BIG_ENDIAN or not.
33f5f8b9 24439cat >conftest.$ac_ext <<_ACEOF
ad21602a 24440/* confdefs.h. */
24441_ACEOF
24442cat confdefs.h >>conftest.$ac_ext
24443cat >>conftest.$ac_ext <<_ACEOF
24444/* end confdefs.h. */
cbc2450f 24445#include <sys/types.h>
24446#include <sys/param.h>
cbc2450f 24447
33f5f8b9 24448int
24449main ()
24450{
cbc2450f 24451#if BYTE_ORDER != BIG_ENDIAN
24452 not big endian
24453#endif
33f5f8b9 24454
24455 ;
24456 return 0;
24457}
24458_ACEOF
24459rm -f conftest.$ac_objext
24460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24461 (eval $ac_compile) 2>conftest.er1
33f5f8b9 24462 ac_status=$?
af3004ff 24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
33f5f8b9 24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } &&
6263d81f 24468 { ac_try='test -z "$ac_c_werror_flag"
24469 || test ! -s conftest.err'
af3004ff 24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; } &&
24475 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; }; then
cbc2450f 24481 ac_cv_c_bigendian=yes
24482else
33f5f8b9 24483 echo "$as_me: failed program was:" >&5
ad21602a 24484sed 's/^/| /' conftest.$ac_ext >&5
24485
33f5f8b9 24486ac_cv_c_bigendian=no
b65c7b0d 24487fi
af3004ff 24488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b65c7b0d 24489else
33f5f8b9 24490 echo "$as_me: failed program was:" >&5
ad21602a 24491sed 's/^/| /' conftest.$ac_ext >&5
24492
33f5f8b9 24493# It does not; compile a test program.
3f961930 24494if test "$cross_compiling" = yes; then
ad21602a 24495 # try to guess the endianness by grepping values into an object file
33f5f8b9 24496 ac_cv_c_bigendian=unknown
24497 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24498/* confdefs.h. */
24499_ACEOF
24500cat confdefs.h >>conftest.$ac_ext
24501cat >>conftest.$ac_ext <<_ACEOF
24502/* end confdefs.h. */
33f5f8b9 24503short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24504short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24505void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24506short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24507short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24508void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33f5f8b9 24509int
24510main ()
24511{
24512 _ascii (); _ebcdic ();
24513 ;
24514 return 0;
24515}
24516_ACEOF
24517rm -f conftest.$ac_objext
24518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24519 (eval $ac_compile) 2>conftest.er1
33f5f8b9 24520 ac_status=$?
af3004ff 24521 grep -v '^ *+' conftest.er1 >conftest.err
24522 rm -f conftest.er1
24523 cat conftest.err >&5
33f5f8b9 24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } &&
6263d81f 24526 { ac_try='test -z "$ac_c_werror_flag"
24527 || test ! -s conftest.err'
af3004ff 24528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; } &&
24533 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24536 ac_status=$?
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; }; then
ad21602a 24539 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33f5f8b9 24540 ac_cv_c_bigendian=yes
24541fi
ad21602a 24542if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33f5f8b9 24543 if test "$ac_cv_c_bigendian" = unknown; then
24544 ac_cv_c_bigendian=no
24545 else
24546 # finding both strings is unlikely to happen, but who knows?
24547 ac_cv_c_bigendian=unknown
24548 fi
24549fi
24550else
24551 echo "$as_me: failed program was:" >&5
ad21602a 24552sed 's/^/| /' conftest.$ac_ext >&5
24553
33f5f8b9 24554fi
af3004ff 24555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cbc2450f 24556else
33f5f8b9 24557 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24558/* confdefs.h. */
24559_ACEOF
24560cat confdefs.h >>conftest.$ac_ext
24561cat >>conftest.$ac_ext <<_ACEOF
24562/* end confdefs.h. */
33f5f8b9 24563int
24564main ()
24565{
cbc2450f 24566 /* Are we little or big endian? From Harbison&Steele. */
24567 union
24568 {
24569 long l;
24570 char c[sizeof (long)];
24571 } u;
24572 u.l = 1;
24573 exit (u.c[sizeof (long) - 1] == 1);
24574}
33f5f8b9 24575_ACEOF
24576rm -f conftest$ac_exeext
24577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24578 (eval $ac_link) 2>&5
24579 ac_status=$?
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
cbc2450f 24587 ac_cv_c_bigendian=no
24588else
33f5f8b9 24589 echo "$as_me: program exited with status $ac_status" >&5
24590echo "$as_me: failed program was:" >&5
ad21602a 24591sed 's/^/| /' conftest.$ac_ext >&5
24592
33f5f8b9 24593( exit $ac_status )
24594ac_cv_c_bigendian=yes
cbc2450f 24595fi
af3004ff 24596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cbc2450f 24597fi
cbc2450f 24598fi
af3004ff 24599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cbc2450f 24600fi
33f5f8b9 24601echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24602echo "${ECHO_T}$ac_cv_c_bigendian" >&6
24603case $ac_cv_c_bigendian in
24604 yes)
cbc2450f 24605
33f5f8b9 24606cat >>confdefs.h <<\_ACEOF
cbc2450f 24607#define WORDS_BIGENDIAN 1
33f5f8b9 24608_ACEOF
24609 ;;
24610 no)
24611 ;;
24612 *)
ad21602a 24613 { { echo "$as_me:$LINENO: error: unknown endianness
33f5f8b9 24614presetting ac_cv_c_bigendian=no (or yes) will help" >&5
ad21602a 24615echo "$as_me: error: unknown endianness
33f5f8b9 24616presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24617 { (exit 1); exit 1; }; } ;;
24618esac
cbc2450f 24619
aee0606f 24620
33f5f8b9 24621echo "$as_me:$LINENO: checking if ANSI prototypes work" >&5
24622echo $ECHO_N "checking if ANSI prototypes work... $ECHO_C" >&6
24623if test "${ac_cv_have_ansi_prototypes+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
5c51415d 24625else
33f5f8b9 24626
24627 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24628/* confdefs.h. */
24629_ACEOF
24630cat confdefs.h >>conftest.$ac_ext
24631cat >>conftest.$ac_ext <<_ACEOF
24632/* end confdefs.h. */
8cca06da 24633int foo(char *); int foo (char *bar) {return 1;}
33f5f8b9 24634int
24635main ()
24636{
8cca06da 24637foo("bar")
33f5f8b9 24638 ;
24639 return 0;
24640}
24641_ACEOF
24642rm -f conftest.$ac_objext
24643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24644 (eval $ac_compile) 2>conftest.er1
33f5f8b9 24645 ac_status=$?
af3004ff 24646 grep -v '^ *+' conftest.er1 >conftest.err
24647 rm -f conftest.er1
24648 cat conftest.err >&5
33f5f8b9 24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } &&
6263d81f 24651 { ac_try='test -z "$ac_c_werror_flag"
24652 || test ! -s conftest.err'
af3004ff 24653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; } &&
24658 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 24659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; }; then
5c51415d 24664 ac_cv_have_ansi_prototypes="yes"
20a50bb9 24665else
33f5f8b9 24666 echo "$as_me: failed program was:" >&5
ad21602a 24667sed 's/^/| /' conftest.$ac_ext >&5
24668
33f5f8b9 24669ac_cv_have_ansi_prototypes="no"
20a50bb9 24670fi
af3004ff 24671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20a50bb9 24672
5c51415d 24673fi
33f5f8b9 24674echo "$as_me:$LINENO: result: $ac_cv_have_ansi_prototypes" >&5
24675echo "${ECHO_T}$ac_cv_have_ansi_prototypes" >&6
5c51415d 24676if test $ac_cv_have_ansi_prototypes = "yes" ; then
33f5f8b9 24677
24678cat >>confdefs.h <<\_ACEOF
5c51415d 24679#define HAVE_ANSI_PROTOTYPES 1
33f5f8b9 24680_ACEOF
5c51415d 24681
24682fi
24683
33f5f8b9 24684echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24685echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24686if test "${ac_cv_struct_tm+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
5c51415d 24688else
33f5f8b9 24689 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24690/* confdefs.h. */
24691_ACEOF
24692cat confdefs.h >>conftest.$ac_ext
24693cat >>conftest.$ac_ext <<_ACEOF
24694/* end confdefs.h. */
33f5f8b9 24695#include <sys/types.h>
46c883ed 24696#include <time.h>
46c883ed 24697
33f5f8b9 24698int
24699main ()
24700{
24701struct tm *tp; tp->tm_sec;
24702 ;
24703 return 0;
24704}
24705_ACEOF
24706rm -f conftest.$ac_objext
24707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24708 (eval $ac_compile) 2>conftest.er1
33f5f8b9 24709 ac_status=$?
af3004ff 24710 grep -v '^ *+' conftest.er1 >conftest.err
24711 rm -f conftest.er1
24712 cat conftest.err >&5
33f5f8b9 24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } &&
6263d81f 24715 { ac_try='test -z "$ac_c_werror_flag"
24716 || test ! -s conftest.err'
af3004ff 24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; } &&
24722 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 ac_cv_struct_tm=time.h
24729else
24730 echo "$as_me: failed program was:" >&5
ad21602a 24731sed 's/^/| /' conftest.$ac_ext >&5
24732
33f5f8b9 24733ac_cv_struct_tm=sys/time.h
24734fi
af3004ff 24735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 24736fi
24737echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24738echo "${ECHO_T}$ac_cv_struct_tm" >&6
24739if test $ac_cv_struct_tm = sys/time.h; then
24740
24741cat >>confdefs.h <<\_ACEOF
24742#define TM_IN_SYS_TIME 1
24743_ACEOF
24744
24745fi
24746
24747echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
24748echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
24749if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24751else
24752 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24753/* confdefs.h. */
24754_ACEOF
24755cat confdefs.h >>conftest.$ac_ext
24756cat >>conftest.$ac_ext <<_ACEOF
24757/* end confdefs.h. */
33f5f8b9 24758
24759#if TM_IN_SYS_TIME
24760#if HAVE_SYS_TIME_H
24761#include <sys/time.h>
24762#endif
24763#elif HAVE_TIME_H
24764#include <time.h>
24765#endif
24766
24767
658d5a21 24768int
24769main ()
24770{
24771static struct tm ac_aggr;
8b036616 24772if (ac_aggr.tm_gmtoff)
658d5a21 24773return 0;
24774 ;
24775 return 0;
24776}
24777_ACEOF
24778rm -f conftest.$ac_objext
24779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24780 (eval $ac_compile) 2>conftest.er1
658d5a21 24781 ac_status=$?
af3004ff 24782 grep -v '^ *+' conftest.er1 >conftest.err
24783 rm -f conftest.er1
24784 cat conftest.err >&5
658d5a21 24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } &&
6263d81f 24787 { ac_try='test -z "$ac_c_werror_flag"
24788 || test ! -s conftest.err'
af3004ff 24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; } &&
24794 { ac_try='test -s conftest.$ac_objext'
658d5a21 24795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; }; then
24800 ac_cv_member_struct_tm_tm_gmtoff=yes
24801else
24802 echo "$as_me: failed program was:" >&5
ad21602a 24803sed 's/^/| /' conftest.$ac_ext >&5
3f961930 24804
ad21602a 24805cat >conftest.$ac_ext <<_ACEOF
ad21602a 24806/* confdefs.h. */
24807_ACEOF
24808cat confdefs.h >>conftest.$ac_ext
24809cat >>conftest.$ac_ext <<_ACEOF
24810/* end confdefs.h. */
33f5f8b9 24811
ad21602a 24812#if TM_IN_SYS_TIME
24813#if HAVE_SYS_TIME_H
24814#include <sys/time.h>
33f5f8b9 24815#endif
ad21602a 24816#elif HAVE_TIME_H
24817#include <time.h>
24818#endif
24819
24820
24821int
24822main ()
24823{
24824static struct tm ac_aggr;
24825if (sizeof ac_aggr.tm_gmtoff)
24826return 0;
24827 ;
24828 return 0;
24829}
24830_ACEOF
24831rm -f conftest.$ac_objext
24832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24833 (eval $ac_compile) 2>conftest.er1
ad21602a 24834 ac_status=$?
af3004ff 24835 grep -v '^ *+' conftest.er1 >conftest.err
24836 rm -f conftest.er1
24837 cat conftest.err >&5
ad21602a 24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } &&
6263d81f 24840 { ac_try='test -z "$ac_c_werror_flag"
24841 || test ! -s conftest.err'
af3004ff 24842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843 (eval $ac_try) 2>&5
24844 ac_status=$?
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; } &&
24847 { ac_try='test -s conftest.$ac_objext'
ad21602a 24848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); }; }; then
24853 ac_cv_member_struct_tm_tm_gmtoff=yes
24854else
24855 echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858ac_cv_member_struct_tm_tm_gmtoff=no
24859fi
af3004ff 24860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad21602a 24861fi
af3004ff 24862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad21602a 24863fi
24864echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
24865echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
24866if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
24867
24868cat >>confdefs.h <<_ACEOF
24869#define HAVE_STRUCT_TM_TM_GMTOFF 1
24870_ACEOF
24871
24872
24873fi
24874
24875
24876echo "$as_me:$LINENO: checking for struct mallinfo" >&5
24877echo $ECHO_N "checking for struct mallinfo... $ECHO_C" >&6
24878if test "${ac_cv_type_struct_mallinfo+set}" = set; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24880else
24881 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24882/* confdefs.h. */
24883_ACEOF
24884cat confdefs.h >>conftest.$ac_ext
24885cat >>conftest.$ac_ext <<_ACEOF
24886/* end confdefs.h. */
24887
24888#if HAVE_SYS_TYPES_H
24889#include <sys/types.h>
24890#endif
24891#if HAVE_MALLOC_H
24892#include <malloc.h>
eb824054 24893#endif
3f961930 24894
33f5f8b9 24895int
24896main ()
24897{
24898if ((struct mallinfo *) 0)
24899 return 0;
24900if (sizeof (struct mallinfo))
0eb0a2df 24901 return 0;
b67e2c8c 24902 ;
24903 return 0;
24904}
24905_ACEOF
24906rm -f conftest.$ac_objext
24907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24908 (eval $ac_compile) 2>conftest.er1
b67e2c8c 24909 ac_status=$?
af3004ff 24910 grep -v '^ *+' conftest.er1 >conftest.err
24911 rm -f conftest.er1
24912 cat conftest.err >&5
b67e2c8c 24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } &&
6263d81f 24915 { ac_try='test -z "$ac_c_werror_flag"
24916 || test ! -s conftest.err'
af3004ff 24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; } &&
24922 { ac_try='test -s conftest.$ac_objext'
b67e2c8c 24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; }; then
0eb0a2df 24928 ac_cv_type_struct_mallinfo=yes
b67e2c8c 24929else
24930 echo "$as_me: failed program was:" >&5
ad21602a 24931sed 's/^/| /' conftest.$ac_ext >&5
24932
0eb0a2df 24933ac_cv_type_struct_mallinfo=no
24934fi
af3004ff 24935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0eb0a2df 24936fi
24937echo "$as_me:$LINENO: result: $ac_cv_type_struct_mallinfo" >&5
24938echo "${ECHO_T}$ac_cv_type_struct_mallinfo" >&6
24939if test $ac_cv_type_struct_mallinfo = yes; then
33f5f8b9 24940
0eb0a2df 24941cat >>confdefs.h <<\_ACEOF
24942#define HAVE_STRUCT_MALLINFO 1
b67e2c8c 24943_ACEOF
0eb0a2df 24944
24945fi
24946
24947
24948echo "$as_me:$LINENO: checking for struct mallinfo.mxfast" >&5
24949echo $ECHO_N "checking for struct mallinfo.mxfast... $ECHO_C" >&6
24950if test "${ac_cv_member_struct_mallinfo_mxfast+set}" = set; then
24951 echo $ECHO_N "(cached) $ECHO_C" >&6
24952else
24953 cat >conftest.$ac_ext <<_ACEOF
ad21602a 24954/* confdefs.h. */
24955_ACEOF
24956cat confdefs.h >>conftest.$ac_ext
24957cat >>conftest.$ac_ext <<_ACEOF
24958/* end confdefs.h. */
33f5f8b9 24959
24960#if HAVE_SYS_TYPES_H
46c883ed 24961#include <sys/types.h>
33f5f8b9 24962#endif
24963#if HAVE_MALLOC_H
090089c4 24964#include <malloc.h>
33f5f8b9 24965#endif
090089c4 24966
658d5a21 24967int
24968main ()
24969{
24970static struct mallinfo ac_aggr;
8b036616 24971if (ac_aggr.mxfast)
658d5a21 24972return 0;
24973 ;
24974 return 0;
24975}
24976_ACEOF
24977rm -f conftest.$ac_objext
24978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 24979 (eval $ac_compile) 2>conftest.er1
658d5a21 24980 ac_status=$?
af3004ff 24981 grep -v '^ *+' conftest.er1 >conftest.err
24982 rm -f conftest.er1
24983 cat conftest.err >&5
658d5a21 24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } &&
6263d81f 24986 { ac_try='test -z "$ac_c_werror_flag"
24987 || test ! -s conftest.err'
af3004ff 24988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989 (eval $ac_try) 2>&5
24990 ac_status=$?
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); }; } &&
24993 { ac_try='test -s conftest.$ac_objext'
658d5a21 24994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24995 (eval $ac_try) 2>&5
24996 ac_status=$?
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); }; }; then
24999 ac_cv_member_struct_mallinfo_mxfast=yes
25000else
25001 echo "$as_me: failed program was:" >&5
ad21602a 25002sed 's/^/| /' conftest.$ac_ext >&5
25003
25004cat >conftest.$ac_ext <<_ACEOF
ad21602a 25005/* confdefs.h. */
25006_ACEOF
25007cat confdefs.h >>conftest.$ac_ext
25008cat >>conftest.$ac_ext <<_ACEOF
25009/* end confdefs.h. */
25010
25011#if HAVE_SYS_TYPES_H
25012#include <sys/types.h>
25013#endif
25014#if HAVE_MALLOC_H
25015#include <malloc.h>
25016#endif
25017
25018int
25019main ()
25020{
25021static struct mallinfo ac_aggr;
25022if (sizeof ac_aggr.mxfast)
25023return 0;
25024 ;
25025 return 0;
25026}
25027_ACEOF
25028rm -f conftest.$ac_objext
25029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25030 (eval $ac_compile) 2>conftest.er1
ad21602a 25031 ac_status=$?
af3004ff 25032 grep -v '^ *+' conftest.er1 >conftest.err
25033 rm -f conftest.er1
25034 cat conftest.err >&5
ad21602a 25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } &&
6263d81f 25037 { ac_try='test -z "$ac_c_werror_flag"
25038 || test ! -s conftest.err'
af3004ff 25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; } &&
25044 { ac_try='test -s conftest.$ac_objext'
ad21602a 25045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25050 ac_cv_member_struct_mallinfo_mxfast=yes
25051else
25052 echo "$as_me: failed program was:" >&5
25053sed 's/^/| /' conftest.$ac_ext >&5
25054
33f5f8b9 25055ac_cv_member_struct_mallinfo_mxfast=no
25056fi
af3004ff 25057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5c51415d 25058fi
af3004ff 25059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad21602a 25060fi
33f5f8b9 25061echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_mxfast" >&5
25062echo "${ECHO_T}$ac_cv_member_struct_mallinfo_mxfast" >&6
25063if test $ac_cv_member_struct_mallinfo_mxfast = yes; then
25064
25065cat >>confdefs.h <<_ACEOF
25066#define HAVE_STRUCT_MALLINFO_MXFAST 1
25067_ACEOF
3f961930 25068
5c51415d 25069
25070fi
25071
33f5f8b9 25072
795c3ae0 25073case "$host_os" in
25074 mingw|mingw32)
25075 cat >>confdefs.h <<\_ACEOF
25076#define HAVE_STRUCT_RUSAGE 1
25077_ACEOF
25078
25079 ac_cv_func_getrusage='yes'
61f45daa 25080 echo "Using own rusage on Windows."
795c3ae0 25081 ;;
25082 *)
25083 echo "$as_me:$LINENO: checking for struct rusage" >&5
33f5f8b9 25084echo $ECHO_N "checking for struct rusage... $ECHO_C" >&6
25085if test "${ac_cv_type_struct_rusage+set}" = set; then
25086 echo $ECHO_N "(cached) $ECHO_C" >&6
b54a6789 25087else
33f5f8b9 25088 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25089/* confdefs.h. */
25090_ACEOF
25091cat confdefs.h >>conftest.$ac_ext
25092cat >>conftest.$ac_ext <<_ACEOF
25093/* end confdefs.h. */
b54a6789 25094
8ff51bba 25095#if HAVE_SYS_TIME_H
25096#include <sys/time.h>
25097#endif
b54a6789 25098#if HAVE_SYS_RESOURCE_H
25099#include <sys/resource.h>
25100#endif
3f961930 25101
33f5f8b9 25102int
25103main ()
25104{
25105if ((struct rusage *) 0)
25106 return 0;
25107if (sizeof (struct rusage))
25108 return 0;
25109 ;
25110 return 0;
25111}
25112_ACEOF
25113rm -f conftest.$ac_objext
25114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25115 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25116 ac_status=$?
af3004ff 25117 grep -v '^ *+' conftest.er1 >conftest.err
25118 rm -f conftest.er1
25119 cat conftest.err >&5
33f5f8b9 25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } &&
6263d81f 25122 { ac_try='test -z "$ac_c_werror_flag"
25123 || test ! -s conftest.err'
af3004ff 25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; } &&
25129 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 ac_cv_type_struct_rusage=yes
25136else
25137 echo "$as_me: failed program was:" >&5
ad21602a 25138sed 's/^/| /' conftest.$ac_ext >&5
25139
33f5f8b9 25140ac_cv_type_struct_rusage=no
25141fi
af3004ff 25142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25143fi
25144echo "$as_me:$LINENO: result: $ac_cv_type_struct_rusage" >&5
25145echo "${ECHO_T}$ac_cv_type_struct_rusage" >&6
25146if test $ac_cv_type_struct_rusage = yes; then
25147
dd0004a0 25148cat >>confdefs.h <<\_ACEOF
25149#define HAVE_STRUCT_RUSAGE 1
2f44bd34 25150_ACEOF
dd0004a0 25151
25152fi
25153
795c3ae0 25154 ;;
25155esac
dd0004a0 25156
25157echo "$as_me:$LINENO: checking for struct iphdr.ip_hl" >&5
25158echo $ECHO_N "checking for struct iphdr.ip_hl... $ECHO_C" >&6
25159if test "${ac_cv_member_struct_iphdr_ip_hl+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25163/* confdefs.h. */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h. */
33f5f8b9 25168
25169#if HAVE_SYS_TYPES_H
a025a745 25170#include <sys/types.h>
33f5f8b9 25171#endif
a025a745 25172#include <netinet/in.h>
25173#include <netinet/in_systm.h>
25174#include <netinet/ip.h>
509e66c9 25175#if defined (__linux__) || defined (__CYGWIN__)
6ad85e8a 25176#define ip_hl ihl
25177#endif
25178#ifndef __linux__
509e66c9 25179#ifndef __CYGWIN__
6ad85e8a 25180#define iphdr ip
25181#endif
509e66c9 25182#endif
33f5f8b9 25183
658d5a21 25184int
25185main ()
25186{
25187static struct iphdr ac_aggr;
8b036616 25188if (ac_aggr.ip_hl)
658d5a21 25189return 0;
25190 ;
25191 return 0;
25192}
25193_ACEOF
25194rm -f conftest.$ac_objext
25195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25196 (eval $ac_compile) 2>conftest.er1
658d5a21 25197 ac_status=$?
af3004ff 25198 grep -v '^ *+' conftest.er1 >conftest.err
25199 rm -f conftest.er1
25200 cat conftest.err >&5
658d5a21 25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } &&
6263d81f 25203 { ac_try='test -z "$ac_c_werror_flag"
25204 || test ! -s conftest.err'
af3004ff 25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } &&
25210 { ac_try='test -s conftest.$ac_objext'
658d5a21 25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; }; then
25216 ac_cv_member_struct_iphdr_ip_hl=yes
25217else
25218 echo "$as_me: failed program was:" >&5
ad21602a 25219sed 's/^/| /' conftest.$ac_ext >&5
25220
25221cat >conftest.$ac_ext <<_ACEOF
ad21602a 25222/* confdefs.h. */
25223_ACEOF
25224cat confdefs.h >>conftest.$ac_ext
25225cat >>conftest.$ac_ext <<_ACEOF
25226/* end confdefs.h. */
25227
25228#if HAVE_SYS_TYPES_H
25229#include <sys/types.h>
25230#endif
25231#include <netinet/in.h>
25232#include <netinet/in_systm.h>
25233#include <netinet/ip.h>
25234#if defined (__linux__) || defined (__CYGWIN__)
25235#define ip_hl ihl
25236#endif
25237#ifndef __linux__
25238#ifndef __CYGWIN__
25239#define iphdr ip
25240#endif
25241#endif
25242
25243int
25244main ()
25245{
25246static struct iphdr ac_aggr;
25247if (sizeof ac_aggr.ip_hl)
25248return 0;
25249 ;
25250 return 0;
25251}
25252_ACEOF
25253rm -f conftest.$ac_objext
25254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25255 (eval $ac_compile) 2>conftest.er1
ad21602a 25256 ac_status=$?
af3004ff 25257 grep -v '^ *+' conftest.er1 >conftest.err
25258 rm -f conftest.er1
25259 cat conftest.err >&5
ad21602a 25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } &&
6263d81f 25262 { ac_try='test -z "$ac_c_werror_flag"
25263 || test ! -s conftest.err'
af3004ff 25264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25265 (eval $ac_try) 2>&5
25266 ac_status=$?
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); }; } &&
25269 { ac_try='test -s conftest.$ac_objext'
ad21602a 25270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271 (eval $ac_try) 2>&5
25272 ac_status=$?
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }; }; then
25275 ac_cv_member_struct_iphdr_ip_hl=yes
25276else
25277 echo "$as_me: failed program was:" >&5
25278sed 's/^/| /' conftest.$ac_ext >&5
25279
33f5f8b9 25280ac_cv_member_struct_iphdr_ip_hl=no
a025a745 25281fi
af3004ff 25282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5c51415d 25283fi
af3004ff 25284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad21602a 25285fi
33f5f8b9 25286echo "$as_me:$LINENO: result: $ac_cv_member_struct_iphdr_ip_hl" >&5
25287echo "${ECHO_T}$ac_cv_member_struct_iphdr_ip_hl" >&6
25288if test $ac_cv_member_struct_iphdr_ip_hl = yes; then
25289
25290cat >>confdefs.h <<_ACEOF
25291#define HAVE_STRUCT_IPHDR_IP_HL 1
25292_ACEOF
3f961930 25293
b65c7b0d 25294
77d6bd88 25295fi
b65c7b0d 25296
33f5f8b9 25297
25298echo "$as_me:$LINENO: checking for void *" >&5
25299echo $ECHO_N "checking for void *... $ECHO_C" >&6
25300if test "${ac_cv_type_void_p+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
b65c7b0d 25302else
33f5f8b9 25303 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25304/* confdefs.h. */
25305_ACEOF
25306cat confdefs.h >>conftest.$ac_ext
25307cat >>conftest.$ac_ext <<_ACEOF
25308/* end confdefs.h. */
33f5f8b9 25309$ac_includes_default
33f5f8b9 25310int
25311main ()
25312{
25313if ((void * *) 0)
25314 return 0;
25315if (sizeof (void *))
25316 return 0;
25317 ;
25318 return 0;
25319}
25320_ACEOF
25321rm -f conftest.$ac_objext
25322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25323 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25324 ac_status=$?
af3004ff 25325 grep -v '^ *+' conftest.er1 >conftest.err
25326 rm -f conftest.er1
25327 cat conftest.err >&5
33f5f8b9 25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); } &&
6263d81f 25330 { ac_try='test -z "$ac_c_werror_flag"
25331 || test ! -s conftest.err'
af3004ff 25332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); }; } &&
25337 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; }; then
25343 ac_cv_type_void_p=yes
25344else
25345 echo "$as_me: failed program was:" >&5
ad21602a 25346sed 's/^/| /' conftest.$ac_ext >&5
25347
33f5f8b9 25348ac_cv_type_void_p=no
25349fi
af3004ff 25350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25351fi
25352echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25353echo "${ECHO_T}$ac_cv_type_void_p" >&6
25354
25355echo "$as_me:$LINENO: checking size of void *" >&5
25356echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25357if test "${ac_cv_sizeof_void_p+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25359else
25360 if test "$ac_cv_type_void_p" = yes; then
25361 # The cast to unsigned long works around a bug in the HP C Compiler
25362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25364 # This bug is HP SR number 8606223364.
b65c7b0d 25365 if test "$cross_compiling" = yes; then
33f5f8b9 25366 # Depending upon the size, compute the lo and hi bounds.
25367cat >conftest.$ac_ext <<_ACEOF
ad21602a 25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
33f5f8b9 25373$ac_includes_default
33f5f8b9 25374int
25375main ()
25376{
25377static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25378test_array [0] = 0
25379
25380 ;
25381 return 0;
25382}
25383_ACEOF
25384rm -f conftest.$ac_objext
25385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25386 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25387 ac_status=$?
af3004ff 25388 grep -v '^ *+' conftest.er1 >conftest.err
25389 rm -f conftest.er1
25390 cat conftest.err >&5
33f5f8b9 25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } &&
6263d81f 25393 { ac_try='test -z "$ac_c_werror_flag"
25394 || test ! -s conftest.err'
af3004ff 25395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); }; } &&
25400 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; }; then
25406 ac_lo=0 ac_mid=0
25407 while :; do
25408 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25409/* confdefs.h. */
25410_ACEOF
25411cat confdefs.h >>conftest.$ac_ext
25412cat >>conftest.$ac_ext <<_ACEOF
25413/* end confdefs.h. */
33f5f8b9 25414$ac_includes_default
33f5f8b9 25415int
25416main ()
25417{
25418static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25419test_array [0] = 0
25420
25421 ;
25422 return 0;
25423}
25424_ACEOF
25425rm -f conftest.$ac_objext
25426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25427 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25428 ac_status=$?
af3004ff 25429 grep -v '^ *+' conftest.er1 >conftest.err
25430 rm -f conftest.er1
25431 cat conftest.err >&5
33f5f8b9 25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
6263d81f 25434 { ac_try='test -z "$ac_c_werror_flag"
25435 || test ! -s conftest.err'
af3004ff 25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; } &&
25441 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; }; then
25447 ac_hi=$ac_mid; break
25448else
25449 echo "$as_me: failed program was:" >&5
ad21602a 25450sed 's/^/| /' conftest.$ac_ext >&5
25451
33f5f8b9 25452ac_lo=`expr $ac_mid + 1`
af3004ff 25453 if test $ac_lo -le $ac_mid; then
25454 ac_lo= ac_hi=
25455 break
25456 fi
25457 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 25458fi
af3004ff 25459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25460 done
b65c7b0d 25461else
33f5f8b9 25462 echo "$as_me: failed program was:" >&5
ad21602a 25463sed 's/^/| /' conftest.$ac_ext >&5
25464
33f5f8b9 25465cat >conftest.$ac_ext <<_ACEOF
ad21602a 25466/* confdefs.h. */
25467_ACEOF
25468cat confdefs.h >>conftest.$ac_ext
25469cat >>conftest.$ac_ext <<_ACEOF
25470/* end confdefs.h. */
33f5f8b9 25471$ac_includes_default
33f5f8b9 25472int
25473main ()
b65c7b0d 25474{
33f5f8b9 25475static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25476test_array [0] = 0
25477
25478 ;
25479 return 0;
b65c7b0d 25480}
33f5f8b9 25481_ACEOF
25482rm -f conftest.$ac_objext
25483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25484 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25485 ac_status=$?
af3004ff 25486 grep -v '^ *+' conftest.er1 >conftest.err
25487 rm -f conftest.er1
25488 cat conftest.err >&5
33f5f8b9 25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } &&
6263d81f 25491 { ac_try='test -z "$ac_c_werror_flag"
25492 || test ! -s conftest.err'
af3004ff 25493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494 (eval $ac_try) 2>&5
25495 ac_status=$?
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; } &&
25498 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25500 (eval $ac_try) 2>&5
25501 ac_status=$?
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_hi=-1 ac_mid=-1
25505 while :; do
25506 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25507/* confdefs.h. */
25508_ACEOF
25509cat confdefs.h >>conftest.$ac_ext
25510cat >>conftest.$ac_ext <<_ACEOF
25511/* end confdefs.h. */
33f5f8b9 25512$ac_includes_default
33f5f8b9 25513int
25514main ()
25515{
25516static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25517test_array [0] = 0
25518
25519 ;
25520 return 0;
25521}
25522_ACEOF
25523rm -f conftest.$ac_objext
25524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25525 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25526 ac_status=$?
af3004ff 25527 grep -v '^ *+' conftest.er1 >conftest.err
25528 rm -f conftest.er1
25529 cat conftest.err >&5
33f5f8b9 25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } &&
6263d81f 25532 { ac_try='test -z "$ac_c_werror_flag"
25533 || test ! -s conftest.err'
af3004ff 25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; } &&
25539 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; }; then
25545 ac_lo=$ac_mid; break
25546else
25547 echo "$as_me: failed program was:" >&5
ad21602a 25548sed 's/^/| /' conftest.$ac_ext >&5
25549
33f5f8b9 25550ac_hi=`expr '(' $ac_mid ')' - 1`
af3004ff 25551 if test $ac_mid -le $ac_hi; then
25552 ac_lo= ac_hi=
25553 break
25554 fi
25555 ac_mid=`expr 2 '*' $ac_mid`
33f5f8b9 25556fi
af3004ff 25557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25558 done
b65c7b0d 25559else
33f5f8b9 25560 echo "$as_me: failed program was:" >&5
ad21602a 25561sed 's/^/| /' conftest.$ac_ext >&5
25562
33f5f8b9 25563ac_lo= ac_hi=
b65c7b0d 25564fi
af3004ff 25565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b65c7b0d 25566fi
af3004ff 25567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25568# Binary search between lo and hi bounds.
25569while test "x$ac_lo" != "x$ac_hi"; do
25570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25571 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25572/* confdefs.h. */
25573_ACEOF
25574cat confdefs.h >>conftest.$ac_ext
25575cat >>conftest.$ac_ext <<_ACEOF
25576/* end confdefs.h. */
33f5f8b9 25577$ac_includes_default
33f5f8b9 25578int
25579main ()
25580{
25581static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25582test_array [0] = 0
3f961930 25583
33f5f8b9 25584 ;
25585 return 0;
25586}
25587_ACEOF
25588rm -f conftest.$ac_objext
25589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 25590 (eval $ac_compile) 2>conftest.er1
33f5f8b9 25591 ac_status=$?
af3004ff 25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
33f5f8b9 25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } &&
6263d81f 25597 { ac_try='test -z "$ac_c_werror_flag"
25598 || test ! -s conftest.err'
af3004ff 25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 ac_hi=$ac_mid
25611else
25612 echo "$as_me: failed program was:" >&5
ad21602a 25613sed 's/^/| /' conftest.$ac_ext >&5
25614
33f5f8b9 25615ac_lo=`expr '(' $ac_mid ')' + 1`
25616fi
af3004ff 25617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25618done
25619case $ac_lo in
25620?*) ac_cv_sizeof_void_p=$ac_lo;;
ad21602a 25621'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25622See \`config.log' for more details." >&5
25623echo "$as_me: error: cannot compute sizeof (void *), 77
25624See \`config.log' for more details." >&2;}
33f5f8b9 25625 { (exit 1); exit 1; }; } ;;
25626esac
77d6bd88 25627else
25628 if test "$cross_compiling" = yes; then
6263d81f 25629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25630See \`config.log' for more details." >&5
25631echo "$as_me: error: cannot run test program while cross compiling
25632See \`config.log' for more details." >&2;}
33f5f8b9 25633 { (exit 1); exit 1; }; }
77d6bd88 25634else
33f5f8b9 25635 cat >conftest.$ac_ext <<_ACEOF
ad21602a 25636/* confdefs.h. */
25637_ACEOF
25638cat confdefs.h >>conftest.$ac_ext
25639cat >>conftest.$ac_ext <<_ACEOF
25640/* end confdefs.h. */
33f5f8b9 25641$ac_includes_default
25642long longval () { return (long) (sizeof (void *)); }
25643unsigned long ulongval () { return (long) (sizeof (void *)); }
77d6bd88 25644#include <stdio.h>
33f5f8b9 25645#include <stdlib.h>
33f5f8b9 25646int
25647main ()
77d6bd88 25648{
33f5f8b9 25649
25650 FILE *f = fopen ("conftest.val", "w");
25651 if (! f)
25652 exit (1);
25653 if (((long) (sizeof (void *))) < 0)
25654 {
25655 long i = longval ();
25656 if (i != ((long) (sizeof (void *))))
25657 exit (1);
25658 fprintf (f, "%ld\n", i);
25659 }
25660 else
25661 {
25662 unsigned long i = ulongval ();
25663 if (i != ((long) (sizeof (void *))))
25664 exit (1);
25665 fprintf (f, "%lu\n", i);
25666 }
25667 exit (ferror (f) || fclose (f) != 0);
25668
25669 ;
25670 return 0;
77d6bd88 25671}
33f5f8b9 25672_ACEOF
25673rm -f conftest$ac_exeext
25674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25675 (eval $ac_link) 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; }; then
25684 ac_cv_sizeof_void_p=`cat conftest.val`
25685else
25686 echo "$as_me: program exited with status $ac_status" >&5
25687echo "$as_me: failed program was:" >&5
ad21602a 25688sed 's/^/| /' conftest.$ac_ext >&5
25689
33f5f8b9 25690( exit $ac_status )
ad21602a 25691{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25692See \`config.log' for more details." >&5
25693echo "$as_me: error: cannot compute sizeof (void *), 77
25694See \`config.log' for more details." >&2;}
33f5f8b9 25695 { (exit 1); exit 1; }; }
25696fi
af3004ff 25697rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 25698fi
25699fi
25700rm -f conftest.val
77d6bd88 25701else
33f5f8b9 25702 ac_cv_sizeof_void_p=0
77d6bd88 25703fi
77d6bd88 25704fi
33f5f8b9 25705echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25706echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25707cat >>confdefs.h <<_ACEOF
25708#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25709_ACEOF
b65c7b0d 25710
b1e77ec1 25711
3f961930 25712
9c05977a 25713echo "$as_me:$LINENO: checking for int8_t" >&5
25714echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25715if test "${ac_cv_type_int8_t+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717else
25718 cat >conftest.$ac_ext <<_ACEOF
25719/* confdefs.h. */
25720_ACEOF
25721cat confdefs.h >>conftest.$ac_ext
25722cat >>conftest.$ac_ext <<_ACEOF
25723/* end confdefs.h. */
25724
25725/* What a mess.. many systems have added the (now standard) bit types
25726 * in their own ways, so we need to scan a wide variety of headers to
25727 * find them..
25728 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25729 */
25730#if HAVE_SYS_TYPES_H
25731#include <sys/types.h>
25732#endif
25733#if STDC_HEADERS
25734#include <stdlib.h>
25735#include <stddef.h>
25736#endif
25737#if HAVE_INTTYPES_H
25738#include <inttypes.h>
25739#endif
25740#if HAVE_SYS_BITYPES_H
25741#include <sys/bitypes.h>
25742#endif
25743#if HAVE_SYS_SELECT_H
25744#include <sys/select.h>
25745#endif
25746
25747
25748int
25749main ()
25750{
25751if ((int8_t *) 0)
25752 return 0;
25753if (sizeof (int8_t))
25754 return 0;
25755 ;
25756 return 0;
25757}
25758_ACEOF
25759rm -f conftest.$ac_objext
25760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25761 (eval $ac_compile) 2>conftest.er1
25762 ac_status=$?
25763 grep -v '^ *+' conftest.er1 >conftest.err
25764 rm -f conftest.er1
25765 cat conftest.err >&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } &&
25768 { ac_try='test -z "$ac_c_werror_flag"
25769 || test ! -s conftest.err'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; } &&
25775 { ac_try='test -s conftest.$ac_objext'
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; }; then
25781 ac_cv_type_int8_t=yes
25782else
25783 echo "$as_me: failed program was:" >&5
25784sed 's/^/| /' conftest.$ac_ext >&5
25785
25786ac_cv_type_int8_t=no
25787fi
25788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25789fi
25790echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25791echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25792if test $ac_cv_type_int8_t = yes; then
25793
25794 echo "$as_me:$LINENO: checking for int8_t" >&5
25795echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25796if test "${ac_cv_type_int8_t+set}" = set; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25798else
25799 cat >conftest.$ac_ext <<_ACEOF
25800/* confdefs.h. */
25801_ACEOF
25802cat confdefs.h >>conftest.$ac_ext
25803cat >>conftest.$ac_ext <<_ACEOF
25804/* end confdefs.h. */
25805
25806#include <stdio.h>
25807
25808/* What a mess.. many systems have added the (now standard) bit types
25809 * in their own ways, so we need to scan a wide variety of headers to
25810 * find them..
25811 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25812 */
25813#if HAVE_SYS_TYPES_H
25814#include <sys/types.h>
25815#endif
25816#if STDC_HEADERS
25817#include <stdlib.h>
25818#include <stddef.h>
25819#endif
25820#if HAVE_INTTYPES_H
25821#include <inttypes.h>
25822#endif
25823#if HAVE_SYS_BITYPES_H
25824#include <sys/bitypes.h>
25825#endif
25826#if HAVE_SYS_SELECT_H
25827#include <sys/select.h>
25828#endif
25829
25830
25831
25832int
25833main ()
25834{
25835if ((int8_t *) 0)
25836 return 0;
25837if (sizeof (int8_t))
25838 return 0;
25839 ;
25840 return 0;
25841}
25842_ACEOF
25843rm -f conftest.$ac_objext
25844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25846 ac_status=$?
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_c_werror_flag"
25853 || test ! -s conftest.err'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest.$ac_objext'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_type_int8_t=yes
25866else
25867 echo "$as_me: failed program was:" >&5
25868sed 's/^/| /' conftest.$ac_ext >&5
25869
25870ac_cv_type_int8_t=no
25871fi
25872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873fi
25874echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25875echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25876
25877echo "$as_me:$LINENO: checking size of int8_t" >&5
25878echo $ECHO_N "checking size of int8_t... $ECHO_C" >&6
25879if test "${ac_cv_sizeof_int8_t+set}" = set; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25881else
25882 if test "$ac_cv_type_int8_t" = yes; then
25883 # The cast to unsigned long works around a bug in the HP C Compiler
25884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25886 # This bug is HP SR number 8606223364.
25887 if test "$cross_compiling" = yes; then
25888 # Depending upon the size, compute the lo and hi bounds.
25889cat >conftest.$ac_ext <<_ACEOF
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
25895
25896#include <stdio.h>
25897
25898/* What a mess.. many systems have added the (now standard) bit types
25899 * in their own ways, so we need to scan a wide variety of headers to
25900 * find them..
25901 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25902 */
25903#if HAVE_SYS_TYPES_H
25904#include <sys/types.h>
25905#endif
25906#if STDC_HEADERS
25907#include <stdlib.h>
25908#include <stddef.h>
25909#endif
25910#if HAVE_INTTYPES_H
25911#include <inttypes.h>
25912#endif
25913#if HAVE_SYS_BITYPES_H
25914#include <sys/bitypes.h>
25915#endif
25916#if HAVE_SYS_SELECT_H
25917#include <sys/select.h>
25918#endif
25919
25920
25921
25922int
25923main ()
25924{
25925static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) >= 0)];
25926test_array [0] = 0
25927
25928 ;
25929 return 0;
25930}
25931_ACEOF
25932rm -f conftest.$ac_objext
25933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25934 (eval $ac_compile) 2>conftest.er1
25935 ac_status=$?
25936 grep -v '^ *+' conftest.er1 >conftest.err
25937 rm -f conftest.er1
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } &&
25941 { ac_try='test -z "$ac_c_werror_flag"
25942 || test ! -s conftest.err'
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; } &&
25948 { ac_try='test -s conftest.$ac_objext'
25949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; }; then
25954 ac_lo=0 ac_mid=0
25955 while :; do
25956 cat >conftest.$ac_ext <<_ACEOF
25957/* confdefs.h. */
25958_ACEOF
25959cat confdefs.h >>conftest.$ac_ext
25960cat >>conftest.$ac_ext <<_ACEOF
25961/* end confdefs.h. */
25962
25963#include <stdio.h>
25964
25965/* What a mess.. many systems have added the (now standard) bit types
25966 * in their own ways, so we need to scan a wide variety of headers to
25967 * find them..
25968 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25969 */
25970#if HAVE_SYS_TYPES_H
25971#include <sys/types.h>
25972#endif
25973#if STDC_HEADERS
25974#include <stdlib.h>
25975#include <stddef.h>
25976#endif
25977#if HAVE_INTTYPES_H
25978#include <inttypes.h>
25979#endif
25980#if HAVE_SYS_BITYPES_H
25981#include <sys/bitypes.h>
25982#endif
25983#if HAVE_SYS_SELECT_H
25984#include <sys/select.h>
25985#endif
25986
25987
25988
25989int
25990main ()
25991{
25992static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) <= $ac_mid)];
25993test_array [0] = 0
25994
25995 ;
25996 return 0;
25997}
25998_ACEOF
25999rm -f conftest.$ac_objext
26000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26001 (eval $ac_compile) 2>conftest.er1
26002 ac_status=$?
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
26008 { ac_try='test -z "$ac_c_werror_flag"
26009 || test ! -s conftest.err'
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26012 ac_status=$?
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; } &&
26015 { ac_try='test -s conftest.$ac_objext'
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 ac_hi=$ac_mid; break
26022else
26023 echo "$as_me: failed program was:" >&5
26024sed 's/^/| /' conftest.$ac_ext >&5
26025
26026ac_lo=`expr $ac_mid + 1`
26027 if test $ac_lo -le $ac_mid; then
26028 ac_lo= ac_hi=
26029 break
26030 fi
26031 ac_mid=`expr 2 '*' $ac_mid + 1`
26032fi
26033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26034 done
26035else
26036 echo "$as_me: failed program was:" >&5
26037sed 's/^/| /' conftest.$ac_ext >&5
26038
26039cat >conftest.$ac_ext <<_ACEOF
26040/* confdefs.h. */
26041_ACEOF
26042cat confdefs.h >>conftest.$ac_ext
26043cat >>conftest.$ac_ext <<_ACEOF
26044/* end confdefs.h. */
26045
26046#include <stdio.h>
26047
26048/* What a mess.. many systems have added the (now standard) bit types
26049 * in their own ways, so we need to scan a wide variety of headers to
26050 * find them..
26051 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26052 */
26053#if HAVE_SYS_TYPES_H
26054#include <sys/types.h>
26055#endif
26056#if STDC_HEADERS
26057#include <stdlib.h>
26058#include <stddef.h>
26059#endif
26060#if HAVE_INTTYPES_H
26061#include <inttypes.h>
26062#endif
26063#if HAVE_SYS_BITYPES_H
26064#include <sys/bitypes.h>
26065#endif
26066#if HAVE_SYS_SELECT_H
26067#include <sys/select.h>
26068#endif
26069
26070
26071
26072int
26073main ()
26074{
26075static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) < 0)];
26076test_array [0] = 0
26077
26078 ;
26079 return 0;
26080}
26081_ACEOF
26082rm -f conftest.$ac_objext
26083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084 (eval $ac_compile) 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_hi=-1 ac_mid=-1
26105 while :; do
26106 cat >conftest.$ac_ext <<_ACEOF
26107/* confdefs.h. */
26108_ACEOF
26109cat confdefs.h >>conftest.$ac_ext
26110cat >>conftest.$ac_ext <<_ACEOF
26111/* end confdefs.h. */
26112
26113#include <stdio.h>
26114
26115/* What a mess.. many systems have added the (now standard) bit types
26116 * in their own ways, so we need to scan a wide variety of headers to
26117 * find them..
26118 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26119 */
26120#if HAVE_SYS_TYPES_H
26121#include <sys/types.h>
26122#endif
26123#if STDC_HEADERS
26124#include <stdlib.h>
26125#include <stddef.h>
26126#endif
26127#if HAVE_INTTYPES_H
26128#include <inttypes.h>
26129#endif
26130#if HAVE_SYS_BITYPES_H
26131#include <sys/bitypes.h>
26132#endif
26133#if HAVE_SYS_SELECT_H
26134#include <sys/select.h>
26135#endif
26136
26137
26138
26139int
26140main ()
26141{
26142static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) >= $ac_mid)];
26143test_array [0] = 0
26144
26145 ;
26146 return 0;
26147}
26148_ACEOF
26149rm -f conftest.$ac_objext
26150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26151 (eval $ac_compile) 2>conftest.er1
26152 ac_status=$?
26153 grep -v '^ *+' conftest.er1 >conftest.err
26154 rm -f conftest.er1
26155 cat conftest.err >&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } &&
26158 { ac_try='test -z "$ac_c_werror_flag"
26159 || test ! -s conftest.err'
26160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26161 (eval $ac_try) 2>&5
26162 ac_status=$?
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); }; } &&
26165 { ac_try='test -s conftest.$ac_objext'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26168 ac_status=$?
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; }; then
26171 ac_lo=$ac_mid; break
26172else
26173 echo "$as_me: failed program was:" >&5
26174sed 's/^/| /' conftest.$ac_ext >&5
26175
26176ac_hi=`expr '(' $ac_mid ')' - 1`
26177 if test $ac_mid -le $ac_hi; then
26178 ac_lo= ac_hi=
26179 break
26180 fi
26181 ac_mid=`expr 2 '*' $ac_mid`
26182fi
26183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26184 done
26185else
26186 echo "$as_me: failed program was:" >&5
26187sed 's/^/| /' conftest.$ac_ext >&5
26188
26189ac_lo= ac_hi=
26190fi
26191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26192fi
26193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26194# Binary search between lo and hi bounds.
26195while test "x$ac_lo" != "x$ac_hi"; do
26196 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26197 cat >conftest.$ac_ext <<_ACEOF
26198/* confdefs.h. */
26199_ACEOF
26200cat confdefs.h >>conftest.$ac_ext
26201cat >>conftest.$ac_ext <<_ACEOF
26202/* end confdefs.h. */
26203
26204#include <stdio.h>
26205
26206/* What a mess.. many systems have added the (now standard) bit types
26207 * in their own ways, so we need to scan a wide variety of headers to
26208 * find them..
26209 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26210 */
26211#if HAVE_SYS_TYPES_H
26212#include <sys/types.h>
26213#endif
26214#if STDC_HEADERS
26215#include <stdlib.h>
26216#include <stddef.h>
26217#endif
26218#if HAVE_INTTYPES_H
26219#include <inttypes.h>
26220#endif
26221#if HAVE_SYS_BITYPES_H
26222#include <sys/bitypes.h>
26223#endif
26224#if HAVE_SYS_SELECT_H
26225#include <sys/select.h>
26226#endif
26227
26228
26229
26230int
26231main ()
26232{
26233static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) <= $ac_mid)];
26234test_array [0] = 0
26235
26236 ;
26237 return 0;
26238}
26239_ACEOF
26240rm -f conftest.$ac_objext
26241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26242 (eval $ac_compile) 2>conftest.er1
26243 ac_status=$?
26244 grep -v '^ *+' conftest.er1 >conftest.err
26245 rm -f conftest.er1
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } &&
26249 { ac_try='test -z "$ac_c_werror_flag"
26250 || test ! -s conftest.err'
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26253 ac_status=$?
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; } &&
26256 { ac_try='test -s conftest.$ac_objext'
26257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258 (eval $ac_try) 2>&5
26259 ac_status=$?
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); }; }; then
26262 ac_hi=$ac_mid
26263else
26264 echo "$as_me: failed program was:" >&5
26265sed 's/^/| /' conftest.$ac_ext >&5
26266
26267ac_lo=`expr '(' $ac_mid ')' + 1`
26268fi
26269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26270done
26271case $ac_lo in
26272?*) ac_cv_sizeof_int8_t=$ac_lo;;
26273'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int8_t), 77
26274See \`config.log' for more details." >&5
26275echo "$as_me: error: cannot compute sizeof (int8_t), 77
26276See \`config.log' for more details." >&2;}
26277 { (exit 1); exit 1; }; } ;;
26278esac
26279else
26280 if test "$cross_compiling" = yes; then
26281 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26282See \`config.log' for more details." >&5
26283echo "$as_me: error: cannot run test program while cross compiling
26284See \`config.log' for more details." >&2;}
26285 { (exit 1); exit 1; }; }
26286else
26287 cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
26293
26294#include <stdio.h>
26295
26296/* What a mess.. many systems have added the (now standard) bit types
26297 * in their own ways, so we need to scan a wide variety of headers to
26298 * find them..
26299 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26300 */
26301#if HAVE_SYS_TYPES_H
26302#include <sys/types.h>
26303#endif
26304#if STDC_HEADERS
26305#include <stdlib.h>
26306#include <stddef.h>
26307#endif
26308#if HAVE_INTTYPES_H
26309#include <inttypes.h>
26310#endif
26311#if HAVE_SYS_BITYPES_H
26312#include <sys/bitypes.h>
26313#endif
26314#if HAVE_SYS_SELECT_H
26315#include <sys/select.h>
26316#endif
26317
26318
26319
26320long longval () { return (long) (sizeof (int8_t)); }
26321unsigned long ulongval () { return (long) (sizeof (int8_t)); }
26322#include <stdio.h>
26323#include <stdlib.h>
26324int
26325main ()
26326{
26327
26328 FILE *f = fopen ("conftest.val", "w");
26329 if (! f)
26330 exit (1);
26331 if (((long) (sizeof (int8_t))) < 0)
26332 {
26333 long i = longval ();
26334 if (i != ((long) (sizeof (int8_t))))
26335 exit (1);
26336 fprintf (f, "%ld\n", i);
26337 }
26338 else
26339 {
26340 unsigned long i = ulongval ();
26341 if (i != ((long) (sizeof (int8_t))))
26342 exit (1);
26343 fprintf (f, "%lu\n", i);
26344 }
26345 exit (ferror (f) || fclose (f) != 0);
26346
26347 ;
26348 return 0;
26349}
26350_ACEOF
26351rm -f conftest$ac_exeext
26352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353 (eval $ac_link) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 ac_cv_sizeof_int8_t=`cat conftest.val`
26363else
26364 echo "$as_me: program exited with status $ac_status" >&5
26365echo "$as_me: failed program was:" >&5
26366sed 's/^/| /' conftest.$ac_ext >&5
26367
26368( exit $ac_status )
26369{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int8_t), 77
26370See \`config.log' for more details." >&5
26371echo "$as_me: error: cannot compute sizeof (int8_t), 77
26372See \`config.log' for more details." >&2;}
26373 { (exit 1); exit 1; }; }
26374fi
26375rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26376fi
26377fi
26378rm -f conftest.val
26379else
26380 ac_cv_sizeof_int8_t=0
26381fi
26382fi
26383echo "$as_me:$LINENO: result: $ac_cv_sizeof_int8_t" >&5
26384echo "${ECHO_T}$ac_cv_sizeof_int8_t" >&6
26385cat >>confdefs.h <<_ACEOF
26386#define SIZEOF_INT8_T $ac_cv_sizeof_int8_t
26387_ACEOF
26388
26389
26390
26391cat >>confdefs.h <<\_ACEOF
26392#define HAVE_INT8_T 1
26393_ACEOF
26394
26395
26396fi
26397
26398
26399echo "$as_me:$LINENO: checking for char" >&5
26400echo $ECHO_N "checking for char... $ECHO_C" >&6
26401if test "${ac_cv_type_char+set}" = set; then
26402 echo $ECHO_N "(cached) $ECHO_C" >&6
26403else
26404 cat >conftest.$ac_ext <<_ACEOF
26405/* confdefs.h. */
26406_ACEOF
26407cat confdefs.h >>conftest.$ac_ext
26408cat >>conftest.$ac_ext <<_ACEOF
26409/* end confdefs.h. */
26410
26411/* What a mess.. many systems have added the (now standard) bit types
26412 * in their own ways, so we need to scan a wide variety of headers to
26413 * find them..
26414 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26415 */
26416#if HAVE_SYS_TYPES_H
26417#include <sys/types.h>
26418#endif
26419#if STDC_HEADERS
26420#include <stdlib.h>
26421#include <stddef.h>
26422#endif
26423#if HAVE_INTTYPES_H
26424#include <inttypes.h>
26425#endif
26426#if HAVE_SYS_BITYPES_H
26427#include <sys/bitypes.h>
26428#endif
26429#if HAVE_SYS_SELECT_H
26430#include <sys/select.h>
26431#endif
26432
26433
26434int
26435main ()
26436{
26437if ((char *) 0)
26438 return 0;
26439if (sizeof (char))
26440 return 0;
26441 ;
26442 return 0;
26443}
26444_ACEOF
26445rm -f conftest.$ac_objext
26446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26447 (eval $ac_compile) 2>conftest.er1
26448 ac_status=$?
26449 grep -v '^ *+' conftest.er1 >conftest.err
26450 rm -f conftest.er1
26451 cat conftest.err >&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); } &&
26454 { ac_try='test -z "$ac_c_werror_flag"
26455 || test ! -s conftest.err'
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; } &&
26461 { ac_try='test -s conftest.$ac_objext'
26462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26463 (eval $ac_try) 2>&5
26464 ac_status=$?
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); }; }; then
26467 ac_cv_type_char=yes
26468else
26469 echo "$as_me: failed program was:" >&5
26470sed 's/^/| /' conftest.$ac_ext >&5
26471
26472ac_cv_type_char=no
26473fi
26474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26475fi
26476echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26477echo "${ECHO_T}$ac_cv_type_char" >&6
26478if test $ac_cv_type_char = yes; then
26479
26480 echo "$as_me:$LINENO: checking for char" >&5
26481echo $ECHO_N "checking for char... $ECHO_C" >&6
26482if test "${ac_cv_type_char+set}" = set; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26484else
26485 cat >conftest.$ac_ext <<_ACEOF
26486/* confdefs.h. */
26487_ACEOF
26488cat confdefs.h >>conftest.$ac_ext
26489cat >>conftest.$ac_ext <<_ACEOF
26490/* end confdefs.h. */
26491
26492#include <stdio.h>
26493
26494/* What a mess.. many systems have added the (now standard) bit types
26495 * in their own ways, so we need to scan a wide variety of headers to
26496 * find them..
26497 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26498 */
26499#if HAVE_SYS_TYPES_H
26500#include <sys/types.h>
26501#endif
26502#if STDC_HEADERS
26503#include <stdlib.h>
26504#include <stddef.h>
26505#endif
26506#if HAVE_INTTYPES_H
26507#include <inttypes.h>
26508#endif
26509#if HAVE_SYS_BITYPES_H
26510#include <sys/bitypes.h>
26511#endif
26512#if HAVE_SYS_SELECT_H
26513#include <sys/select.h>
26514#endif
26515
26516
26517
26518int
26519main ()
26520{
26521if ((char *) 0)
26522 return 0;
26523if (sizeof (char))
26524 return 0;
26525 ;
26526 return 0;
26527}
26528_ACEOF
26529rm -f conftest.$ac_objext
26530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26531 (eval $ac_compile) 2>conftest.er1
26532 ac_status=$?
26533 grep -v '^ *+' conftest.er1 >conftest.err
26534 rm -f conftest.er1
26535 cat conftest.err >&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } &&
26538 { ac_try='test -z "$ac_c_werror_flag"
26539 || test ! -s conftest.err'
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; } &&
26545 { ac_try='test -s conftest.$ac_objext'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26548 ac_status=$?
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26551 ac_cv_type_char=yes
26552else
26553 echo "$as_me: failed program was:" >&5
26554sed 's/^/| /' conftest.$ac_ext >&5
26555
26556ac_cv_type_char=no
26557fi
26558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26559fi
26560echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26561echo "${ECHO_T}$ac_cv_type_char" >&6
26562
26563echo "$as_me:$LINENO: checking size of char" >&5
26564echo $ECHO_N "checking size of char... $ECHO_C" >&6
26565if test "${ac_cv_sizeof_char+set}" = set; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26567else
26568 if test "$ac_cv_type_char" = yes; then
26569 # The cast to unsigned long works around a bug in the HP C Compiler
26570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26572 # This bug is HP SR number 8606223364.
26573 if test "$cross_compiling" = yes; then
26574 # Depending upon the size, compute the lo and hi bounds.
26575cat >conftest.$ac_ext <<_ACEOF
26576/* confdefs.h. */
26577_ACEOF
26578cat confdefs.h >>conftest.$ac_ext
26579cat >>conftest.$ac_ext <<_ACEOF
26580/* end confdefs.h. */
26581
26582#include <stdio.h>
26583
26584/* What a mess.. many systems have added the (now standard) bit types
26585 * in their own ways, so we need to scan a wide variety of headers to
26586 * find them..
26587 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26588 */
26589#if HAVE_SYS_TYPES_H
26590#include <sys/types.h>
26591#endif
26592#if STDC_HEADERS
26593#include <stdlib.h>
26594#include <stddef.h>
26595#endif
26596#if HAVE_INTTYPES_H
26597#include <inttypes.h>
26598#endif
26599#if HAVE_SYS_BITYPES_H
26600#include <sys/bitypes.h>
26601#endif
26602#if HAVE_SYS_SELECT_H
26603#include <sys/select.h>
26604#endif
26605
26606
26607
26608int
26609main ()
26610{
26611static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
26612test_array [0] = 0
26613
26614 ;
26615 return 0;
26616}
26617_ACEOF
26618rm -f conftest.$ac_objext
26619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26620 (eval $ac_compile) 2>conftest.er1
26621 ac_status=$?
26622 grep -v '^ *+' conftest.er1 >conftest.err
26623 rm -f conftest.er1
26624 cat conftest.err >&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } &&
26627 { ac_try='test -z "$ac_c_werror_flag"
26628 || test ! -s conftest.err'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26631 ac_status=$?
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); }; } &&
26634 { ac_try='test -s conftest.$ac_objext'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; }; then
26640 ac_lo=0 ac_mid=0
26641 while :; do
26642 cat >conftest.$ac_ext <<_ACEOF
26643/* confdefs.h. */
26644_ACEOF
26645cat confdefs.h >>conftest.$ac_ext
26646cat >>conftest.$ac_ext <<_ACEOF
26647/* end confdefs.h. */
26648
26649#include <stdio.h>
26650
26651/* What a mess.. many systems have added the (now standard) bit types
26652 * in their own ways, so we need to scan a wide variety of headers to
26653 * find them..
26654 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26655 */
26656#if HAVE_SYS_TYPES_H
26657#include <sys/types.h>
26658#endif
26659#if STDC_HEADERS
26660#include <stdlib.h>
26661#include <stddef.h>
26662#endif
26663#if HAVE_INTTYPES_H
26664#include <inttypes.h>
26665#endif
26666#if HAVE_SYS_BITYPES_H
26667#include <sys/bitypes.h>
26668#endif
26669#if HAVE_SYS_SELECT_H
26670#include <sys/select.h>
26671#endif
26672
26673
26674
26675int
26676main ()
26677{
26678static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26679test_array [0] = 0
26680
26681 ;
26682 return 0;
26683}
26684_ACEOF
26685rm -f conftest.$ac_objext
26686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26687 (eval $ac_compile) 2>conftest.er1
26688 ac_status=$?
26689 grep -v '^ *+' conftest.er1 >conftest.err
26690 rm -f conftest.er1
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } &&
26694 { ac_try='test -z "$ac_c_werror_flag"
26695 || test ! -s conftest.err'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; } &&
26701 { ac_try='test -s conftest.$ac_objext'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; }; then
26707 ac_hi=$ac_mid; break
26708else
26709 echo "$as_me: failed program was:" >&5
26710sed 's/^/| /' conftest.$ac_ext >&5
26711
26712ac_lo=`expr $ac_mid + 1`
26713 if test $ac_lo -le $ac_mid; then
26714 ac_lo= ac_hi=
26715 break
26716 fi
26717 ac_mid=`expr 2 '*' $ac_mid + 1`
26718fi
26719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26720 done
26721else
26722 echo "$as_me: failed program was:" >&5
26723sed 's/^/| /' conftest.$ac_ext >&5
26724
26725cat >conftest.$ac_ext <<_ACEOF
26726/* confdefs.h. */
26727_ACEOF
26728cat confdefs.h >>conftest.$ac_ext
26729cat >>conftest.$ac_ext <<_ACEOF
26730/* end confdefs.h. */
26731
26732#include <stdio.h>
26733
26734/* What a mess.. many systems have added the (now standard) bit types
26735 * in their own ways, so we need to scan a wide variety of headers to
26736 * find them..
26737 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26738 */
26739#if HAVE_SYS_TYPES_H
26740#include <sys/types.h>
26741#endif
26742#if STDC_HEADERS
26743#include <stdlib.h>
26744#include <stddef.h>
26745#endif
26746#if HAVE_INTTYPES_H
26747#include <inttypes.h>
26748#endif
26749#if HAVE_SYS_BITYPES_H
26750#include <sys/bitypes.h>
26751#endif
26752#if HAVE_SYS_SELECT_H
26753#include <sys/select.h>
26754#endif
26755
26756
26757
26758int
26759main ()
26760{
26761static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
26762test_array [0] = 0
26763
26764 ;
26765 return 0;
26766}
26767_ACEOF
26768rm -f conftest.$ac_objext
26769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26770 (eval $ac_compile) 2>conftest.er1
26771 ac_status=$?
26772 grep -v '^ *+' conftest.er1 >conftest.err
26773 rm -f conftest.er1
26774 cat conftest.err >&5
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); } &&
26777 { ac_try='test -z "$ac_c_werror_flag"
26778 || test ! -s conftest.err'
26779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; } &&
26784 { ac_try='test -s conftest.$ac_objext'
26785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786 (eval $ac_try) 2>&5
26787 ac_status=$?
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); }; }; then
26790 ac_hi=-1 ac_mid=-1
26791 while :; do
26792 cat >conftest.$ac_ext <<_ACEOF
26793/* confdefs.h. */
26794_ACEOF
26795cat confdefs.h >>conftest.$ac_ext
26796cat >>conftest.$ac_ext <<_ACEOF
26797/* end confdefs.h. */
26798
26799#include <stdio.h>
26800
26801/* What a mess.. many systems have added the (now standard) bit types
26802 * in their own ways, so we need to scan a wide variety of headers to
26803 * find them..
26804 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26805 */
26806#if HAVE_SYS_TYPES_H
26807#include <sys/types.h>
26808#endif
26809#if STDC_HEADERS
26810#include <stdlib.h>
26811#include <stddef.h>
26812#endif
26813#if HAVE_INTTYPES_H
26814#include <inttypes.h>
26815#endif
26816#if HAVE_SYS_BITYPES_H
26817#include <sys/bitypes.h>
26818#endif
26819#if HAVE_SYS_SELECT_H
26820#include <sys/select.h>
26821#endif
26822
26823
26824
26825int
26826main ()
26827{
26828static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
26829test_array [0] = 0
26830
26831 ;
26832 return 0;
26833}
26834_ACEOF
26835rm -f conftest.$ac_objext
26836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837 (eval $ac_compile) 2>conftest.er1
26838 ac_status=$?
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_lo=$ac_mid; break
26858else
26859 echo "$as_me: failed program was:" >&5
26860sed 's/^/| /' conftest.$ac_ext >&5
26861
26862ac_hi=`expr '(' $ac_mid ')' - 1`
26863 if test $ac_mid -le $ac_hi; then
26864 ac_lo= ac_hi=
26865 break
26866 fi
26867 ac_mid=`expr 2 '*' $ac_mid`
26868fi
26869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26870 done
26871else
26872 echo "$as_me: failed program was:" >&5
26873sed 's/^/| /' conftest.$ac_ext >&5
26874
26875ac_lo= ac_hi=
26876fi
26877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26878fi
26879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26880# Binary search between lo and hi bounds.
26881while test "x$ac_lo" != "x$ac_hi"; do
26882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26883 cat >conftest.$ac_ext <<_ACEOF
26884/* confdefs.h. */
26885_ACEOF
26886cat confdefs.h >>conftest.$ac_ext
26887cat >>conftest.$ac_ext <<_ACEOF
26888/* end confdefs.h. */
26889
26890#include <stdio.h>
26891
26892/* What a mess.. many systems have added the (now standard) bit types
26893 * in their own ways, so we need to scan a wide variety of headers to
26894 * find them..
26895 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26896 */
26897#if HAVE_SYS_TYPES_H
26898#include <sys/types.h>
26899#endif
26900#if STDC_HEADERS
26901#include <stdlib.h>
26902#include <stddef.h>
26903#endif
26904#if HAVE_INTTYPES_H
26905#include <inttypes.h>
26906#endif
26907#if HAVE_SYS_BITYPES_H
26908#include <sys/bitypes.h>
26909#endif
26910#if HAVE_SYS_SELECT_H
26911#include <sys/select.h>
26912#endif
26913
26914
26915
26916int
26917main ()
26918{
26919static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26920test_array [0] = 0
26921
26922 ;
26923 return 0;
26924}
26925_ACEOF
26926rm -f conftest.$ac_objext
26927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928 (eval $ac_compile) 2>conftest.er1
26929 ac_status=$?
26930 grep -v '^ *+' conftest.er1 >conftest.err
26931 rm -f conftest.er1
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag"
26936 || test ! -s conftest.err'
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; } &&
26942 { ac_try='test -s conftest.$ac_objext'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26945 ac_status=$?
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; }; then
26948 ac_hi=$ac_mid
26949else
26950 echo "$as_me: failed program was:" >&5
26951sed 's/^/| /' conftest.$ac_ext >&5
26952
26953ac_lo=`expr '(' $ac_mid ')' + 1`
26954fi
26955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26956done
26957case $ac_lo in
26958?*) ac_cv_sizeof_char=$ac_lo;;
26959'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
26960See \`config.log' for more details." >&5
26961echo "$as_me: error: cannot compute sizeof (char), 77
26962See \`config.log' for more details." >&2;}
26963 { (exit 1); exit 1; }; } ;;
26964esac
26965else
26966 if test "$cross_compiling" = yes; then
26967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26968See \`config.log' for more details." >&5
26969echo "$as_me: error: cannot run test program while cross compiling
26970See \`config.log' for more details." >&2;}
26971 { (exit 1); exit 1; }; }
26972else
26973 cat >conftest.$ac_ext <<_ACEOF
26974/* confdefs.h. */
26975_ACEOF
26976cat confdefs.h >>conftest.$ac_ext
26977cat >>conftest.$ac_ext <<_ACEOF
26978/* end confdefs.h. */
26979
26980#include <stdio.h>
26981
26982/* What a mess.. many systems have added the (now standard) bit types
26983 * in their own ways, so we need to scan a wide variety of headers to
26984 * find them..
26985 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26986 */
26987#if HAVE_SYS_TYPES_H
26988#include <sys/types.h>
26989#endif
26990#if STDC_HEADERS
26991#include <stdlib.h>
26992#include <stddef.h>
26993#endif
26994#if HAVE_INTTYPES_H
26995#include <inttypes.h>
26996#endif
26997#if HAVE_SYS_BITYPES_H
26998#include <sys/bitypes.h>
26999#endif
27000#if HAVE_SYS_SELECT_H
27001#include <sys/select.h>
27002#endif
27003
27004
27005
27006long longval () { return (long) (sizeof (char)); }
27007unsigned long ulongval () { return (long) (sizeof (char)); }
27008#include <stdio.h>
27009#include <stdlib.h>
27010int
27011main ()
27012{
27013
27014 FILE *f = fopen ("conftest.val", "w");
27015 if (! f)
27016 exit (1);
27017 if (((long) (sizeof (char))) < 0)
27018 {
27019 long i = longval ();
27020 if (i != ((long) (sizeof (char))))
27021 exit (1);
27022 fprintf (f, "%ld\n", i);
27023 }
27024 else
27025 {
27026 unsigned long i = ulongval ();
27027 if (i != ((long) (sizeof (char))))
27028 exit (1);
27029 fprintf (f, "%lu\n", i);
27030 }
27031 exit (ferror (f) || fclose (f) != 0);
27032
27033 ;
27034 return 0;
27035}
27036_ACEOF
27037rm -f conftest$ac_exeext
27038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27039 (eval $ac_link) 2>&5
27040 ac_status=$?
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
27048 ac_cv_sizeof_char=`cat conftest.val`
27049else
27050 echo "$as_me: program exited with status $ac_status" >&5
27051echo "$as_me: failed program was:" >&5
27052sed 's/^/| /' conftest.$ac_ext >&5
27053
27054( exit $ac_status )
27055{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27056See \`config.log' for more details." >&5
27057echo "$as_me: error: cannot compute sizeof (char), 77
27058See \`config.log' for more details." >&2;}
27059 { (exit 1); exit 1; }; }
27060fi
27061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27062fi
27063fi
27064rm -f conftest.val
27065else
27066 ac_cv_sizeof_char=0
27067fi
27068fi
27069echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
27070echo "${ECHO_T}$ac_cv_sizeof_char" >&6
27071cat >>confdefs.h <<_ACEOF
27072#define SIZEOF_CHAR $ac_cv_sizeof_char
27073_ACEOF
27074
27075
27076
27077cat >>confdefs.h <<\_ACEOF
27078#define HAVE_CHAR 1
27079_ACEOF
27080
27081
27082fi
27083
27084
27085echo "$as_me:$LINENO: checking for u_int8_t" >&5
27086echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
27087if test "${ac_cv_type_u_int8_t+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089else
27090 cat >conftest.$ac_ext <<_ACEOF
27091/* confdefs.h. */
27092_ACEOF
27093cat confdefs.h >>conftest.$ac_ext
27094cat >>conftest.$ac_ext <<_ACEOF
27095/* end confdefs.h. */
27096
27097/* What a mess.. many systems have added the (now standard) bit types
27098 * in their own ways, so we need to scan a wide variety of headers to
27099 * find them..
27100 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27101 */
27102#if HAVE_SYS_TYPES_H
27103#include <sys/types.h>
27104#endif
27105#if STDC_HEADERS
27106#include <stdlib.h>
27107#include <stddef.h>
27108#endif
27109#if HAVE_INTTYPES_H
27110#include <inttypes.h>
27111#endif
27112#if HAVE_SYS_BITYPES_H
27113#include <sys/bitypes.h>
27114#endif
27115#if HAVE_SYS_SELECT_H
27116#include <sys/select.h>
27117#endif
27118
27119
27120int
27121main ()
27122{
27123if ((u_int8_t *) 0)
27124 return 0;
27125if (sizeof (u_int8_t))
27126 return 0;
27127 ;
27128 return 0;
27129}
27130_ACEOF
27131rm -f conftest.$ac_objext
27132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>conftest.er1
27134 ac_status=$?
27135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
27140 { ac_try='test -z "$ac_c_werror_flag"
27141 || test ! -s conftest.err'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; }; then
27153 ac_cv_type_u_int8_t=yes
27154else
27155 echo "$as_me: failed program was:" >&5
27156sed 's/^/| /' conftest.$ac_ext >&5
27157
27158ac_cv_type_u_int8_t=no
27159fi
27160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161fi
27162echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
27163echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
27164if test $ac_cv_type_u_int8_t = yes; then
27165
27166 echo "$as_me:$LINENO: checking for u_int8_t" >&5
27167echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
27168if test "${ac_cv_type_u_int8_t+set}" = set; then
27169 echo $ECHO_N "(cached) $ECHO_C" >&6
27170else
27171 cat >conftest.$ac_ext <<_ACEOF
27172/* confdefs.h. */
27173_ACEOF
27174cat confdefs.h >>conftest.$ac_ext
27175cat >>conftest.$ac_ext <<_ACEOF
27176/* end confdefs.h. */
27177
27178#include <stdio.h>
27179
27180/* What a mess.. many systems have added the (now standard) bit types
27181 * in their own ways, so we need to scan a wide variety of headers to
27182 * find them..
27183 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27184 */
27185#if HAVE_SYS_TYPES_H
27186#include <sys/types.h>
27187#endif
27188#if STDC_HEADERS
27189#include <stdlib.h>
27190#include <stddef.h>
27191#endif
27192#if HAVE_INTTYPES_H
27193#include <inttypes.h>
27194#endif
27195#if HAVE_SYS_BITYPES_H
27196#include <sys/bitypes.h>
27197#endif
27198#if HAVE_SYS_SELECT_H
27199#include <sys/select.h>
27200#endif
27201
27202
27203
27204int
27205main ()
27206{
27207if ((u_int8_t *) 0)
27208 return 0;
27209if (sizeof (u_int8_t))
27210 return 0;
27211 ;
27212 return 0;
27213}
27214_ACEOF
27215rm -f conftest.$ac_objext
27216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217 (eval $ac_compile) 2>conftest.er1
27218 ac_status=$?
27219 grep -v '^ *+' conftest.er1 >conftest.err
27220 rm -f conftest.er1
27221 cat conftest.err >&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } &&
27224 { ac_try='test -z "$ac_c_werror_flag"
27225 || test ! -s conftest.err'
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; } &&
27231 { ac_try='test -s conftest.$ac_objext'
27232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233 (eval $ac_try) 2>&5
27234 ac_status=$?
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; }; then
27237 ac_cv_type_u_int8_t=yes
27238else
27239 echo "$as_me: failed program was:" >&5
27240sed 's/^/| /' conftest.$ac_ext >&5
27241
27242ac_cv_type_u_int8_t=no
27243fi
27244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27245fi
27246echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
27247echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
27248
27249echo "$as_me:$LINENO: checking size of u_int8_t" >&5
27250echo $ECHO_N "checking size of u_int8_t... $ECHO_C" >&6
27251if test "${ac_cv_sizeof_u_int8_t+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27253else
27254 if test "$ac_cv_type_u_int8_t" = yes; then
27255 # The cast to unsigned long works around a bug in the HP C Compiler
27256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27258 # This bug is HP SR number 8606223364.
27259 if test "$cross_compiling" = yes; then
27260 # Depending upon the size, compute the lo and hi bounds.
27261cat >conftest.$ac_ext <<_ACEOF
27262/* confdefs.h. */
27263_ACEOF
27264cat confdefs.h >>conftest.$ac_ext
27265cat >>conftest.$ac_ext <<_ACEOF
27266/* end confdefs.h. */
27267
27268#include <stdio.h>
27269
27270/* What a mess.. many systems have added the (now standard) bit types
27271 * in their own ways, so we need to scan a wide variety of headers to
27272 * find them..
27273 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27274 */
27275#if HAVE_SYS_TYPES_H
27276#include <sys/types.h>
27277#endif
27278#if STDC_HEADERS
27279#include <stdlib.h>
27280#include <stddef.h>
27281#endif
27282#if HAVE_INTTYPES_H
27283#include <inttypes.h>
27284#endif
27285#if HAVE_SYS_BITYPES_H
27286#include <sys/bitypes.h>
27287#endif
27288#if HAVE_SYS_SELECT_H
27289#include <sys/select.h>
27290#endif
27291
27292
27293
27294int
27295main ()
27296{
27297static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) >= 0)];
27298test_array [0] = 0
27299
27300 ;
27301 return 0;
27302}
27303_ACEOF
27304rm -f conftest.$ac_objext
27305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27306 (eval $ac_compile) 2>conftest.er1
27307 ac_status=$?
27308 grep -v '^ *+' conftest.er1 >conftest.err
27309 rm -f conftest.er1
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag"
27314 || test ! -s conftest.err'
27315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316 (eval $ac_try) 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest.$ac_objext'
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27326 ac_lo=0 ac_mid=0
27327 while :; do
27328 cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
27334
27335#include <stdio.h>
27336
27337/* What a mess.. many systems have added the (now standard) bit types
27338 * in their own ways, so we need to scan a wide variety of headers to
27339 * find them..
27340 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27341 */
27342#if HAVE_SYS_TYPES_H
27343#include <sys/types.h>
27344#endif
27345#if STDC_HEADERS
27346#include <stdlib.h>
27347#include <stddef.h>
27348#endif
27349#if HAVE_INTTYPES_H
27350#include <inttypes.h>
27351#endif
27352#if HAVE_SYS_BITYPES_H
27353#include <sys/bitypes.h>
27354#endif
27355#if HAVE_SYS_SELECT_H
27356#include <sys/select.h>
27357#endif
27358
27359
27360
27361int
27362main ()
27363{
27364static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) <= $ac_mid)];
27365test_array [0] = 0
27366
27367 ;
27368 return 0;
27369}
27370_ACEOF
27371rm -f conftest.$ac_objext
27372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27373 (eval $ac_compile) 2>conftest.er1
27374 ac_status=$?
27375 grep -v '^ *+' conftest.er1 >conftest.err
27376 rm -f conftest.er1
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } &&
27380 { ac_try='test -z "$ac_c_werror_flag"
27381 || test ! -s conftest.err'
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; } &&
27387 { ac_try='test -s conftest.$ac_objext'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
27393 ac_hi=$ac_mid; break
27394else
27395 echo "$as_me: failed program was:" >&5
27396sed 's/^/| /' conftest.$ac_ext >&5
27397
27398ac_lo=`expr $ac_mid + 1`
27399 if test $ac_lo -le $ac_mid; then
27400 ac_lo= ac_hi=
27401 break
27402 fi
27403 ac_mid=`expr 2 '*' $ac_mid + 1`
27404fi
27405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27406 done
27407else
27408 echo "$as_me: failed program was:" >&5
27409sed 's/^/| /' conftest.$ac_ext >&5
27410
27411cat >conftest.$ac_ext <<_ACEOF
27412/* confdefs.h. */
27413_ACEOF
27414cat confdefs.h >>conftest.$ac_ext
27415cat >>conftest.$ac_ext <<_ACEOF
27416/* end confdefs.h. */
27417
27418#include <stdio.h>
27419
27420/* What a mess.. many systems have added the (now standard) bit types
27421 * in their own ways, so we need to scan a wide variety of headers to
27422 * find them..
27423 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27424 */
27425#if HAVE_SYS_TYPES_H
27426#include <sys/types.h>
27427#endif
27428#if STDC_HEADERS
27429#include <stdlib.h>
27430#include <stddef.h>
27431#endif
27432#if HAVE_INTTYPES_H
27433#include <inttypes.h>
27434#endif
27435#if HAVE_SYS_BITYPES_H
27436#include <sys/bitypes.h>
27437#endif
27438#if HAVE_SYS_SELECT_H
27439#include <sys/select.h>
27440#endif
27441
27442
27443
27444int
27445main ()
27446{
27447static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) < 0)];
27448test_array [0] = 0
27449
27450 ;
27451 return 0;
27452}
27453_ACEOF
27454rm -f conftest.$ac_objext
27455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27456 (eval $ac_compile) 2>conftest.er1
27457 ac_status=$?
27458 grep -v '^ *+' conftest.er1 >conftest.err
27459 rm -f conftest.er1
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag"
27464 || test ! -s conftest.err'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; } &&
27470 { ac_try='test -s conftest.$ac_objext'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
27476 ac_hi=-1 ac_mid=-1
27477 while :; do
27478 cat >conftest.$ac_ext <<_ACEOF
27479/* confdefs.h. */
27480_ACEOF
27481cat confdefs.h >>conftest.$ac_ext
27482cat >>conftest.$ac_ext <<_ACEOF
27483/* end confdefs.h. */
27484
27485#include <stdio.h>
27486
27487/* What a mess.. many systems have added the (now standard) bit types
27488 * in their own ways, so we need to scan a wide variety of headers to
27489 * find them..
27490 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27491 */
27492#if HAVE_SYS_TYPES_H
27493#include <sys/types.h>
27494#endif
27495#if STDC_HEADERS
27496#include <stdlib.h>
27497#include <stddef.h>
27498#endif
27499#if HAVE_INTTYPES_H
27500#include <inttypes.h>
27501#endif
27502#if HAVE_SYS_BITYPES_H
27503#include <sys/bitypes.h>
27504#endif
27505#if HAVE_SYS_SELECT_H
27506#include <sys/select.h>
27507#endif
27508
27509
27510
27511int
27512main ()
27513{
27514static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) >= $ac_mid)];
27515test_array [0] = 0
27516
27517 ;
27518 return 0;
27519}
27520_ACEOF
27521rm -f conftest.$ac_objext
27522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27523 (eval $ac_compile) 2>conftest.er1
27524 ac_status=$?
27525 grep -v '^ *+' conftest.er1 >conftest.err
27526 rm -f conftest.er1
27527 cat conftest.err >&5
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); } &&
27530 { ac_try='test -z "$ac_c_werror_flag"
27531 || test ! -s conftest.err'
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27534 ac_status=$?
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; } &&
27537 { ac_try='test -s conftest.$ac_objext'
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; }; then
27543 ac_lo=$ac_mid; break
27544else
27545 echo "$as_me: failed program was:" >&5
27546sed 's/^/| /' conftest.$ac_ext >&5
27547
27548ac_hi=`expr '(' $ac_mid ')' - 1`
27549 if test $ac_mid -le $ac_hi; then
27550 ac_lo= ac_hi=
27551 break
27552 fi
27553 ac_mid=`expr 2 '*' $ac_mid`
27554fi
27555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27556 done
27557else
27558 echo "$as_me: failed program was:" >&5
27559sed 's/^/| /' conftest.$ac_ext >&5
27560
27561ac_lo= ac_hi=
27562fi
27563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27564fi
27565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27566# Binary search between lo and hi bounds.
27567while test "x$ac_lo" != "x$ac_hi"; do
27568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27569 cat >conftest.$ac_ext <<_ACEOF
27570/* confdefs.h. */
27571_ACEOF
27572cat confdefs.h >>conftest.$ac_ext
27573cat >>conftest.$ac_ext <<_ACEOF
27574/* end confdefs.h. */
27575
27576#include <stdio.h>
27577
27578/* What a mess.. many systems have added the (now standard) bit types
27579 * in their own ways, so we need to scan a wide variety of headers to
27580 * find them..
27581 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27582 */
27583#if HAVE_SYS_TYPES_H
27584#include <sys/types.h>
27585#endif
27586#if STDC_HEADERS
27587#include <stdlib.h>
27588#include <stddef.h>
27589#endif
27590#if HAVE_INTTYPES_H
27591#include <inttypes.h>
27592#endif
27593#if HAVE_SYS_BITYPES_H
27594#include <sys/bitypes.h>
27595#endif
27596#if HAVE_SYS_SELECT_H
27597#include <sys/select.h>
27598#endif
27599
27600
27601
27602int
27603main ()
27604{
27605static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) <= $ac_mid)];
27606test_array [0] = 0
27607
27608 ;
27609 return 0;
27610}
27611_ACEOF
27612rm -f conftest.$ac_objext
27613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27614 (eval $ac_compile) 2>conftest.er1
27615 ac_status=$?
27616 grep -v '^ *+' conftest.er1 >conftest.err
27617 rm -f conftest.er1
27618 cat conftest.err >&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); } &&
27621 { ac_try='test -z "$ac_c_werror_flag"
27622 || test ! -s conftest.err'
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; } &&
27628 { ac_try='test -s conftest.$ac_objext'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27631 ac_status=$?
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; }; then
27634 ac_hi=$ac_mid
27635else
27636 echo "$as_me: failed program was:" >&5
27637sed 's/^/| /' conftest.$ac_ext >&5
27638
27639ac_lo=`expr '(' $ac_mid ')' + 1`
27640fi
27641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27642done
27643case $ac_lo in
27644?*) ac_cv_sizeof_u_int8_t=$ac_lo;;
27645'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t), 77
27646See \`config.log' for more details." >&5
27647echo "$as_me: error: cannot compute sizeof (u_int8_t), 77
27648See \`config.log' for more details." >&2;}
27649 { (exit 1); exit 1; }; } ;;
27650esac
27651else
27652 if test "$cross_compiling" = yes; then
27653 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27654See \`config.log' for more details." >&5
27655echo "$as_me: error: cannot run test program while cross compiling
27656See \`config.log' for more details." >&2;}
27657 { (exit 1); exit 1; }; }
27658else
27659 cat >conftest.$ac_ext <<_ACEOF
27660/* confdefs.h. */
27661_ACEOF
27662cat confdefs.h >>conftest.$ac_ext
27663cat >>conftest.$ac_ext <<_ACEOF
27664/* end confdefs.h. */
27665
27666#include <stdio.h>
27667
27668/* What a mess.. many systems have added the (now standard) bit types
27669 * in their own ways, so we need to scan a wide variety of headers to
27670 * find them..
27671 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27672 */
27673#if HAVE_SYS_TYPES_H
27674#include <sys/types.h>
27675#endif
27676#if STDC_HEADERS
27677#include <stdlib.h>
27678#include <stddef.h>
27679#endif
27680#if HAVE_INTTYPES_H
27681#include <inttypes.h>
27682#endif
27683#if HAVE_SYS_BITYPES_H
27684#include <sys/bitypes.h>
27685#endif
27686#if HAVE_SYS_SELECT_H
27687#include <sys/select.h>
27688#endif
27689
27690
27691
27692long longval () { return (long) (sizeof (u_int8_t)); }
27693unsigned long ulongval () { return (long) (sizeof (u_int8_t)); }
27694#include <stdio.h>
27695#include <stdlib.h>
27696int
27697main ()
27698{
27699
27700 FILE *f = fopen ("conftest.val", "w");
27701 if (! f)
27702 exit (1);
27703 if (((long) (sizeof (u_int8_t))) < 0)
27704 {
27705 long i = longval ();
27706 if (i != ((long) (sizeof (u_int8_t))))
27707 exit (1);
27708 fprintf (f, "%ld\n", i);
27709 }
27710 else
27711 {
27712 unsigned long i = ulongval ();
27713 if (i != ((long) (sizeof (u_int8_t))))
27714 exit (1);
27715 fprintf (f, "%lu\n", i);
27716 }
27717 exit (ferror (f) || fclose (f) != 0);
27718
27719 ;
27720 return 0;
27721}
27722_ACEOF
27723rm -f conftest$ac_exeext
27724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27725 (eval $ac_link) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27731 ac_status=$?
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734 ac_cv_sizeof_u_int8_t=`cat conftest.val`
27735else
27736 echo "$as_me: program exited with status $ac_status" >&5
27737echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740( exit $ac_status )
27741{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t), 77
27742See \`config.log' for more details." >&5
27743echo "$as_me: error: cannot compute sizeof (u_int8_t), 77
27744See \`config.log' for more details." >&2;}
27745 { (exit 1); exit 1; }; }
27746fi
27747rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27748fi
27749fi
27750rm -f conftest.val
27751else
27752 ac_cv_sizeof_u_int8_t=0
27753fi
27754fi
27755echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int8_t" >&5
27756echo "${ECHO_T}$ac_cv_sizeof_u_int8_t" >&6
27757cat >>confdefs.h <<_ACEOF
27758#define SIZEOF_U_INT8_T $ac_cv_sizeof_u_int8_t
27759_ACEOF
27760
27761
27762
27763cat >>confdefs.h <<\_ACEOF
27764#define HAVE_U_INT8_T 1
27765_ACEOF
27766
27767
27768fi
27769
27770
27771echo "$as_me:$LINENO: checking for uint8_t" >&5
27772echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
27773if test "${ac_cv_type_uint8_t+set}" = set; then
27774 echo $ECHO_N "(cached) $ECHO_C" >&6
27775else
27776 cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h. */
27782
27783/* What a mess.. many systems have added the (now standard) bit types
27784 * in their own ways, so we need to scan a wide variety of headers to
27785 * find them..
27786 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27787 */
27788#if HAVE_SYS_TYPES_H
27789#include <sys/types.h>
27790#endif
27791#if STDC_HEADERS
27792#include <stdlib.h>
27793#include <stddef.h>
27794#endif
27795#if HAVE_INTTYPES_H
27796#include <inttypes.h>
27797#endif
27798#if HAVE_SYS_BITYPES_H
27799#include <sys/bitypes.h>
27800#endif
27801#if HAVE_SYS_SELECT_H
27802#include <sys/select.h>
27803#endif
27804
27805
27806int
27807main ()
27808{
27809if ((uint8_t *) 0)
27810 return 0;
27811if (sizeof (uint8_t))
27812 return 0;
27813 ;
27814 return 0;
27815}
27816_ACEOF
27817rm -f conftest.$ac_objext
27818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27819 (eval $ac_compile) 2>conftest.er1
27820 ac_status=$?
27821 grep -v '^ *+' conftest.er1 >conftest.err
27822 rm -f conftest.er1
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } &&
27826 { ac_try='test -z "$ac_c_werror_flag"
27827 || test ! -s conftest.err'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27830 ac_status=$?
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; } &&
27833 { ac_try='test -s conftest.$ac_objext'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 ac_cv_type_uint8_t=yes
27840else
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
27844ac_cv_type_uint8_t=no
27845fi
27846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27847fi
27848echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
27849echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
27850if test $ac_cv_type_uint8_t = yes; then
27851
27852 echo "$as_me:$LINENO: checking for uint8_t" >&5
27853echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
27854if test "${ac_cv_type_uint8_t+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27856else
27857 cat >conftest.$ac_ext <<_ACEOF
27858/* confdefs.h. */
27859_ACEOF
27860cat confdefs.h >>conftest.$ac_ext
27861cat >>conftest.$ac_ext <<_ACEOF
27862/* end confdefs.h. */
27863
27864#include <stdio.h>
27865
27866/* What a mess.. many systems have added the (now standard) bit types
27867 * in their own ways, so we need to scan a wide variety of headers to
27868 * find them..
27869 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27870 */
27871#if HAVE_SYS_TYPES_H
27872#include <sys/types.h>
27873#endif
27874#if STDC_HEADERS
27875#include <stdlib.h>
27876#include <stddef.h>
27877#endif
27878#if HAVE_INTTYPES_H
27879#include <inttypes.h>
27880#endif
27881#if HAVE_SYS_BITYPES_H
27882#include <sys/bitypes.h>
27883#endif
27884#if HAVE_SYS_SELECT_H
27885#include <sys/select.h>
27886#endif
27887
27888
27889
27890int
27891main ()
27892{
27893if ((uint8_t *) 0)
27894 return 0;
27895if (sizeof (uint8_t))
27896 return 0;
27897 ;
27898 return 0;
27899}
27900_ACEOF
27901rm -f conftest.$ac_objext
27902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27903 (eval $ac_compile) 2>conftest.er1
27904 ac_status=$?
27905 grep -v '^ *+' conftest.er1 >conftest.err
27906 rm -f conftest.er1
27907 cat conftest.err >&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); } &&
27910 { ac_try='test -z "$ac_c_werror_flag"
27911 || test ! -s conftest.err'
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27914 ac_status=$?
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; } &&
27917 { ac_try='test -s conftest.$ac_objext'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27923 ac_cv_type_uint8_t=yes
27924else
27925 echo "$as_me: failed program was:" >&5
27926sed 's/^/| /' conftest.$ac_ext >&5
27927
27928ac_cv_type_uint8_t=no
27929fi
27930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27931fi
27932echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
27933echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
27934
27935echo "$as_me:$LINENO: checking size of uint8_t" >&5
27936echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
27937if test "${ac_cv_sizeof_uint8_t+set}" = set; then
27938 echo $ECHO_N "(cached) $ECHO_C" >&6
27939else
27940 if test "$ac_cv_type_uint8_t" = yes; then
27941 # The cast to unsigned long works around a bug in the HP C Compiler
27942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27944 # This bug is HP SR number 8606223364.
27945 if test "$cross_compiling" = yes; then
27946 # Depending upon the size, compute the lo and hi bounds.
27947cat >conftest.$ac_ext <<_ACEOF
27948/* confdefs.h. */
27949_ACEOF
27950cat confdefs.h >>conftest.$ac_ext
27951cat >>conftest.$ac_ext <<_ACEOF
27952/* end confdefs.h. */
27953
27954#include <stdio.h>
27955
27956/* What a mess.. many systems have added the (now standard) bit types
27957 * in their own ways, so we need to scan a wide variety of headers to
27958 * find them..
27959 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27960 */
27961#if HAVE_SYS_TYPES_H
27962#include <sys/types.h>
27963#endif
27964#if STDC_HEADERS
27965#include <stdlib.h>
27966#include <stddef.h>
27967#endif
27968#if HAVE_INTTYPES_H
27969#include <inttypes.h>
27970#endif
27971#if HAVE_SYS_BITYPES_H
27972#include <sys/bitypes.h>
27973#endif
27974#if HAVE_SYS_SELECT_H
27975#include <sys/select.h>
27976#endif
27977
27978
27979
27980int
27981main ()
27982{
27983static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) >= 0)];
27984test_array [0] = 0
27985
27986 ;
27987 return 0;
27988}
27989_ACEOF
27990rm -f conftest.$ac_objext
27991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27992 (eval $ac_compile) 2>conftest.er1
27993 ac_status=$?
27994 grep -v '^ *+' conftest.er1 >conftest.err
27995 rm -f conftest.er1
27996 cat conftest.err >&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); } &&
27999 { ac_try='test -z "$ac_c_werror_flag"
28000 || test ! -s conftest.err'
28001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28002 (eval $ac_try) 2>&5
28003 ac_status=$?
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; } &&
28006 { ac_try='test -s conftest.$ac_objext'
28007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008 (eval $ac_try) 2>&5
28009 ac_status=$?
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); }; }; then
28012 ac_lo=0 ac_mid=0
28013 while :; do
28014 cat >conftest.$ac_ext <<_ACEOF
28015/* confdefs.h. */
28016_ACEOF
28017cat confdefs.h >>conftest.$ac_ext
28018cat >>conftest.$ac_ext <<_ACEOF
28019/* end confdefs.h. */
28020
28021#include <stdio.h>
28022
28023/* What a mess.. many systems have added the (now standard) bit types
28024 * in their own ways, so we need to scan a wide variety of headers to
28025 * find them..
28026 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28027 */
28028#if HAVE_SYS_TYPES_H
28029#include <sys/types.h>
28030#endif
28031#if STDC_HEADERS
28032#include <stdlib.h>
28033#include <stddef.h>
28034#endif
28035#if HAVE_INTTYPES_H
28036#include <inttypes.h>
28037#endif
28038#if HAVE_SYS_BITYPES_H
28039#include <sys/bitypes.h>
28040#endif
28041#if HAVE_SYS_SELECT_H
28042#include <sys/select.h>
28043#endif
28044
28045
28046
28047int
28048main ()
28049{
28050static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) <= $ac_mid)];
28051test_array [0] = 0
28052
28053 ;
28054 return 0;
28055}
28056_ACEOF
28057rm -f conftest.$ac_objext
28058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28059 (eval $ac_compile) 2>conftest.er1
28060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; } &&
28073 { ac_try='test -s conftest.$ac_objext'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28079 ac_hi=$ac_mid; break
28080else
28081 echo "$as_me: failed program was:" >&5
28082sed 's/^/| /' conftest.$ac_ext >&5
28083
28084ac_lo=`expr $ac_mid + 1`
28085 if test $ac_lo -le $ac_mid; then
28086 ac_lo= ac_hi=
28087 break
28088 fi
28089 ac_mid=`expr 2 '*' $ac_mid + 1`
28090fi
28091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28092 done
28093else
28094 echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
28097cat >conftest.$ac_ext <<_ACEOF
28098/* confdefs.h. */
28099_ACEOF
28100cat confdefs.h >>conftest.$ac_ext
28101cat >>conftest.$ac_ext <<_ACEOF
28102/* end confdefs.h. */
28103
28104#include <stdio.h>
28105
28106/* What a mess.. many systems have added the (now standard) bit types
28107 * in their own ways, so we need to scan a wide variety of headers to
28108 * find them..
28109 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28110 */
28111#if HAVE_SYS_TYPES_H
28112#include <sys/types.h>
28113#endif
28114#if STDC_HEADERS
28115#include <stdlib.h>
28116#include <stddef.h>
28117#endif
28118#if HAVE_INTTYPES_H
28119#include <inttypes.h>
28120#endif
28121#if HAVE_SYS_BITYPES_H
28122#include <sys/bitypes.h>
28123#endif
28124#if HAVE_SYS_SELECT_H
28125#include <sys/select.h>
28126#endif
28127
28128
28129
28130int
28131main ()
28132{
28133static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) < 0)];
28134test_array [0] = 0
28135
28136 ;
28137 return 0;
28138}
28139_ACEOF
28140rm -f conftest.$ac_objext
28141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28142 (eval $ac_compile) 2>conftest.er1
28143 ac_status=$?
28144 grep -v '^ *+' conftest.er1 >conftest.err
28145 rm -f conftest.er1
28146 cat conftest.err >&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } &&
28149 { ac_try='test -z "$ac_c_werror_flag"
28150 || test ! -s conftest.err'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; } &&
28156 { ac_try='test -s conftest.$ac_objext'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28162 ac_hi=-1 ac_mid=-1
28163 while :; do
28164 cat >conftest.$ac_ext <<_ACEOF
28165/* confdefs.h. */
28166_ACEOF
28167cat confdefs.h >>conftest.$ac_ext
28168cat >>conftest.$ac_ext <<_ACEOF
28169/* end confdefs.h. */
28170
28171#include <stdio.h>
28172
28173/* What a mess.. many systems have added the (now standard) bit types
28174 * in their own ways, so we need to scan a wide variety of headers to
28175 * find them..
28176 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28177 */
28178#if HAVE_SYS_TYPES_H
28179#include <sys/types.h>
28180#endif
28181#if STDC_HEADERS
28182#include <stdlib.h>
28183#include <stddef.h>
28184#endif
28185#if HAVE_INTTYPES_H
28186#include <inttypes.h>
28187#endif
28188#if HAVE_SYS_BITYPES_H
28189#include <sys/bitypes.h>
28190#endif
28191#if HAVE_SYS_SELECT_H
28192#include <sys/select.h>
28193#endif
28194
28195
28196
28197int
28198main ()
28199{
28200static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) >= $ac_mid)];
28201test_array [0] = 0
28202
28203 ;
28204 return 0;
28205}
28206_ACEOF
28207rm -f conftest.$ac_objext
28208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28209 (eval $ac_compile) 2>conftest.er1
28210 ac_status=$?
28211 grep -v '^ *+' conftest.er1 >conftest.err
28212 rm -f conftest.er1
28213 cat conftest.err >&5
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); } &&
28216 { ac_try='test -z "$ac_c_werror_flag"
28217 || test ! -s conftest.err'
28218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28219 (eval $ac_try) 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; } &&
28223 { ac_try='test -s conftest.$ac_objext'
28224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28225 (eval $ac_try) 2>&5
28226 ac_status=$?
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; }; then
28229 ac_lo=$ac_mid; break
28230else
28231 echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
28234ac_hi=`expr '(' $ac_mid ')' - 1`
28235 if test $ac_mid -le $ac_hi; then
28236 ac_lo= ac_hi=
28237 break
28238 fi
28239 ac_mid=`expr 2 '*' $ac_mid`
28240fi
28241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28242 done
28243else
28244 echo "$as_me: failed program was:" >&5
28245sed 's/^/| /' conftest.$ac_ext >&5
28246
28247ac_lo= ac_hi=
28248fi
28249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28250fi
28251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28252# Binary search between lo and hi bounds.
28253while test "x$ac_lo" != "x$ac_hi"; do
28254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28255 cat >conftest.$ac_ext <<_ACEOF
28256/* confdefs.h. */
28257_ACEOF
28258cat confdefs.h >>conftest.$ac_ext
28259cat >>conftest.$ac_ext <<_ACEOF
28260/* end confdefs.h. */
28261
28262#include <stdio.h>
28263
28264/* What a mess.. many systems have added the (now standard) bit types
28265 * in their own ways, so we need to scan a wide variety of headers to
28266 * find them..
28267 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28268 */
28269#if HAVE_SYS_TYPES_H
28270#include <sys/types.h>
28271#endif
28272#if STDC_HEADERS
28273#include <stdlib.h>
28274#include <stddef.h>
28275#endif
28276#if HAVE_INTTYPES_H
28277#include <inttypes.h>
28278#endif
28279#if HAVE_SYS_BITYPES_H
28280#include <sys/bitypes.h>
28281#endif
28282#if HAVE_SYS_SELECT_H
28283#include <sys/select.h>
28284#endif
28285
28286
28287
28288int
28289main ()
28290{
28291static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) <= $ac_mid)];
28292test_array [0] = 0
28293
28294 ;
28295 return 0;
28296}
28297_ACEOF
28298rm -f conftest.$ac_objext
28299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28300 (eval $ac_compile) 2>conftest.er1
28301 ac_status=$?
28302 grep -v '^ *+' conftest.er1 >conftest.err
28303 rm -f conftest.er1
28304 cat conftest.err >&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } &&
28307 { ac_try='test -z "$ac_c_werror_flag"
28308 || test ! -s conftest.err'
28309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); }; } &&
28314 { ac_try='test -s conftest.$ac_objext'
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28317 ac_status=$?
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; }; then
28320 ac_hi=$ac_mid
28321else
28322 echo "$as_me: failed program was:" >&5
28323sed 's/^/| /' conftest.$ac_ext >&5
28324
28325ac_lo=`expr '(' $ac_mid ')' + 1`
28326fi
28327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28328done
28329case $ac_lo in
28330?*) ac_cv_sizeof_uint8_t=$ac_lo;;
28331'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t), 77
28332See \`config.log' for more details." >&5
28333echo "$as_me: error: cannot compute sizeof (uint8_t), 77
28334See \`config.log' for more details." >&2;}
28335 { (exit 1); exit 1; }; } ;;
28336esac
28337else
28338 if test "$cross_compiling" = yes; then
28339 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28340See \`config.log' for more details." >&5
28341echo "$as_me: error: cannot run test program while cross compiling
28342See \`config.log' for more details." >&2;}
28343 { (exit 1); exit 1; }; }
28344else
28345 cat >conftest.$ac_ext <<_ACEOF
28346/* confdefs.h. */
28347_ACEOF
28348cat confdefs.h >>conftest.$ac_ext
28349cat >>conftest.$ac_ext <<_ACEOF
28350/* end confdefs.h. */
28351
28352#include <stdio.h>
28353
28354/* What a mess.. many systems have added the (now standard) bit types
28355 * in their own ways, so we need to scan a wide variety of headers to
28356 * find them..
28357 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28358 */
28359#if HAVE_SYS_TYPES_H
28360#include <sys/types.h>
28361#endif
28362#if STDC_HEADERS
28363#include <stdlib.h>
28364#include <stddef.h>
28365#endif
28366#if HAVE_INTTYPES_H
28367#include <inttypes.h>
28368#endif
28369#if HAVE_SYS_BITYPES_H
28370#include <sys/bitypes.h>
28371#endif
28372#if HAVE_SYS_SELECT_H
28373#include <sys/select.h>
28374#endif
28375
28376
28377
28378long longval () { return (long) (sizeof (uint8_t)); }
28379unsigned long ulongval () { return (long) (sizeof (uint8_t)); }
28380#include <stdio.h>
28381#include <stdlib.h>
28382int
28383main ()
28384{
28385
28386 FILE *f = fopen ("conftest.val", "w");
28387 if (! f)
28388 exit (1);
28389 if (((long) (sizeof (uint8_t))) < 0)
28390 {
28391 long i = longval ();
28392 if (i != ((long) (sizeof (uint8_t))))
28393 exit (1);
28394 fprintf (f, "%ld\n", i);
28395 }
28396 else
28397 {
28398 unsigned long i = ulongval ();
28399 if (i != ((long) (sizeof (uint8_t))))
28400 exit (1);
28401 fprintf (f, "%lu\n", i);
28402 }
28403 exit (ferror (f) || fclose (f) != 0);
28404
28405 ;
28406 return 0;
28407}
28408_ACEOF
28409rm -f conftest$ac_exeext
28410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28411 (eval $ac_link) 2>&5
28412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
28420 ac_cv_sizeof_uint8_t=`cat conftest.val`
28421else
28422 echo "$as_me: program exited with status $ac_status" >&5
28423echo "$as_me: failed program was:" >&5
28424sed 's/^/| /' conftest.$ac_ext >&5
28425
28426( exit $ac_status )
28427{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t), 77
28428See \`config.log' for more details." >&5
28429echo "$as_me: error: cannot compute sizeof (uint8_t), 77
28430See \`config.log' for more details." >&2;}
28431 { (exit 1); exit 1; }; }
28432fi
28433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28434fi
28435fi
28436rm -f conftest.val
28437else
28438 ac_cv_sizeof_uint8_t=0
28439fi
28440fi
28441echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
28442echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
28443cat >>confdefs.h <<_ACEOF
28444#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
28445_ACEOF
28446
28447
28448
28449cat >>confdefs.h <<\_ACEOF
28450#define HAVE_UINT8_T 1
28451_ACEOF
28452
28453
28454fi
28455
28456
33f5f8b9 28457echo "$as_me:$LINENO: checking for int16_t" >&5
28458echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
28459if test "${ac_cv_type_int16_t+set}" = set; then
28460 echo $ECHO_N "(cached) $ECHO_C" >&6
b65c7b0d 28461else
33f5f8b9 28462 cat >conftest.$ac_ext <<_ACEOF
ad21602a 28463/* confdefs.h. */
28464_ACEOF
28465cat confdefs.h >>conftest.$ac_ext
28466cat >>conftest.$ac_ext <<_ACEOF
28467/* end confdefs.h. */
33f5f8b9 28468
28469/* What a mess.. many systems have added the (now standard) bit types
28470 * in their own ways, so we need to scan a wide variety of headers to
28471 * find them..
28472 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28473 */
28474#if HAVE_SYS_TYPES_H
28475#include <sys/types.h>
28476#endif
28477#if STDC_HEADERS
28478#include <stdlib.h>
28479#include <stddef.h>
28480#endif
28481#if HAVE_INTTYPES_H
28482#include <inttypes.h>
28483#endif
28484#if HAVE_SYS_BITYPES_H
28485#include <sys/bitypes.h>
28486#endif
11e71ab8 28487#if HAVE_SYS_SELECT_H
28488#include <sys/select.h>
28489#endif
33f5f8b9 28490
28491
33f5f8b9 28492int
28493main ()
b65c7b0d 28494{
33f5f8b9 28495if ((int16_t *) 0)
28496 return 0;
28497if (sizeof (int16_t))
28498 return 0;
28499 ;
28500 return 0;
b65c7b0d 28501}
33f5f8b9 28502_ACEOF
28503rm -f conftest.$ac_objext
28504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28505 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28506 ac_status=$?
af3004ff 28507 grep -v '^ *+' conftest.er1 >conftest.err
28508 rm -f conftest.er1
28509 cat conftest.err >&5
33f5f8b9 28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); } &&
6263d81f 28512 { ac_try='test -z "$ac_c_werror_flag"
28513 || test ! -s conftest.err'
af3004ff 28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; } &&
28519 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 28520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28521 (eval $ac_try) 2>&5
28522 ac_status=$?
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; }; then
28525 ac_cv_type_int16_t=yes
b65c7b0d 28526else
33f5f8b9 28527 echo "$as_me: failed program was:" >&5
ad21602a 28528sed 's/^/| /' conftest.$ac_ext >&5
28529
33f5f8b9 28530ac_cv_type_int16_t=no
090089c4 28531fi
af3004ff 28532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b65c7b0d 28533fi
33f5f8b9 28534echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
28535echo "${ECHO_T}$ac_cv_type_int16_t" >&6
28536if test $ac_cv_type_int16_t = yes; then
28537
ca732765 28538 echo "$as_me:$LINENO: checking for int16_t" >&5
28539echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
28540if test "${ac_cv_type_int16_t+set}" = set; then
33f5f8b9 28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28542else
28543 cat >conftest.$ac_ext <<_ACEOF
ad21602a 28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
b65c7b0d 28549
a6edf800 28550#include <stdio.h>
28551
33f5f8b9 28552/* What a mess.. many systems have added the (now standard) bit types
28553 * in their own ways, so we need to scan a wide variety of headers to
28554 * find them..
28555 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28556 */
28557#if HAVE_SYS_TYPES_H
28558#include <sys/types.h>
28559#endif
28560#if STDC_HEADERS
28561#include <stdlib.h>
28562#include <stddef.h>
28563#endif
28564#if HAVE_INTTYPES_H
28565#include <inttypes.h>
28566#endif
28567#if HAVE_SYS_BITYPES_H
28568#include <sys/bitypes.h>
28569#endif
11e71ab8 28570#if HAVE_SYS_SELECT_H
28571#include <sys/select.h>
28572#endif
b65c7b0d 28573
3f961930 28574
a6edf800 28575
33f5f8b9 28576int
28577main ()
28578{
ca732765 28579if ((int16_t *) 0)
33f5f8b9 28580 return 0;
ca732765 28581if (sizeof (int16_t))
33f5f8b9 28582 return 0;
28583 ;
28584 return 0;
28585}
28586_ACEOF
28587rm -f conftest.$ac_objext
28588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28589 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28590 ac_status=$?
af3004ff 28591 grep -v '^ *+' conftest.er1 >conftest.err
28592 rm -f conftest.er1
28593 cat conftest.err >&5
33f5f8b9 28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
6263d81f 28596 { ac_try='test -z "$ac_c_werror_flag"
28597 || test ! -s conftest.err'
af3004ff 28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; } &&
28603 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
ca732765 28609 ac_cv_type_int16_t=yes
33f5f8b9 28610else
28611 echo "$as_me: failed program was:" >&5
ad21602a 28612sed 's/^/| /' conftest.$ac_ext >&5
28613
ca732765 28614ac_cv_type_int16_t=no
33f5f8b9 28615fi
af3004ff 28616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 28617fi
ca732765 28618echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
28619echo "${ECHO_T}$ac_cv_type_int16_t" >&6
33f5f8b9 28620
ca732765 28621echo "$as_me:$LINENO: checking size of int16_t" >&5
28622echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6
28623if test "${ac_cv_sizeof_int16_t+set}" = set; then
33f5f8b9 28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28625else
ca732765 28626 if test "$ac_cv_type_int16_t" = yes; then
33f5f8b9 28627 # The cast to unsigned long works around a bug in the HP C Compiler
28628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28630 # This bug is HP SR number 8606223364.
77d6bd88 28631 if test "$cross_compiling" = yes; then
33f5f8b9 28632 # Depending upon the size, compute the lo and hi bounds.
28633cat >conftest.$ac_ext <<_ACEOF
ad21602a 28634/* confdefs.h. */
28635_ACEOF
28636cat confdefs.h >>conftest.$ac_ext
28637cat >>conftest.$ac_ext <<_ACEOF
28638/* end confdefs.h. */
33f5f8b9 28639
a6edf800 28640#include <stdio.h>
28641
33f5f8b9 28642/* What a mess.. many systems have added the (now standard) bit types
28643 * in their own ways, so we need to scan a wide variety of headers to
28644 * find them..
28645 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28646 */
28647#if HAVE_SYS_TYPES_H
28648#include <sys/types.h>
28649#endif
28650#if STDC_HEADERS
28651#include <stdlib.h>
28652#include <stddef.h>
28653#endif
28654#if HAVE_INTTYPES_H
28655#include <inttypes.h>
28656#endif
28657#if HAVE_SYS_BITYPES_H
28658#include <sys/bitypes.h>
28659#endif
11e71ab8 28660#if HAVE_SYS_SELECT_H
28661#include <sys/select.h>
28662#endif
33f5f8b9 28663
28664
a6edf800 28665
33f5f8b9 28666int
28667main ()
28668{
ca732765 28669static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) >= 0)];
33f5f8b9 28670test_array [0] = 0
28671
28672 ;
28673 return 0;
28674}
28675_ACEOF
28676rm -f conftest.$ac_objext
28677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28678 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28679 ac_status=$?
af3004ff 28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
33f5f8b9 28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
6263d81f 28685 { ac_try='test -z "$ac_c_werror_flag"
28686 || test ! -s conftest.err'
af3004ff 28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; } &&
28692 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 ac_lo=0 ac_mid=0
28699 while :; do
28700 cat >conftest.$ac_ext <<_ACEOF
ad21602a 28701/* confdefs.h. */
28702_ACEOF
28703cat confdefs.h >>conftest.$ac_ext
28704cat >>conftest.$ac_ext <<_ACEOF
28705/* end confdefs.h. */
33f5f8b9 28706
a6edf800 28707#include <stdio.h>
28708
33f5f8b9 28709/* What a mess.. many systems have added the (now standard) bit types
28710 * in their own ways, so we need to scan a wide variety of headers to
28711 * find them..
28712 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28713 */
28714#if HAVE_SYS_TYPES_H
28715#include <sys/types.h>
28716#endif
28717#if STDC_HEADERS
28718#include <stdlib.h>
28719#include <stddef.h>
28720#endif
28721#if HAVE_INTTYPES_H
28722#include <inttypes.h>
28723#endif
28724#if HAVE_SYS_BITYPES_H
28725#include <sys/bitypes.h>
28726#endif
11e71ab8 28727#if HAVE_SYS_SELECT_H
28728#include <sys/select.h>
28729#endif
33f5f8b9 28730
28731
a6edf800 28732
33f5f8b9 28733int
28734main ()
28735{
ca732765 28736static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) <= $ac_mid)];
33f5f8b9 28737test_array [0] = 0
28738
28739 ;
28740 return 0;
28741}
28742_ACEOF
28743rm -f conftest.$ac_objext
28744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28745 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28746 ac_status=$?
af3004ff 28747 grep -v '^ *+' conftest.er1 >conftest.err
28748 rm -f conftest.er1
28749 cat conftest.err >&5
33f5f8b9 28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } &&
6263d81f 28752 { ac_try='test -z "$ac_c_werror_flag"
28753 || test ! -s conftest.err'
af3004ff 28754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755 (eval $ac_try) 2>&5
28756 ac_status=$?
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); }; } &&
28759 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 28760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761 (eval $ac_try) 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; }; then
28765 ac_hi=$ac_mid; break
28766else
28767 echo "$as_me: failed program was:" >&5
ad21602a 28768sed 's/^/| /' conftest.$ac_ext >&5
28769
33f5f8b9 28770ac_lo=`expr $ac_mid + 1`
af3004ff 28771 if test $ac_lo -le $ac_mid; then
28772 ac_lo= ac_hi=
28773 break
28774 fi
28775 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 28776fi
af3004ff 28777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 28778 done
28779else
28780 echo "$as_me: failed program was:" >&5
ad21602a 28781sed 's/^/| /' conftest.$ac_ext >&5
28782
33f5f8b9 28783cat >conftest.$ac_ext <<_ACEOF
ad21602a 28784/* confdefs.h. */
28785_ACEOF
28786cat confdefs.h >>conftest.$ac_ext
28787cat >>conftest.$ac_ext <<_ACEOF
28788/* end confdefs.h. */
33f5f8b9 28789
a6edf800 28790#include <stdio.h>
28791
33f5f8b9 28792/* What a mess.. many systems have added the (now standard) bit types
28793 * in their own ways, so we need to scan a wide variety of headers to
28794 * find them..
28795 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28796 */
28797#if HAVE_SYS_TYPES_H
28798#include <sys/types.h>
28799#endif
28800#if STDC_HEADERS
28801#include <stdlib.h>
28802#include <stddef.h>
28803#endif
28804#if HAVE_INTTYPES_H
28805#include <inttypes.h>
28806#endif
28807#if HAVE_SYS_BITYPES_H
28808#include <sys/bitypes.h>
28809#endif
11e71ab8 28810#if HAVE_SYS_SELECT_H
28811#include <sys/select.h>
28812#endif
33f5f8b9 28813
28814
a6edf800 28815
33f5f8b9 28816int
28817main ()
28818{
ca732765 28819static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) < 0)];
33f5f8b9 28820test_array [0] = 0
28821
28822 ;
28823 return 0;
28824}
28825_ACEOF
28826rm -f conftest.$ac_objext
28827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28828 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28829 ac_status=$?
af3004ff 28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
33f5f8b9 28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } &&
6263d81f 28835 { ac_try='test -z "$ac_c_werror_flag"
28836 || test ! -s conftest.err'
af3004ff 28837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); }; } &&
28842 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 28843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28844 (eval $ac_try) 2>&5
28845 ac_status=$?
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; }; then
28848 ac_hi=-1 ac_mid=-1
28849 while :; do
28850 cat >conftest.$ac_ext <<_ACEOF
ad21602a 28851/* confdefs.h. */
28852_ACEOF
28853cat confdefs.h >>conftest.$ac_ext
28854cat >>conftest.$ac_ext <<_ACEOF
28855/* end confdefs.h. */
33f5f8b9 28856
a6edf800 28857#include <stdio.h>
28858
33f5f8b9 28859/* What a mess.. many systems have added the (now standard) bit types
28860 * in their own ways, so we need to scan a wide variety of headers to
28861 * find them..
28862 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28863 */
28864#if HAVE_SYS_TYPES_H
28865#include <sys/types.h>
28866#endif
28867#if STDC_HEADERS
28868#include <stdlib.h>
28869#include <stddef.h>
28870#endif
28871#if HAVE_INTTYPES_H
28872#include <inttypes.h>
28873#endif
28874#if HAVE_SYS_BITYPES_H
28875#include <sys/bitypes.h>
28876#endif
11e71ab8 28877#if HAVE_SYS_SELECT_H
28878#include <sys/select.h>
28879#endif
33f5f8b9 28880
28881
a6edf800 28882
33f5f8b9 28883int
28884main ()
28885{
ca732765 28886static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) >= $ac_mid)];
33f5f8b9 28887test_array [0] = 0
28888
28889 ;
28890 return 0;
28891}
28892_ACEOF
28893rm -f conftest.$ac_objext
28894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28895 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28896 ac_status=$?
af3004ff 28897 grep -v '^ *+' conftest.er1 >conftest.err
28898 rm -f conftest.er1
28899 cat conftest.err >&5
33f5f8b9 28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } &&
6263d81f 28902 { ac_try='test -z "$ac_c_werror_flag"
28903 || test ! -s conftest.err'
af3004ff 28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; } &&
28909 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 ac_lo=$ac_mid; break
28916else
28917 echo "$as_me: failed program was:" >&5
ad21602a 28918sed 's/^/| /' conftest.$ac_ext >&5
28919
33f5f8b9 28920ac_hi=`expr '(' $ac_mid ')' - 1`
af3004ff 28921 if test $ac_mid -le $ac_hi; then
28922 ac_lo= ac_hi=
28923 break
28924 fi
28925 ac_mid=`expr 2 '*' $ac_mid`
33f5f8b9 28926fi
af3004ff 28927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 28928 done
28929else
28930 echo "$as_me: failed program was:" >&5
ad21602a 28931sed 's/^/| /' conftest.$ac_ext >&5
28932
33f5f8b9 28933ac_lo= ac_hi=
28934fi
af3004ff 28935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 28936fi
af3004ff 28937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 28938# Binary search between lo and hi bounds.
28939while test "x$ac_lo" != "x$ac_hi"; do
28940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28941 cat >conftest.$ac_ext <<_ACEOF
ad21602a 28942/* confdefs.h. */
28943_ACEOF
28944cat confdefs.h >>conftest.$ac_ext
28945cat >>conftest.$ac_ext <<_ACEOF
28946/* end confdefs.h. */
33f5f8b9 28947
a6edf800 28948#include <stdio.h>
28949
33f5f8b9 28950/* What a mess.. many systems have added the (now standard) bit types
28951 * in their own ways, so we need to scan a wide variety of headers to
28952 * find them..
28953 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28954 */
28955#if HAVE_SYS_TYPES_H
28956#include <sys/types.h>
28957#endif
28958#if STDC_HEADERS
28959#include <stdlib.h>
28960#include <stddef.h>
28961#endif
28962#if HAVE_INTTYPES_H
28963#include <inttypes.h>
28964#endif
28965#if HAVE_SYS_BITYPES_H
28966#include <sys/bitypes.h>
28967#endif
11e71ab8 28968#if HAVE_SYS_SELECT_H
28969#include <sys/select.h>
28970#endif
33f5f8b9 28971
28972
a6edf800 28973
33f5f8b9 28974int
28975main ()
28976{
ca732765 28977static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) <= $ac_mid)];
33f5f8b9 28978test_array [0] = 0
28979
28980 ;
28981 return 0;
28982}
28983_ACEOF
28984rm -f conftest.$ac_objext
28985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 28986 (eval $ac_compile) 2>conftest.er1
33f5f8b9 28987 ac_status=$?
af3004ff 28988 grep -v '^ *+' conftest.er1 >conftest.err
28989 rm -f conftest.er1
28990 cat conftest.err >&5
33f5f8b9 28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } &&
6263d81f 28993 { ac_try='test -z "$ac_c_werror_flag"
28994 || test ! -s conftest.err'
af3004ff 28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; } &&
29000 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29003 ac_status=$?
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; }; then
29006 ac_hi=$ac_mid
29007else
29008 echo "$as_me: failed program was:" >&5
ad21602a 29009sed 's/^/| /' conftest.$ac_ext >&5
29010
33f5f8b9 29011ac_lo=`expr '(' $ac_mid ')' + 1`
29012fi
af3004ff 29013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29014done
29015case $ac_lo in
ca732765 29016?*) ac_cv_sizeof_int16_t=$ac_lo;;
29017'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t), 77
ad21602a 29018See \`config.log' for more details." >&5
ca732765 29019echo "$as_me: error: cannot compute sizeof (int16_t), 77
ad21602a 29020See \`config.log' for more details." >&2;}
33f5f8b9 29021 { (exit 1); exit 1; }; } ;;
29022esac
29023else
29024 if test "$cross_compiling" = yes; then
6263d81f 29025 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29026See \`config.log' for more details." >&5
29027echo "$as_me: error: cannot run test program while cross compiling
29028See \`config.log' for more details." >&2;}
33f5f8b9 29029 { (exit 1); exit 1; }; }
29030else
29031 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29032/* confdefs.h. */
29033_ACEOF
29034cat confdefs.h >>conftest.$ac_ext
29035cat >>conftest.$ac_ext <<_ACEOF
29036/* end confdefs.h. */
33f5f8b9 29037
a6edf800 29038#include <stdio.h>
29039
33f5f8b9 29040/* What a mess.. many systems have added the (now standard) bit types
29041 * in their own ways, so we need to scan a wide variety of headers to
29042 * find them..
29043 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29044 */
29045#if HAVE_SYS_TYPES_H
29046#include <sys/types.h>
29047#endif
29048#if STDC_HEADERS
29049#include <stdlib.h>
29050#include <stddef.h>
29051#endif
29052#if HAVE_INTTYPES_H
29053#include <inttypes.h>
29054#endif
29055#if HAVE_SYS_BITYPES_H
29056#include <sys/bitypes.h>
29057#endif
11e71ab8 29058#if HAVE_SYS_SELECT_H
29059#include <sys/select.h>
29060#endif
33f5f8b9 29061
29062
a6edf800 29063
ca732765 29064long longval () { return (long) (sizeof (int16_t)); }
29065unsigned long ulongval () { return (long) (sizeof (int16_t)); }
33f5f8b9 29066#include <stdio.h>
29067#include <stdlib.h>
33f5f8b9 29068int
29069main ()
29070{
29071
29072 FILE *f = fopen ("conftest.val", "w");
29073 if (! f)
29074 exit (1);
ca732765 29075 if (((long) (sizeof (int16_t))) < 0)
33f5f8b9 29076 {
29077 long i = longval ();
ca732765 29078 if (i != ((long) (sizeof (int16_t))))
33f5f8b9 29079 exit (1);
29080 fprintf (f, "%ld\n", i);
29081 }
29082 else
29083 {
29084 unsigned long i = ulongval ();
ca732765 29085 if (i != ((long) (sizeof (int16_t))))
33f5f8b9 29086 exit (1);
29087 fprintf (f, "%lu\n", i);
29088 }
29089 exit (ferror (f) || fclose (f) != 0);
29090
29091 ;
29092 return 0;
29093}
29094_ACEOF
29095rm -f conftest$ac_exeext
29096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29097 (eval $ac_link) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
ca732765 29106 ac_cv_sizeof_int16_t=`cat conftest.val`
33f5f8b9 29107else
29108 echo "$as_me: program exited with status $ac_status" >&5
29109echo "$as_me: failed program was:" >&5
ad21602a 29110sed 's/^/| /' conftest.$ac_ext >&5
29111
33f5f8b9 29112( exit $ac_status )
ca732765 29113{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t), 77
ad21602a 29114See \`config.log' for more details." >&5
ca732765 29115echo "$as_me: error: cannot compute sizeof (int16_t), 77
ad21602a 29116See \`config.log' for more details." >&2;}
33f5f8b9 29117 { (exit 1); exit 1; }; }
29118fi
af3004ff 29119rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29120fi
29121fi
29122rm -f conftest.val
29123else
ca732765 29124 ac_cv_sizeof_int16_t=0
33f5f8b9 29125fi
29126fi
ca732765 29127echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
29128echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6
33f5f8b9 29129cat >>confdefs.h <<_ACEOF
ca732765 29130#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
33f5f8b9 29131_ACEOF
29132
29133
29134
29135cat >>confdefs.h <<\_ACEOF
ca732765 29136#define HAVE_INT16_T 1
33f5f8b9 29137_ACEOF
29138
29139
29140fi
29141
29142
ca732765 29143echo "$as_me:$LINENO: checking for short" >&5
29144echo $ECHO_N "checking for short... $ECHO_C" >&6
29145if test "${ac_cv_type_short+set}" = set; then
33f5f8b9 29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29147else
29148 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29149/* confdefs.h. */
29150_ACEOF
29151cat confdefs.h >>conftest.$ac_ext
29152cat >>conftest.$ac_ext <<_ACEOF
29153/* end confdefs.h. */
33f5f8b9 29154
29155/* What a mess.. many systems have added the (now standard) bit types
29156 * in their own ways, so we need to scan a wide variety of headers to
29157 * find them..
29158 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29159 */
29160#if HAVE_SYS_TYPES_H
29161#include <sys/types.h>
29162#endif
29163#if STDC_HEADERS
29164#include <stdlib.h>
29165#include <stddef.h>
29166#endif
29167#if HAVE_INTTYPES_H
29168#include <inttypes.h>
29169#endif
29170#if HAVE_SYS_BITYPES_H
29171#include <sys/bitypes.h>
29172#endif
11e71ab8 29173#if HAVE_SYS_SELECT_H
29174#include <sys/select.h>
29175#endif
33f5f8b9 29176
29177
33f5f8b9 29178int
29179main ()
29180{
ca732765 29181if ((short *) 0)
33f5f8b9 29182 return 0;
ca732765 29183if (sizeof (short))
33f5f8b9 29184 return 0;
29185 ;
29186 return 0;
29187}
29188_ACEOF
29189rm -f conftest.$ac_objext
29190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29191 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29192 ac_status=$?
af3004ff 29193 grep -v '^ *+' conftest.er1 >conftest.err
29194 rm -f conftest.er1
29195 cat conftest.err >&5
33f5f8b9 29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } &&
6263d81f 29198 { ac_try='test -z "$ac_c_werror_flag"
29199 || test ! -s conftest.err'
af3004ff 29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; }; then
ca732765 29211 ac_cv_type_short=yes
33f5f8b9 29212else
29213 echo "$as_me: failed program was:" >&5
ad21602a 29214sed 's/^/| /' conftest.$ac_ext >&5
29215
ca732765 29216ac_cv_type_short=no
33f5f8b9 29217fi
af3004ff 29218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29219fi
ca732765 29220echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
29221echo "${ECHO_T}$ac_cv_type_short" >&6
29222if test $ac_cv_type_short = yes; then
33f5f8b9 29223
ca732765 29224 echo "$as_me:$LINENO: checking for short" >&5
29225echo $ECHO_N "checking for short... $ECHO_C" >&6
29226if test "${ac_cv_type_short+set}" = set; then
33f5f8b9 29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29228else
29229 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29230/* confdefs.h. */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h. */
33f5f8b9 29235
a6edf800 29236#include <stdio.h>
29237
33f5f8b9 29238/* What a mess.. many systems have added the (now standard) bit types
29239 * in their own ways, so we need to scan a wide variety of headers to
29240 * find them..
29241 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29242 */
29243#if HAVE_SYS_TYPES_H
29244#include <sys/types.h>
29245#endif
29246#if STDC_HEADERS
29247#include <stdlib.h>
29248#include <stddef.h>
29249#endif
29250#if HAVE_INTTYPES_H
29251#include <inttypes.h>
29252#endif
29253#if HAVE_SYS_BITYPES_H
29254#include <sys/bitypes.h>
29255#endif
11e71ab8 29256#if HAVE_SYS_SELECT_H
29257#include <sys/select.h>
29258#endif
33f5f8b9 29259
29260
a6edf800 29261
33f5f8b9 29262int
29263main ()
29264{
ca732765 29265if ((short *) 0)
33f5f8b9 29266 return 0;
ca732765 29267if (sizeof (short))
33f5f8b9 29268 return 0;
29269 ;
29270 return 0;
29271}
29272_ACEOF
29273rm -f conftest.$ac_objext
29274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29275 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29276 ac_status=$?
af3004ff 29277 grep -v '^ *+' conftest.er1 >conftest.err
29278 rm -f conftest.er1
29279 cat conftest.err >&5
33f5f8b9 29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } &&
6263d81f 29282 { ac_try='test -z "$ac_c_werror_flag"
29283 || test ! -s conftest.err'
af3004ff 29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29292 ac_status=$?
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
ca732765 29295 ac_cv_type_short=yes
33f5f8b9 29296else
29297 echo "$as_me: failed program was:" >&5
ad21602a 29298sed 's/^/| /' conftest.$ac_ext >&5
29299
ca732765 29300ac_cv_type_short=no
33f5f8b9 29301fi
af3004ff 29302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29303fi
ca732765 29304echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
29305echo "${ECHO_T}$ac_cv_type_short" >&6
33f5f8b9 29306
ca732765 29307echo "$as_me:$LINENO: checking size of short" >&5
29308echo $ECHO_N "checking size of short... $ECHO_C" >&6
29309if test "${ac_cv_sizeof_short+set}" = set; then
33f5f8b9 29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311else
ca732765 29312 if test "$ac_cv_type_short" = yes; then
33f5f8b9 29313 # The cast to unsigned long works around a bug in the HP C Compiler
29314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29316 # This bug is HP SR number 8606223364.
29317 if test "$cross_compiling" = yes; then
29318 # Depending upon the size, compute the lo and hi bounds.
29319cat >conftest.$ac_ext <<_ACEOF
ad21602a 29320/* confdefs.h. */
29321_ACEOF
29322cat confdefs.h >>conftest.$ac_ext
29323cat >>conftest.$ac_ext <<_ACEOF
29324/* end confdefs.h. */
33f5f8b9 29325
a6edf800 29326#include <stdio.h>
29327
33f5f8b9 29328/* What a mess.. many systems have added the (now standard) bit types
29329 * in their own ways, so we need to scan a wide variety of headers to
29330 * find them..
29331 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29332 */
29333#if HAVE_SYS_TYPES_H
29334#include <sys/types.h>
29335#endif
29336#if STDC_HEADERS
29337#include <stdlib.h>
29338#include <stddef.h>
29339#endif
29340#if HAVE_INTTYPES_H
29341#include <inttypes.h>
29342#endif
29343#if HAVE_SYS_BITYPES_H
29344#include <sys/bitypes.h>
29345#endif
11e71ab8 29346#if HAVE_SYS_SELECT_H
29347#include <sys/select.h>
29348#endif
33f5f8b9 29349
29350
a6edf800 29351
33f5f8b9 29352int
29353main ()
29354{
ca732765 29355static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33f5f8b9 29356test_array [0] = 0
29357
29358 ;
29359 return 0;
29360}
29361_ACEOF
29362rm -f conftest.$ac_objext
29363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29364 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29365 ac_status=$?
af3004ff 29366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
33f5f8b9 29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
6263d81f 29371 { ac_try='test -z "$ac_c_werror_flag"
29372 || test ! -s conftest.err'
af3004ff 29373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374 (eval $ac_try) 2>&5
29375 ac_status=$?
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; } &&
29378 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380 (eval $ac_try) 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_lo=0 ac_mid=0
29385 while :; do
29386 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29387/* confdefs.h. */
29388_ACEOF
29389cat confdefs.h >>conftest.$ac_ext
29390cat >>conftest.$ac_ext <<_ACEOF
29391/* end confdefs.h. */
33f5f8b9 29392
a6edf800 29393#include <stdio.h>
29394
33f5f8b9 29395/* What a mess.. many systems have added the (now standard) bit types
29396 * in their own ways, so we need to scan a wide variety of headers to
29397 * find them..
29398 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29399 */
29400#if HAVE_SYS_TYPES_H
29401#include <sys/types.h>
29402#endif
29403#if STDC_HEADERS
29404#include <stdlib.h>
29405#include <stddef.h>
29406#endif
29407#if HAVE_INTTYPES_H
29408#include <inttypes.h>
29409#endif
29410#if HAVE_SYS_BITYPES_H
29411#include <sys/bitypes.h>
29412#endif
11e71ab8 29413#if HAVE_SYS_SELECT_H
29414#include <sys/select.h>
29415#endif
33f5f8b9 29416
29417
a6edf800 29418
33f5f8b9 29419int
29420main ()
29421{
ca732765 29422static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33f5f8b9 29423test_array [0] = 0
29424
29425 ;
29426 return 0;
29427}
29428_ACEOF
29429rm -f conftest.$ac_objext
29430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29431 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29432 ac_status=$?
af3004ff 29433 grep -v '^ *+' conftest.er1 >conftest.err
29434 rm -f conftest.er1
29435 cat conftest.err >&5
33f5f8b9 29436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); } &&
6263d81f 29438 { ac_try='test -z "$ac_c_werror_flag"
29439 || test ! -s conftest.err'
af3004ff 29440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441 (eval $ac_try) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; } &&
29445 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; }; then
29451 ac_hi=$ac_mid; break
29452else
29453 echo "$as_me: failed program was:" >&5
ad21602a 29454sed 's/^/| /' conftest.$ac_ext >&5
29455
33f5f8b9 29456ac_lo=`expr $ac_mid + 1`
af3004ff 29457 if test $ac_lo -le $ac_mid; then
29458 ac_lo= ac_hi=
29459 break
29460 fi
29461 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 29462fi
af3004ff 29463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29464 done
29465else
29466 echo "$as_me: failed program was:" >&5
ad21602a 29467sed 's/^/| /' conftest.$ac_ext >&5
29468
33f5f8b9 29469cat >conftest.$ac_ext <<_ACEOF
ad21602a 29470/* confdefs.h. */
29471_ACEOF
29472cat confdefs.h >>conftest.$ac_ext
29473cat >>conftest.$ac_ext <<_ACEOF
29474/* end confdefs.h. */
33f5f8b9 29475
a6edf800 29476#include <stdio.h>
29477
33f5f8b9 29478/* What a mess.. many systems have added the (now standard) bit types
29479 * in their own ways, so we need to scan a wide variety of headers to
29480 * find them..
29481 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29482 */
29483#if HAVE_SYS_TYPES_H
29484#include <sys/types.h>
29485#endif
29486#if STDC_HEADERS
29487#include <stdlib.h>
29488#include <stddef.h>
29489#endif
29490#if HAVE_INTTYPES_H
29491#include <inttypes.h>
29492#endif
29493#if HAVE_SYS_BITYPES_H
29494#include <sys/bitypes.h>
29495#endif
11e71ab8 29496#if HAVE_SYS_SELECT_H
29497#include <sys/select.h>
29498#endif
33f5f8b9 29499
29500
a6edf800 29501
33f5f8b9 29502int
29503main ()
29504{
ca732765 29505static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33f5f8b9 29506test_array [0] = 0
29507
29508 ;
29509 return 0;
29510}
29511_ACEOF
29512rm -f conftest.$ac_objext
29513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29514 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29515 ac_status=$?
af3004ff 29516 grep -v '^ *+' conftest.er1 >conftest.err
29517 rm -f conftest.er1
29518 cat conftest.err >&5
33f5f8b9 29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } &&
6263d81f 29521 { ac_try='test -z "$ac_c_werror_flag"
29522 || test ! -s conftest.err'
af3004ff 29523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524 (eval $ac_try) 2>&5
29525 ac_status=$?
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; } &&
29528 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; }; then
29534 ac_hi=-1 ac_mid=-1
29535 while :; do
29536 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29537/* confdefs.h. */
29538_ACEOF
29539cat confdefs.h >>conftest.$ac_ext
29540cat >>conftest.$ac_ext <<_ACEOF
29541/* end confdefs.h. */
33f5f8b9 29542
a6edf800 29543#include <stdio.h>
29544
33f5f8b9 29545/* What a mess.. many systems have added the (now standard) bit types
29546 * in their own ways, so we need to scan a wide variety of headers to
29547 * find them..
29548 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29549 */
29550#if HAVE_SYS_TYPES_H
29551#include <sys/types.h>
29552#endif
29553#if STDC_HEADERS
29554#include <stdlib.h>
29555#include <stddef.h>
29556#endif
29557#if HAVE_INTTYPES_H
29558#include <inttypes.h>
29559#endif
29560#if HAVE_SYS_BITYPES_H
29561#include <sys/bitypes.h>
29562#endif
11e71ab8 29563#if HAVE_SYS_SELECT_H
29564#include <sys/select.h>
29565#endif
33f5f8b9 29566
29567
a6edf800 29568
33f5f8b9 29569int
29570main ()
29571{
ca732765 29572static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33f5f8b9 29573test_array [0] = 0
29574
29575 ;
29576 return 0;
29577}
29578_ACEOF
29579rm -f conftest.$ac_objext
29580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29581 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29582 ac_status=$?
af3004ff 29583 grep -v '^ *+' conftest.er1 >conftest.err
29584 rm -f conftest.er1
29585 cat conftest.err >&5
33f5f8b9 29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); } &&
6263d81f 29588 { ac_try='test -z "$ac_c_werror_flag"
29589 || test ! -s conftest.err'
af3004ff 29590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29591 (eval $ac_try) 2>&5
29592 ac_status=$?
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); }; } &&
29595 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29597 (eval $ac_try) 2>&5
29598 ac_status=$?
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; }; then
29601 ac_lo=$ac_mid; break
29602else
29603 echo "$as_me: failed program was:" >&5
ad21602a 29604sed 's/^/| /' conftest.$ac_ext >&5
29605
33f5f8b9 29606ac_hi=`expr '(' $ac_mid ')' - 1`
af3004ff 29607 if test $ac_mid -le $ac_hi; then
29608 ac_lo= ac_hi=
29609 break
29610 fi
29611 ac_mid=`expr 2 '*' $ac_mid`
33f5f8b9 29612fi
af3004ff 29613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29614 done
29615else
29616 echo "$as_me: failed program was:" >&5
ad21602a 29617sed 's/^/| /' conftest.$ac_ext >&5
29618
33f5f8b9 29619ac_lo= ac_hi=
29620fi
af3004ff 29621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29622fi
af3004ff 29623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29624# Binary search between lo and hi bounds.
29625while test "x$ac_lo" != "x$ac_hi"; do
29626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29627 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29628/* confdefs.h. */
29629_ACEOF
29630cat confdefs.h >>conftest.$ac_ext
29631cat >>conftest.$ac_ext <<_ACEOF
29632/* end confdefs.h. */
33f5f8b9 29633
a6edf800 29634#include <stdio.h>
29635
33f5f8b9 29636/* What a mess.. many systems have added the (now standard) bit types
29637 * in their own ways, so we need to scan a wide variety of headers to
29638 * find them..
29639 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29640 */
29641#if HAVE_SYS_TYPES_H
29642#include <sys/types.h>
29643#endif
29644#if STDC_HEADERS
29645#include <stdlib.h>
29646#include <stddef.h>
29647#endif
29648#if HAVE_INTTYPES_H
29649#include <inttypes.h>
29650#endif
2f44bd34 29651#if HAVE_SYS_BITYPES_H
29652#include <sys/bitypes.h>
0eb0a2df 29653#endif
11e71ab8 29654#if HAVE_SYS_SELECT_H
29655#include <sys/select.h>
29656#endif
dd0004a0 29657
29658
29659
33f5f8b9 29660int
29661main ()
29662{
ca732765 29663static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33f5f8b9 29664test_array [0] = 0
29665
29666 ;
29667 return 0;
29668}
29669_ACEOF
29670rm -f conftest.$ac_objext
29671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29672 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29673 ac_status=$?
af3004ff 29674 grep -v '^ *+' conftest.er1 >conftest.err
29675 rm -f conftest.er1
29676 cat conftest.err >&5
33f5f8b9 29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } &&
6263d81f 29679 { ac_try='test -z "$ac_c_werror_flag"
29680 || test ! -s conftest.err'
af3004ff 29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; } &&
29686 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688 (eval $ac_try) 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; }; then
29692 ac_hi=$ac_mid
29693else
29694 echo "$as_me: failed program was:" >&5
ad21602a 29695sed 's/^/| /' conftest.$ac_ext >&5
29696
33f5f8b9 29697ac_lo=`expr '(' $ac_mid ')' + 1`
29698fi
af3004ff 29699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29700done
29701case $ac_lo in
ca732765 29702?*) ac_cv_sizeof_short=$ac_lo;;
29703'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
ad21602a 29704See \`config.log' for more details." >&5
ca732765 29705echo "$as_me: error: cannot compute sizeof (short), 77
ad21602a 29706See \`config.log' for more details." >&2;}
33f5f8b9 29707 { (exit 1); exit 1; }; } ;;
29708esac
29709else
29710 if test "$cross_compiling" = yes; then
6263d81f 29711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29712See \`config.log' for more details." >&5
29713echo "$as_me: error: cannot run test program while cross compiling
29714See \`config.log' for more details." >&2;}
33f5f8b9 29715 { (exit 1); exit 1; }; }
29716else
29717 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29718/* confdefs.h. */
29719_ACEOF
29720cat confdefs.h >>conftest.$ac_ext
29721cat >>conftest.$ac_ext <<_ACEOF
29722/* end confdefs.h. */
33f5f8b9 29723
a6edf800 29724#include <stdio.h>
29725
33f5f8b9 29726/* What a mess.. many systems have added the (now standard) bit types
29727 * in their own ways, so we need to scan a wide variety of headers to
29728 * find them..
29729 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29730 */
29731#if HAVE_SYS_TYPES_H
29732#include <sys/types.h>
29733#endif
29734#if STDC_HEADERS
29735#include <stdlib.h>
29736#include <stddef.h>
29737#endif
29738#if HAVE_INTTYPES_H
29739#include <inttypes.h>
29740#endif
29741#if HAVE_SYS_BITYPES_H
29742#include <sys/bitypes.h>
29743#endif
11e71ab8 29744#if HAVE_SYS_SELECT_H
29745#include <sys/select.h>
29746#endif
33f5f8b9 29747
29748
a6edf800 29749
ca732765 29750long longval () { return (long) (sizeof (short)); }
29751unsigned long ulongval () { return (long) (sizeof (short)); }
33f5f8b9 29752#include <stdio.h>
29753#include <stdlib.h>
33f5f8b9 29754int
29755main ()
29756{
29757
29758 FILE *f = fopen ("conftest.val", "w");
29759 if (! f)
29760 exit (1);
ca732765 29761 if (((long) (sizeof (short))) < 0)
33f5f8b9 29762 {
29763 long i = longval ();
ca732765 29764 if (i != ((long) (sizeof (short))))
33f5f8b9 29765 exit (1);
29766 fprintf (f, "%ld\n", i);
29767 }
29768 else
29769 {
29770 unsigned long i = ulongval ();
ca732765 29771 if (i != ((long) (sizeof (short))))
33f5f8b9 29772 exit (1);
29773 fprintf (f, "%lu\n", i);
29774 }
29775 exit (ferror (f) || fclose (f) != 0);
29776
29777 ;
29778 return 0;
29779}
29780_ACEOF
29781rm -f conftest$ac_exeext
29782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29783 (eval $ac_link) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29789 ac_status=$?
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; }; then
ca732765 29792 ac_cv_sizeof_short=`cat conftest.val`
33f5f8b9 29793else
29794 echo "$as_me: program exited with status $ac_status" >&5
29795echo "$as_me: failed program was:" >&5
ad21602a 29796sed 's/^/| /' conftest.$ac_ext >&5
29797
33f5f8b9 29798( exit $ac_status )
ca732765 29799{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
ad21602a 29800See \`config.log' for more details." >&5
ca732765 29801echo "$as_me: error: cannot compute sizeof (short), 77
ad21602a 29802See \`config.log' for more details." >&2;}
33f5f8b9 29803 { (exit 1); exit 1; }; }
29804fi
af3004ff 29805rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29806fi
29807fi
29808rm -f conftest.val
29809else
ca732765 29810 ac_cv_sizeof_short=0
33f5f8b9 29811fi
29812fi
ca732765 29813echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
29814echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33f5f8b9 29815cat >>confdefs.h <<_ACEOF
ca732765 29816#define SIZEOF_SHORT $ac_cv_sizeof_short
33f5f8b9 29817_ACEOF
29818
29819
29820
29821cat >>confdefs.h <<\_ACEOF
ca732765 29822#define HAVE_SHORT 1
33f5f8b9 29823_ACEOF
29824
29825
29826fi
29827
29828
ca732765 29829echo "$as_me:$LINENO: checking for int" >&5
29830echo $ECHO_N "checking for int... $ECHO_C" >&6
29831if test "${ac_cv_type_int+set}" = set; then
33f5f8b9 29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29833else
29834 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29835/* confdefs.h. */
29836_ACEOF
29837cat confdefs.h >>conftest.$ac_ext
29838cat >>conftest.$ac_ext <<_ACEOF
29839/* end confdefs.h. */
33f5f8b9 29840
29841/* What a mess.. many systems have added the (now standard) bit types
29842 * in their own ways, so we need to scan a wide variety of headers to
29843 * find them..
29844 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29845 */
29846#if HAVE_SYS_TYPES_H
29847#include <sys/types.h>
29848#endif
29849#if STDC_HEADERS
29850#include <stdlib.h>
29851#include <stddef.h>
29852#endif
29853#if HAVE_INTTYPES_H
29854#include <inttypes.h>
29855#endif
29856#if HAVE_SYS_BITYPES_H
29857#include <sys/bitypes.h>
29858#endif
11e71ab8 29859#if HAVE_SYS_SELECT_H
29860#include <sys/select.h>
29861#endif
33f5f8b9 29862
29863
33f5f8b9 29864int
29865main ()
29866{
ca732765 29867if ((int *) 0)
33f5f8b9 29868 return 0;
ca732765 29869if (sizeof (int))
33f5f8b9 29870 return 0;
29871 ;
29872 return 0;
29873}
29874_ACEOF
29875rm -f conftest.$ac_objext
29876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29877 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29878 ac_status=$?
af3004ff 29879 grep -v '^ *+' conftest.er1 >conftest.err
29880 rm -f conftest.er1
29881 cat conftest.err >&5
33f5f8b9 29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } &&
6263d81f 29884 { ac_try='test -z "$ac_c_werror_flag"
29885 || test ! -s conftest.err'
af3004ff 29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; } &&
29891 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893 (eval $ac_try) 2>&5
29894 ac_status=$?
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; }; then
ca732765 29897 ac_cv_type_int=yes
33f5f8b9 29898else
29899 echo "$as_me: failed program was:" >&5
ad21602a 29900sed 's/^/| /' conftest.$ac_ext >&5
29901
ca732765 29902ac_cv_type_int=no
33f5f8b9 29903fi
af3004ff 29904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29905fi
ca732765 29906echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
29907echo "${ECHO_T}$ac_cv_type_int" >&6
29908if test $ac_cv_type_int = yes; then
33f5f8b9 29909
ca732765 29910 echo "$as_me:$LINENO: checking for int" >&5
29911echo $ECHO_N "checking for int... $ECHO_C" >&6
29912if test "${ac_cv_type_int+set}" = set; then
33f5f8b9 29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29914else
29915 cat >conftest.$ac_ext <<_ACEOF
ad21602a 29916/* confdefs.h. */
29917_ACEOF
29918cat confdefs.h >>conftest.$ac_ext
29919cat >>conftest.$ac_ext <<_ACEOF
29920/* end confdefs.h. */
33f5f8b9 29921
ca732765 29922#include <stdio.h>
29923
33f5f8b9 29924/* What a mess.. many systems have added the (now standard) bit types
29925 * in their own ways, so we need to scan a wide variety of headers to
29926 * find them..
29927 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29928 */
29929#if HAVE_SYS_TYPES_H
29930#include <sys/types.h>
29931#endif
29932#if STDC_HEADERS
29933#include <stdlib.h>
29934#include <stddef.h>
29935#endif
29936#if HAVE_INTTYPES_H
29937#include <inttypes.h>
29938#endif
29939#if HAVE_SYS_BITYPES_H
29940#include <sys/bitypes.h>
29941#endif
11e71ab8 29942#if HAVE_SYS_SELECT_H
29943#include <sys/select.h>
29944#endif
33f5f8b9 29945
29946
ca732765 29947
33f5f8b9 29948int
29949main ()
29950{
ca732765 29951if ((int *) 0)
33f5f8b9 29952 return 0;
ca732765 29953if (sizeof (int))
33f5f8b9 29954 return 0;
29955 ;
29956 return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext
29960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 29961 (eval $ac_compile) 2>conftest.er1
33f5f8b9 29962 ac_status=$?
af3004ff 29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
33f5f8b9 29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } &&
6263d81f 29968 { ac_try='test -z "$ac_c_werror_flag"
29969 || test ! -s conftest.err'
af3004ff 29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; } &&
29975 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
ca732765 29981 ac_cv_type_int=yes
33f5f8b9 29982else
29983 echo "$as_me: failed program was:" >&5
ad21602a 29984sed 's/^/| /' conftest.$ac_ext >&5
29985
ca732765 29986ac_cv_type_int=no
33f5f8b9 29987fi
af3004ff 29988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 29989fi
ca732765 29990echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
29991echo "${ECHO_T}$ac_cv_type_int" >&6
33f5f8b9 29992
ca732765 29993echo "$as_me:$LINENO: checking size of int" >&5
29994echo $ECHO_N "checking size of int... $ECHO_C" >&6
29995if test "${ac_cv_sizeof_int+set}" = set; then
33f5f8b9 29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29997else
ca732765 29998 if test "$ac_cv_type_int" = yes; then
29999 # The cast to unsigned long works around a bug in the HP C Compiler
30000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30002 # This bug is HP SR number 8606223364.
30003 if test "$cross_compiling" = yes; then
30004 # Depending upon the size, compute the lo and hi bounds.
30005cat >conftest.$ac_ext <<_ACEOF
ad21602a 30006/* confdefs.h. */
30007_ACEOF
30008cat confdefs.h >>conftest.$ac_ext
30009cat >>conftest.$ac_ext <<_ACEOF
30010/* end confdefs.h. */
33f5f8b9 30011
ca732765 30012#include <stdio.h>
30013
33f5f8b9 30014/* What a mess.. many systems have added the (now standard) bit types
30015 * in their own ways, so we need to scan a wide variety of headers to
30016 * find them..
30017 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30018 */
30019#if HAVE_SYS_TYPES_H
30020#include <sys/types.h>
30021#endif
30022#if STDC_HEADERS
30023#include <stdlib.h>
30024#include <stddef.h>
30025#endif
30026#if HAVE_INTTYPES_H
30027#include <inttypes.h>
30028#endif
30029#if HAVE_SYS_BITYPES_H
30030#include <sys/bitypes.h>
30031#endif
11e71ab8 30032#if HAVE_SYS_SELECT_H
30033#include <sys/select.h>
30034#endif
33f5f8b9 30035
30036
ca732765 30037
33f5f8b9 30038int
30039main ()
30040{
ca732765 30041static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
30042test_array [0] = 0
30043
33f5f8b9 30044 ;
30045 return 0;
30046}
30047_ACEOF
30048rm -f conftest.$ac_objext
30049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30050 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30051 ac_status=$?
af3004ff 30052 grep -v '^ *+' conftest.er1 >conftest.err
30053 rm -f conftest.er1
30054 cat conftest.err >&5
33f5f8b9 30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } &&
6263d81f 30057 { ac_try='test -z "$ac_c_werror_flag"
30058 || test ! -s conftest.err'
af3004ff 30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; } &&
30064 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; }; then
ca732765 30070 ac_lo=0 ac_mid=0
30071 while :; do
30072 cat >conftest.$ac_ext <<_ACEOF
ad21602a 30073/* confdefs.h. */
30074_ACEOF
30075cat confdefs.h >>conftest.$ac_ext
30076cat >>conftest.$ac_ext <<_ACEOF
30077/* end confdefs.h. */
33f5f8b9 30078
ca732765 30079#include <stdio.h>
30080
33f5f8b9 30081/* What a mess.. many systems have added the (now standard) bit types
30082 * in their own ways, so we need to scan a wide variety of headers to
30083 * find them..
30084 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30085 */
30086#if HAVE_SYS_TYPES_H
30087#include <sys/types.h>
30088#endif
30089#if STDC_HEADERS
30090#include <stdlib.h>
30091#include <stddef.h>
30092#endif
30093#if HAVE_INTTYPES_H
30094#include <inttypes.h>
30095#endif
30096#if HAVE_SYS_BITYPES_H
30097#include <sys/bitypes.h>
30098#endif
11e71ab8 30099#if HAVE_SYS_SELECT_H
30100#include <sys/select.h>
30101#endif
33f5f8b9 30102
30103
ca732765 30104
33f5f8b9 30105int
30106main ()
30107{
ca732765 30108static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
30109test_array [0] = 0
30110
33f5f8b9 30111 ;
30112 return 0;
30113}
30114_ACEOF
30115rm -f conftest.$ac_objext
30116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30117 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30118 ac_status=$?
af3004ff 30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
33f5f8b9 30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
6263d81f 30124 { ac_try='test -z "$ac_c_werror_flag"
30125 || test ! -s conftest.err'
af3004ff 30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
ca732765 30137 ac_hi=$ac_mid; break
33f5f8b9 30138else
30139 echo "$as_me: failed program was:" >&5
ad21602a 30140sed 's/^/| /' conftest.$ac_ext >&5
30141
ca732765 30142ac_lo=`expr $ac_mid + 1`
30143 if test $ac_lo -le $ac_mid; then
30144 ac_lo= ac_hi=
30145 break
30146 fi
30147 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 30148fi
af3004ff 30149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ca732765 30150 done
33f5f8b9 30151else
ca732765 30152 echo "$as_me: failed program was:" >&5
30153sed 's/^/| /' conftest.$ac_ext >&5
30154
30155cat >conftest.$ac_ext <<_ACEOF
ad21602a 30156/* confdefs.h. */
30157_ACEOF
30158cat confdefs.h >>conftest.$ac_ext
30159cat >>conftest.$ac_ext <<_ACEOF
30160/* end confdefs.h. */
33f5f8b9 30161
a6edf800 30162#include <stdio.h>
30163
33f5f8b9 30164/* What a mess.. many systems have added the (now standard) bit types
30165 * in their own ways, so we need to scan a wide variety of headers to
30166 * find them..
30167 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30168 */
30169#if HAVE_SYS_TYPES_H
30170#include <sys/types.h>
30171#endif
30172#if STDC_HEADERS
30173#include <stdlib.h>
30174#include <stddef.h>
30175#endif
30176#if HAVE_INTTYPES_H
30177#include <inttypes.h>
30178#endif
30179#if HAVE_SYS_BITYPES_H
30180#include <sys/bitypes.h>
30181#endif
11e71ab8 30182#if HAVE_SYS_SELECT_H
30183#include <sys/select.h>
30184#endif
33f5f8b9 30185
30186
a6edf800 30187
33f5f8b9 30188int
30189main ()
30190{
ca732765 30191static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
30192test_array [0] = 0
30193
33f5f8b9 30194 ;
30195 return 0;
30196}
30197_ACEOF
30198rm -f conftest.$ac_objext
30199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30200 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30201 ac_status=$?
af3004ff 30202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
33f5f8b9 30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } &&
6263d81f 30207 { ac_try='test -z "$ac_c_werror_flag"
30208 || test ! -s conftest.err'
af3004ff 30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30211 ac_status=$?
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; } &&
30214 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216 (eval $ac_try) 2>&5
30217 ac_status=$?
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); }; }; then
ca732765 30220 ac_hi=-1 ac_mid=-1
30221 while :; do
30222 cat >conftest.$ac_ext <<_ACEOF
ad21602a 30223/* confdefs.h. */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h. */
33f5f8b9 30228
a6edf800 30229#include <stdio.h>
30230
33f5f8b9 30231/* What a mess.. many systems have added the (now standard) bit types
30232 * in their own ways, so we need to scan a wide variety of headers to
30233 * find them..
30234 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30235 */
30236#if HAVE_SYS_TYPES_H
30237#include <sys/types.h>
30238#endif
30239#if STDC_HEADERS
30240#include <stdlib.h>
30241#include <stddef.h>
30242#endif
30243#if HAVE_INTTYPES_H
30244#include <inttypes.h>
30245#endif
30246#if HAVE_SYS_BITYPES_H
30247#include <sys/bitypes.h>
30248#endif
11e71ab8 30249#if HAVE_SYS_SELECT_H
30250#include <sys/select.h>
30251#endif
33f5f8b9 30252
30253
a6edf800 30254
33f5f8b9 30255int
30256main ()
30257{
ca732765 30258static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
33f5f8b9 30259test_array [0] = 0
30260
30261 ;
30262 return 0;
30263}
30264_ACEOF
30265rm -f conftest.$ac_objext
30266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30267 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30268 ac_status=$?
af3004ff 30269 grep -v '^ *+' conftest.er1 >conftest.err
30270 rm -f conftest.er1
30271 cat conftest.err >&5
33f5f8b9 30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); } &&
6263d81f 30274 { ac_try='test -z "$ac_c_werror_flag"
30275 || test ! -s conftest.err'
af3004ff 30276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30277 (eval $ac_try) 2>&5
30278 ac_status=$?
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); }; } &&
30281 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30283 (eval $ac_try) 2>&5
30284 ac_status=$?
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); }; }; then
ca732765 30287 ac_lo=$ac_mid; break
30288else
30289 echo "$as_me: failed program was:" >&5
30290sed 's/^/| /' conftest.$ac_ext >&5
30291
30292ac_hi=`expr '(' $ac_mid ')' - 1`
30293 if test $ac_mid -le $ac_hi; then
30294 ac_lo= ac_hi=
30295 break
30296 fi
30297 ac_mid=`expr 2 '*' $ac_mid`
30298fi
30299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30300 done
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305ac_lo= ac_hi=
30306fi
30307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30308fi
30309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30310# Binary search between lo and hi bounds.
30311while test "x$ac_lo" != "x$ac_hi"; do
30312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30313 cat >conftest.$ac_ext <<_ACEOF
ad21602a 30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
33f5f8b9 30319
a6edf800 30320#include <stdio.h>
30321
33f5f8b9 30322/* What a mess.. many systems have added the (now standard) bit types
30323 * in their own ways, so we need to scan a wide variety of headers to
30324 * find them..
30325 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30326 */
30327#if HAVE_SYS_TYPES_H
30328#include <sys/types.h>
30329#endif
30330#if STDC_HEADERS
30331#include <stdlib.h>
30332#include <stddef.h>
30333#endif
30334#if HAVE_INTTYPES_H
30335#include <inttypes.h>
30336#endif
30337#if HAVE_SYS_BITYPES_H
30338#include <sys/bitypes.h>
30339#endif
11e71ab8 30340#if HAVE_SYS_SELECT_H
30341#include <sys/select.h>
30342#endif
33f5f8b9 30343
30344
a6edf800 30345
33f5f8b9 30346int
30347main ()
30348{
ca732765 30349static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33f5f8b9 30350test_array [0] = 0
30351
30352 ;
30353 return 0;
30354}
30355_ACEOF
30356rm -f conftest.$ac_objext
30357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30358 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30359 ac_status=$?
af3004ff 30360 grep -v '^ *+' conftest.er1 >conftest.err
30361 rm -f conftest.er1
30362 cat conftest.err >&5
33f5f8b9 30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } &&
6263d81f 30365 { ac_try='test -z "$ac_c_werror_flag"
30366 || test ! -s conftest.err'
af3004ff 30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; } &&
30372 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
ca732765 30378 ac_hi=$ac_mid
33f5f8b9 30379else
30380 echo "$as_me: failed program was:" >&5
ad21602a 30381sed 's/^/| /' conftest.$ac_ext >&5
30382
ca732765 30383ac_lo=`expr '(' $ac_mid ')' + 1`
33f5f8b9 30384fi
af3004ff 30385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ca732765 30386done
30387case $ac_lo in
30388?*) ac_cv_sizeof_int=$ac_lo;;
30389'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
30390See \`config.log' for more details." >&5
30391echo "$as_me: error: cannot compute sizeof (int), 77
30392See \`config.log' for more details." >&2;}
30393 { (exit 1); exit 1; }; } ;;
30394esac
33f5f8b9 30395else
ca732765 30396 if test "$cross_compiling" = yes; then
30397 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30398See \`config.log' for more details." >&5
30399echo "$as_me: error: cannot run test program while cross compiling
30400See \`config.log' for more details." >&2;}
30401 { (exit 1); exit 1; }; }
30402else
30403 cat >conftest.$ac_ext <<_ACEOF
ad21602a 30404/* confdefs.h. */
30405_ACEOF
30406cat confdefs.h >>conftest.$ac_ext
30407cat >>conftest.$ac_ext <<_ACEOF
30408/* end confdefs.h. */
33f5f8b9 30409
a6edf800 30410#include <stdio.h>
30411
33f5f8b9 30412/* What a mess.. many systems have added the (now standard) bit types
30413 * in their own ways, so we need to scan a wide variety of headers to
30414 * find them..
30415 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30416 */
30417#if HAVE_SYS_TYPES_H
30418#include <sys/types.h>
30419#endif
30420#if STDC_HEADERS
30421#include <stdlib.h>
30422#include <stddef.h>
30423#endif
30424#if HAVE_INTTYPES_H
30425#include <inttypes.h>
30426#endif
30427#if HAVE_SYS_BITYPES_H
30428#include <sys/bitypes.h>
30429#endif
11e71ab8 30430#if HAVE_SYS_SELECT_H
30431#include <sys/select.h>
30432#endif
33f5f8b9 30433
30434
a6edf800 30435
ca732765 30436long longval () { return (long) (sizeof (int)); }
30437unsigned long ulongval () { return (long) (sizeof (int)); }
30438#include <stdio.h>
30439#include <stdlib.h>
33f5f8b9 30440int
30441main ()
30442{
33f5f8b9 30443
ca732765 30444 FILE *f = fopen ("conftest.val", "w");
30445 if (! f)
30446 exit (1);
30447 if (((long) (sizeof (int))) < 0)
30448 {
30449 long i = longval ();
30450 if (i != ((long) (sizeof (int))))
30451 exit (1);
30452 fprintf (f, "%ld\n", i);
30453 }
30454 else
30455 {
30456 unsigned long i = ulongval ();
30457 if (i != ((long) (sizeof (int))))
30458 exit (1);
30459 fprintf (f, "%lu\n", i);
30460 }
30461 exit (ferror (f) || fclose (f) != 0);
30462
30463 ;
30464 return 0;
30465}
30466_ACEOF
30467rm -f conftest$ac_exeext
30468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30469 (eval $ac_link) 2>&5
af3004ff 30470 ac_status=$?
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ca732765 30472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33f5f8b9 30473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474 (eval $ac_try) 2>&5
30475 ac_status=$?
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; }; then
ca732765 30478 ac_cv_sizeof_int=`cat conftest.val`
30479else
30480 echo "$as_me: program exited with status $ac_status" >&5
30481echo "$as_me: failed program was:" >&5
30482sed 's/^/| /' conftest.$ac_ext >&5
30483
30484( exit $ac_status )
30485{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
30486See \`config.log' for more details." >&5
30487echo "$as_me: error: cannot compute sizeof (int), 77
30488See \`config.log' for more details." >&2;}
30489 { (exit 1); exit 1; }; }
30490fi
30491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30492fi
30493fi
30494rm -f conftest.val
30495else
30496 ac_cv_sizeof_int=0
30497fi
30498fi
30499echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
30500echo "${ECHO_T}$ac_cv_sizeof_int" >&6
30501cat >>confdefs.h <<_ACEOF
30502#define SIZEOF_INT $ac_cv_sizeof_int
30503_ACEOF
30504
30505
30506
30507cat >>confdefs.h <<\_ACEOF
30508#define HAVE_INT 1
30509_ACEOF
30510
30511
30512fi
30513
30514
30515echo "$as_me:$LINENO: checking for u_int16_t" >&5
30516echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
30517if test "${ac_cv_type_u_int16_t+set}" = set; then
30518 echo $ECHO_N "(cached) $ECHO_C" >&6
30519else
30520 cat >conftest.$ac_ext <<_ACEOF
ad21602a 30521/* confdefs.h. */
30522_ACEOF
30523cat confdefs.h >>conftest.$ac_ext
30524cat >>conftest.$ac_ext <<_ACEOF
30525/* end confdefs.h. */
33f5f8b9 30526
30527/* What a mess.. many systems have added the (now standard) bit types
30528 * in their own ways, so we need to scan a wide variety of headers to
30529 * find them..
30530 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30531 */
30532#if HAVE_SYS_TYPES_H
30533#include <sys/types.h>
30534#endif
30535#if STDC_HEADERS
30536#include <stdlib.h>
30537#include <stddef.h>
30538#endif
30539#if HAVE_INTTYPES_H
30540#include <inttypes.h>
30541#endif
30542#if HAVE_SYS_BITYPES_H
30543#include <sys/bitypes.h>
30544#endif
11e71ab8 30545#if HAVE_SYS_SELECT_H
30546#include <sys/select.h>
30547#endif
33f5f8b9 30548
30549
33f5f8b9 30550int
30551main ()
30552{
ca732765 30553if ((u_int16_t *) 0)
30554 return 0;
30555if (sizeof (u_int16_t))
30556 return 0;
33f5f8b9 30557 ;
30558 return 0;
30559}
30560_ACEOF
30561rm -f conftest.$ac_objext
30562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30563 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30564 ac_status=$?
af3004ff 30565 grep -v '^ *+' conftest.er1 >conftest.err
30566 rm -f conftest.er1
30567 cat conftest.err >&5
33f5f8b9 30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); } &&
6263d81f 30570 { ac_try='test -z "$ac_c_werror_flag"
30571 || test ! -s conftest.err'
af3004ff 30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; } &&
30577 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; }; then
ca732765 30583 ac_cv_type_u_int16_t=yes
33f5f8b9 30584else
30585 echo "$as_me: failed program was:" >&5
ad21602a 30586sed 's/^/| /' conftest.$ac_ext >&5
30587
ca732765 30588ac_cv_type_u_int16_t=no
33f5f8b9 30589fi
af3004ff 30590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 30591fi
ca732765 30592echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
30593echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
30594if test $ac_cv_type_u_int16_t = yes; then
30595
30596 echo "$as_me:$LINENO: checking for u_int16_t" >&5
30597echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
30598if test "${ac_cv_type_u_int16_t+set}" = set; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30600else
33f5f8b9 30601 cat >conftest.$ac_ext <<_ACEOF
ad21602a 30602/* confdefs.h. */
30603_ACEOF
30604cat confdefs.h >>conftest.$ac_ext
30605cat >>conftest.$ac_ext <<_ACEOF
30606/* end confdefs.h. */
33f5f8b9 30607
a6edf800 30608#include <stdio.h>
30609
33f5f8b9 30610/* What a mess.. many systems have added the (now standard) bit types
30611 * in their own ways, so we need to scan a wide variety of headers to
30612 * find them..
30613 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30614 */
30615#if HAVE_SYS_TYPES_H
30616#include <sys/types.h>
30617#endif
30618#if STDC_HEADERS
30619#include <stdlib.h>
30620#include <stddef.h>
30621#endif
30622#if HAVE_INTTYPES_H
30623#include <inttypes.h>
30624#endif
30625#if HAVE_SYS_BITYPES_H
30626#include <sys/bitypes.h>
30627#endif
11e71ab8 30628#if HAVE_SYS_SELECT_H
30629#include <sys/select.h>
30630#endif
33f5f8b9 30631
30632
a6edf800 30633
33f5f8b9 30634int
30635main ()
30636{
ca732765 30637if ((u_int16_t *) 0)
30638 return 0;
30639if (sizeof (u_int16_t))
30640 return 0;
33f5f8b9 30641 ;
30642 return 0;
30643}
30644_ACEOF
30645rm -f conftest.$ac_objext
30646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 30647 (eval $ac_compile) 2>conftest.er1
33f5f8b9 30648 ac_status=$?
af3004ff 30649 grep -v '^ *+' conftest.er1 >conftest.err
30650 rm -f conftest.er1
30651 cat conftest.err >&5
33f5f8b9 30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); } &&
6263d81f 30654 { ac_try='test -z "$ac_c_werror_flag"
30655 || test ! -s conftest.err'
af3004ff 30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
ca732765 30667 ac_cv_type_u_int16_t=yes
33f5f8b9 30668else
30669 echo "$as_me: failed program was:" >&5
ad21602a 30670sed 's/^/| /' conftest.$ac_ext >&5
30671
ca732765 30672ac_cv_type_u_int16_t=no
33f5f8b9 30673fi
af3004ff 30674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ca732765 30675fi
30676echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
30677echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
30678
30679echo "$as_me:$LINENO: checking size of u_int16_t" >&5
30680echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6
30681if test "${ac_cv_sizeof_u_int16_t+set}" = set; then
30682 echo $ECHO_N "(cached) $ECHO_C" >&6
33f5f8b9 30683else
ca732765 30684 if test "$ac_cv_type_u_int16_t" = yes; then
30685 # The cast to unsigned long works around a bug in the HP C Compiler
30686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30688 # This bug is HP SR number 8606223364.
33f5f8b9 30689 if test "$cross_compiling" = yes; then
ca732765 30690 # Depending upon the size, compute the lo and hi bounds.
30691cat >conftest.$ac_ext <<_ACEOF
ad21602a 30692/* confdefs.h. */
30693_ACEOF
30694cat confdefs.h >>conftest.$ac_ext
30695cat >>conftest.$ac_ext <<_ACEOF
30696/* end confdefs.h. */
33f5f8b9 30697
a6edf800 30698#include <stdio.h>
30699
33f5f8b9 30700/* What a mess.. many systems have added the (now standard) bit types
30701 * in their own ways, so we need to scan a wide variety of headers to
30702 * find them..
30703 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30704 */
30705#if HAVE_SYS_TYPES_H
30706#include <sys/types.h>
30707#endif
30708#if STDC_HEADERS
30709#include <stdlib.h>
30710#include <stddef.h>
30711#endif
30712#if HAVE_INTTYPES_H
30713#include <inttypes.h>
30714#endif
30715#if HAVE_SYS_BITYPES_H
30716#include <sys/bitypes.h>
30717#endif
11e71ab8 30718#if HAVE_SYS_SELECT_H
30719#include <sys/select.h>
30720#endif
33f5f8b9 30721
30722
a6edf800 30723
ca732765 30724int
30725main ()
30726{
30727static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= 0)];
30728test_array [0] = 0
30729
30730 ;
30731 return 0;
30732}
30733_ACEOF
30734rm -f conftest.$ac_objext
30735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30736 (eval $ac_compile) 2>conftest.er1
30737 ac_status=$?
30738 grep -v '^ *+' conftest.er1 >conftest.err
30739 rm -f conftest.er1
30740 cat conftest.err >&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } &&
30743 { ac_try='test -z "$ac_c_werror_flag"
30744 || test ! -s conftest.err'
30745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30746 (eval $ac_try) 2>&5
30747 ac_status=$?
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); }; } &&
30750 { ac_try='test -s conftest.$ac_objext'
30751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752 (eval $ac_try) 2>&5
30753 ac_status=$?
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; }; then
30756 ac_lo=0 ac_mid=0
30757 while :; do
30758 cat >conftest.$ac_ext <<_ACEOF
30759/* confdefs.h. */
30760_ACEOF
30761cat confdefs.h >>conftest.$ac_ext
30762cat >>conftest.$ac_ext <<_ACEOF
30763/* end confdefs.h. */
30764
33f5f8b9 30765#include <stdio.h>
ca732765 30766
30767/* What a mess.. many systems have added the (now standard) bit types
30768 * in their own ways, so we need to scan a wide variety of headers to
30769 * find them..
30770 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30771 */
30772#if HAVE_SYS_TYPES_H
30773#include <sys/types.h>
30774#endif
30775#if STDC_HEADERS
33f5f8b9 30776#include <stdlib.h>
ca732765 30777#include <stddef.h>
30778#endif
30779#if HAVE_INTTYPES_H
30780#include <inttypes.h>
30781#endif
30782#if HAVE_SYS_BITYPES_H
30783#include <sys/bitypes.h>
30784#endif
30785#if HAVE_SYS_SELECT_H
30786#include <sys/select.h>
30787#endif
30788
30789
30790
33f5f8b9 30791int
30792main ()
30793{
ca732765 30794static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)];
30795test_array [0] = 0
30796
30797 ;
30798 return 0;
30799}
30800_ACEOF
30801rm -f conftest.$ac_objext
30802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30803 (eval $ac_compile) 2>conftest.er1
30804 ac_status=$?
30805 grep -v '^ *+' conftest.er1 >conftest.err
30806 rm -f conftest.er1
30807 cat conftest.err >&5
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); } &&
30810 { ac_try='test -z "$ac_c_werror_flag"
30811 || test ! -s conftest.err'
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest.$ac_objext'
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; }; then
30823 ac_hi=$ac_mid; break
30824else
30825 echo "$as_me: failed program was:" >&5
30826sed 's/^/| /' conftest.$ac_ext >&5
30827
30828ac_lo=`expr $ac_mid + 1`
30829 if test $ac_lo -le $ac_mid; then
30830 ac_lo= ac_hi=
30831 break
30832 fi
30833 ac_mid=`expr 2 '*' $ac_mid + 1`
30834fi
30835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30836 done
30837else
30838 echo "$as_me: failed program was:" >&5
30839sed 's/^/| /' conftest.$ac_ext >&5
30840
30841cat >conftest.$ac_ext <<_ACEOF
30842/* confdefs.h. */
30843_ACEOF
30844cat confdefs.h >>conftest.$ac_ext
30845cat >>conftest.$ac_ext <<_ACEOF
30846/* end confdefs.h. */
30847
30848#include <stdio.h>
30849
30850/* What a mess.. many systems have added the (now standard) bit types
30851 * in their own ways, so we need to scan a wide variety of headers to
30852 * find them..
30853 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30854 */
30855#if HAVE_SYS_TYPES_H
30856#include <sys/types.h>
30857#endif
30858#if STDC_HEADERS
30859#include <stdlib.h>
30860#include <stddef.h>
30861#endif
30862#if HAVE_INTTYPES_H
30863#include <inttypes.h>
30864#endif
30865#if HAVE_SYS_BITYPES_H
30866#include <sys/bitypes.h>
30867#endif
30868#if HAVE_SYS_SELECT_H
30869#include <sys/select.h>
30870#endif
30871
30872
30873
30874int
30875main ()
30876{
30877static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) < 0)];
30878test_array [0] = 0
30879
30880 ;
30881 return 0;
30882}
30883_ACEOF
30884rm -f conftest.$ac_objext
30885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30886 (eval $ac_compile) 2>conftest.er1
30887 ac_status=$?
30888 grep -v '^ *+' conftest.er1 >conftest.err
30889 rm -f conftest.er1
30890 cat conftest.err >&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } &&
30893 { ac_try='test -z "$ac_c_werror_flag"
30894 || test ! -s conftest.err'
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; } &&
30900 { ac_try='test -s conftest.$ac_objext'
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 ac_hi=-1 ac_mid=-1
30907 while :; do
30908 cat >conftest.$ac_ext <<_ACEOF
30909/* confdefs.h. */
30910_ACEOF
30911cat confdefs.h >>conftest.$ac_ext
30912cat >>conftest.$ac_ext <<_ACEOF
30913/* end confdefs.h. */
30914
30915#include <stdio.h>
30916
30917/* What a mess.. many systems have added the (now standard) bit types
30918 * in their own ways, so we need to scan a wide variety of headers to
30919 * find them..
30920 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30921 */
30922#if HAVE_SYS_TYPES_H
30923#include <sys/types.h>
30924#endif
30925#if STDC_HEADERS
30926#include <stdlib.h>
30927#include <stddef.h>
30928#endif
30929#if HAVE_INTTYPES_H
30930#include <inttypes.h>
30931#endif
30932#if HAVE_SYS_BITYPES_H
30933#include <sys/bitypes.h>
30934#endif
30935#if HAVE_SYS_SELECT_H
30936#include <sys/select.h>
30937#endif
30938
30939
30940
30941int
30942main ()
30943{
30944static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= $ac_mid)];
30945test_array [0] = 0
30946
30947 ;
30948 return 0;
30949}
30950_ACEOF
30951rm -f conftest.$ac_objext
30952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30953 (eval $ac_compile) 2>conftest.er1
30954 ac_status=$?
30955 grep -v '^ *+' conftest.er1 >conftest.err
30956 rm -f conftest.er1
30957 cat conftest.err >&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
30960 { ac_try='test -z "$ac_c_werror_flag"
30961 || test ! -s conftest.err'
30962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963 (eval $ac_try) 2>&5
30964 ac_status=$?
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; } &&
30967 { ac_try='test -s conftest.$ac_objext'
30968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969 (eval $ac_try) 2>&5
30970 ac_status=$?
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); }; }; then
30973 ac_lo=$ac_mid; break
30974else
30975 echo "$as_me: failed program was:" >&5
30976sed 's/^/| /' conftest.$ac_ext >&5
30977
30978ac_hi=`expr '(' $ac_mid ')' - 1`
30979 if test $ac_mid -le $ac_hi; then
30980 ac_lo= ac_hi=
30981 break
30982 fi
30983 ac_mid=`expr 2 '*' $ac_mid`
30984fi
30985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30986 done
30987else
30988 echo "$as_me: failed program was:" >&5
30989sed 's/^/| /' conftest.$ac_ext >&5
30990
30991ac_lo= ac_hi=
30992fi
30993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30994fi
30995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30996# Binary search between lo and hi bounds.
30997while test "x$ac_lo" != "x$ac_hi"; do
30998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30999 cat >conftest.$ac_ext <<_ACEOF
31000/* confdefs.h. */
31001_ACEOF
31002cat confdefs.h >>conftest.$ac_ext
31003cat >>conftest.$ac_ext <<_ACEOF
31004/* end confdefs.h. */
31005
31006#include <stdio.h>
31007
31008/* What a mess.. many systems have added the (now standard) bit types
31009 * in their own ways, so we need to scan a wide variety of headers to
31010 * find them..
31011 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31012 */
31013#if HAVE_SYS_TYPES_H
31014#include <sys/types.h>
31015#endif
31016#if STDC_HEADERS
31017#include <stdlib.h>
31018#include <stddef.h>
31019#endif
31020#if HAVE_INTTYPES_H
31021#include <inttypes.h>
31022#endif
31023#if HAVE_SYS_BITYPES_H
31024#include <sys/bitypes.h>
31025#endif
31026#if HAVE_SYS_SELECT_H
31027#include <sys/select.h>
31028#endif
31029
31030
31031
31032int
31033main ()
31034{
31035static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)];
31036test_array [0] = 0
31037
31038 ;
31039 return 0;
31040}
31041_ACEOF
31042rm -f conftest.$ac_objext
31043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31044 (eval $ac_compile) 2>conftest.er1
31045 ac_status=$?
31046 grep -v '^ *+' conftest.er1 >conftest.err
31047 rm -f conftest.er1
31048 cat conftest.err >&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } &&
31051 { ac_try='test -z "$ac_c_werror_flag"
31052 || test ! -s conftest.err'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest.$ac_objext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 ac_hi=$ac_mid
31065else
31066 echo "$as_me: failed program was:" >&5
31067sed 's/^/| /' conftest.$ac_ext >&5
31068
31069ac_lo=`expr '(' $ac_mid ')' + 1`
31070fi
31071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31072done
31073case $ac_lo in
31074?*) ac_cv_sizeof_u_int16_t=$ac_lo;;
31075'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77
31076See \`config.log' for more details." >&5
31077echo "$as_me: error: cannot compute sizeof (u_int16_t), 77
31078See \`config.log' for more details." >&2;}
31079 { (exit 1); exit 1; }; } ;;
31080esac
31081else
31082 if test "$cross_compiling" = yes; then
31083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31084See \`config.log' for more details." >&5
31085echo "$as_me: error: cannot run test program while cross compiling
31086See \`config.log' for more details." >&2;}
31087 { (exit 1); exit 1; }; }
31088else
31089 cat >conftest.$ac_ext <<_ACEOF
31090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
31095
31096#include <stdio.h>
31097
31098/* What a mess.. many systems have added the (now standard) bit types
31099 * in their own ways, so we need to scan a wide variety of headers to
31100 * find them..
31101 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31102 */
31103#if HAVE_SYS_TYPES_H
31104#include <sys/types.h>
31105#endif
31106#if STDC_HEADERS
31107#include <stdlib.h>
31108#include <stddef.h>
31109#endif
31110#if HAVE_INTTYPES_H
31111#include <inttypes.h>
31112#endif
31113#if HAVE_SYS_BITYPES_H
31114#include <sys/bitypes.h>
31115#endif
31116#if HAVE_SYS_SELECT_H
31117#include <sys/select.h>
31118#endif
31119
31120
31121
31122long longval () { return (long) (sizeof (u_int16_t)); }
31123unsigned long ulongval () { return (long) (sizeof (u_int16_t)); }
31124#include <stdio.h>
31125#include <stdlib.h>
31126int
31127main ()
31128{
31129
31130 FILE *f = fopen ("conftest.val", "w");
31131 if (! f)
31132 exit (1);
31133 if (((long) (sizeof (u_int16_t))) < 0)
31134 {
31135 long i = longval ();
31136 if (i != ((long) (sizeof (u_int16_t))))
31137 exit (1);
31138 fprintf (f, "%ld\n", i);
31139 }
31140 else
31141 {
31142 unsigned long i = ulongval ();
31143 if (i != ((long) (sizeof (u_int16_t))))
31144 exit (1);
31145 fprintf (f, "%lu\n", i);
31146 }
31147 exit (ferror (f) || fclose (f) != 0);
31148
31149 ;
31150 return 0;
31151}
31152_ACEOF
31153rm -f conftest$ac_exeext
31154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31155 (eval $ac_link) 2>&5
31156 ac_status=$?
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31160 (eval $ac_try) 2>&5
31161 ac_status=$?
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); }; }; then
31164 ac_cv_sizeof_u_int16_t=`cat conftest.val`
31165else
31166 echo "$as_me: program exited with status $ac_status" >&5
31167echo "$as_me: failed program was:" >&5
31168sed 's/^/| /' conftest.$ac_ext >&5
31169
31170( exit $ac_status )
31171{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77
31172See \`config.log' for more details." >&5
31173echo "$as_me: error: cannot compute sizeof (u_int16_t), 77
31174See \`config.log' for more details." >&2;}
31175 { (exit 1); exit 1; }; }
31176fi
31177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31178fi
31179fi
31180rm -f conftest.val
31181else
31182 ac_cv_sizeof_u_int16_t=0
31183fi
31184fi
31185echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5
31186echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6
31187cat >>confdefs.h <<_ACEOF
31188#define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
31189_ACEOF
31190
31191
31192
31193cat >>confdefs.h <<\_ACEOF
31194#define HAVE_U_INT16_T 1
31195_ACEOF
31196
31197
31198fi
31199
31200
31201echo "$as_me:$LINENO: checking for uint16_t" >&5
31202echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
31203if test "${ac_cv_type_uint16_t+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31205else
31206 cat >conftest.$ac_ext <<_ACEOF
31207/* confdefs.h. */
31208_ACEOF
31209cat confdefs.h >>conftest.$ac_ext
31210cat >>conftest.$ac_ext <<_ACEOF
31211/* end confdefs.h. */
31212
31213/* What a mess.. many systems have added the (now standard) bit types
31214 * in their own ways, so we need to scan a wide variety of headers to
31215 * find them..
31216 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31217 */
31218#if HAVE_SYS_TYPES_H
31219#include <sys/types.h>
31220#endif
31221#if STDC_HEADERS
31222#include <stdlib.h>
31223#include <stddef.h>
31224#endif
31225#if HAVE_INTTYPES_H
31226#include <inttypes.h>
31227#endif
31228#if HAVE_SYS_BITYPES_H
31229#include <sys/bitypes.h>
31230#endif
31231#if HAVE_SYS_SELECT_H
31232#include <sys/select.h>
31233#endif
31234
31235
31236int
31237main ()
31238{
31239if ((uint16_t *) 0)
31240 return 0;
31241if (sizeof (uint16_t))
31242 return 0;
31243 ;
31244 return 0;
31245}
31246_ACEOF
31247rm -f conftest.$ac_objext
31248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31249 (eval $ac_compile) 2>conftest.er1
31250 ac_status=$?
31251 grep -v '^ *+' conftest.er1 >conftest.err
31252 rm -f conftest.er1
31253 cat conftest.err >&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); } &&
31256 { ac_try='test -z "$ac_c_werror_flag"
31257 || test ! -s conftest.err'
31258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31259 (eval $ac_try) 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; } &&
31263 { ac_try='test -s conftest.$ac_objext'
31264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265 (eval $ac_try) 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; }; then
31269 ac_cv_type_uint16_t=yes
31270else
31271 echo "$as_me: failed program was:" >&5
31272sed 's/^/| /' conftest.$ac_ext >&5
31273
31274ac_cv_type_uint16_t=no
31275fi
31276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31277fi
31278echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
31279echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
31280if test $ac_cv_type_uint16_t = yes; then
31281
31282 echo "$as_me:$LINENO: checking for uint16_t" >&5
31283echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
31284if test "${ac_cv_type_uint16_t+set}" = set; then
31285 echo $ECHO_N "(cached) $ECHO_C" >&6
31286else
31287 cat >conftest.$ac_ext <<_ACEOF
31288/* confdefs.h. */
31289_ACEOF
31290cat confdefs.h >>conftest.$ac_ext
31291cat >>conftest.$ac_ext <<_ACEOF
31292/* end confdefs.h. */
31293
31294#include <stdio.h>
31295
31296/* What a mess.. many systems have added the (now standard) bit types
31297 * in their own ways, so we need to scan a wide variety of headers to
31298 * find them..
31299 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31300 */
31301#if HAVE_SYS_TYPES_H
31302#include <sys/types.h>
31303#endif
31304#if STDC_HEADERS
31305#include <stdlib.h>
31306#include <stddef.h>
31307#endif
31308#if HAVE_INTTYPES_H
31309#include <inttypes.h>
31310#endif
31311#if HAVE_SYS_BITYPES_H
31312#include <sys/bitypes.h>
31313#endif
31314#if HAVE_SYS_SELECT_H
31315#include <sys/select.h>
31316#endif
31317
31318
31319
31320int
31321main ()
31322{
31323if ((uint16_t *) 0)
31324 return 0;
31325if (sizeof (uint16_t))
31326 return 0;
31327 ;
31328 return 0;
31329}
31330_ACEOF
31331rm -f conftest.$ac_objext
31332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31333 (eval $ac_compile) 2>conftest.er1
31334 ac_status=$?
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag"
31341 || test ! -s conftest.err'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest.$ac_objext'
31348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349 (eval $ac_try) 2>&5
31350 ac_status=$?
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; }; then
31353 ac_cv_type_uint16_t=yes
31354else
31355 echo "$as_me: failed program was:" >&5
31356sed 's/^/| /' conftest.$ac_ext >&5
31357
31358ac_cv_type_uint16_t=no
31359fi
31360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31361fi
31362echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
31363echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
31364
31365echo "$as_me:$LINENO: checking size of uint16_t" >&5
31366echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
31367if test "${ac_cv_sizeof_uint16_t+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370 if test "$ac_cv_type_uint16_t" = yes; then
31371 # The cast to unsigned long works around a bug in the HP C Compiler
31372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31374 # This bug is HP SR number 8606223364.
31375 if test "$cross_compiling" = yes; then
31376 # Depending upon the size, compute the lo and hi bounds.
31377cat >conftest.$ac_ext <<_ACEOF
31378/* confdefs.h. */
31379_ACEOF
31380cat confdefs.h >>conftest.$ac_ext
31381cat >>conftest.$ac_ext <<_ACEOF
31382/* end confdefs.h. */
31383
31384#include <stdio.h>
31385
31386/* What a mess.. many systems have added the (now standard) bit types
31387 * in their own ways, so we need to scan a wide variety of headers to
31388 * find them..
31389 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31390 */
31391#if HAVE_SYS_TYPES_H
31392#include <sys/types.h>
31393#endif
31394#if STDC_HEADERS
31395#include <stdlib.h>
31396#include <stddef.h>
31397#endif
31398#if HAVE_INTTYPES_H
31399#include <inttypes.h>
31400#endif
31401#if HAVE_SYS_BITYPES_H
31402#include <sys/bitypes.h>
31403#endif
31404#if HAVE_SYS_SELECT_H
31405#include <sys/select.h>
31406#endif
31407
31408
31409
31410int
31411main ()
31412{
31413static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= 0)];
31414test_array [0] = 0
31415
31416 ;
31417 return 0;
31418}
31419_ACEOF
31420rm -f conftest.$ac_objext
31421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31422 (eval $ac_compile) 2>conftest.er1
31423 ac_status=$?
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } &&
31429 { ac_try='test -z "$ac_c_werror_flag"
31430 || test ! -s conftest.err'
31431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432 (eval $ac_try) 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; } &&
31436 { ac_try='test -s conftest.$ac_objext'
31437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31438 (eval $ac_try) 2>&5
31439 ac_status=$?
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; }; then
31442 ac_lo=0 ac_mid=0
31443 while :; do
31444 cat >conftest.$ac_ext <<_ACEOF
31445/* confdefs.h. */
31446_ACEOF
31447cat confdefs.h >>conftest.$ac_ext
31448cat >>conftest.$ac_ext <<_ACEOF
31449/* end confdefs.h. */
31450
31451#include <stdio.h>
31452
31453/* What a mess.. many systems have added the (now standard) bit types
31454 * in their own ways, so we need to scan a wide variety of headers to
31455 * find them..
31456 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31457 */
31458#if HAVE_SYS_TYPES_H
31459#include <sys/types.h>
31460#endif
31461#if STDC_HEADERS
31462#include <stdlib.h>
31463#include <stddef.h>
31464#endif
31465#if HAVE_INTTYPES_H
31466#include <inttypes.h>
31467#endif
31468#if HAVE_SYS_BITYPES_H
31469#include <sys/bitypes.h>
31470#endif
31471#if HAVE_SYS_SELECT_H
31472#include <sys/select.h>
31473#endif
31474
31475
31476
31477int
31478main ()
31479{
31480static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)];
31481test_array [0] = 0
31482
31483 ;
31484 return 0;
31485}
31486_ACEOF
31487rm -f conftest.$ac_objext
31488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31489 (eval $ac_compile) 2>conftest.er1
31490 ac_status=$?
31491 grep -v '^ *+' conftest.er1 >conftest.err
31492 rm -f conftest.er1
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } &&
31496 { ac_try='test -z "$ac_c_werror_flag"
31497 || test ! -s conftest.err'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; } &&
31503 { ac_try='test -s conftest.$ac_objext'
31504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505 (eval $ac_try) 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; }; then
31509 ac_hi=$ac_mid; break
31510else
31511 echo "$as_me: failed program was:" >&5
31512sed 's/^/| /' conftest.$ac_ext >&5
31513
31514ac_lo=`expr $ac_mid + 1`
31515 if test $ac_lo -le $ac_mid; then
31516 ac_lo= ac_hi=
31517 break
31518 fi
31519 ac_mid=`expr 2 '*' $ac_mid + 1`
31520fi
31521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31522 done
31523else
31524 echo "$as_me: failed program was:" >&5
31525sed 's/^/| /' conftest.$ac_ext >&5
31526
31527cat >conftest.$ac_ext <<_ACEOF
31528/* confdefs.h. */
31529_ACEOF
31530cat confdefs.h >>conftest.$ac_ext
31531cat >>conftest.$ac_ext <<_ACEOF
31532/* end confdefs.h. */
31533
31534#include <stdio.h>
31535
31536/* What a mess.. many systems have added the (now standard) bit types
31537 * in their own ways, so we need to scan a wide variety of headers to
31538 * find them..
31539 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31540 */
31541#if HAVE_SYS_TYPES_H
31542#include <sys/types.h>
31543#endif
31544#if STDC_HEADERS
31545#include <stdlib.h>
31546#include <stddef.h>
31547#endif
31548#if HAVE_INTTYPES_H
31549#include <inttypes.h>
31550#endif
31551#if HAVE_SYS_BITYPES_H
31552#include <sys/bitypes.h>
31553#endif
31554#if HAVE_SYS_SELECT_H
31555#include <sys/select.h>
31556#endif
31557
31558
31559
31560int
31561main ()
31562{
31563static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) < 0)];
31564test_array [0] = 0
31565
31566 ;
31567 return 0;
31568}
31569_ACEOF
31570rm -f conftest.$ac_objext
31571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31572 (eval $ac_compile) 2>conftest.er1
31573 ac_status=$?
31574 grep -v '^ *+' conftest.er1 >conftest.err
31575 rm -f conftest.er1
31576 cat conftest.err >&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); } &&
31579 { ac_try='test -z "$ac_c_werror_flag"
31580 || test ! -s conftest.err'
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; } &&
31586 { ac_try='test -s conftest.$ac_objext'
31587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31588 (eval $ac_try) 2>&5
31589 ac_status=$?
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); }; }; then
31592 ac_hi=-1 ac_mid=-1
31593 while :; do
31594 cat >conftest.$ac_ext <<_ACEOF
31595/* confdefs.h. */
31596_ACEOF
31597cat confdefs.h >>conftest.$ac_ext
31598cat >>conftest.$ac_ext <<_ACEOF
31599/* end confdefs.h. */
31600
31601#include <stdio.h>
31602
31603/* What a mess.. many systems have added the (now standard) bit types
31604 * in their own ways, so we need to scan a wide variety of headers to
31605 * find them..
31606 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31607 */
31608#if HAVE_SYS_TYPES_H
31609#include <sys/types.h>
31610#endif
31611#if STDC_HEADERS
31612#include <stdlib.h>
31613#include <stddef.h>
31614#endif
31615#if HAVE_INTTYPES_H
31616#include <inttypes.h>
31617#endif
31618#if HAVE_SYS_BITYPES_H
31619#include <sys/bitypes.h>
31620#endif
31621#if HAVE_SYS_SELECT_H
31622#include <sys/select.h>
31623#endif
31624
31625
31626
31627int
31628main ()
31629{
31630static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= $ac_mid)];
31631test_array [0] = 0
31632
31633 ;
31634 return 0;
31635}
31636_ACEOF
31637rm -f conftest.$ac_objext
31638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31639 (eval $ac_compile) 2>conftest.er1
31640 ac_status=$?
31641 grep -v '^ *+' conftest.er1 >conftest.err
31642 rm -f conftest.er1
31643 cat conftest.err >&5
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } &&
31646 { ac_try='test -z "$ac_c_werror_flag"
31647 || test ! -s conftest.err'
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }; then
31659 ac_lo=$ac_mid; break
31660else
31661 echo "$as_me: failed program was:" >&5
31662sed 's/^/| /' conftest.$ac_ext >&5
31663
31664ac_hi=`expr '(' $ac_mid ')' - 1`
31665 if test $ac_mid -le $ac_hi; then
31666 ac_lo= ac_hi=
31667 break
31668 fi
31669 ac_mid=`expr 2 '*' $ac_mid`
31670fi
31671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31672 done
31673else
31674 echo "$as_me: failed program was:" >&5
31675sed 's/^/| /' conftest.$ac_ext >&5
31676
31677ac_lo= ac_hi=
31678fi
31679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31680fi
31681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31682# Binary search between lo and hi bounds.
31683while test "x$ac_lo" != "x$ac_hi"; do
31684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31685 cat >conftest.$ac_ext <<_ACEOF
31686/* confdefs.h. */
31687_ACEOF
31688cat confdefs.h >>conftest.$ac_ext
31689cat >>conftest.$ac_ext <<_ACEOF
31690/* end confdefs.h. */
31691
31692#include <stdio.h>
31693
31694/* What a mess.. many systems have added the (now standard) bit types
31695 * in their own ways, so we need to scan a wide variety of headers to
31696 * find them..
31697 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31698 */
31699#if HAVE_SYS_TYPES_H
31700#include <sys/types.h>
31701#endif
31702#if STDC_HEADERS
31703#include <stdlib.h>
31704#include <stddef.h>
31705#endif
31706#if HAVE_INTTYPES_H
31707#include <inttypes.h>
31708#endif
31709#if HAVE_SYS_BITYPES_H
31710#include <sys/bitypes.h>
31711#endif
31712#if HAVE_SYS_SELECT_H
31713#include <sys/select.h>
31714#endif
31715
31716
31717
31718int
31719main ()
31720{
31721static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)];
31722test_array [0] = 0
31723
31724 ;
31725 return 0;
31726}
31727_ACEOF
31728rm -f conftest.$ac_objext
31729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31730 (eval $ac_compile) 2>conftest.er1
31731 ac_status=$?
31732 grep -v '^ *+' conftest.er1 >conftest.err
31733 rm -f conftest.er1
31734 cat conftest.err >&5
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); } &&
31737 { ac_try='test -z "$ac_c_werror_flag"
31738 || test ! -s conftest.err'
31739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740 (eval $ac_try) 2>&5
31741 ac_status=$?
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746 (eval $ac_try) 2>&5
31747 ac_status=$?
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; }; then
31750 ac_hi=$ac_mid
31751else
31752 echo "$as_me: failed program was:" >&5
31753sed 's/^/| /' conftest.$ac_ext >&5
31754
31755ac_lo=`expr '(' $ac_mid ')' + 1`
31756fi
31757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31758done
31759case $ac_lo in
31760?*) ac_cv_sizeof_uint16_t=$ac_lo;;
31761'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77
31762See \`config.log' for more details." >&5
31763echo "$as_me: error: cannot compute sizeof (uint16_t), 77
31764See \`config.log' for more details." >&2;}
31765 { (exit 1); exit 1; }; } ;;
31766esac
31767else
31768 if test "$cross_compiling" = yes; then
31769 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31770See \`config.log' for more details." >&5
31771echo "$as_me: error: cannot run test program while cross compiling
31772See \`config.log' for more details." >&2;}
31773 { (exit 1); exit 1; }; }
31774else
31775 cat >conftest.$ac_ext <<_ACEOF
31776/* confdefs.h. */
31777_ACEOF
31778cat confdefs.h >>conftest.$ac_ext
31779cat >>conftest.$ac_ext <<_ACEOF
31780/* end confdefs.h. */
31781
31782#include <stdio.h>
31783
31784/* What a mess.. many systems have added the (now standard) bit types
31785 * in their own ways, so we need to scan a wide variety of headers to
31786 * find them..
31787 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31788 */
31789#if HAVE_SYS_TYPES_H
31790#include <sys/types.h>
31791#endif
31792#if STDC_HEADERS
31793#include <stdlib.h>
31794#include <stddef.h>
31795#endif
31796#if HAVE_INTTYPES_H
31797#include <inttypes.h>
31798#endif
31799#if HAVE_SYS_BITYPES_H
31800#include <sys/bitypes.h>
31801#endif
31802#if HAVE_SYS_SELECT_H
31803#include <sys/select.h>
31804#endif
31805
31806
31807
31808long longval () { return (long) (sizeof (uint16_t)); }
31809unsigned long ulongval () { return (long) (sizeof (uint16_t)); }
31810#include <stdio.h>
31811#include <stdlib.h>
31812int
31813main ()
31814{
31815
31816 FILE *f = fopen ("conftest.val", "w");
31817 if (! f)
31818 exit (1);
31819 if (((long) (sizeof (uint16_t))) < 0)
31820 {
31821 long i = longval ();
31822 if (i != ((long) (sizeof (uint16_t))))
31823 exit (1);
31824 fprintf (f, "%ld\n", i);
31825 }
31826 else
31827 {
31828 unsigned long i = ulongval ();
31829 if (i != ((long) (sizeof (uint16_t))))
31830 exit (1);
31831 fprintf (f, "%lu\n", i);
31832 }
31833 exit (ferror (f) || fclose (f) != 0);
31834
31835 ;
31836 return 0;
31837}
31838_ACEOF
31839rm -f conftest$ac_exeext
31840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31841 (eval $ac_link) 2>&5
31842 ac_status=$?
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31850 ac_cv_sizeof_uint16_t=`cat conftest.val`
31851else
31852 echo "$as_me: program exited with status $ac_status" >&5
31853echo "$as_me: failed program was:" >&5
31854sed 's/^/| /' conftest.$ac_ext >&5
31855
31856( exit $ac_status )
31857{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77
31858See \`config.log' for more details." >&5
31859echo "$as_me: error: cannot compute sizeof (uint16_t), 77
31860See \`config.log' for more details." >&2;}
31861 { (exit 1); exit 1; }; }
31862fi
31863rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31864fi
31865fi
31866rm -f conftest.val
31867else
31868 ac_cv_sizeof_uint16_t=0
31869fi
31870fi
31871echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
31872echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
31873cat >>confdefs.h <<_ACEOF
31874#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
31875_ACEOF
31876
31877
31878
31879cat >>confdefs.h <<\_ACEOF
31880#define HAVE_UINT16_T 1
31881_ACEOF
31882
31883
31884fi
31885
31886
31887echo "$as_me:$LINENO: checking for int32_t" >&5
31888echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
31889if test "${ac_cv_type_int32_t+set}" = set; then
31890 echo $ECHO_N "(cached) $ECHO_C" >&6
31891else
31892 cat >conftest.$ac_ext <<_ACEOF
31893/* confdefs.h. */
31894_ACEOF
31895cat confdefs.h >>conftest.$ac_ext
31896cat >>conftest.$ac_ext <<_ACEOF
31897/* end confdefs.h. */
31898
31899/* What a mess.. many systems have added the (now standard) bit types
31900 * in their own ways, so we need to scan a wide variety of headers to
31901 * find them..
31902 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31903 */
31904#if HAVE_SYS_TYPES_H
31905#include <sys/types.h>
31906#endif
31907#if STDC_HEADERS
31908#include <stdlib.h>
31909#include <stddef.h>
31910#endif
31911#if HAVE_INTTYPES_H
31912#include <inttypes.h>
31913#endif
31914#if HAVE_SYS_BITYPES_H
31915#include <sys/bitypes.h>
31916#endif
31917#if HAVE_SYS_SELECT_H
31918#include <sys/select.h>
31919#endif
31920
31921
31922int
31923main ()
31924{
31925if ((int32_t *) 0)
31926 return 0;
31927if (sizeof (int32_t))
31928 return 0;
31929 ;
31930 return 0;
31931}
31932_ACEOF
31933rm -f conftest.$ac_objext
31934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31935 (eval $ac_compile) 2>conftest.er1
31936 ac_status=$?
31937 grep -v '^ *+' conftest.er1 >conftest.err
31938 rm -f conftest.er1
31939 cat conftest.err >&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
31942 { ac_try='test -z "$ac_c_werror_flag"
31943 || test ! -s conftest.err'
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; } &&
31949 { ac_try='test -s conftest.$ac_objext'
31950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951 (eval $ac_try) 2>&5
31952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 ac_cv_type_int32_t=yes
31956else
31957 echo "$as_me: failed program was:" >&5
31958sed 's/^/| /' conftest.$ac_ext >&5
31959
31960ac_cv_type_int32_t=no
31961fi
31962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31963fi
31964echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
31965echo "${ECHO_T}$ac_cv_type_int32_t" >&6
31966if test $ac_cv_type_int32_t = yes; then
31967
31968 echo "$as_me:$LINENO: checking for int32_t" >&5
31969echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
31970if test "${ac_cv_type_int32_t+set}" = set; then
31971 echo $ECHO_N "(cached) $ECHO_C" >&6
31972else
31973 cat >conftest.$ac_ext <<_ACEOF
31974/* confdefs.h. */
31975_ACEOF
31976cat confdefs.h >>conftest.$ac_ext
31977cat >>conftest.$ac_ext <<_ACEOF
31978/* end confdefs.h. */
31979
31980#include <stdio.h>
31981
31982/* What a mess.. many systems have added the (now standard) bit types
31983 * in their own ways, so we need to scan a wide variety of headers to
31984 * find them..
31985 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31986 */
31987#if HAVE_SYS_TYPES_H
31988#include <sys/types.h>
31989#endif
31990#if STDC_HEADERS
31991#include <stdlib.h>
31992#include <stddef.h>
31993#endif
31994#if HAVE_INTTYPES_H
31995#include <inttypes.h>
31996#endif
31997#if HAVE_SYS_BITYPES_H
31998#include <sys/bitypes.h>
31999#endif
32000#if HAVE_SYS_SELECT_H
32001#include <sys/select.h>
32002#endif
32003
32004
32005
32006int
32007main ()
32008{
32009if ((int32_t *) 0)
32010 return 0;
32011if (sizeof (int32_t))
32012 return 0;
32013 ;
32014 return 0;
32015}
32016_ACEOF
32017rm -f conftest.$ac_objext
32018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32019 (eval $ac_compile) 2>conftest.er1
32020 ac_status=$?
32021 grep -v '^ *+' conftest.er1 >conftest.err
32022 rm -f conftest.er1
32023 cat conftest.err >&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
32026 { ac_try='test -z "$ac_c_werror_flag"
32027 || test ! -s conftest.err'
32028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32029 (eval $ac_try) 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 ac_cv_type_int32_t=yes
32040else
32041 echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
32044ac_cv_type_int32_t=no
32045fi
32046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32047fi
32048echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
32049echo "${ECHO_T}$ac_cv_type_int32_t" >&6
32050
32051echo "$as_me:$LINENO: checking size of int32_t" >&5
32052echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6
32053if test "${ac_cv_sizeof_int32_t+set}" = set; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055else
32056 if test "$ac_cv_type_int32_t" = yes; then
32057 # The cast to unsigned long works around a bug in the HP C Compiler
32058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32060 # This bug is HP SR number 8606223364.
32061 if test "$cross_compiling" = yes; then
32062 # Depending upon the size, compute the lo and hi bounds.
32063cat >conftest.$ac_ext <<_ACEOF
32064/* confdefs.h. */
32065_ACEOF
32066cat confdefs.h >>conftest.$ac_ext
32067cat >>conftest.$ac_ext <<_ACEOF
32068/* end confdefs.h. */
32069
32070#include <stdio.h>
32071
32072/* What a mess.. many systems have added the (now standard) bit types
32073 * in their own ways, so we need to scan a wide variety of headers to
32074 * find them..
32075 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32076 */
32077#if HAVE_SYS_TYPES_H
32078#include <sys/types.h>
32079#endif
32080#if STDC_HEADERS
32081#include <stdlib.h>
32082#include <stddef.h>
32083#endif
32084#if HAVE_INTTYPES_H
32085#include <inttypes.h>
32086#endif
32087#if HAVE_SYS_BITYPES_H
32088#include <sys/bitypes.h>
32089#endif
32090#if HAVE_SYS_SELECT_H
32091#include <sys/select.h>
32092#endif
32093
32094
32095
32096int
32097main ()
32098{
32099static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) >= 0)];
32100test_array [0] = 0
32101
32102 ;
32103 return 0;
32104}
32105_ACEOF
32106rm -f conftest.$ac_objext
32107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32108 (eval $ac_compile) 2>conftest.er1
32109 ac_status=$?
32110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_c_werror_flag"
32116 || test ! -s conftest.err'
32117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32118 (eval $ac_try) 2>&5
32119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; } &&
32122 { ac_try='test -s conftest.$ac_objext'
32123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32124 (eval $ac_try) 2>&5
32125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; }; then
32128 ac_lo=0 ac_mid=0
32129 while :; do
32130 cat >conftest.$ac_ext <<_ACEOF
32131/* confdefs.h. */
32132_ACEOF
32133cat confdefs.h >>conftest.$ac_ext
32134cat >>conftest.$ac_ext <<_ACEOF
32135/* end confdefs.h. */
32136
32137#include <stdio.h>
32138
32139/* What a mess.. many systems have added the (now standard) bit types
32140 * in their own ways, so we need to scan a wide variety of headers to
32141 * find them..
32142 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32143 */
32144#if HAVE_SYS_TYPES_H
32145#include <sys/types.h>
32146#endif
32147#if STDC_HEADERS
32148#include <stdlib.h>
32149#include <stddef.h>
32150#endif
32151#if HAVE_INTTYPES_H
32152#include <inttypes.h>
32153#endif
32154#if HAVE_SYS_BITYPES_H
32155#include <sys/bitypes.h>
32156#endif
32157#if HAVE_SYS_SELECT_H
32158#include <sys/select.h>
32159#endif
32160
32161
32162
32163int
32164main ()
32165{
32166static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) <= $ac_mid)];
32167test_array [0] = 0
32168
32169 ;
32170 return 0;
32171}
32172_ACEOF
32173rm -f conftest.$ac_objext
32174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32175 (eval $ac_compile) 2>conftest.er1
32176 ac_status=$?
32177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
32182 { ac_try='test -z "$ac_c_werror_flag"
32183 || test ! -s conftest.err'
32184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32185 (eval $ac_try) 2>&5
32186 ac_status=$?
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); }; } &&
32189 { ac_try='test -s conftest.$ac_objext'
32190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32191 (eval $ac_try) 2>&5
32192 ac_status=$?
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); }; }; then
32195 ac_hi=$ac_mid; break
32196else
32197 echo "$as_me: failed program was:" >&5
32198sed 's/^/| /' conftest.$ac_ext >&5
32199
32200ac_lo=`expr $ac_mid + 1`
32201 if test $ac_lo -le $ac_mid; then
32202 ac_lo= ac_hi=
32203 break
32204 fi
32205 ac_mid=`expr 2 '*' $ac_mid + 1`
32206fi
32207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32208 done
32209else
32210 echo "$as_me: failed program was:" >&5
32211sed 's/^/| /' conftest.$ac_ext >&5
32212
32213cat >conftest.$ac_ext <<_ACEOF
32214/* confdefs.h. */
32215_ACEOF
32216cat confdefs.h >>conftest.$ac_ext
32217cat >>conftest.$ac_ext <<_ACEOF
32218/* end confdefs.h. */
32219
32220#include <stdio.h>
32221
32222/* What a mess.. many systems have added the (now standard) bit types
32223 * in their own ways, so we need to scan a wide variety of headers to
32224 * find them..
32225 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32226 */
32227#if HAVE_SYS_TYPES_H
32228#include <sys/types.h>
32229#endif
32230#if STDC_HEADERS
32231#include <stdlib.h>
32232#include <stddef.h>
32233#endif
32234#if HAVE_INTTYPES_H
32235#include <inttypes.h>
32236#endif
32237#if HAVE_SYS_BITYPES_H
32238#include <sys/bitypes.h>
32239#endif
32240#if HAVE_SYS_SELECT_H
32241#include <sys/select.h>
32242#endif
32243
32244
32245
32246int
32247main ()
32248{
32249static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) < 0)];
32250test_array [0] = 0
32251
32252 ;
32253 return 0;
32254}
32255_ACEOF
32256rm -f conftest.$ac_objext
32257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32258 (eval $ac_compile) 2>conftest.er1
32259 ac_status=$?
32260 grep -v '^ *+' conftest.er1 >conftest.err
32261 rm -f conftest.er1
32262 cat conftest.err >&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); } &&
32265 { ac_try='test -z "$ac_c_werror_flag"
32266 || test ! -s conftest.err'
32267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32268 (eval $ac_try) 2>&5
32269 ac_status=$?
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; } &&
32272 { ac_try='test -s conftest.$ac_objext'
32273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32274 (eval $ac_try) 2>&5
32275 ac_status=$?
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; }; then
32278 ac_hi=-1 ac_mid=-1
32279 while :; do
32280 cat >conftest.$ac_ext <<_ACEOF
32281/* confdefs.h. */
32282_ACEOF
32283cat confdefs.h >>conftest.$ac_ext
32284cat >>conftest.$ac_ext <<_ACEOF
32285/* end confdefs.h. */
32286
32287#include <stdio.h>
32288
32289/* What a mess.. many systems have added the (now standard) bit types
32290 * in their own ways, so we need to scan a wide variety of headers to
32291 * find them..
32292 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32293 */
32294#if HAVE_SYS_TYPES_H
32295#include <sys/types.h>
32296#endif
32297#if STDC_HEADERS
32298#include <stdlib.h>
32299#include <stddef.h>
32300#endif
32301#if HAVE_INTTYPES_H
32302#include <inttypes.h>
32303#endif
32304#if HAVE_SYS_BITYPES_H
32305#include <sys/bitypes.h>
32306#endif
32307#if HAVE_SYS_SELECT_H
32308#include <sys/select.h>
32309#endif
32310
32311
32312
32313int
32314main ()
32315{
32316static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) >= $ac_mid)];
32317test_array [0] = 0
32318
32319 ;
32320 return 0;
32321}
32322_ACEOF
32323rm -f conftest.$ac_objext
32324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32325 (eval $ac_compile) 2>conftest.er1
32326 ac_status=$?
32327 grep -v '^ *+' conftest.er1 >conftest.err
32328 rm -f conftest.er1
32329 cat conftest.err >&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); } &&
32332 { ac_try='test -z "$ac_c_werror_flag"
32333 || test ! -s conftest.err'
32334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335 (eval $ac_try) 2>&5
32336 ac_status=$?
32337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338 (exit $ac_status); }; } &&
32339 { ac_try='test -s conftest.$ac_objext'
32340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32341 (eval $ac_try) 2>&5
32342 ac_status=$?
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; }; then
32345 ac_lo=$ac_mid; break
32346else
32347 echo "$as_me: failed program was:" >&5
32348sed 's/^/| /' conftest.$ac_ext >&5
32349
32350ac_hi=`expr '(' $ac_mid ')' - 1`
32351 if test $ac_mid -le $ac_hi; then
32352 ac_lo= ac_hi=
32353 break
32354 fi
32355 ac_mid=`expr 2 '*' $ac_mid`
32356fi
32357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32358 done
32359else
32360 echo "$as_me: failed program was:" >&5
32361sed 's/^/| /' conftest.$ac_ext >&5
32362
32363ac_lo= ac_hi=
32364fi
32365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32366fi
32367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32368# Binary search between lo and hi bounds.
32369while test "x$ac_lo" != "x$ac_hi"; do
32370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32371 cat >conftest.$ac_ext <<_ACEOF
32372/* confdefs.h. */
32373_ACEOF
32374cat confdefs.h >>conftest.$ac_ext
32375cat >>conftest.$ac_ext <<_ACEOF
32376/* end confdefs.h. */
32377
32378#include <stdio.h>
32379
32380/* What a mess.. many systems have added the (now standard) bit types
32381 * in their own ways, so we need to scan a wide variety of headers to
32382 * find them..
32383 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32384 */
32385#if HAVE_SYS_TYPES_H
32386#include <sys/types.h>
32387#endif
32388#if STDC_HEADERS
32389#include <stdlib.h>
32390#include <stddef.h>
32391#endif
32392#if HAVE_INTTYPES_H
32393#include <inttypes.h>
32394#endif
32395#if HAVE_SYS_BITYPES_H
32396#include <sys/bitypes.h>
32397#endif
32398#if HAVE_SYS_SELECT_H
32399#include <sys/select.h>
32400#endif
32401
32402
32403
32404int
32405main ()
32406{
32407static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) <= $ac_mid)];
32408test_array [0] = 0
32409
32410 ;
32411 return 0;
32412}
32413_ACEOF
32414rm -f conftest.$ac_objext
32415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32416 (eval $ac_compile) 2>conftest.er1
32417 ac_status=$?
32418 grep -v '^ *+' conftest.er1 >conftest.err
32419 rm -f conftest.er1
32420 cat conftest.err >&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); } &&
32423 { ac_try='test -z "$ac_c_werror_flag"
32424 || test ! -s conftest.err'
32425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32426 (eval $ac_try) 2>&5
32427 ac_status=$?
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 (exit $ac_status); }; } &&
32430 { ac_try='test -s conftest.$ac_objext'
32431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32432 (eval $ac_try) 2>&5
32433 ac_status=$?
32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435 (exit $ac_status); }; }; then
32436 ac_hi=$ac_mid
32437else
32438 echo "$as_me: failed program was:" >&5
32439sed 's/^/| /' conftest.$ac_ext >&5
32440
32441ac_lo=`expr '(' $ac_mid ')' + 1`
32442fi
32443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32444done
32445case $ac_lo in
32446?*) ac_cv_sizeof_int32_t=$ac_lo;;
32447'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t), 77
32448See \`config.log' for more details." >&5
32449echo "$as_me: error: cannot compute sizeof (int32_t), 77
32450See \`config.log' for more details." >&2;}
32451 { (exit 1); exit 1; }; } ;;
32452esac
32453else
32454 if test "$cross_compiling" = yes; then
32455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32456See \`config.log' for more details." >&5
32457echo "$as_me: error: cannot run test program while cross compiling
32458See \`config.log' for more details." >&2;}
32459 { (exit 1); exit 1; }; }
32460else
32461 cat >conftest.$ac_ext <<_ACEOF
32462/* confdefs.h. */
32463_ACEOF
32464cat confdefs.h >>conftest.$ac_ext
32465cat >>conftest.$ac_ext <<_ACEOF
32466/* end confdefs.h. */
32467
32468#include <stdio.h>
32469
32470/* What a mess.. many systems have added the (now standard) bit types
32471 * in their own ways, so we need to scan a wide variety of headers to
32472 * find them..
32473 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32474 */
32475#if HAVE_SYS_TYPES_H
32476#include <sys/types.h>
32477#endif
32478#if STDC_HEADERS
32479#include <stdlib.h>
32480#include <stddef.h>
32481#endif
32482#if HAVE_INTTYPES_H
32483#include <inttypes.h>
32484#endif
32485#if HAVE_SYS_BITYPES_H
32486#include <sys/bitypes.h>
32487#endif
32488#if HAVE_SYS_SELECT_H
32489#include <sys/select.h>
32490#endif
32491
32492
32493
32494long longval () { return (long) (sizeof (int32_t)); }
32495unsigned long ulongval () { return (long) (sizeof (int32_t)); }
32496#include <stdio.h>
32497#include <stdlib.h>
32498int
32499main ()
32500{
32501
32502 FILE *f = fopen ("conftest.val", "w");
32503 if (! f)
32504 exit (1);
32505 if (((long) (sizeof (int32_t))) < 0)
32506 {
32507 long i = longval ();
32508 if (i != ((long) (sizeof (int32_t))))
32509 exit (1);
32510 fprintf (f, "%ld\n", i);
32511 }
32512 else
32513 {
32514 unsigned long i = ulongval ();
32515 if (i != ((long) (sizeof (int32_t))))
32516 exit (1);
32517 fprintf (f, "%lu\n", i);
32518 }
32519 exit (ferror (f) || fclose (f) != 0);
32520
32521 ;
32522 return 0;
32523}
32524_ACEOF
32525rm -f conftest$ac_exeext
32526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32527 (eval $ac_link) 2>&5
32528 ac_status=$?
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; }; then
32536 ac_cv_sizeof_int32_t=`cat conftest.val`
32537else
32538 echo "$as_me: program exited with status $ac_status" >&5
32539echo "$as_me: failed program was:" >&5
32540sed 's/^/| /' conftest.$ac_ext >&5
32541
32542( exit $ac_status )
32543{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t), 77
32544See \`config.log' for more details." >&5
32545echo "$as_me: error: cannot compute sizeof (int32_t), 77
32546See \`config.log' for more details." >&2;}
32547 { (exit 1); exit 1; }; }
32548fi
32549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32550fi
32551fi
32552rm -f conftest.val
32553else
32554 ac_cv_sizeof_int32_t=0
32555fi
32556fi
32557echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
32558echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6
32559cat >>confdefs.h <<_ACEOF
32560#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
32561_ACEOF
32562
32563
32564
32565cat >>confdefs.h <<\_ACEOF
32566#define HAVE_INT32_T 1
32567_ACEOF
32568
32569
32570fi
32571
32572
32573echo "$as_me:$LINENO: checking for long" >&5
32574echo $ECHO_N "checking for long... $ECHO_C" >&6
32575if test "${ac_cv_type_long+set}" = set; then
32576 echo $ECHO_N "(cached) $ECHO_C" >&6
32577else
32578 cat >conftest.$ac_ext <<_ACEOF
32579/* confdefs.h. */
32580_ACEOF
32581cat confdefs.h >>conftest.$ac_ext
32582cat >>conftest.$ac_ext <<_ACEOF
32583/* end confdefs.h. */
32584
32585/* What a mess.. many systems have added the (now standard) bit types
32586 * in their own ways, so we need to scan a wide variety of headers to
32587 * find them..
32588 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32589 */
32590#if HAVE_SYS_TYPES_H
32591#include <sys/types.h>
32592#endif
32593#if STDC_HEADERS
32594#include <stdlib.h>
32595#include <stddef.h>
32596#endif
32597#if HAVE_INTTYPES_H
32598#include <inttypes.h>
32599#endif
32600#if HAVE_SYS_BITYPES_H
32601#include <sys/bitypes.h>
32602#endif
32603#if HAVE_SYS_SELECT_H
32604#include <sys/select.h>
32605#endif
32606
32607
32608int
32609main ()
32610{
32611if ((long *) 0)
32612 return 0;
32613if (sizeof (long))
32614 return 0;
32615 ;
32616 return 0;
32617}
32618_ACEOF
32619rm -f conftest.$ac_objext
32620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32621 (eval $ac_compile) 2>conftest.er1
32622 ac_status=$?
32623 grep -v '^ *+' conftest.er1 >conftest.err
32624 rm -f conftest.er1
32625 cat conftest.err >&5
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); } &&
32628 { ac_try='test -z "$ac_c_werror_flag"
32629 || test ! -s conftest.err'
32630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32631 (eval $ac_try) 2>&5
32632 ac_status=$?
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; } &&
32635 { ac_try='test -s conftest.$ac_objext'
32636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32637 (eval $ac_try) 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; }; then
32641 ac_cv_type_long=yes
32642else
32643 echo "$as_me: failed program was:" >&5
32644sed 's/^/| /' conftest.$ac_ext >&5
32645
32646ac_cv_type_long=no
32647fi
32648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32649fi
32650echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
32651echo "${ECHO_T}$ac_cv_type_long" >&6
32652if test $ac_cv_type_long = yes; then
32653
32654 echo "$as_me:$LINENO: checking for long" >&5
32655echo $ECHO_N "checking for long... $ECHO_C" >&6
32656if test "${ac_cv_type_long+set}" = set; then
32657 echo $ECHO_N "(cached) $ECHO_C" >&6
32658else
32659 cat >conftest.$ac_ext <<_ACEOF
32660/* confdefs.h. */
32661_ACEOF
32662cat confdefs.h >>conftest.$ac_ext
32663cat >>conftest.$ac_ext <<_ACEOF
32664/* end confdefs.h. */
32665
32666#include <stdio.h>
32667
32668/* What a mess.. many systems have added the (now standard) bit types
32669 * in their own ways, so we need to scan a wide variety of headers to
32670 * find them..
32671 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32672 */
32673#if HAVE_SYS_TYPES_H
32674#include <sys/types.h>
32675#endif
32676#if STDC_HEADERS
32677#include <stdlib.h>
32678#include <stddef.h>
32679#endif
32680#if HAVE_INTTYPES_H
32681#include <inttypes.h>
32682#endif
32683#if HAVE_SYS_BITYPES_H
32684#include <sys/bitypes.h>
32685#endif
32686#if HAVE_SYS_SELECT_H
32687#include <sys/select.h>
32688#endif
32689
32690
32691
32692int
32693main ()
32694{
32695if ((long *) 0)
32696 return 0;
32697if (sizeof (long))
32698 return 0;
32699 ;
32700 return 0;
32701}
32702_ACEOF
32703rm -f conftest.$ac_objext
32704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32705 (eval $ac_compile) 2>conftest.er1
32706 ac_status=$?
32707 grep -v '^ *+' conftest.er1 >conftest.err
32708 rm -f conftest.er1
32709 cat conftest.err >&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); } &&
32712 { ac_try='test -z "$ac_c_werror_flag"
32713 || test ! -s conftest.err'
32714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32715 (eval $ac_try) 2>&5
32716 ac_status=$?
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; } &&
32719 { ac_try='test -s conftest.$ac_objext'
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32722 ac_status=$?
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; }; then
32725 ac_cv_type_long=yes
32726else
32727 echo "$as_me: failed program was:" >&5
32728sed 's/^/| /' conftest.$ac_ext >&5
32729
32730ac_cv_type_long=no
32731fi
32732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32733fi
32734echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
32735echo "${ECHO_T}$ac_cv_type_long" >&6
32736
32737echo "$as_me:$LINENO: checking size of long" >&5
32738echo $ECHO_N "checking size of long... $ECHO_C" >&6
32739if test "${ac_cv_sizeof_long+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741else
32742 if test "$ac_cv_type_long" = yes; then
32743 # The cast to unsigned long works around a bug in the HP C Compiler
32744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32746 # This bug is HP SR number 8606223364.
32747 if test "$cross_compiling" = yes; then
32748 # Depending upon the size, compute the lo and hi bounds.
32749cat >conftest.$ac_ext <<_ACEOF
32750/* confdefs.h. */
32751_ACEOF
32752cat confdefs.h >>conftest.$ac_ext
32753cat >>conftest.$ac_ext <<_ACEOF
32754/* end confdefs.h. */
32755
32756#include <stdio.h>
32757
32758/* What a mess.. many systems have added the (now standard) bit types
32759 * in their own ways, so we need to scan a wide variety of headers to
32760 * find them..
32761 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32762 */
32763#if HAVE_SYS_TYPES_H
32764#include <sys/types.h>
32765#endif
32766#if STDC_HEADERS
32767#include <stdlib.h>
32768#include <stddef.h>
32769#endif
32770#if HAVE_INTTYPES_H
32771#include <inttypes.h>
32772#endif
32773#if HAVE_SYS_BITYPES_H
32774#include <sys/bitypes.h>
32775#endif
32776#if HAVE_SYS_SELECT_H
32777#include <sys/select.h>
32778#endif
32779
32780
32781
32782int
32783main ()
32784{
32785static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
32786test_array [0] = 0
32787
32788 ;
32789 return 0;
32790}
32791_ACEOF
32792rm -f conftest.$ac_objext
32793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32794 (eval $ac_compile) 2>conftest.er1
32795 ac_status=$?
32796 grep -v '^ *+' conftest.er1 >conftest.err
32797 rm -f conftest.er1
32798 cat conftest.err >&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); } &&
32801 { ac_try='test -z "$ac_c_werror_flag"
32802 || test ! -s conftest.err'
32803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32804 (eval $ac_try) 2>&5
32805 ac_status=$?
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; } &&
32808 { ac_try='test -s conftest.$ac_objext'
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; }; then
32814 ac_lo=0 ac_mid=0
32815 while :; do
32816 cat >conftest.$ac_ext <<_ACEOF
32817/* confdefs.h. */
32818_ACEOF
32819cat confdefs.h >>conftest.$ac_ext
32820cat >>conftest.$ac_ext <<_ACEOF
32821/* end confdefs.h. */
32822
32823#include <stdio.h>
32824
32825/* What a mess.. many systems have added the (now standard) bit types
32826 * in their own ways, so we need to scan a wide variety of headers to
32827 * find them..
32828 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32829 */
32830#if HAVE_SYS_TYPES_H
32831#include <sys/types.h>
32832#endif
32833#if STDC_HEADERS
32834#include <stdlib.h>
32835#include <stddef.h>
32836#endif
32837#if HAVE_INTTYPES_H
32838#include <inttypes.h>
32839#endif
32840#if HAVE_SYS_BITYPES_H
32841#include <sys/bitypes.h>
32842#endif
32843#if HAVE_SYS_SELECT_H
32844#include <sys/select.h>
32845#endif
32846
32847
32848
32849int
32850main ()
32851{
32852static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
32853test_array [0] = 0
32854
32855 ;
32856 return 0;
32857}
32858_ACEOF
32859rm -f conftest.$ac_objext
32860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32861 (eval $ac_compile) 2>conftest.er1
32862 ac_status=$?
32863 grep -v '^ *+' conftest.er1 >conftest.err
32864 rm -f conftest.er1
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_c_werror_flag"
32869 || test ! -s conftest.err'
32870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32871 (eval $ac_try) 2>&5
32872 ac_status=$?
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); }; } &&
32875 { ac_try='test -s conftest.$ac_objext'
32876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32877 (eval $ac_try) 2>&5
32878 ac_status=$?
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); }; }; then
32881 ac_hi=$ac_mid; break
32882else
32883 echo "$as_me: failed program was:" >&5
32884sed 's/^/| /' conftest.$ac_ext >&5
32885
32886ac_lo=`expr $ac_mid + 1`
32887 if test $ac_lo -le $ac_mid; then
32888 ac_lo= ac_hi=
32889 break
32890 fi
32891 ac_mid=`expr 2 '*' $ac_mid + 1`
32892fi
32893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32894 done
32895else
32896 echo "$as_me: failed program was:" >&5
32897sed 's/^/| /' conftest.$ac_ext >&5
32898
32899cat >conftest.$ac_ext <<_ACEOF
32900/* confdefs.h. */
32901_ACEOF
32902cat confdefs.h >>conftest.$ac_ext
32903cat >>conftest.$ac_ext <<_ACEOF
32904/* end confdefs.h. */
32905
32906#include <stdio.h>
32907
32908/* What a mess.. many systems have added the (now standard) bit types
32909 * in their own ways, so we need to scan a wide variety of headers to
32910 * find them..
32911 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32912 */
32913#if HAVE_SYS_TYPES_H
32914#include <sys/types.h>
32915#endif
32916#if STDC_HEADERS
32917#include <stdlib.h>
32918#include <stddef.h>
32919#endif
32920#if HAVE_INTTYPES_H
32921#include <inttypes.h>
32922#endif
32923#if HAVE_SYS_BITYPES_H
32924#include <sys/bitypes.h>
32925#endif
32926#if HAVE_SYS_SELECT_H
32927#include <sys/select.h>
32928#endif
32929
32930
32931
32932int
32933main ()
32934{
32935static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
32936test_array [0] = 0
32937
32938 ;
32939 return 0;
32940}
32941_ACEOF
32942rm -f conftest.$ac_objext
32943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32944 (eval $ac_compile) 2>conftest.er1
32945 ac_status=$?
32946 grep -v '^ *+' conftest.er1 >conftest.err
32947 rm -f conftest.er1
32948 cat conftest.err >&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } &&
32951 { ac_try='test -z "$ac_c_werror_flag"
32952 || test ! -s conftest.err'
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960 (eval $ac_try) 2>&5
32961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 ac_hi=-1 ac_mid=-1
32965 while :; do
32966 cat >conftest.$ac_ext <<_ACEOF
32967/* confdefs.h. */
32968_ACEOF
32969cat confdefs.h >>conftest.$ac_ext
32970cat >>conftest.$ac_ext <<_ACEOF
32971/* end confdefs.h. */
32972
32973#include <stdio.h>
32974
32975/* What a mess.. many systems have added the (now standard) bit types
32976 * in their own ways, so we need to scan a wide variety of headers to
32977 * find them..
32978 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32979 */
32980#if HAVE_SYS_TYPES_H
32981#include <sys/types.h>
32982#endif
32983#if STDC_HEADERS
32984#include <stdlib.h>
32985#include <stddef.h>
32986#endif
32987#if HAVE_INTTYPES_H
32988#include <inttypes.h>
32989#endif
32990#if HAVE_SYS_BITYPES_H
32991#include <sys/bitypes.h>
32992#endif
32993#if HAVE_SYS_SELECT_H
32994#include <sys/select.h>
32995#endif
32996
32997
32998
32999int
33000main ()
33001{
33002static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
33003test_array [0] = 0
33004
33005 ;
33006 return 0;
33007}
33008_ACEOF
33009rm -f conftest.$ac_objext
33010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33011 (eval $ac_compile) 2>conftest.er1
33012 ac_status=$?
33013 grep -v '^ *+' conftest.er1 >conftest.err
33014 rm -f conftest.er1
33015 cat conftest.err >&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } &&
33018 { ac_try='test -z "$ac_c_werror_flag"
33019 || test ! -s conftest.err'
33020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021 (eval $ac_try) 2>&5
33022 ac_status=$?
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; } &&
33025 { ac_try='test -s conftest.$ac_objext'
33026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33027 (eval $ac_try) 2>&5
33028 ac_status=$?
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); }; }; then
33031 ac_lo=$ac_mid; break
33032else
33033 echo "$as_me: failed program was:" >&5
33034sed 's/^/| /' conftest.$ac_ext >&5
33035
33036ac_hi=`expr '(' $ac_mid ')' - 1`
33037 if test $ac_mid -le $ac_hi; then
33038 ac_lo= ac_hi=
33039 break
33040 fi
33041 ac_mid=`expr 2 '*' $ac_mid`
33042fi
33043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33044 done
33045else
33046 echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
33048
33049ac_lo= ac_hi=
33050fi
33051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33052fi
33053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33054# Binary search between lo and hi bounds.
33055while test "x$ac_lo" != "x$ac_hi"; do
33056 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33057 cat >conftest.$ac_ext <<_ACEOF
33058/* confdefs.h. */
33059_ACEOF
33060cat confdefs.h >>conftest.$ac_ext
33061cat >>conftest.$ac_ext <<_ACEOF
33062/* end confdefs.h. */
33063
33064#include <stdio.h>
33065
33066/* What a mess.. many systems have added the (now standard) bit types
33067 * in their own ways, so we need to scan a wide variety of headers to
33068 * find them..
33069 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33070 */
33071#if HAVE_SYS_TYPES_H
33072#include <sys/types.h>
33073#endif
33074#if STDC_HEADERS
33075#include <stdlib.h>
33076#include <stddef.h>
33077#endif
33078#if HAVE_INTTYPES_H
33079#include <inttypes.h>
33080#endif
33081#if HAVE_SYS_BITYPES_H
33082#include <sys/bitypes.h>
33083#endif
33084#if HAVE_SYS_SELECT_H
33085#include <sys/select.h>
33086#endif
33087
33088
33089
33090int
33091main ()
33092{
33093static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
33094test_array [0] = 0
33095
33096 ;
33097 return 0;
33098}
33099_ACEOF
33100rm -f conftest.$ac_objext
33101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33102 (eval $ac_compile) 2>conftest.er1
33103 ac_status=$?
33104 grep -v '^ *+' conftest.er1 >conftest.err
33105 rm -f conftest.er1
33106 cat conftest.err >&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } &&
33109 { ac_try='test -z "$ac_c_werror_flag"
33110 || test ! -s conftest.err'
33111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33112 (eval $ac_try) 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest.$ac_objext'
33117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33118 (eval $ac_try) 2>&5
33119 ac_status=$?
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); }; }; then
33122 ac_hi=$ac_mid
33123else
33124 echo "$as_me: failed program was:" >&5
33125sed 's/^/| /' conftest.$ac_ext >&5
33126
33127ac_lo=`expr '(' $ac_mid ')' + 1`
33128fi
33129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33130done
33131case $ac_lo in
33132?*) ac_cv_sizeof_long=$ac_lo;;
33133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
33134See \`config.log' for more details." >&5
33135echo "$as_me: error: cannot compute sizeof (long), 77
33136See \`config.log' for more details." >&2;}
33137 { (exit 1); exit 1; }; } ;;
33138esac
33139else
33140 if test "$cross_compiling" = yes; then
33141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33142See \`config.log' for more details." >&5
33143echo "$as_me: error: cannot run test program while cross compiling
33144See \`config.log' for more details." >&2;}
33145 { (exit 1); exit 1; }; }
33146else
33147 cat >conftest.$ac_ext <<_ACEOF
33148/* confdefs.h. */
33149_ACEOF
33150cat confdefs.h >>conftest.$ac_ext
33151cat >>conftest.$ac_ext <<_ACEOF
33152/* end confdefs.h. */
33153
33154#include <stdio.h>
33155
33156/* What a mess.. many systems have added the (now standard) bit types
33157 * in their own ways, so we need to scan a wide variety of headers to
33158 * find them..
33159 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33160 */
33161#if HAVE_SYS_TYPES_H
33162#include <sys/types.h>
33163#endif
33164#if STDC_HEADERS
33165#include <stdlib.h>
33166#include <stddef.h>
33167#endif
33168#if HAVE_INTTYPES_H
33169#include <inttypes.h>
33170#endif
33171#if HAVE_SYS_BITYPES_H
33172#include <sys/bitypes.h>
33173#endif
33174#if HAVE_SYS_SELECT_H
33175#include <sys/select.h>
33176#endif
33177
33178
33179
33180long longval () { return (long) (sizeof (long)); }
33181unsigned long ulongval () { return (long) (sizeof (long)); }
33182#include <stdio.h>
33183#include <stdlib.h>
33184int
33185main ()
33186{
33187
33188 FILE *f = fopen ("conftest.val", "w");
33189 if (! f)
33190 exit (1);
33191 if (((long) (sizeof (long))) < 0)
33192 {
33193 long i = longval ();
33194 if (i != ((long) (sizeof (long))))
33195 exit (1);
33196 fprintf (f, "%ld\n", i);
33197 }
33198 else
33199 {
33200 unsigned long i = ulongval ();
33201 if (i != ((long) (sizeof (long))))
33202 exit (1);
33203 fprintf (f, "%lu\n", i);
33204 }
33205 exit (ferror (f) || fclose (f) != 0);
33206
33207 ;
33208 return 0;
33209}
33210_ACEOF
33211rm -f conftest$ac_exeext
33212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33213 (eval $ac_link) 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218 (eval $ac_try) 2>&5
33219 ac_status=$?
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; }; then
33222 ac_cv_sizeof_long=`cat conftest.val`
33223else
33224 echo "$as_me: program exited with status $ac_status" >&5
33225echo "$as_me: failed program was:" >&5
33226sed 's/^/| /' conftest.$ac_ext >&5
33227
33228( exit $ac_status )
33229{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
33230See \`config.log' for more details." >&5
33231echo "$as_me: error: cannot compute sizeof (long), 77
33232See \`config.log' for more details." >&2;}
33233 { (exit 1); exit 1; }; }
33234fi
33235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33236fi
33237fi
33238rm -f conftest.val
33239else
33240 ac_cv_sizeof_long=0
33241fi
33242fi
33243echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
33244echo "${ECHO_T}$ac_cv_sizeof_long" >&6
33245cat >>confdefs.h <<_ACEOF
33246#define SIZEOF_LONG $ac_cv_sizeof_long
33247_ACEOF
33248
33249
33250
33251cat >>confdefs.h <<\_ACEOF
33252#define HAVE_LONG 1
33253_ACEOF
33254
33255
33256fi
33257
33258
33259echo "$as_me:$LINENO: checking for u_int32_t" >&5
33260echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
33261if test "${ac_cv_type_u_int32_t+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264 cat >conftest.$ac_ext <<_ACEOF
33265/* confdefs.h. */
33266_ACEOF
33267cat confdefs.h >>conftest.$ac_ext
33268cat >>conftest.$ac_ext <<_ACEOF
33269/* end confdefs.h. */
33270
33271/* What a mess.. many systems have added the (now standard) bit types
33272 * in their own ways, so we need to scan a wide variety of headers to
33273 * find them..
33274 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33275 */
33276#if HAVE_SYS_TYPES_H
33277#include <sys/types.h>
33278#endif
33279#if STDC_HEADERS
33280#include <stdlib.h>
33281#include <stddef.h>
33282#endif
33283#if HAVE_INTTYPES_H
33284#include <inttypes.h>
33285#endif
33286#if HAVE_SYS_BITYPES_H
33287#include <sys/bitypes.h>
33288#endif
33289#if HAVE_SYS_SELECT_H
33290#include <sys/select.h>
33291#endif
33292
33293
33294int
33295main ()
33296{
33297if ((u_int32_t *) 0)
33298 return 0;
33299if (sizeof (u_int32_t))
33300 return 0;
33301 ;
33302 return 0;
33303}
33304_ACEOF
33305rm -f conftest.$ac_objext
33306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33307 (eval $ac_compile) 2>conftest.er1
33308 ac_status=$?
33309 grep -v '^ *+' conftest.er1 >conftest.err
33310 rm -f conftest.er1
33311 cat conftest.err >&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
33314 { ac_try='test -z "$ac_c_werror_flag"
33315 || test ! -s conftest.err'
33316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317 (eval $ac_try) 2>&5
33318 ac_status=$?
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); }; } &&
33321 { ac_try='test -s conftest.$ac_objext'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
33327 ac_cv_type_u_int32_t=yes
33328else
33329 echo "$as_me: failed program was:" >&5
33330sed 's/^/| /' conftest.$ac_ext >&5
33331
33332ac_cv_type_u_int32_t=no
33333fi
33334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33335fi
33336echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
33337echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
33338if test $ac_cv_type_u_int32_t = yes; then
33339
33340 echo "$as_me:$LINENO: checking for u_int32_t" >&5
33341echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
33342if test "${ac_cv_type_u_int32_t+set}" = set; then
33343 echo $ECHO_N "(cached) $ECHO_C" >&6
33344else
33345 cat >conftest.$ac_ext <<_ACEOF
33346/* confdefs.h. */
33347_ACEOF
33348cat confdefs.h >>conftest.$ac_ext
33349cat >>conftest.$ac_ext <<_ACEOF
33350/* end confdefs.h. */
33351
33352#include <stdio.h>
33353
33354/* What a mess.. many systems have added the (now standard) bit types
33355 * in their own ways, so we need to scan a wide variety of headers to
33356 * find them..
33357 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33358 */
33359#if HAVE_SYS_TYPES_H
33360#include <sys/types.h>
33361#endif
33362#if STDC_HEADERS
33363#include <stdlib.h>
33364#include <stddef.h>
33365#endif
33366#if HAVE_INTTYPES_H
33367#include <inttypes.h>
33368#endif
33369#if HAVE_SYS_BITYPES_H
33370#include <sys/bitypes.h>
33371#endif
33372#if HAVE_SYS_SELECT_H
33373#include <sys/select.h>
33374#endif
33375
33376
33377
33378int
33379main ()
33380{
33381if ((u_int32_t *) 0)
33382 return 0;
33383if (sizeof (u_int32_t))
33384 return 0;
33385 ;
33386 return 0;
33387}
33388_ACEOF
33389rm -f conftest.$ac_objext
33390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33391 (eval $ac_compile) 2>conftest.er1
33392 ac_status=$?
33393 grep -v '^ *+' conftest.er1 >conftest.err
33394 rm -f conftest.er1
33395 cat conftest.err >&5
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); } &&
33398 { ac_try='test -z "$ac_c_werror_flag"
33399 || test ! -s conftest.err'
33400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33401 (eval $ac_try) 2>&5
33402 ac_status=$?
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; } &&
33405 { ac_try='test -s conftest.$ac_objext'
33406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33407 (eval $ac_try) 2>&5
33408 ac_status=$?
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); }; }; then
33411 ac_cv_type_u_int32_t=yes
33412else
33413 echo "$as_me: failed program was:" >&5
33414sed 's/^/| /' conftest.$ac_ext >&5
33415
33416ac_cv_type_u_int32_t=no
33417fi
33418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33419fi
33420echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
33421echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
33422
33423echo "$as_me:$LINENO: checking size of u_int32_t" >&5
33424echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6
33425if test "${ac_cv_sizeof_u_int32_t+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427else
33428 if test "$ac_cv_type_u_int32_t" = yes; then
33429 # The cast to unsigned long works around a bug in the HP C Compiler
33430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33432 # This bug is HP SR number 8606223364.
33433 if test "$cross_compiling" = yes; then
33434 # Depending upon the size, compute the lo and hi bounds.
33435cat >conftest.$ac_ext <<_ACEOF
33436/* confdefs.h. */
33437_ACEOF
33438cat confdefs.h >>conftest.$ac_ext
33439cat >>conftest.$ac_ext <<_ACEOF
33440/* end confdefs.h. */
33441
33442#include <stdio.h>
33443
33444/* What a mess.. many systems have added the (now standard) bit types
33445 * in their own ways, so we need to scan a wide variety of headers to
33446 * find them..
33447 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33448 */
33449#if HAVE_SYS_TYPES_H
33450#include <sys/types.h>
33451#endif
33452#if STDC_HEADERS
33453#include <stdlib.h>
33454#include <stddef.h>
33455#endif
33456#if HAVE_INTTYPES_H
33457#include <inttypes.h>
33458#endif
33459#if HAVE_SYS_BITYPES_H
33460#include <sys/bitypes.h>
33461#endif
33462#if HAVE_SYS_SELECT_H
33463#include <sys/select.h>
33464#endif
33465
33466
33467
33468int
33469main ()
33470{
33471static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= 0)];
33472test_array [0] = 0
33473
33474 ;
33475 return 0;
33476}
33477_ACEOF
33478rm -f conftest.$ac_objext
33479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33480 (eval $ac_compile) 2>conftest.er1
33481 ac_status=$?
33482 grep -v '^ *+' conftest.er1 >conftest.err
33483 rm -f conftest.er1
33484 cat conftest.err >&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); } &&
33487 { ac_try='test -z "$ac_c_werror_flag"
33488 || test ! -s conftest.err'
33489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33490 (eval $ac_try) 2>&5
33491 ac_status=$?
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; } &&
33494 { ac_try='test -s conftest.$ac_objext'
33495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496 (eval $ac_try) 2>&5
33497 ac_status=$?
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); }; }; then
33500 ac_lo=0 ac_mid=0
33501 while :; do
33502 cat >conftest.$ac_ext <<_ACEOF
33503/* confdefs.h. */
33504_ACEOF
33505cat confdefs.h >>conftest.$ac_ext
33506cat >>conftest.$ac_ext <<_ACEOF
33507/* end confdefs.h. */
33508
33509#include <stdio.h>
33510
33511/* What a mess.. many systems have added the (now standard) bit types
33512 * in their own ways, so we need to scan a wide variety of headers to
33513 * find them..
33514 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33515 */
33516#if HAVE_SYS_TYPES_H
33517#include <sys/types.h>
33518#endif
33519#if STDC_HEADERS
33520#include <stdlib.h>
33521#include <stddef.h>
33522#endif
33523#if HAVE_INTTYPES_H
33524#include <inttypes.h>
33525#endif
33526#if HAVE_SYS_BITYPES_H
33527#include <sys/bitypes.h>
33528#endif
33529#if HAVE_SYS_SELECT_H
33530#include <sys/select.h>
33531#endif
33532
33533
33534
33535int
33536main ()
33537{
33538static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)];
33539test_array [0] = 0
33540
33541 ;
33542 return 0;
33543}
33544_ACEOF
33545rm -f conftest.$ac_objext
33546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33547 (eval $ac_compile) 2>conftest.er1
33548 ac_status=$?
33549 grep -v '^ *+' conftest.er1 >conftest.err
33550 rm -f conftest.er1
33551 cat conftest.err >&5
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); } &&
33554 { ac_try='test -z "$ac_c_werror_flag"
33555 || test ! -s conftest.err'
33556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33557 (eval $ac_try) 2>&5
33558 ac_status=$?
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); }; } &&
33561 { ac_try='test -s conftest.$ac_objext'
33562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33563 (eval $ac_try) 2>&5
33564 ac_status=$?
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); }; }; then
33567 ac_hi=$ac_mid; break
33568else
33569 echo "$as_me: failed program was:" >&5
33570sed 's/^/| /' conftest.$ac_ext >&5
33571
33572ac_lo=`expr $ac_mid + 1`
33573 if test $ac_lo -le $ac_mid; then
33574 ac_lo= ac_hi=
33575 break
33576 fi
33577 ac_mid=`expr 2 '*' $ac_mid + 1`
33578fi
33579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33580 done
33581else
33582 echo "$as_me: failed program was:" >&5
33583sed 's/^/| /' conftest.$ac_ext >&5
33584
33585cat >conftest.$ac_ext <<_ACEOF
33586/* confdefs.h. */
33587_ACEOF
33588cat confdefs.h >>conftest.$ac_ext
33589cat >>conftest.$ac_ext <<_ACEOF
33590/* end confdefs.h. */
33591
33592#include <stdio.h>
33593
33594/* What a mess.. many systems have added the (now standard) bit types
33595 * in their own ways, so we need to scan a wide variety of headers to
33596 * find them..
33597 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33598 */
33599#if HAVE_SYS_TYPES_H
33600#include <sys/types.h>
33601#endif
33602#if STDC_HEADERS
33603#include <stdlib.h>
33604#include <stddef.h>
33605#endif
33606#if HAVE_INTTYPES_H
33607#include <inttypes.h>
33608#endif
33609#if HAVE_SYS_BITYPES_H
33610#include <sys/bitypes.h>
33611#endif
33612#if HAVE_SYS_SELECT_H
33613#include <sys/select.h>
33614#endif
33615
33616
33617
33618int
33619main ()
33620{
33621static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) < 0)];
33622test_array [0] = 0
33623
33624 ;
33625 return 0;
33626}
33627_ACEOF
33628rm -f conftest.$ac_objext
33629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33630 (eval $ac_compile) 2>conftest.er1
33631 ac_status=$?
33632 grep -v '^ *+' conftest.er1 >conftest.err
33633 rm -f conftest.er1
33634 cat conftest.err >&5
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } &&
33637 { ac_try='test -z "$ac_c_werror_flag"
33638 || test ! -s conftest.err'
33639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33640 (eval $ac_try) 2>&5
33641 ac_status=$?
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); }; } &&
33644 { ac_try='test -s conftest.$ac_objext'
33645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33646 (eval $ac_try) 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
33650 ac_hi=-1 ac_mid=-1
33651 while :; do
33652 cat >conftest.$ac_ext <<_ACEOF
33653/* confdefs.h. */
33654_ACEOF
33655cat confdefs.h >>conftest.$ac_ext
33656cat >>conftest.$ac_ext <<_ACEOF
33657/* end confdefs.h. */
33658
33659#include <stdio.h>
33660
33661/* What a mess.. many systems have added the (now standard) bit types
33662 * in their own ways, so we need to scan a wide variety of headers to
33663 * find them..
33664 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33665 */
33666#if HAVE_SYS_TYPES_H
33667#include <sys/types.h>
33668#endif
33669#if STDC_HEADERS
33670#include <stdlib.h>
33671#include <stddef.h>
33672#endif
33673#if HAVE_INTTYPES_H
33674#include <inttypes.h>
33675#endif
33676#if HAVE_SYS_BITYPES_H
33677#include <sys/bitypes.h>
33678#endif
33679#if HAVE_SYS_SELECT_H
33680#include <sys/select.h>
33681#endif
33682
33683
33684
33685int
33686main ()
33687{
33688static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= $ac_mid)];
33689test_array [0] = 0
33690
33691 ;
33692 return 0;
33693}
33694_ACEOF
33695rm -f conftest.$ac_objext
33696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33697 (eval $ac_compile) 2>conftest.er1
33698 ac_status=$?
33699 grep -v '^ *+' conftest.er1 >conftest.err
33700 rm -f conftest.er1
33701 cat conftest.err >&5
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); } &&
33704 { ac_try='test -z "$ac_c_werror_flag"
33705 || test ! -s conftest.err'
33706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33707 (eval $ac_try) 2>&5
33708 ac_status=$?
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; } &&
33711 { ac_try='test -s conftest.$ac_objext'
33712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33713 (eval $ac_try) 2>&5
33714 ac_status=$?
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); }; }; then
33717 ac_lo=$ac_mid; break
33718else
33719 echo "$as_me: failed program was:" >&5
33720sed 's/^/| /' conftest.$ac_ext >&5
33721
33722ac_hi=`expr '(' $ac_mid ')' - 1`
33723 if test $ac_mid -le $ac_hi; then
33724 ac_lo= ac_hi=
33725 break
33726 fi
33727 ac_mid=`expr 2 '*' $ac_mid`
33728fi
33729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33730 done
33731else
33732 echo "$as_me: failed program was:" >&5
33733sed 's/^/| /' conftest.$ac_ext >&5
33734
33735ac_lo= ac_hi=
33736fi
33737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33738fi
33739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33740# Binary search between lo and hi bounds.
33741while test "x$ac_lo" != "x$ac_hi"; do
33742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33743 cat >conftest.$ac_ext <<_ACEOF
33744/* confdefs.h. */
33745_ACEOF
33746cat confdefs.h >>conftest.$ac_ext
33747cat >>conftest.$ac_ext <<_ACEOF
33748/* end confdefs.h. */
33749
33750#include <stdio.h>
33751
33752/* What a mess.. many systems have added the (now standard) bit types
33753 * in their own ways, so we need to scan a wide variety of headers to
33754 * find them..
33755 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33756 */
33757#if HAVE_SYS_TYPES_H
33758#include <sys/types.h>
33759#endif
33760#if STDC_HEADERS
33761#include <stdlib.h>
33762#include <stddef.h>
33763#endif
33764#if HAVE_INTTYPES_H
33765#include <inttypes.h>
33766#endif
33767#if HAVE_SYS_BITYPES_H
33768#include <sys/bitypes.h>
33769#endif
33770#if HAVE_SYS_SELECT_H
33771#include <sys/select.h>
33772#endif
33773
33774
33775
33776int
33777main ()
33778{
33779static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)];
33780test_array [0] = 0
33781
33782 ;
33783 return 0;
33784}
33785_ACEOF
33786rm -f conftest.$ac_objext
33787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33788 (eval $ac_compile) 2>conftest.er1
33789 ac_status=$?
33790 grep -v '^ *+' conftest.er1 >conftest.err
33791 rm -f conftest.er1
33792 cat conftest.err >&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } &&
33795 { ac_try='test -z "$ac_c_werror_flag"
33796 || test ! -s conftest.err'
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; } &&
33802 { ac_try='test -s conftest.$ac_objext'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33805 ac_status=$?
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
33808 ac_hi=$ac_mid
33809else
33810 echo "$as_me: failed program was:" >&5
33811sed 's/^/| /' conftest.$ac_ext >&5
33812
33813ac_lo=`expr '(' $ac_mid ')' + 1`
33814fi
33815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33816done
33817case $ac_lo in
33818?*) ac_cv_sizeof_u_int32_t=$ac_lo;;
33819'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77
33820See \`config.log' for more details." >&5
33821echo "$as_me: error: cannot compute sizeof (u_int32_t), 77
33822See \`config.log' for more details." >&2;}
33823 { (exit 1); exit 1; }; } ;;
33824esac
33825else
33826 if test "$cross_compiling" = yes; then
33827 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33828See \`config.log' for more details." >&5
33829echo "$as_me: error: cannot run test program while cross compiling
33830See \`config.log' for more details." >&2;}
33831 { (exit 1); exit 1; }; }
33832else
33833 cat >conftest.$ac_ext <<_ACEOF
33834/* confdefs.h. */
33835_ACEOF
33836cat confdefs.h >>conftest.$ac_ext
33837cat >>conftest.$ac_ext <<_ACEOF
33838/* end confdefs.h. */
33839
33840#include <stdio.h>
33841
33842/* What a mess.. many systems have added the (now standard) bit types
33843 * in their own ways, so we need to scan a wide variety of headers to
33844 * find them..
33845 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33846 */
33847#if HAVE_SYS_TYPES_H
33848#include <sys/types.h>
33849#endif
33850#if STDC_HEADERS
33851#include <stdlib.h>
33852#include <stddef.h>
33853#endif
33854#if HAVE_INTTYPES_H
33855#include <inttypes.h>
33856#endif
33857#if HAVE_SYS_BITYPES_H
33858#include <sys/bitypes.h>
33859#endif
33860#if HAVE_SYS_SELECT_H
33861#include <sys/select.h>
33862#endif
33863
33864
33865
33866long longval () { return (long) (sizeof (u_int32_t)); }
33867unsigned long ulongval () { return (long) (sizeof (u_int32_t)); }
33868#include <stdio.h>
33869#include <stdlib.h>
33870int
33871main ()
33872{
33873
33874 FILE *f = fopen ("conftest.val", "w");
33875 if (! f)
33876 exit (1);
33877 if (((long) (sizeof (u_int32_t))) < 0)
33878 {
33879 long i = longval ();
33880 if (i != ((long) (sizeof (u_int32_t))))
33881 exit (1);
33882 fprintf (f, "%ld\n", i);
33883 }
33884 else
33885 {
33886 unsigned long i = ulongval ();
33887 if (i != ((long) (sizeof (u_int32_t))))
33888 exit (1);
33889 fprintf (f, "%lu\n", i);
33890 }
33891 exit (ferror (f) || fclose (f) != 0);
33892
33893 ;
33894 return 0;
33895}
33896_ACEOF
33897rm -f conftest$ac_exeext
33898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33899 (eval $ac_link) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904 (eval $ac_try) 2>&5
33905 ac_status=$?
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); }; }; then
33908 ac_cv_sizeof_u_int32_t=`cat conftest.val`
33909else
33910 echo "$as_me: program exited with status $ac_status" >&5
33911echo "$as_me: failed program was:" >&5
33912sed 's/^/| /' conftest.$ac_ext >&5
33913
33914( exit $ac_status )
33915{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77
33916See \`config.log' for more details." >&5
33917echo "$as_me: error: cannot compute sizeof (u_int32_t), 77
33918See \`config.log' for more details." >&2;}
33919 { (exit 1); exit 1; }; }
33920fi
33921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33922fi
33923fi
33924rm -f conftest.val
33925else
33926 ac_cv_sizeof_u_int32_t=0
33927fi
33928fi
33929echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5
33930echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6
33931cat >>confdefs.h <<_ACEOF
33932#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
33933_ACEOF
33934
33935
33936
33937cat >>confdefs.h <<\_ACEOF
33938#define HAVE_U_INT32_T 1
33939_ACEOF
33940
33941
33942fi
33943
33944
33945echo "$as_me:$LINENO: checking for uint32_t" >&5
33946echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
33947if test "${ac_cv_type_uint32_t+set}" = set; then
33948 echo $ECHO_N "(cached) $ECHO_C" >&6
33949else
33950 cat >conftest.$ac_ext <<_ACEOF
33951/* confdefs.h. */
33952_ACEOF
33953cat confdefs.h >>conftest.$ac_ext
33954cat >>conftest.$ac_ext <<_ACEOF
33955/* end confdefs.h. */
33956
33957/* What a mess.. many systems have added the (now standard) bit types
33958 * in their own ways, so we need to scan a wide variety of headers to
33959 * find them..
33960 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33961 */
33962#if HAVE_SYS_TYPES_H
33963#include <sys/types.h>
33964#endif
33965#if STDC_HEADERS
33966#include <stdlib.h>
33967#include <stddef.h>
33968#endif
33969#if HAVE_INTTYPES_H
33970#include <inttypes.h>
33971#endif
33972#if HAVE_SYS_BITYPES_H
33973#include <sys/bitypes.h>
33974#endif
33975#if HAVE_SYS_SELECT_H
33976#include <sys/select.h>
33977#endif
33978
33979
33980int
33981main ()
33982{
33983if ((uint32_t *) 0)
33984 return 0;
33985if (sizeof (uint32_t))
33986 return 0;
33987 ;
33988 return 0;
33989}
33990_ACEOF
33991rm -f conftest.$ac_objext
33992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33993 (eval $ac_compile) 2>conftest.er1
33994 ac_status=$?
33995 grep -v '^ *+' conftest.er1 >conftest.err
33996 rm -f conftest.er1
33997 cat conftest.err >&5
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } &&
34000 { ac_try='test -z "$ac_c_werror_flag"
34001 || test ! -s conftest.err'
34002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34003 (eval $ac_try) 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; } &&
34007 { ac_try='test -s conftest.$ac_objext'
34008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34009 (eval $ac_try) 2>&5
34010 ac_status=$?
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); }; }; then
34013 ac_cv_type_uint32_t=yes
34014else
34015 echo "$as_me: failed program was:" >&5
34016sed 's/^/| /' conftest.$ac_ext >&5
34017
34018ac_cv_type_uint32_t=no
34019fi
34020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34021fi
34022echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34023echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34024if test $ac_cv_type_uint32_t = yes; then
34025
34026 echo "$as_me:$LINENO: checking for uint32_t" >&5
34027echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
34028if test "${ac_cv_type_uint32_t+set}" = set; then
34029 echo $ECHO_N "(cached) $ECHO_C" >&6
34030else
34031 cat >conftest.$ac_ext <<_ACEOF
34032/* confdefs.h. */
34033_ACEOF
34034cat confdefs.h >>conftest.$ac_ext
34035cat >>conftest.$ac_ext <<_ACEOF
34036/* end confdefs.h. */
34037
34038#include <stdio.h>
34039
34040/* What a mess.. many systems have added the (now standard) bit types
34041 * in their own ways, so we need to scan a wide variety of headers to
34042 * find them..
34043 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34044 */
34045#if HAVE_SYS_TYPES_H
34046#include <sys/types.h>
34047#endif
34048#if STDC_HEADERS
34049#include <stdlib.h>
34050#include <stddef.h>
34051#endif
34052#if HAVE_INTTYPES_H
34053#include <inttypes.h>
34054#endif
34055#if HAVE_SYS_BITYPES_H
34056#include <sys/bitypes.h>
34057#endif
34058#if HAVE_SYS_SELECT_H
34059#include <sys/select.h>
34060#endif
34061
34062
34063
34064int
34065main ()
34066{
34067if ((uint32_t *) 0)
34068 return 0;
34069if (sizeof (uint32_t))
34070 return 0;
34071 ;
34072 return 0;
34073}
34074_ACEOF
34075rm -f conftest.$ac_objext
34076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34077 (eval $ac_compile) 2>conftest.er1
34078 ac_status=$?
34079 grep -v '^ *+' conftest.er1 >conftest.err
34080 rm -f conftest.er1
34081 cat conftest.err >&5
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); } &&
34084 { ac_try='test -z "$ac_c_werror_flag"
34085 || test ! -s conftest.err'
34086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087 (eval $ac_try) 2>&5
34088 ac_status=$?
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); }; } &&
34091 { ac_try='test -s conftest.$ac_objext'
34092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093 (eval $ac_try) 2>&5
34094 ac_status=$?
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); }; }; then
34097 ac_cv_type_uint32_t=yes
34098else
34099 echo "$as_me: failed program was:" >&5
34100sed 's/^/| /' conftest.$ac_ext >&5
34101
34102ac_cv_type_uint32_t=no
34103fi
34104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34105fi
34106echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34107echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34108
34109echo "$as_me:$LINENO: checking size of uint32_t" >&5
34110echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
34111if test "${ac_cv_sizeof_uint32_t+set}" = set; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34113else
34114 if test "$ac_cv_type_uint32_t" = yes; then
34115 # The cast to unsigned long works around a bug in the HP C Compiler
34116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34118 # This bug is HP SR number 8606223364.
34119 if test "$cross_compiling" = yes; then
34120 # Depending upon the size, compute the lo and hi bounds.
34121cat >conftest.$ac_ext <<_ACEOF
34122/* confdefs.h. */
34123_ACEOF
34124cat confdefs.h >>conftest.$ac_ext
34125cat >>conftest.$ac_ext <<_ACEOF
34126/* end confdefs.h. */
34127
34128#include <stdio.h>
34129
34130/* What a mess.. many systems have added the (now standard) bit types
34131 * in their own ways, so we need to scan a wide variety of headers to
34132 * find them..
34133 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34134 */
34135#if HAVE_SYS_TYPES_H
34136#include <sys/types.h>
34137#endif
34138#if STDC_HEADERS
34139#include <stdlib.h>
34140#include <stddef.h>
34141#endif
34142#if HAVE_INTTYPES_H
34143#include <inttypes.h>
34144#endif
34145#if HAVE_SYS_BITYPES_H
34146#include <sys/bitypes.h>
34147#endif
34148#if HAVE_SYS_SELECT_H
34149#include <sys/select.h>
34150#endif
34151
34152
34153
34154int
34155main ()
34156{
34157static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= 0)];
34158test_array [0] = 0
34159
34160 ;
34161 return 0;
34162}
34163_ACEOF
34164rm -f conftest.$ac_objext
34165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34166 (eval $ac_compile) 2>conftest.er1
34167 ac_status=$?
34168 grep -v '^ *+' conftest.er1 >conftest.err
34169 rm -f conftest.er1
34170 cat conftest.err >&5
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); } &&
34173 { ac_try='test -z "$ac_c_werror_flag"
34174 || test ! -s conftest.err'
34175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34176 (eval $ac_try) 2>&5
34177 ac_status=$?
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); }; } &&
34180 { ac_try='test -s conftest.$ac_objext'
34181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34182 (eval $ac_try) 2>&5
34183 ac_status=$?
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); }; }; then
34186 ac_lo=0 ac_mid=0
34187 while :; do
34188 cat >conftest.$ac_ext <<_ACEOF
34189/* confdefs.h. */
34190_ACEOF
34191cat confdefs.h >>conftest.$ac_ext
34192cat >>conftest.$ac_ext <<_ACEOF
34193/* end confdefs.h. */
34194
34195#include <stdio.h>
34196
34197/* What a mess.. many systems have added the (now standard) bit types
34198 * in their own ways, so we need to scan a wide variety of headers to
34199 * find them..
34200 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34201 */
34202#if HAVE_SYS_TYPES_H
34203#include <sys/types.h>
34204#endif
34205#if STDC_HEADERS
34206#include <stdlib.h>
34207#include <stddef.h>
34208#endif
34209#if HAVE_INTTYPES_H
34210#include <inttypes.h>
34211#endif
34212#if HAVE_SYS_BITYPES_H
34213#include <sys/bitypes.h>
34214#endif
34215#if HAVE_SYS_SELECT_H
34216#include <sys/select.h>
34217#endif
34218
34219
34220
34221int
34222main ()
34223{
34224static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)];
34225test_array [0] = 0
34226
34227 ;
34228 return 0;
34229}
34230_ACEOF
34231rm -f conftest.$ac_objext
34232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34233 (eval $ac_compile) 2>conftest.er1
34234 ac_status=$?
34235 grep -v '^ *+' conftest.er1 >conftest.err
34236 rm -f conftest.er1
34237 cat conftest.err >&5
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); } &&
34240 { ac_try='test -z "$ac_c_werror_flag"
34241 || test ! -s conftest.err'
34242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34243 (eval $ac_try) 2>&5
34244 ac_status=$?
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); }; } &&
34247 { ac_try='test -s conftest.$ac_objext'
34248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34249 (eval $ac_try) 2>&5
34250 ac_status=$?
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); }; }; then
34253 ac_hi=$ac_mid; break
34254else
34255 echo "$as_me: failed program was:" >&5
34256sed 's/^/| /' conftest.$ac_ext >&5
34257
34258ac_lo=`expr $ac_mid + 1`
34259 if test $ac_lo -le $ac_mid; then
34260 ac_lo= ac_hi=
34261 break
34262 fi
34263 ac_mid=`expr 2 '*' $ac_mid + 1`
34264fi
34265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34266 done
34267else
34268 echo "$as_me: failed program was:" >&5
34269sed 's/^/| /' conftest.$ac_ext >&5
34270
34271cat >conftest.$ac_ext <<_ACEOF
34272/* confdefs.h. */
34273_ACEOF
34274cat confdefs.h >>conftest.$ac_ext
34275cat >>conftest.$ac_ext <<_ACEOF
34276/* end confdefs.h. */
34277
34278#include <stdio.h>
34279
34280/* What a mess.. many systems have added the (now standard) bit types
34281 * in their own ways, so we need to scan a wide variety of headers to
34282 * find them..
34283 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34284 */
34285#if HAVE_SYS_TYPES_H
34286#include <sys/types.h>
34287#endif
34288#if STDC_HEADERS
34289#include <stdlib.h>
34290#include <stddef.h>
34291#endif
34292#if HAVE_INTTYPES_H
34293#include <inttypes.h>
34294#endif
34295#if HAVE_SYS_BITYPES_H
34296#include <sys/bitypes.h>
34297#endif
34298#if HAVE_SYS_SELECT_H
34299#include <sys/select.h>
34300#endif
34301
34302
34303
34304int
34305main ()
34306{
34307static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) < 0)];
34308test_array [0] = 0
34309
34310 ;
34311 return 0;
34312}
34313_ACEOF
34314rm -f conftest.$ac_objext
34315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34316 (eval $ac_compile) 2>conftest.er1
34317 ac_status=$?
34318 grep -v '^ *+' conftest.er1 >conftest.err
34319 rm -f conftest.er1
34320 cat conftest.err >&5
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } &&
34323 { ac_try='test -z "$ac_c_werror_flag"
34324 || test ! -s conftest.err'
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34327 ac_status=$?
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; } &&
34330 { ac_try='test -s conftest.$ac_objext'
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; }; then
34336 ac_hi=-1 ac_mid=-1
34337 while :; do
34338 cat >conftest.$ac_ext <<_ACEOF
34339/* confdefs.h. */
34340_ACEOF
34341cat confdefs.h >>conftest.$ac_ext
34342cat >>conftest.$ac_ext <<_ACEOF
34343/* end confdefs.h. */
34344
34345#include <stdio.h>
34346
34347/* What a mess.. many systems have added the (now standard) bit types
34348 * in their own ways, so we need to scan a wide variety of headers to
34349 * find them..
34350 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34351 */
34352#if HAVE_SYS_TYPES_H
34353#include <sys/types.h>
34354#endif
34355#if STDC_HEADERS
34356#include <stdlib.h>
34357#include <stddef.h>
34358#endif
34359#if HAVE_INTTYPES_H
34360#include <inttypes.h>
34361#endif
34362#if HAVE_SYS_BITYPES_H
34363#include <sys/bitypes.h>
34364#endif
34365#if HAVE_SYS_SELECT_H
34366#include <sys/select.h>
34367#endif
34368
34369
34370
34371int
34372main ()
34373{
34374static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= $ac_mid)];
34375test_array [0] = 0
34376
34377 ;
34378 return 0;
34379}
34380_ACEOF
34381rm -f conftest.$ac_objext
34382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34383 (eval $ac_compile) 2>conftest.er1
34384 ac_status=$?
34385 grep -v '^ *+' conftest.er1 >conftest.err
34386 rm -f conftest.er1
34387 cat conftest.err >&5
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); } &&
34390 { ac_try='test -z "$ac_c_werror_flag"
34391 || test ! -s conftest.err'
34392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34393 (eval $ac_try) 2>&5
34394 ac_status=$?
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; } &&
34397 { ac_try='test -s conftest.$ac_objext'
34398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399 (eval $ac_try) 2>&5
34400 ac_status=$?
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; }; then
34403 ac_lo=$ac_mid; break
34404else
34405 echo "$as_me: failed program was:" >&5
34406sed 's/^/| /' conftest.$ac_ext >&5
34407
34408ac_hi=`expr '(' $ac_mid ')' - 1`
34409 if test $ac_mid -le $ac_hi; then
34410 ac_lo= ac_hi=
34411 break
34412 fi
34413 ac_mid=`expr 2 '*' $ac_mid`
34414fi
34415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34416 done
34417else
34418 echo "$as_me: failed program was:" >&5
34419sed 's/^/| /' conftest.$ac_ext >&5
34420
34421ac_lo= ac_hi=
34422fi
34423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34424fi
34425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34426# Binary search between lo and hi bounds.
34427while test "x$ac_lo" != "x$ac_hi"; do
34428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34429 cat >conftest.$ac_ext <<_ACEOF
34430/* confdefs.h. */
34431_ACEOF
34432cat confdefs.h >>conftest.$ac_ext
34433cat >>conftest.$ac_ext <<_ACEOF
34434/* end confdefs.h. */
34435
34436#include <stdio.h>
34437
34438/* What a mess.. many systems have added the (now standard) bit types
34439 * in their own ways, so we need to scan a wide variety of headers to
34440 * find them..
34441 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34442 */
34443#if HAVE_SYS_TYPES_H
34444#include <sys/types.h>
34445#endif
34446#if STDC_HEADERS
34447#include <stdlib.h>
34448#include <stddef.h>
34449#endif
34450#if HAVE_INTTYPES_H
34451#include <inttypes.h>
34452#endif
34453#if HAVE_SYS_BITYPES_H
34454#include <sys/bitypes.h>
34455#endif
34456#if HAVE_SYS_SELECT_H
34457#include <sys/select.h>
34458#endif
34459
34460
34461
34462int
34463main ()
34464{
34465static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)];
34466test_array [0] = 0
34467
34468 ;
34469 return 0;
34470}
34471_ACEOF
34472rm -f conftest.$ac_objext
34473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34474 (eval $ac_compile) 2>conftest.er1
34475 ac_status=$?
34476 grep -v '^ *+' conftest.er1 >conftest.err
34477 rm -f conftest.er1
34478 cat conftest.err >&5
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); } &&
34481 { ac_try='test -z "$ac_c_werror_flag"
34482 || test ! -s conftest.err'
34483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34484 (eval $ac_try) 2>&5
34485 ac_status=$?
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); }; } &&
34488 { ac_try='test -s conftest.$ac_objext'
34489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490 (eval $ac_try) 2>&5
34491 ac_status=$?
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); }; }; then
34494 ac_hi=$ac_mid
34495else
34496 echo "$as_me: failed program was:" >&5
34497sed 's/^/| /' conftest.$ac_ext >&5
34498
34499ac_lo=`expr '(' $ac_mid ')' + 1`
34500fi
34501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34502done
34503case $ac_lo in
34504?*) ac_cv_sizeof_uint32_t=$ac_lo;;
34505'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77
34506See \`config.log' for more details." >&5
34507echo "$as_me: error: cannot compute sizeof (uint32_t), 77
34508See \`config.log' for more details." >&2;}
34509 { (exit 1); exit 1; }; } ;;
34510esac
34511else
34512 if test "$cross_compiling" = yes; then
34513 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34514See \`config.log' for more details." >&5
34515echo "$as_me: error: cannot run test program while cross compiling
34516See \`config.log' for more details." >&2;}
34517 { (exit 1); exit 1; }; }
34518else
34519 cat >conftest.$ac_ext <<_ACEOF
34520/* confdefs.h. */
34521_ACEOF
34522cat confdefs.h >>conftest.$ac_ext
34523cat >>conftest.$ac_ext <<_ACEOF
34524/* end confdefs.h. */
34525
34526#include <stdio.h>
34527
34528/* What a mess.. many systems have added the (now standard) bit types
34529 * in their own ways, so we need to scan a wide variety of headers to
34530 * find them..
34531 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34532 */
34533#if HAVE_SYS_TYPES_H
34534#include <sys/types.h>
34535#endif
34536#if STDC_HEADERS
34537#include <stdlib.h>
34538#include <stddef.h>
34539#endif
34540#if HAVE_INTTYPES_H
34541#include <inttypes.h>
34542#endif
34543#if HAVE_SYS_BITYPES_H
34544#include <sys/bitypes.h>
34545#endif
34546#if HAVE_SYS_SELECT_H
34547#include <sys/select.h>
34548#endif
34549
34550
34551
34552long longval () { return (long) (sizeof (uint32_t)); }
34553unsigned long ulongval () { return (long) (sizeof (uint32_t)); }
34554#include <stdio.h>
34555#include <stdlib.h>
34556int
34557main ()
34558{
34559
34560 FILE *f = fopen ("conftest.val", "w");
34561 if (! f)
34562 exit (1);
34563 if (((long) (sizeof (uint32_t))) < 0)
34564 {
34565 long i = longval ();
34566 if (i != ((long) (sizeof (uint32_t))))
34567 exit (1);
34568 fprintf (f, "%ld\n", i);
34569 }
34570 else
34571 {
34572 unsigned long i = ulongval ();
34573 if (i != ((long) (sizeof (uint32_t))))
34574 exit (1);
34575 fprintf (f, "%lu\n", i);
34576 }
34577 exit (ferror (f) || fclose (f) != 0);
34578
34579 ;
34580 return 0;
34581}
34582_ACEOF
34583rm -f conftest$ac_exeext
34584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34585 (eval $ac_link) 2>&5
34586 ac_status=$?
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590 (eval $ac_try) 2>&5
34591 ac_status=$?
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; }; then
34594 ac_cv_sizeof_uint32_t=`cat conftest.val`
34595else
34596 echo "$as_me: program exited with status $ac_status" >&5
34597echo "$as_me: failed program was:" >&5
34598sed 's/^/| /' conftest.$ac_ext >&5
34599
34600( exit $ac_status )
34601{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77
34602See \`config.log' for more details." >&5
34603echo "$as_me: error: cannot compute sizeof (uint32_t), 77
34604See \`config.log' for more details." >&2;}
34605 { (exit 1); exit 1; }; }
34606fi
34607rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34608fi
34609fi
34610rm -f conftest.val
34611else
34612 ac_cv_sizeof_uint32_t=0
34613fi
34614fi
34615echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
34616echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
34617cat >>confdefs.h <<_ACEOF
34618#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
34619_ACEOF
34620
34621
34622
34623cat >>confdefs.h <<\_ACEOF
34624#define HAVE_UINT32_T 1
34625_ACEOF
34626
34627
34628fi
34629
34630
34631echo "$as_me:$LINENO: checking for int64_t" >&5
34632echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34633if test "${ac_cv_type_int64_t+set}" = set; then
34634 echo $ECHO_N "(cached) $ECHO_C" >&6
34635else
34636 cat >conftest.$ac_ext <<_ACEOF
34637/* confdefs.h. */
34638_ACEOF
34639cat confdefs.h >>conftest.$ac_ext
34640cat >>conftest.$ac_ext <<_ACEOF
34641/* end confdefs.h. */
34642
34643/* What a mess.. many systems have added the (now standard) bit types
34644 * in their own ways, so we need to scan a wide variety of headers to
34645 * find them..
34646 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34647 */
34648#if HAVE_SYS_TYPES_H
34649#include <sys/types.h>
34650#endif
34651#if STDC_HEADERS
34652#include <stdlib.h>
34653#include <stddef.h>
34654#endif
34655#if HAVE_INTTYPES_H
34656#include <inttypes.h>
34657#endif
34658#if HAVE_SYS_BITYPES_H
34659#include <sys/bitypes.h>
34660#endif
34661#if HAVE_SYS_SELECT_H
34662#include <sys/select.h>
34663#endif
34664
34665
34666int
34667main ()
34668{
34669if ((int64_t *) 0)
34670 return 0;
34671if (sizeof (int64_t))
34672 return 0;
34673 ;
34674 return 0;
34675}
34676_ACEOF
34677rm -f conftest.$ac_objext
34678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34679 (eval $ac_compile) 2>conftest.er1
34680 ac_status=$?
34681 grep -v '^ *+' conftest.er1 >conftest.err
34682 rm -f conftest.er1
34683 cat conftest.err >&5
34684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685 (exit $ac_status); } &&
34686 { ac_try='test -z "$ac_c_werror_flag"
34687 || test ! -s conftest.err'
34688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689 (eval $ac_try) 2>&5
34690 ac_status=$?
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; } &&
34693 { ac_try='test -s conftest.$ac_objext'
34694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34695 (eval $ac_try) 2>&5
34696 ac_status=$?
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); }; }; then
34699 ac_cv_type_int64_t=yes
34700else
34701 echo "$as_me: failed program was:" >&5
34702sed 's/^/| /' conftest.$ac_ext >&5
34703
34704ac_cv_type_int64_t=no
34705fi
34706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34707fi
34708echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34709echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34710if test $ac_cv_type_int64_t = yes; then
34711
34712 echo "$as_me:$LINENO: checking for int64_t" >&5
34713echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34714if test "${ac_cv_type_int64_t+set}" = set; then
34715 echo $ECHO_N "(cached) $ECHO_C" >&6
34716else
34717 cat >conftest.$ac_ext <<_ACEOF
34718/* confdefs.h. */
34719_ACEOF
34720cat confdefs.h >>conftest.$ac_ext
34721cat >>conftest.$ac_ext <<_ACEOF
34722/* end confdefs.h. */
34723
34724#include <stdio.h>
34725
34726/* What a mess.. many systems have added the (now standard) bit types
34727 * in their own ways, so we need to scan a wide variety of headers to
34728 * find them..
34729 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34730 */
34731#if HAVE_SYS_TYPES_H
34732#include <sys/types.h>
34733#endif
34734#if STDC_HEADERS
34735#include <stdlib.h>
34736#include <stddef.h>
34737#endif
34738#if HAVE_INTTYPES_H
34739#include <inttypes.h>
34740#endif
34741#if HAVE_SYS_BITYPES_H
34742#include <sys/bitypes.h>
34743#endif
34744#if HAVE_SYS_SELECT_H
34745#include <sys/select.h>
34746#endif
34747
34748
34749
34750int
34751main ()
34752{
34753if ((int64_t *) 0)
34754 return 0;
34755if (sizeof (int64_t))
34756 return 0;
34757 ;
34758 return 0;
34759}
34760_ACEOF
34761rm -f conftest.$ac_objext
34762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34763 (eval $ac_compile) 2>conftest.er1
34764 ac_status=$?
34765 grep -v '^ *+' conftest.er1 >conftest.err
34766 rm -f conftest.er1
34767 cat conftest.err >&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
34770 { ac_try='test -z "$ac_c_werror_flag"
34771 || test ! -s conftest.err'
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; } &&
34777 { ac_try='test -s conftest.$ac_objext'
34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779 (eval $ac_try) 2>&5
34780 ac_status=$?
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; }; then
34783 ac_cv_type_int64_t=yes
34784else
34785 echo "$as_me: failed program was:" >&5
34786sed 's/^/| /' conftest.$ac_ext >&5
34787
34788ac_cv_type_int64_t=no
34789fi
34790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34791fi
34792echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34793echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34794
34795echo "$as_me:$LINENO: checking size of int64_t" >&5
34796echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
34797if test "${ac_cv_sizeof_int64_t+set}" = set; then
34798 echo $ECHO_N "(cached) $ECHO_C" >&6
34799else
34800 if test "$ac_cv_type_int64_t" = yes; then
34801 # The cast to unsigned long works around a bug in the HP C Compiler
34802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34804 # This bug is HP SR number 8606223364.
34805 if test "$cross_compiling" = yes; then
34806 # Depending upon the size, compute the lo and hi bounds.
34807cat >conftest.$ac_ext <<_ACEOF
34808/* confdefs.h. */
34809_ACEOF
34810cat confdefs.h >>conftest.$ac_ext
34811cat >>conftest.$ac_ext <<_ACEOF
34812/* end confdefs.h. */
34813
34814#include <stdio.h>
34815
34816/* What a mess.. many systems have added the (now standard) bit types
34817 * in their own ways, so we need to scan a wide variety of headers to
34818 * find them..
34819 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34820 */
34821#if HAVE_SYS_TYPES_H
34822#include <sys/types.h>
34823#endif
34824#if STDC_HEADERS
34825#include <stdlib.h>
34826#include <stddef.h>
34827#endif
34828#if HAVE_INTTYPES_H
34829#include <inttypes.h>
34830#endif
34831#if HAVE_SYS_BITYPES_H
34832#include <sys/bitypes.h>
34833#endif
34834#if HAVE_SYS_SELECT_H
34835#include <sys/select.h>
34836#endif
34837
34838
34839
34840int
34841main ()
34842{
34843static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
34844test_array [0] = 0
34845
34846 ;
34847 return 0;
34848}
34849_ACEOF
34850rm -f conftest.$ac_objext
34851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34852 (eval $ac_compile) 2>conftest.er1
34853 ac_status=$?
34854 grep -v '^ *+' conftest.er1 >conftest.err
34855 rm -f conftest.er1
34856 cat conftest.err >&5
34857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858 (exit $ac_status); } &&
34859 { ac_try='test -z "$ac_c_werror_flag"
34860 || test ! -s conftest.err'
34861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34862 (eval $ac_try) 2>&5
34863 ac_status=$?
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); }; } &&
34866 { ac_try='test -s conftest.$ac_objext'
34867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868 (eval $ac_try) 2>&5
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; }; then
34872 ac_lo=0 ac_mid=0
34873 while :; do
34874 cat >conftest.$ac_ext <<_ACEOF
34875/* confdefs.h. */
34876_ACEOF
34877cat confdefs.h >>conftest.$ac_ext
34878cat >>conftest.$ac_ext <<_ACEOF
34879/* end confdefs.h. */
34880
34881#include <stdio.h>
34882
34883/* What a mess.. many systems have added the (now standard) bit types
34884 * in their own ways, so we need to scan a wide variety of headers to
34885 * find them..
34886 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34887 */
34888#if HAVE_SYS_TYPES_H
34889#include <sys/types.h>
34890#endif
34891#if STDC_HEADERS
34892#include <stdlib.h>
34893#include <stddef.h>
34894#endif
34895#if HAVE_INTTYPES_H
34896#include <inttypes.h>
34897#endif
34898#if HAVE_SYS_BITYPES_H
34899#include <sys/bitypes.h>
34900#endif
34901#if HAVE_SYS_SELECT_H
34902#include <sys/select.h>
34903#endif
34904
34905
34906
34907int
34908main ()
34909{
34910static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
34911test_array [0] = 0
34912
34913 ;
34914 return 0;
34915}
34916_ACEOF
34917rm -f conftest.$ac_objext
34918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34919 (eval $ac_compile) 2>conftest.er1
34920 ac_status=$?
34921 grep -v '^ *+' conftest.er1 >conftest.err
34922 rm -f conftest.er1
34923 cat conftest.err >&5
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); } &&
34926 { ac_try='test -z "$ac_c_werror_flag"
34927 || test ! -s conftest.err'
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; } &&
34933 { ac_try='test -s conftest.$ac_objext'
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 ac_hi=$ac_mid; break
34940else
34941 echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944ac_lo=`expr $ac_mid + 1`
34945 if test $ac_lo -le $ac_mid; then
34946 ac_lo= ac_hi=
34947 break
34948 fi
34949 ac_mid=`expr 2 '*' $ac_mid + 1`
34950fi
34951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34952 done
34953else
34954 echo "$as_me: failed program was:" >&5
34955sed 's/^/| /' conftest.$ac_ext >&5
34956
34957cat >conftest.$ac_ext <<_ACEOF
34958/* confdefs.h. */
34959_ACEOF
34960cat confdefs.h >>conftest.$ac_ext
34961cat >>conftest.$ac_ext <<_ACEOF
34962/* end confdefs.h. */
34963
34964#include <stdio.h>
34965
34966/* What a mess.. many systems have added the (now standard) bit types
34967 * in their own ways, so we need to scan a wide variety of headers to
34968 * find them..
34969 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34970 */
34971#if HAVE_SYS_TYPES_H
34972#include <sys/types.h>
34973#endif
34974#if STDC_HEADERS
34975#include <stdlib.h>
34976#include <stddef.h>
34977#endif
34978#if HAVE_INTTYPES_H
34979#include <inttypes.h>
34980#endif
34981#if HAVE_SYS_BITYPES_H
34982#include <sys/bitypes.h>
34983#endif
34984#if HAVE_SYS_SELECT_H
34985#include <sys/select.h>
34986#endif
34987
34988
34989
34990int
34991main ()
34992{
34993static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
34994test_array [0] = 0
34995
34996 ;
34997 return 0;
34998}
34999_ACEOF
35000rm -f conftest.$ac_objext
35001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35002 (eval $ac_compile) 2>conftest.er1
35003 ac_status=$?
35004 grep -v '^ *+' conftest.er1 >conftest.err
35005 rm -f conftest.er1
35006 cat conftest.err >&5
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); } &&
35009 { ac_try='test -z "$ac_c_werror_flag"
35010 || test ! -s conftest.err'
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35013 ac_status=$?
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; } &&
35016 { ac_try='test -s conftest.$ac_objext'
35017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018 (eval $ac_try) 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; }; then
35022 ac_hi=-1 ac_mid=-1
35023 while :; do
35024 cat >conftest.$ac_ext <<_ACEOF
35025/* confdefs.h. */
35026_ACEOF
35027cat confdefs.h >>conftest.$ac_ext
35028cat >>conftest.$ac_ext <<_ACEOF
35029/* end confdefs.h. */
35030
35031#include <stdio.h>
35032
35033/* What a mess.. many systems have added the (now standard) bit types
35034 * in their own ways, so we need to scan a wide variety of headers to
35035 * find them..
35036 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35037 */
35038#if HAVE_SYS_TYPES_H
35039#include <sys/types.h>
35040#endif
35041#if STDC_HEADERS
35042#include <stdlib.h>
35043#include <stddef.h>
35044#endif
35045#if HAVE_INTTYPES_H
35046#include <inttypes.h>
35047#endif
35048#if HAVE_SYS_BITYPES_H
35049#include <sys/bitypes.h>
35050#endif
35051#if HAVE_SYS_SELECT_H
35052#include <sys/select.h>
35053#endif
35054
35055
35056
35057int
35058main ()
35059{
35060static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
35061test_array [0] = 0
35062
35063 ;
35064 return 0;
35065}
35066_ACEOF
35067rm -f conftest.$ac_objext
35068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35069 (eval $ac_compile) 2>conftest.er1
35070 ac_status=$?
35071 grep -v '^ *+' conftest.er1 >conftest.err
35072 rm -f conftest.er1
35073 cat conftest.err >&5
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } &&
35076 { ac_try='test -z "$ac_c_werror_flag"
35077 || test ! -s conftest.err'
35078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079 (eval $ac_try) 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; } &&
35083 { ac_try='test -s conftest.$ac_objext'
35084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085 (eval $ac_try) 2>&5
35086 ac_status=$?
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); }; }; then
35089 ac_lo=$ac_mid; break
35090else
35091 echo "$as_me: failed program was:" >&5
35092sed 's/^/| /' conftest.$ac_ext >&5
35093
35094ac_hi=`expr '(' $ac_mid ')' - 1`
35095 if test $ac_mid -le $ac_hi; then
35096 ac_lo= ac_hi=
35097 break
35098 fi
35099 ac_mid=`expr 2 '*' $ac_mid`
35100fi
35101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35102 done
35103else
35104 echo "$as_me: failed program was:" >&5
35105sed 's/^/| /' conftest.$ac_ext >&5
35106
35107ac_lo= ac_hi=
35108fi
35109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35110fi
35111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35112# Binary search between lo and hi bounds.
35113while test "x$ac_lo" != "x$ac_hi"; do
35114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35115 cat >conftest.$ac_ext <<_ACEOF
35116/* confdefs.h. */
35117_ACEOF
35118cat confdefs.h >>conftest.$ac_ext
35119cat >>conftest.$ac_ext <<_ACEOF
35120/* end confdefs.h. */
35121
35122#include <stdio.h>
35123
35124/* What a mess.. many systems have added the (now standard) bit types
35125 * in their own ways, so we need to scan a wide variety of headers to
35126 * find them..
35127 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35128 */
35129#if HAVE_SYS_TYPES_H
35130#include <sys/types.h>
35131#endif
35132#if STDC_HEADERS
35133#include <stdlib.h>
35134#include <stddef.h>
35135#endif
35136#if HAVE_INTTYPES_H
35137#include <inttypes.h>
35138#endif
35139#if HAVE_SYS_BITYPES_H
35140#include <sys/bitypes.h>
35141#endif
35142#if HAVE_SYS_SELECT_H
35143#include <sys/select.h>
35144#endif
35145
35146
35147
35148int
35149main ()
35150{
35151static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
35152test_array [0] = 0
35153
35154 ;
35155 return 0;
35156}
35157_ACEOF
35158rm -f conftest.$ac_objext
35159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35160 (eval $ac_compile) 2>conftest.er1
35161 ac_status=$?
35162 grep -v '^ *+' conftest.er1 >conftest.err
35163 rm -f conftest.er1
35164 cat conftest.err >&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } &&
35167 { ac_try='test -z "$ac_c_werror_flag"
35168 || test ! -s conftest.err'
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35171 ac_status=$?
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; } &&
35174 { ac_try='test -s conftest.$ac_objext'
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 ac_hi=$ac_mid
35181else
35182 echo "$as_me: failed program was:" >&5
35183sed 's/^/| /' conftest.$ac_ext >&5
35184
35185ac_lo=`expr '(' $ac_mid ')' + 1`
35186fi
35187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35188done
35189case $ac_lo in
35190?*) ac_cv_sizeof_int64_t=$ac_lo;;
35191'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
35192See \`config.log' for more details." >&5
35193echo "$as_me: error: cannot compute sizeof (int64_t), 77
35194See \`config.log' for more details." >&2;}
35195 { (exit 1); exit 1; }; } ;;
35196esac
35197else
35198 if test "$cross_compiling" = yes; then
35199 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35200See \`config.log' for more details." >&5
35201echo "$as_me: error: cannot run test program while cross compiling
35202See \`config.log' for more details." >&2;}
35203 { (exit 1); exit 1; }; }
35204else
35205 cat >conftest.$ac_ext <<_ACEOF
35206/* confdefs.h. */
35207_ACEOF
35208cat confdefs.h >>conftest.$ac_ext
35209cat >>conftest.$ac_ext <<_ACEOF
35210/* end confdefs.h. */
35211
35212#include <stdio.h>
35213
35214/* What a mess.. many systems have added the (now standard) bit types
35215 * in their own ways, so we need to scan a wide variety of headers to
35216 * find them..
35217 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35218 */
35219#if HAVE_SYS_TYPES_H
35220#include <sys/types.h>
35221#endif
35222#if STDC_HEADERS
35223#include <stdlib.h>
35224#include <stddef.h>
35225#endif
35226#if HAVE_INTTYPES_H
35227#include <inttypes.h>
35228#endif
35229#if HAVE_SYS_BITYPES_H
35230#include <sys/bitypes.h>
35231#endif
35232#if HAVE_SYS_SELECT_H
35233#include <sys/select.h>
35234#endif
35235
35236
35237
35238long longval () { return (long) (sizeof (int64_t)); }
35239unsigned long ulongval () { return (long) (sizeof (int64_t)); }
35240#include <stdio.h>
35241#include <stdlib.h>
35242int
35243main ()
35244{
35245
35246 FILE *f = fopen ("conftest.val", "w");
35247 if (! f)
35248 exit (1);
35249 if (((long) (sizeof (int64_t))) < 0)
35250 {
35251 long i = longval ();
35252 if (i != ((long) (sizeof (int64_t))))
35253 exit (1);
35254 fprintf (f, "%ld\n", i);
35255 }
35256 else
35257 {
35258 unsigned long i = ulongval ();
35259 if (i != ((long) (sizeof (int64_t))))
35260 exit (1);
35261 fprintf (f, "%lu\n", i);
35262 }
35263 exit (ferror (f) || fclose (f) != 0);
35264
35265 ;
35266 return 0;
35267}
35268_ACEOF
35269rm -f conftest$ac_exeext
35270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35271 (eval $ac_link) 2>&5
35272 ac_status=$?
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276 (eval $ac_try) 2>&5
35277 ac_status=$?
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); }; }; then
35280 ac_cv_sizeof_int64_t=`cat conftest.val`
35281else
35282 echo "$as_me: program exited with status $ac_status" >&5
35283echo "$as_me: failed program was:" >&5
35284sed 's/^/| /' conftest.$ac_ext >&5
35285
35286( exit $ac_status )
35287{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
35288See \`config.log' for more details." >&5
35289echo "$as_me: error: cannot compute sizeof (int64_t), 77
35290See \`config.log' for more details." >&2;}
35291 { (exit 1); exit 1; }; }
35292fi
35293rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35294fi
35295fi
35296rm -f conftest.val
35297else
35298 ac_cv_sizeof_int64_t=0
35299fi
35300fi
35301echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
35302echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
35303cat >>confdefs.h <<_ACEOF
35304#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
35305_ACEOF
35306
35307
35308
35309cat >>confdefs.h <<\_ACEOF
35310#define HAVE_INT64_T 1
35311_ACEOF
35312
35313
35314fi
35315
35316
35317echo "$as_me:$LINENO: checking for __int64" >&5
35318echo $ECHO_N "checking for __int64... $ECHO_C" >&6
35319if test "${ac_cv_type___int64+set}" = set; then
35320 echo $ECHO_N "(cached) $ECHO_C" >&6
35321else
35322 cat >conftest.$ac_ext <<_ACEOF
35323/* confdefs.h. */
35324_ACEOF
35325cat confdefs.h >>conftest.$ac_ext
35326cat >>conftest.$ac_ext <<_ACEOF
35327/* end confdefs.h. */
35328
35329/* What a mess.. many systems have added the (now standard) bit types
35330 * in their own ways, so we need to scan a wide variety of headers to
35331 * find them..
35332 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35333 */
35334#if HAVE_SYS_TYPES_H
35335#include <sys/types.h>
35336#endif
35337#if STDC_HEADERS
35338#include <stdlib.h>
35339#include <stddef.h>
35340#endif
35341#if HAVE_INTTYPES_H
35342#include <inttypes.h>
35343#endif
35344#if HAVE_SYS_BITYPES_H
35345#include <sys/bitypes.h>
35346#endif
35347#if HAVE_SYS_SELECT_H
35348#include <sys/select.h>
35349#endif
35350
35351
35352int
35353main ()
35354{
35355if ((__int64 *) 0)
35356 return 0;
35357if (sizeof (__int64))
35358 return 0;
35359 ;
35360 return 0;
35361}
35362_ACEOF
35363rm -f conftest.$ac_objext
35364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35365 (eval $ac_compile) 2>conftest.er1
35366 ac_status=$?
35367 grep -v '^ *+' conftest.er1 >conftest.err
35368 rm -f conftest.er1
35369 cat conftest.err >&5
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); } &&
35372 { ac_try='test -z "$ac_c_werror_flag"
35373 || test ! -s conftest.err'
35374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35375 (eval $ac_try) 2>&5
35376 ac_status=$?
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); }; } &&
35379 { ac_try='test -s conftest.$ac_objext'
35380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381 (eval $ac_try) 2>&5
35382 ac_status=$?
35383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384 (exit $ac_status); }; }; then
35385 ac_cv_type___int64=yes
35386else
35387 echo "$as_me: failed program was:" >&5
35388sed 's/^/| /' conftest.$ac_ext >&5
35389
35390ac_cv_type___int64=no
35391fi
35392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35393fi
35394echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
35395echo "${ECHO_T}$ac_cv_type___int64" >&6
35396if test $ac_cv_type___int64 = yes; then
35397
35398 echo "$as_me:$LINENO: checking for __int64" >&5
35399echo $ECHO_N "checking for __int64... $ECHO_C" >&6
35400if test "${ac_cv_type___int64+set}" = set; then
35401 echo $ECHO_N "(cached) $ECHO_C" >&6
35402else
35403 cat >conftest.$ac_ext <<_ACEOF
35404/* confdefs.h. */
35405_ACEOF
35406cat confdefs.h >>conftest.$ac_ext
35407cat >>conftest.$ac_ext <<_ACEOF
35408/* end confdefs.h. */
35409
35410#include <stdio.h>
35411
35412/* What a mess.. many systems have added the (now standard) bit types
35413 * in their own ways, so we need to scan a wide variety of headers to
35414 * find them..
35415 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35416 */
35417#if HAVE_SYS_TYPES_H
35418#include <sys/types.h>
35419#endif
35420#if STDC_HEADERS
35421#include <stdlib.h>
35422#include <stddef.h>
35423#endif
35424#if HAVE_INTTYPES_H
35425#include <inttypes.h>
35426#endif
35427#if HAVE_SYS_BITYPES_H
35428#include <sys/bitypes.h>
35429#endif
35430#if HAVE_SYS_SELECT_H
35431#include <sys/select.h>
35432#endif
35433
35434
35435
35436int
35437main ()
35438{
35439if ((__int64 *) 0)
35440 return 0;
35441if (sizeof (__int64))
35442 return 0;
35443 ;
35444 return 0;
35445}
35446_ACEOF
35447rm -f conftest.$ac_objext
35448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35449 (eval $ac_compile) 2>conftest.er1
35450 ac_status=$?
35451 grep -v '^ *+' conftest.er1 >conftest.err
35452 rm -f conftest.er1
35453 cat conftest.err >&5
35454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455 (exit $ac_status); } &&
35456 { ac_try='test -z "$ac_c_werror_flag"
35457 || test ! -s conftest.err'
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; } &&
35463 { ac_try='test -s conftest.$ac_objext'
35464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35465 (eval $ac_try) 2>&5
35466 ac_status=$?
35467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); }; }; then
35469 ac_cv_type___int64=yes
35470else
35471 echo "$as_me: failed program was:" >&5
35472sed 's/^/| /' conftest.$ac_ext >&5
35473
35474ac_cv_type___int64=no
35475fi
35476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35477fi
35478echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
35479echo "${ECHO_T}$ac_cv_type___int64" >&6
35480
35481echo "$as_me:$LINENO: checking size of __int64" >&5
35482echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
35483if test "${ac_cv_sizeof___int64+set}" = set; then
35484 echo $ECHO_N "(cached) $ECHO_C" >&6
35485else
35486 if test "$ac_cv_type___int64" = yes; then
35487 # The cast to unsigned long works around a bug in the HP C Compiler
35488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35490 # This bug is HP SR number 8606223364.
35491 if test "$cross_compiling" = yes; then
35492 # Depending upon the size, compute the lo and hi bounds.
35493cat >conftest.$ac_ext <<_ACEOF
35494/* confdefs.h. */
35495_ACEOF
35496cat confdefs.h >>conftest.$ac_ext
35497cat >>conftest.$ac_ext <<_ACEOF
35498/* end confdefs.h. */
35499
35500#include <stdio.h>
35501
35502/* What a mess.. many systems have added the (now standard) bit types
35503 * in their own ways, so we need to scan a wide variety of headers to
35504 * find them..
35505 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35506 */
35507#if HAVE_SYS_TYPES_H
35508#include <sys/types.h>
35509#endif
35510#if STDC_HEADERS
35511#include <stdlib.h>
35512#include <stddef.h>
35513#endif
35514#if HAVE_INTTYPES_H
35515#include <inttypes.h>
35516#endif
35517#if HAVE_SYS_BITYPES_H
35518#include <sys/bitypes.h>
35519#endif
35520#if HAVE_SYS_SELECT_H
35521#include <sys/select.h>
35522#endif
35523
35524
35525
35526int
35527main ()
35528{
35529static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
35530test_array [0] = 0
35531
35532 ;
35533 return 0;
35534}
35535_ACEOF
35536rm -f conftest.$ac_objext
35537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35538 (eval $ac_compile) 2>conftest.er1
35539 ac_status=$?
35540 grep -v '^ *+' conftest.er1 >conftest.err
35541 rm -f conftest.er1
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
35545 { ac_try='test -z "$ac_c_werror_flag"
35546 || test ! -s conftest.err'
35547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548 (eval $ac_try) 2>&5
35549 ac_status=$?
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); }; } &&
35552 { ac_try='test -s conftest.$ac_objext'
35553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35554 (eval $ac_try) 2>&5
35555 ac_status=$?
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); }; }; then
35558 ac_lo=0 ac_mid=0
35559 while :; do
35560 cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h. */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h. */
35566
35567#include <stdio.h>
35568
35569/* What a mess.. many systems have added the (now standard) bit types
35570 * in their own ways, so we need to scan a wide variety of headers to
35571 * find them..
35572 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35573 */
35574#if HAVE_SYS_TYPES_H
35575#include <sys/types.h>
35576#endif
35577#if STDC_HEADERS
35578#include <stdlib.h>
35579#include <stddef.h>
35580#endif
35581#if HAVE_INTTYPES_H
35582#include <inttypes.h>
35583#endif
35584#if HAVE_SYS_BITYPES_H
35585#include <sys/bitypes.h>
35586#endif
35587#if HAVE_SYS_SELECT_H
35588#include <sys/select.h>
35589#endif
35590
35591
35592
35593int
35594main ()
35595{
35596static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
35597test_array [0] = 0
35598
35599 ;
35600 return 0;
35601}
35602_ACEOF
35603rm -f conftest.$ac_objext
35604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605 (eval $ac_compile) 2>conftest.er1
35606 ac_status=$?
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
35612 { ac_try='test -z "$ac_c_werror_flag"
35613 || test ! -s conftest.err'
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35616 ac_status=$?
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; } &&
35619 { ac_try='test -s conftest.$ac_objext'
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35622 ac_status=$?
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 ac_hi=$ac_mid; break
35626else
35627 echo "$as_me: failed program was:" >&5
35628sed 's/^/| /' conftest.$ac_ext >&5
35629
35630ac_lo=`expr $ac_mid + 1`
35631 if test $ac_lo -le $ac_mid; then
35632 ac_lo= ac_hi=
35633 break
35634 fi
35635 ac_mid=`expr 2 '*' $ac_mid + 1`
35636fi
35637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35638 done
35639else
35640 echo "$as_me: failed program was:" >&5
35641sed 's/^/| /' conftest.$ac_ext >&5
35642
35643cat >conftest.$ac_ext <<_ACEOF
35644/* confdefs.h. */
35645_ACEOF
35646cat confdefs.h >>conftest.$ac_ext
35647cat >>conftest.$ac_ext <<_ACEOF
35648/* end confdefs.h. */
35649
35650#include <stdio.h>
35651
35652/* What a mess.. many systems have added the (now standard) bit types
35653 * in their own ways, so we need to scan a wide variety of headers to
35654 * find them..
35655 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35656 */
35657#if HAVE_SYS_TYPES_H
35658#include <sys/types.h>
35659#endif
35660#if STDC_HEADERS
35661#include <stdlib.h>
35662#include <stddef.h>
35663#endif
35664#if HAVE_INTTYPES_H
35665#include <inttypes.h>
35666#endif
35667#if HAVE_SYS_BITYPES_H
35668#include <sys/bitypes.h>
35669#endif
35670#if HAVE_SYS_SELECT_H
35671#include <sys/select.h>
35672#endif
35673
35674
35675
35676int
35677main ()
35678{
35679static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
35680test_array [0] = 0
35681
35682 ;
35683 return 0;
35684}
35685_ACEOF
35686rm -f conftest.$ac_objext
35687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35688 (eval $ac_compile) 2>conftest.er1
35689 ac_status=$?
35690 grep -v '^ *+' conftest.er1 >conftest.err
35691 rm -f conftest.er1
35692 cat conftest.err >&5
35693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694 (exit $ac_status); } &&
35695 { ac_try='test -z "$ac_c_werror_flag"
35696 || test ! -s conftest.err'
35697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698 (eval $ac_try) 2>&5
35699 ac_status=$?
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); }; } &&
35702 { ac_try='test -s conftest.$ac_objext'
35703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35704 (eval $ac_try) 2>&5
35705 ac_status=$?
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; }; then
35708 ac_hi=-1 ac_mid=-1
35709 while :; do
35710 cat >conftest.$ac_ext <<_ACEOF
35711/* confdefs.h. */
35712_ACEOF
35713cat confdefs.h >>conftest.$ac_ext
35714cat >>conftest.$ac_ext <<_ACEOF
35715/* end confdefs.h. */
35716
35717#include <stdio.h>
35718
35719/* What a mess.. many systems have added the (now standard) bit types
35720 * in their own ways, so we need to scan a wide variety of headers to
35721 * find them..
35722 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35723 */
35724#if HAVE_SYS_TYPES_H
35725#include <sys/types.h>
35726#endif
35727#if STDC_HEADERS
35728#include <stdlib.h>
35729#include <stddef.h>
35730#endif
35731#if HAVE_INTTYPES_H
35732#include <inttypes.h>
35733#endif
35734#if HAVE_SYS_BITYPES_H
35735#include <sys/bitypes.h>
35736#endif
35737#if HAVE_SYS_SELECT_H
35738#include <sys/select.h>
35739#endif
35740
35741
35742
35743int
35744main ()
35745{
35746static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
35747test_array [0] = 0
35748
35749 ;
35750 return 0;
35751}
35752_ACEOF
35753rm -f conftest.$ac_objext
35754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35755 (eval $ac_compile) 2>conftest.er1
35756 ac_status=$?
35757 grep -v '^ *+' conftest.er1 >conftest.err
35758 rm -f conftest.er1
35759 cat conftest.err >&5
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); } &&
35762 { ac_try='test -z "$ac_c_werror_flag"
35763 || test ! -s conftest.err'
35764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765 (eval $ac_try) 2>&5
35766 ac_status=$?
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); }; } &&
35769 { ac_try='test -s conftest.$ac_objext'
35770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771 (eval $ac_try) 2>&5
35772 ac_status=$?
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; }; then
35775 ac_lo=$ac_mid; break
35776else
35777 echo "$as_me: failed program was:" >&5
35778sed 's/^/| /' conftest.$ac_ext >&5
35779
35780ac_hi=`expr '(' $ac_mid ')' - 1`
35781 if test $ac_mid -le $ac_hi; then
35782 ac_lo= ac_hi=
35783 break
35784 fi
35785 ac_mid=`expr 2 '*' $ac_mid`
35786fi
35787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35788 done
35789else
35790 echo "$as_me: failed program was:" >&5
35791sed 's/^/| /' conftest.$ac_ext >&5
35792
35793ac_lo= ac_hi=
35794fi
35795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35796fi
35797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35798# Binary search between lo and hi bounds.
35799while test "x$ac_lo" != "x$ac_hi"; do
35800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35801 cat >conftest.$ac_ext <<_ACEOF
35802/* confdefs.h. */
35803_ACEOF
35804cat confdefs.h >>conftest.$ac_ext
35805cat >>conftest.$ac_ext <<_ACEOF
35806/* end confdefs.h. */
35807
35808#include <stdio.h>
35809
35810/* What a mess.. many systems have added the (now standard) bit types
35811 * in their own ways, so we need to scan a wide variety of headers to
35812 * find them..
35813 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35814 */
35815#if HAVE_SYS_TYPES_H
35816#include <sys/types.h>
35817#endif
35818#if STDC_HEADERS
35819#include <stdlib.h>
35820#include <stddef.h>
35821#endif
35822#if HAVE_INTTYPES_H
35823#include <inttypes.h>
35824#endif
35825#if HAVE_SYS_BITYPES_H
35826#include <sys/bitypes.h>
35827#endif
35828#if HAVE_SYS_SELECT_H
35829#include <sys/select.h>
35830#endif
35831
35832
35833
35834int
35835main ()
35836{
35837static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
35838test_array [0] = 0
35839
35840 ;
35841 return 0;
35842}
35843_ACEOF
35844rm -f conftest.$ac_objext
35845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35846 (eval $ac_compile) 2>conftest.er1
35847 ac_status=$?
35848 grep -v '^ *+' conftest.er1 >conftest.err
35849 rm -f conftest.er1
35850 cat conftest.err >&5
35851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35852 (exit $ac_status); } &&
35853 { ac_try='test -z "$ac_c_werror_flag"
35854 || test ! -s conftest.err'
35855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35856 (eval $ac_try) 2>&5
35857 ac_status=$?
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); }; } &&
35860 { ac_try='test -s conftest.$ac_objext'
35861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862 (eval $ac_try) 2>&5
35863 ac_status=$?
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); }; }; then
35866 ac_hi=$ac_mid
35867else
35868 echo "$as_me: failed program was:" >&5
35869sed 's/^/| /' conftest.$ac_ext >&5
35870
35871ac_lo=`expr '(' $ac_mid ')' + 1`
35872fi
35873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35874done
35875case $ac_lo in
35876?*) ac_cv_sizeof___int64=$ac_lo;;
35877'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
35878See \`config.log' for more details." >&5
35879echo "$as_me: error: cannot compute sizeof (__int64), 77
35880See \`config.log' for more details." >&2;}
35881 { (exit 1); exit 1; }; } ;;
35882esac
35883else
35884 if test "$cross_compiling" = yes; then
35885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35886See \`config.log' for more details." >&5
35887echo "$as_me: error: cannot run test program while cross compiling
35888See \`config.log' for more details." >&2;}
35889 { (exit 1); exit 1; }; }
35890else
35891 cat >conftest.$ac_ext <<_ACEOF
35892/* confdefs.h. */
35893_ACEOF
35894cat confdefs.h >>conftest.$ac_ext
35895cat >>conftest.$ac_ext <<_ACEOF
35896/* end confdefs.h. */
35897
35898#include <stdio.h>
35899
35900/* What a mess.. many systems have added the (now standard) bit types
35901 * in their own ways, so we need to scan a wide variety of headers to
35902 * find them..
35903 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35904 */
35905#if HAVE_SYS_TYPES_H
35906#include <sys/types.h>
35907#endif
35908#if STDC_HEADERS
35909#include <stdlib.h>
35910#include <stddef.h>
35911#endif
35912#if HAVE_INTTYPES_H
35913#include <inttypes.h>
35914#endif
35915#if HAVE_SYS_BITYPES_H
35916#include <sys/bitypes.h>
35917#endif
35918#if HAVE_SYS_SELECT_H
35919#include <sys/select.h>
35920#endif
35921
35922
35923
35924long longval () { return (long) (sizeof (__int64)); }
35925unsigned long ulongval () { return (long) (sizeof (__int64)); }
35926#include <stdio.h>
35927#include <stdlib.h>
35928int
35929main ()
35930{
35931
35932 FILE *f = fopen ("conftest.val", "w");
35933 if (! f)
35934 exit (1);
35935 if (((long) (sizeof (__int64))) < 0)
35936 {
35937 long i = longval ();
35938 if (i != ((long) (sizeof (__int64))))
35939 exit (1);
35940 fprintf (f, "%ld\n", i);
35941 }
35942 else
35943 {
35944 unsigned long i = ulongval ();
35945 if (i != ((long) (sizeof (__int64))))
35946 exit (1);
35947 fprintf (f, "%lu\n", i);
35948 }
35949 exit (ferror (f) || fclose (f) != 0);
35950
35951 ;
35952 return 0;
35953}
35954_ACEOF
35955rm -f conftest$ac_exeext
35956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35957 (eval $ac_link) 2>&5
35958 ac_status=$?
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35963 ac_status=$?
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; }; then
35966 ac_cv_sizeof___int64=`cat conftest.val`
35967else
35968 echo "$as_me: program exited with status $ac_status" >&5
35969echo "$as_me: failed program was:" >&5
35970sed 's/^/| /' conftest.$ac_ext >&5
35971
35972( exit $ac_status )
35973{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
35974See \`config.log' for more details." >&5
35975echo "$as_me: error: cannot compute sizeof (__int64), 77
35976See \`config.log' for more details." >&2;}
35977 { (exit 1); exit 1; }; }
35978fi
35979rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35980fi
35981fi
35982rm -f conftest.val
35983else
35984 ac_cv_sizeof___int64=0
35985fi
35986fi
35987echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
35988echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
35989cat >>confdefs.h <<_ACEOF
35990#define SIZEOF___INT64 $ac_cv_sizeof___int64
35991_ACEOF
35992
35993
35994
35995cat >>confdefs.h <<\_ACEOF
35996#define HAVE___INT64 1
35997_ACEOF
35998
35999
36000fi
36001
36002
36003echo "$as_me:$LINENO: checking for long long" >&5
36004echo $ECHO_N "checking for long long... $ECHO_C" >&6
36005if test "${ac_cv_type_long_long+set}" = set; then
36006 echo $ECHO_N "(cached) $ECHO_C" >&6
36007else
36008 cat >conftest.$ac_ext <<_ACEOF
36009/* confdefs.h. */
36010_ACEOF
36011cat confdefs.h >>conftest.$ac_ext
36012cat >>conftest.$ac_ext <<_ACEOF
36013/* end confdefs.h. */
36014
36015/* What a mess.. many systems have added the (now standard) bit types
36016 * in their own ways, so we need to scan a wide variety of headers to
36017 * find them..
36018 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36019 */
36020#if HAVE_SYS_TYPES_H
36021#include <sys/types.h>
36022#endif
36023#if STDC_HEADERS
36024#include <stdlib.h>
36025#include <stddef.h>
36026#endif
36027#if HAVE_INTTYPES_H
36028#include <inttypes.h>
36029#endif
36030#if HAVE_SYS_BITYPES_H
36031#include <sys/bitypes.h>
36032#endif
36033#if HAVE_SYS_SELECT_H
36034#include <sys/select.h>
36035#endif
36036
36037
36038int
36039main ()
36040{
36041if ((long long *) 0)
36042 return 0;
36043if (sizeof (long long))
36044 return 0;
36045 ;
36046 return 0;
36047}
36048_ACEOF
36049rm -f conftest.$ac_objext
36050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36051 (eval $ac_compile) 2>conftest.er1
36052 ac_status=$?
36053 grep -v '^ *+' conftest.er1 >conftest.err
36054 rm -f conftest.er1
36055 cat conftest.err >&5
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } &&
36058 { ac_try='test -z "$ac_c_werror_flag"
36059 || test ! -s conftest.err'
36060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36061 (eval $ac_try) 2>&5
36062 ac_status=$?
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); }; } &&
36065 { ac_try='test -s conftest.$ac_objext'
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; }; then
36071 ac_cv_type_long_long=yes
36072else
36073 echo "$as_me: failed program was:" >&5
36074sed 's/^/| /' conftest.$ac_ext >&5
36075
36076ac_cv_type_long_long=no
36077fi
36078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36079fi
36080echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36081echo "${ECHO_T}$ac_cv_type_long_long" >&6
36082if test $ac_cv_type_long_long = yes; then
36083
36084 echo "$as_me:$LINENO: checking for long long" >&5
36085echo $ECHO_N "checking for long long... $ECHO_C" >&6
36086if test "${ac_cv_type_long_long+set}" = set; then
36087 echo $ECHO_N "(cached) $ECHO_C" >&6
36088else
36089 cat >conftest.$ac_ext <<_ACEOF
36090/* confdefs.h. */
36091_ACEOF
36092cat confdefs.h >>conftest.$ac_ext
36093cat >>conftest.$ac_ext <<_ACEOF
36094/* end confdefs.h. */
36095
36096#include <stdio.h>
36097
36098/* What a mess.. many systems have added the (now standard) bit types
36099 * in their own ways, so we need to scan a wide variety of headers to
36100 * find them..
36101 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36102 */
36103#if HAVE_SYS_TYPES_H
36104#include <sys/types.h>
36105#endif
36106#if STDC_HEADERS
36107#include <stdlib.h>
36108#include <stddef.h>
36109#endif
36110#if HAVE_INTTYPES_H
36111#include <inttypes.h>
36112#endif
36113#if HAVE_SYS_BITYPES_H
36114#include <sys/bitypes.h>
36115#endif
36116#if HAVE_SYS_SELECT_H
36117#include <sys/select.h>
36118#endif
36119
36120
36121
36122int
36123main ()
36124{
36125if ((long long *) 0)
36126 return 0;
36127if (sizeof (long long))
36128 return 0;
36129 ;
36130 return 0;
36131}
36132_ACEOF
36133rm -f conftest.$ac_objext
36134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36135 (eval $ac_compile) 2>conftest.er1
36136 ac_status=$?
36137 grep -v '^ *+' conftest.er1 >conftest.err
36138 rm -f conftest.er1
36139 cat conftest.err >&5
36140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36141 (exit $ac_status); } &&
36142 { ac_try='test -z "$ac_c_werror_flag"
36143 || test ! -s conftest.err'
36144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36145 (eval $ac_try) 2>&5
36146 ac_status=$?
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); }; } &&
36149 { ac_try='test -s conftest.$ac_objext'
36150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36151 (eval $ac_try) 2>&5
36152 ac_status=$?
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); }; }; then
36155 ac_cv_type_long_long=yes
36156else
36157 echo "$as_me: failed program was:" >&5
36158sed 's/^/| /' conftest.$ac_ext >&5
36159
36160ac_cv_type_long_long=no
36161fi
36162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36163fi
36164echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36165echo "${ECHO_T}$ac_cv_type_long_long" >&6
36166
36167echo "$as_me:$LINENO: checking size of long long" >&5
36168echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36169if test "${ac_cv_sizeof_long_long+set}" = set; then
36170 echo $ECHO_N "(cached) $ECHO_C" >&6
36171else
36172 if test "$ac_cv_type_long_long" = yes; then
36173 # The cast to unsigned long works around a bug in the HP C Compiler
36174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36176 # This bug is HP SR number 8606223364.
36177 if test "$cross_compiling" = yes; then
36178 # Depending upon the size, compute the lo and hi bounds.
36179cat >conftest.$ac_ext <<_ACEOF
36180/* confdefs.h. */
36181_ACEOF
36182cat confdefs.h >>conftest.$ac_ext
36183cat >>conftest.$ac_ext <<_ACEOF
36184/* end confdefs.h. */
36185
36186#include <stdio.h>
36187
36188/* What a mess.. many systems have added the (now standard) bit types
36189 * in their own ways, so we need to scan a wide variety of headers to
36190 * find them..
36191 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36192 */
36193#if HAVE_SYS_TYPES_H
36194#include <sys/types.h>
36195#endif
36196#if STDC_HEADERS
36197#include <stdlib.h>
36198#include <stddef.h>
36199#endif
36200#if HAVE_INTTYPES_H
36201#include <inttypes.h>
36202#endif
36203#if HAVE_SYS_BITYPES_H
36204#include <sys/bitypes.h>
36205#endif
36206#if HAVE_SYS_SELECT_H
36207#include <sys/select.h>
36208#endif
36209
36210
36211
36212int
36213main ()
36214{
36215static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36216test_array [0] = 0
36217
36218 ;
36219 return 0;
36220}
36221_ACEOF
36222rm -f conftest.$ac_objext
36223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36224 (eval $ac_compile) 2>conftest.er1
36225 ac_status=$?
36226 grep -v '^ *+' conftest.er1 >conftest.err
36227 rm -f conftest.er1
36228 cat conftest.err >&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } &&
36231 { ac_try='test -z "$ac_c_werror_flag"
36232 || test ! -s conftest.err'
36233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; } &&
36238 { ac_try='test -s conftest.$ac_objext'
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; }; then
36244 ac_lo=0 ac_mid=0
36245 while :; do
36246 cat >conftest.$ac_ext <<_ACEOF
36247/* confdefs.h. */
36248_ACEOF
36249cat confdefs.h >>conftest.$ac_ext
36250cat >>conftest.$ac_ext <<_ACEOF
36251/* end confdefs.h. */
36252
36253#include <stdio.h>
36254
36255/* What a mess.. many systems have added the (now standard) bit types
36256 * in their own ways, so we need to scan a wide variety of headers to
36257 * find them..
36258 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36259 */
36260#if HAVE_SYS_TYPES_H
36261#include <sys/types.h>
36262#endif
36263#if STDC_HEADERS
36264#include <stdlib.h>
36265#include <stddef.h>
36266#endif
36267#if HAVE_INTTYPES_H
36268#include <inttypes.h>
36269#endif
36270#if HAVE_SYS_BITYPES_H
36271#include <sys/bitypes.h>
36272#endif
36273#if HAVE_SYS_SELECT_H
36274#include <sys/select.h>
36275#endif
36276
36277
36278
36279int
36280main ()
36281{
36282static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36283test_array [0] = 0
36284
36285 ;
36286 return 0;
36287}
36288_ACEOF
36289rm -f conftest.$ac_objext
36290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36291 (eval $ac_compile) 2>conftest.er1
36292 ac_status=$?
36293 grep -v '^ *+' conftest.er1 >conftest.err
36294 rm -f conftest.er1
36295 cat conftest.err >&5
36296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297 (exit $ac_status); } &&
36298 { ac_try='test -z "$ac_c_werror_flag"
36299 || test ! -s conftest.err'
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36302 ac_status=$?
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; } &&
36305 { ac_try='test -s conftest.$ac_objext'
36306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36307 (eval $ac_try) 2>&5
36308 ac_status=$?
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); }; }; then
36311 ac_hi=$ac_mid; break
36312else
36313 echo "$as_me: failed program was:" >&5
36314sed 's/^/| /' conftest.$ac_ext >&5
36315
36316ac_lo=`expr $ac_mid + 1`
36317 if test $ac_lo -le $ac_mid; then
36318 ac_lo= ac_hi=
36319 break
36320 fi
36321 ac_mid=`expr 2 '*' $ac_mid + 1`
36322fi
36323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36324 done
36325else
36326 echo "$as_me: failed program was:" >&5
36327sed 's/^/| /' conftest.$ac_ext >&5
36328
36329cat >conftest.$ac_ext <<_ACEOF
36330/* confdefs.h. */
36331_ACEOF
36332cat confdefs.h >>conftest.$ac_ext
36333cat >>conftest.$ac_ext <<_ACEOF
36334/* end confdefs.h. */
36335
36336#include <stdio.h>
36337
36338/* What a mess.. many systems have added the (now standard) bit types
36339 * in their own ways, so we need to scan a wide variety of headers to
36340 * find them..
36341 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36342 */
36343#if HAVE_SYS_TYPES_H
36344#include <sys/types.h>
36345#endif
36346#if STDC_HEADERS
36347#include <stdlib.h>
36348#include <stddef.h>
36349#endif
36350#if HAVE_INTTYPES_H
36351#include <inttypes.h>
36352#endif
36353#if HAVE_SYS_BITYPES_H
36354#include <sys/bitypes.h>
36355#endif
36356#if HAVE_SYS_SELECT_H
36357#include <sys/select.h>
36358#endif
36359
36360
36361
36362int
36363main ()
36364{
36365static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36366test_array [0] = 0
36367
36368 ;
36369 return 0;
36370}
36371_ACEOF
36372rm -f conftest.$ac_objext
36373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36374 (eval $ac_compile) 2>conftest.er1
36375 ac_status=$?
36376 grep -v '^ *+' conftest.er1 >conftest.err
36377 rm -f conftest.er1
36378 cat conftest.err >&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } &&
36381 { ac_try='test -z "$ac_c_werror_flag"
36382 || test ! -s conftest.err'
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } &&
36388 { ac_try='test -s conftest.$ac_objext'
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 ac_hi=-1 ac_mid=-1
36395 while :; do
36396 cat >conftest.$ac_ext <<_ACEOF
36397/* confdefs.h. */
36398_ACEOF
36399cat confdefs.h >>conftest.$ac_ext
36400cat >>conftest.$ac_ext <<_ACEOF
36401/* end confdefs.h. */
36402
36403#include <stdio.h>
36404
36405/* What a mess.. many systems have added the (now standard) bit types
36406 * in their own ways, so we need to scan a wide variety of headers to
36407 * find them..
36408 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36409 */
36410#if HAVE_SYS_TYPES_H
36411#include <sys/types.h>
36412#endif
36413#if STDC_HEADERS
36414#include <stdlib.h>
36415#include <stddef.h>
36416#endif
36417#if HAVE_INTTYPES_H
36418#include <inttypes.h>
36419#endif
36420#if HAVE_SYS_BITYPES_H
36421#include <sys/bitypes.h>
36422#endif
36423#if HAVE_SYS_SELECT_H
36424#include <sys/select.h>
36425#endif
36426
36427
36428
36429int
36430main ()
36431{
36432static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36433test_array [0] = 0
36434
36435 ;
36436 return 0;
36437}
36438_ACEOF
36439rm -f conftest.$ac_objext
36440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36441 (eval $ac_compile) 2>conftest.er1
36442 ac_status=$?
36443 grep -v '^ *+' conftest.er1 >conftest.err
36444 rm -f conftest.er1
36445 cat conftest.err >&5
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); } &&
36448 { ac_try='test -z "$ac_c_werror_flag"
36449 || test ! -s conftest.err'
36450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36451 (eval $ac_try) 2>&5
36452 ac_status=$?
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); }; } &&
36455 { ac_try='test -s conftest.$ac_objext'
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; }; then
36461 ac_lo=$ac_mid; break
36462else
36463 echo "$as_me: failed program was:" >&5
36464sed 's/^/| /' conftest.$ac_ext >&5
36465
36466ac_hi=`expr '(' $ac_mid ')' - 1`
36467 if test $ac_mid -le $ac_hi; then
36468 ac_lo= ac_hi=
36469 break
36470 fi
36471 ac_mid=`expr 2 '*' $ac_mid`
36472fi
36473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36474 done
36475else
36476 echo "$as_me: failed program was:" >&5
36477sed 's/^/| /' conftest.$ac_ext >&5
36478
36479ac_lo= ac_hi=
36480fi
36481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36482fi
36483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36484# Binary search between lo and hi bounds.
36485while test "x$ac_lo" != "x$ac_hi"; do
36486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36487 cat >conftest.$ac_ext <<_ACEOF
36488/* confdefs.h. */
36489_ACEOF
36490cat confdefs.h >>conftest.$ac_ext
36491cat >>conftest.$ac_ext <<_ACEOF
36492/* end confdefs.h. */
36493
36494#include <stdio.h>
36495
36496/* What a mess.. many systems have added the (now standard) bit types
36497 * in their own ways, so we need to scan a wide variety of headers to
36498 * find them..
36499 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36500 */
36501#if HAVE_SYS_TYPES_H
36502#include <sys/types.h>
36503#endif
36504#if STDC_HEADERS
36505#include <stdlib.h>
36506#include <stddef.h>
36507#endif
36508#if HAVE_INTTYPES_H
36509#include <inttypes.h>
36510#endif
36511#if HAVE_SYS_BITYPES_H
36512#include <sys/bitypes.h>
36513#endif
36514#if HAVE_SYS_SELECT_H
36515#include <sys/select.h>
36516#endif
36517
36518
36519
36520int
36521main ()
36522{
36523static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36524test_array [0] = 0
36525
36526 ;
36527 return 0;
36528}
36529_ACEOF
36530rm -f conftest.$ac_objext
36531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36532 (eval $ac_compile) 2>conftest.er1
36533 ac_status=$?
36534 grep -v '^ *+' conftest.er1 >conftest.err
36535 rm -f conftest.er1
36536 cat conftest.err >&5
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); } &&
36539 { ac_try='test -z "$ac_c_werror_flag"
36540 || test ! -s conftest.err'
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } &&
36546 { ac_try='test -s conftest.$ac_objext'
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; }; then
36552 ac_hi=$ac_mid
36553else
36554 echo "$as_me: failed program was:" >&5
36555sed 's/^/| /' conftest.$ac_ext >&5
36556
36557ac_lo=`expr '(' $ac_mid ')' + 1`
36558fi
36559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36560done
36561case $ac_lo in
36562?*) ac_cv_sizeof_long_long=$ac_lo;;
36563'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36564See \`config.log' for more details." >&5
36565echo "$as_me: error: cannot compute sizeof (long long), 77
36566See \`config.log' for more details." >&2;}
36567 { (exit 1); exit 1; }; } ;;
36568esac
36569else
36570 if test "$cross_compiling" = yes; then
36571 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36572See \`config.log' for more details." >&5
36573echo "$as_me: error: cannot run test program while cross compiling
36574See \`config.log' for more details." >&2;}
36575 { (exit 1); exit 1; }; }
36576else
36577 cat >conftest.$ac_ext <<_ACEOF
36578/* confdefs.h. */
36579_ACEOF
36580cat confdefs.h >>conftest.$ac_ext
36581cat >>conftest.$ac_ext <<_ACEOF
36582/* end confdefs.h. */
36583
36584#include <stdio.h>
36585
36586/* What a mess.. many systems have added the (now standard) bit types
36587 * in their own ways, so we need to scan a wide variety of headers to
36588 * find them..
36589 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36590 */
36591#if HAVE_SYS_TYPES_H
36592#include <sys/types.h>
36593#endif
36594#if STDC_HEADERS
36595#include <stdlib.h>
36596#include <stddef.h>
36597#endif
36598#if HAVE_INTTYPES_H
36599#include <inttypes.h>
36600#endif
36601#if HAVE_SYS_BITYPES_H
36602#include <sys/bitypes.h>
36603#endif
36604#if HAVE_SYS_SELECT_H
36605#include <sys/select.h>
36606#endif
36607
36608
36609
36610long longval () { return (long) (sizeof (long long)); }
36611unsigned long ulongval () { return (long) (sizeof (long long)); }
36612#include <stdio.h>
36613#include <stdlib.h>
36614int
36615main ()
36616{
36617
36618 FILE *f = fopen ("conftest.val", "w");
36619 if (! f)
36620 exit (1);
36621 if (((long) (sizeof (long long))) < 0)
36622 {
36623 long i = longval ();
36624 if (i != ((long) (sizeof (long long))))
36625 exit (1);
36626 fprintf (f, "%ld\n", i);
36627 }
36628 else
36629 {
36630 unsigned long i = ulongval ();
36631 if (i != ((long) (sizeof (long long))))
36632 exit (1);
36633 fprintf (f, "%lu\n", i);
36634 }
36635 exit (ferror (f) || fclose (f) != 0);
36636
36637 ;
36638 return 0;
36639}
36640_ACEOF
36641rm -f conftest$ac_exeext
36642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36643 (eval $ac_link) 2>&5
36644 ac_status=$?
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648 (eval $ac_try) 2>&5
36649 ac_status=$?
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; }; then
36652 ac_cv_sizeof_long_long=`cat conftest.val`
36653else
36654 echo "$as_me: program exited with status $ac_status" >&5
36655echo "$as_me: failed program was:" >&5
36656sed 's/^/| /' conftest.$ac_ext >&5
36657
36658( exit $ac_status )
36659{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36660See \`config.log' for more details." >&5
36661echo "$as_me: error: cannot compute sizeof (long long), 77
36662See \`config.log' for more details." >&2;}
36663 { (exit 1); exit 1; }; }
36664fi
36665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36666fi
36667fi
36668rm -f conftest.val
36669else
36670 ac_cv_sizeof_long_long=0
36671fi
36672fi
36673echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36674echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36675cat >>confdefs.h <<_ACEOF
36676#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36677_ACEOF
36678
36679
36680
36681cat >>confdefs.h <<\_ACEOF
36682#define HAVE_LONG_LONG 1
36683_ACEOF
36684
36685
36686fi
36687
36688
36689echo "$as_me:$LINENO: checking for u_int64_t" >&5
36690echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
36691if test "${ac_cv_type_u_int64_t+set}" = set; then
36692 echo $ECHO_N "(cached) $ECHO_C" >&6
36693else
36694 cat >conftest.$ac_ext <<_ACEOF
36695/* confdefs.h. */
36696_ACEOF
36697cat confdefs.h >>conftest.$ac_ext
36698cat >>conftest.$ac_ext <<_ACEOF
36699/* end confdefs.h. */
36700
36701/* What a mess.. many systems have added the (now standard) bit types
36702 * in their own ways, so we need to scan a wide variety of headers to
36703 * find them..
36704 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36705 */
36706#if HAVE_SYS_TYPES_H
36707#include <sys/types.h>
36708#endif
36709#if STDC_HEADERS
36710#include <stdlib.h>
36711#include <stddef.h>
36712#endif
36713#if HAVE_INTTYPES_H
36714#include <inttypes.h>
36715#endif
36716#if HAVE_SYS_BITYPES_H
36717#include <sys/bitypes.h>
36718#endif
36719#if HAVE_SYS_SELECT_H
36720#include <sys/select.h>
36721#endif
36722
36723
36724int
36725main ()
36726{
36727if ((u_int64_t *) 0)
36728 return 0;
36729if (sizeof (u_int64_t))
36730 return 0;
36731 ;
36732 return 0;
36733}
36734_ACEOF
36735rm -f conftest.$ac_objext
36736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36737 (eval $ac_compile) 2>conftest.er1
36738 ac_status=$?
36739 grep -v '^ *+' conftest.er1 >conftest.err
36740 rm -f conftest.er1
36741 cat conftest.err >&5
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); } &&
36744 { ac_try='test -z "$ac_c_werror_flag"
36745 || test ! -s conftest.err'
36746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36747 (eval $ac_try) 2>&5
36748 ac_status=$?
36749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); }; } &&
36751 { ac_try='test -s conftest.$ac_objext'
36752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36753 (eval $ac_try) 2>&5
36754 ac_status=$?
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); }; }; then
36757 ac_cv_type_u_int64_t=yes
36758else
36759 echo "$as_me: failed program was:" >&5
36760sed 's/^/| /' conftest.$ac_ext >&5
36761
36762ac_cv_type_u_int64_t=no
36763fi
36764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36765fi
36766echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
36767echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
36768if test $ac_cv_type_u_int64_t = yes; then
36769
36770 echo "$as_me:$LINENO: checking for u_int64_t" >&5
36771echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
36772if test "${ac_cv_type_u_int64_t+set}" = set; then
36773 echo $ECHO_N "(cached) $ECHO_C" >&6
36774else
36775 cat >conftest.$ac_ext <<_ACEOF
36776/* confdefs.h. */
36777_ACEOF
36778cat confdefs.h >>conftest.$ac_ext
36779cat >>conftest.$ac_ext <<_ACEOF
36780/* end confdefs.h. */
36781
36782#include <stdio.h>
36783
36784/* What a mess.. many systems have added the (now standard) bit types
36785 * in their own ways, so we need to scan a wide variety of headers to
36786 * find them..
36787 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36788 */
36789#if HAVE_SYS_TYPES_H
36790#include <sys/types.h>
36791#endif
36792#if STDC_HEADERS
36793#include <stdlib.h>
36794#include <stddef.h>
36795#endif
36796#if HAVE_INTTYPES_H
36797#include <inttypes.h>
36798#endif
36799#if HAVE_SYS_BITYPES_H
36800#include <sys/bitypes.h>
36801#endif
36802#if HAVE_SYS_SELECT_H
36803#include <sys/select.h>
36804#endif
36805
36806
36807
36808int
36809main ()
36810{
36811if ((u_int64_t *) 0)
36812 return 0;
36813if (sizeof (u_int64_t))
36814 return 0;
36815 ;
36816 return 0;
36817}
36818_ACEOF
36819rm -f conftest.$ac_objext
36820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36821 (eval $ac_compile) 2>conftest.er1
36822 ac_status=$?
36823 grep -v '^ *+' conftest.er1 >conftest.err
36824 rm -f conftest.er1
36825 cat conftest.err >&5
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); } &&
36828 { ac_try='test -z "$ac_c_werror_flag"
36829 || test ! -s conftest.err'
36830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831 (eval $ac_try) 2>&5
36832 ac_status=$?
36833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834 (exit $ac_status); }; } &&
36835 { ac_try='test -s conftest.$ac_objext'
36836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837 (eval $ac_try) 2>&5
36838 ac_status=$?
36839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840 (exit $ac_status); }; }; then
36841 ac_cv_type_u_int64_t=yes
36842else
36843 echo "$as_me: failed program was:" >&5
36844sed 's/^/| /' conftest.$ac_ext >&5
36845
36846ac_cv_type_u_int64_t=no
36847fi
36848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36849fi
36850echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
36851echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
36852
36853echo "$as_me:$LINENO: checking size of u_int64_t" >&5
36854echo $ECHO_N "checking size of u_int64_t... $ECHO_C" >&6
36855if test "${ac_cv_sizeof_u_int64_t+set}" = set; then
36856 echo $ECHO_N "(cached) $ECHO_C" >&6
36857else
36858 if test "$ac_cv_type_u_int64_t" = yes; then
36859 # The cast to unsigned long works around a bug in the HP C Compiler
36860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36862 # This bug is HP SR number 8606223364.
36863 if test "$cross_compiling" = yes; then
36864 # Depending upon the size, compute the lo and hi bounds.
36865cat >conftest.$ac_ext <<_ACEOF
36866/* confdefs.h. */
36867_ACEOF
36868cat confdefs.h >>conftest.$ac_ext
36869cat >>conftest.$ac_ext <<_ACEOF
36870/* end confdefs.h. */
36871
36872#include <stdio.h>
36873
36874/* What a mess.. many systems have added the (now standard) bit types
36875 * in their own ways, so we need to scan a wide variety of headers to
36876 * find them..
36877 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36878 */
36879#if HAVE_SYS_TYPES_H
36880#include <sys/types.h>
36881#endif
36882#if STDC_HEADERS
36883#include <stdlib.h>
36884#include <stddef.h>
36885#endif
36886#if HAVE_INTTYPES_H
36887#include <inttypes.h>
36888#endif
36889#if HAVE_SYS_BITYPES_H
36890#include <sys/bitypes.h>
36891#endif
36892#if HAVE_SYS_SELECT_H
36893#include <sys/select.h>
36894#endif
36895
36896
36897
36898int
36899main ()
36900{
36901static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= 0)];
36902test_array [0] = 0
36903
36904 ;
36905 return 0;
36906}
36907_ACEOF
36908rm -f conftest.$ac_objext
36909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36910 (eval $ac_compile) 2>conftest.er1
36911 ac_status=$?
36912 grep -v '^ *+' conftest.er1 >conftest.err
36913 rm -f conftest.er1
36914 cat conftest.err >&5
36915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916 (exit $ac_status); } &&
36917 { ac_try='test -z "$ac_c_werror_flag"
36918 || test ! -s conftest.err'
36919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920 (eval $ac_try) 2>&5
36921 ac_status=$?
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); }; } &&
36924 { ac_try='test -s conftest.$ac_objext'
36925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36926 (eval $ac_try) 2>&5
36927 ac_status=$?
36928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929 (exit $ac_status); }; }; then
36930 ac_lo=0 ac_mid=0
36931 while :; do
36932 cat >conftest.$ac_ext <<_ACEOF
36933/* confdefs.h. */
36934_ACEOF
36935cat confdefs.h >>conftest.$ac_ext
36936cat >>conftest.$ac_ext <<_ACEOF
36937/* end confdefs.h. */
36938
36939#include <stdio.h>
36940
36941/* What a mess.. many systems have added the (now standard) bit types
36942 * in their own ways, so we need to scan a wide variety of headers to
36943 * find them..
36944 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36945 */
36946#if HAVE_SYS_TYPES_H
36947#include <sys/types.h>
36948#endif
36949#if STDC_HEADERS
36950#include <stdlib.h>
36951#include <stddef.h>
36952#endif
36953#if HAVE_INTTYPES_H
36954#include <inttypes.h>
36955#endif
36956#if HAVE_SYS_BITYPES_H
36957#include <sys/bitypes.h>
36958#endif
36959#if HAVE_SYS_SELECT_H
36960#include <sys/select.h>
36961#endif
36962
33f5f8b9 36963
ca732765 36964
36965int
36966main ()
36967{
36968static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)];
36969test_array [0] = 0
33f5f8b9 36970
36971 ;
36972 return 0;
77d6bd88 36973}
33f5f8b9 36974_ACEOF
ca732765 36975rm -f conftest.$ac_objext
36976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36977 (eval $ac_compile) 2>conftest.er1
33f5f8b9 36978 ac_status=$?
ca732765 36979 grep -v '^ *+' conftest.er1 >conftest.err
36980 rm -f conftest.er1
36981 cat conftest.err >&5
33f5f8b9 36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ca732765 36983 (exit $ac_status); } &&
36984 { ac_try='test -z "$ac_c_werror_flag"
36985 || test ! -s conftest.err'
36986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987 (eval $ac_try) 2>&5
36988 ac_status=$?
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); }; } &&
36991 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36994 ac_status=$?
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; }; then
ca732765 36997 ac_hi=$ac_mid; break
33f5f8b9 36998else
ca732765 36999 echo "$as_me: failed program was:" >&5
ad21602a 37000sed 's/^/| /' conftest.$ac_ext >&5
37001
ca732765 37002ac_lo=`expr $ac_mid + 1`
37003 if test $ac_lo -le $ac_mid; then
37004 ac_lo= ac_hi=
37005 break
37006 fi
37007 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 37008fi
ca732765 37009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37010 done
77d6bd88 37011else
ca732765 37012 echo "$as_me: failed program was:" >&5
37013sed 's/^/| /' conftest.$ac_ext >&5
77d6bd88 37014
ca732765 37015cat >conftest.$ac_ext <<_ACEOF
ad21602a 37016/* confdefs.h. */
37017_ACEOF
37018cat confdefs.h >>conftest.$ac_ext
37019cat >>conftest.$ac_ext <<_ACEOF
37020/* end confdefs.h. */
6a771064 37021
ca732765 37022#include <stdio.h>
37023
33f5f8b9 37024/* What a mess.. many systems have added the (now standard) bit types
37025 * in their own ways, so we need to scan a wide variety of headers to
37026 * find them..
37027 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37028 */
37029#if HAVE_SYS_TYPES_H
37030#include <sys/types.h>
37031#endif
f0902a4b 37032#if STDC_HEADERS
37033#include <stdlib.h>
37034#include <stddef.h>
37035#endif
736ff61a 37036#if HAVE_INTTYPES_H
37037#include <inttypes.h>
6473554b 37038#endif
6a771064 37039#if HAVE_SYS_BITYPES_H
37040#include <sys/bitypes.h>
37041#endif
11e71ab8 37042#if HAVE_SYS_SELECT_H
37043#include <sys/select.h>
37044#endif
33f5f8b9 37045
37046
ca732765 37047
33f5f8b9 37048int
37049main ()
6473554b 37050{
ca732765 37051static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) < 0)];
37052test_array [0] = 0
37053
33f5f8b9 37054 ;
37055 return 0;
6473554b 37056}
33f5f8b9 37057_ACEOF
37058rm -f conftest.$ac_objext
37059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37060 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37061 ac_status=$?
af3004ff 37062 grep -v '^ *+' conftest.er1 >conftest.err
37063 rm -f conftest.er1
37064 cat conftest.err >&5
33f5f8b9 37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); } &&
6263d81f 37067 { ac_try='test -z "$ac_c_werror_flag"
37068 || test ! -s conftest.err'
af3004ff 37069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37070 (eval $ac_try) 2>&5
37071 ac_status=$?
37072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37073 (exit $ac_status); }; } &&
37074 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37076 (eval $ac_try) 2>&5
37077 ac_status=$?
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); }; }; then
ca732765 37080 ac_hi=-1 ac_mid=-1
37081 while :; do
37082 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37083/* confdefs.h. */
37084_ACEOF
37085cat confdefs.h >>conftest.$ac_ext
37086cat >>conftest.$ac_ext <<_ACEOF
37087/* end confdefs.h. */
6a771064 37088
ca732765 37089#include <stdio.h>
37090
33f5f8b9 37091/* What a mess.. many systems have added the (now standard) bit types
37092 * in their own ways, so we need to scan a wide variety of headers to
37093 * find them..
37094 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37095 */
37096#if HAVE_SYS_TYPES_H
37097#include <sys/types.h>
37098#endif
f0902a4b 37099#if STDC_HEADERS
37100#include <stdlib.h>
37101#include <stddef.h>
37102#endif
736ff61a 37103#if HAVE_INTTYPES_H
37104#include <inttypes.h>
6473554b 37105#endif
6a771064 37106#if HAVE_SYS_BITYPES_H
37107#include <sys/bitypes.h>
37108#endif
11e71ab8 37109#if HAVE_SYS_SELECT_H
37110#include <sys/select.h>
37111#endif
33f5f8b9 37112
37113
ca732765 37114
33f5f8b9 37115int
37116main ()
6473554b 37117{
ca732765 37118static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= $ac_mid)];
37119test_array [0] = 0
37120
33f5f8b9 37121 ;
37122 return 0;
6473554b 37123}
33f5f8b9 37124_ACEOF
37125rm -f conftest.$ac_objext
37126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37127 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37128 ac_status=$?
af3004ff 37129 grep -v '^ *+' conftest.er1 >conftest.err
37130 rm -f conftest.er1
37131 cat conftest.err >&5
33f5f8b9 37132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); } &&
6263d81f 37134 { ac_try='test -z "$ac_c_werror_flag"
37135 || test ! -s conftest.err'
af3004ff 37136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137 (eval $ac_try) 2>&5
37138 ac_status=$?
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); }; } &&
37141 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37143 (eval $ac_try) 2>&5
37144 ac_status=$?
37145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146 (exit $ac_status); }; }; then
ca732765 37147 ac_lo=$ac_mid; break
6473554b 37148else
33f5f8b9 37149 echo "$as_me: failed program was:" >&5
ad21602a 37150sed 's/^/| /' conftest.$ac_ext >&5
37151
ca732765 37152ac_hi=`expr '(' $ac_mid ')' - 1`
37153 if test $ac_mid -le $ac_hi; then
37154 ac_lo= ac_hi=
37155 break
37156 fi
37157 ac_mid=`expr 2 '*' $ac_mid`
6473554b 37158fi
af3004ff 37159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ca732765 37160 done
37161else
37162 echo "$as_me: failed program was:" >&5
37163sed 's/^/| /' conftest.$ac_ext >&5
3f961930 37164
ca732765 37165ac_lo= ac_hi=
6473554b 37166fi
ca732765 37167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37168fi
37169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37170# Binary search between lo and hi bounds.
37171while test "x$ac_lo" != "x$ac_hi"; do
37172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33f5f8b9 37173 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37174/* confdefs.h. */
37175_ACEOF
37176cat confdefs.h >>conftest.$ac_ext
37177cat >>conftest.$ac_ext <<_ACEOF
37178/* end confdefs.h. */
6a771064 37179
ca732765 37180#include <stdio.h>
37181
33f5f8b9 37182/* What a mess.. many systems have added the (now standard) bit types
37183 * in their own ways, so we need to scan a wide variety of headers to
37184 * find them..
37185 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37186 */
37187#if HAVE_SYS_TYPES_H
37188#include <sys/types.h>
37189#endif
f0902a4b 37190#if STDC_HEADERS
37191#include <stdlib.h>
37192#include <stddef.h>
37193#endif
736ff61a 37194#if HAVE_INTTYPES_H
37195#include <inttypes.h>
6473554b 37196#endif
6a771064 37197#if HAVE_SYS_BITYPES_H
37198#include <sys/bitypes.h>
37199#endif
11e71ab8 37200#if HAVE_SYS_SELECT_H
37201#include <sys/select.h>
37202#endif
33f5f8b9 37203
37204
ca732765 37205
33f5f8b9 37206int
37207main ()
6473554b 37208{
ca732765 37209static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)];
37210test_array [0] = 0
37211
33f5f8b9 37212 ;
37213 return 0;
6473554b 37214}
33f5f8b9 37215_ACEOF
37216rm -f conftest.$ac_objext
37217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37218 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37219 ac_status=$?
af3004ff 37220 grep -v '^ *+' conftest.er1 >conftest.err
37221 rm -f conftest.er1
37222 cat conftest.err >&5
33f5f8b9 37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); } &&
6263d81f 37225 { ac_try='test -z "$ac_c_werror_flag"
37226 || test ! -s conftest.err'
af3004ff 37227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37228 (eval $ac_try) 2>&5
37229 ac_status=$?
37230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231 (exit $ac_status); }; } &&
37232 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37234 (eval $ac_try) 2>&5
37235 ac_status=$?
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); }; }; then
ca732765 37238 ac_hi=$ac_mid
6473554b 37239else
33f5f8b9 37240 echo "$as_me: failed program was:" >&5
ad21602a 37241sed 's/^/| /' conftest.$ac_ext >&5
37242
ca732765 37243ac_lo=`expr '(' $ac_mid ')' + 1`
6473554b 37244fi
af3004ff 37245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ca732765 37246done
37247case $ac_lo in
37248?*) ac_cv_sizeof_u_int64_t=$ac_lo;;
37249'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77
37250See \`config.log' for more details." >&5
37251echo "$as_me: error: cannot compute sizeof (u_int64_t), 77
37252See \`config.log' for more details." >&2;}
37253 { (exit 1); exit 1; }; } ;;
37254esac
37255else
37256 if test "$cross_compiling" = yes; then
37257 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37258See \`config.log' for more details." >&5
37259echo "$as_me: error: cannot run test program while cross compiling
37260See \`config.log' for more details." >&2;}
37261 { (exit 1); exit 1; }; }
6473554b 37262else
33f5f8b9 37263 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37264/* confdefs.h. */
37265_ACEOF
37266cat confdefs.h >>conftest.$ac_ext
37267cat >>conftest.$ac_ext <<_ACEOF
37268/* end confdefs.h. */
6a771064 37269
ca732765 37270#include <stdio.h>
37271
33f5f8b9 37272/* What a mess.. many systems have added the (now standard) bit types
37273 * in their own ways, so we need to scan a wide variety of headers to
37274 * find them..
37275 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37276 */
37277#if HAVE_SYS_TYPES_H
37278#include <sys/types.h>
37279#endif
f0902a4b 37280#if STDC_HEADERS
37281#include <stdlib.h>
37282#include <stddef.h>
37283#endif
736ff61a 37284#if HAVE_INTTYPES_H
37285#include <inttypes.h>
6473554b 37286#endif
6a771064 37287#if HAVE_SYS_BITYPES_H
37288#include <sys/bitypes.h>
37289#endif
11e71ab8 37290#if HAVE_SYS_SELECT_H
37291#include <sys/select.h>
37292#endif
33f5f8b9 37293
37294
ca732765 37295
37296long longval () { return (long) (sizeof (u_int64_t)); }
37297unsigned long ulongval () { return (long) (sizeof (u_int64_t)); }
37298#include <stdio.h>
37299#include <stdlib.h>
33f5f8b9 37300int
37301main ()
6473554b 37302{
ca732765 37303
37304 FILE *f = fopen ("conftest.val", "w");
37305 if (! f)
37306 exit (1);
37307 if (((long) (sizeof (u_int64_t))) < 0)
37308 {
37309 long i = longval ();
37310 if (i != ((long) (sizeof (u_int64_t))))
37311 exit (1);
37312 fprintf (f, "%ld\n", i);
37313 }
37314 else
37315 {
37316 unsigned long i = ulongval ();
37317 if (i != ((long) (sizeof (u_int64_t))))
37318 exit (1);
37319 fprintf (f, "%lu\n", i);
37320 }
37321 exit (ferror (f) || fclose (f) != 0);
37322
33f5f8b9 37323 ;
37324 return 0;
6473554b 37325}
33f5f8b9 37326_ACEOF
ca732765 37327rm -f conftest$ac_exeext
37328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37329 (eval $ac_link) 2>&5
af3004ff 37330 ac_status=$?
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ca732765 37332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33f5f8b9 37333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334 (eval $ac_try) 2>&5
37335 ac_status=$?
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); }; }; then
ca732765 37338 ac_cv_sizeof_u_int64_t=`cat conftest.val`
37339else
37340 echo "$as_me: program exited with status $ac_status" >&5
37341echo "$as_me: failed program was:" >&5
37342sed 's/^/| /' conftest.$ac_ext >&5
37343
37344( exit $ac_status )
37345{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77
37346See \`config.log' for more details." >&5
37347echo "$as_me: error: cannot compute sizeof (u_int64_t), 77
37348See \`config.log' for more details." >&2;}
37349 { (exit 1); exit 1; }; }
37350fi
37351rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37352fi
37353fi
37354rm -f conftest.val
6473554b 37355else
ca732765 37356 ac_cv_sizeof_u_int64_t=0
6473554b 37357fi
6473554b 37358fi
ca732765 37359echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int64_t" >&5
37360echo "${ECHO_T}$ac_cv_sizeof_u_int64_t" >&6
37361cat >>confdefs.h <<_ACEOF
37362#define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t
37363_ACEOF
37364
37365
33f5f8b9 37366
37367cat >>confdefs.h <<\_ACEOF
ca732765 37368#define HAVE_U_INT64_T 1
33f5f8b9 37369_ACEOF
3f961930 37370
ca732765 37371
6473554b 37372fi
6473554b 37373
37374
ca732765 37375echo "$as_me:$LINENO: checking for uint64_t" >&5
37376echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
37377if test "${ac_cv_type_uint64_t+set}" = set; then
33f5f8b9 37378 echo $ECHO_N "(cached) $ECHO_C" >&6
6473554b 37379else
33f5f8b9 37380 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37381/* confdefs.h. */
37382_ACEOF
37383cat confdefs.h >>conftest.$ac_ext
37384cat >>conftest.$ac_ext <<_ACEOF
37385/* end confdefs.h. */
6a771064 37386
33f5f8b9 37387/* What a mess.. many systems have added the (now standard) bit types
37388 * in their own ways, so we need to scan a wide variety of headers to
37389 * find them..
37390 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37391 */
37392#if HAVE_SYS_TYPES_H
37393#include <sys/types.h>
37394#endif
f0902a4b 37395#if STDC_HEADERS
37396#include <stdlib.h>
37397#include <stddef.h>
37398#endif
736ff61a 37399#if HAVE_INTTYPES_H
37400#include <inttypes.h>
6473554b 37401#endif
33f5f8b9 37402#if HAVE_SYS_BITYPES_H
37403#include <sys/bitypes.h>
37404#endif
11e71ab8 37405#if HAVE_SYS_SELECT_H
37406#include <sys/select.h>
37407#endif
33f5f8b9 37408
37409
33f5f8b9 37410int
37411main ()
37412{
ca732765 37413if ((uint64_t *) 0)
33f5f8b9 37414 return 0;
ca732765 37415if (sizeof (uint64_t))
33f5f8b9 37416 return 0;
37417 ;
37418 return 0;
37419}
37420_ACEOF
37421rm -f conftest.$ac_objext
37422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37423 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37424 ac_status=$?
af3004ff 37425 grep -v '^ *+' conftest.er1 >conftest.err
37426 rm -f conftest.er1
37427 cat conftest.err >&5
33f5f8b9 37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); } &&
6263d81f 37430 { ac_try='test -z "$ac_c_werror_flag"
37431 || test ! -s conftest.err'
af3004ff 37432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37433 (eval $ac_try) 2>&5
37434 ac_status=$?
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); }; } &&
37437 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37440 ac_status=$?
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; }; then
ca732765 37443 ac_cv_type_uint64_t=yes
33f5f8b9 37444else
37445 echo "$as_me: failed program was:" >&5
ad21602a 37446sed 's/^/| /' conftest.$ac_ext >&5
37447
ca732765 37448ac_cv_type_uint64_t=no
33f5f8b9 37449fi
af3004ff 37450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37451fi
ca732765 37452echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
37453echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
37454if test $ac_cv_type_uint64_t = yes; then
33f5f8b9 37455
ca732765 37456 echo "$as_me:$LINENO: checking for uint64_t" >&5
37457echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
37458if test "${ac_cv_type_uint64_t+set}" = set; then
33f5f8b9 37459 echo $ECHO_N "(cached) $ECHO_C" >&6
37460else
37461 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37462/* confdefs.h. */
37463_ACEOF
37464cat confdefs.h >>conftest.$ac_ext
37465cat >>conftest.$ac_ext <<_ACEOF
37466/* end confdefs.h. */
33f5f8b9 37467
a6edf800 37468#include <stdio.h>
37469
33f5f8b9 37470/* What a mess.. many systems have added the (now standard) bit types
37471 * in their own ways, so we need to scan a wide variety of headers to
37472 * find them..
37473 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37474 */
6473554b 37475#if HAVE_SYS_TYPES_H
37476#include <sys/types.h>
37477#endif
33f5f8b9 37478#if STDC_HEADERS
37479#include <stdlib.h>
37480#include <stddef.h>
37481#endif
37482#if HAVE_INTTYPES_H
37483#include <inttypes.h>
37484#endif
6a771064 37485#if HAVE_SYS_BITYPES_H
37486#include <sys/bitypes.h>
37487#endif
11e71ab8 37488#if HAVE_SYS_SELECT_H
37489#include <sys/select.h>
37490#endif
33f5f8b9 37491
37492
a6edf800 37493
33f5f8b9 37494int
37495main ()
6473554b 37496{
ca732765 37497if ((uint64_t *) 0)
33f5f8b9 37498 return 0;
ca732765 37499if (sizeof (uint64_t))
33f5f8b9 37500 return 0;
37501 ;
37502 return 0;
6473554b 37503}
33f5f8b9 37504_ACEOF
37505rm -f conftest.$ac_objext
37506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37507 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37508 ac_status=$?
af3004ff 37509 grep -v '^ *+' conftest.er1 >conftest.err
37510 rm -f conftest.er1
37511 cat conftest.err >&5
33f5f8b9 37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
6263d81f 37514 { ac_try='test -z "$ac_c_werror_flag"
37515 || test ! -s conftest.err'
af3004ff 37516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37517 (eval $ac_try) 2>&5
37518 ac_status=$?
37519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520 (exit $ac_status); }; } &&
37521 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37523 (eval $ac_try) 2>&5
37524 ac_status=$?
37525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526 (exit $ac_status); }; }; then
ca732765 37527 ac_cv_type_uint64_t=yes
33f5f8b9 37528else
37529 echo "$as_me: failed program was:" >&5
ad21602a 37530sed 's/^/| /' conftest.$ac_ext >&5
37531
ca732765 37532ac_cv_type_uint64_t=no
33f5f8b9 37533fi
af3004ff 37534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37535fi
ca732765 37536echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
37537echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
33f5f8b9 37538
ca732765 37539echo "$as_me:$LINENO: checking size of uint64_t" >&5
37540echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
37541if test "${ac_cv_sizeof_uint64_t+set}" = set; then
33f5f8b9 37542 echo $ECHO_N "(cached) $ECHO_C" >&6
37543else
ca732765 37544 if test "$ac_cv_type_uint64_t" = yes; then
33f5f8b9 37545 # The cast to unsigned long works around a bug in the HP C Compiler
37546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37548 # This bug is HP SR number 8606223364.
37549 if test "$cross_compiling" = yes; then
37550 # Depending upon the size, compute the lo and hi bounds.
37551cat >conftest.$ac_ext <<_ACEOF
ad21602a 37552/* confdefs.h. */
37553_ACEOF
37554cat confdefs.h >>conftest.$ac_ext
37555cat >>conftest.$ac_ext <<_ACEOF
37556/* end confdefs.h. */
6a771064 37557
a6edf800 37558#include <stdio.h>
37559
33f5f8b9 37560/* What a mess.. many systems have added the (now standard) bit types
37561 * in their own ways, so we need to scan a wide variety of headers to
37562 * find them..
37563 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37564 */
37565#if HAVE_SYS_TYPES_H
37566#include <sys/types.h>
37567#endif
37568#if STDC_HEADERS
37569#include <stdlib.h>
37570#include <stddef.h>
37571#endif
37572#if HAVE_INTTYPES_H
37573#include <inttypes.h>
37574#endif
37575#if HAVE_SYS_BITYPES_H
37576#include <sys/bitypes.h>
37577#endif
11e71ab8 37578#if HAVE_SYS_SELECT_H
37579#include <sys/select.h>
37580#endif
3f961930 37581
6473554b 37582
a6edf800 37583
33f5f8b9 37584int
37585main ()
37586{
ca732765 37587static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
33f5f8b9 37588test_array [0] = 0
6473554b 37589
33f5f8b9 37590 ;
37591 return 0;
37592}
37593_ACEOF
37594rm -f conftest.$ac_objext
37595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37596 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37597 ac_status=$?
af3004ff 37598 grep -v '^ *+' conftest.er1 >conftest.err
37599 rm -f conftest.er1
37600 cat conftest.err >&5
33f5f8b9 37601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602 (exit $ac_status); } &&
6263d81f 37603 { ac_try='test -z "$ac_c_werror_flag"
37604 || test ! -s conftest.err'
af3004ff 37605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606 (eval $ac_try) 2>&5
37607 ac_status=$?
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); }; } &&
37610 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37612 (eval $ac_try) 2>&5
37613 ac_status=$?
37614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615 (exit $ac_status); }; }; then
37616 ac_lo=0 ac_mid=0
37617 while :; do
37618 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37619/* confdefs.h. */
37620_ACEOF
37621cat confdefs.h >>conftest.$ac_ext
37622cat >>conftest.$ac_ext <<_ACEOF
37623/* end confdefs.h. */
6a771064 37624
a6edf800 37625#include <stdio.h>
37626
33f5f8b9 37627/* What a mess.. many systems have added the (now standard) bit types
37628 * in their own ways, so we need to scan a wide variety of headers to
37629 * find them..
37630 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37631 */
37632#if HAVE_SYS_TYPES_H
37633#include <sys/types.h>
37634#endif
f0902a4b 37635#if STDC_HEADERS
37636#include <stdlib.h>
37637#include <stddef.h>
37638#endif
736ff61a 37639#if HAVE_INTTYPES_H
37640#include <inttypes.h>
6473554b 37641#endif
33f5f8b9 37642#if HAVE_SYS_BITYPES_H
37643#include <sys/bitypes.h>
37644#endif
11e71ab8 37645#if HAVE_SYS_SELECT_H
37646#include <sys/select.h>
37647#endif
33f5f8b9 37648
37649
b67e2c8c 37650
33f5f8b9 37651int
37652main ()
37653{
ca732765 37654static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
33f5f8b9 37655test_array [0] = 0
37656
37657 ;
37658 return 0;
37659}
37660_ACEOF
37661rm -f conftest.$ac_objext
37662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37663 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37664 ac_status=$?
af3004ff 37665 grep -v '^ *+' conftest.er1 >conftest.err
37666 rm -f conftest.er1
37667 cat conftest.err >&5
33f5f8b9 37668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669 (exit $ac_status); } &&
6263d81f 37670 { ac_try='test -z "$ac_c_werror_flag"
37671 || test ! -s conftest.err'
af3004ff 37672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37673 (eval $ac_try) 2>&5
37674 ac_status=$?
37675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676 (exit $ac_status); }; } &&
37677 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37679 (eval $ac_try) 2>&5
37680 ac_status=$?
37681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); }; }; then
37683 ac_hi=$ac_mid; break
37684else
37685 echo "$as_me: failed program was:" >&5
ad21602a 37686sed 's/^/| /' conftest.$ac_ext >&5
37687
33f5f8b9 37688ac_lo=`expr $ac_mid + 1`
af3004ff 37689 if test $ac_lo -le $ac_mid; then
37690 ac_lo= ac_hi=
37691 break
37692 fi
37693 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 37694fi
af3004ff 37695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37696 done
37697else
37698 echo "$as_me: failed program was:" >&5
ad21602a 37699sed 's/^/| /' conftest.$ac_ext >&5
37700
33f5f8b9 37701cat >conftest.$ac_ext <<_ACEOF
ad21602a 37702/* confdefs.h. */
37703_ACEOF
37704cat confdefs.h >>conftest.$ac_ext
37705cat >>conftest.$ac_ext <<_ACEOF
37706/* end confdefs.h. */
33f5f8b9 37707
a6edf800 37708#include <stdio.h>
37709
33f5f8b9 37710/* What a mess.. many systems have added the (now standard) bit types
37711 * in their own ways, so we need to scan a wide variety of headers to
37712 * find them..
37713 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37714 */
6473554b 37715#if HAVE_SYS_TYPES_H
37716#include <sys/types.h>
37717#endif
33f5f8b9 37718#if STDC_HEADERS
37719#include <stdlib.h>
37720#include <stddef.h>
37721#endif
37722#if HAVE_INTTYPES_H
37723#include <inttypes.h>
37724#endif
6a771064 37725#if HAVE_SYS_BITYPES_H
37726#include <sys/bitypes.h>
37727#endif
11e71ab8 37728#if HAVE_SYS_SELECT_H
37729#include <sys/select.h>
37730#endif
33f5f8b9 37731
37732
a6edf800 37733
33f5f8b9 37734int
37735main ()
6473554b 37736{
ca732765 37737static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
33f5f8b9 37738test_array [0] = 0
37739
37740 ;
37741 return 0;
6473554b 37742}
33f5f8b9 37743_ACEOF
37744rm -f conftest.$ac_objext
37745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37746 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37747 ac_status=$?
af3004ff 37748 grep -v '^ *+' conftest.er1 >conftest.err
37749 rm -f conftest.er1
37750 cat conftest.err >&5
33f5f8b9 37751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37752 (exit $ac_status); } &&
6263d81f 37753 { ac_try='test -z "$ac_c_werror_flag"
37754 || test ! -s conftest.err'
af3004ff 37755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37756 (eval $ac_try) 2>&5
37757 ac_status=$?
37758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); }; } &&
37760 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37762 (eval $ac_try) 2>&5
37763 ac_status=$?
37764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765 (exit $ac_status); }; }; then
37766 ac_hi=-1 ac_mid=-1
37767 while :; do
37768 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37769/* confdefs.h. */
37770_ACEOF
37771cat confdefs.h >>conftest.$ac_ext
37772cat >>conftest.$ac_ext <<_ACEOF
37773/* end confdefs.h. */
6a771064 37774
a6edf800 37775#include <stdio.h>
37776
33f5f8b9 37777/* What a mess.. many systems have added the (now standard) bit types
37778 * in their own ways, so we need to scan a wide variety of headers to
37779 * find them..
37780 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37781 */
37782#if HAVE_SYS_TYPES_H
37783#include <sys/types.h>
37784#endif
37785#if STDC_HEADERS
37786#include <stdlib.h>
37787#include <stddef.h>
37788#endif
37789#if HAVE_INTTYPES_H
37790#include <inttypes.h>
37791#endif
37792#if HAVE_SYS_BITYPES_H
37793#include <sys/bitypes.h>
37794#endif
11e71ab8 37795#if HAVE_SYS_SELECT_H
37796#include <sys/select.h>
37797#endif
3f961930 37798
6473554b 37799
a6edf800 37800
33f5f8b9 37801int
37802main ()
37803{
ca732765 37804static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
33f5f8b9 37805test_array [0] = 0
6473554b 37806
33f5f8b9 37807 ;
37808 return 0;
37809}
37810_ACEOF
37811rm -f conftest.$ac_objext
37812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37813 (eval $ac_compile) 2>conftest.er1
f5691f9c 37814 ac_status=$?
af3004ff 37815 grep -v '^ *+' conftest.er1 >conftest.err
37816 rm -f conftest.er1
37817 cat conftest.err >&5
f5691f9c 37818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); } &&
6263d81f 37820 { ac_try='test -z "$ac_c_werror_flag"
37821 || test ! -s conftest.err'
af3004ff 37822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37823 (eval $ac_try) 2>&5
37824 ac_status=$?
37825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826 (exit $ac_status); }; } &&
37827 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37829 (eval $ac_try) 2>&5
37830 ac_status=$?
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); }; }; then
37833 ac_lo=$ac_mid; break
37834else
37835 echo "$as_me: failed program was:" >&5
ad21602a 37836sed 's/^/| /' conftest.$ac_ext >&5
37837
33f5f8b9 37838ac_hi=`expr '(' $ac_mid ')' - 1`
af3004ff 37839 if test $ac_mid -le $ac_hi; then
37840 ac_lo= ac_hi=
37841 break
37842 fi
37843 ac_mid=`expr 2 '*' $ac_mid`
33f5f8b9 37844fi
af3004ff 37845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37846 done
6473554b 37847else
33f5f8b9 37848 echo "$as_me: failed program was:" >&5
ad21602a 37849sed 's/^/| /' conftest.$ac_ext >&5
37850
33f5f8b9 37851ac_lo= ac_hi=
37852fi
af3004ff 37853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37854fi
af3004ff 37855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37856# Binary search between lo and hi bounds.
37857while test "x$ac_lo" != "x$ac_hi"; do
37858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37859 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37860/* confdefs.h. */
37861_ACEOF
37862cat confdefs.h >>conftest.$ac_ext
37863cat >>conftest.$ac_ext <<_ACEOF
37864/* end confdefs.h. */
6a771064 37865
a6edf800 37866#include <stdio.h>
37867
33f5f8b9 37868/* What a mess.. many systems have added the (now standard) bit types
37869 * in their own ways, so we need to scan a wide variety of headers to
37870 * find them..
37871 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37872 */
37873#if HAVE_SYS_TYPES_H
37874#include <sys/types.h>
37875#endif
f0902a4b 37876#if STDC_HEADERS
37877#include <stdlib.h>
37878#include <stddef.h>
37879#endif
736ff61a 37880#if HAVE_INTTYPES_H
37881#include <inttypes.h>
6473554b 37882#endif
6a771064 37883#if HAVE_SYS_BITYPES_H
37884#include <sys/bitypes.h>
37885#endif
11e71ab8 37886#if HAVE_SYS_SELECT_H
37887#include <sys/select.h>
37888#endif
3f961930 37889
6473554b 37890
a6edf800 37891
33f5f8b9 37892int
37893main ()
37894{
ca732765 37895static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
33f5f8b9 37896test_array [0] = 0
6473554b 37897
33f5f8b9 37898 ;
37899 return 0;
37900}
37901_ACEOF
37902rm -f conftest.$ac_objext
37903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 37904 (eval $ac_compile) 2>conftest.er1
33f5f8b9 37905 ac_status=$?
af3004ff 37906 grep -v '^ *+' conftest.er1 >conftest.err
37907 rm -f conftest.er1
37908 cat conftest.err >&5
33f5f8b9 37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); } &&
6263d81f 37911 { ac_try='test -z "$ac_c_werror_flag"
37912 || test ! -s conftest.err'
af3004ff 37913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914 (eval $ac_try) 2>&5
37915 ac_status=$?
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); }; } &&
37918 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 37919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37920 (eval $ac_try) 2>&5
37921 ac_status=$?
37922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); }; }; then
37924 ac_hi=$ac_mid
37925else
37926 echo "$as_me: failed program was:" >&5
ad21602a 37927sed 's/^/| /' conftest.$ac_ext >&5
37928
33f5f8b9 37929ac_lo=`expr '(' $ac_mid ')' + 1`
37930fi
af3004ff 37931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 37932done
37933case $ac_lo in
ca732765 37934?*) ac_cv_sizeof_uint64_t=$ac_lo;;
37935'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
ad21602a 37936See \`config.log' for more details." >&5
ca732765 37937echo "$as_me: error: cannot compute sizeof (uint64_t), 77
ad21602a 37938See \`config.log' for more details." >&2;}
33f5f8b9 37939 { (exit 1); exit 1; }; } ;;
37940esac
6473554b 37941else
37942 if test "$cross_compiling" = yes; then
6263d81f 37943 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37944See \`config.log' for more details." >&5
37945echo "$as_me: error: cannot run test program while cross compiling
37946See \`config.log' for more details." >&2;}
33f5f8b9 37947 { (exit 1); exit 1; }; }
6473554b 37948else
33f5f8b9 37949 cat >conftest.$ac_ext <<_ACEOF
ad21602a 37950/* confdefs.h. */
37951_ACEOF
37952cat confdefs.h >>conftest.$ac_ext
37953cat >>conftest.$ac_ext <<_ACEOF
37954/* end confdefs.h. */
6a771064 37955
a6edf800 37956#include <stdio.h>
37957
33f5f8b9 37958/* What a mess.. many systems have added the (now standard) bit types
37959 * in their own ways, so we need to scan a wide variety of headers to
37960 * find them..
37961 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37962 */
37963#if HAVE_SYS_TYPES_H
37964#include <sys/types.h>
37965#endif
f0902a4b 37966#if STDC_HEADERS
37967#include <stdlib.h>
37968#include <stddef.h>
37969#endif
736ff61a 37970#if HAVE_INTTYPES_H
37971#include <inttypes.h>
6473554b 37972#endif
6a771064 37973#if HAVE_SYS_BITYPES_H
37974#include <sys/bitypes.h>
37975#endif
11e71ab8 37976#if HAVE_SYS_SELECT_H
37977#include <sys/select.h>
37978#endif
33f5f8b9 37979
37980
a6edf800 37981
ca732765 37982long longval () { return (long) (sizeof (uint64_t)); }
37983unsigned long ulongval () { return (long) (sizeof (uint64_t)); }
33f5f8b9 37984#include <stdio.h>
37985#include <stdlib.h>
33f5f8b9 37986int
37987main ()
6473554b 37988{
6a771064 37989
33f5f8b9 37990 FILE *f = fopen ("conftest.val", "w");
37991 if (! f)
37992 exit (1);
ca732765 37993 if (((long) (sizeof (uint64_t))) < 0)
33f5f8b9 37994 {
37995 long i = longval ();
ca732765 37996 if (i != ((long) (sizeof (uint64_t))))
33f5f8b9 37997 exit (1);
37998 fprintf (f, "%ld\n", i);
37999 }
38000 else
38001 {
38002 unsigned long i = ulongval ();
ca732765 38003 if (i != ((long) (sizeof (uint64_t))))
33f5f8b9 38004 exit (1);
38005 fprintf (f, "%lu\n", i);
38006 }
38007 exit (ferror (f) || fclose (f) != 0);
38008
38009 ;
38010 return 0;
38011}
38012_ACEOF
38013rm -f conftest$ac_exeext
38014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38015 (eval $ac_link) 2>&5
38016 ac_status=$?
38017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020 (eval $ac_try) 2>&5
38021 ac_status=$?
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; }; then
ca732765 38024 ac_cv_sizeof_uint64_t=`cat conftest.val`
33f5f8b9 38025else
38026 echo "$as_me: program exited with status $ac_status" >&5
38027echo "$as_me: failed program was:" >&5
ad21602a 38028sed 's/^/| /' conftest.$ac_ext >&5
38029
33f5f8b9 38030( exit $ac_status )
ca732765 38031{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
ad21602a 38032See \`config.log' for more details." >&5
ca732765 38033echo "$as_me: error: cannot compute sizeof (uint64_t), 77
ad21602a 38034See \`config.log' for more details." >&2;}
33f5f8b9 38035 { (exit 1); exit 1; }; }
38036fi
af3004ff 38037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 38038fi
38039fi
38040rm -f conftest.val
6473554b 38041else
ca732765 38042 ac_cv_sizeof_uint64_t=0
6473554b 38043fi
6473554b 38044fi
ca732765 38045echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
38046echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
33f5f8b9 38047cat >>confdefs.h <<_ACEOF
ca732765 38048#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
ad21602a 38049_ACEOF
33f5f8b9 38050
38051
3f961930 38052
33f5f8b9 38053cat >>confdefs.h <<\_ACEOF
38054#define HAVE_UINT64_T 1
38055_ACEOF
6473554b 38056
ca732765 38057
33f5f8b9 38058fi
6473554b 38059
77d6bd88 38060
7b219d0e 38061echo "$as_me:$LINENO: checking for pad128_t" >&5
38062echo $ECHO_N "checking for pad128_t... $ECHO_C" >&6
38063if test "${ac_cv_type_pad128_t+set}" = set; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38065else
38066 cat >conftest.$ac_ext <<_ACEOF
38067/* confdefs.h. */
38068_ACEOF
38069cat confdefs.h >>conftest.$ac_ext
38070cat >>conftest.$ac_ext <<_ACEOF
38071/* end confdefs.h. */
38072
38073/* What a mess.. many systems have added the (now standard) bit types
38074 * in their own ways, so we need to scan a wide variety of headers to
38075 * find them..
38076 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38077 */
38078#if HAVE_SYS_TYPES_H
38079#include <sys/types.h>
38080#endif
38081#if STDC_HEADERS
38082#include <stdlib.h>
38083#include <stddef.h>
38084#endif
38085#if HAVE_INTTYPES_H
38086#include <inttypes.h>
38087#endif
38088#if HAVE_SYS_BITYPES_H
38089#include <sys/bitypes.h>
38090#endif
38091#if HAVE_SYS_SELECT_H
38092#include <sys/select.h>
38093#endif
38094
38095
38096int
38097main ()
38098{
38099if ((pad128_t *) 0)
38100 return 0;
38101if (sizeof (pad128_t))
38102 return 0;
38103 ;
38104 return 0;
38105}
38106_ACEOF
38107rm -f conftest.$ac_objext
38108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38109 (eval $ac_compile) 2>conftest.er1
38110 ac_status=$?
38111 grep -v '^ *+' conftest.er1 >conftest.err
38112 rm -f conftest.er1
38113 cat conftest.err >&5
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); } &&
6263d81f 38116 { ac_try='test -z "$ac_c_werror_flag"
38117 || test ! -s conftest.err'
7b219d0e 38118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38119 (eval $ac_try) 2>&5
38120 ac_status=$?
38121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38122 (exit $ac_status); }; } &&
38123 { ac_try='test -s conftest.$ac_objext'
38124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125 (eval $ac_try) 2>&5
38126 ac_status=$?
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); }; }; then
38129 ac_cv_type_pad128_t=yes
38130else
38131 echo "$as_me: failed program was:" >&5
38132sed 's/^/| /' conftest.$ac_ext >&5
38133
38134ac_cv_type_pad128_t=no
38135fi
38136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38137fi
38138echo "$as_me:$LINENO: result: $ac_cv_type_pad128_t" >&5
38139echo "${ECHO_T}$ac_cv_type_pad128_t" >&6
38140if test $ac_cv_type_pad128_t = yes; then
38141
38142cat >>confdefs.h <<\_ACEOF
38143#define HAVE_PAD128_T 1
38144_ACEOF
38145
38146fi
38147
38148
38149echo "$as_me:$LINENO: checking for upad128_t" >&5
38150echo $ECHO_N "checking for upad128_t... $ECHO_C" >&6
38151if test "${ac_cv_type_upad128_t+set}" = set; then
38152 echo $ECHO_N "(cached) $ECHO_C" >&6
38153else
38154 cat >conftest.$ac_ext <<_ACEOF
38155/* confdefs.h. */
38156_ACEOF
38157cat confdefs.h >>conftest.$ac_ext
38158cat >>conftest.$ac_ext <<_ACEOF
38159/* end confdefs.h. */
38160
38161/* What a mess.. many systems have added the (now standard) bit types
38162 * in their own ways, so we need to scan a wide variety of headers to
38163 * find them..
38164 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38165 */
38166#if HAVE_SYS_TYPES_H
38167#include <sys/types.h>
38168#endif
38169#if STDC_HEADERS
38170#include <stdlib.h>
38171#include <stddef.h>
38172#endif
38173#if HAVE_INTTYPES_H
38174#include <inttypes.h>
38175#endif
38176#if HAVE_SYS_BITYPES_H
38177#include <sys/bitypes.h>
38178#endif
38179#if HAVE_SYS_SELECT_H
38180#include <sys/select.h>
38181#endif
38182
38183
38184int
38185main ()
38186{
38187if ((upad128_t *) 0)
38188 return 0;
38189if (sizeof (upad128_t))
38190 return 0;
38191 ;
38192 return 0;
38193}
38194_ACEOF
38195rm -f conftest.$ac_objext
38196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38197 (eval $ac_compile) 2>conftest.er1
38198 ac_status=$?
38199 grep -v '^ *+' conftest.er1 >conftest.err
38200 rm -f conftest.er1
38201 cat conftest.err >&5
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); } &&
6263d81f 38204 { ac_try='test -z "$ac_c_werror_flag"
38205 || test ! -s conftest.err'
7b219d0e 38206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38207 (eval $ac_try) 2>&5
38208 ac_status=$?
38209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38210 (exit $ac_status); }; } &&
38211 { ac_try='test -s conftest.$ac_objext'
38212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38213 (eval $ac_try) 2>&5
38214 ac_status=$?
38215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); }; }; then
38217 ac_cv_type_upad128_t=yes
38218else
38219 echo "$as_me: failed program was:" >&5
38220sed 's/^/| /' conftest.$ac_ext >&5
38221
38222ac_cv_type_upad128_t=no
38223fi
38224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38225fi
38226echo "$as_me:$LINENO: result: $ac_cv_type_upad128_t" >&5
38227echo "${ECHO_T}$ac_cv_type_upad128_t" >&6
38228if test $ac_cv_type_upad128_t = yes; then
38229
38230cat >>confdefs.h <<\_ACEOF
38231#define HAVE_UPAD128_T 1
38232_ACEOF
38233
38234fi
38235
38236
33f5f8b9 38237echo "$as_me:$LINENO: checking for pid_t" >&5
38238echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38239if test "${ac_cv_type_pid_t+set}" = set; then
38240 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 38241else
33f5f8b9 38242 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38243/* confdefs.h. */
38244_ACEOF
38245cat confdefs.h >>conftest.$ac_ext
38246cat >>conftest.$ac_ext <<_ACEOF
38247/* end confdefs.h. */
6a771064 38248
38249/* What a mess.. many systems have added the (now standard) bit types
38250 * in their own ways, so we need to scan a wide variety of headers to
38251 * find them..
33f5f8b9 38252 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38253 */
33f5f8b9 38254#if HAVE_SYS_TYPES_H
77d6bd88 38255#include <sys/types.h>
33f5f8b9 38256#endif
77d6bd88 38257#if STDC_HEADERS
38258#include <stdlib.h>
38259#include <stddef.h>
38260#endif
f0902a4b 38261#if HAVE_INTTYPES_H
38262#include <inttypes.h>
38263#endif
6a771064 38264#if HAVE_SYS_BITYPES_H
38265#include <sys/bitypes.h>
38266#endif
11e71ab8 38267#if HAVE_SYS_SELECT_H
38268#include <sys/select.h>
38269#endif
6a771064 38270
33f5f8b9 38271
33f5f8b9 38272int
38273main ()
38274{
38275if ((pid_t *) 0)
38276 return 0;
38277if (sizeof (pid_t))
38278 return 0;
38279 ;
38280 return 0;
38281}
38282_ACEOF
38283rm -f conftest.$ac_objext
38284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38285 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38286 ac_status=$?
af3004ff 38287 grep -v '^ *+' conftest.er1 >conftest.err
38288 rm -f conftest.er1
38289 cat conftest.err >&5
33f5f8b9 38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); } &&
6263d81f 38292 { ac_try='test -z "$ac_c_werror_flag"
38293 || test ! -s conftest.err'
af3004ff 38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
38296 ac_status=$?
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; } &&
38299 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301 (eval $ac_try) 2>&5
38302 ac_status=$?
38303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304 (exit $ac_status); }; }; then
38305 ac_cv_type_pid_t=yes
77d6bd88 38306else
33f5f8b9 38307 echo "$as_me: failed program was:" >&5
ad21602a 38308sed 's/^/| /' conftest.$ac_ext >&5
38309
33f5f8b9 38310ac_cv_type_pid_t=no
77d6bd88 38311fi
af3004ff 38312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 38313fi
33f5f8b9 38314echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38315echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38316if test $ac_cv_type_pid_t = yes; then
38317
38318cat >>confdefs.h <<\_ACEOF
38319#define HAVE_PID_T 1
38320_ACEOF
77d6bd88 38321
38322fi
38323
33f5f8b9 38324echo "$as_me:$LINENO: checking for size_t" >&5
38325echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38326if test "${ac_cv_type_size_t+set}" = set; then
38327 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 38328else
33f5f8b9 38329 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38330/* confdefs.h. */
38331_ACEOF
38332cat confdefs.h >>conftest.$ac_ext
38333cat >>conftest.$ac_ext <<_ACEOF
38334/* end confdefs.h. */
6a771064 38335
38336/* What a mess.. many systems have added the (now standard) bit types
38337 * in their own ways, so we need to scan a wide variety of headers to
38338 * find them..
33f5f8b9 38339 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38340 */
33f5f8b9 38341#if HAVE_SYS_TYPES_H
77d6bd88 38342#include <sys/types.h>
33f5f8b9 38343#endif
77d6bd88 38344#if STDC_HEADERS
38345#include <stdlib.h>
38346#include <stddef.h>
38347#endif
f0902a4b 38348#if HAVE_INTTYPES_H
38349#include <inttypes.h>
38350#endif
6a771064 38351#if HAVE_SYS_BITYPES_H
38352#include <sys/bitypes.h>
38353#endif
11e71ab8 38354#if HAVE_SYS_SELECT_H
38355#include <sys/select.h>
38356#endif
6a771064 38357
77d6bd88 38358
33f5f8b9 38359int
38360main ()
38361{
38362if ((size_t *) 0)
38363 return 0;
38364if (sizeof (size_t))
38365 return 0;
38366 ;
38367 return 0;
38368}
38369_ACEOF
38370rm -f conftest.$ac_objext
38371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38372 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38373 ac_status=$?
af3004ff 38374 grep -v '^ *+' conftest.er1 >conftest.err
38375 rm -f conftest.er1
38376 cat conftest.err >&5
33f5f8b9 38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); } &&
6263d81f 38379 { ac_try='test -z "$ac_c_werror_flag"
38380 || test ! -s conftest.err'
af3004ff 38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38383 ac_status=$?
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; } &&
38386 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388 (eval $ac_try) 2>&5
38389 ac_status=$?
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); }; }; then
38392 ac_cv_type_size_t=yes
38393else
38394 echo "$as_me: failed program was:" >&5
ad21602a 38395sed 's/^/| /' conftest.$ac_ext >&5
38396
33f5f8b9 38397ac_cv_type_size_t=no
77d6bd88 38398fi
af3004ff 38399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 38400fi
33f5f8b9 38401echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38402echo "${ECHO_T}$ac_cv_type_size_t" >&6
38403if test $ac_cv_type_size_t = yes; then
38404 echo "$as_me:$LINENO: checking for size_t" >&5
38405echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38406if test "${ac_cv_type_size_t+set}" = set; then
38407 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 38408else
33f5f8b9 38409 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38410/* confdefs.h. */
38411_ACEOF
38412cat confdefs.h >>conftest.$ac_ext
38413cat >>conftest.$ac_ext <<_ACEOF
38414/* end confdefs.h. */
6a771064 38415
a6edf800 38416#include <stdio.h>
38417
6a771064 38418/* What a mess.. many systems have added the (now standard) bit types
38419 * in their own ways, so we need to scan a wide variety of headers to
38420 * find them..
33f5f8b9 38421 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38422 */
33f5f8b9 38423#if HAVE_SYS_TYPES_H
77d6bd88 38424#include <sys/types.h>
33f5f8b9 38425#endif
77d6bd88 38426#if STDC_HEADERS
38427#include <stdlib.h>
38428#include <stddef.h>
38429#endif
f0902a4b 38430#if HAVE_INTTYPES_H
38431#include <inttypes.h>
38432#endif
6a771064 38433#if HAVE_SYS_BITYPES_H
38434#include <sys/bitypes.h>
38435#endif
11e71ab8 38436#if HAVE_SYS_SELECT_H
38437#include <sys/select.h>
38438#endif
6a771064 38439
77d6bd88 38440
a6edf800 38441
33f5f8b9 38442int
38443main ()
38444{
38445if ((size_t *) 0)
38446 return 0;
38447if (sizeof (size_t))
38448 return 0;
38449 ;
38450 return 0;
38451}
38452_ACEOF
38453rm -f conftest.$ac_objext
38454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38455 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38456 ac_status=$?
af3004ff 38457 grep -v '^ *+' conftest.er1 >conftest.err
38458 rm -f conftest.er1
38459 cat conftest.err >&5
33f5f8b9 38460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461 (exit $ac_status); } &&
6263d81f 38462 { ac_try='test -z "$ac_c_werror_flag"
38463 || test ! -s conftest.err'
af3004ff 38464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38465 (eval $ac_try) 2>&5
38466 ac_status=$?
38467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468 (exit $ac_status); }; } &&
38469 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38471 (eval $ac_try) 2>&5
38472 ac_status=$?
38473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474 (exit $ac_status); }; }; then
38475 ac_cv_type_size_t=yes
38476else
38477 echo "$as_me: failed program was:" >&5
ad21602a 38478sed 's/^/| /' conftest.$ac_ext >&5
38479
33f5f8b9 38480ac_cv_type_size_t=no
77d6bd88 38481fi
af3004ff 38482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 38483fi
33f5f8b9 38484echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38485echo "${ECHO_T}$ac_cv_type_size_t" >&6
77d6bd88 38486
33f5f8b9 38487echo "$as_me:$LINENO: checking size of size_t" >&5
38488echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
38489if test "${ac_cv_sizeof_size_t+set}" = set; then
38490 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 38491else
33f5f8b9 38492 if test "$ac_cv_type_size_t" = yes; then
38493 # The cast to unsigned long works around a bug in the HP C Compiler
38494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38496 # This bug is HP SR number 8606223364.
38497 if test "$cross_compiling" = yes; then
38498 # Depending upon the size, compute the lo and hi bounds.
38499cat >conftest.$ac_ext <<_ACEOF
ad21602a 38500/* confdefs.h. */
38501_ACEOF
38502cat confdefs.h >>conftest.$ac_ext
38503cat >>conftest.$ac_ext <<_ACEOF
38504/* end confdefs.h. */
6a771064 38505
a6edf800 38506#include <stdio.h>
38507
6a771064 38508/* What a mess.. many systems have added the (now standard) bit types
38509 * in their own ways, so we need to scan a wide variety of headers to
38510 * find them..
33f5f8b9 38511 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38512 */
33f5f8b9 38513#if HAVE_SYS_TYPES_H
77d6bd88 38514#include <sys/types.h>
33f5f8b9 38515#endif
77d6bd88 38516#if STDC_HEADERS
38517#include <stdlib.h>
38518#include <stddef.h>
38519#endif
f0902a4b 38520#if HAVE_INTTYPES_H
38521#include <inttypes.h>
38522#endif
6a771064 38523#if HAVE_SYS_BITYPES_H
38524#include <sys/bitypes.h>
38525#endif
11e71ab8 38526#if HAVE_SYS_SELECT_H
38527#include <sys/select.h>
38528#endif
6a771064 38529
77d6bd88 38530
a6edf800 38531
33f5f8b9 38532int
38533main ()
38534{
38535static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
38536test_array [0] = 0
77d6bd88 38537
33f5f8b9 38538 ;
38539 return 0;
38540}
38541_ACEOF
38542rm -f conftest.$ac_objext
38543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38544 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38545 ac_status=$?
af3004ff 38546 grep -v '^ *+' conftest.er1 >conftest.err
38547 rm -f conftest.er1
38548 cat conftest.err >&5
33f5f8b9 38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); } &&
6263d81f 38551 { ac_try='test -z "$ac_c_werror_flag"
38552 || test ! -s conftest.err'
af3004ff 38553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38554 (eval $ac_try) 2>&5
38555 ac_status=$?
38556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557 (exit $ac_status); }; } &&
38558 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38560 (eval $ac_try) 2>&5
38561 ac_status=$?
38562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563 (exit $ac_status); }; }; then
38564 ac_lo=0 ac_mid=0
38565 while :; do
38566 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38567/* confdefs.h. */
38568_ACEOF
38569cat confdefs.h >>conftest.$ac_ext
38570cat >>conftest.$ac_ext <<_ACEOF
38571/* end confdefs.h. */
6a771064 38572
a6edf800 38573#include <stdio.h>
38574
6a771064 38575/* What a mess.. many systems have added the (now standard) bit types
38576 * in their own ways, so we need to scan a wide variety of headers to
38577 * find them..
33f5f8b9 38578 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38579 */
33f5f8b9 38580#if HAVE_SYS_TYPES_H
77d6bd88 38581#include <sys/types.h>
33f5f8b9 38582#endif
77d6bd88 38583#if STDC_HEADERS
38584#include <stdlib.h>
38585#include <stddef.h>
38586#endif
f0902a4b 38587#if HAVE_INTTYPES_H
38588#include <inttypes.h>
38589#endif
6a771064 38590#if HAVE_SYS_BITYPES_H
38591#include <sys/bitypes.h>
38592#endif
11e71ab8 38593#if HAVE_SYS_SELECT_H
38594#include <sys/select.h>
38595#endif
6a771064 38596
77d6bd88 38597
a6edf800 38598
33f5f8b9 38599int
38600main ()
38601{
38602static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
38603test_array [0] = 0
77d6bd88 38604
33f5f8b9 38605 ;
38606 return 0;
38607}
38608_ACEOF
38609rm -f conftest.$ac_objext
38610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38611 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38612 ac_status=$?
af3004ff 38613 grep -v '^ *+' conftest.er1 >conftest.err
38614 rm -f conftest.er1
38615 cat conftest.err >&5
33f5f8b9 38616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617 (exit $ac_status); } &&
6263d81f 38618 { ac_try='test -z "$ac_c_werror_flag"
38619 || test ! -s conftest.err'
af3004ff 38620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621 (eval $ac_try) 2>&5
38622 ac_status=$?
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); }; } &&
38625 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; }; then
38631 ac_hi=$ac_mid; break
38632else
38633 echo "$as_me: failed program was:" >&5
ad21602a 38634sed 's/^/| /' conftest.$ac_ext >&5
38635
33f5f8b9 38636ac_lo=`expr $ac_mid + 1`
af3004ff 38637 if test $ac_lo -le $ac_mid; then
38638 ac_lo= ac_hi=
38639 break
38640 fi
38641 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 38642fi
af3004ff 38643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 38644 done
77d6bd88 38645else
33f5f8b9 38646 echo "$as_me: failed program was:" >&5
ad21602a 38647sed 's/^/| /' conftest.$ac_ext >&5
38648
33f5f8b9 38649cat >conftest.$ac_ext <<_ACEOF
ad21602a 38650/* confdefs.h. */
38651_ACEOF
38652cat confdefs.h >>conftest.$ac_ext
38653cat >>conftest.$ac_ext <<_ACEOF
38654/* end confdefs.h. */
6a771064 38655
a6edf800 38656#include <stdio.h>
38657
6a771064 38658/* What a mess.. many systems have added the (now standard) bit types
38659 * in their own ways, so we need to scan a wide variety of headers to
38660 * find them..
33f5f8b9 38661 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38662 */
33f5f8b9 38663#if HAVE_SYS_TYPES_H
77d6bd88 38664#include <sys/types.h>
33f5f8b9 38665#endif
77d6bd88 38666#if STDC_HEADERS
38667#include <stdlib.h>
38668#include <stddef.h>
38669#endif
f0902a4b 38670#if HAVE_INTTYPES_H
38671#include <inttypes.h>
38672#endif
6a771064 38673#if HAVE_SYS_BITYPES_H
38674#include <sys/bitypes.h>
38675#endif
11e71ab8 38676#if HAVE_SYS_SELECT_H
38677#include <sys/select.h>
38678#endif
6a771064 38679
77d6bd88 38680
a6edf800 38681
33f5f8b9 38682int
38683main ()
38684{
38685static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
38686test_array [0] = 0
77d6bd88 38687
33f5f8b9 38688 ;
38689 return 0;
38690}
38691_ACEOF
38692rm -f conftest.$ac_objext
38693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38694 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38695 ac_status=$?
af3004ff 38696 grep -v '^ *+' conftest.er1 >conftest.err
38697 rm -f conftest.er1
38698 cat conftest.err >&5
33f5f8b9 38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); } &&
6263d81f 38701 { ac_try='test -z "$ac_c_werror_flag"
38702 || test ! -s conftest.err'
af3004ff 38703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38704 (eval $ac_try) 2>&5
38705 ac_status=$?
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); }; } &&
38708 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38710 (eval $ac_try) 2>&5
38711 ac_status=$?
38712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38713 (exit $ac_status); }; }; then
38714 ac_hi=-1 ac_mid=-1
38715 while :; do
38716 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38717/* confdefs.h. */
38718_ACEOF
38719cat confdefs.h >>conftest.$ac_ext
38720cat >>conftest.$ac_ext <<_ACEOF
38721/* end confdefs.h. */
6a771064 38722
a6edf800 38723#include <stdio.h>
38724
6a771064 38725/* What a mess.. many systems have added the (now standard) bit types
38726 * in their own ways, so we need to scan a wide variety of headers to
38727 * find them..
33f5f8b9 38728 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38729 */
33f5f8b9 38730#if HAVE_SYS_TYPES_H
77d6bd88 38731#include <sys/types.h>
33f5f8b9 38732#endif
77d6bd88 38733#if STDC_HEADERS
38734#include <stdlib.h>
38735#include <stddef.h>
38736#endif
f0902a4b 38737#if HAVE_INTTYPES_H
38738#include <inttypes.h>
38739#endif
6a771064 38740#if HAVE_SYS_BITYPES_H
38741#include <sys/bitypes.h>
38742#endif
11e71ab8 38743#if HAVE_SYS_SELECT_H
38744#include <sys/select.h>
38745#endif
6a771064 38746
77d6bd88 38747
a6edf800 38748
33f5f8b9 38749int
38750main ()
38751{
38752static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
38753test_array [0] = 0
77d6bd88 38754
33f5f8b9 38755 ;
38756 return 0;
38757}
38758_ACEOF
38759rm -f conftest.$ac_objext
38760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38761 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38762 ac_status=$?
af3004ff 38763 grep -v '^ *+' conftest.er1 >conftest.err
38764 rm -f conftest.er1
38765 cat conftest.err >&5
33f5f8b9 38766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767 (exit $ac_status); } &&
6263d81f 38768 { ac_try='test -z "$ac_c_werror_flag"
38769 || test ! -s conftest.err'
af3004ff 38770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38771 (eval $ac_try) 2>&5
38772 ac_status=$?
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); }; } &&
38775 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38777 (eval $ac_try) 2>&5
38778 ac_status=$?
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); }; }; then
38781 ac_lo=$ac_mid; break
38782else
38783 echo "$as_me: failed program was:" >&5
ad21602a 38784sed 's/^/| /' conftest.$ac_ext >&5
38785
33f5f8b9 38786ac_hi=`expr '(' $ac_mid ')' - 1`
af3004ff 38787 if test $ac_mid -le $ac_hi; then
38788 ac_lo= ac_hi=
38789 break
38790 fi
38791 ac_mid=`expr 2 '*' $ac_mid`
33f5f8b9 38792fi
af3004ff 38793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 38794 done
38795else
38796 echo "$as_me: failed program was:" >&5
ad21602a 38797sed 's/^/| /' conftest.$ac_ext >&5
38798
33f5f8b9 38799ac_lo= ac_hi=
77d6bd88 38800fi
af3004ff 38801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 38802fi
af3004ff 38803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 38804# Binary search between lo and hi bounds.
38805while test "x$ac_lo" != "x$ac_hi"; do
38806 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38807 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38808/* confdefs.h. */
38809_ACEOF
38810cat confdefs.h >>conftest.$ac_ext
38811cat >>conftest.$ac_ext <<_ACEOF
38812/* end confdefs.h. */
6a771064 38813
a6edf800 38814#include <stdio.h>
38815
6a771064 38816/* What a mess.. many systems have added the (now standard) bit types
38817 * in their own ways, so we need to scan a wide variety of headers to
38818 * find them..
33f5f8b9 38819 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38820 */
33f5f8b9 38821#if HAVE_SYS_TYPES_H
77d6bd88 38822#include <sys/types.h>
33f5f8b9 38823#endif
77d6bd88 38824#if STDC_HEADERS
38825#include <stdlib.h>
38826#include <stddef.h>
38827#endif
f0902a4b 38828#if HAVE_INTTYPES_H
38829#include <inttypes.h>
38830#endif
6a771064 38831#if HAVE_SYS_BITYPES_H
38832#include <sys/bitypes.h>
38833#endif
11e71ab8 38834#if HAVE_SYS_SELECT_H
38835#include <sys/select.h>
38836#endif
6a771064 38837
77d6bd88 38838
a6edf800 38839
33f5f8b9 38840int
38841main ()
38842{
38843static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
38844test_array [0] = 0
77d6bd88 38845
33f5f8b9 38846 ;
38847 return 0;
38848}
38849_ACEOF
38850rm -f conftest.$ac_objext
38851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 38852 (eval $ac_compile) 2>conftest.er1
33f5f8b9 38853 ac_status=$?
af3004ff 38854 grep -v '^ *+' conftest.er1 >conftest.err
38855 rm -f conftest.er1
38856 cat conftest.err >&5
33f5f8b9 38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); } &&
6263d81f 38859 { ac_try='test -z "$ac_c_werror_flag"
38860 || test ! -s conftest.err'
af3004ff 38861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38862 (eval $ac_try) 2>&5
38863 ac_status=$?
38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865 (exit $ac_status); }; } &&
38866 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 38867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38868 (eval $ac_try) 2>&5
38869 ac_status=$?
38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); }; }; then
38872 ac_hi=$ac_mid
38873else
38874 echo "$as_me: failed program was:" >&5
ad21602a 38875sed 's/^/| /' conftest.$ac_ext >&5
38876
33f5f8b9 38877ac_lo=`expr '(' $ac_mid ')' + 1`
38878fi
af3004ff 38879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 38880done
38881case $ac_lo in
38882?*) ac_cv_sizeof_size_t=$ac_lo;;
ad21602a 38883'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
38884See \`config.log' for more details." >&5
38885echo "$as_me: error: cannot compute sizeof (size_t), 77
38886See \`config.log' for more details." >&2;}
33f5f8b9 38887 { (exit 1); exit 1; }; } ;;
38888esac
38889else
38890 if test "$cross_compiling" = yes; then
6263d81f 38891 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38892See \`config.log' for more details." >&5
38893echo "$as_me: error: cannot run test program while cross compiling
38894See \`config.log' for more details." >&2;}
33f5f8b9 38895 { (exit 1); exit 1; }; }
77d6bd88 38896else
33f5f8b9 38897 cat >conftest.$ac_ext <<_ACEOF
ad21602a 38898/* confdefs.h. */
38899_ACEOF
38900cat confdefs.h >>conftest.$ac_ext
38901cat >>conftest.$ac_ext <<_ACEOF
38902/* end confdefs.h. */
6a771064 38903
a6edf800 38904#include <stdio.h>
38905
6a771064 38906/* What a mess.. many systems have added the (now standard) bit types
38907 * in their own ways, so we need to scan a wide variety of headers to
38908 * find them..
33f5f8b9 38909 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 38910 */
33f5f8b9 38911#if HAVE_SYS_TYPES_H
77d6bd88 38912#include <sys/types.h>
33f5f8b9 38913#endif
77d6bd88 38914#if STDC_HEADERS
38915#include <stdlib.h>
38916#include <stddef.h>
38917#endif
f0902a4b 38918#if HAVE_INTTYPES_H
38919#include <inttypes.h>
38920#endif
6a771064 38921#if HAVE_SYS_BITYPES_H
38922#include <sys/bitypes.h>
38923#endif
11e71ab8 38924#if HAVE_SYS_SELECT_H
38925#include <sys/select.h>
38926#endif
6a771064 38927
33f5f8b9 38928
a6edf800 38929
33f5f8b9 38930long longval () { return (long) (sizeof (size_t)); }
38931unsigned long ulongval () { return (long) (sizeof (size_t)); }
38932#include <stdio.h>
38933#include <stdlib.h>
33f5f8b9 38934int
38935main ()
38936{
38937
38938 FILE *f = fopen ("conftest.val", "w");
38939 if (! f)
38940 exit (1);
38941 if (((long) (sizeof (size_t))) < 0)
38942 {
38943 long i = longval ();
38944 if (i != ((long) (sizeof (size_t))))
38945 exit (1);
38946 fprintf (f, "%ld\n", i);
38947 }
38948 else
38949 {
38950 unsigned long i = ulongval ();
38951 if (i != ((long) (sizeof (size_t))))
38952 exit (1);
38953 fprintf (f, "%lu\n", i);
38954 }
38955 exit (ferror (f) || fclose (f) != 0);
38956
38957 ;
38958 return 0;
38959}
38960_ACEOF
38961rm -f conftest$ac_exeext
38962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38963 (eval $ac_link) 2>&5
38964 ac_status=$?
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38968 (eval $ac_try) 2>&5
38969 ac_status=$?
38970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971 (exit $ac_status); }; }; then
38972 ac_cv_sizeof_size_t=`cat conftest.val`
38973else
38974 echo "$as_me: program exited with status $ac_status" >&5
38975echo "$as_me: failed program was:" >&5
ad21602a 38976sed 's/^/| /' conftest.$ac_ext >&5
38977
33f5f8b9 38978( exit $ac_status )
ad21602a 38979{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
38980See \`config.log' for more details." >&5
38981echo "$as_me: error: cannot compute sizeof (size_t), 77
38982See \`config.log' for more details." >&2;}
33f5f8b9 38983 { (exit 1); exit 1; }; }
38984fi
af3004ff 38985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 38986fi
38987fi
38988rm -f conftest.val
77d6bd88 38989else
33f5f8b9 38990 ac_cv_sizeof_size_t=0
77d6bd88 38991fi
77d6bd88 38992fi
33f5f8b9 38993echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
38994echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
38995cat >>confdefs.h <<_ACEOF
38996#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
38997_ACEOF
38998
38999
39000
39001cat >>confdefs.h <<\_ACEOF
39002#define HAVE_SIZE_T 1
39003_ACEOF
77d6bd88 39004
39005fi
39006
33f5f8b9 39007echo "$as_me:$LINENO: checking for ssize_t" >&5
39008echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39009if test "${ac_cv_type_ssize_t+set}" = set; then
39010 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 39011else
33f5f8b9 39012 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39013/* confdefs.h. */
39014_ACEOF
39015cat confdefs.h >>conftest.$ac_ext
39016cat >>conftest.$ac_ext <<_ACEOF
39017/* end confdefs.h. */
6a771064 39018
39019/* What a mess.. many systems have added the (now standard) bit types
39020 * in their own ways, so we need to scan a wide variety of headers to
39021 * find them..
33f5f8b9 39022 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39023 */
33f5f8b9 39024#if HAVE_SYS_TYPES_H
77d6bd88 39025#include <sys/types.h>
33f5f8b9 39026#endif
77d6bd88 39027#if STDC_HEADERS
39028#include <stdlib.h>
39029#include <stddef.h>
39030#endif
f0902a4b 39031#if HAVE_INTTYPES_H
39032#include <inttypes.h>
39033#endif
6a771064 39034#if HAVE_SYS_BITYPES_H
39035#include <sys/bitypes.h>
39036#endif
11e71ab8 39037#if HAVE_SYS_SELECT_H
39038#include <sys/select.h>
39039#endif
6a771064 39040
33f5f8b9 39041
33f5f8b9 39042int
39043main ()
39044{
39045if ((ssize_t *) 0)
39046 return 0;
39047if (sizeof (ssize_t))
39048 return 0;
39049 ;
39050 return 0;
39051}
39052_ACEOF
39053rm -f conftest.$ac_objext
39054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39055 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39056 ac_status=$?
af3004ff 39057 grep -v '^ *+' conftest.er1 >conftest.err
39058 rm -f conftest.er1
39059 cat conftest.err >&5
33f5f8b9 39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); } &&
6263d81f 39062 { ac_try='test -z "$ac_c_werror_flag"
39063 || test ! -s conftest.err'
af3004ff 39064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39065 (eval $ac_try) 2>&5
39066 ac_status=$?
39067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068 (exit $ac_status); }; } &&
39069 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39071 (eval $ac_try) 2>&5
39072 ac_status=$?
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); }; }; then
39075 ac_cv_type_ssize_t=yes
77d6bd88 39076else
33f5f8b9 39077 echo "$as_me: failed program was:" >&5
ad21602a 39078sed 's/^/| /' conftest.$ac_ext >&5
39079
33f5f8b9 39080ac_cv_type_ssize_t=no
77d6bd88 39081fi
af3004ff 39082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 39083fi
33f5f8b9 39084echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39085echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39086if test $ac_cv_type_ssize_t = yes; then
77d6bd88 39087
33f5f8b9 39088cat >>confdefs.h <<\_ACEOF
39089#define HAVE_SSIZE_T 1
39090_ACEOF
77d6bd88 39091
39092fi
33f5f8b9 39093
39094echo "$as_me:$LINENO: checking for off_t" >&5
39095echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39096if test "${ac_cv_type_off_t+set}" = set; then
39097 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 39098else
33f5f8b9 39099 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39100/* confdefs.h. */
39101_ACEOF
39102cat confdefs.h >>conftest.$ac_ext
39103cat >>conftest.$ac_ext <<_ACEOF
39104/* end confdefs.h. */
6a771064 39105
39106/* What a mess.. many systems have added the (now standard) bit types
39107 * in their own ways, so we need to scan a wide variety of headers to
39108 * find them..
33f5f8b9 39109 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39110 */
33f5f8b9 39111#if HAVE_SYS_TYPES_H
77d6bd88 39112#include <sys/types.h>
33f5f8b9 39113#endif
77d6bd88 39114#if STDC_HEADERS
39115#include <stdlib.h>
39116#include <stddef.h>
39117#endif
f0902a4b 39118#if HAVE_INTTYPES_H
39119#include <inttypes.h>
39120#endif
6a771064 39121#if HAVE_SYS_BITYPES_H
39122#include <sys/bitypes.h>
39123#endif
11e71ab8 39124#if HAVE_SYS_SELECT_H
39125#include <sys/select.h>
39126#endif
6a771064 39127
77d6bd88 39128
33f5f8b9 39129int
39130main ()
39131{
39132if ((off_t *) 0)
39133 return 0;
39134if (sizeof (off_t))
39135 return 0;
39136 ;
39137 return 0;
39138}
39139_ACEOF
39140rm -f conftest.$ac_objext
39141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39142 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39143 ac_status=$?
af3004ff 39144 grep -v '^ *+' conftest.er1 >conftest.err
39145 rm -f conftest.er1
39146 cat conftest.err >&5
33f5f8b9 39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); } &&
6263d81f 39149 { ac_try='test -z "$ac_c_werror_flag"
39150 || test ! -s conftest.err'
af3004ff 39151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39152 (eval $ac_try) 2>&5
39153 ac_status=$?
39154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39155 (exit $ac_status); }; } &&
39156 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39158 (eval $ac_try) 2>&5
39159 ac_status=$?
39160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161 (exit $ac_status); }; }; then
39162 ac_cv_type_off_t=yes
39163else
39164 echo "$as_me: failed program was:" >&5
ad21602a 39165sed 's/^/| /' conftest.$ac_ext >&5
39166
33f5f8b9 39167ac_cv_type_off_t=no
77d6bd88 39168fi
af3004ff 39169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 39170fi
33f5f8b9 39171echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39172echo "${ECHO_T}$ac_cv_type_off_t" >&6
39173if test $ac_cv_type_off_t = yes; then
39174 echo "$as_me:$LINENO: checking for off_t" >&5
39175echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39176if test "${ac_cv_type_off_t+set}" = set; then
39177 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 39178else
33f5f8b9 39179 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39180/* confdefs.h. */
39181_ACEOF
39182cat confdefs.h >>conftest.$ac_ext
39183cat >>conftest.$ac_ext <<_ACEOF
39184/* end confdefs.h. */
6a771064 39185
a6edf800 39186#include <stdio.h>
39187
6a771064 39188/* What a mess.. many systems have added the (now standard) bit types
39189 * in their own ways, so we need to scan a wide variety of headers to
39190 * find them..
33f5f8b9 39191 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39192 */
33f5f8b9 39193#if HAVE_SYS_TYPES_H
77d6bd88 39194#include <sys/types.h>
33f5f8b9 39195#endif
77d6bd88 39196#if STDC_HEADERS
39197#include <stdlib.h>
39198#include <stddef.h>
39199#endif
f0902a4b 39200#if HAVE_INTTYPES_H
39201#include <inttypes.h>
39202#endif
6a771064 39203#if HAVE_SYS_BITYPES_H
39204#include <sys/bitypes.h>
39205#endif
11e71ab8 39206#if HAVE_SYS_SELECT_H
39207#include <sys/select.h>
39208#endif
6a771064 39209
77d6bd88 39210
a6edf800 39211
33f5f8b9 39212int
39213main ()
39214{
39215if ((off_t *) 0)
39216 return 0;
39217if (sizeof (off_t))
39218 return 0;
39219 ;
39220 return 0;
39221}
39222_ACEOF
39223rm -f conftest.$ac_objext
39224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39225 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39226 ac_status=$?
af3004ff 39227 grep -v '^ *+' conftest.er1 >conftest.err
39228 rm -f conftest.er1
39229 cat conftest.err >&5
33f5f8b9 39230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); } &&
6263d81f 39232 { ac_try='test -z "$ac_c_werror_flag"
39233 || test ! -s conftest.err'
af3004ff 39234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39235 (eval $ac_try) 2>&5
39236 ac_status=$?
39237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39238 (exit $ac_status); }; } &&
39239 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39241 (eval $ac_try) 2>&5
39242 ac_status=$?
39243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244 (exit $ac_status); }; }; then
39245 ac_cv_type_off_t=yes
39246else
39247 echo "$as_me: failed program was:" >&5
ad21602a 39248sed 's/^/| /' conftest.$ac_ext >&5
39249
33f5f8b9 39250ac_cv_type_off_t=no
77d6bd88 39251fi
af3004ff 39252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
77d6bd88 39253fi
33f5f8b9 39254echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39255echo "${ECHO_T}$ac_cv_type_off_t" >&6
77d6bd88 39256
33f5f8b9 39257echo "$as_me:$LINENO: checking size of off_t" >&5
39258echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
39259if test "${ac_cv_sizeof_off_t+set}" = set; then
39260 echo $ECHO_N "(cached) $ECHO_C" >&6
77d6bd88 39261else
33f5f8b9 39262 if test "$ac_cv_type_off_t" = yes; then
39263 # The cast to unsigned long works around a bug in the HP C Compiler
39264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39266 # This bug is HP SR number 8606223364.
39267 if test "$cross_compiling" = yes; then
39268 # Depending upon the size, compute the lo and hi bounds.
39269cat >conftest.$ac_ext <<_ACEOF
ad21602a 39270/* confdefs.h. */
39271_ACEOF
39272cat confdefs.h >>conftest.$ac_ext
39273cat >>conftest.$ac_ext <<_ACEOF
39274/* end confdefs.h. */
6a771064 39275
a6edf800 39276#include <stdio.h>
39277
6a771064 39278/* What a mess.. many systems have added the (now standard) bit types
39279 * in their own ways, so we need to scan a wide variety of headers to
39280 * find them..
33f5f8b9 39281 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39282 */
33f5f8b9 39283#if HAVE_SYS_TYPES_H
77d6bd88 39284#include <sys/types.h>
33f5f8b9 39285#endif
77d6bd88 39286#if STDC_HEADERS
39287#include <stdlib.h>
39288#include <stddef.h>
39289#endif
f0902a4b 39290#if HAVE_INTTYPES_H
39291#include <inttypes.h>
39292#endif
6a771064 39293#if HAVE_SYS_BITYPES_H
39294#include <sys/bitypes.h>
39295#endif
11e71ab8 39296#if HAVE_SYS_SELECT_H
39297#include <sys/select.h>
39298#endif
6a771064 39299
77d6bd88 39300
a6edf800 39301
33f5f8b9 39302int
39303main ()
39304{
39305static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
39306test_array [0] = 0
77d6bd88 39307
33f5f8b9 39308 ;
39309 return 0;
39310}
39311_ACEOF
39312rm -f conftest.$ac_objext
39313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39314 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39315 ac_status=$?
af3004ff 39316 grep -v '^ *+' conftest.er1 >conftest.err
39317 rm -f conftest.er1
39318 cat conftest.err >&5
33f5f8b9 39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); } &&
6263d81f 39321 { ac_try='test -z "$ac_c_werror_flag"
39322 || test ! -s conftest.err'
af3004ff 39323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39324 (eval $ac_try) 2>&5
39325 ac_status=$?
39326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327 (exit $ac_status); }; } &&
39328 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330 (eval $ac_try) 2>&5
39331 ac_status=$?
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); }; }; then
39334 ac_lo=0 ac_mid=0
39335 while :; do
39336 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39337/* confdefs.h. */
39338_ACEOF
39339cat confdefs.h >>conftest.$ac_ext
39340cat >>conftest.$ac_ext <<_ACEOF
39341/* end confdefs.h. */
6a771064 39342
a6edf800 39343#include <stdio.h>
39344
6a771064 39345/* What a mess.. many systems have added the (now standard) bit types
39346 * in their own ways, so we need to scan a wide variety of headers to
39347 * find them..
33f5f8b9 39348 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39349 */
33f5f8b9 39350#if HAVE_SYS_TYPES_H
77d6bd88 39351#include <sys/types.h>
33f5f8b9 39352#endif
77d6bd88 39353#if STDC_HEADERS
39354#include <stdlib.h>
39355#include <stddef.h>
39356#endif
f0902a4b 39357#if HAVE_INTTYPES_H
39358#include <inttypes.h>
39359#endif
6a771064 39360#if HAVE_SYS_BITYPES_H
39361#include <sys/bitypes.h>
39362#endif
11e71ab8 39363#if HAVE_SYS_SELECT_H
39364#include <sys/select.h>
39365#endif
6a771064 39366
77d6bd88 39367
a6edf800 39368
33f5f8b9 39369int
39370main ()
39371{
39372static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
39373test_array [0] = 0
77d6bd88 39374
33f5f8b9 39375 ;
39376 return 0;
39377}
39378_ACEOF
39379rm -f conftest.$ac_objext
39380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39381 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39382 ac_status=$?
af3004ff 39383 grep -v '^ *+' conftest.er1 >conftest.err
39384 rm -f conftest.er1
39385 cat conftest.err >&5
33f5f8b9 39386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387 (exit $ac_status); } &&
6263d81f 39388 { ac_try='test -z "$ac_c_werror_flag"
39389 || test ! -s conftest.err'
af3004ff 39390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391 (eval $ac_try) 2>&5
39392 ac_status=$?
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); }; } &&
39395 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397 (eval $ac_try) 2>&5
39398 ac_status=$?
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); }; }; then
39401 ac_hi=$ac_mid; break
39402else
39403 echo "$as_me: failed program was:" >&5
ad21602a 39404sed 's/^/| /' conftest.$ac_ext >&5
39405
33f5f8b9 39406ac_lo=`expr $ac_mid + 1`
af3004ff 39407 if test $ac_lo -le $ac_mid; then
39408 ac_lo= ac_hi=
39409 break
39410 fi
39411 ac_mid=`expr 2 '*' $ac_mid + 1`
33f5f8b9 39412fi
af3004ff 39413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 39414 done
77d6bd88 39415else
33f5f8b9 39416 echo "$as_me: failed program was:" >&5
ad21602a 39417sed 's/^/| /' conftest.$ac_ext >&5
39418
33f5f8b9 39419cat >conftest.$ac_ext <<_ACEOF
ad21602a 39420/* confdefs.h. */
39421_ACEOF
39422cat confdefs.h >>conftest.$ac_ext
39423cat >>conftest.$ac_ext <<_ACEOF
39424/* end confdefs.h. */
6a771064 39425
a6edf800 39426#include <stdio.h>
39427
6a771064 39428/* What a mess.. many systems have added the (now standard) bit types
39429 * in their own ways, so we need to scan a wide variety of headers to
39430 * find them..
33f5f8b9 39431 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39432 */
33f5f8b9 39433#if HAVE_SYS_TYPES_H
77d6bd88 39434#include <sys/types.h>
33f5f8b9 39435#endif
77d6bd88 39436#if STDC_HEADERS
39437#include <stdlib.h>
39438#include <stddef.h>
39439#endif
f0902a4b 39440#if HAVE_INTTYPES_H
39441#include <inttypes.h>
39442#endif
6a771064 39443#if HAVE_SYS_BITYPES_H
39444#include <sys/bitypes.h>
39445#endif
11e71ab8 39446#if HAVE_SYS_SELECT_H
39447#include <sys/select.h>
39448#endif
6a771064 39449
77d6bd88 39450
a6edf800 39451
33f5f8b9 39452int
39453main ()
39454{
39455static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
39456test_array [0] = 0
77d6bd88 39457
33f5f8b9 39458 ;
39459 return 0;
39460}
39461_ACEOF
39462rm -f conftest.$ac_objext
39463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39464 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39465 ac_status=$?
af3004ff 39466 grep -v '^ *+' conftest.er1 >conftest.err
39467 rm -f conftest.er1
39468 cat conftest.err >&5
33f5f8b9 39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); } &&
6263d81f 39471 { ac_try='test -z "$ac_c_werror_flag"
39472 || test ! -s conftest.err'
af3004ff 39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39475 ac_status=$?
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; } &&
39478 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39480 (eval $ac_try) 2>&5
39481 ac_status=$?
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); }; }; then
39484 ac_hi=-1 ac_mid=-1
39485 while :; do
39486 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39487/* confdefs.h. */
39488_ACEOF
39489cat confdefs.h >>conftest.$ac_ext
39490cat >>conftest.$ac_ext <<_ACEOF
39491/* end confdefs.h. */
6a771064 39492
a6edf800 39493#include <stdio.h>
39494
6a771064 39495/* What a mess.. many systems have added the (now standard) bit types
39496 * in their own ways, so we need to scan a wide variety of headers to
39497 * find them..
33f5f8b9 39498 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39499 */
33f5f8b9 39500#if HAVE_SYS_TYPES_H
77d6bd88 39501#include <sys/types.h>
33f5f8b9 39502#endif
77d6bd88 39503#if STDC_HEADERS
39504#include <stdlib.h>
39505#include <stddef.h>
39506#endif
f0902a4b 39507#if HAVE_INTTYPES_H
39508#include <inttypes.h>
39509#endif
6a771064 39510#if HAVE_SYS_BITYPES_H
39511#include <sys/bitypes.h>
39512#endif
11e71ab8 39513#if HAVE_SYS_SELECT_H
39514#include <sys/select.h>
39515#endif
6a771064 39516
77d6bd88 39517
a6edf800 39518
33f5f8b9 39519int
39520main ()
39521{
39522static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
39523test_array [0] = 0
77d6bd88 39524
33f5f8b9 39525 ;
39526 return 0;
39527}
39528_ACEOF
39529rm -f conftest.$ac_objext
39530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39531 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39532 ac_status=$?
af3004ff 39533 grep -v '^ *+' conftest.er1 >conftest.err
39534 rm -f conftest.er1
39535 cat conftest.err >&5
33f5f8b9 39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); } &&
6263d81f 39538 { ac_try='test -z "$ac_c_werror_flag"
39539 || test ! -s conftest.err'
af3004ff 39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39542 ac_status=$?
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39548 ac_status=$?
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39551 ac_lo=$ac_mid; break
39552else
39553 echo "$as_me: failed program was:" >&5
ad21602a 39554sed 's/^/| /' conftest.$ac_ext >&5
39555
33f5f8b9 39556ac_hi=`expr '(' $ac_mid ')' - 1`
af3004ff 39557 if test $ac_mid -le $ac_hi; then
39558 ac_lo= ac_hi=
39559 break
39560 fi
39561 ac_mid=`expr 2 '*' $ac_mid`
33f5f8b9 39562fi
af3004ff 39563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 39564 done
77d6bd88 39565else
33f5f8b9 39566 echo "$as_me: failed program was:" >&5
ad21602a 39567sed 's/^/| /' conftest.$ac_ext >&5
39568
33f5f8b9 39569ac_lo= ac_hi=
39570fi
af3004ff 39571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 39572fi
af3004ff 39573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 39574# Binary search between lo and hi bounds.
39575while test "x$ac_lo" != "x$ac_hi"; do
39576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39577 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39578/* confdefs.h. */
39579_ACEOF
39580cat confdefs.h >>conftest.$ac_ext
39581cat >>conftest.$ac_ext <<_ACEOF
39582/* end confdefs.h. */
6a771064 39583
a6edf800 39584#include <stdio.h>
39585
6a771064 39586/* What a mess.. many systems have added the (now standard) bit types
39587 * in their own ways, so we need to scan a wide variety of headers to
39588 * find them..
33f5f8b9 39589 * IMPORTANT: Keep include/squid_types.h syncronised with this list
6a771064 39590 */
33f5f8b9 39591#if HAVE_SYS_TYPES_H
77d6bd88 39592#include <sys/types.h>
33f5f8b9 39593#endif
77d6bd88 39594#if STDC_HEADERS
39595#include <stdlib.h>
39596#include <stddef.h>
39597#endif
f0902a4b 39598#if HAVE_INTTYPES_H
39599#include <inttypes.h>
39600#endif
6a771064 39601#if HAVE_SYS_BITYPES_H
39602#include <sys/bitypes.h>
39603#endif
11e71ab8 39604#if HAVE_SYS_SELECT_H
39605#include <sys/select.h>
39606#endif
6a771064 39607
77d6bd88 39608
a6edf800 39609
33f5f8b9 39610int
39611main ()
39612{
39613static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
39614test_array [0] = 0
77d6bd88 39615
33f5f8b9 39616 ;
39617 return 0;
39618}
39619_ACEOF
39620rm -f conftest.$ac_objext
39621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39622 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39623 ac_status=$?
af3004ff 39624 grep -v '^ *+' conftest.er1 >conftest.err
39625 rm -f conftest.er1
39626 cat conftest.err >&5
33f5f8b9 39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); } &&
6263d81f 39629 { ac_try='test -z "$ac_c_werror_flag"
39630 || test ! -s conftest.err'
af3004ff 39631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39632 (eval $ac_try) 2>&5
39633 ac_status=$?
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); }; } &&
39636 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638 (eval $ac_try) 2>&5
39639 ac_status=$?
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; }; then
39642 ac_hi=$ac_mid
39643else
39644 echo "$as_me: failed program was:" >&5
ad21602a 39645sed 's/^/| /' conftest.$ac_ext >&5
39646
33f5f8b9 39647ac_lo=`expr '(' $ac_mid ')' + 1`
39648fi
af3004ff 39649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 39650done
39651case $ac_lo in
39652?*) ac_cv_sizeof_off_t=$ac_lo;;
ad21602a 39653'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
39654See \`config.log' for more details." >&5
39655echo "$as_me: error: cannot compute sizeof (off_t), 77
39656See \`config.log' for more details." >&2;}
33f5f8b9 39657 { (exit 1); exit 1; }; } ;;
39658esac
77d6bd88 39659else
33f5f8b9 39660 if test "$cross_compiling" = yes; then
6263d81f 39661 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39662See \`config.log' for more details." >&5
39663echo "$as_me: error: cannot run test program while cross compiling
39664See \`config.log' for more details." >&2;}
33f5f8b9 39665 { (exit 1); exit 1; }; }
77d6bd88 39666else
33f5f8b9 39667 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39668/* confdefs.h. */
39669_ACEOF
39670cat confdefs.h >>conftest.$ac_ext
39671cat >>conftest.$ac_ext <<_ACEOF
39672/* end confdefs.h. */
77d6bd88 39673
a6edf800 39674#include <stdio.h>
39675
33f5f8b9 39676/* What a mess.. many systems have added the (now standard) bit types
39677 * in their own ways, so we need to scan a wide variety of headers to
39678 * find them..
39679 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39680 */
39681#if HAVE_SYS_TYPES_H
3f961930 39682#include <sys/types.h>
77d6bd88 39683#endif
3f961930 39684#if STDC_HEADERS
39685#include <stdlib.h>
39686#include <stddef.h>
77d6bd88 39687#endif
33f5f8b9 39688#if HAVE_INTTYPES_H
39689#include <inttypes.h>
39690#endif
39691#if HAVE_SYS_BITYPES_H
39692#include <sys/bitypes.h>
39693#endif
11e71ab8 39694#if HAVE_SYS_SELECT_H
39695#include <sys/select.h>
39696#endif
3f961930 39697
090089c4 39698
a6edf800 39699
33f5f8b9 39700long longval () { return (long) (sizeof (off_t)); }
39701unsigned long ulongval () { return (long) (sizeof (off_t)); }
39702#include <stdio.h>
3f961930 39703#include <stdlib.h>
33f5f8b9 39704int
39705main ()
39706{
39707
39708 FILE *f = fopen ("conftest.val", "w");
39709 if (! f)
39710 exit (1);
39711 if (((long) (sizeof (off_t))) < 0)
39712 {
39713 long i = longval ();
39714 if (i != ((long) (sizeof (off_t))))
39715 exit (1);
39716 fprintf (f, "%ld\n", i);
39717 }
39718 else
39719 {
39720 unsigned long i = ulongval ();
39721 if (i != ((long) (sizeof (off_t))))
39722 exit (1);
39723 fprintf (f, "%lu\n", i);
39724 }
39725 exit (ferror (f) || fclose (f) != 0);
39726
39727 ;
39728 return 0;
39729}
39730_ACEOF
39731rm -f conftest$ac_exeext
39732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39733 (eval $ac_link) 2>&5
39734 ac_status=$?
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39738 (eval $ac_try) 2>&5
39739 ac_status=$?
39740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741 (exit $ac_status); }; }; then
39742 ac_cv_sizeof_off_t=`cat conftest.val`
39743else
39744 echo "$as_me: program exited with status $ac_status" >&5
39745echo "$as_me: failed program was:" >&5
ad21602a 39746sed 's/^/| /' conftest.$ac_ext >&5
39747
33f5f8b9 39748( exit $ac_status )
ad21602a 39749{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
39750See \`config.log' for more details." >&5
39751echo "$as_me: error: cannot compute sizeof (off_t), 77
39752See \`config.log' for more details." >&2;}
33f5f8b9 39753 { (exit 1); exit 1; }; }
39754fi
af3004ff 39755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 39756fi
39757fi
39758rm -f conftest.val
b6a2f15e 39759else
33f5f8b9 39760 ac_cv_sizeof_off_t=0
b6a2f15e 39761fi
3f961930 39762fi
33f5f8b9 39763echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
39764echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
39765cat >>confdefs.h <<_ACEOF
39766#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
39767_ACEOF
b6a2f15e 39768
39769
090089c4 39770
33f5f8b9 39771cat >>confdefs.h <<\_ACEOF
39772#define HAVE_OFF_T 1
39773_ACEOF
39774
39775fi
39776
39777echo "$as_me:$LINENO: checking for mode_t" >&5
39778echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
39779if test "${ac_cv_type_mode_t+set}" = set; then
39780 echo $ECHO_N "(cached) $ECHO_C" >&6
6473554b 39781else
33f5f8b9 39782 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39783/* confdefs.h. */
39784_ACEOF
39785cat confdefs.h >>conftest.$ac_ext
39786cat >>conftest.$ac_ext <<_ACEOF
39787/* end confdefs.h. */
6a771064 39788
33f5f8b9 39789/* What a mess.. many systems have added the (now standard) bit types
39790 * in their own ways, so we need to scan a wide variety of headers to
39791 * find them..
39792 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39793 */
39794#if HAVE_SYS_TYPES_H
39795#include <sys/types.h>
39796#endif
f0902a4b 39797#if STDC_HEADERS
39798#include <stdlib.h>
39799#include <stddef.h>
39800#endif
736ff61a 39801#if HAVE_INTTYPES_H
39802#include <inttypes.h>
6473554b 39803#endif
6a771064 39804#if HAVE_SYS_BITYPES_H
39805#include <sys/bitypes.h>
39806#endif
11e71ab8 39807#if HAVE_SYS_SELECT_H
39808#include <sys/select.h>
39809#endif
33f5f8b9 39810
39811
33f5f8b9 39812int
39813main ()
6473554b 39814{
33f5f8b9 39815if ((mode_t *) 0)
39816 return 0;
39817if (sizeof (mode_t))
39818 return 0;
39819 ;
39820 return 0;
6473554b 39821}
33f5f8b9 39822_ACEOF
39823rm -f conftest.$ac_objext
39824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39825 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39826 ac_status=$?
af3004ff 39827 grep -v '^ *+' conftest.er1 >conftest.err
39828 rm -f conftest.er1
39829 cat conftest.err >&5
33f5f8b9 39830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831 (exit $ac_status); } &&
6263d81f 39832 { ac_try='test -z "$ac_c_werror_flag"
39833 || test ! -s conftest.err'
af3004ff 39834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39835 (eval $ac_try) 2>&5
39836 ac_status=$?
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); }; } &&
39839 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39841 (eval $ac_try) 2>&5
39842 ac_status=$?
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); }; }; then
39845 ac_cv_type_mode_t=yes
6473554b 39846else
33f5f8b9 39847 echo "$as_me: failed program was:" >&5
ad21602a 39848sed 's/^/| /' conftest.$ac_ext >&5
39849
33f5f8b9 39850ac_cv_type_mode_t=no
6473554b 39851fi
af3004ff 39852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473554b 39853fi
33f5f8b9 39854echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
39855echo "${ECHO_T}$ac_cv_type_mode_t" >&6
39856if test $ac_cv_type_mode_t = yes; then
3f961930 39857
33f5f8b9 39858cat >>confdefs.h <<\_ACEOF
39859#define HAVE_MODE_T 1
39860_ACEOF
6473554b 39861
33f5f8b9 39862fi
6473554b 39863
33f5f8b9 39864echo "$as_me:$LINENO: checking for fd_mask" >&5
39865echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6
39866if test "${ac_cv_type_fd_mask+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
6473554b 39868else
33f5f8b9 39869 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39870/* confdefs.h. */
39871_ACEOF
39872cat confdefs.h >>conftest.$ac_ext
39873cat >>conftest.$ac_ext <<_ACEOF
39874/* end confdefs.h. */
6a771064 39875
33f5f8b9 39876/* What a mess.. many systems have added the (now standard) bit types
39877 * in their own ways, so we need to scan a wide variety of headers to
39878 * find them..
39879 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39880 */
39881#if HAVE_SYS_TYPES_H
39882#include <sys/types.h>
39883#endif
f0902a4b 39884#if STDC_HEADERS
39885#include <stdlib.h>
39886#include <stddef.h>
39887#endif
736ff61a 39888#if HAVE_INTTYPES_H
39889#include <inttypes.h>
6473554b 39890#endif
6a771064 39891#if HAVE_SYS_BITYPES_H
39892#include <sys/bitypes.h>
39893#endif
11e71ab8 39894#if HAVE_SYS_SELECT_H
39895#include <sys/select.h>
39896#endif
33f5f8b9 39897
39898
33f5f8b9 39899int
39900main ()
6473554b 39901{
33f5f8b9 39902if ((fd_mask *) 0)
39903 return 0;
39904if (sizeof (fd_mask))
39905 return 0;
39906 ;
39907 return 0;
6473554b 39908}
33f5f8b9 39909_ACEOF
39910rm -f conftest.$ac_objext
39911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 39912 (eval $ac_compile) 2>conftest.er1
33f5f8b9 39913 ac_status=$?
af3004ff 39914 grep -v '^ *+' conftest.er1 >conftest.err
39915 rm -f conftest.er1
39916 cat conftest.err >&5
33f5f8b9 39917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); } &&
6263d81f 39919 { ac_try='test -z "$ac_c_werror_flag"
39920 || test ! -s conftest.err'
af3004ff 39921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39922 (eval $ac_try) 2>&5
39923 ac_status=$?
39924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925 (exit $ac_status); }; } &&
39926 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 39927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39928 (eval $ac_try) 2>&5
39929 ac_status=$?
39930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); }; }; then
39932 ac_cv_type_fd_mask=yes
6473554b 39933else
33f5f8b9 39934 echo "$as_me: failed program was:" >&5
ad21602a 39935sed 's/^/| /' conftest.$ac_ext >&5
39936
33f5f8b9 39937ac_cv_type_fd_mask=no
6473554b 39938fi
af3004ff 39939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473554b 39940fi
33f5f8b9 39941echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
39942echo "${ECHO_T}$ac_cv_type_fd_mask" >&6
39943if test $ac_cv_type_fd_mask = yes; then
3f961930 39944
33f5f8b9 39945cat >>confdefs.h <<\_ACEOF
39946#define HAVE_FD_MASK 1
39947_ACEOF
6473554b 39948
33f5f8b9 39949fi
6473554b 39950
0205c9c8 39951
256cf05b 39952# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39953# for constant arguments. Useless!
33f5f8b9 39954echo "$as_me:$LINENO: checking for working alloca.h" >&5
39955echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
39956if test "${ac_cv_working_alloca_h+set}" = set; then
39957 echo $ECHO_N "(cached) $ECHO_C" >&6
256cf05b 39958else
33f5f8b9 39959 cat >conftest.$ac_ext <<_ACEOF
ad21602a 39960/* confdefs.h. */
39961_ACEOF
39962cat confdefs.h >>conftest.$ac_ext
39963cat >>conftest.$ac_ext <<_ACEOF
39964/* end confdefs.h. */
256cf05b 39965#include <alloca.h>
33f5f8b9 39966int
39967main ()
39968{
39969char *p = (char *) alloca (2 * sizeof (int));
39970 ;
39971 return 0;
39972}
39973_ACEOF
39974rm -f conftest.$ac_objext conftest$ac_exeext
39975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 39976 (eval $ac_link) 2>conftest.er1
33f5f8b9 39977 ac_status=$?
af3004ff 39978 grep -v '^ *+' conftest.er1 >conftest.err
39979 rm -f conftest.er1
39980 cat conftest.err >&5
33f5f8b9 39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); } &&
6263d81f 39983 { ac_try='test -z "$ac_c_werror_flag"
39984 || test ! -s conftest.err'
af3004ff 39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39987 ac_status=$?
39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; } &&
39990 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 39991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39992 (eval $ac_try) 2>&5
39993 ac_status=$?
39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995 (exit $ac_status); }; }; then
39996 ac_cv_working_alloca_h=yes
39997else
39998 echo "$as_me: failed program was:" >&5
ad21602a 39999sed 's/^/| /' conftest.$ac_ext >&5
40000
33f5f8b9 40001ac_cv_working_alloca_h=no
40002fi
af3004ff 40003rm -f conftest.err conftest.$ac_objext \
40004 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40005fi
40006echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40007echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
40008if test $ac_cv_working_alloca_h = yes; then
40009
40010cat >>confdefs.h <<\_ACEOF
256cf05b 40011#define HAVE_ALLOCA_H 1
33f5f8b9 40012_ACEOF
256cf05b 40013
40014fi
40015
33f5f8b9 40016echo "$as_me:$LINENO: checking for alloca" >&5
40017echo $ECHO_N "checking for alloca... $ECHO_C" >&6
40018if test "${ac_cv_func_alloca_works+set}" = set; then
40019 echo $ECHO_N "(cached) $ECHO_C" >&6
256cf05b 40020else
33f5f8b9 40021 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40022/* confdefs.h. */
40023_ACEOF
40024cat confdefs.h >>conftest.$ac_ext
40025cat >>conftest.$ac_ext <<_ACEOF
40026/* end confdefs.h. */
256cf05b 40027#ifdef __GNUC__
40028# define alloca __builtin_alloca
40029#else
b7db09a3 40030# ifdef _MSC_VER
40031# include <malloc.h>
40032# define alloca _alloca
256cf05b 40033# else
b7db09a3 40034# if HAVE_ALLOCA_H
40035# include <alloca.h>
256cf05b 40036# else
b7db09a3 40037# ifdef _AIX
40038 #pragma alloca
40039# else
40040# ifndef alloca /* predefined by HP cc +Olibcalls */
256cf05b 40041char *alloca ();
b7db09a3 40042# endif
256cf05b 40043# endif
40044# endif
40045# endif
40046#endif
40047
33f5f8b9 40048int
40049main ()
40050{
40051char *p = (char *) alloca (1);
40052 ;
40053 return 0;
40054}
40055_ACEOF
40056rm -f conftest.$ac_objext conftest$ac_exeext
40057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40058 (eval $ac_link) 2>conftest.er1
33f5f8b9 40059 ac_status=$?
af3004ff 40060 grep -v '^ *+' conftest.er1 >conftest.err
40061 rm -f conftest.er1
40062 cat conftest.err >&5
33f5f8b9 40063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40064 (exit $ac_status); } &&
6263d81f 40065 { ac_try='test -z "$ac_c_werror_flag"
40066 || test ! -s conftest.err'
af3004ff 40067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40068 (eval $ac_try) 2>&5
40069 ac_status=$?
40070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071 (exit $ac_status); }; } &&
40072 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40074 (eval $ac_try) 2>&5
40075 ac_status=$?
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); }; }; then
b1e77ec1 40078 ac_cv_func_alloca_works=yes
256cf05b 40079else
33f5f8b9 40080 echo "$as_me: failed program was:" >&5
ad21602a 40081sed 's/^/| /' conftest.$ac_ext >&5
40082
33f5f8b9 40083ac_cv_func_alloca_works=no
256cf05b 40084fi
af3004ff 40085rm -f conftest.err conftest.$ac_objext \
40086 conftest$ac_exeext conftest.$ac_ext
256cf05b 40087fi
33f5f8b9 40088echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40089echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
256cf05b 40090
b1e77ec1 40091if test $ac_cv_func_alloca_works = yes; then
b65c7b0d 40092
33f5f8b9 40093cat >>confdefs.h <<\_ACEOF
40094#define HAVE_ALLOCA 1
40095_ACEOF
b65c7b0d 40096
33f5f8b9 40097else
3f961930 40098 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33f5f8b9 40099# that cause trouble. Some versions do not even contain alloca or
40100# contain a buggy version. If you still want to use their alloca,
40101# use ar to extract alloca.o from them instead of compiling alloca.c.
40102
40103ALLOCA=alloca.$ac_objext
40104
40105cat >>confdefs.h <<\_ACEOF
256cf05b 40106#define C_ALLOCA 1
33f5f8b9 40107_ACEOF
256cf05b 40108
40109
33f5f8b9 40110echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40111echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
40112if test "${ac_cv_os_cray+set}" = set; then
40113 echo $ECHO_N "(cached) $ECHO_C" >&6
256cf05b 40114else
33f5f8b9 40115 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40116/* confdefs.h. */
40117_ACEOF
40118cat confdefs.h >>conftest.$ac_ext
40119cat >>conftest.$ac_ext <<_ACEOF
40120/* end confdefs.h. */
256cf05b 40121#if defined(CRAY) && ! defined(CRAY2)
40122webecray
40123#else
40124wenotbecray
40125#endif
40126
33f5f8b9 40127_ACEOF
256cf05b 40128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad21602a 40129 $EGREP "webecray" >/dev/null 2>&1; then
256cf05b 40130 ac_cv_os_cray=yes
40131else
256cf05b 40132 ac_cv_os_cray=no
40133fi
40134rm -f conftest*
40135
40136fi
33f5f8b9 40137echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40138echo "${ECHO_T}$ac_cv_os_cray" >&6
256cf05b 40139if test $ac_cv_os_cray = yes; then
33f5f8b9 40140 for ac_func in _getb67 GETB67 getb67; do
40141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40142echo "$as_me:$LINENO: checking for $ac_func" >&5
40143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40144if eval "test \"\${$as_ac_var+set}\" = set"; then
40145 echo $ECHO_N "(cached) $ECHO_C" >&6
40146else
40147 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40148/* confdefs.h. */
40149_ACEOF
40150cat confdefs.h >>conftest.$ac_ext
40151cat >>conftest.$ac_ext <<_ACEOF
40152/* end confdefs.h. */
af3004ff 40153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40155#define $ac_func innocuous_$ac_func
40156
256cf05b 40157/* System header to define __stub macros and hopefully few prototypes,
ad21602a 40158 which can conflict with char $ac_func (); below.
40159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40160 <limits.h> exists even on freestanding compilers. */
af3004ff 40161
ad21602a 40162#ifdef __STDC__
40163# include <limits.h>
40164#else
40165# include <assert.h>
40166#endif
af3004ff 40167
40168#undef $ac_func
40169
256cf05b 40170/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 40171#ifdef __cplusplus
40172extern "C"
ad21602a 40173{
33f5f8b9 40174#endif
03a0d3b0 40175/* We use char because int might match the return type of a gcc2
33f5f8b9 40176 builtin and then its argument prototype would still apply. */
40177char $ac_func ();
256cf05b 40178/* The GNU C library defines this for functions which it implements
40179 to always fail with ENOSYS. Some functions are actually named
40180 something starting with __ and the normal name is an alias. */
40181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40182choke me
40183#else
ad21602a 40184char (*f) () = $ac_func;
40185#endif
40186#ifdef __cplusplus
40187}
256cf05b 40188#endif
40189
ad21602a 40190int
40191main ()
40192{
40193return f != $ac_func;
33f5f8b9 40194 ;
40195 return 0;
40196}
40197_ACEOF
40198rm -f conftest.$ac_objext conftest$ac_exeext
40199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40200 (eval $ac_link) 2>conftest.er1
33f5f8b9 40201 ac_status=$?
af3004ff 40202 grep -v '^ *+' conftest.er1 >conftest.err
40203 rm -f conftest.er1
40204 cat conftest.err >&5
33f5f8b9 40205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206 (exit $ac_status); } &&
6263d81f 40207 { ac_try='test -z "$ac_c_werror_flag"
40208 || test ! -s conftest.err'
af3004ff 40209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40210 (eval $ac_try) 2>&5
40211 ac_status=$?
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); }; } &&
40214 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40216 (eval $ac_try) 2>&5
40217 ac_status=$?
40218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40219 (exit $ac_status); }; }; then
40220 eval "$as_ac_var=yes"
40221else
40222 echo "$as_me: failed program was:" >&5
ad21602a 40223sed 's/^/| /' conftest.$ac_ext >&5
40224
33f5f8b9 40225eval "$as_ac_var=no"
40226fi
af3004ff 40227rm -f conftest.err conftest.$ac_objext \
40228 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40229fi
40230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40232if test `eval echo '${'$as_ac_var'}'` = yes; then
40233
40234cat >>confdefs.h <<_ACEOF
256cf05b 40235#define CRAY_STACKSEG_END $ac_func
33f5f8b9 40236_ACEOF
256cf05b 40237
33f5f8b9 40238 break
256cf05b 40239fi
40240
33f5f8b9 40241 done
256cf05b 40242fi
40243
33f5f8b9 40244echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40245echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
40246if test "${ac_cv_c_stack_direction+set}" = set; then
40247 echo $ECHO_N "(cached) $ECHO_C" >&6
256cf05b 40248else
40249 if test "$cross_compiling" = yes; then
40250 ac_cv_c_stack_direction=0
40251else
33f5f8b9 40252 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40253/* confdefs.h. */
40254_ACEOF
40255cat confdefs.h >>conftest.$ac_ext
40256cat >>conftest.$ac_ext <<_ACEOF
40257/* end confdefs.h. */
33f5f8b9 40258int
256cf05b 40259find_stack_direction ()
40260{
40261 static char *addr = 0;
40262 auto char dummy;
40263 if (addr == 0)
40264 {
40265 addr = &dummy;
40266 return find_stack_direction ();
40267 }
40268 else
40269 return (&dummy > addr) ? 1 : -1;
40270}
33f5f8b9 40271
40272int
256cf05b 40273main ()
40274{
33f5f8b9 40275 exit (find_stack_direction () < 0);
256cf05b 40276}
33f5f8b9 40277_ACEOF
40278rm -f conftest$ac_exeext
40279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40280 (eval $ac_link) 2>&5
40281 ac_status=$?
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40285 (eval $ac_try) 2>&5
40286 ac_status=$?
40287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288 (exit $ac_status); }; }; then
256cf05b 40289 ac_cv_c_stack_direction=1
40290else
33f5f8b9 40291 echo "$as_me: program exited with status $ac_status" >&5
40292echo "$as_me: failed program was:" >&5
ad21602a 40293sed 's/^/| /' conftest.$ac_ext >&5
40294
33f5f8b9 40295( exit $ac_status )
40296ac_cv_c_stack_direction=-1
256cf05b 40297fi
af3004ff 40298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
256cf05b 40299fi
b1e77ec1 40300fi
33f5f8b9 40301echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40302echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
b1e77ec1 40303
33f5f8b9 40304cat >>confdefs.h <<_ACEOF
256cf05b 40305#define STACK_DIRECTION $ac_cv_c_stack_direction
33f5f8b9 40306_ACEOF
256cf05b 40307
256cf05b 40308
33f5f8b9 40309fi
256cf05b 40310
aea1be68 40311
33f5f8b9 40312echo "$as_me:$LINENO: checking for socklen_t" >&5
40313echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
40314if test "${ac_cv_type_socklen_t+set}" = set; then
40315 echo $ECHO_N "(cached) $ECHO_C" >&6
d63ed275 40316else
33f5f8b9 40317 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40318/* confdefs.h. */
40319_ACEOF
40320cat confdefs.h >>conftest.$ac_ext
40321cat >>conftest.$ac_ext <<_ACEOF
40322/* end confdefs.h. */
33f5f8b9 40323
d63ed275 40324#include <sys/types.h>
aea1be68 40325#include <sys/socket.h>
d63ed275 40326#if STDC_HEADERS
40327#include <stdlib.h>
40328#include <stddef.h>
40329#endif
33f5f8b9 40330
33f5f8b9 40331int
40332main ()
40333{
40334if ((socklen_t *) 0)
40335 return 0;
40336if (sizeof (socklen_t))
40337 return 0;
40338 ;
40339 return 0;
40340}
40341_ACEOF
40342rm -f conftest.$ac_objext
40343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 40344 (eval $ac_compile) 2>conftest.er1
33f5f8b9 40345 ac_status=$?
af3004ff 40346 grep -v '^ *+' conftest.er1 >conftest.err
40347 rm -f conftest.er1
40348 cat conftest.err >&5
33f5f8b9 40349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40350 (exit $ac_status); } &&
6263d81f 40351 { ac_try='test -z "$ac_c_werror_flag"
40352 || test ! -s conftest.err'
af3004ff 40353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40354 (eval $ac_try) 2>&5
40355 ac_status=$?
40356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40357 (exit $ac_status); }; } &&
40358 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 40359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40360 (eval $ac_try) 2>&5
40361 ac_status=$?
40362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363 (exit $ac_status); }; }; then
aea1be68 40364 ac_cv_type_socklen_t=yes
d63ed275 40365else
33f5f8b9 40366 echo "$as_me: failed program was:" >&5
ad21602a 40367sed 's/^/| /' conftest.$ac_ext >&5
40368
33f5f8b9 40369ac_cv_type_socklen_t=no
d63ed275 40370fi
af3004ff 40371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d63ed275 40372fi
33f5f8b9 40373echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
40374echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
40375if test $ac_cv_type_socklen_t = yes; then
3f961930 40376
33f5f8b9 40377cat >>confdefs.h <<\_ACEOF
40378#define HAVE_SOCKLEN_T 1
40379_ACEOF
d63ed275 40380
40381fi
40382
33f5f8b9 40383
40384echo "$as_me:$LINENO: checking for mtyp_t" >&5
40385echo $ECHO_N "checking for mtyp_t... $ECHO_C" >&6
40386if test "${ac_cv_type_mtyp_t+set}" = set; then
40387 echo $ECHO_N "(cached) $ECHO_C" >&6
6637e3a5 40388else
33f5f8b9 40389 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40390/* confdefs.h. */
40391_ACEOF
40392cat confdefs.h >>conftest.$ac_ext
40393cat >>conftest.$ac_ext <<_ACEOF
40394/* end confdefs.h. */
6637e3a5 40395#include <sys/types.h>
aea1be68 40396#include <sys/ipc.h>
40397#include <sys/msg.h>
33f5f8b9 40398
33f5f8b9 40399int
40400main ()
40401{
40402if ((mtyp_t *) 0)
40403 return 0;
40404if (sizeof (mtyp_t))
40405 return 0;
40406 ;
40407 return 0;
40408}
40409_ACEOF
40410rm -f conftest.$ac_objext
40411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 40412 (eval $ac_compile) 2>conftest.er1
33f5f8b9 40413 ac_status=$?
af3004ff 40414 grep -v '^ *+' conftest.er1 >conftest.err
40415 rm -f conftest.er1
40416 cat conftest.err >&5
33f5f8b9 40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); } &&
6263d81f 40419 { ac_try='test -z "$ac_c_werror_flag"
40420 || test ! -s conftest.err'
af3004ff 40421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40422 (eval $ac_try) 2>&5
40423 ac_status=$?
40424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425 (exit $ac_status); }; } &&
40426 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 40427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40428 (eval $ac_try) 2>&5
40429 ac_status=$?
40430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431 (exit $ac_status); }; }; then
aea1be68 40432 ac_cv_type_mtyp_t=yes
6637e3a5 40433else
33f5f8b9 40434 echo "$as_me: failed program was:" >&5
ad21602a 40435sed 's/^/| /' conftest.$ac_ext >&5
40436
33f5f8b9 40437ac_cv_type_mtyp_t=no
6637e3a5 40438fi
af3004ff 40439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 40440fi
40441echo "$as_me:$LINENO: result: $ac_cv_type_mtyp_t" >&5
40442echo "${ECHO_T}$ac_cv_type_mtyp_t" >&6
40443if test $ac_cv_type_mtyp_t = yes; then
6637e3a5 40444
33f5f8b9 40445cat >>confdefs.h <<\_ACEOF
40446#define HAVE_MTYP_T 1
40447_ACEOF
6637e3a5 40448
40449fi
3f961930 40450
6637e3a5 40451
6637e3a5 40452
33f5f8b9 40453echo "$as_me:$LINENO: checking for main in -lnsl" >&5
40454echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
40455if test "${ac_cv_lib_nsl_main+set}" = set; then
40456 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 40457else
33f5f8b9 40458 ac_check_lib_save_LIBS=$LIBS
30a4f2a8 40459LIBS="-lnsl $LIBS"
33f5f8b9 40460cat >conftest.$ac_ext <<_ACEOF
ad21602a 40461/* confdefs.h. */
40462_ACEOF
40463cat confdefs.h >>conftest.$ac_ext
40464cat >>conftest.$ac_ext <<_ACEOF
40465/* end confdefs.h. */
090089c4 40466
090089c4 40467
33f5f8b9 40468int
40469main ()
40470{
40471main ();
40472 ;
40473 return 0;
40474}
40475_ACEOF
40476rm -f conftest.$ac_objext conftest$ac_exeext
40477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40478 (eval $ac_link) 2>conftest.er1
33f5f8b9 40479 ac_status=$?
af3004ff 40480 grep -v '^ *+' conftest.er1 >conftest.err
40481 rm -f conftest.er1
40482 cat conftest.err >&5
33f5f8b9 40483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484 (exit $ac_status); } &&
6263d81f 40485 { ac_try='test -z "$ac_c_werror_flag"
40486 || test ! -s conftest.err'
af3004ff 40487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488 (eval $ac_try) 2>&5
40489 ac_status=$?
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); }; } &&
40492 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40494 (eval $ac_try) 2>&5
40495 ac_status=$?
40496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497 (exit $ac_status); }; }; then
40498 ac_cv_lib_nsl_main=yes
40499else
40500 echo "$as_me: failed program was:" >&5
ad21602a 40501sed 's/^/| /' conftest.$ac_ext >&5
40502
33f5f8b9 40503ac_cv_lib_nsl_main=no
40504fi
af3004ff 40505rm -f conftest.err conftest.$ac_objext \
40506 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40507LIBS=$ac_check_lib_save_LIBS
40508fi
40509echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
40510echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
40511if test $ac_cv_lib_nsl_main = yes; then
40512 cat >>confdefs.h <<_ACEOF
40513#define HAVE_LIBNSL 1
40514_ACEOF
6716b242 40515
30a4f2a8 40516 LIBS="-lnsl $LIBS"
6716b242 40517
090089c4 40518fi
40519
33f5f8b9 40520
40521echo "$as_me:$LINENO: checking for main in -lsocket" >&5
40522echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
40523if test "${ac_cv_lib_socket_main+set}" = set; then
40524 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 40525else
33f5f8b9 40526 ac_check_lib_save_LIBS=$LIBS
30a4f2a8 40527LIBS="-lsocket $LIBS"
33f5f8b9 40528cat >conftest.$ac_ext <<_ACEOF
ad21602a 40529/* confdefs.h. */
40530_ACEOF
40531cat confdefs.h >>conftest.$ac_ext
40532cat >>conftest.$ac_ext <<_ACEOF
40533/* end confdefs.h. */
090089c4 40534
090089c4 40535
33f5f8b9 40536int
40537main ()
40538{
40539main ();
40540 ;
40541 return 0;
40542}
40543_ACEOF
40544rm -f conftest.$ac_objext conftest$ac_exeext
40545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40546 (eval $ac_link) 2>conftest.er1
33f5f8b9 40547 ac_status=$?
af3004ff 40548 grep -v '^ *+' conftest.er1 >conftest.err
40549 rm -f conftest.er1
40550 cat conftest.err >&5
33f5f8b9 40551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552 (exit $ac_status); } &&
6263d81f 40553 { ac_try='test -z "$ac_c_werror_flag"
40554 || test ! -s conftest.err'
af3004ff 40555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40556 (eval $ac_try) 2>&5
40557 ac_status=$?
40558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); }; } &&
40560 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40562 (eval $ac_try) 2>&5
40563 ac_status=$?
40564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565 (exit $ac_status); }; }; then
40566 ac_cv_lib_socket_main=yes
40567else
40568 echo "$as_me: failed program was:" >&5
ad21602a 40569sed 's/^/| /' conftest.$ac_ext >&5
40570
33f5f8b9 40571ac_cv_lib_socket_main=no
40572fi
af3004ff 40573rm -f conftest.err conftest.$ac_objext \
40574 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40575LIBS=$ac_check_lib_save_LIBS
40576fi
40577echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
40578echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
40579if test $ac_cv_lib_socket_main = yes; then
40580 cat >>confdefs.h <<_ACEOF
40581#define HAVE_LIBSOCKET 1
40582_ACEOF
30a4f2a8 40583
40584 LIBS="-lsocket $LIBS"
40585
090089c4 40586fi
40587
07d1f987 40588case "$host_os" in
40589 mingw|mingw32)
40590 echo "$as_me:$LINENO: checking for winsock" >&5
40591echo $ECHO_N "checking for winsock... $ECHO_C" >&6
40592 save_LIBS="$LIBS"
40593 for curlib in ws2_32 wsock32; do
40594 LIBS="$LIBS -l$curlib"
40595 cat >conftest.$ac_ext <<_ACEOF
40596/* confdefs.h. */
40597_ACEOF
40598cat confdefs.h >>conftest.$ac_ext
40599cat >>conftest.$ac_ext <<_ACEOF
40600/* end confdefs.h. */
40601
40602 char __attribute__((stdcall)) socket(int,int,int);
40603 char __attribute__((stdcall)) select(int,int,int,int,int);
40604 char __attribute__((stdcall)) closesocket(int);
40605 char __attribute__((stdcall)) gethostname(int,int);
40606
40607int
40608main ()
40609{
40610
40611 socket(1,2,3);
40612 select(1,2,3,4,5);
40613 closesocket(1);
40614 gethostname(1,2);
40615
40616 ;
40617 return 0;
40618}
40619_ACEOF
40620rm -f conftest.$ac_objext conftest$ac_exeext
40621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40622 (eval $ac_link) 2>conftest.er1
40623 ac_status=$?
40624 grep -v '^ *+' conftest.er1 >conftest.err
40625 rm -f conftest.er1
40626 cat conftest.err >&5
40627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40628 (exit $ac_status); } &&
6263d81f 40629 { ac_try='test -z "$ac_c_werror_flag"
40630 || test ! -s conftest.err'
07d1f987 40631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40632 (eval $ac_try) 2>&5
40633 ac_status=$?
40634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40635 (exit $ac_status); }; } &&
40636 { ac_try='test -s conftest$ac_exeext'
40637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40638 (eval $ac_try) 2>&5
40639 ac_status=$?
40640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40641 (exit $ac_status); }; }; then
40642 have_winsock=yes
40643else
40644 echo "$as_me: failed program was:" >&5
40645sed 's/^/| /' conftest.$ac_ext >&5
40646
40647have_winsock=no
40648fi
40649rm -f conftest.err conftest.$ac_objext \
40650 conftest$ac_exeext conftest.$ac_ext
40651
40652 if test $have_winsock = yes; then
40653 ac_cv_func_select='yes'
40654 if test $curlib = ws2_32; then
40655 have_winsock=winsock2
40656 fi
40657 break
40658 fi
40659 LIBS="$save_LIBS"
40660 done
40661 echo "$as_me:$LINENO: result: $have_winsock" >&5
40662echo "${ECHO_T}$have_winsock" >&6
40663 ;;
40664esac
94d48591 40665
33f5f8b9 40666echo "$as_me:$LINENO: checking for unix domain sockets" >&5
40667echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
40668if test "${squid_cv_unixsocket+set}" = set; then
40669 echo $ECHO_N "(cached) $ECHO_C" >&6
3c641669 40670else
33f5f8b9 40671
40672 cat >conftest.$ac_ext <<_ACEOF
ad21602a 40673/* confdefs.h. */
40674_ACEOF
40675cat confdefs.h >>conftest.$ac_ext
40676cat >>conftest.$ac_ext <<_ACEOF
40677/* end confdefs.h. */
3c641669 40678
40679#include <sys/types.h>
40680#include <stdlib.h>
40681#include <stddef.h>
40682#include <sys/socket.h>
40683#include <sys/un.h>
33f5f8b9 40684int
40685main ()
40686{
3c641669 40687
33f5f8b9 40688 struct sockaddr_un sunaddr;
3c641669 40689 sunaddr.sun_family = AF_UNIX;
40690
33f5f8b9 40691 ;
40692 return 0;
40693}
40694_ACEOF
40695rm -f conftest.$ac_objext
40696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 40697 (eval $ac_compile) 2>conftest.er1
33f5f8b9 40698 ac_status=$?
af3004ff 40699 grep -v '^ *+' conftest.er1 >conftest.err
40700 rm -f conftest.er1
40701 cat conftest.err >&5
33f5f8b9 40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); } &&
6263d81f 40704 { ac_try='test -z "$ac_c_werror_flag"
40705 || test ! -s conftest.err'
af3004ff 40706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40707 (eval $ac_try) 2>&5
40708 ac_status=$?
40709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710 (exit $ac_status); }; } &&
40711 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 40712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713 (eval $ac_try) 2>&5
40714 ac_status=$?
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); }; }; then
3c641669 40717 squid_cv_unixsocket=yes
40718else
33f5f8b9 40719 echo "$as_me: failed program was:" >&5
ad21602a 40720sed 's/^/| /' conftest.$ac_ext >&5
40721
33f5f8b9 40722squid_cv_unixsocket=no
3c641669 40723fi
af3004ff 40724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3c641669 40725fi
33f5f8b9 40726echo "$as_me:$LINENO: result: $squid_cv_unixsocket" >&5
40727echo "${ECHO_T}$squid_cv_unixsocket" >&6
3c641669 40728if test x"$squid_cv_unixsocket" = x"yes"; then
33f5f8b9 40729
40730cat >>confdefs.h <<\_ACEOF
3c641669 40731#define HAVE_UNIXSOCKET 1
33f5f8b9 40732_ACEOF
3c641669 40733
40734fi
40735
94d48591 40736if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
40737 echo "skipping libmalloc check (--enable-dlmalloc specified)"
40738else
33f5f8b9 40739
40740echo "$as_me:$LINENO: checking for main in -lgnumalloc" >&5
40741echo $ECHO_N "checking for main in -lgnumalloc... $ECHO_C" >&6
40742if test "${ac_cv_lib_gnumalloc_main+set}" = set; then
40743 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 40744else
33f5f8b9 40745 ac_check_lib_save_LIBS=$LIBS
8a15e65e 40746LIBS="-lgnumalloc $LIBS"
33f5f8b9 40747cat >conftest.$ac_ext <<_ACEOF
ad21602a 40748/* confdefs.h. */
40749_ACEOF
40750cat confdefs.h >>conftest.$ac_ext
40751cat >>conftest.$ac_ext <<_ACEOF
40752/* end confdefs.h. */
090089c4 40753
090089c4 40754
33f5f8b9 40755int
40756main ()
40757{
40758main ();
40759 ;
40760 return 0;
40761}
40762_ACEOF
40763rm -f conftest.$ac_objext conftest$ac_exeext
40764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40765 (eval $ac_link) 2>conftest.er1
f5691f9c 40766 ac_status=$?
af3004ff 40767 grep -v '^ *+' conftest.er1 >conftest.err
40768 rm -f conftest.er1
40769 cat conftest.err >&5
f5691f9c 40770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); } &&
6263d81f 40772 { ac_try='test -z "$ac_c_werror_flag"
40773 || test ! -s conftest.err'
af3004ff 40774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40775 (eval $ac_try) 2>&5
40776 ac_status=$?
40777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40778 (exit $ac_status); }; } &&
40779 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40781 (eval $ac_try) 2>&5
40782 ac_status=$?
40783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784 (exit $ac_status); }; }; then
40785 ac_cv_lib_gnumalloc_main=yes
40786else
40787 echo "$as_me: failed program was:" >&5
ad21602a 40788sed 's/^/| /' conftest.$ac_ext >&5
40789
33f5f8b9 40790ac_cv_lib_gnumalloc_main=no
40791fi
af3004ff 40792rm -f conftest.err conftest.$ac_objext \
40793 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40794LIBS=$ac_check_lib_save_LIBS
40795fi
40796echo "$as_me:$LINENO: result: $ac_cv_lib_gnumalloc_main" >&5
40797echo "${ECHO_T}$ac_cv_lib_gnumalloc_main" >&6
40798if test $ac_cv_lib_gnumalloc_main = yes; then
40799 cat >>confdefs.h <<_ACEOF
40800#define HAVE_LIBGNUMALLOC 1
40801_ACEOF
8a15e65e 40802
40803 LIBS="-lgnumalloc $LIBS"
40804
090089c4 40805fi
40806
94d48591 40807 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
40808 echo "Disabling extended malloc functions when using gnumalloc"
40809 ac_cv_func_mallinfo=no
40810 ac_cv_func_mallocblksize=no
40811 ac_cv_func_mallopt=no
40812 else
40813 case "$host" in
40814 *-sun-solaris*)
40815 echo "skipping libmalloc check for $host"
40816 ;;
40817 i386-*-freebsd*)
40818 echo "skipping libmalloc check for $host"
40819 ;;
40820 *)
33f5f8b9 40821
40822
40823echo "$as_me:$LINENO: checking for main in -lmalloc" >&5
40824echo $ECHO_N "checking for main in -lmalloc... $ECHO_C" >&6
40825if test "${ac_cv_lib_malloc_main+set}" = set; then
40826 echo $ECHO_N "(cached) $ECHO_C" >&6
40827else
40828 ac_check_lib_save_LIBS=$LIBS
8a15e65e 40829LIBS="-lmalloc $LIBS"
33f5f8b9 40830cat >conftest.$ac_ext <<_ACEOF
ad21602a 40831/* confdefs.h. */
40832_ACEOF
40833cat confdefs.h >>conftest.$ac_ext
40834cat >>conftest.$ac_ext <<_ACEOF
40835/* end confdefs.h. */
8a15e65e 40836
8a15e65e 40837
33f5f8b9 40838int
40839main ()
40840{
40841main ();
40842 ;
40843 return 0;
40844}
40845_ACEOF
40846rm -f conftest.$ac_objext conftest$ac_exeext
40847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40848 (eval $ac_link) 2>conftest.er1
33f5f8b9 40849 ac_status=$?
af3004ff 40850 grep -v '^ *+' conftest.er1 >conftest.err
40851 rm -f conftest.er1
40852 cat conftest.err >&5
33f5f8b9 40853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40854 (exit $ac_status); } &&
6263d81f 40855 { ac_try='test -z "$ac_c_werror_flag"
40856 || test ! -s conftest.err'
af3004ff 40857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40858 (eval $ac_try) 2>&5
40859 ac_status=$?
40860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861 (exit $ac_status); }; } &&
40862 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40864 (eval $ac_try) 2>&5
40865 ac_status=$?
40866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867 (exit $ac_status); }; }; then
40868 ac_cv_lib_malloc_main=yes
40869else
40870 echo "$as_me: failed program was:" >&5
ad21602a 40871sed 's/^/| /' conftest.$ac_ext >&5
40872
33f5f8b9 40873ac_cv_lib_malloc_main=no
40874fi
af3004ff 40875rm -f conftest.err conftest.$ac_objext \
40876 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40877LIBS=$ac_check_lib_save_LIBS
40878fi
40879echo "$as_me:$LINENO: result: $ac_cv_lib_malloc_main" >&5
40880echo "${ECHO_T}$ac_cv_lib_malloc_main" >&6
40881if test $ac_cv_lib_malloc_main = yes; then
40882 cat >>confdefs.h <<_ACEOF
40883#define HAVE_LIBMALLOC 1
40884_ACEOF
8a15e65e 40885
40886 LIBS="-lmalloc $LIBS"
40887
8a15e65e 40888fi
40889
94d48591 40890 ;;
40891 esac
40892 fi
8a15e65e 40893fi
94d48591 40894
33f5f8b9 40895
40896echo "$as_me:$LINENO: checking for main in -lbsd" >&5
40897echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
40898if test "${ac_cv_lib_bsd_main+set}" = set; then
40899 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 40900else
33f5f8b9 40901 ac_check_lib_save_LIBS=$LIBS
6509a1a0 40902LIBS="-lbsd $LIBS"
33f5f8b9 40903cat >conftest.$ac_ext <<_ACEOF
ad21602a 40904/* confdefs.h. */
40905_ACEOF
40906cat confdefs.h >>conftest.$ac_ext
40907cat >>conftest.$ac_ext <<_ACEOF
40908/* end confdefs.h. */
090089c4 40909
3f961930 40910
33f5f8b9 40911int
40912main ()
40913{
40914main ();
40915 ;
40916 return 0;
a33e1d91 40917}
40918_ACEOF
40919rm -f conftest.$ac_objext conftest$ac_exeext
40920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40921 (eval $ac_link) 2>conftest.er1
f5691f9c 40922 ac_status=$?
af3004ff 40923 grep -v '^ *+' conftest.er1 >conftest.err
40924 rm -f conftest.er1
40925 cat conftest.err >&5
f5691f9c 40926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a33e1d91 40927 (exit $ac_status); } &&
6263d81f 40928 { ac_try='test -z "$ac_c_werror_flag"
40929 || test ! -s conftest.err'
af3004ff 40930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40931 (eval $ac_try) 2>&5
40932 ac_status=$?
40933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40934 (exit $ac_status); }; } &&
40935 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 40936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40937 (eval $ac_try) 2>&5
40938 ac_status=$?
40939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40940 (exit $ac_status); }; }; then
40941 ac_cv_lib_bsd_main=yes
40942else
40943 echo "$as_me: failed program was:" >&5
ad21602a 40944sed 's/^/| /' conftest.$ac_ext >&5
40945
33f5f8b9 40946ac_cv_lib_bsd_main=no
40947fi
af3004ff 40948rm -f conftest.err conftest.$ac_objext \
40949 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 40950LIBS=$ac_check_lib_save_LIBS
40951fi
40952echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
40953echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
40954if test $ac_cv_lib_bsd_main = yes; then
40955 cat >>confdefs.h <<_ACEOF
40956#define HAVE_LIBBSD 1
40957_ACEOF
6716b242 40958
6509a1a0 40959 LIBS="-lbsd $LIBS"
6716b242 40960
090089c4 40961fi
40962
33f5f8b9 40963echo "$as_me:$LINENO: checking for main in -lregex" >&5
40964echo $ECHO_N "checking for main in -lregex... $ECHO_C" >&6
40965if test "${ac_cv_lib_regex_main+set}" = set; then
40966 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 40967else
33f5f8b9 40968 ac_check_lib_save_LIBS=$LIBS
6509a1a0 40969LIBS="-lregex $LIBS"
33f5f8b9 40970cat >conftest.$ac_ext <<_ACEOF
ad21602a 40971/* confdefs.h. */
40972_ACEOF
40973cat confdefs.h >>conftest.$ac_ext
40974cat >>conftest.$ac_ext <<_ACEOF
40975/* end confdefs.h. */
090089c4 40976
090089c4 40977
33f5f8b9 40978int
40979main ()
40980{
40981main ();
40982 ;
40983 return 0;
40984}
40985_ACEOF
40986rm -f conftest.$ac_objext conftest$ac_exeext
40987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 40988 (eval $ac_link) 2>conftest.er1
33f5f8b9 40989 ac_status=$?
af3004ff 40990 grep -v '^ *+' conftest.er1 >conftest.err
40991 rm -f conftest.er1
40992 cat conftest.err >&5
33f5f8b9 40993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40994 (exit $ac_status); } &&
6263d81f 40995 { ac_try='test -z "$ac_c_werror_flag"
40996 || test ! -s conftest.err'
af3004ff 40997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40998 (eval $ac_try) 2>&5
40999 ac_status=$?
41000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41001 (exit $ac_status); }; } &&
41002 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41004 (eval $ac_try) 2>&5
41005 ac_status=$?
41006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41007 (exit $ac_status); }; }; then
41008 ac_cv_lib_regex_main=yes
41009else
41010 echo "$as_me: failed program was:" >&5
ad21602a 41011sed 's/^/| /' conftest.$ac_ext >&5
41012
33f5f8b9 41013ac_cv_lib_regex_main=no
41014fi
af3004ff 41015rm -f conftest.err conftest.$ac_objext \
41016 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41017LIBS=$ac_check_lib_save_LIBS
41018fi
41019echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5
41020echo "${ECHO_T}$ac_cv_lib_regex_main" >&6
41021if test $ac_cv_lib_regex_main = yes; then
6509a1a0 41022 REGEXLIB="-lregex"
090089c4 41023fi
41024
33f5f8b9 41025
41026echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
41027echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
41028if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
41029 echo $ECHO_N "(cached) $ECHO_C" >&6
04a56fa3 41030else
33f5f8b9 41031 ac_check_lib_save_LIBS=$LIBS
04a56fa3 41032LIBS="-lbind $LIBS"
33f5f8b9 41033cat >conftest.$ac_ext <<_ACEOF
ad21602a 41034/* confdefs.h. */
41035_ACEOF
41036cat confdefs.h >>conftest.$ac_ext
41037cat >>conftest.$ac_ext <<_ACEOF
41038/* end confdefs.h. */
33f5f8b9 41039
04a56fa3 41040/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 41041#ifdef __cplusplus
41042extern "C"
41043#endif
04a56fa3 41044/* We use char because int might match the return type of a gcc2
33f5f8b9 41045 builtin and then its argument prototype would still apply. */
41046char gethostbyname ();
33f5f8b9 41047int
41048main ()
41049{
41050gethostbyname ();
41051 ;
41052 return 0;
41053}
41054_ACEOF
41055rm -f conftest.$ac_objext conftest$ac_exeext
41056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41057 (eval $ac_link) 2>conftest.er1
33f5f8b9 41058 ac_status=$?
af3004ff 41059 grep -v '^ *+' conftest.er1 >conftest.err
41060 rm -f conftest.er1
41061 cat conftest.err >&5
33f5f8b9 41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); } &&
6263d81f 41064 { ac_try='test -z "$ac_c_werror_flag"
41065 || test ! -s conftest.err'
af3004ff 41066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41067 (eval $ac_try) 2>&5
41068 ac_status=$?
41069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41070 (exit $ac_status); }; } &&
41071 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41073 (eval $ac_try) 2>&5
41074 ac_status=$?
41075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41076 (exit $ac_status); }; }; then
41077 ac_cv_lib_bind_gethostbyname=yes
41078else
41079 echo "$as_me: failed program was:" >&5
ad21602a 41080sed 's/^/| /' conftest.$ac_ext >&5
41081
33f5f8b9 41082ac_cv_lib_bind_gethostbyname=no
41083fi
af3004ff 41084rm -f conftest.err conftest.$ac_objext \
41085 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41086LIBS=$ac_check_lib_save_LIBS
41087fi
41088echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
41089echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
41090if test $ac_cv_lib_bind_gethostbyname = yes; then
41091 cat >>confdefs.h <<_ACEOF
41092#define HAVE_LIBBIND 1
41093_ACEOF
04a56fa3 41094
41095 LIBS="-lbind $LIBS"
41096
04a56fa3 41097fi
41098
41099if test $ac_cv_lib_bind_gethostbyname = "no" ; then
41100 case "$host" in
78743365 41101 i386-*-freebsd*)
41102 echo "skipping libresolv checks for $host"
41103 ;;
41104 *)
33f5f8b9 41105 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
41106echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
41107if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
41108 echo $ECHO_N "(cached) $ECHO_C" >&6
ac4437b7 41109else
33f5f8b9 41110 ac_check_lib_save_LIBS=$LIBS
6509a1a0 41111LIBS="-lresolv $LIBS"
33f5f8b9 41112cat >conftest.$ac_ext <<_ACEOF
ad21602a 41113/* confdefs.h. */
41114_ACEOF
41115cat confdefs.h >>conftest.$ac_ext
41116cat >>conftest.$ac_ext <<_ACEOF
41117/* end confdefs.h. */
33f5f8b9 41118
6509a1a0 41119/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 41120#ifdef __cplusplus
41121extern "C"
41122#endif
6509a1a0 41123/* We use char because int might match the return type of a gcc2
33f5f8b9 41124 builtin and then its argument prototype would still apply. */
41125char inet_aton ();
33f5f8b9 41126int
41127main ()
41128{
41129inet_aton ();
41130 ;
41131 return 0;
41132}
41133_ACEOF
41134rm -f conftest.$ac_objext conftest$ac_exeext
41135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41136 (eval $ac_link) 2>conftest.er1
41137 ac_status=$?
41138 grep -v '^ *+' conftest.er1 >conftest.err
41139 rm -f conftest.er1
41140 cat conftest.err >&5
41141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); } &&
6263d81f 41143 { ac_try='test -z "$ac_c_werror_flag"
41144 || test ! -s conftest.err'
af3004ff 41145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41146 (eval $ac_try) 2>&5
41147 ac_status=$?
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); }; } &&
41150 { ac_try='test -s conftest$ac_exeext'
41151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152 (eval $ac_try) 2>&5
41153 ac_status=$?
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); }; }; then
41156 ac_cv_lib_resolv_inet_aton=yes
41157else
41158 echo "$as_me: failed program was:" >&5
41159sed 's/^/| /' conftest.$ac_ext >&5
41160
41161ac_cv_lib_resolv_inet_aton=no
41162fi
41163rm -f conftest.err conftest.$ac_objext \
41164 conftest$ac_exeext conftest.$ac_ext
41165LIBS=$ac_check_lib_save_LIBS
41166fi
41167echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
41168echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
41169if test $ac_cv_lib_resolv_inet_aton = yes; then
41170
41171echo "$as_me:$LINENO: checking for inet_aton in -l44bsd" >&5
41172echo $ECHO_N "checking for inet_aton in -l44bsd... $ECHO_C" >&6
41173if test "${ac_cv_lib_44bsd_inet_aton+set}" = set; then
41174 echo $ECHO_N "(cached) $ECHO_C" >&6
41175else
41176 ac_check_lib_save_LIBS=$LIBS
41177LIBS="-l44bsd $LIBS"
41178cat >conftest.$ac_ext <<_ACEOF
41179/* confdefs.h. */
41180_ACEOF
41181cat confdefs.h >>conftest.$ac_ext
41182cat >>conftest.$ac_ext <<_ACEOF
41183/* end confdefs.h. */
41184
41185/* Override any gcc2 internal prototype to avoid an error. */
41186#ifdef __cplusplus
41187extern "C"
41188#endif
41189/* We use char because int might match the return type of a gcc2
41190 builtin and then its argument prototype would still apply. */
41191char inet_aton ();
41192int
41193main ()
41194{
41195inet_aton ();
41196 ;
41197 return 0;
41198}
41199_ACEOF
41200rm -f conftest.$ac_objext conftest$ac_exeext
41201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41202 (eval $ac_link) 2>conftest.er1
33f5f8b9 41203 ac_status=$?
af3004ff 41204 grep -v '^ *+' conftest.er1 >conftest.err
41205 rm -f conftest.er1
41206 cat conftest.err >&5
33f5f8b9 41207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208 (exit $ac_status); } &&
6263d81f 41209 { ac_try='test -z "$ac_c_werror_flag"
41210 || test ! -s conftest.err'
33f5f8b9 41211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41212 (eval $ac_try) 2>&5
41213 ac_status=$?
41214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
af3004ff 41215 (exit $ac_status); }; } &&
41216 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41218 (eval $ac_try) 2>&5
41219 ac_status=$?
41220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41221 (exit $ac_status); }; }; then
41222 ac_cv_lib_44bsd_inet_aton=yes
41223else
41224 echo "$as_me: failed program was:" >&5
ad21602a 41225sed 's/^/| /' conftest.$ac_ext >&5
41226
33f5f8b9 41227ac_cv_lib_44bsd_inet_aton=no
41228fi
af3004ff 41229rm -f conftest.err conftest.$ac_objext \
41230 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41231LIBS=$ac_check_lib_save_LIBS
41232fi
41233echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_inet_aton" >&5
41234echo "${ECHO_T}$ac_cv_lib_44bsd_inet_aton" >&6
41235if test $ac_cv_lib_44bsd_inet_aton = yes; then
41236 cat >>confdefs.h <<_ACEOF
41237#define HAVE_LIB44BSD 1
41238_ACEOF
8a15e65e 41239
41240 LIBS="-l44bsd $LIBS"
41241
090089c4 41242fi
41243
8a15e65e 41244fi
8a15e65e 41245
33f5f8b9 41246
41247echo "$as_me:$LINENO: checking for main in -lresolv" >&5
41248echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
41249if test "${ac_cv_lib_resolv_main+set}" = set; then
41250 echo $ECHO_N "(cached) $ECHO_C" >&6
8a15e65e 41251else
33f5f8b9 41252 ac_check_lib_save_LIBS=$LIBS
6509a1a0 41253LIBS="-lresolv $LIBS"
33f5f8b9 41254cat >conftest.$ac_ext <<_ACEOF
ad21602a 41255/* confdefs.h. */
41256_ACEOF
41257cat confdefs.h >>conftest.$ac_ext
41258cat >>conftest.$ac_ext <<_ACEOF
41259/* end confdefs.h. */
090089c4 41260
090089c4 41261
33f5f8b9 41262int
41263main ()
41264{
41265main ();
41266 ;
41267 return 0;
41268}
41269_ACEOF
41270rm -f conftest.$ac_objext conftest$ac_exeext
41271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41272 (eval $ac_link) 2>conftest.er1
33f5f8b9 41273 ac_status=$?
af3004ff 41274 grep -v '^ *+' conftest.er1 >conftest.err
41275 rm -f conftest.er1
41276 cat conftest.err >&5
33f5f8b9 41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278 (exit $ac_status); } &&
6263d81f 41279 { ac_try='test -z "$ac_c_werror_flag"
41280 || test ! -s conftest.err'
af3004ff 41281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41282 (eval $ac_try) 2>&5
41283 ac_status=$?
41284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41285 (exit $ac_status); }; } &&
41286 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41288 (eval $ac_try) 2>&5
41289 ac_status=$?
41290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41291 (exit $ac_status); }; }; then
41292 ac_cv_lib_resolv_main=yes
41293else
41294 echo "$as_me: failed program was:" >&5
ad21602a 41295sed 's/^/| /' conftest.$ac_ext >&5
41296
33f5f8b9 41297ac_cv_lib_resolv_main=no
41298fi
af3004ff 41299rm -f conftest.err conftest.$ac_objext \
41300 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41301LIBS=$ac_check_lib_save_LIBS
41302fi
41303echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
41304echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
41305if test $ac_cv_lib_resolv_main = yes; then
41306 cat >>confdefs.h <<_ACEOF
41307#define HAVE_LIBRESOLV 1
41308_ACEOF
8a15e65e 41309
6509a1a0 41310 LIBS="-lresolv $LIBS"
8a15e65e 41311
090089c4 41312fi
41313
78743365 41314 ;;
04a56fa3 41315 esac
41316fi
795c3ae0 41317case "$host_os" in
41318mingw|mingw32)
41319 echo "Use MSVCRT for math functions."
41320 ;;
41321 *)
33f5f8b9 41322
41323echo "$as_me:$LINENO: checking for main in -lm" >&5
41324echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
41325if test "${ac_cv_lib_m_main+set}" = set; then
41326 echo $ECHO_N "(cached) $ECHO_C" >&6
e0bddc45 41327else
33f5f8b9 41328 ac_check_lib_save_LIBS=$LIBS
e0bddc45 41329LIBS="-lm $LIBS"
33f5f8b9 41330cat >conftest.$ac_ext <<_ACEOF
ad21602a 41331/* confdefs.h. */
41332_ACEOF
41333cat confdefs.h >>conftest.$ac_ext
41334cat >>conftest.$ac_ext <<_ACEOF
41335/* end confdefs.h. */
e0bddc45 41336
e0bddc45 41337
33f5f8b9 41338int
41339main ()
41340{
41341main ();
41342 ;
41343 return 0;
41344}
41345_ACEOF
41346rm -f conftest.$ac_objext conftest$ac_exeext
41347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41348 (eval $ac_link) 2>conftest.er1
33f5f8b9 41349 ac_status=$?
af3004ff 41350 grep -v '^ *+' conftest.er1 >conftest.err
41351 rm -f conftest.er1
41352 cat conftest.err >&5
33f5f8b9 41353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41354 (exit $ac_status); } &&
6263d81f 41355 { ac_try='test -z "$ac_c_werror_flag"
41356 || test ! -s conftest.err'
af3004ff 41357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41358 (eval $ac_try) 2>&5
41359 ac_status=$?
41360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361 (exit $ac_status); }; } &&
41362 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41364 (eval $ac_try) 2>&5
41365 ac_status=$?
41366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41367 (exit $ac_status); }; }; then
41368 ac_cv_lib_m_main=yes
41369else
41370 echo "$as_me: failed program was:" >&5
ad21602a 41371sed 's/^/| /' conftest.$ac_ext >&5
41372
33f5f8b9 41373ac_cv_lib_m_main=no
41374fi
af3004ff 41375rm -f conftest.err conftest.$ac_objext \
41376 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41377LIBS=$ac_check_lib_save_LIBS
41378fi
41379echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
41380echo "${ECHO_T}$ac_cv_lib_m_main" >&6
41381if test $ac_cv_lib_m_main = yes; then
41382 cat >>confdefs.h <<_ACEOF
41383#define HAVE_LIBM 1
41384_ACEOF
e0bddc45 41385
41386 LIBS="-lm $LIBS"
41387
e0bddc45 41388fi
41389
795c3ae0 41390 ;;
41391esac
090089c4 41392
33f5f8b9 41393echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
41394echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
41395if test "${ac_cv_lib_crypt_crypt+set}" = set; then
41396 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 41397else
33f5f8b9 41398 ac_check_lib_save_LIBS=$LIBS
090089c4 41399LIBS="-lcrypt $LIBS"
33f5f8b9 41400cat >conftest.$ac_ext <<_ACEOF
ad21602a 41401/* confdefs.h. */
41402_ACEOF
41403cat confdefs.h >>conftest.$ac_ext
41404cat >>conftest.$ac_ext <<_ACEOF
41405/* end confdefs.h. */
33f5f8b9 41406
03a0d3b0 41407/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 41408#ifdef __cplusplus
41409extern "C"
41410#endif
03a0d3b0 41411/* We use char because int might match the return type of a gcc2
33f5f8b9 41412 builtin and then its argument prototype would still apply. */
528b2c61 41413char crypt ();
33f5f8b9 41414int
41415main ()
41416{
41417crypt ();
41418 ;
41419 return 0;
41420}
41421_ACEOF
41422rm -f conftest.$ac_objext conftest$ac_exeext
41423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41424 (eval $ac_link) 2>conftest.er1
33f5f8b9 41425 ac_status=$?
af3004ff 41426 grep -v '^ *+' conftest.er1 >conftest.err
41427 rm -f conftest.er1
41428 cat conftest.err >&5
33f5f8b9 41429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41430 (exit $ac_status); } &&
6263d81f 41431 { ac_try='test -z "$ac_c_werror_flag"
41432 || test ! -s conftest.err'
af3004ff 41433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41434 (eval $ac_try) 2>&5
41435 ac_status=$?
41436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41437 (exit $ac_status); }; } &&
41438 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41440 (eval $ac_try) 2>&5
41441 ac_status=$?
41442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); }; }; then
41444 ac_cv_lib_crypt_crypt=yes
41445else
41446 echo "$as_me: failed program was:" >&5
ad21602a 41447sed 's/^/| /' conftest.$ac_ext >&5
41448
33f5f8b9 41449ac_cv_lib_crypt_crypt=no
41450fi
af3004ff 41451rm -f conftest.err conftest.$ac_objext \
41452 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41453LIBS=$ac_check_lib_save_LIBS
41454fi
41455echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
41456echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
41457if test $ac_cv_lib_crypt_crypt = yes; then
042b1f8a 41458 CRYPTLIB="-lcrypt"
042b1f8a 41459fi
0f5a16f8 41460
0f5a16f8 41461
042b1f8a 41462
0205c9c8 41463if test "$with_dl" = "yes"; then
33f5f8b9 41464
41465echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41466echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41467if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41468 echo $ECHO_N "(cached) $ECHO_C" >&6
090089c4 41469else
33f5f8b9 41470 ac_check_lib_save_LIBS=$LIBS
042b1f8a 41471LIBS="-ldl $LIBS"
33f5f8b9 41472cat >conftest.$ac_ext <<_ACEOF
ad21602a 41473/* confdefs.h. */
41474_ACEOF
41475cat confdefs.h >>conftest.$ac_ext
41476cat >>conftest.$ac_ext <<_ACEOF
41477/* end confdefs.h. */
33f5f8b9 41478
042b1f8a 41479/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 41480#ifdef __cplusplus
41481extern "C"
41482#endif
042b1f8a 41483/* We use char because int might match the return type of a gcc2
33f5f8b9 41484 builtin and then its argument prototype would still apply. */
41485char dlopen ();
33f5f8b9 41486int
41487main ()
41488{
41489dlopen ();
41490 ;
41491 return 0;
41492}
41493_ACEOF
41494rm -f conftest.$ac_objext conftest$ac_exeext
41495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41496 (eval $ac_link) 2>conftest.er1
33f5f8b9 41497 ac_status=$?
af3004ff 41498 grep -v '^ *+' conftest.er1 >conftest.err
41499 rm -f conftest.er1
41500 cat conftest.err >&5
33f5f8b9 41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); } &&
6263d81f 41503 { ac_try='test -z "$ac_c_werror_flag"
41504 || test ! -s conftest.err'
af3004ff 41505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41506 (eval $ac_try) 2>&5
41507 ac_status=$?
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); }; } &&
41510 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41512 (eval $ac_try) 2>&5
41513 ac_status=$?
41514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515 (exit $ac_status); }; }; then
41516 ac_cv_lib_dl_dlopen=yes
41517else
41518 echo "$as_me: failed program was:" >&5
ad21602a 41519sed 's/^/| /' conftest.$ac_ext >&5
41520
33f5f8b9 41521ac_cv_lib_dl_dlopen=no
41522fi
af3004ff 41523rm -f conftest.err conftest.$ac_objext \
41524 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41525LIBS=$ac_check_lib_save_LIBS
41526fi
41527echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41528echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41529if test $ac_cv_lib_dl_dlopen = yes; then
41530 cat >>confdefs.h <<_ACEOF
41531#define HAVE_LIBDL 1
41532_ACEOF
0205c9c8 41533
41534 LIBS="-ldl $LIBS"
41535
042b1f8a 41536fi
41537
0205c9c8 41538fi
090089c4 41539
0205c9c8 41540if test "$with_pthreads" = "yes"; then
fd58136d 41541 SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT"
41542 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT"
8fab2eba 41543 case "$host" in
41544 i386-unknown-freebsd*)
41545 if test "$GCC" = "yes" ; then
41546 if test -z "$PRESET_LDFLAGS"; then
41547 LDFLAGS="$LDFLAGS -pthread"
41548 fi
41549 fi
41550 ;;
41551 *-solaris2.*)
41552 if test "$GCC" = "yes" ; then
fd58136d 41553 SQUID_CFLAGS="$SQUID_CFLAGS -pthreads"
41554 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pthreads"
8fab2eba 41555 else
fd58136d 41556 SQUID_CFLAGS="$SQUID_CFLAGS -mt"
41557 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -mt"
8fab2eba 41558 fi
41559 ;;
41560 esac
33f5f8b9 41561
41562echo "$as_me:$LINENO: checking for main in -lpthread" >&5
41563echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
41564if test "${ac_cv_lib_pthread_main+set}" = set; then
41565 echo $ECHO_N "(cached) $ECHO_C" >&6
47619a23 41566else
33f5f8b9 41567 ac_check_lib_save_LIBS=$LIBS
47619a23 41568LIBS="-lpthread $LIBS"
33f5f8b9 41569cat >conftest.$ac_ext <<_ACEOF
ad21602a 41570/* confdefs.h. */
41571_ACEOF
41572cat confdefs.h >>conftest.$ac_ext
41573cat >>conftest.$ac_ext <<_ACEOF
41574/* end confdefs.h. */
47619a23 41575
47619a23 41576
33f5f8b9 41577int
41578main ()
41579{
41580main ();
41581 ;
41582 return 0;
41583}
41584_ACEOF
41585rm -f conftest.$ac_objext conftest$ac_exeext
41586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41587 (eval $ac_link) 2>conftest.er1
33f5f8b9 41588 ac_status=$?
af3004ff 41589 grep -v '^ *+' conftest.er1 >conftest.err
41590 rm -f conftest.er1
41591 cat conftest.err >&5
33f5f8b9 41592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41593 (exit $ac_status); } &&
6263d81f 41594 { ac_try='test -z "$ac_c_werror_flag"
41595 || test ! -s conftest.err'
af3004ff 41596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41597 (eval $ac_try) 2>&5
41598 ac_status=$?
41599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600 (exit $ac_status); }; } &&
41601 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41603 (eval $ac_try) 2>&5
41604 ac_status=$?
41605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606 (exit $ac_status); }; }; then
41607 ac_cv_lib_pthread_main=yes
41608else
41609 echo "$as_me: failed program was:" >&5
ad21602a 41610sed 's/^/| /' conftest.$ac_ext >&5
41611
33f5f8b9 41612ac_cv_lib_pthread_main=no
41613fi
af3004ff 41614rm -f conftest.err conftest.$ac_objext \
41615 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41616LIBS=$ac_check_lib_save_LIBS
41617fi
41618echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
41619echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
41620if test $ac_cv_lib_pthread_main = yes; then
41621 cat >>confdefs.h <<_ACEOF
41622#define HAVE_LIBPTHREAD 1
41623_ACEOF
0205c9c8 41624
41625 LIBS="-lpthread $LIBS"
41626
47619a23 41627fi
41628
0205c9c8 41629fi
47619a23 41630
0205c9c8 41631if test "$with_aio" = "yes"; then
33f5f8b9 41632
41633echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
41634echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6
41635if test "${ac_cv_lib_rt_aio_read+set}" = set; then
41636 echo $ECHO_N "(cached) $ECHO_C" >&6
f85c88f3 41637else
33f5f8b9 41638 ac_check_lib_save_LIBS=$LIBS
f85c88f3 41639LIBS="-lrt $LIBS"
33f5f8b9 41640cat >conftest.$ac_ext <<_ACEOF
ad21602a 41641/* confdefs.h. */
41642_ACEOF
41643cat confdefs.h >>conftest.$ac_ext
41644cat >>conftest.$ac_ext <<_ACEOF
41645/* end confdefs.h. */
33f5f8b9 41646
f85c88f3 41647/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 41648#ifdef __cplusplus
41649extern "C"
41650#endif
f85c88f3 41651/* We use char because int might match the return type of a gcc2
33f5f8b9 41652 builtin and then its argument prototype would still apply. */
41653char aio_read ();
33f5f8b9 41654int
41655main ()
41656{
41657aio_read ();
41658 ;
41659 return 0;
41660}
41661_ACEOF
41662rm -f conftest.$ac_objext conftest$ac_exeext
41663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41664 (eval $ac_link) 2>conftest.er1
33f5f8b9 41665 ac_status=$?
af3004ff 41666 grep -v '^ *+' conftest.er1 >conftest.err
41667 rm -f conftest.er1
41668 cat conftest.err >&5
33f5f8b9 41669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670 (exit $ac_status); } &&
6263d81f 41671 { ac_try='test -z "$ac_c_werror_flag"
41672 || test ! -s conftest.err'
af3004ff 41673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41674 (eval $ac_try) 2>&5
41675 ac_status=$?
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); }; } &&
41678 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41680 (eval $ac_try) 2>&5
41681 ac_status=$?
41682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683 (exit $ac_status); }; }; then
41684 ac_cv_lib_rt_aio_read=yes
41685else
41686 echo "$as_me: failed program was:" >&5
ad21602a 41687sed 's/^/| /' conftest.$ac_ext >&5
41688
33f5f8b9 41689ac_cv_lib_rt_aio_read=no
41690fi
af3004ff 41691rm -f conftest.err conftest.$ac_objext \
41692 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41693LIBS=$ac_check_lib_save_LIBS
41694fi
41695echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
41696echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6
41697if test $ac_cv_lib_rt_aio_read = yes; then
41698 cat >>confdefs.h <<_ACEOF
41699#define HAVE_LIBRT 1
41700_ACEOF
0205c9c8 41701
41702 LIBS="-lrt $LIBS"
41703
967aecd2 41704else
41705
41706echo "$as_me:$LINENO: checking for aio_read in -laio" >&5
41707echo $ECHO_N "checking for aio_read in -laio... $ECHO_C" >&6
41708if test "${ac_cv_lib_aio_aio_read+set}" = set; then
41709 echo $ECHO_N "(cached) $ECHO_C" >&6
41710else
41711 ac_check_lib_save_LIBS=$LIBS
41712LIBS="-laio $LIBS"
41713cat >conftest.$ac_ext <<_ACEOF
41714/* confdefs.h. */
41715_ACEOF
41716cat confdefs.h >>conftest.$ac_ext
41717cat >>conftest.$ac_ext <<_ACEOF
41718/* end confdefs.h. */
41719
41720/* Override any gcc2 internal prototype to avoid an error. */
41721#ifdef __cplusplus
41722extern "C"
41723#endif
41724/* We use char because int might match the return type of a gcc2
41725 builtin and then its argument prototype would still apply. */
41726char aio_read ();
41727int
41728main ()
41729{
41730aio_read ();
41731 ;
41732 return 0;
41733}
41734_ACEOF
41735rm -f conftest.$ac_objext conftest$ac_exeext
41736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41737 (eval $ac_link) 2>conftest.er1
41738 ac_status=$?
41739 grep -v '^ *+' conftest.er1 >conftest.err
41740 rm -f conftest.er1
41741 cat conftest.err >&5
41742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743 (exit $ac_status); } &&
6263d81f 41744 { ac_try='test -z "$ac_c_werror_flag"
41745 || test ! -s conftest.err'
967aecd2 41746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41747 (eval $ac_try) 2>&5
41748 ac_status=$?
41749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); }; } &&
41751 { ac_try='test -s conftest$ac_exeext'
41752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41753 (eval $ac_try) 2>&5
41754 ac_status=$?
41755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41756 (exit $ac_status); }; }; then
41757 ac_cv_lib_aio_aio_read=yes
41758else
41759 echo "$as_me: failed program was:" >&5
41760sed 's/^/| /' conftest.$ac_ext >&5
41761
41762ac_cv_lib_aio_aio_read=no
41763fi
41764rm -f conftest.err conftest.$ac_objext \
41765 conftest$ac_exeext conftest.$ac_ext
41766LIBS=$ac_check_lib_save_LIBS
41767fi
41768echo "$as_me:$LINENO: result: $ac_cv_lib_aio_aio_read" >&5
41769echo "${ECHO_T}$ac_cv_lib_aio_aio_read" >&6
41770if test $ac_cv_lib_aio_aio_read = yes; then
41771 cat >>confdefs.h <<_ACEOF
41772#define HAVE_LIBAIO 1
41773_ACEOF
41774
41775 LIBS="-laio $LIBS"
41776
41777fi
41778
f85c88f3 41779fi
41780
0205c9c8 41781fi
f85c88f3 41782
86ec11aa 41783case "$host" in
41784 *-pc-sco3.2*)
33f5f8b9 41785
41786echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41787echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
41788if test "${ac_cv_lib_intl_strftime+set}" = set; then
41789 echo $ECHO_N "(cached) $ECHO_C" >&6
86ec11aa 41790else
33f5f8b9 41791 ac_check_lib_save_LIBS=$LIBS
86ec11aa 41792LIBS="-lintl $LIBS"
33f5f8b9 41793cat >conftest.$ac_ext <<_ACEOF
ad21602a 41794/* confdefs.h. */
41795_ACEOF
41796cat confdefs.h >>conftest.$ac_ext
41797cat >>conftest.$ac_ext <<_ACEOF
41798/* end confdefs.h. */
33f5f8b9 41799
86ec11aa 41800/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 41801#ifdef __cplusplus
41802extern "C"
41803#endif
86ec11aa 41804/* We use char because int might match the return type of a gcc2
33f5f8b9 41805 builtin and then its argument prototype would still apply. */
41806char strftime ();
33f5f8b9 41807int
41808main ()
41809{
41810strftime ();
41811 ;
41812 return 0;
41813}
41814_ACEOF
41815rm -f conftest.$ac_objext conftest$ac_exeext
41816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 41817 (eval $ac_link) 2>conftest.er1
33f5f8b9 41818 ac_status=$?
af3004ff 41819 grep -v '^ *+' conftest.er1 >conftest.err
41820 rm -f conftest.er1
41821 cat conftest.err >&5
33f5f8b9 41822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823 (exit $ac_status); } &&
6263d81f 41824 { ac_try='test -z "$ac_c_werror_flag"
41825 || test ! -s conftest.err'
af3004ff 41826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41827 (eval $ac_try) 2>&5
41828 ac_status=$?
41829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41830 (exit $ac_status); }; } &&
41831 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 41832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833 (eval $ac_try) 2>&5
41834 ac_status=$?
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); }; }; then
41837 ac_cv_lib_intl_strftime=yes
41838else
41839 echo "$as_me: failed program was:" >&5
ad21602a 41840sed 's/^/| /' conftest.$ac_ext >&5
41841
33f5f8b9 41842ac_cv_lib_intl_strftime=no
41843fi
af3004ff 41844rm -f conftest.err conftest.$ac_objext \
41845 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 41846LIBS=$ac_check_lib_save_LIBS
41847fi
41848echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41849echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
41850if test $ac_cv_lib_intl_strftime = yes; then
41851 cat >>confdefs.h <<_ACEOF
41852#define HAVE_LIBINTL 1
41853_ACEOF
86ec11aa 41854
41855 LIBS="-lintl $LIBS"
41856
86ec11aa 41857fi
41858
41859 ;;
41860esac
41861
30f36b47 41862case "$host_os" in
41863mingw|mingw32)
41864 LIB_LDAP="-lwldap32"
41865 LIB_LBER=""
41866 ;;
41867*)
41868 LIB_LDAP="-lldap"
41869 echo "$as_me:$LINENO: checking for main in -llber" >&5
41870echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6
41871if test "${ac_cv_lib_lber_main+set}" = set; then
41872 echo $ECHO_N "(cached) $ECHO_C" >&6
41873else
41874 ac_check_lib_save_LIBS=$LIBS
41875LIBS="-llber $LIBS"
41876cat >conftest.$ac_ext <<_ACEOF
41877/* confdefs.h. */
41878_ACEOF
41879cat confdefs.h >>conftest.$ac_ext
41880cat >>conftest.$ac_ext <<_ACEOF
41881/* end confdefs.h. */
41882
41883
41884int
41885main ()
41886{
41887main ();
41888 ;
41889 return 0;
41890}
41891_ACEOF
41892rm -f conftest.$ac_objext conftest$ac_exeext
41893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41894 (eval $ac_link) 2>conftest.er1
41895 ac_status=$?
41896 grep -v '^ *+' conftest.er1 >conftest.err
41897 rm -f conftest.er1
41898 cat conftest.err >&5
41899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900 (exit $ac_status); } &&
6263d81f 41901 { ac_try='test -z "$ac_c_werror_flag"
41902 || test ! -s conftest.err'
30f36b47 41903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41904 (eval $ac_try) 2>&5
41905 ac_status=$?
41906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41907 (exit $ac_status); }; } &&
41908 { ac_try='test -s conftest$ac_exeext'
41909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41910 (eval $ac_try) 2>&5
41911 ac_status=$?
41912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41913 (exit $ac_status); }; }; then
41914 ac_cv_lib_lber_main=yes
41915else
41916 echo "$as_me: failed program was:" >&5
41917sed 's/^/| /' conftest.$ac_ext >&5
41918
41919ac_cv_lib_lber_main=no
41920fi
41921rm -f conftest.err conftest.$ac_objext \
41922 conftest$ac_exeext conftest.$ac_ext
41923LIBS=$ac_check_lib_save_LIBS
41924fi
41925echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
41926echo "${ECHO_T}$ac_cv_lib_lber_main" >&6
41927if test $ac_cv_lib_lber_main = yes; then
41928 LIB_LBER="-llber"
41929fi
41930
41931 ;;
41932esac
41933
41934
41935
fcfda3ce 41936DBLIB=
a258dfca 41937echo "$as_me:$LINENO: checking if dbopen needs -ldb" >&5
41938echo $ECHO_N "checking if dbopen needs -ldb... $ECHO_C" >&6
41939if test "${ac_cv_dbopen_libdb+set}" = set; then
fcfda3ce 41940 echo $ECHO_N "(cached) $ECHO_C" >&6
41941else
fcfda3ce 41942
32d0bbd7 41943SAVED_LIBS="$LIBS"; LIBS="$LIBS -ldb"
a258dfca 41944 cat >conftest.$ac_ext <<_ACEOF
20d16514 41945/* confdefs.h. */
41946_ACEOF
41947cat confdefs.h >>conftest.$ac_ext
41948cat >>conftest.$ac_ext <<_ACEOF
41949/* end confdefs.h. */
41950
a258dfca 41951#if HAVE_SYS_TYPES_H
41952#include <sys/types.h>
20d16514 41953#endif
a258dfca 41954#if HAVE_LIMITS_H
41955#include <limits.h>
41956#endif
41957#if HAVE_DB_185_H
41958#include <db_185.h>
41959#elif HAVE_DB_H
41960#include <db.h>
20d16514 41961#endif
20d16514 41962int
41963main ()
41964{
a258dfca 41965dbopen((void *)0L, 0, 0, DB_HASH, (void *)0L)
20d16514 41966 ;
41967 return 0;
41968}
41969_ACEOF
32d0bbd7 41970rm -f conftest.$ac_objext conftest$ac_exeext
41971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41972 (eval $ac_link) 2>conftest.er1
20d16514 41973 ac_status=$?
41974 grep -v '^ *+' conftest.er1 >conftest.err
41975 rm -f conftest.er1
41976 cat conftest.err >&5
41977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978 (exit $ac_status); } &&
6263d81f 41979 { ac_try='test -z "$ac_c_werror_flag"
41980 || test ! -s conftest.err'
20d16514 41981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41982 (eval $ac_try) 2>&5
41983 ac_status=$?
41984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41985 (exit $ac_status); }; } &&
32d0bbd7 41986 { ac_try='test -s conftest$ac_exeext'
20d16514 41987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41988 (eval $ac_try) 2>&5
41989 ac_status=$?
41990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41991 (exit $ac_status); }; }; then
32d0bbd7 41992 ac_cv_dbopen_libdb="yes"
20d16514 41993else
41994 echo "$as_me: failed program was:" >&5
41995sed 's/^/| /' conftest.$ac_ext >&5
41996
a258dfca 41997ac_cv_dbopen_libdb="no"
fcfda3ce 41998fi
32d0bbd7 41999rm -f conftest.err conftest.$ac_objext \
42000 conftest$ac_exeext conftest.$ac_ext
42001LIBS="$SAVED_LIBS"
fcfda3ce 42002
a258dfca 42003fi
42004echo "$as_me:$LINENO: result: $ac_cv_dbopen_libdb" >&5
42005echo "${ECHO_T}$ac_cv_dbopen_libdb" >&6
2b2161bb 42006if test $ac_cv_dbopen_libdb = yes; then
32d0bbd7 42007 LIB_DB="-ldb"
42008fi
fcfda3ce 42009
42010
77f675ad 42011case "$host" in
88738790 42012 i386-*-solaris2.*)
58f24c1d 42013 if test "$GCC" = "yes"; then
42014 echo "Removing -O for gcc on $host"
80e92d6d 42015 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
58f24c1d 42016 fi
42017 ;;
77f675ad 42018 *-sgi-irix*)
42019 echo "Removing -lsocket for IRIX..."
6716b242 42020 LIBS=`echo $LIBS | sed -e s/-lsocket//`
77f675ad 42021 echo "Removing -lnsl for IRIX..."
6716b242 42022 LIBS=`echo $LIBS | sed -e s/-lnsl//`
c415c128 42023 ac_cv_lib_nsl_main=no
b44c0fb4 42024 echo "Removing -lbsd for IRIX..."
42025 LIBS=`echo $LIBS | sed -e s/-lbsd//`
77f675ad 42026 ;;
4ba0bd0e 42027 *-ibm-aix*)
42028 echo "Removing -lbsd for AIX..."
42029 LIBS=`echo $LIBS | sed -e s/-lbsd//`
21be5e88 42030 case "$host" in
42031 *-ibm-aix4*)
42032 echo "disabling snprintf/vsnprintf for $host"
42033 ac_cv_func_snprintf=no
42034 ac_cv_func_vsnprintf=no
42035 ;;
42036 esac
4ba0bd0e 42037 ;;
30a4f2a8 42038 *m88k*)
fd58136d 42039 SQUID_CFLAGS="$SQUID_CFLAGS -D_SQUID_MOTOROLA_"
42040 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_SQUID_MOTOROLA_"
33f5f8b9 42041
42042cat >>confdefs.h <<\_ACEOF
58f24c1d 42043#define GETTIMEOFDAY_NO_TZP 1
33f5f8b9 42044_ACEOF
58f24c1d 42045
30a4f2a8 42046 ;;
580ce039 42047 *-*-solaris2.[0-4])
33f5f8b9 42048 cat >>confdefs.h <<\_ACEOF
58f24c1d 42049#define GETTIMEOFDAY_NO_TZP 1
33f5f8b9 42050_ACEOF
8a7f0105 42051
42052 ;;
711fa75e 42053 *-sony-newsos[56]*)
33f5f8b9 42054 cat >>confdefs.h <<\_ACEOF
8a7f0105 42055#define GETTIMEOFDAY_NO_TZP 1
33f5f8b9 42056_ACEOF
30a4f2a8 42057
58f24c1d 42058 ;;
77f675ad 42059esac
42060
57faa85a 42061# Remove optimization for GCC 2.95.[123]
d20b1cd0 42062# gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
42063if test "$GCC" = "yes"; then
42064 GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
42065 case "$GCCVER" in
57faa85a 42066 2.95.[123])
d20b1cd0 42067 echo "Removing -O for gcc on $host with GCC $GCCVER"
42068 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
42069 ;;
42070 esac
42071fi
42072
176d10ee 42073# Recommended by Balint Nagy Endre <bne@CareNet.hu>
42074case "$host" in
42075 *-univel-sysv4.2MP)
42076 if test `uname -v` = "2.03"; then
42077 echo "disabling mallinfo for $host"
42078 ac_cv_func_mallinfo=no
42079 fi
42080 ;;
42081esac
42082
84cecfd2 42083# Disable poll() on certain platforms. Override by setting ac_cv_func_poll
42084# when running configure.
42085if test -z "$ac_cv_func_poll"; then
42086 case "$host" in
42087 alpha-dec-osf3.*)
42088 # John Kay (jkay@nlanr.net) 19970818
42089 echo "disabling poll for $host..."
42090 ac_cv_func_poll='no'
42091 ;;
42092 *-hp-hpux*.*)
42093 # Duane Wessels
42094 echo "disabling poll for $host..."
42095 ac_cv_func_poll='no'
42096 ;;
42097 *-linux-*)
4d683a65 42098 # Henrik Nordstrom (hno@squid-cache.org) 19980817
9bb83c8b 42099 # poll is problematic on Linux. We disable it
42100 # by default until Linux gets it right.
b6a2f15e 42101 rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
42102 if test $rev -lt 002002; then
42103 echo "disabling poll for $host < 2.2..."
42104 ac_cv_func_poll='no'
42105 fi
84cecfd2 42106 ;;
c68e9c6b 42107 powerpc-ibm-aix4.1.*)
42108 # Mike Laster (mlaster@metavillage.com) 19981021
42109 echo "disabling poll for $host..."
42110 ac_cv_func_poll='no'
42111 ;;
86ec11aa 42112 *-pc-sco3.2*)
42113 # Robert Side <rside@aiinc.bc.ca>
42114 # Mon, 18 Jan 1999 17:48:00 GMT
42115 echo "disabling poll for $host..."
42116 ac_cv_func_poll='no'
42117 ;;
84cecfd2 42118 esac
42119fi
176d10ee 42120
795c3ae0 42121case "$host_os" in
42122mingw|mingw32)
42123 ac_cv_func_statfs='yes'
42124 ;;
42125esac
42126
33f5f8b9 42127
42128
42129
42130
42131
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144
42145
42146
42147
42148
42149
42150
42151
42152
42153
42154
42155
42156
42157
42158
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172
f9576890 42173
42174
42175
42176
33f5f8b9 42177
42178
c8a31e86 42179
abae1390 42180
afbb1069 42181
33f5f8b9 42182
42183
6716b242 42184for ac_func in \
fe0810ac 42185 backtrace_symbols_fd \
e5a6c5f5 42186 bcopy \
42187 bswap_16 \
42188 bswap_32 \
f9576890 42189 bswap16 \
42190 bswap32 \
df087e68 42191 crypt \
4ac29a5b 42192 fchmod \
6716b242 42193 getdtablesize \
8505e57b 42194 getpagesize \
593f8a68 42195 getpass \
e5a6c5f5 42196 getrlimit \
30a4f2a8 42197 getrusage \
9c1d8929 42198 getspnam \
f9576890 42199 htobe16 \
42200 htole16 \
30a4f2a8 42201 lrand48 \
6716b242 42202 mallinfo \
0f5efab0 42203 mallocblksize \
6716b242 42204 mallopt \
2ae6b9b0 42205 memcpy \
30a4f2a8 42206 memmove \
dac27377 42207 memset \
b99a6dec 42208 mkstemp \
1812b6c7 42209 mktime \
88738790 42210 mstats \
84cecfd2 42211 poll \
abae1390 42212 prctl \
e5a6c5f5 42213 pthread_attr_setschedparam \
cd748f27 42214 pthread_attr_setscope \
42215 pthread_setschedparam \
42b51993 42216 pthread_sigmask \
c68e9c6b 42217 putenv \
b1e77ec1 42218 random \
6716b242 42219 regcomp \
42220 regexec \
42221 regfree \
30a4f2a8 42222 res_init \
3f628dde 42223 rint \
c8a31e86 42224 sbrk \
e5a6c5f5 42225 select \
234967c9 42226 seteuid \
c415c128 42227 setgroups \
30a4f2a8 42228 setpgrp \
6716b242 42229 setrlimit \
30a4f2a8 42230 setsid \
42231 sigaction \
11430c03 42232 snprintf \
1c9bc448 42233 socketpair \
30a4f2a8 42234 srand48 \
b1e77ec1 42235 srandom \
b7db09a3 42236 statfs \
afbb1069 42237 strsep \
6716b242 42238 sysconf \
42239 syslog \
234967c9 42240 timegm \
28da5e0d 42241 vsnprintf \
6716b242 42242
42243do
33f5f8b9 42244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42245echo "$as_me:$LINENO: checking for $ac_func" >&5
42246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42247if eval "test \"\${$as_ac_var+set}\" = set"; then
42248 echo $ECHO_N "(cached) $ECHO_C" >&6
42249else
42250 cat >conftest.$ac_ext <<_ACEOF
ad21602a 42251/* confdefs.h. */
42252_ACEOF
42253cat confdefs.h >>conftest.$ac_ext
42254cat >>conftest.$ac_ext <<_ACEOF
42255/* end confdefs.h. */
af3004ff 42256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42258#define $ac_func innocuous_$ac_func
42259
c68e9c6b 42260/* System header to define __stub macros and hopefully few prototypes,
ad21602a 42261 which can conflict with char $ac_func (); below.
42262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42263 <limits.h> exists even on freestanding compilers. */
af3004ff 42264
ad21602a 42265#ifdef __STDC__
42266# include <limits.h>
42267#else
42268# include <assert.h>
42269#endif
af3004ff 42270
42271#undef $ac_func
42272
c68e9c6b 42273/* Override any gcc2 internal prototype to avoid an error. */
33f5f8b9 42274#ifdef __cplusplus
42275extern "C"
ad21602a 42276{
33f5f8b9 42277#endif
c68e9c6b 42278/* We use char because int might match the return type of a gcc2
33f5f8b9 42279 builtin and then its argument prototype would still apply. */
42280char $ac_func ();
c68e9c6b 42281/* The GNU C library defines this for functions which it implements
42282 to always fail with ENOSYS. Some functions are actually named
42283 something starting with __ and the normal name is an alias. */
42284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42285choke me
42286#else
ad21602a 42287char (*f) () = $ac_func;
42288#endif
42289#ifdef __cplusplus
42290}
c68e9c6b 42291#endif
42292
ad21602a 42293int
42294main ()
42295{
42296return f != $ac_func;
33f5f8b9 42297 ;
42298 return 0;
42299}
42300_ACEOF
42301rm -f conftest.$ac_objext conftest$ac_exeext
42302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 42303 (eval $ac_link) 2>conftest.er1
33f5f8b9 42304 ac_status=$?
af3004ff 42305 grep -v '^ *+' conftest.er1 >conftest.err
42306 rm -f conftest.er1
42307 cat conftest.err >&5
33f5f8b9 42308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309 (exit $ac_status); } &&
6263d81f 42310 { ac_try='test -z "$ac_c_werror_flag"
42311 || test ! -s conftest.err'
af3004ff 42312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42313 (eval $ac_try) 2>&5
42314 ac_status=$?
42315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316 (exit $ac_status); }; } &&
42317 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 42318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42319 (eval $ac_try) 2>&5
42320 ac_status=$?
42321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 (exit $ac_status); }; }; then
42323 eval "$as_ac_var=yes"
42324else
42325 echo "$as_me: failed program was:" >&5
ad21602a 42326sed 's/^/| /' conftest.$ac_ext >&5
42327
33f5f8b9 42328eval "$as_ac_var=no"
42329fi
af3004ff 42330rm -f conftest.err conftest.$ac_objext \
42331 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 42332fi
42333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42335if test `eval echo '${'$as_ac_var'}'` = yes; then
42336 cat >>confdefs.h <<_ACEOF
42337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42338_ACEOF
c68e9c6b 42339
c68e9c6b 42340fi
42341done
42342
42343
33f5f8b9 42344
1b3db6d9 42345
87de40f0 42346if test "$ac_cv_func_kqueue" = "yes" ; then
42347 SELECT_TYPE="kqueue"
33f5f8b9 42348
42349cat >>confdefs.h <<\_ACEOF
87de40f0 42350#define USE_KQUEUE 1
33f5f8b9 42351_ACEOF
1b3db6d9 42352
87de40f0 42353elif test "$ac_cv_func_epoll" = "yes" ; then
42354 SELECT_TYPE="epoll"
33f5f8b9 42355
42356cat >>confdefs.h <<\_ACEOF
87de40f0 42357#define USE_EPOLL 1
33f5f8b9 42358_ACEOF
1b3db6d9 42359
980ac155 42360 echo "$as_me:$LINENO: checking for epoll_create in -lepoll" >&5
42361echo $ECHO_N "checking for epoll_create in -lepoll... $ECHO_C" >&6
42362if test "${ac_cv_lib_epoll_epoll_create+set}" = set; then
42363 echo $ECHO_N "(cached) $ECHO_C" >&6
42364else
42365 ac_check_lib_save_LIBS=$LIBS
42366LIBS="-lepoll $LIBS"
42367cat >conftest.$ac_ext <<_ACEOF
42368/* confdefs.h. */
42369_ACEOF
42370cat confdefs.h >>conftest.$ac_ext
42371cat >>conftest.$ac_ext <<_ACEOF
42372/* end confdefs.h. */
42373
42374/* Override any gcc2 internal prototype to avoid an error. */
42375#ifdef __cplusplus
42376extern "C"
42377#endif
42378/* We use char because int might match the return type of a gcc2
42379 builtin and then its argument prototype would still apply. */
42380char epoll_create ();
42381int
42382main ()
42383{
42384epoll_create ();
42385 ;
42386 return 0;
42387}
42388_ACEOF
42389rm -f conftest.$ac_objext conftest$ac_exeext
42390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42391 (eval $ac_link) 2>conftest.er1
42392 ac_status=$?
42393 grep -v '^ *+' conftest.er1 >conftest.err
42394 rm -f conftest.er1
42395 cat conftest.err >&5
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); } &&
6263d81f 42398 { ac_try='test -z "$ac_c_werror_flag"
42399 || test ! -s conftest.err'
980ac155 42400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401 (eval $ac_try) 2>&5
42402 ac_status=$?
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); }; } &&
42405 { ac_try='test -s conftest$ac_exeext'
42406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42407 (eval $ac_try) 2>&5
42408 ac_status=$?
42409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); }; }; then
42411 ac_cv_lib_epoll_epoll_create=yes
42412else
42413 echo "$as_me: failed program was:" >&5
42414sed 's/^/| /' conftest.$ac_ext >&5
42415
42416ac_cv_lib_epoll_epoll_create=no
42417fi
42418rm -f conftest.err conftest.$ac_objext \
42419 conftest$ac_exeext conftest.$ac_ext
42420LIBS=$ac_check_lib_save_LIBS
42421fi
42422echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_create" >&5
42423echo "${ECHO_T}$ac_cv_lib_epoll_epoll_create" >&6
42424if test $ac_cv_lib_epoll_epoll_create = yes; then
42425 EPOLL_LIBS="-lepoll"
42426fi
42427
42428
87de40f0 42429elif test "$ac_cv_func_poll" = "yes" ; then
42430 SELECT_TYPE="poll"
33f5f8b9 42431
42432cat >>confdefs.h <<\_ACEOF
87de40f0 42433#define USE_POLL 1
33f5f8b9 42434_ACEOF
92b9f1fd 42435
87de40f0 42436elif test "$ac_cv_func_select" = "yes" ; then
2339d2e1 42437 case "$host_os" in
42438 mingw|mingw32)
42439 SELECT_TYPE="select_win32"
42440
42441cat >>confdefs.h <<\_ACEOF
42442#define USE_SELECT_WIN32 1
42443_ACEOF
42444
42445 ;;
42446 *)
42447 SELECT_TYPE="select"
867db1c2 42448
42449cat >>confdefs.h <<\_ACEOF
87de40f0 42450#define USE_SELECT 1
867db1c2 42451_ACEOF
42452
2339d2e1 42453 ;;
42454 esac
1b3db6d9 42455else
867db1c2 42456 echo "Eep! Can't find poll, kqueue, epoll, or select!"
1b3db6d9 42457 echo "I'll try select and hope for the best."
42458 SELECT_TYPE="select"
33f5f8b9 42459 cat >>confdefs.h <<\_ACEOF
1b3db6d9 42460#define USE_SELECT 1
33f5f8b9 42461_ACEOF
1b3db6d9 42462
42463fi
42464echo "Using ${SELECT_TYPE} for select loop."
1b3db6d9 42465
42466
33f5f8b9 42467echo "$as_me:$LINENO: checking if setresuid is implemented" >&5
42468echo $ECHO_N "checking if setresuid is implemented... $ECHO_C" >&6
42469if test "${ac_cv_func_setresuid+set}" = set; then
42470 echo $ECHO_N "(cached) $ECHO_C" >&6
60939927 42471else
42472 if test "$cross_compiling" = yes; then
ad21602a 42473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42474See \`config.log' for more details." >&5
42475echo "$as_me: error: cannot run test program while cross compiling
42476See \`config.log' for more details." >&2;}
33f5f8b9 42477 { (exit 1); exit 1; }; }
60939927 42478else
33f5f8b9 42479 cat >conftest.$ac_ext <<_ACEOF
ad21602a 42480/* confdefs.h. */
42481_ACEOF
42482cat confdefs.h >>conftest.$ac_ext
42483cat >>conftest.$ac_ext <<_ACEOF
42484/* end confdefs.h. */
60939927 42485
42486#include <stdlib.h>
5c51415d 42487 int main() {
42488 if(setresuid(-1,-1,-1)) {
42489 perror("setresuid:");
42490 exit(1);
60939927 42491 }
42492 exit(0);
5c51415d 42493 }
33f5f8b9 42494
42495_ACEOF
42496rm -f conftest$ac_exeext
42497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42498 (eval $ac_link) 2>&5
42499 ac_status=$?
42500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42503 (eval $ac_try) 2>&5
42504 ac_status=$?
42505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42506 (exit $ac_status); }; }; then
60939927 42507 ac_cv_func_setresuid="yes"
42508else
33f5f8b9 42509 echo "$as_me: program exited with status $ac_status" >&5
42510echo "$as_me: failed program was:" >&5
ad21602a 42511sed 's/^/| /' conftest.$ac_ext >&5
42512
33f5f8b9 42513( exit $ac_status )
42514ac_cv_func_setresuid="no"
60939927 42515fi
af3004ff 42516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60939927 42517fi
dd0004a0 42518
60939927 42519fi
33f5f8b9 42520echo "$as_me:$LINENO: result: $ac_cv_func_setresuid" >&5
42521echo "${ECHO_T}$ac_cv_func_setresuid" >&6
5c51415d 42522if test "$ac_cv_func_setresuid" = "yes" ; then
33f5f8b9 42523
42524cat >>confdefs.h <<\_ACEOF
5c51415d 42525#define HAVE_SETRESUID 1
33f5f8b9 42526_ACEOF
5c51415d 42527
42528fi
42529
c3d0c8b5 42530
42531
42532if false; then
42533 NEED_OWN_SNPRINTF_TRUE=
42534 NEED_OWN_SNPRINTF_FALSE='#'
42535else
42536 NEED_OWN_SNPRINTF_TRUE='#'
42537 NEED_OWN_SNPRINTF_FALSE=
42538fi
ad21602a 42539
c3d0c8b5 42540if test "$ac_cv_func_snprintf" = "no" || test "$ac_cv_func_vsnprintf" = "no" ; then
33f5f8b9 42541
c3d0c8b5 42542
42543if true; then
42544 NEED_OWN_SNPRINTF_TRUE=
42545 NEED_OWN_SNPRINTF_FALSE='#'
42546else
42547 NEED_OWN_SNPRINTF_TRUE='#'
42548 NEED_OWN_SNPRINTF_FALSE=
42549fi
ad21602a 42550
c3d0c8b5 42551fi
33f5f8b9 42552
afbb1069 42553
42554
42555if false; then
42556 NEED_OWN_STRSEP_TRUE=
42557 NEED_OWN_STRSEP_FALSE='#'
42558else
42559 NEED_OWN_STRSEP_TRUE='#'
42560 NEED_OWN_STRSEP_FALSE=
42561fi
42562
42563if test "$ac_cv_func_strsep" = "no" ; then
42564
42565
42566if true; then
42567 NEED_OWN_STRSEP_TRUE=
42568 NEED_OWN_STRSEP_FALSE='#'
42569else
42570 NEED_OWN_STRSEP_TRUE='#'
42571 NEED_OWN_STRSEP_FALSE=
42572fi
42573
42574fi
42575
97f82c6c 42576echo "$as_me:$LINENO: checking if va_copy is implemented" >&5
42577echo $ECHO_N "checking if va_copy is implemented... $ECHO_C" >&6
42578if test "${ac_cv_func_va_copy+set}" = set; then
42579 echo $ECHO_N "(cached) $ECHO_C" >&6
42580else
42581 if test "$cross_compiling" = yes; then
42582 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42583See \`config.log' for more details." >&5
42584echo "$as_me: error: cannot run test program while cross compiling
42585See \`config.log' for more details." >&2;}
42586 { (exit 1); exit 1; }; }
42587else
42588 cat >conftest.$ac_ext <<_ACEOF
97f82c6c 42589/* confdefs.h. */
42590_ACEOF
42591cat confdefs.h >>conftest.$ac_ext
42592cat >>conftest.$ac_ext <<_ACEOF
42593/* end confdefs.h. */
42594
42595 #include <stdarg.h>
42596 void f (int i, ...) {
42597 va_list args1, args2;
42598 va_start (args1, i);
42599 va_copy (args2, args1);
42600 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
42601 exit (1);
42602 va_end (args1); va_end (args2);
42603 }
42604 int main() {
42605 f (0, 42);
42606 return 0;
42607 }
42608
42609_ACEOF
42610rm -f conftest$ac_exeext
42611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42612 (eval $ac_link) 2>&5
42613 ac_status=$?
42614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42617 (eval $ac_try) 2>&5
42618 ac_status=$?
42619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42620 (exit $ac_status); }; }; then
42621 ac_cv_func_va_copy="yes"
42622else
42623 echo "$as_me: program exited with status $ac_status" >&5
42624echo "$as_me: failed program was:" >&5
42625sed 's/^/| /' conftest.$ac_ext >&5
42626
42627( exit $ac_status )
42628ac_cv_func_va_copy="no"
42629fi
af3004ff 42630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97f82c6c 42631fi
42632
42633fi
42634echo "$as_me:$LINENO: result: $ac_cv_func_va_copy" >&5
42635echo "${ECHO_T}$ac_cv_func_va_copy" >&6
42636if test "$ac_cv_func_va_copy" = "yes" ; then
42637
42638cat >>confdefs.h <<\_ACEOF
42639#define HAVE_VA_COPY 1
42640_ACEOF
42641
42642fi
42643
42644echo "$as_me:$LINENO: checking if __va_copy is implemented" >&5
42645echo $ECHO_N "checking if __va_copy is implemented... $ECHO_C" >&6
42646if test "${ac_cv_func___va_copy+set}" = set; then
42647 echo $ECHO_N "(cached) $ECHO_C" >&6
42648else
42649 if test "$cross_compiling" = yes; then
42650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42651See \`config.log' for more details." >&5
42652echo "$as_me: error: cannot run test program while cross compiling
42653See \`config.log' for more details." >&2;}
42654 { (exit 1); exit 1; }; }
42655else
42656 cat >conftest.$ac_ext <<_ACEOF
97f82c6c 42657/* confdefs.h. */
42658_ACEOF
42659cat confdefs.h >>conftest.$ac_ext
42660cat >>conftest.$ac_ext <<_ACEOF
42661/* end confdefs.h. */
42662
42663 #include <stdarg.h>
42664 void f (int i, ...) {
42665 va_list args1, args2;
42666 va_start (args1, i);
42667 __va_copy (args2, args1);
42668 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
42669 exit (1);
42670 va_end (args1); va_end (args2);
42671 }
42672 int main() {
42673 f (0, 42);
42674 return 0;
42675 }
42676
42677_ACEOF
42678rm -f conftest$ac_exeext
42679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42680 (eval $ac_link) 2>&5
42681 ac_status=$?
42682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42685 (eval $ac_try) 2>&5
42686 ac_status=$?
42687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688 (exit $ac_status); }; }; then
42689 ac_cv_func___va_copy="yes"
42690else
42691 echo "$as_me: program exited with status $ac_status" >&5
42692echo "$as_me: failed program was:" >&5
42693sed 's/^/| /' conftest.$ac_ext >&5
42694
42695( exit $ac_status )
42696ac_cv_func___va_copy="no"
42697fi
af3004ff 42698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97f82c6c 42699fi
42700
42701fi
42702echo "$as_me:$LINENO: result: $ac_cv_func___va_copy" >&5
42703echo "${ECHO_T}$ac_cv_func___va_copy" >&6
42704if test "$ac_cv_func___va_copy" = "yes" ; then
42705
42706cat >>confdefs.h <<\_ACEOF
42707#define HAVE___VA_COPY 1
42708_ACEOF
42709
42710fi
42711
5cafc1d6 42712if test "$IPF_TRANSPARENT" ; then
33f5f8b9 42713 echo "$as_me:$LINENO: checking if IP-Filter header files are installed" >&5
42714echo $ECHO_N "checking if IP-Filter header files are installed... $ECHO_C" >&6
42b51993 42715 # hold on to your hats...
42716 if test "$ac_cv_header_ip_compat_h" = "yes" ||
42717 test "$ac_cv_header_ip_fil_compat_h" = "yes" ||
87d21d8b 42718 test "$ac_cv_header_netinet_ip_compat_h" = "yes" ||
42719 test "$ac_cv_header_netinet_ip_fil_compat_h" = "yes" ; then
42b51993 42720 have_ipfilter_compat_header="yes"
42721 fi
42722 if test "x$have_ipfilter_compat_header" = "xyes" &&
eb824054 42723 test "$ac_cv_header_ip_fil_h" = "yes" &&
42724 test "$ac_cv_header_ip_nat_h" = "yes" ; then
42725 IPF_TRANSPARENT="yes"
33f5f8b9 42726 cat >>confdefs.h <<\_ACEOF
eb824054 42727#define IPF_TRANSPARENT 1
33f5f8b9 42728_ACEOF
5cafc1d6 42729
42b51993 42730 elif test "$have_ipfilter_compat_header" = "yes" &&
eb824054 42731 test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
42732 test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
5cafc1d6 42733 IPF_TRANSPARENT="yes"
33f5f8b9 42734 cat >>confdefs.h <<\_ACEOF
5cafc1d6 42735#define IPF_TRANSPARENT 1
33f5f8b9 42736_ACEOF
eb824054 42737
42738 else
42739 IPF_TRANSPARENT="no"
33f5f8b9 42740 cat >>confdefs.h <<\_ACEOF
eb824054 42741#define IPF_TRANSPARENT 0
33f5f8b9 42742_ACEOF
5cafc1d6 42743
42744 fi
33f5f8b9 42745 echo "$as_me:$LINENO: result: $IPF_TRANSPARENT" >&5
42746echo "${ECHO_T}$IPF_TRANSPARENT" >&6
42747fi
5cafc1d6 42748if test "$IPF_TRANSPARENT" = "no" ; then
42749 echo "WARNING: Cannot find necessary IP-Filter header files"
42750 echo " Transparent Proxy support WILL NOT be enabled"
42751 sleep 10
77d50320 42752elif test "$IPF_TRANSPARENT" = "yes" ; then
42753 case "$host" in
42754 *-solaris*)
42755 solrev=`uname -r | sh -c 'IFS=. read j n x; echo $n'`
42756 CFLAGS="-DSOLARIS2=$solrev $CFLAGS"
ecf2ebcf 42757 CXXFLAGS="-DSOLARIS2=$solrev $CXXFLAGS"
77d50320 42758 ;;
42759 *)
42760 ;;
42761 esac
5cafc1d6 42762fi
42763
0205c9c8 42764if test "$PF_TRANSPARENT" ; then
33f5f8b9 42765 echo "$as_me:$LINENO: checking if PF header file is installed" >&5
42766echo $ECHO_N "checking if PF header file is installed... $ECHO_C" >&6
0205c9c8 42767 # hold on to your hats...
42768 if test "$ac_cv_header_net_pfvar_h" = "yes"; then
42769 PF_TRANSPARENT="yes"
33f5f8b9 42770 cat >>confdefs.h <<\_ACEOF
0205c9c8 42771#define PF_TRANSPARENT 1
33f5f8b9 42772_ACEOF
0205c9c8 42773
42774 else
42775 PF_TRANSPARENT="no"
33f5f8b9 42776 cat >>confdefs.h <<\_ACEOF
0205c9c8 42777#define PF_TRANSPARENT 0
33f5f8b9 42778_ACEOF
0205c9c8 42779
42780 fi
33f5f8b9 42781 echo "$as_me:$LINENO: result: $PF_TRANSPARENT" >&5
42782echo "${ECHO_T}$PF_TRANSPARENT" >&6
0205c9c8 42783fi
42784if test "$PF_TRANSPARENT" = "no" ; then
42785 echo "WARNING: Cannot find necessary PF header file"
42786 echo " Transparent Proxy support WILL NOT be enabled"
42787 sleep 10
42788fi
42789
d852fbad 42790if test "$LINUX_NETFILTER" ; then
82fd361a 42791 echo "$as_me:$LINENO: checking if Linux (Netfilter) kernel header files are installed" >&5
42792echo $ECHO_N "checking if Linux (Netfilter) kernel header files are installed... $ECHO_C" >&6
d852fbad 42793 # hold on to your hats...
42794 if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then
42795 LINUX_NETFILTER="yes"
33f5f8b9 42796 cat >>confdefs.h <<\_ACEOF
d852fbad 42797#define LINUX_NETFILTER 1
33f5f8b9 42798_ACEOF
d852fbad 42799
42800 else
42801 LINUX_NETFILTER="no"
33f5f8b9 42802 cat >>confdefs.h <<\_ACEOF
d852fbad 42803#define LINUX_NETFILTER 0
33f5f8b9 42804_ACEOF
d852fbad 42805
42806 fi
33f5f8b9 42807 echo "$as_me:$LINENO: result: $LINUX_NETFILTER" >&5
42808echo "${ECHO_T}$LINUX_NETFILTER" >&6
42809fi
d852fbad 42810if test "$LINUX_NETFILTER" = "no" ; then
82fd361a 42811 echo "WARNING: Cannot find necessary Linux kernel (Netfilter) header files"
42812 echo " Linux Transparent Proxy support WILL NOT be enabled"
d852fbad 42813 sleep 10
42814fi
42815
91bc414e 42816if test -z "$USE_GNUREGEX" ; then
42817 case "$host" in
42818 *-sun-solaris2.[0-4])
42819 USE_GNUREGEX="yes"
42820 ;;
42821 *-next-nextstep*)
42822 USE_GNUREGEX="yes"
42823 ;;
42824 esac
42825fi
33f5f8b9 42826echo "$as_me:$LINENO: checking if GNUregex needs to be compiled" >&5
42827echo $ECHO_N "checking if GNUregex needs to be compiled... $ECHO_C" >&6
91bc414e 42828if test -z "$USE_GNUREGEX"; then
55878dfd 42829if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then
74946a0f 42830 USE_GNUREGEX="yes"
2f0eed11 42831else
33f5f8b9 42832 cat >conftest.$ac_ext <<_ACEOF
ad21602a 42833/* confdefs.h. */
42834_ACEOF
42835cat confdefs.h >>conftest.$ac_ext
42836cat >>conftest.$ac_ext <<_ACEOF
42837/* end confdefs.h. */
0cccc031 42838#include <sys/types.h>
91bc414e 42839#include <regex.h>
33f5f8b9 42840int
42841main ()
42842{
91bc414e 42843regex_t t; regcomp(&t,"",0);
33f5f8b9 42844 ;
42845 return 0;
42846}
42847_ACEOF
42848rm -f conftest.$ac_objext
42849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 42850 (eval $ac_compile) 2>conftest.er1
33f5f8b9 42851 ac_status=$?
af3004ff 42852 grep -v '^ *+' conftest.er1 >conftest.err
42853 rm -f conftest.er1
42854 cat conftest.err >&5
33f5f8b9 42855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856 (exit $ac_status); } &&
6263d81f 42857 { ac_try='test -z "$ac_c_werror_flag"
42858 || test ! -s conftest.err'
af3004ff 42859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42860 (eval $ac_try) 2>&5
42861 ac_status=$?
42862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42863 (exit $ac_status); }; } &&
42864 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 42865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866 (eval $ac_try) 2>&5
42867 ac_status=$?
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); }; }; then
91bc414e 42870 USE_GNUREGEX="no"
42871else
33f5f8b9 42872 echo "$as_me: failed program was:" >&5
ad21602a 42873sed 's/^/| /' conftest.$ac_ext >&5
42874
33f5f8b9 42875USE_GNUREGEX="yes"
91bc414e 42876fi
af3004ff 42877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
91bc414e 42878fi
2f0eed11 42879fi
33f5f8b9 42880echo "$as_me:$LINENO: result: $USE_GNUREGEX" >&5
42881echo "${ECHO_T}$USE_GNUREGEX" >&6
74946a0f 42882if test "$USE_GNUREGEX" = "yes"; then
ac4437b7 42883 REGEXLIB="-lregex"
7a081912 42884 LIBREGEX="libregex.a"
33f5f8b9 42885
42886cat >>confdefs.h <<\_ACEOF
74946a0f 42887#define USE_GNUREGEX 1
33f5f8b9 42888_ACEOF
74946a0f 42889
7a081912 42890fi
42891
ac4437b7 42892
2f0eed11 42893
33f5f8b9 42894
42895
42896
815a81ff 42897
3f6fcd8a 42898for ac_func in \
3d0cf10e 42899 drand48 \
3f6fcd8a 42900 tempnam \
719dbbeb 42901 strerror \
815a81ff 42902 initgroups
3f6fcd8a 42903
42904do
33f5f8b9 42905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42906echo "$as_me:$LINENO: checking for $ac_func" >&5
42907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42908if eval "test \"\${$as_ac_var+set}\" = set"; then
42909 echo $ECHO_N "(cached) $ECHO_C" >&6
42910else
42911 cat >conftest.$ac_ext <<_ACEOF
ad21602a 42912/* confdefs.h. */
42913_ACEOF
42914cat confdefs.h >>conftest.$ac_ext
42915cat >>conftest.$ac_ext <<_ACEOF
42916/* end confdefs.h. */
af3004ff 42917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42919#define $ac_func innocuous_$ac_func
42920
3f6fcd8a 42921/* System header to define __stub macros and hopefully few prototypes,
ad21602a 42922 which can conflict with char $ac_func (); below.
42923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42924 <limits.h> exists even on freestanding compilers. */
af3004ff 42925
ad21602a 42926#ifdef __STDC__
42927# include <limits.h>
42928#else
42929# include <assert.h>
42930#endif
af3004ff 42931
42932#undef $ac_func
42933
dd0004a0 42934/* Override any gcc2 internal prototype to avoid an error. */
42935#ifdef __cplusplus
42936extern "C"
ad21602a 42937{
dd0004a0 42938#endif
42939/* We use char because int might match the return type of a gcc2
42940 builtin and then its argument prototype would still apply. */
42941char $ac_func ();
3f6fcd8a 42942/* The GNU C library defines this for functions which it implements
42943 to always fail with ENOSYS. Some functions are actually named
42944 something starting with __ and the normal name is an alias. */
42945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42946choke me
42947#else
ad21602a 42948char (*f) () = $ac_func;
42949#endif
42950#ifdef __cplusplus
42951}
3f6fcd8a 42952#endif
42953
ad21602a 42954int
42955main ()
42956{
42957return f != $ac_func;
33f5f8b9 42958 ;
42959 return 0;
42960}
42961_ACEOF
42962rm -f conftest.$ac_objext conftest$ac_exeext
42963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 42964 (eval $ac_link) 2>conftest.er1
33f5f8b9 42965 ac_status=$?
af3004ff 42966 grep -v '^ *+' conftest.er1 >conftest.err
42967 rm -f conftest.er1
42968 cat conftest.err >&5
33f5f8b9 42969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42970 (exit $ac_status); } &&
6263d81f 42971 { ac_try='test -z "$ac_c_werror_flag"
42972 || test ! -s conftest.err'
af3004ff 42973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42974 (eval $ac_try) 2>&5
42975 ac_status=$?
42976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42977 (exit $ac_status); }; } &&
42978 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 42979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42980 (eval $ac_try) 2>&5
42981 ac_status=$?
42982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42983 (exit $ac_status); }; }; then
42984 eval "$as_ac_var=yes"
42985else
42986 echo "$as_me: failed program was:" >&5
ad21602a 42987sed 's/^/| /' conftest.$ac_ext >&5
42988
33f5f8b9 42989eval "$as_ac_var=no"
42990fi
af3004ff 42991rm -f conftest.err conftest.$ac_objext \
42992 conftest$ac_exeext conftest.$ac_ext
33f5f8b9 42993fi
42994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42996if test `eval echo '${'$as_ac_var'}'` = yes; then
42997 cat >>confdefs.h <<_ACEOF
42998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42999_ACEOF
43000
43001else
af3004ff 43002 case $LIBOBJS in
43003 "$ac_func.$ac_objext" | \
43004 *" $ac_func.$ac_objext" | \
43005 "$ac_func.$ac_objext "* | \
43006 *" $ac_func.$ac_objext "* ) ;;
43007 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43008esac
43009
3f6fcd8a 43010fi
3f6fcd8a 43011done
43012
43013
b1e77ec1 43014
33f5f8b9 43015echo "$as_me:$LINENO: checking Default FD_SETSIZE value" >&5
43016echo $ECHO_N "checking Default FD_SETSIZE value... $ECHO_C" >&6
e924600d 43017if test "$cross_compiling" = yes; then
43018 DEFAULT_FD_SETSIZE=256
43019else
33f5f8b9 43020 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43021/* confdefs.h. */
43022_ACEOF
43023cat confdefs.h >>conftest.$ac_ext
43024cat >>conftest.$ac_ext <<_ACEOF
43025/* end confdefs.h. */
e924600d 43026
43027#if HAVE_STDIO_H
43028#include <stdio.h>
43029#endif
43030#if HAVE_UNISTD_H
43031#include <unistd.h>
43032#endif
43033#if HAVE_SYS_TIME_H
43034#include <sys/time.h>
43035#endif
43036#if HAVE_SYS_SELECT_H
43037#include <sys/select.h>
43038#endif
43039#if HAVE_SYS_TYPES_H
43040#include <sys/types.h>
43041#endif
43042main() {
635e6242 43043 FILE *fp = fopen("conftestval", "w");
43044 fprintf (fp, "%d\n", FD_SETSIZE);
e924600d 43045 exit(0);
43046}
43047
33f5f8b9 43048_ACEOF
43049rm -f conftest$ac_exeext
43050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43051 (eval $ac_link) 2>&5
43052 ac_status=$?
43053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43056 (eval $ac_try) 2>&5
43057 ac_status=$?
43058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43059 (exit $ac_status); }; }; then
e924600d 43060 DEFAULT_FD_SETSIZE=`cat conftestval`
43061else
33f5f8b9 43062 echo "$as_me: program exited with status $ac_status" >&5
43063echo "$as_me: failed program was:" >&5
ad21602a 43064sed 's/^/| /' conftest.$ac_ext >&5
43065
33f5f8b9 43066( exit $ac_status )
43067DEFAULT_FD_SETSIZE=256
e924600d 43068fi
af3004ff 43069rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e924600d 43070fi
33f5f8b9 43071echo "$as_me:$LINENO: result: $DEFAULT_FD_SETSIZE" >&5
43072echo "${ECHO_T}$DEFAULT_FD_SETSIZE" >&6
3f961930 43073
33f5f8b9 43074cat >>confdefs.h <<_ACEOF
e924600d 43075#define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
33f5f8b9 43076_ACEOF
e924600d 43077
43078
ba077dfb 43079
33f5f8b9 43080echo "$as_me:$LINENO: checking Maximum number of filedescriptors we can open" >&5
43081echo $ECHO_N "checking Maximum number of filedescriptors we can open... $ECHO_C" >&6
ba077dfb 43082if test -n "$squid_filedescriptors_num" ; then
43083 SQUID_MAXFD=$squid_filedescriptors_num
33f5f8b9 43084 echo "$as_me:$LINENO: result: $SQUID_MAXFD (user-forced)" >&5
43085echo "${ECHO_T}$SQUID_MAXFD (user-forced)" >&6
ba077dfb 43086else
43087 TLDFLAGS="$LDFLAGS"
43088 case $host in
43089 i386-unknown-freebsd*)
43090 if echo "$LDFLAGS" | grep -q pthread; then
43091 LDFLAGS=`echo $LDFLAGS | sed -e "s/-pthread//"`
43092 fi
43093 esac
43094 if test "$cross_compiling" = yes; then
431d84c5 43095 SQUID_MAXFD=256
234967c9 43096else
33f5f8b9 43097 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43098/* confdefs.h. */
43099_ACEOF
43100cat confdefs.h >>conftest.$ac_ext
43101cat >>conftest.$ac_ext <<_ACEOF
43102/* end confdefs.h. */
234967c9 43103
8cca06da 43104#include <stdio.h>
234967c9 43105#include <unistd.h>
30a4f2a8 43106#include <sys/time.h> /* needed on FreeBSD */
234967c9 43107#include <sys/param.h>
43108#include <sys/resource.h>
43109main() {
635e6242 43110 FILE *fp;
234967c9 43111 int i,j;
42b51993 43112#if defined(__CYGWIN32__) || defined (__CYGWIN__)
509e66c9 43113 /* getrlimit and sysconf returns bogous values on cygwin32.
df087e68 43114 * Number of fds is virtually unlimited in cygwin (sys/param.h)
509e66c9 43115 * __CYGWIN32__ is deprecated.
df087e68 43116 */
43117 i = NOFILE;
509e66c9 43118#else
43119#if HAVE_SETRLIMIT
234967c9 43120 struct rlimit rl;
43121#if defined(RLIMIT_NOFILE)
43122 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
43123 perror("getrlimit: RLIMIT_NOFILE");
43124 } else {
43125 rl.rlim_cur = rl.rlim_max; /* set it to the max */
43126 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
43127 perror("setrlimit: RLIMIT_NOFILE");
43128 }
43129 }
43130#elif defined(RLIMIT_OFILE)
43131 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
43132 perror("getrlimit: RLIMIT_OFILE");
43133 } else {
43134 rl.rlim_cur = rl.rlim_max; /* set it to the max */
43135 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
43136 perror("setrlimit: RLIMIT_OFILE");
43137 }
43138 }
43139#endif /* RLIMIT_NOFILE */
43140#endif /* HAVE_SETRLIMIT */
d9399075 43141 /* by starting at 2^14, we will never get higher
43142 than 2^15 for SQUID_MAXFD */
43143 i = j = 1<<14;
43144 while (j) {
43145 j >>= 1;
33f5f8b9 43146 if (dup2(0, i) < 0) {
d9399075 43147 i -= j;
43148 } else {
43149 close(i);
43150 i += j;
43151 }
43152 }
43153 i++;
509e66c9 43154#endif /* IF !DEF CYGWIN */
635e6242 43155 fp = fopen("conftestval", "w");
e721bd8c 43156 fprintf (fp, "%d\n", i & ~0x3F);
234967c9 43157 exit(0);
43158}
33f5f8b9 43159
43160_ACEOF
43161rm -f conftest$ac_exeext
43162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43163 (eval $ac_link) 2>&5
43164 ac_status=$?
43165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43168 (eval $ac_try) 2>&5
43169 ac_status=$?
43170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171 (exit $ac_status); }; }; then
431d84c5 43172 SQUID_MAXFD=`cat conftestval`
234967c9 43173else
33f5f8b9 43174 echo "$as_me: program exited with status $ac_status" >&5
43175echo "$as_me: failed program was:" >&5
ad21602a 43176sed 's/^/| /' conftest.$ac_ext >&5
43177
33f5f8b9 43178( exit $ac_status )
43179SQUID_MAXFD=256
234967c9 43180fi
af3004ff 43181rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b1e77ec1 43182fi
07d1f987 43183 case "$host_os" in
43184 mingw|mingw32)
43185 SQUID_MAXFD="2048"
43186 ;;
43187 esac
33f5f8b9 43188 echo "$as_me:$LINENO: result: $SQUID_MAXFD" >&5
43189echo "${ECHO_T}$SQUID_MAXFD" >&6
ba077dfb 43190fi
33f5f8b9 43191
43192cat >>confdefs.h <<_ACEOF
431d84c5 43193#define SQUID_MAXFD $SQUID_MAXFD
33f5f8b9 43194_ACEOF
234967c9 43195
b9cc811d 43196if test "$SQUID_MAXFD" -lt 512 ; then
80ab193b 43197 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
43198 echo " cache will be very busy. Please see the FAQ page"
8891f20f 43199 echo " http://www.squid-cache.org/FAQ/FAQ-11.html#filedescriptors"
22df58ea 43200 echo " on how to increase your filedescriptor limit"
933cc58d 43201 sleep 10
80ab193b 43202fi
c76d8acc 43203LDFLAGS="$TLDFLAGS"
234967c9 43204
d8f639f1 43205if test `expr $SQUID_MAXFD % 64` != 0; then
e721bd8c 43206 echo "WARNING: $SQUID_MAXFD is not an multiple of 64. This may cause issues"
43207 echo " on certain platforms."
43208 sleep 10
43209fi
43210
33f5f8b9 43211echo "$as_me:$LINENO: checking Default UDP send buffer size" >&5
43212echo $ECHO_N "checking Default UDP send buffer size... $ECHO_C" >&6
30a4f2a8 43213if test "$cross_compiling" = yes; then
33f5f8b9 43214 SQUID_DETECT_UDP_SO_SNDBUF=16384
30a4f2a8 43215else
33f5f8b9 43216 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43217/* confdefs.h. */
43218_ACEOF
43219cat confdefs.h >>conftest.$ac_ext
43220cat >>conftest.$ac_ext <<_ACEOF
43221/* end confdefs.h. */
30a4f2a8 43222
8cca06da 43223#include <stdlib.h>
43224#include <stdio.h>
30a4f2a8 43225#include <sys/types.h>
43226#include <sys/socket.h>
43227#include <netinet/in.h>
43228main ()
43229{
635e6242 43230 FILE *fp;
30a4f2a8 43231 int fd,val=0,len=sizeof(int);
43232 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
43233 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
43234 if (val<=0) exit(1);
635e6242 43235 fp = fopen("conftestval", "w");
43236 fprintf (fp, "%d\n", val);
30a4f2a8 43237 exit(0);
43238}
43239
33f5f8b9 43240_ACEOF
43241rm -f conftest$ac_exeext
43242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43243 (eval $ac_link) 2>&5
43244 ac_status=$?
43245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43248 (eval $ac_try) 2>&5
43249 ac_status=$?
43250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43251 (exit $ac_status); }; }; then
43252 SQUID_DETECT_UDP_SO_SNDBUF=`cat conftestval`
43253else
43254 echo "$as_me: program exited with status $ac_status" >&5
43255echo "$as_me: failed program was:" >&5
ad21602a 43256sed 's/^/| /' conftest.$ac_ext >&5
43257
33f5f8b9 43258( exit $ac_status )
43259SQUID_DETECT_UDP_SO_SNDBUF=16384
43260fi
af3004ff 43261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 43262fi
43263echo "$as_me:$LINENO: result: $SQUID_DETECT_UDP_SO_SNDBUF" >&5
43264echo "${ECHO_T}$SQUID_DETECT_UDP_SO_SNDBUF" >&6
43265
43266cat >>confdefs.h <<_ACEOF
43267#define SQUID_DETECT_UDP_SO_SNDBUF $SQUID_DETECT_UDP_SO_SNDBUF
43268_ACEOF
43269
43270
43271echo "$as_me:$LINENO: checking Default UDP receive buffer size" >&5
43272echo $ECHO_N "checking Default UDP receive buffer size... $ECHO_C" >&6
30a4f2a8 43273if test "$cross_compiling" = yes; then
33f5f8b9 43274 SQUID_DETECT_UDP_SO_RCVBUF=16384
30a4f2a8 43275else
33f5f8b9 43276 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43277/* confdefs.h. */
43278_ACEOF
43279cat confdefs.h >>conftest.$ac_ext
43280cat >>conftest.$ac_ext <<_ACEOF
43281/* end confdefs.h. */
30a4f2a8 43282
8cca06da 43283#include <stdlib.h>
43284#include <stdio.h>
30a4f2a8 43285#include <sys/types.h>
43286#include <sys/socket.h>
43287#include <netinet/in.h>
43288main ()
43289{
635e6242 43290 FILE *fp;
30a4f2a8 43291 int fd,val=0,len=sizeof(int);
43292 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
43293 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
33f5f8b9 43294 if (val <= 0) exit(1);
43295 fp = fopen("conftestval", "w");
43296 fprintf (fp, "%d\n", val);
43297 exit(0);
43298}
30a4f2a8 43299
33f5f8b9 43300_ACEOF
43301rm -f conftest$ac_exeext
43302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43303 (eval $ac_link) 2>&5
43304 ac_status=$?
43305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43308 (eval $ac_try) 2>&5
43309 ac_status=$?
43310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43311 (exit $ac_status); }; }; then
43312 SQUID_DETECT_UDP_SO_RCVBUF=`cat conftestval`
43313else
43314 echo "$as_me: program exited with status $ac_status" >&5
43315echo "$as_me: failed program was:" >&5
ad21602a 43316sed 's/^/| /' conftest.$ac_ext >&5
43317
33f5f8b9 43318( exit $ac_status )
43319SQUID_DETECT_UDP_SO_RCVBUF=16384
43320fi
af3004ff 43321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33f5f8b9 43322fi
43323echo "$as_me:$LINENO: result: $SQUID_DETECT_UDP_SO_RCVBUF" >&5
43324echo "${ECHO_T}$SQUID_DETECT_UDP_SO_RCVBUF" >&6
43325
43326cat >>confdefs.h <<_ACEOF
43327#define SQUID_DETECT_UDP_SO_RCVBUF $SQUID_DETECT_UDP_SO_RCVBUF
43328_ACEOF
43329
43330
43331echo "$as_me:$LINENO: checking Default TCP send buffer size" >&5
43332echo $ECHO_N "checking Default TCP send buffer size... $ECHO_C" >&6
30a4f2a8 43333if test "$cross_compiling" = yes; then
1c481e00 43334 SQUID_TCP_SO_SNDBUF=16384
30a4f2a8 43335else
33f5f8b9 43336 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43337/* confdefs.h. */
43338_ACEOF
43339cat confdefs.h >>conftest.$ac_ext
43340cat >>conftest.$ac_ext <<_ACEOF
43341/* end confdefs.h. */
30a4f2a8 43342
8cca06da 43343#include <stdlib.h>
43344#include <stdio.h>
30a4f2a8 43345#include <sys/types.h>
43346#include <sys/socket.h>
43347#include <netinet/in.h>
43348main ()
43349{
635e6242 43350 FILE *fp;
30a4f2a8 43351 int fd,val=0,len=sizeof(int);
43352 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
43353 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
43354 if (val <= 0) exit(1);
33f5f8b9 43355 fp = fopen("conftestval", "w");
635e6242 43356 fprintf (fp, "%d\n", val);
30a4f2a8 43357 exit(0);
43358}
43359
33f5f8b9 43360_ACEOF
43361rm -f conftest$ac_exeext
43362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43363 (eval $ac_link) 2>&5
43364 ac_status=$?
43365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43368 (eval $ac_try) 2>&5
43369 ac_status=$?
43370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43371 (exit $ac_status); }; }; then
30a4f2a8 43372 SQUID_TCP_SO_SNDBUF=`cat conftestval`
43373else
33f5f8b9 43374 echo "$as_me: program exited with status $ac_status" >&5
43375echo "$as_me: failed program was:" >&5
ad21602a 43376sed 's/^/| /' conftest.$ac_ext >&5
43377
33f5f8b9 43378( exit $ac_status )
43379SQUID_TCP_SO_SNDBUF=16384
30a4f2a8 43380fi
af3004ff 43381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b1e77ec1 43382fi
33f5f8b9 43383echo "$as_me:$LINENO: result: $SQUID_TCP_SO_SNDBUF" >&5
43384echo "${ECHO_T}$SQUID_TCP_SO_SNDBUF" >&6
9d8247e0 43385if test $SQUID_TCP_SO_SNDBUF -gt 32768; then
43386 echo "Limiting send buffer size to 32K"
43387 SQUID_TCP_SO_SNDBUF=32768
43388fi
3f961930 43389
33f5f8b9 43390cat >>confdefs.h <<_ACEOF
30a4f2a8 43391#define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
33f5f8b9 43392_ACEOF
30a4f2a8 43393
43394
33f5f8b9 43395echo "$as_me:$LINENO: checking Default TCP receive buffer size" >&5
43396echo $ECHO_N "checking Default TCP receive buffer size... $ECHO_C" >&6
30a4f2a8 43397if test "$cross_compiling" = yes; then
1c481e00 43398 SQUID_TCP_SO_RCVBUF=16384
30a4f2a8 43399else
33f5f8b9 43400 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43401/* confdefs.h. */
43402_ACEOF
43403cat confdefs.h >>conftest.$ac_ext
43404cat >>conftest.$ac_ext <<_ACEOF
43405/* end confdefs.h. */
30a4f2a8 43406
8cca06da 43407#include <stdlib.h>
43408#include <stdio.h>
30a4f2a8 43409#include <sys/types.h>
43410#include <sys/socket.h>
43411#include <netinet/in.h>
43412main ()
43413{
635e6242 43414 FILE *fp;
30a4f2a8 43415 int fd,val=0,len=sizeof(int);
43416 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
43417 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
43418 if (val <= 0) exit(1);
33f5f8b9 43419 fp = fopen("conftestval", "w");
635e6242 43420 fprintf (fp, "%d\n", val);
30a4f2a8 43421 exit(0);
43422}
43423
33f5f8b9 43424_ACEOF
43425rm -f conftest$ac_exeext
43426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43427 (eval $ac_link) 2>&5
43428 ac_status=$?
43429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43432 (eval $ac_try) 2>&5
43433 ac_status=$?
43434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); }; }; then
30a4f2a8 43436 SQUID_TCP_SO_RCVBUF=`cat conftestval`
43437else
33f5f8b9 43438 echo "$as_me: program exited with status $ac_status" >&5
43439echo "$as_me: failed program was:" >&5
ad21602a 43440sed 's/^/| /' conftest.$ac_ext >&5
43441
33f5f8b9 43442( exit $ac_status )
43443SQUID_TCP_SO_RCVBUF=16384
30a4f2a8 43444fi
af3004ff 43445rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b1e77ec1 43446fi
33f5f8b9 43447echo "$as_me:$LINENO: result: $SQUID_TCP_SO_RCVBUF" >&5
43448echo "${ECHO_T}$SQUID_TCP_SO_RCVBUF" >&6
9d8247e0 43449if test $SQUID_TCP_SO_RCVBUF -gt 65535; then
43450 echo "Limiting receive buffer size to 64K"
43451 SQUID_TCP_SO_RCVBUF=65535
43452fi
3f961930 43453
33f5f8b9 43454cat >>confdefs.h <<_ACEOF
30a4f2a8 43455#define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
33f5f8b9 43456_ACEOF
30a4f2a8 43457
33f5f8b9 43458echo "$as_me:$LINENO: checking if sys_errlist is already defined" >&5
43459echo $ECHO_N "checking if sys_errlist is already defined... $ECHO_C" >&6
43460if test "${ac_cv_needs_sys_errlist+set}" = set; then
43461 echo $ECHO_N "(cached) $ECHO_C" >&6
5c51415d 43462else
33f5f8b9 43463 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43464/* confdefs.h. */
43465_ACEOF
43466cat confdefs.h >>conftest.$ac_ext
43467cat >>conftest.$ac_ext <<_ACEOF
43468/* end confdefs.h. */
30a4f2a8 43469#include <stdio.h>
33f5f8b9 43470int
43471main ()
43472{
9bc73deb 43473char *s = sys_errlist;
33f5f8b9 43474 ;
43475 return 0;
43476}
43477_ACEOF
43478rm -f conftest.$ac_objext
43479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 43480 (eval $ac_compile) 2>conftest.er1
33f5f8b9 43481 ac_status=$?
af3004ff 43482 grep -v '^ *+' conftest.er1 >conftest.err
43483 rm -f conftest.er1
43484 cat conftest.err >&5
33f5f8b9 43485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486 (exit $ac_status); } &&
6263d81f 43487 { ac_try='test -z "$ac_c_werror_flag"
43488 || test ! -s conftest.err'
af3004ff 43489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490 (eval $ac_try) 2>&5
43491 ac_status=$?
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); }; } &&
43494 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 43495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43496 (eval $ac_try) 2>&5
43497 ac_status=$?
43498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499 (exit $ac_status); }; }; then
5c51415d 43500 ac_cv_needs_sys_errlist="no"
30a4f2a8 43501else
33f5f8b9 43502 echo "$as_me: failed program was:" >&5
ad21602a 43503sed 's/^/| /' conftest.$ac_ext >&5
43504
33f5f8b9 43505ac_cv_needs_sys_errlist="yes"
5c51415d 43506fi
af3004ff 43507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5c51415d 43508
43509fi
33f5f8b9 43510echo "$as_me:$LINENO: result: $ac_cv_needs_sys_errlist" >&5
43511echo "${ECHO_T}$ac_cv_needs_sys_errlist" >&6
5c51415d 43512if test "$ac_cv_needs_sys_errlist" = "yes" ; then
33f5f8b9 43513
43514cat >>confdefs.h <<\_ACEOF
30a4f2a8 43515#define NEED_SYS_ERRLIST 1
33f5f8b9 43516_ACEOF
30a4f2a8 43517
43518fi
30a4f2a8 43519
33f5f8b9 43520echo "$as_me:$LINENO: checking for libresolv _dns_ttl_ hack" >&5
43521echo $ECHO_N "checking for libresolv _dns_ttl_ hack... $ECHO_C" >&6
43522cat >conftest.$ac_ext <<_ACEOF
ad21602a 43523/* confdefs.h. */
43524_ACEOF
43525cat confdefs.h >>conftest.$ac_ext
43526cat >>conftest.$ac_ext <<_ACEOF
43527/* end confdefs.h. */
6bf65235 43528extern int _dns_ttl_;
33f5f8b9 43529int
43530main ()
43531{
6bf65235 43532return _dns_ttl_;
33f5f8b9 43533 ;
43534 return 0;
43535}
43536_ACEOF
43537rm -f conftest.$ac_objext conftest$ac_exeext
43538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
af3004ff 43539 (eval $ac_link) 2>conftest.er1
33f5f8b9 43540 ac_status=$?
af3004ff 43541 grep -v '^ *+' conftest.er1 >conftest.err
43542 rm -f conftest.er1
43543 cat conftest.err >&5
33f5f8b9 43544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545 (exit $ac_status); } &&
6263d81f 43546 { ac_try='test -z "$ac_c_werror_flag"
43547 || test ! -s conftest.err'
af3004ff 43548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43549 (eval $ac_try) 2>&5
43550 ac_status=$?
43551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43552 (exit $ac_status); }; } &&
43553 { ac_try='test -s conftest$ac_exeext'
33f5f8b9 43554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43555 (eval $ac_try) 2>&5
43556 ac_status=$?
43557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43558 (exit $ac_status); }; }; then
43559 echo "$as_me:$LINENO: result: yes" >&5
43560echo "${ECHO_T}yes" >&6
43561
43562cat >>confdefs.h <<\_ACEOF
6bf65235 43563#define LIBRESOLV_DNS_TTL_HACK 1
33f5f8b9 43564_ACEOF
6bf65235 43565
43566else
33f5f8b9 43567 echo "$as_me: failed program was:" >&5
ad21602a 43568sed 's/^/| /' conftest.$ac_ext >&5
43569
33f5f8b9 43570echo "$as_me:$LINENO: result: no" >&5
43571echo "${ECHO_T}no" >&6
6bf65235 43572fi
af3004ff 43573rm -f conftest.err conftest.$ac_objext \
43574 conftest$ac_exeext conftest.$ac_ext
6bf65235 43575
33f5f8b9 43576echo "$as_me:$LINENO: checking if inet_ntoa() actually works" >&5
43577echo $ECHO_N "checking if inet_ntoa() actually works... $ECHO_C" >&6
a937d5e3 43578if test "$cross_compiling" = yes; then
43579 INET_NTOA_RESULT="broken"
43580else
33f5f8b9 43581 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43582/* confdefs.h. */
43583_ACEOF
43584cat confdefs.h >>conftest.$ac_ext
43585cat >>conftest.$ac_ext <<_ACEOF
43586/* end confdefs.h. */
a937d5e3 43587
43588#include <stdlib.h>
43589#include <stdio.h>
43590#include <sys/types.h>
43591#include <netinet/in.h>
43592#include <arpa/inet.h>
43593main ()
43594{
635e6242 43595 FILE *fp;
a937d5e3 43596 struct in_addr in;
43597 in.s_addr = inet_addr("1.2.3.4");
33f5f8b9 43598 fp = fopen("conftestval", "w");
635e6242 43599 fprintf (fp, "%s\n", inet_ntoa(in));
a937d5e3 43600 exit(0);
43601}
43602
33f5f8b9 43603_ACEOF
43604rm -f conftest$ac_exeext
43605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43606 (eval $ac_link) 2>&5
43607 ac_status=$?
43608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611 (eval $ac_try) 2>&5
43612 ac_status=$?
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); }; }; then
a937d5e3 43615 INET_NTOA_RESULT=`cat conftestval`
43616else
33f5f8b9 43617 echo "$as_me: program exited with status $ac_status" >&5
43618echo "$as_me: failed program was:" >&5
ad21602a 43619sed 's/^/| /' conftest.$ac_ext >&5
43620
33f5f8b9 43621( exit $ac_status )
43622INET_NTOA_RESULT="broken"
a937d5e3 43623fi
af3004ff 43624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a937d5e3 43625fi
a937d5e3 43626if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
33f5f8b9 43627 echo "$as_me:$LINENO: result: \"yes\"" >&5
43628echo "${ECHO_T}\"yes\"" >&6
a937d5e3 43629else
33f5f8b9 43630 echo "$as_me:$LINENO: result: \"no\"" >&5
43631echo "${ECHO_T}\"no\"" >&6
07d1f987 43632 case "$host_os" in
43633 mingw|mingw32)
43634 echo "Using Win32 resolver instead."
43635 ;;
43636 *)
43637 echo "Will use our own inet_ntoa()."
43638 case $LIBOBJS in
af3004ff 43639 "inet_ntoa.$ac_objext" | \
43640 *" inet_ntoa.$ac_objext" | \
43641 "inet_ntoa.$ac_objext "* | \
43642 *" inet_ntoa.$ac_objext "* ) ;;
43643 *) LIBOBJS="$LIBOBJS inet_ntoa.$ac_objext" ;;
43644esac
43645
07d1f987 43646# echo "WARNING: This looks bad, and probably prevents Squid from working."
43647# echo " If you're on IRIX and using GCC 2.8, you probably need"
43648# echo " to use the IRIX C compiler instead."
43649# sleep 10
43650 ;;
43651 esac
a937d5e3 43652fi
43653
b6a2f15e 43654if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
33f5f8b9 43655echo "$as_me:$LINENO: checking for working statvfs() interface" >&5
43656echo $ECHO_N "checking for working statvfs() interface... $ECHO_C" >&6
43657cat >conftest.$ac_ext <<_ACEOF
ad21602a 43658/* confdefs.h. */
43659_ACEOF
43660cat confdefs.h >>conftest.$ac_ext
43661cat >>conftest.$ac_ext <<_ACEOF
43662/* end confdefs.h. */
c68e9c6b 43663
43664#include <stdlib.h>
43665#include <stdio.h>
43666#include <sys/types.h>
43667#include <sys/statvfs.h>
43668
33f5f8b9 43669int
43670main ()
43671{
c68e9c6b 43672
43673struct statvfs sfs;
33f5f8b9 43674sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
c68e9c6b 43675sfs.f_files = sfs.f_ffree = 0;
43676statvfs("/tmp", &sfs);
43677
33f5f8b9 43678 ;
43679 return 0;
43680}
43681_ACEOF
43682rm -f conftest.$ac_objext
43683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 43684 (eval $ac_compile) 2>conftest.er1
33f5f8b9 43685 ac_status=$?
af3004ff 43686 grep -v '^ *+' conftest.er1 >conftest.err
43687 rm -f conftest.er1
43688 cat conftest.err >&5
33f5f8b9 43689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43690 (exit $ac_status); } &&
6263d81f 43691 { ac_try='test -z "$ac_c_werror_flag"
43692 || test ! -s conftest.err'
af3004ff 43693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694 (eval $ac_try) 2>&5
43695 ac_status=$?
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); }; } &&
43698 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 43699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43700 (eval $ac_try) 2>&5
43701 ac_status=$?
43702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703 (exit $ac_status); }; }; then
c68e9c6b 43704 ac_cv_func_statvfs=yes
43705else
33f5f8b9 43706 echo "$as_me: failed program was:" >&5
ad21602a 43707sed 's/^/| /' conftest.$ac_ext >&5
43708
33f5f8b9 43709ac_cv_func_statvfs=no
c68e9c6b 43710fi
af3004ff 43711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33f5f8b9 43712echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5
43713echo "${ECHO_T}$ac_cv_func_statvfs" >&6
6b8e7481 43714if test "$ac_cv_func_statvfs" = "yes" ; then
33f5f8b9 43715
43716cat >>confdefs.h <<\_ACEOF
b6a2f15e 43717#define HAVE_STATVFS 1
33f5f8b9 43718_ACEOF
b6a2f15e 43719
6b8e7481 43720fi
c68e9c6b 43721fi
43722
33f5f8b9 43723echo "$as_me:$LINENO: checking for _res.nsaddr_list" >&5
43724echo $ECHO_N "checking for _res.nsaddr_list... $ECHO_C" >&6
43725if test "${ac_cv_have_res_nsaddr_list+set}" = set; then
43726 echo $ECHO_N "(cached) $ECHO_C" >&6
c68e9c6b 43727else
33f5f8b9 43728 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43729/* confdefs.h. */
43730_ACEOF
43731cat confdefs.h >>conftest.$ac_ext
43732cat >>conftest.$ac_ext <<_ACEOF
43733/* end confdefs.h. */
c68e9c6b 43734
43735#if HAVE_SYS_TYPES_H
43736#include <sys/types.h>
43737#endif
43738#if HAVE_NETINET_IN_H
43739#include <netinet/in.h>
43740#endif
43741#if HAVE_ARPA_INET_H
43742#include <arpa/inet.h>
43743#endif
43744#if HAVE_ARPA_NAMESER_H
43745#include <arpa/nameser.h>
43746#endif
43747#if HAVE_RESOLV_H
43748#include <resolv.h>
43749#endif
43750
33f5f8b9 43751int
43752main ()
43753{
c68e9c6b 43754_res.nsaddr_list[0];
33f5f8b9 43755 ;
43756 return 0;
43757}
43758_ACEOF
43759rm -f conftest.$ac_objext
43760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 43761 (eval $ac_compile) 2>conftest.er1
33f5f8b9 43762 ac_status=$?
af3004ff 43763 grep -v '^ *+' conftest.er1 >conftest.err
43764 rm -f conftest.er1
43765 cat conftest.err >&5
33f5f8b9 43766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43767 (exit $ac_status); } &&
6263d81f 43768 { ac_try='test -z "$ac_c_werror_flag"
43769 || test ! -s conftest.err'
af3004ff 43770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43771 (eval $ac_try) 2>&5
43772 ac_status=$?
43773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43774 (exit $ac_status); }; } &&
43775 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 43776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43777 (eval $ac_try) 2>&5
43778 ac_status=$?
43779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780 (exit $ac_status); }; }; then
c68e9c6b 43781 ac_cv_have_res_nsaddr_list="yes"
43782else
33f5f8b9 43783 echo "$as_me: failed program was:" >&5
ad21602a 43784sed 's/^/| /' conftest.$ac_ext >&5
43785
33f5f8b9 43786ac_cv_have_res_nsaddr_list="no"
c68e9c6b 43787fi
af3004ff 43788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c68e9c6b 43789fi
33f5f8b9 43790echo "$as_me:$LINENO: result: $ac_cv_have_res_nsaddr_list" >&5
43791echo "${ECHO_T}$ac_cv_have_res_nsaddr_list" >&6
c68e9c6b 43792if test $ac_cv_have_res_nsaddr_list = "yes" ; then
33f5f8b9 43793
43794cat >>confdefs.h <<\_ACEOF
c68e9c6b 43795#define HAVE_RES_NSADDR_LIST 1
33f5f8b9 43796_ACEOF
c68e9c6b 43797
43798fi
43799
43800if test $ac_cv_have_res_nsaddr_list = "no" ; then
33f5f8b9 43801echo "$as_me:$LINENO: checking for _res.ns_list" >&5
43802echo $ECHO_N "checking for _res.ns_list... $ECHO_C" >&6
43803if test "${ac_cv_have_res_ns_list+set}" = set; then
43804 echo $ECHO_N "(cached) $ECHO_C" >&6
c68e9c6b 43805else
33f5f8b9 43806 cat >conftest.$ac_ext <<_ACEOF
ad21602a 43807/* confdefs.h. */
43808_ACEOF
43809cat confdefs.h >>conftest.$ac_ext
43810cat >>conftest.$ac_ext <<_ACEOF
43811/* end confdefs.h. */
c68e9c6b 43812
43813#if HAVE_SYS_TYPES_H
43814#include <sys/types.h>
43815#endif
43816#if HAVE_NETINET_IN_H
43817#include <netinet/in.h>
43818#endif
43819#if HAVE_ARPA_INET_H
43820#include <arpa/inet.h>
43821#endif
43822#if HAVE_ARPA_NAMESER_H
43823#include <arpa/nameser.h>
43824#endif
43825#if HAVE_RESOLV_H
43826#include <resolv.h>
43827#endif
43828
33f5f8b9 43829int
43830main ()
43831{
c68e9c6b 43832_res.ns_list[0].addr;
33f5f8b9 43833 ;
43834 return 0;
43835}
43836_ACEOF
43837rm -f conftest.$ac_objext
43838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
af3004ff 43839 (eval $ac_compile) 2>conftest.er1
33f5f8b9 43840 ac_status=$?
af3004ff 43841 grep -v '^ *+' conftest.er1 >conftest.err
43842 rm -f conftest.er1
43843 cat conftest.err >&5
33f5f8b9 43844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43845 (exit $ac_status); } &&
6263d81f 43846 { ac_try='test -z "$ac_c_werror_flag"
43847 || test ! -s conftest.err'
af3004ff 43848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43849 (eval $ac_try) 2>&5
43850 ac_status=$?
43851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852 (exit $ac_status); }; } &&
43853 { ac_try='test -s conftest.$ac_objext'
33f5f8b9 43854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43855 (eval $ac_try) 2>&5
43856 ac_status=$?
43857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43858 (exit $ac_status); }; }; then
c68e9c6b 43859 ac_cv_have_res_ns_list="yes"
43860else
33f5f8b9 43861 echo "$as_me: failed program was:" >&5
ad21602a 43862sed 's/^/| /' conftest.$ac_ext >&5
43863
33f5f8b9 43864ac_cv_have_res_ns_list="no"
c68e9c6b 43865fi
af3004ff 43866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c68e9c6b 43867fi
33f5f8b9 43868echo "$as_me:$LINENO: result: $ac_cv_have_res_ns_list" >&5
43869echo "${ECHO_T}$ac_cv_have_res_ns_list" >&6
c68e9c6b 43870if test $ac_cv_have_res_ns_list = "yes" ; then
33f5f8b9 43871
43872cat >>confdefs.h <<\_ACEOF
c68e9c6b 43873#define HAVE_RES_NS_LIST 1
33f5f8b9 43874_ACEOF
c68e9c6b 43875
43876fi
43877fi
43878
090089c4 43879XTRA_OBJS=''
6509a1a0 43880if test "$ac_cv_lib_malloc_main" = "yes" ; then
090089c4 43881 if test -r /usr/lib/debug/malloc.o ; then
43882 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o"
43883 fi
43884 if test -r /usr/lib/debug/mallocmap.o ; then
43885 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
43886 fi
43887fi
c6af3af4 43888
090089c4 43889
43890
38fea766 43891if test -z "$XTRA_LIBS"; then
43892 XTRA_LIBS="$LIBS"
0f5a16f8 43893 XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
38fea766 43894 LIBS=''
43895fi
090089c4 43896
090089c4 43897
33f5f8b9 43898rm -f core
090089c4 43899
8ab86a75 43900 ac_config_files="$ac_config_files Makefile lib/Makefile scripts/Makefile scripts/RunCache scripts/RunAccel src/Makefile src/fs/Makefile src/repl/Makefile src/auth/Makefile contrib/Makefile snmplib/Makefile icons/Makefile errors/Makefile test-suite/Makefile doc/Makefile helpers/Makefile helpers/basic_auth/Makefile helpers/basic_auth/LDAP/Makefile helpers/basic_auth/MSNT/Makefile helpers/basic_auth/NCSA/Makefile helpers/basic_auth/PAM/Makefile helpers/basic_auth/SMB/Makefile helpers/basic_auth/mswin_sspi/Makefile helpers/basic_auth/YP/Makefile helpers/basic_auth/getpwnam/Makefile helpers/basic_auth/multi-domain-NTLM/Makefile helpers/basic_auth/SASL/Makefile helpers/digest_auth/Makefile helpers/digest_auth/password/Makefile helpers/digest_auth/ldap/Makefile helpers/ntlm_auth/Makefile helpers/ntlm_auth/fakeauth/Makefile helpers/ntlm_auth/no_check/Makefile helpers/ntlm_auth/SMB/Makefile helpers/ntlm_auth/SMB/smbval/Makefile helpers/ntlm_auth/mswin_sspi/Makefile helpers/negotiate_auth/Makefile helpers/negotiate_auth/mswin_sspi/Makefile helpers/external_acl/Makefile helpers/external_acl/ip_user/Makefile helpers/external_acl/ldap_group/Makefile helpers/external_acl/session/Makefile helpers/external_acl/unix_group/Makefile helpers/external_acl/wbinfo_group/Makefile helpers/external_acl/mswin_lm_group/Makefile tools/Makefile"
33f5f8b9 43901
12a5c9fd 43902
43903
43904
43905subdirs="$subdirs lib/libTrie"
43906
43907
f5691f9c 43908
43909subdirs="$subdirs lib/cppunit-1.10.0"
43910
43911
33f5f8b9 43912cat >confcache <<\_ACEOF
090089c4 43913# This file is a shell script that caches the results of configure
43914# tests run on this system so they can be shared between configure
33f5f8b9 43915# scripts and configure runs, see configure's option --config-cache.
43916# It is not useful on other systems. If it contains results you don't
43917# want to keep, you may remove or edit it.
090089c4 43918#
33f5f8b9 43919# config.status only pays attention to the cache file if you give it
43920# the --recheck option to rerun configure.
090089c4 43921#
ad21602a 43922# `ac_cv_env_foo' variables (set or unset) will be overridden when
33f5f8b9 43923# loading this file, other *unset* `ac_cv_foo' will be assigned the
43924# following values.
43925
43926_ACEOF
43927
133b6d90 43928# The following way of writing the cache mishandles newlines in values,
43929# but we know of no workaround that is simple, portable, and efficient.
43930# So, don't put newlines in cache variables' values.
090089c4 43931# Ultrix sh set writes to stderr and can't be redirected directly,
43932# and sets the high bit in the cache file unless we assign to the vars.
33f5f8b9 43933{
43934 (set) 2>&1 |
43935 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43936 *ac_space=\ *)
43937 # `set' does not quote correctly, so add quotes (double-quote
43938 # substitution turns \\\\ into \\, and sed turns \\ into \).
43939 sed -n \
af3004ff 43940 "s/'/'\\\\''/g;
43941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33f5f8b9 43942 ;;
43943 *)
43944 # `set' quotes correctly as required by POSIX, so do not add quotes.
43945 sed -n \
af3004ff 43946 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33f5f8b9 43947 ;;
43948 esac;
43949} |
43950 sed '
43951 t clear
43952 : clear
43953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43954 t end
43955 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43956 : end' >>confcache
ad21602a 43957if diff $cache_file confcache >/dev/null 2>&1; then :; else
090089c4 43958 if test -w $cache_file; then
33f5f8b9 43959 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43960 cat confcache >$cache_file
090089c4 43961 else
43962 echo "not updating unwritable cache $cache_file"
43963 fi
43964fi
43965rm -f confcache
43966
090089c4 43967test "x$prefix" = xNONE && prefix=$ac_default_prefix
43968# Let make expand exec_prefix.
43969test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43970
33f5f8b9 43971# VPATH may cause trouble with some makes, so we remove $(srcdir),
43972# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43973# trailing colons and then remove the whole line if VPATH becomes empty
43974# (actually we leave an empty line to preserve line numbers).
090089c4 43975if test "x$srcdir" = x.; then
af3004ff 43976 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33f5f8b9 43977s/:*\$(srcdir):*/:/;
43978s/:*\${srcdir}:*/:/;
43979s/:*@srcdir@:*/:/;
af3004ff 43980s/^\([^=]*=[ ]*\):*/\1/;
33f5f8b9 43981s/:*$//;
af3004ff 43982s/^[^=]*=[ ]*$//;
33f5f8b9 43983}'
090089c4 43984fi
43985
3f961930 43986DEFS=-DHAVE_CONFIG_H
090089c4 43987
ad21602a 43988ac_libobjs=
43989ac_ltlibobjs=
43990for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43991 # 1. Remove the extension, and $U if already installed.
43992 ac_i=`echo "$ac_i" |
af3004ff 43993 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad21602a 43994 # 2. Add them.
43995 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43996 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43997done
43998LIBOBJS=$ac_libobjs
43999
44000LTLIBOBJS=$ac_ltlibobjs
44001
44002
44003if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
44004 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
44005Usually this means the macro was only invoked conditionally." >&5
44006echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
44007Usually this means the macro was only invoked conditionally." >&2;}
44008 { (exit 1); exit 1; }; }
44009fi
44010if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44011 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44012Usually this means the macro was only invoked conditionally." >&5
44013echo "$as_me: error: conditional \"AMDEP\" was never defined.
44014Usually this means the macro was only invoked conditionally." >&2;}
44015 { (exit 1); exit 1; }; }
44016fi
44017if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44018 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44019Usually this means the macro was only invoked conditionally." >&5
44020echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44021Usually this means the macro was only invoked conditionally." >&2;}
44022 { (exit 1); exit 1; }; }
44023fi
44024if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
44025 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
44026Usually this means the macro was only invoked conditionally." >&5
44027echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
44028Usually this means the macro was only invoked conditionally." >&2;}
44029 { (exit 1); exit 1; }; }
44030fi
44031if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
44032 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44033Usually this means the macro was only invoked conditionally." >&5
44034echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44035Usually this means the macro was only invoked conditionally." >&2;}
44036 { (exit 1); exit 1; }; }
44037fi
44038if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
44039 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44040Usually this means the macro was only invoked conditionally." >&5
44041echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44042Usually this means the macro was only invoked conditionally." >&2;}
44043 { (exit 1); exit 1; }; }
44044fi
bfd36867 44045if test -z "${USE_IPC_WIN32_TRUE}" && test -z "${USE_IPC_WIN32_FALSE}"; then
44046 { { echo "$as_me:$LINENO: error: conditional \"USE_IPC_WIN32\" was never defined.
44047Usually this means the macro was only invoked conditionally." >&5
44048echo "$as_me: error: conditional \"USE_IPC_WIN32\" was never defined.
44049Usually this means the macro was only invoked conditionally." >&2;}
44050 { (exit 1); exit 1; }; }
44051fi
44052if test -z "${USE_IPC_WIN32_TRUE}" && test -z "${USE_IPC_WIN32_FALSE}"; then
44053 { { echo "$as_me:$LINENO: error: conditional \"USE_IPC_WIN32\" was never defined.
44054Usually this means the macro was only invoked conditionally." >&5
44055echo "$as_me: error: conditional \"USE_IPC_WIN32\" was never defined.
44056Usually this means the macro was only invoked conditionally." >&2;}
44057 { (exit 1); exit 1; }; }
44058fi
c7cee0a7 44059if test -z "${USE_AIOPS_WIN32_TRUE}" && test -z "${USE_AIOPS_WIN32_FALSE}"; then
44060 { { echo "$as_me:$LINENO: error: conditional \"USE_AIOPS_WIN32\" was never defined.
44061Usually this means the macro was only invoked conditionally." >&5
44062echo "$as_me: error: conditional \"USE_AIOPS_WIN32\" was never defined.
44063Usually this means the macro was only invoked conditionally." >&2;}
44064 { (exit 1); exit 1; }; }
44065fi
c2158752 44066if test -z "${USE_AIO_WIN32_TRUE}" && test -z "${USE_AIO_WIN32_FALSE}"; then
44067 { { echo "$as_me:$LINENO: error: conditional \"USE_AIO_WIN32\" was never defined.
44068Usually this means the macro was only invoked conditionally." >&5
44069echo "$as_me: error: conditional \"USE_AIO_WIN32\" was never defined.
44070Usually this means the macro was only invoked conditionally." >&2;}
44071 { (exit 1); exit 1; }; }
44072fi
ad21602a 44073if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
44074 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
44075Usually this means the macro was only invoked conditionally." >&5
44076echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
44077Usually this means the macro was only invoked conditionally." >&2;}
44078 { (exit 1); exit 1; }; }
44079fi
44080if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
44081 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
44082Usually this means the macro was only invoked conditionally." >&5
44083echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
44084Usually this means the macro was only invoked conditionally." >&2;}
44085 { (exit 1); exit 1; }; }
44086fi
44087if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
44088 { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
44089Usually this means the macro was only invoked conditionally." >&5
44090echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
44091Usually this means the macro was only invoked conditionally." >&2;}
44092 { (exit 1); exit 1; }; }
44093fi
44094if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
44095 { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
44096Usually this means the macro was only invoked conditionally." >&5
44097echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
44098Usually this means the macro was only invoked conditionally." >&2;}
44099 { (exit 1); exit 1; }; }
44100fi
44101if test -z "${USE_ESI_TRUE}" && test -z "${USE_ESI_FALSE}"; then
44102 { { echo "$as_me:$LINENO: error: conditional \"USE_ESI\" was never defined.
44103Usually this means the macro was only invoked conditionally." >&5
44104echo "$as_me: error: conditional \"USE_ESI\" was never defined.
44105Usually this means the macro was only invoked conditionally." >&2;}
44106 { (exit 1); exit 1; }; }
44107fi
44108if test -z "${USE_ESI_TRUE}" && test -z "${USE_ESI_FALSE}"; then
44109 { { echo "$as_me:$LINENO: error: conditional \"USE_ESI\" was never defined.
44110Usually this means the macro was only invoked conditionally." >&5
44111echo "$as_me: error: conditional \"USE_ESI\" was never defined.
44112Usually this means the macro was only invoked conditionally." >&2;}
44113 { (exit 1); exit 1; }; }
44114fi
2f2d507f 44115if test -z "${USE_ICAP_CLIENT_TRUE}" && test -z "${USE_ICAP_CLIENT_FALSE}"; then
44116 { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44117Usually this means the macro was only invoked conditionally." >&5
44118echo "$as_me: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44119Usually this means the macro was only invoked conditionally." >&2;}
44120 { (exit 1); exit 1; }; }
44121fi
44122if test -z "${USE_ICAP_CLIENT_TRUE}" && test -z "${USE_ICAP_CLIENT_FALSE}"; then
44123 { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44124Usually this means the macro was only invoked conditionally." >&5
44125echo "$as_me: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44126Usually this means the macro was only invoked conditionally." >&2;}
44127 { (exit 1); exit 1; }; }
44128fi
ad21602a 44129if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
44130 { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
44131Usually this means the macro was only invoked conditionally." >&5
44132echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
44133Usually this means the macro was only invoked conditionally." >&2;}
44134 { (exit 1); exit 1; }; }
44135fi
44136if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
44137 { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
44138Usually this means the macro was only invoked conditionally." >&5
44139echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
44140Usually this means the macro was only invoked conditionally." >&2;}
44141 { (exit 1); exit 1; }; }
44142fi
44143if test -z "${ENABLE_ARP_ACL_TRUE}" && test -z "${ENABLE_ARP_ACL_FALSE}"; then
44144 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44145Usually this means the macro was only invoked conditionally." >&5
44146echo "$as_me: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44147Usually this means the macro was only invoked conditionally." >&2;}
44148 { (exit 1); exit 1; }; }
44149fi
44150if test -z "${ENABLE_ARP_ACL_TRUE}" && test -z "${ENABLE_ARP_ACL_FALSE}"; then
44151 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44152Usually this means the macro was only invoked conditionally." >&5
44153echo "$as_me: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44154Usually this means the macro was only invoked conditionally." >&2;}
44155 { (exit 1); exit 1; }; }
44156fi
44157if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
44158 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
44159Usually this means the macro was only invoked conditionally." >&5
44160echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
44161Usually this means the macro was only invoked conditionally." >&2;}
44162 { (exit 1); exit 1; }; }
44163fi
44164if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
44165 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
44166Usually this means the macro was only invoked conditionally." >&5
44167echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
44168Usually this means the macro was only invoked conditionally." >&2;}
44169 { (exit 1); exit 1; }; }
44170fi
44171if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
44172 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
44173Usually this means the macro was only invoked conditionally." >&5
44174echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
44175Usually this means the macro was only invoked conditionally." >&2;}
44176 { (exit 1); exit 1; }; }
44177fi
44178if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
44179 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
44180Usually this means the macro was only invoked conditionally." >&5
44181echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
44182Usually this means the macro was only invoked conditionally." >&2;}
44183 { (exit 1); exit 1; }; }
44184fi
44185if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
44186 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
44187Usually this means the macro was only invoked conditionally." >&5
44188echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
44189Usually this means the macro was only invoked conditionally." >&2;}
44190 { (exit 1); exit 1; }; }
44191fi
44192if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
44193 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
44194Usually this means the macro was only invoked conditionally." >&5
44195echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
44196Usually this means the macro was only invoked conditionally." >&2;}
44197 { (exit 1); exit 1; }; }
44198fi
ad21602a 44199if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
44200 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44201Usually this means the macro was only invoked conditionally." >&5
44202echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44203Usually this means the macro was only invoked conditionally." >&2;}
44204 { (exit 1); exit 1; }; }
44205fi
44206if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
44207 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44208Usually this means the macro was only invoked conditionally." >&5
44209echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44210Usually this means the macro was only invoked conditionally." >&2;}
44211 { (exit 1); exit 1; }; }
44212fi
44213if test -z "${ENABLE_IDENT_TRUE}" && test -z "${ENABLE_IDENT_FALSE}"; then
44214 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IDENT\" was never defined.
44215Usually this means the macro was only invoked conditionally." >&5
44216echo "$as_me: error: conditional \"ENABLE_IDENT\" was never defined.
44217Usually this means the macro was only invoked conditionally." >&2;}
44218 { (exit 1); exit 1; }; }
44219fi
44220if test -z "${ENABLE_IDENT_TRUE}" && test -z "${ENABLE_IDENT_FALSE}"; then
44221 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IDENT\" was never defined.
44222Usually this means the macro was only invoked conditionally." >&5
44223echo "$as_me: error: conditional \"ENABLE_IDENT\" was never defined.
44224Usually this means the macro was only invoked conditionally." >&2;}
44225 { (exit 1); exit 1; }; }
44226fi
44227if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
44228 { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
44229Usually this means the macro was only invoked conditionally." >&5
44230echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
44231Usually this means the macro was only invoked conditionally." >&2;}
44232 { (exit 1); exit 1; }; }
44233fi
44234if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
44235 { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
44236Usually this means the macro was only invoked conditionally." >&5
44237echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
44238Usually this means the macro was only invoked conditionally." >&2;}
44239 { (exit 1); exit 1; }; }
44240fi
44241if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
44242 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
44243Usually this means the macro was only invoked conditionally." >&5
44244echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
44245Usually this means the macro was only invoked conditionally." >&2;}
44246 { (exit 1); exit 1; }; }
44247fi
44248if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
44249 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
44250Usually this means the macro was only invoked conditionally." >&5
44251echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
44252Usually this means the macro was only invoked conditionally." >&2;}
44253 { (exit 1); exit 1; }; }
44254fi
44255if test -z "${ENABLE_XPROF_STATS_TRUE}" && test -z "${ENABLE_XPROF_STATS_FALSE}"; then
44256 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44257Usually this means the macro was only invoked conditionally." >&5
44258echo "$as_me: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44259Usually this means the macro was only invoked conditionally." >&2;}
44260 { (exit 1); exit 1; }; }
44261fi
44262if test -z "${ENABLE_XPROF_STATS_TRUE}" && test -z "${ENABLE_XPROF_STATS_FALSE}"; then
44263 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44264Usually this means the macro was only invoked conditionally." >&5
44265echo "$as_me: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44266Usually this means the macro was only invoked conditionally." >&2;}
44267 { (exit 1); exit 1; }; }
44268fi
44269if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
44270 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44271Usually this means the macro was only invoked conditionally." >&5
44272echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44273Usually this means the macro was only invoked conditionally." >&2;}
44274 { (exit 1); exit 1; }; }
44275fi
44276if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
44277 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44278Usually this means the macro was only invoked conditionally." >&5
44279echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44280Usually this means the macro was only invoked conditionally." >&2;}
44281 { (exit 1); exit 1; }; }
44282fi
afbb1069 44283if test -z "${NEED_OWN_STRSEP_TRUE}" && test -z "${NEED_OWN_STRSEP_FALSE}"; then
44284 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44285Usually this means the macro was only invoked conditionally." >&5
44286echo "$as_me: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44287Usually this means the macro was only invoked conditionally." >&2;}
44288 { (exit 1); exit 1; }; }
44289fi
44290if test -z "${NEED_OWN_STRSEP_TRUE}" && test -z "${NEED_OWN_STRSEP_FALSE}"; then
44291 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44292Usually this means the macro was only invoked conditionally." >&5
44293echo "$as_me: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44294Usually this means the macro was only invoked conditionally." >&2;}
44295 { (exit 1); exit 1; }; }
44296fi
b65c7b0d 44297
33f5f8b9 44298: ${CONFIG_STATUS=./config.status}
44299ac_clean_files_save=$ac_clean_files
44300ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44301{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44302echo "$as_me: creating $CONFIG_STATUS" >&6;}
44303cat >$CONFIG_STATUS <<_ACEOF
44304#! $SHELL
44305# Generated by $as_me.
3f961930 44306# Run this file to recreate the current configuration.
3f961930 44307# Compiler output produced by configure, useful for debugging
33f5f8b9 44308# configure, is in config.log if it exists.
b65c7b0d 44309
33f5f8b9 44310debug=false
ad21602a 44311ac_cs_recheck=false
44312ac_cs_silent=false
33f5f8b9 44313SHELL=\${CONFIG_SHELL-$SHELL}
44314_ACEOF
44315
44316cat >>$CONFIG_STATUS <<\_ACEOF
33f5f8b9 44317## --------------------- ##
44318## M4sh Initialization. ##
44319## --------------------- ##
44320
44321# Be Bourne compatible
44322if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44323 emulate sh
44324 NULLCMD=:
ad21602a 44325 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44326 # is contrary to our usage. Disable this feature.
44327 alias -g '${1+"$@"}'='"$@"'
33f5f8b9 44328elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44329 set -o posix
44330fi
af3004ff 44331DUALCASE=1; export DUALCASE # for MKS sh
33f5f8b9 44332
33f5f8b9 44333# Support unset when possible.
af3004ff 44334if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33f5f8b9 44335 as_unset=unset
44336else
44337 as_unset=false
44338fi
44339
ad21602a 44340
44341# Work around bugs in pre-3.0 UWIN ksh.
44342$as_unset ENV MAIL MAILPATH
44343PS1='$ '
44344PS2='> '
44345PS4='+ '
44346
44347# NLS nuisances.
44348for as_var in \
44349 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44350 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44351 LC_TELEPHONE LC_TIME
44352do
af3004ff 44353 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad21602a 44354 eval $as_var=C; export $as_var
44355 else
44356 $as_unset $as_var
44357 fi
44358done
44359
44360# Required to use basename.
44361if expr a : '\(a\)' >/dev/null 2>&1; then
44362 as_expr=expr
44363else
44364 as_expr=false
44365fi
44366
44367if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44368 as_basename=basename
44369else
44370 as_basename=false
44371fi
33f5f8b9 44372
44373
44374# Name of the executable.
ad21602a 44375as_me=`$as_basename "$0" ||
33f5f8b9 44376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44377 X"$0" : 'X\(//\)$' \| \
44378 X"$0" : 'X\(/\)$' \| \
44379 . : '\(.\)' 2>/dev/null ||
44380echo X/"$0" |
44381 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44382 /^X\/\(\/\/\)$/{ s//\1/; q; }
44383 /^X\/\(\/\).*/{ s//\1/; q; }
44384 s/.*/./; q'`
44385
ad21602a 44386
33f5f8b9 44387# PATH needs CR, and LINENO needs CR and PATH.
44388# Avoid depending upon Character Ranges.
44389as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44390as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44391as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44392as_cr_digits='0123456789'
44393as_cr_alnum=$as_cr_Letters$as_cr_digits
44394
44395# The user is always right.
44396if test "${PATH_SEPARATOR+set}" != set; then
ad21602a 44397 echo "#! /bin/sh" >conf$$.sh
44398 echo "exit 0" >>conf$$.sh
44399 chmod +x conf$$.sh
44400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33f5f8b9 44401 PATH_SEPARATOR=';'
44402 else
44403 PATH_SEPARATOR=:
44404 fi
ad21602a 44405 rm -f conf$$.sh
33f5f8b9 44406fi
44407
44408
44409 as_lineno_1=$LINENO
44410 as_lineno_2=$LINENO
44411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44412 test "x$as_lineno_1" != "x$as_lineno_2" &&
44413 test "x$as_lineno_3" = "x$as_lineno_2" || {
44414 # Find who we are. Look in the path if we contain no path at all
44415 # relative or not.
44416 case $0 in
44417 *[\\/]* ) as_myself=$0 ;;
44418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44419for as_dir in $PATH
b65c7b0d 44420do
33f5f8b9 44421 IFS=$as_save_IFS
44422 test -z "$as_dir" && as_dir=.
44423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44424done
44425
44426 ;;
b65c7b0d 44427 esac
33f5f8b9 44428 # We did not find ourselves, most probably we were run as `sh COMMAND'
44429 # in which case we are not to be found in the path.
44430 if test "x$as_myself" = x; then
44431 as_myself=$0
44432 fi
44433 if test ! -f "$as_myself"; then
44434 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44435echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44436 { (exit 1); exit 1; }; }
44437 fi
44438 case $CONFIG_SHELL in
44439 '')
44440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44441for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44442do
44443 IFS=$as_save_IFS
44444 test -z "$as_dir" && as_dir=.
44445 for as_base in sh bash ksh sh5; do
44446 case $as_dir in
44447 /*)
44448 if ("$as_dir/$as_base" -c '
44449 as_lineno_1=$LINENO
44450 as_lineno_2=$LINENO
44451 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44452 test "x$as_lineno_1" != "x$as_lineno_2" &&
44453 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
ad21602a 44454 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44455 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33f5f8b9 44456 CONFIG_SHELL=$as_dir/$as_base
44457 export CONFIG_SHELL
44458 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44459 fi;;
44460 esac
44461 done
b65c7b0d 44462done
33f5f8b9 44463;;
44464 esac
b65c7b0d 44465
33f5f8b9 44466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44467 # uniformly replaced by the line number. The first 'sed' inserts a
44468 # line-number line before each line; the second 'sed' does the real
44469 # work. The second script uses 'N' to pair each line-number line
44470 # with the numbered line, and appends trailing '-' during
44471 # substitution so that $LINENO is not a special case at line end.
44472 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44473 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44474 sed '=' <$as_myself |
44475 sed '
44476 N
44477 s,$,-,
44478 : loop
44479 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44480 t loop
44481 s,-$,,
44482 s,^['$as_cr_digits']*\n,,
44483 ' >$as_me.lineno &&
44484 chmod +x $as_me.lineno ||
44485 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44486echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44487 { (exit 1); exit 1; }; }
44488
44489 # Don't try to exec as it changes $[0], causing all sort of problems
44490 # (the dirname of $[0] is not the place where we might find the
44491 # original and so on. Autoconf is especially sensible to this).
44492 . ./$as_me.lineno
44493 # Exit status is that of the last command.
44494 exit
44495}
b65c7b0d 44496
33f5f8b9 44497
44498case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44499 *c*,-n*) ECHO_N= ECHO_C='
44500' ECHO_T=' ' ;;
44501 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44502 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44503esac
44504
44505if expr a : '\(a\)' >/dev/null 2>&1; then
44506 as_expr=expr
44507else
44508 as_expr=false
44509fi
44510
44511rm -f conf$$ conf$$.exe conf$$.file
44512echo >conf$$.file
44513if ln -s conf$$.file conf$$ 2>/dev/null; then
44514 # We could just check for DJGPP; but this test a) works b) is more generic
44515 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44516 if test -f conf$$.exe; then
44517 # Don't use ln at all; we don't have any links
44518 as_ln_s='cp -p'
3f961930 44519 else
33f5f8b9 44520 as_ln_s='ln -s'
3f961930 44521 fi
33f5f8b9 44522elif ln conf$$.file conf$$ 2>/dev/null; then
44523 as_ln_s=ln
44524else
44525 as_ln_s='cp -p'
44526fi
44527rm -f conf$$ conf$$.exe conf$$.file
44528
ad21602a 44529if mkdir -p . 2>/dev/null; then
44530 as_mkdir_p=:
44531else
af3004ff 44532 test -d ./-p && rmdir ./-p
ad21602a 44533 as_mkdir_p=false
44534fi
44535
33f5f8b9 44536as_executable_p="test -f"
44537
44538# Sed expression to map a string onto a valid CPP name.
af3004ff 44539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33f5f8b9 44540
44541# Sed expression to map a string onto a valid variable name.
af3004ff 44542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33f5f8b9 44543
44544
44545# IFS
44546# We need space, tab and new line, in precisely that order.
44547as_nl='
44548'
44549IFS=" $as_nl"
44550
44551# CDPATH.
ad21602a 44552$as_unset CDPATH
33f5f8b9 44553
44554exec 6>&1
44555
44556# Open the log real soon, to keep \$[0] and so on meaningful, and to
44557# report actual input values of CONFIG_FILES etc. instead of their
44558# values after options handling. Logging --version etc. is OK.
44559exec 5>>config.log
44560{
44561 echo
44562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44563## Running $as_me. ##
44564_ASBOX
44565} >&5
44566cat >&5 <<_CSEOF
44567
505c100d 44568This file was extended by Squid Web Proxy $as_me 3.0.PRE4-CVS, which was
af3004ff 44569generated by GNU Autoconf 2.59. Invocation command line was
33f5f8b9 44570
44571 CONFIG_FILES = $CONFIG_FILES
44572 CONFIG_HEADERS = $CONFIG_HEADERS
44573 CONFIG_LINKS = $CONFIG_LINKS
44574 CONFIG_COMMANDS = $CONFIG_COMMANDS
44575 $ $0 $@
44576
44577_CSEOF
44578echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44579echo >&5
44580_ACEOF
44581
44582# Files that config.status was made for.
44583if test -n "$ac_config_files"; then
44584 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44585fi
44586
44587if test -n "$ac_config_headers"; then
44588 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44589fi
44590
44591if test -n "$ac_config_links"; then
44592 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44593fi
44594
44595if test -n "$ac_config_commands"; then
44596 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44597fi
44598
44599cat >>$CONFIG_STATUS <<\_ACEOF
44600
44601ac_cs_usage="\
44602\`$as_me' instantiates files from templates according to the
44603current configuration.
44604
44605Usage: $0 [OPTIONS] [FILE]...
44606
44607 -h, --help print this help, then exit
44608 -V, --version print version number, then exit
ad21602a 44609 -q, --quiet do not print progress messages
33f5f8b9 44610 -d, --debug don't remove temporary files
44611 --recheck update $as_me by reconfiguring in the same conditions
44612 --file=FILE[:TEMPLATE]
af3004ff 44613 instantiate the configuration file FILE
33f5f8b9 44614 --header=FILE[:TEMPLATE]
af3004ff 44615 instantiate the configuration header FILE
33f5f8b9 44616
44617Configuration files:
44618$config_files
44619
44620Configuration headers:
44621$config_headers
44622
44623Configuration commands:
44624$config_commands
44625
44626Report bugs to <bug-autoconf@gnu.org>."
44627_ACEOF
44628
44629cat >>$CONFIG_STATUS <<_ACEOF
44630ac_cs_version="\\
505c100d 44631Squid Web Proxy config.status 3.0.PRE4-CVS
af3004ff 44632configured by $0, generated by GNU Autoconf 2.59,
33f5f8b9 44633 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44634
af3004ff 44635Copyright (C) 2003 Free Software Foundation, Inc.
33f5f8b9 44636This config.status script is free software; the Free Software Foundation
44637gives unlimited permission to copy, distribute and modify it."
44638srcdir=$srcdir
44639INSTALL="$INSTALL"
44640_ACEOF
44641
44642cat >>$CONFIG_STATUS <<\_ACEOF
44643# If no file are specified by the user, then we need to provide default
44644# value. By we need to know if files were specified by the user.
44645ac_need_defaults=:
44646while test $# != 0
44647do
44648 case $1 in
44649 --*=*)
44650 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44651 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
ad21602a 44652 ac_shift=:
44653 ;;
44654 -*)
44655 ac_option=$1
44656 ac_optarg=$2
44657 ac_shift=shift
33f5f8b9 44658 ;;
33f5f8b9 44659 *) # This is not an option, so the user has probably given explicit
44660 # arguments.
ad21602a 44661 ac_option=$1
33f5f8b9 44662 ac_need_defaults=false;;
44663 esac
44664
ad21602a 44665 case $ac_option in
33f5f8b9 44666 # Handling of the options.
44667_ACEOF
8b036616 44668cat >>$CONFIG_STATUS <<\_ACEOF
ad21602a 44669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44670 ac_cs_recheck=: ;;
33f5f8b9 44671 --version | --vers* | -V )
44672 echo "$ac_cs_version"; exit 0 ;;
44673 --he | --h)
44674 # Conflict between --help and --header
44675 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44676Try \`$0 --help' for more information." >&5
44677echo "$as_me: error: ambiguous option: $1
44678Try \`$0 --help' for more information." >&2;}
44679 { (exit 1); exit 1; }; };;
44680 --help | --hel | -h )
44681 echo "$ac_cs_usage"; exit 0 ;;
44682 --debug | --d* | -d )
44683 debug=: ;;
44684 --file | --fil | --fi | --f )
ad21602a 44685 $ac_shift
44686 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33f5f8b9 44687 ac_need_defaults=false;;
44688 --header | --heade | --head | --hea )
ad21602a 44689 $ac_shift
44690 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33f5f8b9 44691 ac_need_defaults=false;;
ad21602a 44692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44693 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44694 ac_cs_silent=: ;;
33f5f8b9 44695
44696 # This is an error.
44697 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44698Try \`$0 --help' for more information." >&5
44699echo "$as_me: error: unrecognized option: $1
44700Try \`$0 --help' for more information." >&2;}
44701 { (exit 1); exit 1; }; } ;;
44702
44703 *) ac_config_targets="$ac_config_targets $1" ;;
44704
44705 esac
44706 shift
44707done
44708
ad21602a 44709ac_configure_extra_args=
44710
44711if $ac_cs_silent; then
44712 exec 6>/dev/null
44713 ac_configure_extra_args="$ac_configure_extra_args --silent"
44714fi
44715
44716_ACEOF
44717cat >>$CONFIG_STATUS <<_ACEOF
44718if \$ac_cs_recheck; then
44719 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44720 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44721fi
44722
33f5f8b9 44723_ACEOF
44724
44725cat >>$CONFIG_STATUS <<_ACEOF
44726#
44727# INIT-COMMANDS section.
44728#
44729
ad21602a 44730AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33f5f8b9 44731
44732_ACEOF
44733
44734
44735
44736cat >>$CONFIG_STATUS <<\_ACEOF
44737for ac_config_target in $ac_config_targets
44738do
44739 case "$ac_config_target" in
44740 # Handling of arguments.
44741 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44742 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
44743 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44744 "scripts/RunCache" ) CONFIG_FILES="$CONFIG_FILES scripts/RunCache" ;;
44745 "scripts/RunAccel" ) CONFIG_FILES="$CONFIG_FILES scripts/RunAccel" ;;
44746 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44747 "src/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;;
44748 "src/repl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;;
44749 "src/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/auth/Makefile" ;;
33f5f8b9 44750 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
44751 "snmplib/Makefile" ) CONFIG_FILES="$CONFIG_FILES snmplib/Makefile" ;;
44752 "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
44753 "errors/Makefile" ) CONFIG_FILES="$CONFIG_FILES errors/Makefile" ;;
932f2fb4 44754 "test-suite/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-suite/Makefile" ;;
33f5f8b9 44755 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
44756 "helpers/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/Makefile" ;;
44757 "helpers/basic_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/Makefile" ;;
44758 "helpers/basic_auth/LDAP/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/LDAP/Makefile" ;;
44759 "helpers/basic_auth/MSNT/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/MSNT/Makefile" ;;
44760 "helpers/basic_auth/NCSA/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/NCSA/Makefile" ;;
44761 "helpers/basic_auth/PAM/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/PAM/Makefile" ;;
44762 "helpers/basic_auth/SMB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SMB/Makefile" ;;
ce4caa86 44763 "helpers/basic_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/mswin_sspi/Makefile" ;;
33f5f8b9 44764 "helpers/basic_auth/YP/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/YP/Makefile" ;;
44765 "helpers/basic_auth/getpwnam/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/getpwnam/Makefile" ;;
44766 "helpers/basic_auth/multi-domain-NTLM/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/multi-domain-NTLM/Makefile" ;;
44767 "helpers/basic_auth/SASL/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SASL/Makefile" ;;
33f5f8b9 44768 "helpers/digest_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/Makefile" ;;
44769 "helpers/digest_auth/password/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/password/Makefile" ;;
2ea126b2 44770 "helpers/digest_auth/ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/ldap/Makefile" ;;
33f5f8b9 44771 "helpers/ntlm_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/Makefile" ;;
44772 "helpers/ntlm_auth/fakeauth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/fakeauth/Makefile" ;;
44773 "helpers/ntlm_auth/no_check/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/no_check/Makefile" ;;
44774 "helpers/ntlm_auth/SMB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/Makefile" ;;
44775 "helpers/ntlm_auth/SMB/smbval/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/smbval/Makefile" ;;
ce4caa86 44776 "helpers/ntlm_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/mswin_sspi/Makefile" ;;
44777 "helpers/negotiate_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/Makefile" ;;
44778 "helpers/negotiate_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/mswin_sspi/Makefile" ;;
33f5f8b9 44779 "helpers/external_acl/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/Makefile" ;;
44780 "helpers/external_acl/ip_user/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ip_user/Makefile" ;;
44781 "helpers/external_acl/ldap_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ldap_group/Makefile" ;;
d135c6f5 44782 "helpers/external_acl/session/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/session/Makefile" ;;
33f5f8b9 44783 "helpers/external_acl/unix_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/unix_group/Makefile" ;;
44784 "helpers/external_acl/wbinfo_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/wbinfo_group/Makefile" ;;
a512dcc5 44785 "helpers/external_acl/mswin_lm_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/mswin_lm_group/Makefile" ;;
8ab86a75 44786 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
ad21602a 44787 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33f5f8b9 44788 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
44789 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44790echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44791 { (exit 1); exit 1; }; };;
44792 esac
44793done
44794
44795# If the user did not use the arguments to specify the items to instantiate,
44796# then the envvar interface is used. Set only those that are not.
44797# We use the long form for the default assignment because of an extremely
44798# bizarre bug on SunOS 4.1.3.
44799if $ac_need_defaults; then
44800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44803fi
44804
ad21602a 44805# Have a temporary directory for convenience. Make it in the build tree
44806# simply because there is no reason to put it here, and in addition,
44807# creating and moving files from /tmp can sometimes cause problems.
33f5f8b9 44808# Create a temporary directory, and hook for its removal unless debugging.
44809$debug ||
44810{
44811 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44812 trap '{ (exit 1); exit 1; }' 1 2 13 15
44813}
44814
44815# Create a (secure) tmp directory for tmp files.
ad21602a 44816
33f5f8b9 44817{
ad21602a 44818 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
33f5f8b9 44819 test -n "$tmp" && test -d "$tmp"
44820} ||
44821{
ad21602a 44822 tmp=./confstat$$-$RANDOM
33f5f8b9 44823 (umask 077 && mkdir $tmp)
44824} ||
44825{
ad21602a 44826 echo "$me: cannot create a temporary directory in ." >&2
33f5f8b9 44827 { (exit 1); exit 1; }
44828}
44829
44830_ACEOF
44831
44832cat >>$CONFIG_STATUS <<_ACEOF
44833
44834#
44835# CONFIG_FILES section.
44836#
44837
44838# No need to generate the scripts if there are no CONFIG_FILES.
44839# This happens for instance when ./config.status config.h
44840if test -n "\$CONFIG_FILES"; then
44841 # Protect against being on the right side of a sed subst in config.status.
44842 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44843 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44844s,@SHELL@,$SHELL,;t t
44845s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44846s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44847s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44848s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44849s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44850s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44851s,@exec_prefix@,$exec_prefix,;t t
44852s,@prefix@,$prefix,;t t
44853s,@program_transform_name@,$program_transform_name,;t t
44854s,@bindir@,$bindir,;t t
44855s,@sbindir@,$sbindir,;t t
44856s,@libexecdir@,$libexecdir,;t t
44857s,@datadir@,$datadir,;t t
44858s,@sysconfdir@,$sysconfdir,;t t
44859s,@sharedstatedir@,$sharedstatedir,;t t
44860s,@localstatedir@,$localstatedir,;t t
44861s,@libdir@,$libdir,;t t
44862s,@includedir@,$includedir,;t t
44863s,@oldincludedir@,$oldincludedir,;t t
44864s,@infodir@,$infodir,;t t
44865s,@mandir@,$mandir,;t t
44866s,@build_alias@,$build_alias,;t t
44867s,@host_alias@,$host_alias,;t t
44868s,@target_alias@,$target_alias,;t t
44869s,@DEFS@,$DEFS,;t t
44870s,@ECHO_C@,$ECHO_C,;t t
44871s,@ECHO_N@,$ECHO_N,;t t
44872s,@ECHO_T@,$ECHO_T,;t t
44873s,@LIBS@,$LIBS,;t t
44874s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44875s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44876s,@INSTALL_DATA@,$INSTALL_DATA,;t t
ad21602a 44877s,@CYGPATH_W@,$CYGPATH_W,;t t
33f5f8b9 44878s,@PACKAGE@,$PACKAGE,;t t
44879s,@VERSION@,$VERSION,;t t
33f5f8b9 44880s,@ACLOCAL@,$ACLOCAL,;t t
44881s,@AUTOCONF@,$AUTOCONF,;t t
44882s,@AUTOMAKE@,$AUTOMAKE,;t t
44883s,@AUTOHEADER@,$AUTOHEADER,;t t
44884s,@MAKEINFO@,$MAKEINFO,;t t
33f5f8b9 44885s,@install_sh@,$install_sh,;t t
ad21602a 44886s,@STRIP@,$STRIP,;t t
44887s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
33f5f8b9 44888s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
07d1f987 44889s,@mkdir_p@,$mkdir_p,;t t
33f5f8b9 44890s,@AWK@,$AWK,;t t
44891s,@SET_MAKE@,$SET_MAKE,;t t
ad21602a 44892s,@am__leading_dot@,$am__leading_dot,;t t
07d1f987 44893s,@AMTAR@,$AMTAR,;t t
44894s,@am__tar@,$am__tar,;t t
44895s,@am__untar@,$am__untar,;t t
33f5f8b9 44896s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
44897s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
44898s,@MAINT@,$MAINT,;t t
44899s,@CC@,$CC,;t t
44900s,@CFLAGS@,$CFLAGS,;t t
44901s,@LDFLAGS@,$LDFLAGS,;t t
44902s,@CPPFLAGS@,$CPPFLAGS,;t t
44903s,@ac_ct_CC@,$ac_ct_CC,;t t
ad21602a 44904s,@EXEEXT@,$EXEEXT,;t t
44905s,@OBJEXT@,$OBJEXT,;t t
44906s,@DEPDIR@,$DEPDIR,;t t
33f5f8b9 44907s,@am__include@,$am__include,;t t
44908s,@am__quote@,$am__quote,;t t
ad21602a 44909s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
44910s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
44911s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
33f5f8b9 44912s,@CCDEPMODE@,$CCDEPMODE,;t t
ad21602a 44913s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
44914s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
33f5f8b9 44915s,@CXX@,$CXX,;t t
44916s,@CXXFLAGS@,$CXXFLAGS,;t t
44917s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44918s,@CXXDEPMODE@,$CXXDEPMODE,;t t
ad21602a 44919s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
44920s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
33f5f8b9 44921s,@build@,$build,;t t
44922s,@build_cpu@,$build_cpu,;t t
44923s,@build_vendor@,$build_vendor,;t t
44924s,@build_os@,$build_os,;t t
44925s,@host@,$host,;t t
44926s,@host_cpu@,$host_cpu,;t t
44927s,@host_vendor@,$host_vendor,;t t
44928s,@host_os@,$host_os,;t t
a33e1d91 44929s,@EGREP@,$EGREP,;t t
44930s,@LN_S@,$LN_S,;t t
44931s,@ECHO@,$ECHO,;t t
44932s,@AR@,$AR,;t t
44933s,@ac_ct_AR@,$ac_ct_AR,;t t
44934s,@RANLIB@,$RANLIB,;t t
44935s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44936s,@CPP@,$CPP,;t t
44937s,@CXXCPP@,$CXXCPP,;t t
44938s,@F77@,$F77,;t t
44939s,@FFLAGS@,$FFLAGS,;t t
44940s,@ac_ct_F77@,$ac_ct_F77,;t t
44941s,@LIBTOOL@,$LIBTOOL,;t t
44942s,@LIBADD_DL@,$LIBADD_DL,;t t
33f5f8b9 44943s,@CGIEXT@,$CGIEXT,;t t
44944s,@ENABLE_WIN32SPECIFIC_TRUE@,$ENABLE_WIN32SPECIFIC_TRUE,;t t
44945s,@ENABLE_WIN32SPECIFIC_FALSE@,$ENABLE_WIN32SPECIFIC_FALSE,;t t
07d1f987 44946s,@WIN32_PSAPI@,$WIN32_PSAPI,;t t
bfd36867 44947s,@USE_IPC_WIN32_TRUE@,$USE_IPC_WIN32_TRUE,;t t
44948s,@USE_IPC_WIN32_FALSE@,$USE_IPC_WIN32_FALSE,;t t
ced2e74b 44949s,@MINGW_LIBS@,$MINGW_LIBS,;t t
e16674da 44950s,@CACHE_HTTP_PORT@,$CACHE_HTTP_PORT,;t t
44951s,@CACHE_ICP_PORT@,$CACHE_ICP_PORT,;t t
fa3c7377 44952s,@SQUID_CFLAGS@,$SQUID_CFLAGS,;t t
44953s,@SQUID_CXXFLAGS@,$SQUID_CXXFLAGS,;t t
33f5f8b9 44954s,@LIBDLMALLOC@,$LIBDLMALLOC,;t t
44955s,@LIB_MALLOC@,$LIB_MALLOC,;t t
44956s,@STORE_OBJS@,$STORE_OBJS,;t t
44957s,@STORE_LIBS@,$STORE_LIBS,;t t
70fd1c3d 44958s,@STORE_LINKOBJS@,$STORE_LINKOBJS,;t t
6a2814f7 44959s,@STORE_TESTS@,$STORE_TESTS,;t t
6e6cb8f0 44960s,@DISK_LIBS@,$DISK_LIBS,;t t
44961s,@DISK_PROGRAMS@,$DISK_PROGRAMS,;t t
44962s,@DISK_LINKOBJS@,$DISK_LINKOBJS,;t t
c7cee0a7 44963s,@USE_AIOPS_WIN32_TRUE@,$USE_AIOPS_WIN32_TRUE,;t t
44964s,@USE_AIOPS_WIN32_FALSE@,$USE_AIOPS_WIN32_FALSE,;t t
c2158752 44965s,@USE_AIO_WIN32_TRUE@,$USE_AIO_WIN32_TRUE,;t t
44966s,@USE_AIO_WIN32_FALSE@,$USE_AIO_WIN32_FALSE,;t t
33f5f8b9 44967s,@REPL_POLICIES@,$REPL_POLICIES,;t t
44968s,@REPL_OBJS@,$REPL_OBJS,;t t
44969s,@REPL_LIBS@,$REPL_LIBS,;t t
44970s,@ENABLE_PINGER_TRUE@,$ENABLE_PINGER_TRUE,;t t
44971s,@ENABLE_PINGER_FALSE@,$ENABLE_PINGER_FALSE,;t t
44972s,@USE_DELAY_POOLS_TRUE@,$USE_DELAY_POOLS_TRUE,;t t
44973s,@USE_DELAY_POOLS_FALSE@,$USE_DELAY_POOLS_FALSE,;t t
12a5c9fd 44974s,@USE_ESI_TRUE@,$USE_ESI_TRUE,;t t
44975s,@USE_ESI_FALSE@,$USE_ESI_FALSE,;t t
2f2d507f 44976s,@USE_ICAP_CLIENT_TRUE@,$USE_ICAP_CLIENT_TRUE,;t t
44977s,@USE_ICAP_CLIENT_FALSE@,$USE_ICAP_CLIENT_FALSE,;t t
958bc9ca 44978s,@ICAP_LIBS@,$ICAP_LIBS,;t t
33f5f8b9 44979s,@USE_SNMP_TRUE@,$USE_SNMP_TRUE,;t t
44980s,@USE_SNMP_FALSE@,$USE_SNMP_FALSE,;t t
44981s,@SNMPLIB@,$SNMPLIB,;t t
44982s,@makesnmplib@,$makesnmplib,;t t
b0dd28ba 44983s,@ENABLE_ARP_ACL_TRUE@,$ENABLE_ARP_ACL_TRUE,;t t
44984s,@ENABLE_ARP_ACL_FALSE@,$ENABLE_ARP_ACL_FALSE,;t t
33f5f8b9 44985s,@ENABLE_HTCP_TRUE@,$ENABLE_HTCP_TRUE,;t t
44986s,@ENABLE_HTCP_FALSE@,$ENABLE_HTCP_FALSE,;t t
44987s,@ENABLE_SSL_TRUE@,$ENABLE_SSL_TRUE,;t t
44988s,@ENABLE_SSL_FALSE@,$ENABLE_SSL_FALSE,;t t
44989s,@NEED_OWN_MD5_TRUE@,$NEED_OWN_MD5_TRUE,;t t
44990s,@NEED_OWN_MD5_FALSE@,$NEED_OWN_MD5_FALSE,;t t
44991s,@SSLLIB@,$SSLLIB,;t t
44992s,@ERR_DEFAULT_LANGUAGE@,$ERR_DEFAULT_LANGUAGE,;t t
44993s,@ERR_LANGUAGES@,$ERR_LANGUAGES,;t t
44994s,@MAKE_LEAKFINDER_TRUE@,$MAKE_LEAKFINDER_TRUE,;t t
44995s,@MAKE_LEAKFINDER_FALSE@,$MAKE_LEAKFINDER_FALSE,;t t
8000a965 44996s,@ENABLE_IDENT_TRUE@,$ENABLE_IDENT_TRUE,;t t
44997s,@ENABLE_IDENT_FALSE@,$ENABLE_IDENT_FALSE,;t t
33f5f8b9 44998s,@USE_DNSSERVER_TRUE@,$USE_DNSSERVER_TRUE,;t t
44999s,@USE_DNSSERVER_FALSE@,$USE_DNSSERVER_FALSE,;t t
45000s,@OPT_DEFAULT_HOSTS@,$OPT_DEFAULT_HOSTS,;t t
45001s,@AUTH_MODULES@,$AUTH_MODULES,;t t
33f5f8b9 45002s,@AUTH_LIBS@,$AUTH_LIBS,;t t
a33e1d91 45003s,@AUTH_LINKOBJS@,$AUTH_LINKOBJS,;t t
45004s,@AUTH_OBJS@,$AUTH_OBJS,;t t
33f5f8b9 45005s,@BASIC_AUTH_HELPERS@,$BASIC_AUTH_HELPERS,;t t
45006s,@NTLM_AUTH_HELPERS@,$NTLM_AUTH_HELPERS,;t t
ce4caa86 45007s,@NEGOTIATE_AUTH_HELPERS@,$NEGOTIATE_AUTH_HELPERS,;t t
33f5f8b9 45008s,@DIGEST_AUTH_HELPERS@,$DIGEST_AUTH_HELPERS,;t t
45009s,@EXTERNAL_ACL_HELPERS@,$EXTERNAL_ACL_HELPERS,;t t
a33e1d91 45010s,@LIBSASL@,$LIBSASL,;t t
33f5f8b9 45011s,@ENABLE_UNLINKD_TRUE@,$ENABLE_UNLINKD_TRUE,;t t
45012s,@ENABLE_UNLINKD_FALSE@,$ENABLE_UNLINKD_FALSE,;t t
45013s,@ENABLE_XPROF_STATS_TRUE@,$ENABLE_XPROF_STATS_TRUE,;t t
45014s,@ENABLE_XPROF_STATS_FALSE@,$ENABLE_XPROF_STATS_FALSE,;t t
8b5e106b 45015s,@CPPUNITCONFIG@,$CPPUNITCONFIG,;t t
45016s,@SQUID_CPPUNIT_LIBS@,$SQUID_CPPUNIT_LIBS,;t t
a33e1d91 45017s,@SQUID_CPPUNIT_LA@,$SQUID_CPPUNIT_LA,;t t
45018s,@SQUID_CPPUNIT_INC@,$SQUID_CPPUNIT_INC,;t t
45019s,@SQUID_CPPUNIT_DIR@,$SQUID_CPPUNIT_DIR,;t t
33f5f8b9 45020s,@SH@,$SH,;t t
45021s,@FALSE@,$FALSE,;t t
45022s,@TRUE@,$TRUE,;t t
45023s,@RM@,$RM,;t t
45024s,@MV@,$MV,;t t
45025s,@MKDIR@,$MKDIR,;t t
45026s,@LN@,$LN,;t t
45027s,@PERL@,$PERL,;t t
33f5f8b9 45028s,@AR_R@,$AR_R,;t t
45029s,@ALLOCA@,$ALLOCA,;t t
45030s,@CRYPTLIB@,$CRYPTLIB,;t t
30f36b47 45031s,@LIB_LDAP@,$LIB_LDAP,;t t
45032s,@LIB_LBER@,$LIB_LBER,;t t
20d16514 45033s,@LIB_DB@,$LIB_DB,;t t
980ac155 45034s,@EPOLL_LIBS@,$EPOLL_LIBS,;t t
33f5f8b9 45035s,@NEED_OWN_SNPRINTF_TRUE@,$NEED_OWN_SNPRINTF_TRUE,;t t
45036s,@NEED_OWN_SNPRINTF_FALSE@,$NEED_OWN_SNPRINTF_FALSE,;t t
afbb1069 45037s,@NEED_OWN_STRSEP_TRUE@,$NEED_OWN_STRSEP_TRUE,;t t
45038s,@NEED_OWN_STRSEP_FALSE@,$NEED_OWN_STRSEP_FALSE,;t t
33f5f8b9 45039s,@REGEXLIB@,$REGEXLIB,;t t
45040s,@LIBREGEX@,$LIBREGEX,;t t
45041s,@LIBOBJS@,$LIBOBJS,;t t
45042s,@XTRA_OBJS@,$XTRA_OBJS,;t t
45043s,@XTRA_LIBS@,$XTRA_LIBS,;t t
12a5c9fd 45044s,@subdirs@,$subdirs,;t t
ad21602a 45045s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33f5f8b9 45046CEOF
45047
45048_ACEOF
45049
45050 cat >>$CONFIG_STATUS <<\_ACEOF
45051 # Split the substitutions into bite-sized pieces for seds with
45052 # small command number limits, like on Digital OSF/1 and HP-UX.
45053 ac_max_sed_lines=48
45054 ac_sed_frag=1 # Number of current file.
45055 ac_beg=1 # First line for current file.
45056 ac_end=$ac_max_sed_lines # Line after last line for current file.
45057 ac_more_lines=:
45058 ac_sed_cmds=
45059 while $ac_more_lines; do
45060 if test $ac_beg -gt 1; then
45061 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45062 else
45063 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45064 fi
45065 if test ! -s $tmp/subs.frag; then
45066 ac_more_lines=false
b1e77ec1 45067 else
33f5f8b9 45068 # The purpose of the label and of the branching condition is to
45069 # speed up the sed processing (if there are no `@' at all, there
45070 # is no need to browse any of the substitutions).
45071 # These are the two extra sed commands mentioned above.
45072 (echo ':t
45073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45074 if test -z "$ac_sed_cmds"; then
af3004ff 45075 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33f5f8b9 45076 else
af3004ff 45077 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33f5f8b9 45078 fi
45079 ac_sed_frag=`expr $ac_sed_frag + 1`
45080 ac_beg=$ac_end
45081 ac_end=`expr $ac_end + $ac_max_sed_lines`
b1e77ec1 45082 fi
33f5f8b9 45083 done
45084 if test -z "$ac_sed_cmds"; then
45085 ac_sed_cmds=cat
b1e77ec1 45086 fi
33f5f8b9 45087fi # test -n "$CONFIG_FILES"
45088
45089_ACEOF
45090cat >>$CONFIG_STATUS <<\_ACEOF
45091for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
133b6d90 45092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33f5f8b9 45093 case $ac_file in
45094 - | *:- | *:-:* ) # input from stdin
af3004ff 45095 cat >$tmp/stdin
45096 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33f5f8b9 45098 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
af3004ff 45099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33f5f8b9 45100 * ) ac_file_in=$ac_file.in ;;
45101 esac
45102
45103 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45104 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45106 X"$ac_file" : 'X\(//\)[^/]' \| \
45107 X"$ac_file" : 'X\(//\)$' \| \
45108 X"$ac_file" : 'X\(/\)' \| \
45109 . : '\(.\)' 2>/dev/null ||
33f5f8b9 45110echo X"$ac_file" |
45111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45113 /^X\(\/\/\)$/{ s//\1/; q; }
45114 /^X\(\/\).*/{ s//\1/; q; }
45115 s/.*/./; q'`
ad21602a 45116 { if $as_mkdir_p; then
45117 mkdir -p "$ac_dir"
45118 else
45119 as_dir="$ac_dir"
45120 as_dirs=
45121 while test ! -d "$as_dir"; do
45122 as_dirs="$as_dir $as_dirs"
45123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45125 X"$as_dir" : 'X\(//\)[^/]' \| \
45126 X"$as_dir" : 'X\(//\)$' \| \
45127 X"$as_dir" : 'X\(/\)' \| \
45128 . : '\(.\)' 2>/dev/null ||
ad21602a 45129echo X"$as_dir" |
45130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45132 /^X\(\/\/\)$/{ s//\1/; q; }
45133 /^X\(\/\).*/{ s//\1/; q; }
45134 s/.*/./; q'`
45135 done
45136 test ! -n "$as_dirs" || mkdir $as_dirs
45137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45138echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45139 { (exit 1); exit 1; }; }; }
090089c4 45140
33f5f8b9 45141 ac_builddir=.
090089c4 45142
33f5f8b9 45143if test "$ac_dir" != .; then
45144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45145 # A "../" for each directory in $ac_dir_suffix.
45146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45147else
45148 ac_dir_suffix= ac_top_builddir=
45149fi
090089c4 45150
33f5f8b9 45151case $srcdir in
45152 .) # No --srcdir option. We are building in place.
45153 ac_srcdir=.
45154 if test -z "$ac_top_builddir"; then
45155 ac_top_srcdir=.
45156 else
45157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45158 fi ;;
45159 [\\/]* | ?:[\\/]* ) # Absolute path.
45160 ac_srcdir=$srcdir$ac_dir_suffix;
45161 ac_top_srcdir=$srcdir ;;
090089c4 45162 *) # Relative path.
33f5f8b9 45163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45165esac
af3004ff 45166
45167# Do not use `cd foo && pwd` to compute absolute paths, because
45168# the directories may not exist.
45169case `pwd` in
45170.) ac_abs_builddir="$ac_dir";;
45171*)
45172 case "$ac_dir" in
45173 .) ac_abs_builddir=`pwd`;;
45174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45176 esac;;
45177esac
45178case $ac_abs_builddir in
45179.) ac_abs_top_builddir=${ac_top_builddir}.;;
45180*)
45181 case ${ac_top_builddir}. in
45182 .) ac_abs_top_builddir=$ac_abs_builddir;;
45183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45185 esac;;
45186esac
45187case $ac_abs_builddir in
45188.) ac_abs_srcdir=$ac_srcdir;;
45189*)
45190 case $ac_srcdir in
45191 .) ac_abs_srcdir=$ac_abs_builddir;;
45192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45194 esac;;
45195esac
45196case $ac_abs_builddir in
45197.) ac_abs_top_srcdir=$ac_top_srcdir;;
45198*)
45199 case $ac_top_srcdir in
45200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45203 esac;;
45204esac
133b6d90 45205
b65c7b0d 45206
33f5f8b9 45207 case $INSTALL in
45208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45209 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3f961930 45210 esac
b65c7b0d 45211
6263d81f 45212 if test x"$ac_file" != x-; then
45213 { echo "$as_me:$LINENO: creating $ac_file" >&5
45214echo "$as_me: creating $ac_file" >&6;}
45215 rm -f "$ac_file"
45216 fi
33f5f8b9 45217 # Let's still pretend it is `configure' which instantiates (i.e., don't
45218 # use $as_me), people would be surprised to read:
45219 # /* config.h. Generated by config.status. */
45220 if test x"$ac_file" = x-; then
45221 configure_input=
45222 else
45223 configure_input="$ac_file. "
45224 fi
45225 configure_input=$configure_input"Generated from `echo $ac_file_in |
af3004ff 45226 sed 's,.*/,,'` by configure."
33f5f8b9 45227
45228 # First look for the input files in the build tree, otherwise in the
45229 # src tree.
45230 ac_file_inputs=`IFS=:
45231 for f in $ac_file_in; do
45232 case $f in
45233 -) echo $tmp/stdin ;;
45234 [\\/$]*)
af3004ff 45235 # Absolute (can't be DOS-style, as IFS=:)
45236 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33f5f8b9 45237echo "$as_me: error: cannot find input file: $f" >&2;}
45238 { (exit 1); exit 1; }; }
af3004ff 45239 echo "$f";;
33f5f8b9 45240 *) # Relative
af3004ff 45241 if test -f "$f"; then
45242 # Build tree
45243 echo "$f"
45244 elif test -f "$srcdir/$f"; then
45245 # Source tree
45246 echo "$srcdir/$f"
45247 else
45248 # /dev/null tree
45249 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33f5f8b9 45250echo "$as_me: error: cannot find input file: $f" >&2;}
45251 { (exit 1); exit 1; }; }
af3004ff 45252 fi;;
33f5f8b9 45253 esac
45254 done` || { (exit 1); exit 1; }
45255_ACEOF
45256cat >>$CONFIG_STATUS <<_ACEOF
45257 sed "$ac_vpsub
45258$extrasub
45259_ACEOF
45260cat >>$CONFIG_STATUS <<\_ACEOF
45261:t
45262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45263s,@configure_input@,$configure_input,;t t
45264s,@srcdir@,$ac_srcdir,;t t
45265s,@abs_srcdir@,$ac_abs_srcdir,;t t
45266s,@top_srcdir@,$ac_top_srcdir,;t t
45267s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45268s,@builddir@,$ac_builddir,;t t
45269s,@abs_builddir@,$ac_abs_builddir,;t t
45270s,@top_builddir@,$ac_top_builddir,;t t
45271s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45272s,@INSTALL@,$ac_INSTALL,;t t
45273" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45274 rm -f $tmp/stdin
45275 if test x"$ac_file" != x-; then
45276 mv $tmp/out $ac_file
45277 else
45278 cat $tmp/out
45279 rm -f $tmp/out
45280 fi
45281
45282done
45283_ACEOF
45284cat >>$CONFIG_STATUS <<\_ACEOF
45285
45286#
45287# CONFIG_HEADER section.
45288#
090089c4 45289
45290# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45291# NAME is the cpp macro being defined and VALUE is the value it is being given.
45292#
45293# ac_d sets the value in "#define NAME VALUE" lines.
af3004ff 45294ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45295ac_dB='[ ].*$,\1#\2'
33f5f8b9 45296ac_dC=' '
45297ac_dD=',;t'
45298# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
af3004ff 45299ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
33f5f8b9 45300ac_uB='$,\1#\2define\3'
090089c4 45301ac_uC=' '
33f5f8b9 45302ac_uD=',;t'
45303
45304for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
133b6d90 45305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33f5f8b9 45306 case $ac_file in
45307 - | *:- | *:-:* ) # input from stdin
af3004ff 45308 cat >$tmp/stdin
45309 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33f5f8b9 45311 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
af3004ff 45312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33f5f8b9 45313 * ) ac_file_in=$ac_file.in ;;
090089c4 45314 esac
45315
33f5f8b9 45316 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45317echo "$as_me: creating $ac_file" >&6;}
45318
45319 # First look for the input files in the build tree, otherwise in the
45320 # src tree.
45321 ac_file_inputs=`IFS=:
45322 for f in $ac_file_in; do
45323 case $f in
45324 -) echo $tmp/stdin ;;
45325 [\\/$]*)
af3004ff 45326 # Absolute (can't be DOS-style, as IFS=:)
45327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33f5f8b9 45328echo "$as_me: error: cannot find input file: $f" >&2;}
45329 { (exit 1); exit 1; }; }
af3004ff 45330 # Do quote $f, to prevent DOS paths from being IFS'd.
45331 echo "$f";;
33f5f8b9 45332 *) # Relative
af3004ff 45333 if test -f "$f"; then
45334 # Build tree
45335 echo "$f"
45336 elif test -f "$srcdir/$f"; then
45337 # Source tree
45338 echo "$srcdir/$f"
45339 else
45340 # /dev/null tree
45341 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33f5f8b9 45342echo "$as_me: error: cannot find input file: $f" >&2;}
45343 { (exit 1); exit 1; }; }
af3004ff 45344 fi;;
33f5f8b9 45345 esac
45346 done` || { (exit 1); exit 1; }
45347 # Remove the trailing spaces.
af3004ff 45348 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
33f5f8b9 45349
45350_ACEOF
45351
45352# Transform confdefs.h into two sed scripts, `conftest.defines' and
45353# `conftest.undefs', that substitutes the proper values into
45354# config.h.in to produce config.h. The first handles `#define'
45355# templates, and the second `#undef' templates.
45356# And first: Protect against being on the right side of a sed subst in
45357# config.status. Protect against being in an unquoted here document
45358# in config.status.
45359rm -f conftest.defines conftest.undefs
45360# Using a here document instead of a string reduces the quoting nightmare.
45361# Putting comments in sed scripts is not portable.
45362#
45363# `end' is used to avoid that the second main sed command (meant for
45364# 0-ary CPP macros) applies to n-ary macro definitions.
45365# See the Autoconf documentation for `clear'.
45366cat >confdef2sed.sed <<\_ACEOF
45367s/[\\&,]/\\&/g
45368s,[\\$`],\\&,g
45369t clear
45370: clear
af3004ff 45371s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33f5f8b9 45372t end
af3004ff 45373s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33f5f8b9 45374: end
45375_ACEOF
45376# If some macros were called several times there might be several times
45377# the same #defines, which is useless. Nevertheless, we may not want to
45378# sort them, since we want the *last* AC-DEFINE to be honored.
45379uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45380sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45381rm -f confdef2sed.sed
090089c4 45382
45383# This sed command replaces #undef with comments. This is necessary, for
45384# example, in the case of _POSIX_SOURCE, which is predefined and required
45385# on some systems where configure will not decide to define it.
33f5f8b9 45386cat >>conftest.undefs <<\_ACEOF
af3004ff 45387s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33f5f8b9 45388_ACEOF
45389
45390# Break up conftest.defines because some shells have a limit on the size
45391# of here documents, and old seds have small limits too (100 cmds).
45392echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
af3004ff 45393echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33f5f8b9 45394echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45395echo ' :' >>$CONFIG_STATUS
45396rm -f conftest.tail
45397while grep . conftest.defines >/dev/null
45398do
45399 # Write a limited-size here document to $tmp/defines.sed.
45400 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45401 # Speed up: don't consider the non `#define' lines.
af3004ff 45402 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
33f5f8b9 45403 # Work around the forget-to-reset-the-flag bug.
45404 echo 't clr' >>$CONFIG_STATUS
45405 echo ': clr' >>$CONFIG_STATUS
45406 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45407 echo 'CEOF
45408 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45409 rm -f $tmp/in
45410 mv $tmp/out $tmp/in
45411' >>$CONFIG_STATUS
45412 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45413 rm -f conftest.defines
45414 mv conftest.tail conftest.defines
45415done
45416rm -f conftest.defines
ad21602a 45417echo ' fi # grep' >>$CONFIG_STATUS
33f5f8b9 45418echo >>$CONFIG_STATUS
090089c4 45419
33f5f8b9 45420# Break up conftest.undefs because some shells have a limit on the size
45421# of here documents, and old seds have small limits too (100 cmds).
45422echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
090089c4 45423rm -f conftest.tail
33f5f8b9 45424while grep . conftest.undefs >/dev/null
090089c4 45425do
33f5f8b9 45426 # Write a limited-size here document to $tmp/undefs.sed.
45427 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45428 # Speed up: don't consider the non `#undef'
af3004ff 45429 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
33f5f8b9 45430 # Work around the forget-to-reset-the-flag bug.
45431 echo 't clr' >>$CONFIG_STATUS
45432 echo ': clr' >>$CONFIG_STATUS
45433 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
090089c4 45434 echo 'CEOF
33f5f8b9 45435 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45436 rm -f $tmp/in
45437 mv $tmp/out $tmp/in
45438' >>$CONFIG_STATUS
45439 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45440 rm -f conftest.undefs
45441 mv conftest.tail conftest.undefs
090089c4 45442done
33f5f8b9 45443rm -f conftest.undefs
45444
45445cat >>$CONFIG_STATUS <<\_ACEOF
45446 # Let's still pretend it is `configure' which instantiates (i.e., don't
45447 # use $as_me), people would be surprised to read:
45448 # /* config.h. Generated by config.status. */
45449 if test x"$ac_file" = x-; then
45450 echo "/* Generated by configure. */" >$tmp/config.h
090089c4 45451 else
33f5f8b9 45452 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
b65c7b0d 45453 fi
33f5f8b9 45454 cat $tmp/in >>$tmp/config.h
45455 rm -f $tmp/in
45456 if test x"$ac_file" != x-; then
ad21602a 45457 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33f5f8b9 45458 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45459echo "$as_me: $ac_file is unchanged" >&6;}
45460 else
45461 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45463 X"$ac_file" : 'X\(//\)[^/]' \| \
45464 X"$ac_file" : 'X\(//\)$' \| \
45465 X"$ac_file" : 'X\(/\)' \| \
45466 . : '\(.\)' 2>/dev/null ||
33f5f8b9 45467echo X"$ac_file" |
45468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45470 /^X\(\/\/\)$/{ s//\1/; q; }
45471 /^X\(\/\).*/{ s//\1/; q; }
45472 s/.*/./; q'`
ad21602a 45473 { if $as_mkdir_p; then
45474 mkdir -p "$ac_dir"
45475 else
45476 as_dir="$ac_dir"
45477 as_dirs=
45478 while test ! -d "$as_dir"; do
45479 as_dirs="$as_dir $as_dirs"
45480 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45482 X"$as_dir" : 'X\(//\)[^/]' \| \
45483 X"$as_dir" : 'X\(//\)$' \| \
45484 X"$as_dir" : 'X\(/\)' \| \
45485 . : '\(.\)' 2>/dev/null ||
ad21602a 45486echo X"$as_dir" |
45487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45489 /^X\(\/\/\)$/{ s//\1/; q; }
45490 /^X\(\/\).*/{ s//\1/; q; }
45491 s/.*/./; q'`
45492 done
45493 test ! -n "$as_dirs" || mkdir $as_dirs
45494 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45495echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45496 { (exit 1); exit 1; }; }; }
3f961930 45497
33f5f8b9 45498 rm -f $ac_file
45499 mv $tmp/config.h $ac_file
45500 fi
45501 else
45502 cat $tmp/config.h
45503 rm -f $tmp/config.h
45504 fi
ad21602a 45505# Compute $ac_file's index in $config_headers.
45506_am_stamp_count=1
45507for _am_header in $config_headers :; do
45508 case $_am_header in
45509 $ac_file | $ac_file:* )
45510 break ;;
45511 * )
45512 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33f5f8b9 45513 esac
45514done
ad21602a 45515echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
45516$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45517 X$ac_file : 'X\(//\)[^/]' \| \
45518 X$ac_file : 'X\(//\)$' \| \
45519 X$ac_file : 'X\(/\)' \| \
45520 . : '\(.\)' 2>/dev/null ||
ad21602a 45521echo X$ac_file |
45522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45524 /^X\(\/\/\)$/{ s//\1/; q; }
45525 /^X\(\/\).*/{ s//\1/; q; }
45526 s/.*/./; q'`/stamp-h$_am_stamp_count
45527done
33f5f8b9 45528_ACEOF
45529cat >>$CONFIG_STATUS <<\_ACEOF
a2794549 45530
33f5f8b9 45531#
45532# CONFIG_COMMANDS section.
45533#
45534for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45535 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45536 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45537 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45538$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45539 X"$ac_dest" : 'X\(//\)[^/]' \| \
45540 X"$ac_dest" : 'X\(//\)$' \| \
45541 X"$ac_dest" : 'X\(/\)' \| \
45542 . : '\(.\)' 2>/dev/null ||
33f5f8b9 45543echo X"$ac_dest" |
45544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45546 /^X\(\/\/\)$/{ s//\1/; q; }
45547 /^X\(\/\).*/{ s//\1/; q; }
45548 s/.*/./; q'`
af3004ff 45549 { if $as_mkdir_p; then
45550 mkdir -p "$ac_dir"
45551 else
45552 as_dir="$ac_dir"
45553 as_dirs=
45554 while test ! -d "$as_dir"; do
45555 as_dirs="$as_dir $as_dirs"
45556 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45557$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45558 X"$as_dir" : 'X\(//\)[^/]' \| \
45559 X"$as_dir" : 'X\(//\)$' \| \
45560 X"$as_dir" : 'X\(/\)' \| \
45561 . : '\(.\)' 2>/dev/null ||
45562echo X"$as_dir" |
45563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45565 /^X\(\/\/\)$/{ s//\1/; q; }
45566 /^X\(\/\).*/{ s//\1/; q; }
45567 s/.*/./; q'`
45568 done
45569 test ! -n "$as_dirs" || mkdir $as_dirs
45570 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45571echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45572 { (exit 1); exit 1; }; }; }
45573
33f5f8b9 45574 ac_builddir=.
45575
45576if test "$ac_dir" != .; then
45577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45578 # A "../" for each directory in $ac_dir_suffix.
45579 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45580else
45581 ac_dir_suffix= ac_top_builddir=
45582fi
45583
45584case $srcdir in
45585 .) # No --srcdir option. We are building in place.
45586 ac_srcdir=.
45587 if test -z "$ac_top_builddir"; then
45588 ac_top_srcdir=.
45589 else
45590 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45591 fi ;;
45592 [\\/]* | ?:[\\/]* ) # Absolute path.
45593 ac_srcdir=$srcdir$ac_dir_suffix;
45594 ac_top_srcdir=$srcdir ;;
45595 *) # Relative path.
45596 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45597 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45598esac
af3004ff 45599
45600# Do not use `cd foo && pwd` to compute absolute paths, because
45601# the directories may not exist.
45602case `pwd` in
45603.) ac_abs_builddir="$ac_dir";;
45604*)
45605 case "$ac_dir" in
45606 .) ac_abs_builddir=`pwd`;;
45607 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45608 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45609 esac;;
45610esac
45611case $ac_abs_builddir in
45612.) ac_abs_top_builddir=${ac_top_builddir}.;;
45613*)
45614 case ${ac_top_builddir}. in
45615 .) ac_abs_top_builddir=$ac_abs_builddir;;
45616 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45617 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45618 esac;;
45619esac
45620case $ac_abs_builddir in
45621.) ac_abs_srcdir=$ac_srcdir;;
45622*)
45623 case $ac_srcdir in
45624 .) ac_abs_srcdir=$ac_abs_builddir;;
45625 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45626 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45627 esac;;
45628esac
45629case $ac_abs_builddir in
45630.) ac_abs_top_srcdir=$ac_top_srcdir;;
45631*)
45632 case $ac_top_srcdir in
45633 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45634 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45635 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45636 esac;;
45637esac
33f5f8b9 45638
45639
45640 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45641echo "$as_me: executing $ac_dest commands" >&6;}
45642 case $ac_dest in
ad21602a 45643 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
45644 # Strip MF so we end up with the name of the file.
45645 mf=`echo "$mf" | sed -e 's/:.*$//'`
45646 # Check whether this is an Automake generated Makefile or not.
45647 # We used to match only the files named `Makefile.in', but
45648 # some people rename them; so instead we look at the file content.
45649 # Grep'ing the first line is not enough: some people post-process
45650 # each Makefile.in and add a new line on top of each file to say so.
45651 # So let's grep whole file.
45652 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
45653 dirpart=`(dirname "$mf") 2>/dev/null ||
45654$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45655 X"$mf" : 'X\(//\)[^/]' \| \
45656 X"$mf" : 'X\(//\)$' \| \
45657 X"$mf" : 'X\(/\)' \| \
45658 . : '\(.\)' 2>/dev/null ||
ad21602a 45659echo X"$mf" |
45660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45662 /^X\(\/\/\)$/{ s//\1/; q; }
45663 /^X\(\/\).*/{ s//\1/; q; }
45664 s/.*/./; q'`
45665 else
45666 continue
45667 fi
07d1f987 45668 # Extract the definition of DEPDIR, am__include, and am__quote
45669 # from the Makefile without running `make'.
45670 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
a2794549 45671 test -z "$DEPDIR" && continue
07d1f987 45672 am__include=`sed -n 's/^am__include = //p' < "$mf"`
45673 test -z "am__include" && continue
45674 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
a2794549 45675 # When using ansi2knr, U may be empty or an underscore; expand it
07d1f987 45676 U=`sed -n 's/^U = //p' < "$mf"`
45677 # Find all dependency output files, they are included files with
45678 # $(DEPDIR) in their names. We invoke sed twice because it is the
45679 # simplest approach to changing $(DEPDIR) to its actual value in the
45680 # expansion.
45681 for file in `sed -n "
45682 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
a2794549 45683 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
45684 # Make sure the directory exists.
45685 test -f "$dirpart/$file" && continue
ad21602a 45686 fdir=`(dirname "$file") 2>/dev/null ||
45687$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45688 X"$file" : 'X\(//\)[^/]' \| \
45689 X"$file" : 'X\(//\)$' \| \
45690 X"$file" : 'X\(/\)' \| \
45691 . : '\(.\)' 2>/dev/null ||
ad21602a 45692echo X"$file" |
45693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45695 /^X\(\/\/\)$/{ s//\1/; q; }
45696 /^X\(\/\).*/{ s//\1/; q; }
45697 s/.*/./; q'`
45698 { if $as_mkdir_p; then
45699 mkdir -p $dirpart/$fdir
45700 else
45701 as_dir=$dirpart/$fdir
45702 as_dirs=
45703 while test ! -d "$as_dir"; do
45704 as_dirs="$as_dir $as_dirs"
45705 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45707 X"$as_dir" : 'X\(//\)[^/]' \| \
45708 X"$as_dir" : 'X\(//\)$' \| \
45709 X"$as_dir" : 'X\(/\)' \| \
45710 . : '\(.\)' 2>/dev/null ||
ad21602a 45711echo X"$as_dir" |
45712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45714 /^X\(\/\/\)$/{ s//\1/; q; }
45715 /^X\(\/\).*/{ s//\1/; q; }
45716 s/.*/./; q'`
45717 done
45718 test ! -n "$as_dirs" || mkdir $as_dirs
45719 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
45720echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
45721 { (exit 1); exit 1; }; }; }
45722
a2794549 45723 # echo "creating $dirpart/$file"
45724 echo '# dummy' > "$dirpart/$file"
45725 done
45726done
33f5f8b9 45727 ;;
45728 esac
45729done
45730_ACEOF
a2794549 45731
33f5f8b9 45732cat >>$CONFIG_STATUS <<\_ACEOF
090089c4 45733
33f5f8b9 45734{ (exit 0); exit 0; }
45735_ACEOF
090089c4 45736chmod +x $CONFIG_STATUS
33f5f8b9 45737ac_clean_files=$ac_clean_files_save
45738
45739
45740# configure is writing to config.log, and then calls config.status.
45741# config.status does its own redirection, appending to config.log.
45742# Unfortunately, on DOS this fails, as config.log is still kept open
45743# by configure, so config.status won't be able to write to it; its
45744# output is simply discarded. So we exec the FD to /dev/null,
45745# effectively closing config.log, so it can be properly (re)opened and
45746# appended to by config.status. When coming back to configure, we
45747# need to make the FD available again.
45748if test "$no_create" != yes; then
45749 ac_cs_success=:
ad21602a 45750 ac_config_status_args=
45751 test "$silent" = yes &&
45752 ac_config_status_args="$ac_config_status_args --quiet"
33f5f8b9 45753 exec 5>/dev/null
ad21602a 45754 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33f5f8b9 45755 exec 5>>config.log
45756 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45757 # would make configure fail if this is the last instruction.
45758 $ac_cs_success || { (exit 1); exit 1; }
45759fi
090089c4 45760
12a5c9fd 45761#
45762# CONFIG_SUBDIRS section.
45763#
45764if test "$no_recursion" != yes; then
45765
45766 # Remove --cache-file and --srcdir arguments so they do not pile up.
45767 ac_sub_configure_args=
6263d81f 45768 # Add --quiet option if used
45769 test "$silent" = yes &&
45770 ac_sub_configure_args="$ac_sub_configure_args --quiet"
12a5c9fd 45771 ac_prev=
45772 for ac_arg in $ac_configure_args; do
45773 if test -n "$ac_prev"; then
45774 ac_prev=
45775 continue
45776 fi
45777 case $ac_arg in
45778 -cache-file | --cache-file | --cache-fil | --cache-fi \
45779 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45780 ac_prev=cache_file ;;
45781 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45782 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45783 | --c=*)
45784 ;;
45785 --config-cache | -C)
45786 ;;
45787 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45788 ac_prev=srcdir ;;
45789 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45790 ;;
45791 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45792 ac_prev=prefix ;;
45793 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45794 ;;
45795 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45796 esac
45797 done
45798
45799 # Always prepend --prefix to ensure using the same prefix
45800 # in subdir configurations.
45801 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45802
45803 ac_popdir=`pwd`
45804 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45805
45806 # Do not complain, so a configure script can configure whichever
45807 # parts of a large source tree are present.
45808 test -d $srcdir/$ac_dir || continue
45809
45810 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45811echo "$as_me: configuring in $ac_dir" >&6;}
ad21602a 45812 { if $as_mkdir_p; then
45813 mkdir -p "$ac_dir"
45814 else
45815 as_dir="$ac_dir"
45816 as_dirs=
45817 while test ! -d "$as_dir"; do
45818 as_dirs="$as_dir $as_dirs"
45819 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45820$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
af3004ff 45821 X"$as_dir" : 'X\(//\)[^/]' \| \
45822 X"$as_dir" : 'X\(//\)$' \| \
45823 X"$as_dir" : 'X\(/\)' \| \
45824 . : '\(.\)' 2>/dev/null ||
ad21602a 45825echo X"$as_dir" |
45826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45828 /^X\(\/\/\)$/{ s//\1/; q; }
45829 /^X\(\/\).*/{ s//\1/; q; }
45830 s/.*/./; q'`
45831 done
45832 test ! -n "$as_dirs" || mkdir $as_dirs
45833 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45834echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45835 { (exit 1); exit 1; }; }; }
12a5c9fd 45836
45837 ac_builddir=.
45838
45839if test "$ac_dir" != .; then
45840 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45841 # A "../" for each directory in $ac_dir_suffix.
45842 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45843else
45844 ac_dir_suffix= ac_top_builddir=
45845fi
45846
45847case $srcdir in
45848 .) # No --srcdir option. We are building in place.
45849 ac_srcdir=.
45850 if test -z "$ac_top_builddir"; then
45851 ac_top_srcdir=.
45852 else
45853 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45854 fi ;;
45855 [\\/]* | ?:[\\/]* ) # Absolute path.
45856 ac_srcdir=$srcdir$ac_dir_suffix;
45857 ac_top_srcdir=$srcdir ;;
45858 *) # Relative path.
45859 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45860 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45861esac
af3004ff 45862
45863# Do not use `cd foo && pwd` to compute absolute paths, because
45864# the directories may not exist.
45865case `pwd` in
45866.) ac_abs_builddir="$ac_dir";;
45867*)
45868 case "$ac_dir" in
45869 .) ac_abs_builddir=`pwd`;;
45870 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45871 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45872 esac;;
45873esac
45874case $ac_abs_builddir in
45875.) ac_abs_top_builddir=${ac_top_builddir}.;;
45876*)
45877 case ${ac_top_builddir}. in
45878 .) ac_abs_top_builddir=$ac_abs_builddir;;
45879 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45880 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45881 esac;;
45882esac
45883case $ac_abs_builddir in
45884.) ac_abs_srcdir=$ac_srcdir;;
45885*)
45886 case $ac_srcdir in
45887 .) ac_abs_srcdir=$ac_abs_builddir;;
45888 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45889 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45890 esac;;
45891esac
45892case $ac_abs_builddir in
45893.) ac_abs_top_srcdir=$ac_top_srcdir;;
45894*)
45895 case $ac_top_srcdir in
45896 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45897 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45898 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45899 esac;;
45900esac
12a5c9fd 45901
45902
45903 cd $ac_dir
45904
45905 # Check for guested configure; otherwise get Cygnus style configure.
45906 if test -f $ac_srcdir/configure.gnu; then
45907 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45908 elif test -f $ac_srcdir/configure; then
45909 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45910 elif test -f $ac_srcdir/configure.in; then
45911 ac_sub_configure=$ac_configure
45912 else
45913 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45914echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45915 ac_sub_configure=
45916 fi
45917
45918 # The recursion is here.
45919 if test -n "$ac_sub_configure"; then
45920 # Make the cache file name correct relative to the subdirectory.
45921 case $cache_file in
45922 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45923 *) # Relative path.
af3004ff 45924 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
12a5c9fd 45925 esac
45926
45927 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45928echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45929 # The eval makes quoting arguments work.
45930 eval $ac_sub_configure $ac_sub_configure_args \
af3004ff 45931 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45932 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
12a5c9fd 45933echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45934 { (exit 1); exit 1; }; }
45935 fi
45936
6263d81f 45937 cd $ac_popdir
12a5c9fd 45938 done
45939fi
45940