chiark / gitweb /
dump control command
[innduct.git] / configure
1 #! /bin/sh
2
3 # From configure.in Revision: 7811 
4 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
5 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
6 ## Free Software Foundation, Inc.
7 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8 ##
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation; either version 2 of the License, or
12 ## (at your option) any later version.
13 ##
14 ## This program is distributed in the hope that it will be useful, but
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 ## General Public License for more details.
18 ##
19 ## You should have received a copy of the GNU General Public License
20 ## along with this program; if not, write to the Free Software
21 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 ##
23 ## As a special exception to the GNU General Public License, if you
24 ## distribute this file as part of a program that contains a
25 ## configuration script generated by Autoconf, you may include it under
26 ## the same distribution terms that you use for the rest of that program.
27
28 # serial 46 AC_PROG_LIBTOOL
29
30
31
32
33
34 # AC_LIBTOOL_HEADER_ASSERT
35 # ------------------------
36 # AC_LIBTOOL_HEADER_ASSERT
37
38 # _LT_AC_CHECK_DLFCN
39 # --------------------
40 # _LT_AC_CHECK_DLFCN
41
42 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
43 # ---------------------------------
44  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
45
46 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
47 # ---------------------------------
48 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
49
50 # _LT_AC_PROG_ECHO_BACKSLASH
51 # --------------------------
52 # Add some code to the start of the generated configure script which
53 # will find an echo command which doesn't interpret backslashes.
54 # _LT_AC_PROG_ECHO_BACKSLASH
55
56 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
57 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
58 # ------------------------------------------------------------------
59 # _LT_AC_TRY_DLOPEN_SELF
60
61 # AC_LIBTOOL_DLOPEN_SELF
62 # -------------------
63 # AC_LIBTOOL_DLOPEN_SELF
64
65 # _LT_AC_LTCONFIG_HACK
66
67 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
68
69
70 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
71
72
73 # AC_ENABLE_SHARED - implement the --enable-shared flag
74 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
75 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
76 #   `yes'.
77
78
79 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
80
81
82 # AC_ENABLE_STATIC - implement the --enable-static flag
83 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
84 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
85 #   `yes'.
86
87
88 # AC_DISABLE_STATIC - set the default static flag to --disable-static
89
90
91
92 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
93 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
94 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
95 #   `yes'.
96
97
98 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
99
100
101 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
102 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
103 #   Where MODE is either `yes' or `no'.  If omitted, it defaults to
104 #   `both'.
105
106
107
108 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
109
110
111
112 # AC_PATH_MAGIC - find a file program which can recognise a shared library
113
114
115
116 # AC_PROG_LD - find the path to the GNU or non-GNU linker
117
118
119 # AC_PROG_LD_GNU -
120
121
122 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
123 #   -- PORTME Some linkers may need a different reload flag.
124
125
126 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
127 #  -- PORTME fill in with the dynamic library characteristics
128
129
130
131 # AC_PROG_NM - find the path to a BSD-compatible name lister
132
133
134 # AC_CHECK_LIBM - check for math library
135
136
137 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
138 # the libltdl convenience library and INCLTDL to the include flags for
139 # the libltdl header and adds --enable-ltdl-convenience to the
140 # configure arguments.  Note that LIBLTDL and INCLTDL are not
141 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
142 # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
143 # with '${top_builddir}/' and INCLTDL will be prefixed with
144 # '${top_srcdir}/' (note the single quotes!).  If your package is not
145 # flat and you're not using automake, define top_builddir and
146 # top_srcdir appropriately in the Makefiles.
147
148
149 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
150 # the libltdl installable library and INCLTDL to the include flags for
151 # the libltdl header and adds --enable-ltdl-install to the configure
152 # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
153 # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
154 # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
155 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
156 # with '${top_srcdir}/' (note the single quotes!).  If your package is
157 # not flat and you're not using automake, define top_builddir and
158 # top_srcdir appropriately in the Makefiles.
159 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
160
161
162 # old names
163
164
165
166
167
168
169
170
171 # This is just to silence aclocal about the macro not being used
172
173 # Guess values for system-dependent variables and create Makefiles.
174 # Generated automatically using autoconf version 2.13 
175 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
176 #
177 # This configure script is free software; the Free Software Foundation
178 # gives unlimited permission to copy, distribute and modify it.
179
180 # Defaults:
181 ac_help=
182 ac_default_prefix=/usr/local
183 # Any additions from configure.in:
184 ac_default_prefix=/usr/local/news
185 ac_help="$ac_help
186   --enable-libtool        Use libtool for lib generation [default=no]"
187 ac_help="$ac_help
188   --enable-shared[=PKGS]  build shared libraries [default=yes]"
189 ac_help="$ac_help
190   --enable-static[=PKGS]  build static libraries [default=yes]"
191 ac_help="$ac_help
192   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
193 ac_help="$ac_help
194   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
195
196 # Find the correct PATH separator.  Usually this is `:', but
197 # DJGPP uses `;' like DOS.
198 if test "X${PATH_SEPARATOR+set}" != Xset; then
199   UNAME=${UNAME-`uname 2>/dev/null`}
200   case X$UNAME in
201     *-DOS) lt_cv_sys_path_separator=';' ;;
202     *)     lt_cv_sys_path_separator=':' ;;
203   esac
204   PATH_SEPARATOR=$lt_cv_sys_path_separator
205 fi
206
207
208 # Check that we are running under the correct shell.
209 SHELL=${CONFIG_SHELL-/bin/sh}
210
211 case X$ECHO in
212 X*--fallback-echo)
213   # Remove one level of quotation (which was required for Make).
214   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
215   ;;
216 esac
217
218 echo=${ECHO-echo}
219 if test "X$1" = X--no-reexec; then
220   # Discard the --no-reexec flag, and continue.
221   shift
222 elif test "X$1" = X--fallback-echo; then
223   # Avoid inline document here, it may be left over
224   :
225 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
226   # Yippee, $echo works!
227   :
228 else
229   # Restart under the correct shell.
230   exec $SHELL "$0" --no-reexec ${1+"$@"}
231 fi
232
233 if test "X$1" = X--fallback-echo; then
234   # used as fallback echo
235   shift
236   cat <<EOF
237
238 EOF
239   exit 0
240 fi
241
242 # The HP-UX ksh and POSIX shell print the target directory to stdout
243 # if CDPATH is set.
244 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
245
246 if test -z "$ECHO"; then
247 if test "X${echo_test_string+set}" != Xset; then
248 # find a string as large as possible, as long as the shell can cope with it
249   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
250     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
251     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
252        echo_test_string="`eval $cmd`" &&
253        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
254     then
255       break
256     fi
257   done
258 fi
259
260 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
261    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
262    test "X$echo_testing_string" = "X$echo_test_string"; then
263   :
264 else
265   # The Solaris, AIX, and Digital Unix default echo programs unquote
266   # backslashes.  This makes it impossible to quote backslashes using
267   #   echo "$something" | sed 's/\\/\\\\/g'
268   #
269   # So, first we look for a working echo in the user's PATH.
270
271   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
272   for dir in $PATH /usr/ucb; do
273     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
274        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
275        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
276        test "X$echo_testing_string" = "X$echo_test_string"; then
277       echo="$dir/echo"
278       break
279     fi
280   done
281   IFS="$save_ifs"
282
283   if test "X$echo" = Xecho; then
284     # We didn't find a better echo, so look for alternatives.
285     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
286        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
287        test "X$echo_testing_string" = "X$echo_test_string"; then
288       # This shell has a builtin print -r that does the trick.
289       echo='print -r'
290     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
291          test "X$CONFIG_SHELL" != X/bin/ksh; then
292       # If we have ksh, try running configure again with it.
293       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
294       export ORIGINAL_CONFIG_SHELL
295       CONFIG_SHELL=/bin/ksh
296       export CONFIG_SHELL
297       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
298     else
299       # Try using printf.
300       echo='printf %s\n'
301       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303          test "X$echo_testing_string" = "X$echo_test_string"; then
304         # Cool, printf works
305         :
306       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
307            test "X$echo_testing_string" = 'X\t' &&
308            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
309            test "X$echo_testing_string" = "X$echo_test_string"; then
310         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
311         export CONFIG_SHELL
312         SHELL="$CONFIG_SHELL"
313         export SHELL
314         echo="$CONFIG_SHELL $0 --fallback-echo"
315       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
316            test "X$echo_testing_string" = 'X\t' &&
317            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
318            test "X$echo_testing_string" = "X$echo_test_string"; then
319         echo="$CONFIG_SHELL $0 --fallback-echo"
320       else
321         # maybe with a smaller string...
322         prev=:
323
324         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
325           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
326           then
327             break
328           fi
329           prev="$cmd"
330         done
331
332         if test "$prev" != 'sed 50q "$0"'; then
333           echo_test_string=`eval $prev`
334           export echo_test_string
335           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
336         else
337           # Oops.  We lost completely, so just stick with echo.
338           echo=echo
339         fi
340       fi
341     fi
342   fi
343 fi
344 fi
345
346 # Copy echo and quote the copy suitably for passing to libtool from
347 # the Makefile, instead of quoting the original, which is used later.
348 ECHO=$echo
349 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
350    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
351 fi
352
353
354 ac_help="$ac_help
355   --disable-libtool-lock  avoid locking (might break parallel builds)"
356 ac_help="$ac_help
357   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
358 ac_help="$ac_help
359   --with-control-dir=PATH Path for control programs [PREFIX/bin/control]"
360 ac_help="$ac_help
361   --with-db-dir=PATH      Path for news database files [PREFIX/db]"
362 ac_help="$ac_help
363   --with-doc-dir=PATH     Path for news documentation [PREFIX/doc]"
364 ac_help="$ac_help
365   --with-etc-dir=PATH     Path for news config files [PREFIX/etc]"
366 ac_help="$ac_help
367   --with-filter-dir=PATH  Path for embedded filters [PREFIX/bin/filter]"
368 ac_help="$ac_help
369   --with-lib-dir=PATH     Path for news library files [PREFIX/lib]"
370 ac_help="$ac_help
371   --with-log-dir=PATH     Path for news logs [PREFIX/log]"
372 ac_help="$ac_help
373   --with-run-dir=PATH     Path for news PID/runtime files [PREFIX/run]"
374 ac_help="$ac_help
375   --with-spool-dir=PATH   Path for news storage [PREFIX/spool]"
376 ac_help="$ac_help
377   --with-tmp-dir=PATH     Path for temporary files [PREFIX/tmp]"
378 ac_help="$ac_help
379   --with-syslog-facility=LOG_FAC  Syslog facility [LOG_NEWS or LOG_LOCAL1]"
380 ac_help="$ac_help
381   --with-news-user=USER   News user name [news]"
382 ac_help="$ac_help
383   --with-news-group=GROUP News group name [news]"
384 ac_help="$ac_help
385   --with-news-master=USER News master (address for reports) [usenet]"
386 ac_help="$ac_help
387   --with-news-umask=UMASK umask for news files [002]"
388 ac_help="$ac_help
389   --enable-setgid-inews   Install inews setgid"
390 ac_help="$ac_help
391   --enable-uucp-rnews     Install rnews setuid, group uucp"
392 ac_help="$ac_help
393   --with-log-compress=METHOD   Log compression method [gzip]"
394 ac_help="$ac_help
395   --with-innd-port=PORT   Additional low-numbered port for inndstart"
396 ac_help="$ac_help
397   --enable-ipv6           Enable IPv6 support"
398 ac_help="$ac_help
399   --with-max-sockets=N    Maximum number of listening sockets in innd"
400 ac_help="$ac_help
401   --enable-tagged-hash    Use tagged hash table for history"
402 ac_help="$ac_help
403   --enable-keywords       Automatic keyword generation support"
404 ac_help="$ac_help
405   --enable-largefiles     Support for files larger than 2GB [default=no]"
406 ac_help="$ac_help
407   --with-sendmail=PATH    Path to sendmail"
408 ac_help="$ac_help
409   --with-kerberos=PATH    Path to Kerberos v5 (for auth_krb5)"
410 ac_help="$ac_help
411   --with-perl             Embedded Perl script support [default=no]"
412 ac_help="$ac_help
413   --with-python           Embedded Python module support [default=no]"
414 ac_help="$ac_help
415   --with-berkeleydb[=PATH]  Enable BerkeleyDB (for ovdb overview method)"
416 ac_help="$ac_help
417   --with-openssl=PATH     Enable OpenSSL (for NNTP over SSL support)"
418 ac_help="$ac_help
419   --with-sasl=PATH        Enable SASL (for imapfeed authentication)"
420
421 # Initialize some variables set by options.
422 # The variables have the same names as the options, with
423 # dashes changed to underlines.
424 build=NONE
425 cache_file=./config.cache
426 exec_prefix=NONE
427 host=NONE
428 no_create=
429 nonopt=NONE
430 no_recursion=
431 prefix=NONE
432 program_prefix=NONE
433 program_suffix=NONE
434 program_transform_name=s,x,x,
435 silent=
436 site=
437 srcdir=
438 target=NONE
439 verbose=
440 x_includes=NONE
441 x_libraries=NONE
442 bindir='${exec_prefix}/bin'
443 sbindir='${exec_prefix}/sbin'
444 libexecdir='${exec_prefix}/libexec'
445 datadir='${prefix}/share'
446 sysconfdir='${prefix}/etc'
447 sharedstatedir='${prefix}/com'
448 localstatedir='${prefix}/var'
449 libdir='${exec_prefix}/lib'
450 includedir='${prefix}/include'
451 oldincludedir='/usr/include'
452 infodir='${prefix}/info'
453 mandir='${prefix}/man'
454
455 # Initialize some other variables.
456 subdirs=
457 MFLAGS= MAKEFLAGS=
458 SHELL=${CONFIG_SHELL-/bin/sh}
459 # Maximum number of lines to put in a shell here document.
460 ac_max_here_lines=12
461
462 ac_prev=
463 for ac_option
464 do
465
466   # If the previous option needs an argument, assign it.
467   if test -n "$ac_prev"; then
468     eval "$ac_prev=\$ac_option"
469     ac_prev=
470     continue
471   fi
472
473   case "$ac_option" in
474   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
475   *) ac_optarg= ;;
476   esac
477
478   # Accept the important Cygnus configure options, so we can diagnose typos.
479
480   case "$ac_option" in
481
482   -bindir | --bindir | --bindi | --bind | --bin | --bi)
483     ac_prev=bindir ;;
484   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
485     bindir="$ac_optarg" ;;
486
487   -build | --build | --buil | --bui | --bu)
488     ac_prev=build ;;
489   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
490     build="$ac_optarg" ;;
491
492   -cache-file | --cache-file | --cache-fil | --cache-fi \
493   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
494     ac_prev=cache_file ;;
495   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
496   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
497     cache_file="$ac_optarg" ;;
498
499   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
500     ac_prev=datadir ;;
501   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
502   | --da=*)
503     datadir="$ac_optarg" ;;
504
505   -disable-* | --disable-*)
506     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
507     # Reject names that are not valid shell variable names.
508     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
509       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
510     fi
511     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
512     eval "enable_${ac_feature}=no" ;;
513
514   -enable-* | --enable-*)
515     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
516     # Reject names that are not valid shell variable names.
517     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
518       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
519     fi
520     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
521     case "$ac_option" in
522       *=*) ;;
523       *) ac_optarg=yes ;;
524     esac
525     eval "enable_${ac_feature}='$ac_optarg'" ;;
526
527   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
528   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
529   | --exec | --exe | --ex)
530     ac_prev=exec_prefix ;;
531   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
532   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
533   | --exec=* | --exe=* | --ex=*)
534     exec_prefix="$ac_optarg" ;;
535
536   -gas | --gas | --ga | --g)
537     # Obsolete; use --with-gas.
538     with_gas=yes ;;
539
540   -help | --help | --hel | --he)
541     # Omit some internal or obsolete options to make the list less imposing.
542     # This message is too long to be a string in the A/UX 3.1 sh.
543     cat << EOF
544 Usage: configure [options] [host]
545 Options: [defaults in brackets after descriptions]
546 Configuration:
547   --cache-file=FILE       cache test results in FILE
548   --help                  print this message
549   --no-create             do not create output files
550   --quiet, --silent       do not print \`checking...' messages
551   --version               print the version of autoconf that created configure
552 Directory and file names:
553   --prefix=PREFIX         install architecture-independent files in PREFIX
554                           [$ac_default_prefix]
555   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
556                           [same as prefix]
557   --bindir=DIR            user executables in DIR [EPREFIX/bin]
558   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
559   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
560   --datadir=DIR           read-only architecture-independent data in DIR
561                           [PREFIX/share]
562   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
563   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
564                           [PREFIX/com]
565   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
566   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
567   --includedir=DIR        C header files in DIR [PREFIX/include]
568   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
569   --infodir=DIR           info documentation in DIR [PREFIX/info]
570   --mandir=DIR            man documentation in DIR [PREFIX/man]
571   --srcdir=DIR            find the sources in DIR [configure dir or ..]
572   --program-prefix=PREFIX prepend PREFIX to installed program names
573   --program-suffix=SUFFIX append SUFFIX to installed program names
574   --program-transform-name=PROGRAM
575                           run sed PROGRAM on installed program names
576 EOF
577     cat << EOF
578 Host type:
579   --build=BUILD           configure for building on BUILD [BUILD=HOST]
580   --host=HOST             configure for HOST [guessed]
581   --target=TARGET         configure for TARGET [TARGET=HOST]
582 Features and packages:
583   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
584   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
585   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
586   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
587   --x-includes=DIR        X include files are in DIR
588   --x-libraries=DIR       X library files are in DIR
589 EOF
590     if test -n "$ac_help"; then
591       echo "--enable and --with options recognized:$ac_help"
592     fi
593     exit 0 ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host="$ac_optarg" ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir="$ac_optarg" ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir="$ac_optarg" ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir="$ac_optarg" ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir="$ac_optarg" ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir="$ac_optarg" ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir="$ac_optarg" ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir="$ac_optarg" ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix="$ac_optarg" ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix="$ac_optarg" ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix="$ac_optarg" ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name="$ac_optarg" ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir="$ac_optarg" ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir="$ac_optarg" ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site="$ac_optarg" ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir="$ac_optarg" ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir="$ac_optarg" ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target="$ac_optarg" ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers)
742     echo "configure generated by autoconf version 2.13"
743     exit 0 ;;
744
745   -with-* | --with-*)
746     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
747     # Reject names that are not valid shell variable names.
748     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
749       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
750     fi
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case "$ac_option" in
753       *=*) ;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_${ac_package}='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
760     # Reject names that are not valid shell variable names.
761     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
762       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
763     fi
764     ac_package=`echo $ac_package| sed 's/-/_/g'`
765     eval "with_${ac_package}=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes="$ac_optarg" ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries="$ac_optarg" ;;
784
785   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
786     ;;
787
788   *)
789     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
790       echo "configure: warning: $ac_option: invalid host type" 1>&2
791     fi
792     if test "x$nonopt" != xNONE; then
793       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
794     fi
795     nonopt="$ac_option"
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
803 fi
804
805 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
806
807 # File descriptor usage:
808 # 0 standard input
809 # 1 file creation
810 # 2 errors and warnings
811 # 3 some systems may open it to /dev/tty
812 # 4 used on the Kubota Titan
813 # 6 checking for... messages and results
814 # 5 compiler messages saved in config.log
815 if test "$silent" = yes; then
816   exec 6>/dev/null
817 else
818   exec 6>&1
819 fi
820 exec 5>./config.log
821
822 echo "\
823 This file contains any messages produced by compilers while
824 running configure, to aid debugging if configure makes a mistake.
825 " 1>&5
826
827 # Strip out --no-create and --no-recursion so they do not pile up.
828 # Also quote any args containing shell metacharacters.
829 ac_configure_args=
830 for ac_arg
831 do
832   case "$ac_arg" in
833   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
834   | --no-cr | --no-c) ;;
835   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
836   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
837   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
838   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
839   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
840   esac
841 done
842
843 # NLS nuisances.
844 # Only set these to C if already set.  These must not be set unconditionally
845 # because not all systems understand e.g. LANG=C (notably SCO).
846 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
847 # Non-C LC_CTYPE values break the ctype check.
848 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
849 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
850 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
851 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
852
853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
854 rm -rf conftest* confdefs.h
855 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
856 echo > confdefs.h
857
858 # A filename unique to this package, relative to the directory that
859 # configure is in, which we can look for to find out if srcdir is correct.
860 ac_unique_file=Makefile.global.in
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_prog=$0
867   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
868   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
869   srcdir=$ac_confdir
870   if test ! -r $srcdir/$ac_unique_file; then
871     srcdir=..
872   fi
873 else
874   ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877   if test "$ac_srcdir_defaulted" = yes; then
878     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
879   else
880     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
881   fi
882 fi
883 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
884
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887   if test "x$prefix" != xNONE; then
888     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889   else
890     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
891   fi
892 fi
893 for ac_site_file in $CONFIG_SITE; do
894   if test -r "$ac_site_file"; then
895     echo "loading site script $ac_site_file"
896     . "$ac_site_file"
897   fi
898 done
899
900 if test -r "$cache_file"; then
901   echo "loading cache $cache_file"
902   . $cache_file
903 else
904   echo "creating cache $cache_file"
905   > $cache_file
906 fi
907
908 ac_ext=c
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
914
915 ac_exeext=
916 ac_objext=o
917 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
918   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
919   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
920     ac_n= ac_c='
921 ' ac_t='        '
922   else
923     ac_n=-n ac_c= ac_t=
924   fi
925 else
926   ac_n= ac_c='\c' ac_t=
927 fi
928
929
930 ac_aux_dir=
931 for ac_dir in support $srcdir/support; do
932   if test -f $ac_dir/install-sh; then
933     ac_aux_dir=$ac_dir
934     ac_install_sh="$ac_aux_dir/install-sh -c"
935     break
936   elif test -f $ac_dir/install.sh; then
937     ac_aux_dir=$ac_dir
938     ac_install_sh="$ac_aux_dir/install.sh -c"
939     break
940   fi
941 done
942 if test -z "$ac_aux_dir"; then
943   { echo "configure: error: can not find install-sh or install.sh in support $srcdir/support" 1>&2; exit 1; }
944 fi
945 ac_config_guess=$ac_aux_dir/config.guess
946 ac_config_sub=$ac_aux_dir/config.sub
947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
948
949
950
951 test x"$prefix" = xNONE && prefix="$ac_default_prefix"
952
953 builddir=`pwd`
954
955
956 if test x"$with_largefiles" != x ; then
957     { echo "configure: error: Use --enable-largefiles instead of --with-largefiles" 1>&2; exit 1; }
958 fi
959
960
961
962 # Extract the first word of "gcc", so it can be a program name with args.
963 set dummy gcc; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967   echo $ac_n "(cached) $ac_c" 1>&6
968 else
969   if test -n "$CC"; then
970   ac_cv_prog_CC="$CC" # Let the user override the test.
971 else
972   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
973   ac_dummy="$PATH"
974   for ac_dir in $ac_dummy; do
975     test -z "$ac_dir" && ac_dir=.
976     if test -f $ac_dir/$ac_word; then
977       ac_cv_prog_CC="gcc"
978       break
979     fi
980   done
981   IFS="$ac_save_ifs"
982 fi
983 fi
984 CC="$ac_cv_prog_CC"
985 if test -n "$CC"; then
986   echo "$ac_t""$CC" 1>&6
987 else
988   echo "$ac_t""no" 1>&6
989 fi
990
991 if test -z "$CC"; then
992   # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997   echo $ac_n "(cached) $ac_c" 1>&6
998 else
999   if test -n "$CC"; then
1000   ac_cv_prog_CC="$CC" # Let the user override the test.
1001 else
1002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1003   ac_prog_rejected=no
1004   ac_dummy="$PATH"
1005   for ac_dir in $ac_dummy; do
1006     test -z "$ac_dir" && ac_dir=.
1007     if test -f $ac_dir/$ac_word; then
1008       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1009         ac_prog_rejected=yes
1010         continue
1011       fi
1012       ac_cv_prog_CC="cc"
1013       break
1014     fi
1015   done
1016   IFS="$ac_save_ifs"
1017 if test $ac_prog_rejected = yes; then
1018   # We found a bogon in the path, so make sure we never use it.
1019   set dummy $ac_cv_prog_CC
1020   shift
1021   if test $# -gt 0; then
1022     # We chose a different compiler from the bogus one.
1023     # However, it has the same basename, so the bogon will be chosen
1024     # first if we set CC to just the basename; use the full file name.
1025     shift
1026     set dummy "$ac_dir/$ac_word" "$@"
1027     shift
1028     ac_cv_prog_CC="$@"
1029   fi
1030 fi
1031 fi
1032 fi
1033 CC="$ac_cv_prog_CC"
1034 if test -n "$CC"; then
1035   echo "$ac_t""$CC" 1>&6
1036 else
1037   echo "$ac_t""no" 1>&6
1038 fi
1039
1040   if test -z "$CC"; then
1041     case "`uname -s`" in
1042     *win32* | *WIN32*)
1043       # Extract the first word of "cl", so it can be a program name with args.
1044 set dummy cl; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048   echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050   if test -n "$CC"; then
1051   ac_cv_prog_CC="$CC" # Let the user override the test.
1052 else
1053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1054   ac_dummy="$PATH"
1055   for ac_dir in $ac_dummy; do
1056     test -z "$ac_dir" && ac_dir=.
1057     if test -f $ac_dir/$ac_word; then
1058       ac_cv_prog_CC="cl"
1059       break
1060     fi
1061   done
1062   IFS="$ac_save_ifs"
1063 fi
1064 fi
1065 CC="$ac_cv_prog_CC"
1066 if test -n "$CC"; then
1067   echo "$ac_t""$CC" 1>&6
1068 else
1069   echo "$ac_t""no" 1>&6
1070 fi
1071  ;;
1072     esac
1073   fi
1074   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1075 fi
1076
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1079
1080 ac_ext=c
1081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082 ac_cpp='$CPP $CPPFLAGS'
1083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085 cross_compiling=$ac_cv_prog_cc_cross
1086
1087 cat > conftest.$ac_ext << EOF
1088
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091
1092 main(){return(0);}
1093 EOF
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1095   ac_cv_prog_cc_works=yes
1096   # If we can't run a trivial program, we are probably using a cross compiler.
1097   if (./conftest; exit) 2>/dev/null; then
1098     ac_cv_prog_cc_cross=no
1099   else
1100     ac_cv_prog_cc_cross=yes
1101   fi
1102 else
1103   echo "configure: failed program was:" >&5
1104   cat conftest.$ac_ext >&5
1105   ac_cv_prog_cc_works=no
1106 fi
1107 rm -fr conftest*
1108 ac_ext=c
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1114
1115 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1116 if test $ac_cv_prog_cc_works = no; then
1117   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1118 fi
1119 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1121 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1122 cross_compiling=$ac_cv_prog_cc_cross
1123
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127   echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129   cat > conftest.c <<EOF
1130 #ifdef __GNUC__
1131   yes;
1132 #endif
1133 EOF
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135   ac_cv_prog_gcc=yes
1136 else
1137   ac_cv_prog_gcc=no
1138 fi
1139 fi
1140
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1142
1143 if test $ac_cv_prog_gcc = yes; then
1144   GCC=yes
1145 else
1146   GCC=
1147 fi
1148
1149 ac_test_CFLAGS="${CFLAGS+set}"
1150 ac_save_CFLAGS="$CFLAGS"
1151 CFLAGS=
1152 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1155   echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157   echo 'void f(){}' > conftest.c
1158 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1159   ac_cv_prog_cc_g=yes
1160 else
1161   ac_cv_prog_cc_g=no
1162 fi
1163 rm -f conftest*
1164
1165 fi
1166
1167 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1168 if test "$ac_test_CFLAGS" = set; then
1169   CFLAGS="$ac_save_CFLAGS"
1170 elif test $ac_cv_prog_cc_g = yes; then
1171   if test "$GCC" = yes; then
1172     CFLAGS="-g -O2"
1173   else
1174     CFLAGS="-g"
1175   fi
1176 else
1177   if test "$GCC" = yes; then
1178     CFLAGS="-O2"
1179   else
1180     CFLAGS=
1181   fi
1182 fi
1183
1184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1185 echo "configure:1186: checking how to run the C preprocessor" >&5
1186 # On Suns, sometimes $CPP names a directory.
1187 if test -n "$CPP" && test -d "$CPP"; then
1188   CPP=
1189 fi
1190 if test -z "$CPP"; then
1191 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1192   echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194     # This must be in double quotes, not single quotes, because CPP may get
1195   # substituted into the Makefile and "${CC-cc}" will confuse make.
1196   CPP="${CC-cc} -E"
1197   # On the NeXT, cc -E runs the code through the compiler's parser,
1198   # not just through cpp.
1199   cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1202 #include <assert.h>
1203 Syntax Error
1204 EOF
1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1209   :
1210 else
1211   echo "$ac_err" >&5
1212   echo "configure: failed program was:" >&5
1213   cat conftest.$ac_ext >&5
1214   rm -rf conftest*
1215   CPP="${CC-cc} -E -traditional-cpp"
1216   cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 #include <assert.h>
1220 Syntax Error
1221 EOF
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1226   :
1227 else
1228   echo "$ac_err" >&5
1229   echo "configure: failed program was:" >&5
1230   cat conftest.$ac_ext >&5
1231   rm -rf conftest*
1232   CPP="${CC-cc} -nologo -E"
1233   cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <assert.h>
1237 Syntax Error
1238 EOF
1239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1243   :
1244 else
1245   echo "$ac_err" >&5
1246   echo "configure: failed program was:" >&5
1247   cat conftest.$ac_ext >&5
1248   rm -rf conftest*
1249   CPP=/lib/cpp
1250 fi
1251 rm -f conftest*
1252 fi
1253 rm -f conftest*
1254 fi
1255 rm -f conftest*
1256   ac_cv_prog_CPP="$CPP"
1257 fi
1258   CPP="$ac_cv_prog_CPP"
1259 else
1260   ac_cv_prog_CPP="$CPP"
1261 fi
1262 echo "$ac_t""$CPP" 1>&6
1263
1264 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1265 echo "configure:1266: checking for AIX" >&5
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 #ifdef _AIX
1270   yes
1271 #endif
1272
1273 EOF
1274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1275   egrep "yes" >/dev/null 2>&1; then
1276   rm -rf conftest*
1277   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1278 #define _ALL_SOURCE 1
1279 EOF
1280
1281 else
1282   rm -rf conftest*
1283   echo "$ac_t""no" 1>&6
1284 fi
1285 rm -f conftest*
1286
1287
1288 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1289 echo "configure:1290: checking for POSIXized ISC" >&5
1290 if test -d /etc/conf/kconfig.d &&
1291   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1292 then
1293   echo "$ac_t""yes" 1>&6
1294   ISC=yes # If later tests want to check for ISC.
1295   cat >> confdefs.h <<\EOF
1296 #define _POSIX_SOURCE 1
1297 EOF
1298
1299   if test "$GCC" = yes; then
1300     CC="$CC -posix"
1301   else
1302     CC="$CC -Xp"
1303   fi
1304 else
1305   echo "$ac_t""no" 1>&6
1306   ISC=
1307 fi
1308
1309 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1310 echo "configure:1311: checking for object suffix" >&5
1311 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1312   echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314   rm -f conftest*
1315 echo 'int i = 1;' > conftest.$ac_ext
1316 if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1317   for ac_file in conftest.*; do
1318     case $ac_file in
1319     *.c) ;;
1320     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1321     esac
1322   done
1323 else
1324   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1325 fi
1326 rm -f conftest*
1327 fi
1328
1329 echo "$ac_t""$ac_cv_objext" 1>&6
1330 OBJEXT=$ac_cv_objext
1331 ac_objext=$ac_cv_objext
1332
1333
1334 echo $ac_n "checking if $CC supports -c -o file.$ac_objext""... $ac_c" 1>&6
1335 echo "configure:1336: checking if $CC supports -c -o file.$ac_objext" >&5
1336 if eval "test \"`echo '$''{'inn_cv_compiler_c_o'+set}'`\" = set"; then
1337   echo $ac_n "(cached) $ac_c" 1>&6
1338 else
1339   rm -f -r conftest 2>/dev/null
1340 mkdir conftest
1341 cd conftest
1342 echo "int some_variable = 0;" > conftest.$ac_ext
1343 mkdir out
1344 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1345 # that will create temporary files in the current directory regardless of
1346 # the output directory.  Thus, making CWD read-only will cause this test
1347 # to fail, enabling locking or at least warning the user not to do parallel
1348 # builds.
1349 chmod -w .
1350 save_CFLAGS="$CFLAGS"
1351 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1352 compiler_c_o=no
1353 if { (eval $ac_compile) 2> out/conftest.err; } \
1354     && test -s out/conftest2.$ac_objext; then
1355   # The compiler can only warn and ignore the option if not recognized
1356   # So say no if there are warnings
1357   if test -s out/conftest.err; then
1358     inn_cv_compiler_c_o=no
1359   else
1360     inn_cv_compiler_c_o=yes
1361   fi
1362 else
1363   # Append any errors to the config.log.
1364   cat out/conftest.err 1>&5
1365   inn_cv_compiler_c_o=no
1366 fi
1367 CFLAGS="$save_CFLAGS"
1368 chmod u+w .
1369 rm -f conftest* out/*
1370 rmdir out
1371 cd ..
1372 rmdir conftest
1373 rm -f -r conftest 2>/dev/null
1374 fi
1375
1376 compiler_c_o=$inn_cv_compiler_c_o
1377 echo "$ac_t""$compiler_c_o" 1>&6
1378
1379 inn_use_libtool=no
1380 # Check whether --enable-libtool or --disable-libtool was given.
1381 if test "${enable_libtool+set}" = set; then
1382   enableval="$enable_libtool"
1383   if test "$enableval" = yes ; then
1384         inn_use_libtool=yes
1385     fi
1386 fi
1387
1388 if test x"$inn_use_libtool" = xyes ; then
1389     # Find the correct PATH separator.  Usually this is `:', but
1390 # DJGPP uses `;' like DOS.
1391 if test "X${PATH_SEPARATOR+set}" != Xset; then
1392   UNAME=${UNAME-`uname 2>/dev/null`}
1393   case X$UNAME in
1394     *-DOS) lt_cv_sys_path_separator=';' ;;
1395     *)     lt_cv_sys_path_separator=':' ;;
1396   esac
1397   PATH_SEPARATOR=$lt_cv_sys_path_separator
1398 fi
1399
1400 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1401 echo "configure:1402: checking for Cygwin environment" >&5
1402 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1403   echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405   cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408
1409 int main() {
1410
1411 #ifndef __CYGWIN__
1412 #define __CYGWIN__ __CYGWIN32__
1413 #endif
1414 return __CYGWIN__;
1415 ; return 0; }
1416 EOF
1417 if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418   rm -rf conftest*
1419   ac_cv_cygwin=yes
1420 else
1421   echo "configure: failed program was:" >&5
1422   cat conftest.$ac_ext >&5
1423   rm -rf conftest*
1424   ac_cv_cygwin=no
1425 fi
1426 rm -f conftest*
1427 rm -f conftest*
1428 fi
1429
1430 echo "$ac_t""$ac_cv_cygwin" 1>&6
1431 CYGWIN=
1432 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1433 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1434 echo "configure:1435: checking for mingw32 environment" >&5
1435 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1436   echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438   cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441
1442 int main() {
1443 return __MINGW32__;
1444 ; return 0; }
1445 EOF
1446 if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1447   rm -rf conftest*
1448   ac_cv_mingw32=yes
1449 else
1450   echo "configure: failed program was:" >&5
1451   cat conftest.$ac_ext >&5
1452   rm -rf conftest*
1453   ac_cv_mingw32=no
1454 fi
1455 rm -f conftest*
1456 rm -f conftest*
1457 fi
1458
1459 echo "$ac_t""$ac_cv_mingw32" 1>&6
1460 MINGW32=
1461 test "$ac_cv_mingw32" = yes && MINGW32=yes
1462 # Check whether --enable-shared or --disable-shared was given.
1463 if test "${enable_shared+set}" = set; then
1464   enableval="$enable_shared"
1465   p=${PACKAGE-default}
1466 case $enableval in
1467 yes) enable_shared=yes ;;
1468 no) enable_shared=no ;;
1469 *)
1470   enable_shared=no
1471   # Look at the argument we got.  We use all the common list separators.
1472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1473   for pkg in $enableval; do
1474     if test "X$pkg" = "X$p"; then
1475       enable_shared=yes
1476     fi
1477   done
1478   IFS="$ac_save_ifs"
1479   ;;
1480 esac
1481 else
1482   enable_shared=yes
1483 fi
1484
1485 # Check whether --enable-static or --disable-static was given.
1486 if test "${enable_static+set}" = set; then
1487   enableval="$enable_static"
1488   p=${PACKAGE-default}
1489 case $enableval in
1490 yes) enable_static=yes ;;
1491 no) enable_static=no ;;
1492 *)
1493   enable_static=no
1494   # Look at the argument we got.  We use all the common list separators.
1495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1496   for pkg in $enableval; do
1497     if test "X$pkg" = "X$p"; then
1498       enable_static=yes
1499     fi
1500   done
1501   IFS="$ac_save_ifs"
1502   ;;
1503 esac
1504 else
1505   enable_static=yes
1506 fi
1507
1508 # Check whether --enable-fast-install or --disable-fast-install was given.
1509 if test "${enable_fast_install+set}" = set; then
1510   enableval="$enable_fast_install"
1511   p=${PACKAGE-default}
1512 case $enableval in
1513 yes) enable_fast_install=yes ;;
1514 no) enable_fast_install=no ;;
1515 *)
1516   enable_fast_install=no
1517   # Look at the argument we got.  We use all the common list separators.
1518   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1519   for pkg in $enableval; do
1520     if test "X$pkg" = "X$p"; then
1521       enable_fast_install=yes
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525   ;;
1526 esac
1527 else
1528   enable_fast_install=yes
1529 fi
1530
1531
1532 # Make sure we can run config.sub.
1533 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1534 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1535 fi
1536
1537 echo $ac_n "checking host system type""... $ac_c" 1>&6
1538 echo "configure:1539: checking host system type" >&5
1539
1540 host_alias=$host
1541 case "$host_alias" in
1542 NONE)
1543   case $nonopt in
1544   NONE)
1545     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1546     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1547     fi ;;
1548   *) host_alias=$nonopt ;;
1549   esac ;;
1550 esac
1551
1552 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1553 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$ac_t""$host" 1>&6
1557
1558 echo $ac_n "checking build system type""... $ac_c" 1>&6
1559 echo "configure:1560: checking build system type" >&5
1560
1561 build_alias=$build
1562 case "$build_alias" in
1563 NONE)
1564   case $nonopt in
1565   NONE) build_alias=$host_alias ;;
1566   *) build_alias=$nonopt ;;
1567   esac ;;
1568 esac
1569
1570 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1571 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$ac_t""$build" 1>&6
1575
1576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1577 if test "${with_gnu_ld+set}" = set; then
1578   withval="$with_gnu_ld"
1579   test "$withval" = no || with_gnu_ld=yes
1580 else
1581   with_gnu_ld=no
1582 fi
1583
1584 ac_prog=ld
1585 if test "$GCC" = yes; then
1586   # Check if gcc -print-prog-name=ld gives a path.
1587   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1588 echo "configure:1589: checking for ld used by GCC" >&5
1589   case $host in
1590   *-*-mingw*)
1591     # gcc leaves a trailing carriage return which upsets mingw
1592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1593   *)
1594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1595   esac
1596   case $ac_prog in
1597     # Accept absolute paths.
1598     [\\/]* | [A-Za-z]:[\\/]*)
1599       re_direlt='/[^/][^/]*/\.\./'
1600       # Canonicalize the path of ld
1601       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1602       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1603         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1604       done
1605       test -z "$LD" && LD="$ac_prog"
1606       ;;
1607   "")
1608     # If it fails, then pretend we aren't using GCC.
1609     ac_prog=ld
1610     ;;
1611   *)
1612     # If it is relative, then search for the first ld in PATH.
1613     with_gnu_ld=unknown
1614     ;;
1615   esac
1616 elif test "$with_gnu_ld" = yes; then
1617   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1618 echo "configure:1619: checking for GNU ld" >&5
1619 else
1620   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1621 echo "configure:1622: checking for non-GNU ld" >&5
1622 fi
1623 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1624   echo $ac_n "(cached) $ac_c" 1>&6
1625 else
1626   if test -z "$LD"; then
1627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1628   for ac_dir in $PATH; do
1629     test -z "$ac_dir" && ac_dir=.
1630     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1631       lt_cv_path_LD="$ac_dir/$ac_prog"
1632       # Check to see if the program is GNU ld.  I'd rather use --version,
1633       # but apparently some GNU ld's only accept -v.
1634       # Break only if it was the GNU/non-GNU ld that we prefer.
1635       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1636         test "$with_gnu_ld" != no && break
1637       else
1638         test "$with_gnu_ld" != yes && break
1639       fi
1640     fi
1641   done
1642   IFS="$ac_save_ifs"
1643 else
1644   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1645 fi
1646 fi
1647
1648 LD="$lt_cv_path_LD"
1649 if test -n "$LD"; then
1650   echo "$ac_t""$LD" 1>&6
1651 else
1652   echo "$ac_t""no" 1>&6
1653 fi
1654 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1655 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1656 echo "configure:1657: checking if the linker ($LD) is GNU ld" >&5
1657 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1658   echo $ac_n "(cached) $ac_c" 1>&6
1659 else
1660   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1661 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1662   lt_cv_prog_gnu_ld=yes
1663 else
1664   lt_cv_prog_gnu_ld=no
1665 fi
1666 fi
1667
1668 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1669 with_gnu_ld=$lt_cv_prog_gnu_ld
1670
1671
1672 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $LD option to reload object files" >&5
1674 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1675   echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677   lt_cv_ld_reload_flag='-r'
1678 fi
1679
1680 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1681 reload_flag=$lt_cv_ld_reload_flag
1682 test -n "$reload_flag" && reload_flag=" $reload_flag"
1683
1684 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1685 echo "configure:1686: checking for BSD-compatible nm" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1687   echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689   if test -n "$NM"; then
1690   # Let the user override the test.
1691   lt_cv_path_NM="$NM"
1692 else
1693   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1694   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1695     test -z "$ac_dir" && ac_dir=.
1696     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1697     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1698       # Check to see if the nm accepts a BSD-compat flag.
1699       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1700       #   nm: unknown option "B" ignored
1701       # Tru64's nm complains that /dev/null is an invalid object file
1702       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1703         lt_cv_path_NM="$tmp_nm -B"
1704         break
1705       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1706         lt_cv_path_NM="$tmp_nm -p"
1707         break
1708       else
1709         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1710         continue # so that we can try to find one that supports BSD flags
1711       fi
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1716 fi
1717 fi
1718
1719 NM="$lt_cv_path_NM"
1720 echo "$ac_t""$NM" 1>&6
1721
1722 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether ln -s works" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1725   echo $ac_n "(cached) $ac_c" 1>&6
1726 else
1727   rm -f conftestdata
1728 if ln -s X conftestdata 2>/dev/null
1729 then
1730   rm -f conftestdata
1731   ac_cv_prog_LN_S="ln -s"
1732 else
1733   ac_cv_prog_LN_S=ln
1734 fi
1735 fi
1736 LN_S="$ac_cv_prog_LN_S"
1737 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1738   echo "$ac_t""yes" 1>&6
1739 else
1740   echo "$ac_t""no" 1>&6
1741 fi
1742
1743 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1744 echo "configure:1745: checking how to recognise dependant libraries" >&5
1745 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1746   echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748   lt_cv_file_magic_cmd='$MAGIC_CMD'
1749 lt_cv_file_magic_test_file=
1750 lt_cv_deplibs_check_method='unknown'
1751 # Need to set the preceding variable on all platforms that support
1752 # interlibrary dependencies.
1753 # 'none' -- dependencies not supported.
1754 # `unknown' -- same as none, but documents that we really don't know.
1755 # 'pass_all' -- all dependencies passed with no checks.
1756 # 'test_compile' -- check by making test program.
1757 # 'file_magic [[regex]]' -- check by looking for files in library path
1758 # which responds to the $file_magic_cmd with a given egrep regex.
1759 # If you have `file' or equivalent on your system and you're not sure
1760 # whether `pass_all' will *always* work, you probably want this one.
1761
1762 case $host_os in
1763 aix4* | aix5*)
1764   lt_cv_deplibs_check_method=pass_all
1765   ;;
1766
1767 beos*)
1768   lt_cv_deplibs_check_method=pass_all
1769   ;;
1770
1771 bsdi4*)
1772   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1773   lt_cv_file_magic_cmd='/usr/bin/file -L'
1774   lt_cv_file_magic_test_file=/shlib/libc.so
1775   ;;
1776
1777 cygwin* | mingw* | pw32*)
1778   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1779   lt_cv_file_magic_cmd='$OBJDUMP -f'
1780   ;;
1781
1782 darwin* | rhapsody*)
1783   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1784   lt_cv_file_magic_cmd='/usr/bin/file -L'
1785   case "$host_os" in
1786   rhapsody* | darwin1.[012])
1787     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1788     ;;
1789   *) # Darwin 1.3 on
1790     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1791     ;;
1792   esac
1793   ;;
1794
1795 freebsd*)
1796   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1797     case $host_cpu in
1798     i*86 )
1799       # Not sure whether the presence of OpenBSD here was a mistake.
1800       # Let's accept both of them until this is cleared up.
1801       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1802       lt_cv_file_magic_cmd=/usr/bin/file
1803       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1804       ;;
1805     esac
1806   else
1807     lt_cv_deplibs_check_method=pass_all
1808   fi
1809   ;;
1810
1811 gnu*)
1812   lt_cv_deplibs_check_method=pass_all
1813   ;;
1814
1815 hpux10.20*|hpux11*)
1816   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1817   lt_cv_file_magic_cmd=/usr/bin/file
1818   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1819   ;;
1820
1821 irix5* | irix6*)
1822   case $host_os in
1823   irix5*)
1824     # this will be overridden with pass_all, but let us keep it just in case
1825     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1826     ;;
1827   *)
1828     case $LD in
1829     *-32|*"-32 ") libmagic=32-bit;;
1830     *-n32|*"-n32 ") libmagic=N32;;
1831     *-64|*"-64 ") libmagic=64-bit;;
1832     *) libmagic=never-match;;
1833     esac
1834     # this will be overridden with pass_all, but let us keep it just in case
1835     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1836     ;;
1837   esac
1838   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1839   lt_cv_deplibs_check_method=pass_all
1840   ;;
1841
1842 # This must be Linux ELF.
1843 linux-gnu*)
1844   case $host_cpu in
1845   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1846     lt_cv_deplibs_check_method=pass_all ;;
1847   *)
1848     # glibc up to 2.1.1 does not perform some relocations on ARM
1849     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1850   esac
1851   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1852   ;;
1853
1854 netbsd*)
1855   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1856     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1857   else
1858     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1859   fi
1860   ;;
1861
1862 newos6*)
1863   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1864   lt_cv_file_magic_cmd=/usr/bin/file
1865   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1866   ;;
1867
1868 openbsd*)
1869   lt_cv_file_magic_cmd=/usr/bin/file
1870   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1871   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1872     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1873   else
1874     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1875   fi
1876   ;;
1877
1878 osf3* | osf4* | osf5*)
1879   # this will be overridden with pass_all, but let us keep it just in case
1880   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1881   lt_cv_file_magic_test_file=/shlib/libc.so
1882   lt_cv_deplibs_check_method=pass_all
1883   ;;
1884
1885 sco3.2v5*)
1886   lt_cv_deplibs_check_method=pass_all
1887   ;;
1888
1889 solaris*)
1890   lt_cv_deplibs_check_method=pass_all
1891   lt_cv_file_magic_test_file=/lib/libc.so
1892   ;;
1893
1894 sysv5uw[78]* | sysv4*uw2*)
1895   lt_cv_deplibs_check_method=pass_all
1896   ;;
1897
1898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1899   case $host_vendor in
1900   motorola)
1901     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]'
1902     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1903     ;;
1904   ncr)
1905     lt_cv_deplibs_check_method=pass_all
1906     ;;
1907   sequent)
1908     lt_cv_file_magic_cmd='/bin/file'
1909     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1910     ;;
1911   sni)
1912     lt_cv_file_magic_cmd='/bin/file'
1913     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1914     lt_cv_file_magic_test_file=/lib/libc.so
1915     ;;
1916   esac
1917   ;;
1918 esac
1919
1920 fi
1921
1922 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1923 file_magic_cmd=$lt_cv_file_magic_cmd
1924 deplibs_check_method=$lt_cv_deplibs_check_method
1925
1926
1927
1928 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1929 echo "configure:1930: checking for executable suffix" >&5
1930 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1931   echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1934   ac_cv_exeext=.exe
1935 else
1936   rm -f conftest*
1937   echo 'int main () { return 0; }' > conftest.$ac_ext
1938   ac_cv_exeext=
1939   if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1940     for file in conftest.*; do
1941       case $file in
1942       *.$ac_ext | *.c | *.o | *.obj) ;;
1943       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1944       esac
1945     done
1946   else
1947     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1948   fi
1949   rm -f conftest*
1950   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1951 fi
1952 fi
1953
1954 EXEEXT=""
1955 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1956 echo "$ac_t""${ac_cv_exeext}" 1>&6
1957 ac_exeext=$EXEEXT
1958
1959 if test $host != $build; then
1960   ac_tool_prefix=${host_alias}-
1961 else
1962   ac_tool_prefix=
1963 fi
1964
1965
1966
1967
1968 # Check for command to grab the raw symbol name followed by C symbol from nm.
1969 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1970 echo "configure:1971: checking command to parse $NM output" >&5
1971 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1972   echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974   
1975 # These are sane defaults that work on at least a few old systems.
1976 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1977
1978 # Character class describing NM global symbol codes.
1979 symcode='[BCDEGRST]'
1980
1981 # Regexp to match symbols that can be accessed directly from C.
1982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1983
1984 # Transform the above into a raw symbol and a C symbol.
1985 symxfrm='\1 \2\3 \3'
1986
1987 # Transform an extracted symbol line into a proper C declaration
1988 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1989
1990 # Transform an extracted symbol line into symbol name and symbol address
1991 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1992
1993 # Define system-specific variables.
1994 case $host_os in
1995 aix*)
1996   symcode='[BCDT]'
1997   ;;
1998 cygwin* | mingw* | pw32*)
1999   symcode='[ABCDGISTW]'
2000   ;;
2001 hpux*) # Its linker distinguishes data from code symbols
2002   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2003   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2004   ;;
2005 irix*)
2006   symcode='[BCDEGRST]'
2007   ;;
2008 solaris* | sysv5*)
2009   symcode='[BDT]'
2010   ;;
2011 sysv4)
2012   symcode='[DFNSTU]'
2013   ;;
2014 esac
2015
2016 # Handle CRLF in mingw tool chain
2017 opt_cr=
2018 case $host_os in
2019 mingw*)
2020   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2021   ;;
2022 esac
2023
2024 # If we're using GNU nm, then use its standard symbol codes.
2025 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2026   symcode='[ABCDGISTW]'
2027 fi
2028
2029 # Try without a prefix undercore, then with it.
2030 for ac_symprfx in "" "_"; do
2031
2032   # Write the raw and C identifiers.
2033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2034
2035   # Check to see that the pipe works correctly.
2036   pipe_works=no
2037   rm -f conftest*
2038   cat > conftest.$ac_ext <<EOF
2039 #ifdef __cplusplus
2040 extern "C" {
2041 #endif
2042 char nm_test_var;
2043 void nm_test_func(){}
2044 #ifdef __cplusplus
2045 }
2046 #endif
2047 int main(){nm_test_var='a';nm_test_func();return(0);}
2048 EOF
2049
2050   if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051     # Now try to grab the symbols.
2052     nlist=conftest.nm
2053     if { (eval echo configure:2054: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2054       # Try sorting and uniquifying the output.
2055       if sort "$nlist" | uniq > "$nlist"T; then
2056         mv -f "$nlist"T "$nlist"
2057       else
2058         rm -f "$nlist"T
2059       fi
2060
2061       # Make sure that we snagged all the symbols we need.
2062       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2063         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2064           cat <<EOF > conftest.$ac_ext
2065 #ifdef __cplusplus
2066 extern "C" {
2067 #endif
2068
2069 EOF
2070           # Now generate the symbol file.
2071           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2072
2073           cat <<EOF >> conftest.$ac_ext
2074 #if defined (__STDC__) && __STDC__
2075 # define lt_ptr void *
2076 #else
2077 # define lt_ptr char *
2078 # define const
2079 #endif
2080
2081 /* The mapping between symbol names and symbols. */
2082 const struct {
2083   const char *name;
2084   lt_ptr address;
2085 }
2086 lt_preloaded_symbols[] =
2087 {
2088 EOF
2089           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2090           cat <<\EOF >> conftest.$ac_ext
2091   {0, (lt_ptr) 0}
2092 };
2093
2094 #ifdef __cplusplus
2095 }
2096 #endif
2097 EOF
2098           # Now try linking the two files.
2099           mv conftest.$ac_objext conftstm.$ac_objext
2100           save_LIBS="$LIBS"
2101           save_CFLAGS="$CFLAGS"
2102           LIBS="conftstm.$ac_objext"
2103           CFLAGS="$CFLAGS$no_builtin_flag"
2104           if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2105             pipe_works=yes
2106           fi
2107           LIBS="$save_LIBS"
2108           CFLAGS="$save_CFLAGS"
2109         else
2110           echo "cannot find nm_test_func in $nlist" >&5
2111         fi
2112       else
2113         echo "cannot find nm_test_var in $nlist" >&5
2114       fi
2115     else
2116       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2117     fi
2118   else
2119     echo "$progname: failed program was:" >&5
2120     cat conftest.$ac_ext >&5
2121   fi
2122   rm -f conftest* conftst*
2123
2124   # Do not use the global_symbol_pipe unless it works.
2125   if test "$pipe_works" = yes; then
2126     break
2127   else
2128     lt_cv_sys_global_symbol_pipe=
2129   fi
2130 done
2131
2132 fi
2133
2134 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2136   global_symbol_to_cdecl=
2137   global_symbol_to_c_name_address=
2138 else
2139   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2140   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2141 fi
2142 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2143 then
2144   echo "$ac_t""failed" 1>&6
2145 else
2146   echo "$ac_t""ok" 1>&6
2147 fi
2148
2149 for ac_hdr in dlfcn.h
2150 do
2151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_hdr" >&5
2154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2155   echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157   cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2160 #include <$ac_hdr>
2161 EOF
2162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2165 if test -z "$ac_err"; then
2166   rm -rf conftest*
2167   eval "ac_cv_header_$ac_safe=yes"
2168 else
2169   echo "$ac_err" >&5
2170   echo "configure: failed program was:" >&5
2171   cat conftest.$ac_ext >&5
2172   rm -rf conftest*
2173   eval "ac_cv_header_$ac_safe=no"
2174 fi
2175 rm -f conftest*
2176 fi
2177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2178   echo "$ac_t""yes" 1>&6
2179     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2180   cat >> confdefs.h <<EOF
2181 #define $ac_tr_hdr 1
2182 EOF
2183  
2184 else
2185   echo "$ac_t""no" 1>&6
2186 fi
2187 done
2188
2189
2190
2191
2192
2193 # Only perform the check for file, if the check method requires it
2194 case $deplibs_check_method in
2195 file_magic*)
2196   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2197     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2198 echo "configure:2199: checking for ${ac_tool_prefix}file" >&5
2199 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2200   echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202   case $MAGIC_CMD in
2203   /*)
2204   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2205   ;;
2206   ?:/*)
2207   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2208   ;;
2209   *)
2210   ac_save_MAGIC_CMD="$MAGIC_CMD"
2211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2212   ac_dummy="/usr/bin:$PATH"
2213   for ac_dir in $ac_dummy; do
2214     test -z "$ac_dir" && ac_dir=.
2215     if test -f $ac_dir/${ac_tool_prefix}file; then
2216       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2217       if test -n "$file_magic_test_file"; then
2218         case $deplibs_check_method in
2219         "file_magic "*)
2220           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2223             egrep "$file_magic_regex" > /dev/null; then
2224             :
2225           else
2226             cat <<EOF 1>&2
2227
2228 *** Warning: the command libtool uses to detect shared libraries,
2229 *** $file_magic_cmd, produces output that libtool cannot recognize.
2230 *** The result is that libtool may fail to recognize shared libraries
2231 *** as such.  This will affect the creation of libtool libraries that
2232 *** depend on shared libraries, but programs linked with such libtool
2233 *** libraries will work regardless of this problem.  Nevertheless, you
2234 *** may want to report the problem to your system manager and/or to
2235 *** bug-libtool@gnu.org
2236
2237 EOF
2238           fi ;;
2239         esac
2240       fi
2241       break
2242     fi
2243   done
2244   IFS="$ac_save_ifs"
2245   MAGIC_CMD="$ac_save_MAGIC_CMD"
2246   ;;
2247 esac
2248 fi
2249
2250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2251 if test -n "$MAGIC_CMD"; then
2252   echo "$ac_t""$MAGIC_CMD" 1>&6
2253 else
2254   echo "$ac_t""no" 1>&6
2255 fi
2256
2257 if test -z "$lt_cv_path_MAGIC_CMD"; then
2258   if test -n "$ac_tool_prefix"; then
2259     echo $ac_n "checking for file""... $ac_c" 1>&6
2260 echo "configure:2261: checking for file" >&5
2261 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2262   echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264   case $MAGIC_CMD in
2265   /*)
2266   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2267   ;;
2268   ?:/*)
2269   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2270   ;;
2271   *)
2272   ac_save_MAGIC_CMD="$MAGIC_CMD"
2273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2274   ac_dummy="/usr/bin:$PATH"
2275   for ac_dir in $ac_dummy; do
2276     test -z "$ac_dir" && ac_dir=.
2277     if test -f $ac_dir/file; then
2278       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2279       if test -n "$file_magic_test_file"; then
2280         case $deplibs_check_method in
2281         "file_magic "*)
2282           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2283           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2284           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2285             egrep "$file_magic_regex" > /dev/null; then
2286             :
2287           else
2288             cat <<EOF 1>&2
2289
2290 *** Warning: the command libtool uses to detect shared libraries,
2291 *** $file_magic_cmd, produces output that libtool cannot recognize.
2292 *** The result is that libtool may fail to recognize shared libraries
2293 *** as such.  This will affect the creation of libtool libraries that
2294 *** depend on shared libraries, but programs linked with such libtool
2295 *** libraries will work regardless of this problem.  Nevertheless, you
2296 *** may want to report the problem to your system manager and/or to
2297 *** bug-libtool@gnu.org
2298
2299 EOF
2300           fi ;;
2301         esac
2302       fi
2303       break
2304     fi
2305   done
2306   IFS="$ac_save_ifs"
2307   MAGIC_CMD="$ac_save_MAGIC_CMD"
2308   ;;
2309 esac
2310 fi
2311
2312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2313 if test -n "$MAGIC_CMD"; then
2314   echo "$ac_t""$MAGIC_CMD" 1>&6
2315 else
2316   echo "$ac_t""no" 1>&6
2317 fi
2318
2319   else
2320     MAGIC_CMD=:
2321   fi
2322 fi
2323
2324   fi
2325   ;;
2326 esac
2327
2328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333   echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335   if test -n "$RANLIB"; then
2336   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2337 else
2338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2339   ac_dummy="$PATH"
2340   for ac_dir in $ac_dummy; do
2341     test -z "$ac_dir" && ac_dir=.
2342     if test -f $ac_dir/$ac_word; then
2343       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2344       break
2345     fi
2346   done
2347   IFS="$ac_save_ifs"
2348 fi
2349 fi
2350 RANLIB="$ac_cv_prog_RANLIB"
2351 if test -n "$RANLIB"; then
2352   echo "$ac_t""$RANLIB" 1>&6
2353 else
2354   echo "$ac_t""no" 1>&6
2355 fi
2356
2357
2358 if test -z "$ac_cv_prog_RANLIB"; then
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "ranlib", so it can be a program name with args.
2361 set dummy ranlib; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2365   echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367   if test -n "$RANLIB"; then
2368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2369 else
2370   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2371   ac_dummy="$PATH"
2372   for ac_dir in $ac_dummy; do
2373     test -z "$ac_dir" && ac_dir=.
2374     if test -f $ac_dir/$ac_word; then
2375       ac_cv_prog_RANLIB="ranlib"
2376       break
2377     fi
2378   done
2379   IFS="$ac_save_ifs"
2380   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2381 fi
2382 fi
2383 RANLIB="$ac_cv_prog_RANLIB"
2384 if test -n "$RANLIB"; then
2385   echo "$ac_t""$RANLIB" 1>&6
2386 else
2387   echo "$ac_t""no" 1>&6
2388 fi
2389
2390 else
2391   RANLIB=":"
2392 fi
2393 fi
2394
2395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400   echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402   if test -n "$STRIP"; then
2403   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404 else
2405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2406   ac_dummy="$PATH"
2407   for ac_dir in $ac_dummy; do
2408     test -z "$ac_dir" && ac_dir=.
2409     if test -f $ac_dir/$ac_word; then
2410       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2411       break
2412     fi
2413   done
2414   IFS="$ac_save_ifs"
2415 fi
2416 fi
2417 STRIP="$ac_cv_prog_STRIP"
2418 if test -n "$STRIP"; then
2419   echo "$ac_t""$STRIP" 1>&6
2420 else
2421   echo "$ac_t""no" 1>&6
2422 fi
2423
2424
2425 if test -z "$ac_cv_prog_STRIP"; then
2426 if test -n "$ac_tool_prefix"; then
2427   # Extract the first word of "strip", so it can be a program name with args.
2428 set dummy strip; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2432   echo $ac_n "(cached) $ac_c" 1>&6
2433 else
2434   if test -n "$STRIP"; then
2435   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2436 else
2437   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2438   ac_dummy="$PATH"
2439   for ac_dir in $ac_dummy; do
2440     test -z "$ac_dir" && ac_dir=.
2441     if test -f $ac_dir/$ac_word; then
2442       ac_cv_prog_STRIP="strip"
2443       break
2444     fi
2445   done
2446   IFS="$ac_save_ifs"
2447   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2448 fi
2449 fi
2450 STRIP="$ac_cv_prog_STRIP"
2451 if test -n "$STRIP"; then
2452   echo "$ac_t""$STRIP" 1>&6
2453 else
2454   echo "$ac_t""no" 1>&6
2455 fi
2456
2457 else
2458   STRIP=":"
2459 fi
2460 fi
2461
2462
2463 enable_dlopen=no
2464 enable_win32_dll=no
2465
2466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2467 if test "${enable_libtool_lock+set}" = set; then
2468   enableval="$enable_libtool_lock"
2469   :
2470 fi
2471
2472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2473
2474 # Some flags need to be propagated to the compiler or linker for good
2475 # libtool support.
2476 case $host in
2477 *-*-irix6*)
2478   # Find out which ABI we are using.
2479   echo '#line 2480 "configure"' > conftest.$ac_ext
2480   if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481     case `/usr/bin/file conftest.$ac_objext` in
2482     *32-bit*)
2483       LD="${LD-ld} -32"
2484       ;;
2485     *N32*)
2486       LD="${LD-ld} -n32"
2487       ;;
2488     *64-bit*)
2489       LD="${LD-ld} -64"
2490       ;;
2491     esac
2492   fi
2493   rm -rf conftest*
2494   ;;
2495
2496 *-*-sco3.2v5*)
2497   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2498   SAVE_CFLAGS="$CFLAGS"
2499   CFLAGS="$CFLAGS -belf"
2500   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2501 echo "configure:2502: checking whether the C compiler needs -belf" >&5
2502 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2503   echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505   
2506      ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2512
2513      cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516
2517 int main() {
2518
2519 ; return 0; }
2520 EOF
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2522   rm -rf conftest*
2523   lt_cv_cc_needs_belf=yes
2524 else
2525   echo "configure: failed program was:" >&5
2526   cat conftest.$ac_ext >&5
2527   rm -rf conftest*
2528   lt_cv_cc_needs_belf=no
2529 fi
2530 rm -f conftest*
2531      ac_ext=c
2532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cc_cross
2537
2538 fi
2539
2540 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2541   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2542     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2543     CFLAGS="$SAVE_CFLAGS"
2544   fi
2545   ;;
2546
2547
2548 esac
2549
2550 # Sed substitution that helps us do robust quoting.  It backslashifies
2551 # metacharacters that are still active within double-quoted strings.
2552 Xsed='sed -e s/^X//'
2553 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2554
2555 # Same as above, but do not quote variable references.
2556 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2557
2558 # Sed substitution to delay expansion of an escaped shell variable in a
2559 # double_quote_subst'ed string.
2560 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2561
2562 # Constants:
2563 rm="rm -f"
2564
2565 # Global variables:
2566 default_ofile=libtool
2567 can_build_shared=yes
2568
2569 # All known linkers require a `.a' archive for static linking (except M$VC,
2570 # which needs '.lib').
2571 libext=a
2572 ltmain="$ac_aux_dir/ltmain.sh"
2573 ofile="$default_ofile"
2574 with_gnu_ld="$lt_cv_prog_gnu_ld"
2575 need_locks="$enable_libtool_lock"
2576
2577 old_CC="$CC"
2578 old_CFLAGS="$CFLAGS"
2579
2580 # Set sane defaults for various variables
2581 test -z "$AR" && AR=ar
2582 test -z "$AR_FLAGS" && AR_FLAGS=cru
2583 test -z "$AS" && AS=as
2584 test -z "$CC" && CC=cc
2585 test -z "$DLLTOOL" && DLLTOOL=dlltool
2586 test -z "$LD" && LD=ld
2587 test -z "$LN_S" && LN_S="ln -s"
2588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2589 test -z "$NM" && NM=nm
2590 test -z "$OBJDUMP" && OBJDUMP=objdump
2591 test -z "$RANLIB" && RANLIB=:
2592 test -z "$STRIP" && STRIP=:
2593 test -z "$ac_objext" && ac_objext=o
2594
2595 if test x"$host" != x"$build"; then
2596   ac_tool_prefix=${host_alias}-
2597 else
2598   ac_tool_prefix=
2599 fi
2600
2601 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2602 case $host_os in
2603 linux-gnu*) ;;
2604 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2605 esac
2606
2607 case $host_os in
2608 aix3*)
2609   # AIX sometimes has problems with the GCC collect2 program.  For some
2610   # reason, if we set the COLLECT_NAMES environment variable, the problems
2611   # vanish in a puff of smoke.
2612   if test "X${COLLECT_NAMES+set}" != Xset; then
2613     COLLECT_NAMES=
2614     export COLLECT_NAMES
2615   fi
2616   ;;
2617 esac
2618
2619 # Determine commands to create old-style static archives.
2620 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2621 old_postinstall_cmds='chmod 644 $oldlib'
2622 old_postuninstall_cmds=
2623
2624 if test -n "$RANLIB"; then
2625   case $host_os in
2626   openbsd*)
2627     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2628     ;;
2629   *)
2630     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2631     ;;
2632   esac
2633   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2634 fi
2635
2636 # Allow CC to be a program name with arguments.
2637 set dummy $CC
2638 compiler="$2"
2639
2640 ## FIXME: this should be a separate macro
2641 ##
2642 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2643 echo "configure:2644: checking for objdir" >&5
2644 rm -f .libs 2>/dev/null
2645 mkdir .libs 2>/dev/null
2646 if test -d .libs; then
2647   objdir=.libs
2648 else
2649   # MS-DOS does not allow filenames that begin with a dot.
2650   objdir=_libs
2651 fi
2652 rmdir .libs 2>/dev/null
2653 echo "$ac_t""$objdir" 1>&6
2654 ##
2655 ## END FIXME
2656
2657
2658 ## FIXME: this should be a separate macro
2659 ##
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2662   withval="$with_pic"
2663   pic_mode="$withval"
2664 else
2665   pic_mode=default
2666 fi
2667
2668 test -z "$pic_mode" && pic_mode=default
2669
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676   echo $ac_n "(cached) $ac_c" 1>&6
2677 else
2678    lt_cv_prog_cc_pic=
2679   lt_cv_prog_cc_shlib=
2680   lt_cv_prog_cc_wl=
2681   lt_cv_prog_cc_static=
2682   lt_cv_prog_cc_no_builtin=
2683   lt_cv_prog_cc_can_build_shared=$can_build_shared
2684
2685   if test "$GCC" = yes; then
2686     lt_cv_prog_cc_wl='-Wl,'
2687     lt_cv_prog_cc_static='-static'
2688
2689     case $host_os in
2690     aix*)
2691       # Below there is a dirty hack to force normal static linking with -ldl
2692       # The problem is because libdl dynamically linked with both libc and
2693       # libC (AIX C++ library), which obviously doesn't included in libraries
2694       # list by gcc. This cause undefined symbols with -static flags.
2695       # This hack allows C programs to be linked with "-static -ldl", but
2696       # not sure about C++ programs.
2697       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2698       ;;
2699     amigaos*)
2700       # FIXME: we need at least 68020 code to build shared libraries, but
2701       # adding the `-m68020' flag to GCC prevents building anything better,
2702       # like `-m68040'.
2703       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2704       ;;
2705     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2706       # PIC is the default for these OSes.
2707       ;;
2708     darwin* | rhapsody*)
2709       # PIC is the default on this platform
2710       # Common symbols not allowed in MH_DYLIB files
2711       lt_cv_prog_cc_pic='-fno-common'
2712       ;;
2713     cygwin* | mingw* | pw32* | os2*)
2714       # This hack is so that the source file can tell whether it is being
2715       # built for inclusion in a dll (and should export symbols for example).
2716       lt_cv_prog_cc_pic='-DDLL_EXPORT'
2717       ;;
2718     sysv4*MP*)
2719       if test -d /usr/nec; then
2720          lt_cv_prog_cc_pic=-Kconform_pic
2721       fi
2722       ;;
2723     *)
2724       lt_cv_prog_cc_pic='-fPIC'
2725       ;;
2726     esac
2727   else
2728     # PORTME Check for PIC flags for the system compiler.
2729     case $host_os in
2730     aix3* | aix4* | aix5*)
2731       lt_cv_prog_cc_wl='-Wl,'
2732       # All AIX code is PIC.
2733       if test "$host_cpu" = ia64; then
2734         # AIX 5 now supports IA64 processor
2735         lt_cv_prog_cc_static='-Bstatic'
2736       else
2737         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2738       fi
2739       ;;
2740
2741     hpux9* | hpux10* | hpux11*)
2742       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2743       lt_cv_prog_cc_wl='-Wl,'
2744       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2745       lt_cv_prog_cc_pic='+Z'
2746       ;;
2747
2748     irix5* | irix6*)
2749       lt_cv_prog_cc_wl='-Wl,'
2750       lt_cv_prog_cc_static='-non_shared'
2751       # PIC (with -KPIC) is the default.
2752       ;;
2753
2754     cygwin* | mingw* | pw32* | os2*)
2755       # This hack is so that the source file can tell whether it is being
2756       # built for inclusion in a dll (and should export symbols for example).
2757       lt_cv_prog_cc_pic='-DDLL_EXPORT'
2758       ;;
2759
2760     newsos6)
2761       lt_cv_prog_cc_pic='-KPIC'
2762       lt_cv_prog_cc_static='-Bstatic'
2763       ;;
2764
2765     osf3* | osf4* | osf5*)
2766       # All OSF/1 code is PIC.
2767       lt_cv_prog_cc_wl='-Wl,'
2768       lt_cv_prog_cc_static='-non_shared'
2769       ;;
2770
2771     sco3.2v5*)
2772       lt_cv_prog_cc_pic='-Kpic'
2773       lt_cv_prog_cc_static='-dn'
2774       lt_cv_prog_cc_shlib='-belf'
2775       ;;
2776
2777     solaris*)
2778       lt_cv_prog_cc_pic='-KPIC'
2779       lt_cv_prog_cc_static='-Bstatic'
2780       lt_cv_prog_cc_wl='-Wl,'
2781       ;;
2782
2783     sunos4*)
2784       lt_cv_prog_cc_pic='-PIC'
2785       lt_cv_prog_cc_static='-Bstatic'
2786       lt_cv_prog_cc_wl='-Qoption ld '
2787       ;;
2788
2789     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2790       lt_cv_prog_cc_pic='-KPIC'
2791       lt_cv_prog_cc_static='-Bstatic'
2792       if test "x$host_vendor" = xsni; then
2793         lt_cv_prog_cc_wl='-LD'
2794       else
2795         lt_cv_prog_cc_wl='-Wl,'
2796       fi
2797       ;;
2798
2799     uts4*)
2800       lt_cv_prog_cc_pic='-pic'
2801       lt_cv_prog_cc_static='-Bstatic'
2802       ;;
2803
2804     sysv4*MP*)
2805       if test -d /usr/nec ;then
2806         lt_cv_prog_cc_pic='-Kconform_pic'
2807         lt_cv_prog_cc_static='-Bstatic'
2808       fi
2809       ;;
2810
2811     *)
2812       lt_cv_prog_cc_can_build_shared=no
2813       ;;
2814     esac
2815   fi
2816
2817 fi
2818
2819 if test -z "$lt_cv_prog_cc_pic"; then
2820   echo "$ac_t""none" 1>&6
2821 else
2822   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2823
2824   # Check to make sure the pic_flag actually works.
2825   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2826 echo "configure:2827: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2827   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2828   echo $ac_n "(cached) $ac_c" 1>&6
2829 else
2830       save_CFLAGS="$CFLAGS"
2831     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2832     cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835
2836 int main() {
2837
2838 ; return 0; }
2839 EOF
2840 if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2841   rm -rf conftest*
2842         case $host_os in
2843       hpux9* | hpux10* | hpux11*)
2844         # On HP-UX, both CC and GCC only warn that PIC is supported... then
2845         # they create non-PIC objects.  So, if there were any warnings, we
2846         # assume that PIC is not supported.
2847         if test -s conftest.err; then
2848           lt_cv_prog_cc_pic_works=no
2849         else
2850           lt_cv_prog_cc_pic_works=yes
2851         fi
2852         ;;
2853       *)
2854         lt_cv_prog_cc_pic_works=yes
2855         ;;
2856       esac
2857     
2858 else
2859   echo "configure: failed program was:" >&5
2860   cat conftest.$ac_ext >&5
2861   rm -rf conftest*
2862         lt_cv_prog_cc_pic_works=no
2863     
2864 fi
2865 rm -f conftest*
2866     CFLAGS="$save_CFLAGS"
2867   
2868 fi
2869
2870
2871   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2872     lt_cv_prog_cc_pic=
2873     lt_cv_prog_cc_can_build_shared=no
2874   else
2875     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2876   fi
2877
2878   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2879 fi
2880 ##
2881 ## END FIXME
2882
2883 # Check for any special shared library compilation flags.
2884 if test -n "$lt_cv_prog_cc_shlib"; then
2885   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2886   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
2887   else
2888    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2889     lt_cv_prog_cc_can_build_shared=no
2890   fi
2891 fi
2892
2893 ## FIXME: this should be a separate macro
2894 ##
2895 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2896 echo "configure:2897: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2897 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2898   echo $ac_n "(cached) $ac_c" 1>&6
2899 else
2900     lt_cv_prog_cc_static_works=no
2901   save_LDFLAGS="$LDFLAGS"
2902   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2903   cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906
2907 int main() {
2908
2909 ; return 0; }
2910 EOF
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912   rm -rf conftest*
2913   lt_cv_prog_cc_static_works=yes
2914 else
2915   echo "configure: failed program was:" >&5
2916   cat conftest.$ac_ext >&5
2917 fi
2918 rm -f conftest*
2919   LDFLAGS="$save_LDFLAGS"
2920
2921 fi
2922
2923
2924 # Belt *and* braces to stop my trousers falling down:
2925 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2926 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2927
2928 pic_flag="$lt_cv_prog_cc_pic"
2929 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2930 wl="$lt_cv_prog_cc_wl"
2931 link_static_flag="$lt_cv_prog_cc_static"
2932 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2933 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2934 ##
2935 ## END FIXME
2936
2937
2938 ## FIXME: this should be a separate macro
2939 ##
2940 # Check to see if options -o and -c are simultaneously supported by compiler
2941 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2942 echo "configure:2943: checking if $compiler supports -c -o file.$ac_objext" >&5
2943 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2944   echo $ac_n "(cached) $ac_c" 1>&6
2945 else
2946   
2947 $rm -r conftest 2>/dev/null
2948 mkdir conftest
2949 cd conftest
2950 echo "int some_variable = 0;" > conftest.$ac_ext
2951 mkdir out
2952 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2953 # that will create temporary files in the current directory regardless of
2954 # the output directory.  Thus, making CWD read-only will cause this test
2955 # to fail, enabling locking or at least warning the user not to do parallel
2956 # builds.
2957 chmod -w .
2958 save_CFLAGS="$CFLAGS"
2959 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2960 compiler_c_o=no
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2962   # The compiler can only warn and ignore the option if not recognized
2963   # So say no if there are warnings
2964   if test -s out/conftest.err; then
2965     lt_cv_compiler_c_o=no
2966   else
2967     lt_cv_compiler_c_o=yes
2968   fi
2969 else
2970   # Append any errors to the config.log.
2971   cat out/conftest.err 1>&5
2972   lt_cv_compiler_c_o=no
2973 fi
2974 CFLAGS="$save_CFLAGS"
2975 chmod u+w .
2976 $rm conftest* out/*
2977 rmdir out
2978 cd ..
2979 rmdir conftest
2980 $rm -r conftest 2>/dev/null
2981
2982 fi
2983
2984 compiler_c_o=$lt_cv_compiler_c_o
2985 echo "$ac_t""$compiler_c_o" 1>&6
2986
2987 if test x"$compiler_c_o" = x"yes"; then
2988   # Check to see if we can write to a .lo
2989   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2990 echo "configure:2991: checking if $compiler supports -c -o file.lo" >&5
2991   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2992   echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994   
2995   lt_cv_compiler_o_lo=no
2996   save_CFLAGS="$CFLAGS"
2997   CFLAGS="$CFLAGS -c -o conftest.lo"
2998   save_objext="$ac_objext"
2999   ac_objext=lo
3000   cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003
3004 int main() {
3005 int some_variable = 0;
3006 ; return 0; }
3007 EOF
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3009   rm -rf conftest*
3010       # The compiler can only warn and ignore the option if not recognized
3011     # So say no if there are warnings
3012     if test -s conftest.err; then
3013       lt_cv_compiler_o_lo=no
3014     else
3015       lt_cv_compiler_o_lo=yes
3016     fi
3017   
3018 else
3019   echo "configure: failed program was:" >&5
3020   cat conftest.$ac_ext >&5
3021 fi
3022 rm -f conftest*
3023   ac_objext="$save_objext"
3024   CFLAGS="$save_CFLAGS"
3025   
3026 fi
3027
3028   compiler_o_lo=$lt_cv_compiler_o_lo
3029   echo "$ac_t""$compiler_o_lo" 1>&6
3030 else
3031   compiler_o_lo=no
3032 fi
3033 ##
3034 ## END FIXME
3035
3036 ## FIXME: this should be a separate macro
3037 ##
3038 # Check to see if we can do hard links to lock some files if needed
3039 hard_links="nottested"
3040 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3041   # do not overwrite the value of need_locks provided by the user
3042   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3043 echo "configure:3044: checking if we can lock with hard links" >&5
3044   hard_links=yes
3045   $rm conftest*
3046   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3047   touch conftest.a
3048   ln conftest.a conftest.b 2>&5 || hard_links=no
3049   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3050   echo "$ac_t""$hard_links" 1>&6
3051   if test "$hard_links" = no; then
3052     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3053     need_locks=warn
3054   fi
3055 else
3056   need_locks=no
3057 fi
3058 ##
3059 ## END FIXME
3060
3061 ## FIXME: this should be a separate macro
3062 ##
3063 if test "$GCC" = yes; then
3064   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3065   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3066 echo "configure:3067: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3067   echo "int some_variable = 0;" > conftest.$ac_ext
3068   save_CFLAGS="$CFLAGS"
3069   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3070   compiler_rtti_exceptions=no
3071   cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074
3075 int main() {
3076 int some_variable = 0;
3077 ; return 0; }
3078 EOF
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080   rm -rf conftest*
3081       # The compiler can only warn and ignore the option if not recognized
3082     # So say no if there are warnings
3083     if test -s conftest.err; then
3084       compiler_rtti_exceptions=no
3085     else
3086       compiler_rtti_exceptions=yes
3087     fi
3088   
3089 else
3090   echo "configure: failed program was:" >&5
3091   cat conftest.$ac_ext >&5
3092 fi
3093 rm -f conftest*
3094   CFLAGS="$save_CFLAGS"
3095   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3096
3097   if test "$compiler_rtti_exceptions" = "yes"; then
3098     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3099   else
3100     no_builtin_flag=' -fno-builtin'
3101   fi
3102 fi
3103 ##
3104 ## END FIXME
3105
3106 ## FIXME: this should be a separate macro
3107 ##
3108 # See if the linker supports building shared libraries.
3109 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3110 echo "configure:3111: checking whether the linker ($LD) supports shared libraries" >&5
3111
3112 allow_undefined_flag=
3113 no_undefined_flag=
3114 need_lib_prefix=unknown
3115 need_version=unknown
3116 # when you set need_version to no, make sure it does not cause -set_version
3117 # flags to be left without arguments
3118 archive_cmds=
3119 archive_expsym_cmds=
3120 old_archive_from_new_cmds=
3121 old_archive_from_expsyms_cmds=
3122 export_dynamic_flag_spec=
3123 whole_archive_flag_spec=
3124 thread_safe_flag_spec=
3125 hardcode_into_libs=no
3126 hardcode_libdir_flag_spec=
3127 hardcode_libdir_separator=
3128 hardcode_direct=no
3129 hardcode_minus_L=no
3130 hardcode_shlibpath_var=unsupported
3131 runpath_var=
3132 link_all_deplibs=unknown
3133 always_export_symbols=no
3134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3135 # include_expsyms should be a list of space-separated symbols to be *always*
3136 # included in the symbol list
3137 include_expsyms=
3138 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3140 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3141 # as well as any symbol that contains `d'.
3142 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3144 # platforms (ab)use it in PIC code, but their linkers get confused if
3145 # the symbol is explicitly referenced.  Since portable code cannot
3146 # rely on this symbol name, it's probably fine to never include it in
3147 # preloaded symbol tables.
3148 extract_expsyms_cmds=
3149
3150 case $host_os in
3151 cygwin* | mingw* | pw32*)
3152   # FIXME: the MSVC++ port hasn't been tested in a loooong time
3153   # When not using gcc, we currently assume that we are using
3154   # Microsoft Visual C++.
3155   if test "$GCC" != yes; then
3156     with_gnu_ld=no
3157   fi
3158   ;;
3159 openbsd*)
3160   with_gnu_ld=no
3161   ;;
3162 esac
3163
3164 ld_shlibs=yes
3165 if test "$with_gnu_ld" = yes; then
3166   # If archive_cmds runs LD, not CC, wlarc should be empty
3167   wlarc='${wl}'
3168
3169   # See if GNU ld supports shared libraries.
3170   case $host_os in
3171   aix3* | aix4* | aix5*)
3172     # On AIX, the GNU linker is very broken
3173     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3174     ld_shlibs=no
3175     cat <<EOF 1>&2
3176
3177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3178 *** to be unable to reliably create shared libraries on AIX.
3179 *** Therefore, libtool is disabling shared libraries support.  If you
3180 *** really care for shared libraries, you may want to modify your PATH
3181 *** so that a non-GNU linker is found, and then restart.
3182
3183 EOF
3184     ;;
3185
3186   amigaos*)
3187     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)'
3188     hardcode_libdir_flag_spec='-L$libdir'
3189     hardcode_minus_L=yes
3190
3191     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3192     # that the semantics of dynamic libraries on AmigaOS, at least up
3193     # to version 4, is to share data among multiple programs linked
3194     # with the same dynamic library.  Since this doesn't match the
3195     # behavior of shared libraries on other platforms, we can use
3196     # them.
3197     ld_shlibs=no
3198     ;;
3199
3200   beos*)
3201     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3202       allow_undefined_flag=unsupported
3203       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3204       # support --undefined.  This deserves some investigation.  FIXME
3205       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3206     else
3207       ld_shlibs=no
3208     fi
3209     ;;
3210
3211   cygwin* | mingw* | pw32*)
3212     # hardcode_libdir_flag_spec is actually meaningless, as there is
3213     # no search path for DLLs.
3214     hardcode_libdir_flag_spec='-L$libdir'
3215     allow_undefined_flag=unsupported
3216     always_export_symbols=yes
3217
3218     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3219       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3220       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3221       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3222       else $CC -o impgen impgen.c ; fi)~
3223       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3224
3225     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3226
3227     # cygwin and mingw dlls have different entry points and sets of symbols
3228     # to exclude.
3229     # FIXME: what about values for MSVC?
3230     dll_entry=__cygwin_dll_entry@12
3231     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3232     case $host_os in
3233     mingw*)
3234       # mingw values
3235       dll_entry=_DllMainCRTStartup@12
3236       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3237       ;;
3238     esac
3239
3240     # mingw and cygwin differ, and it's simplest to just exclude the union
3241     # of the two symbol sets.
3242     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3243
3244     # recent cygwin and mingw systems supply a stub DllMain which the user
3245     # can override, but on older systems we have to supply one (in ltdll.c)
3246     if test "x$lt_cv_need_dllmain" = "xyes"; then
3247       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3248       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3249         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3250     else
3251       ltdll_obj=
3252       ltdll_cmds=
3253     fi
3254
3255     # Extract the symbol export list from an `--export-all' def file,
3256     # then regenerate the def file from the symbol export list, so that
3257     # the compiled dll only exports the symbol export list.
3258     # Be careful not to strip the DATA tag left be newer dlltools.
3259     export_symbols_cmds="$ltdll_cmds"'
3260       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3261       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3262
3263     # If the export-symbols file already is a .def file (1st line
3264     # is EXPORTS), use it as is.
3265     # If DATA tags from a recent dlltool are present, honour them!
3266     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3267         cp $export_symbols $output_objdir/$soname-def;
3268       else
3269         echo EXPORTS > $output_objdir/$soname-def;
3270         _lt_hint=1;
3271         cat $export_symbols | while read symbol; do
3272          set dummy \$symbol;
3273          case \$# in
3274            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3275            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3276          esac;
3277          _lt_hint=`expr 1 + \$_lt_hint`;
3278         done;
3279       fi~
3280       '"$ltdll_cmds"'
3281       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3282       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3283       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3284       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3285       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3286     ;;
3287
3288   netbsd*)
3289     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3290       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3291       wlarc=
3292     else
3293       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3294       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3295     fi
3296     ;;
3297
3298   solaris* | sysv5*)
3299     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3300       ld_shlibs=no
3301       cat <<EOF 1>&2
3302
3303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3304 *** create shared libraries on Solaris systems.  Therefore, libtool
3305 *** is disabling shared libraries support.  We urge you to upgrade GNU
3306 *** binutils to release 2.9.1 or newer.  Another option is to modify
3307 *** your PATH or compiler configuration so that the native linker is
3308 *** used, and then restart.
3309
3310 EOF
3311     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3312       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3313       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3314     else
3315       ld_shlibs=no
3316     fi
3317     ;;
3318
3319   sunos4*)
3320     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3321     wlarc=
3322     hardcode_direct=yes
3323     hardcode_shlibpath_var=no
3324     ;;
3325
3326   *)
3327     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3328       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3329       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3330     else
3331       ld_shlibs=no
3332     fi
3333     ;;
3334   esac
3335
3336   if test "$ld_shlibs" = yes; then
3337     runpath_var=LD_RUN_PATH
3338     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3339     export_dynamic_flag_spec='${wl}--export-dynamic'
3340     case $host_os in
3341     cygwin* | mingw* | pw32*)
3342       # dlltool doesn't understand --whole-archive et. al.
3343       whole_archive_flag_spec=
3344       ;;
3345     *)
3346       # ancient GNU ld didn't support --whole-archive et. al.
3347       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3348         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3349       else
3350         whole_archive_flag_spec=
3351       fi
3352       ;;
3353     esac
3354   fi
3355 else
3356   # PORTME fill in a description of your system's linker (not GNU ld)
3357   case $host_os in
3358   aix3*)
3359     allow_undefined_flag=unsupported
3360     always_export_symbols=yes
3361     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'
3362     # Note: this linker hardcodes the directories in LIBPATH if there
3363     # are no directories specified by -L.
3364     hardcode_minus_L=yes
3365     if test "$GCC" = yes && test -z "$link_static_flag"; then
3366       # Neither direct hardcoding nor static linking is supported with a
3367       # broken collect2.
3368       hardcode_direct=unsupported
3369     fi
3370     ;;
3371
3372   aix4* | aix5*)
3373     if test "$host_cpu" = ia64; then
3374       # On IA64, the linker does run time linking by default, so we don't
3375       # have to do anything special.
3376       aix_use_runtimelinking=no
3377       exp_sym_flag='-Bexport'
3378       no_entry_flag=""
3379     else
3380       aix_use_runtimelinking=no
3381
3382       # Test if we are trying to use run time linking or normal
3383       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3384       # need to do runtime linking.
3385       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3386         for ld_flag in $LDFLAGS; do
3387           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3388             aix_use_runtimelinking=yes
3389             break
3390           fi
3391         done
3392       esac
3393
3394       exp_sym_flag='-bexport'
3395       no_entry_flag='-bnoentry'
3396     fi
3397
3398     # When large executables or shared objects are built, AIX ld can
3399     # have problems creating the table of contents.  If linking a library
3400     # or program results in "error TOC overflow" add -mminimal-toc to
3401     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3402     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3403
3404     hardcode_direct=yes
3405     archive_cmds=''
3406     hardcode_libdir_separator=':'
3407     if test "$GCC" = yes; then
3408       case $host_os in aix4.[012]|aix4.[012].*)
3409         collect2name=`${CC} -print-prog-name=collect2`
3410         if test -f "$collect2name" && \
3411           strings "$collect2name" | grep resolve_lib_name >/dev/null
3412         then
3413           # We have reworked collect2
3414           hardcode_direct=yes
3415         else
3416           # We have old collect2
3417           hardcode_direct=unsupported
3418           # It fails to find uninstalled libraries when the uninstalled
3419           # path is not listed in the libpath.  Setting hardcode_minus_L
3420           # to unsupported forces relinking
3421           hardcode_minus_L=yes
3422           hardcode_libdir_flag_spec='-L$libdir'
3423           hardcode_libdir_separator=
3424         fi
3425       esac
3426
3427       shared_flag='-shared'
3428     else
3429       # not using gcc
3430       if test "$host_cpu" = ia64; then
3431         shared_flag='${wl}-G'
3432       else
3433         if test "$aix_use_runtimelinking" = yes; then
3434           shared_flag='${wl}-G'
3435         else
3436           shared_flag='${wl}-bM:SRE'
3437         fi
3438       fi
3439     fi
3440
3441     # It seems that -bexpall can do strange things, so it is better to
3442     # generate a list of symbols to export.
3443     always_export_symbols=yes
3444     if test "$aix_use_runtimelinking" = yes; then
3445       # Warning - without using the other runtime loading flags (-brtl),
3446       # -berok will link without error, but may produce a broken library.
3447       allow_undefined_flag='-berok'
3448       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3449       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3450     else
3451       if test "$host_cpu" = ia64; then
3452         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3453         allow_undefined_flag="-z nodefs"
3454         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3455       else
3456         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3457         # Warning - without using the other run time loading flags,
3458         # -berok will link without error, but may produce a broken library.
3459         allow_undefined_flag='${wl}-berok'
3460         # This is a bit strange, but is similar to how AIX traditionally builds
3461         # it's shared libraries.
3462         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3463       fi
3464     fi
3465     ;;
3466
3467   amigaos*)
3468     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)'
3469     hardcode_libdir_flag_spec='-L$libdir'
3470     hardcode_minus_L=yes
3471     # see comment about different semantics on the GNU ld section
3472     ld_shlibs=no
3473     ;;
3474
3475   cygwin* | mingw* | pw32*)
3476     # When not using gcc, we currently assume that we are using
3477     # Microsoft Visual C++.
3478     # hardcode_libdir_flag_spec is actually meaningless, as there is
3479     # no search path for DLLs.
3480     hardcode_libdir_flag_spec=' '
3481     allow_undefined_flag=unsupported
3482     # Tell ltmain to make .lib files, not .a files.
3483     libext=lib
3484     # FIXME: Setting linknames here is a bad hack.
3485     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3486     # The linker will automatically build a .lib file if we build a DLL.
3487     old_archive_from_new_cmds='true'
3488     # FIXME: Should let the user specify the lib program.
3489     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3490     fix_srcfile_path='`cygpath -w "$srcfile"`'
3491     ;;
3492
3493   darwin* | rhapsody*)
3494     case "$host_os" in
3495     rhapsody* | darwin1.[012])
3496       allow_undefined_flag='-undefined suppress'
3497       ;;
3498     *) # Darwin 1.3 on
3499       allow_undefined_flag='-flat_namespace -undefined suppress'
3500       ;;
3501     esac
3502     # FIXME: Relying on posixy $() will cause problems for
3503     #        cross-compilation, but unfortunately the echo tests do not
3504     #        yet detect zsh echo's removal of \ escapes.
3505     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3506     # We need to add '_' to the symbols in $export_symbols first
3507     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3508     hardcode_direct=yes
3509     hardcode_shlibpath_var=no
3510     whole_archive_flag_spec='-all_load $convenience'
3511     ;;
3512
3513   freebsd1*)
3514     ld_shlibs=no
3515     ;;
3516
3517   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3518   # support.  Future versions do this automatically, but an explicit c++rt0.o
3519   # does not break anything, and helps significantly (at the cost of a little
3520   # extra space).
3521   freebsd2.2*)
3522     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3523     hardcode_libdir_flag_spec='-R$libdir'
3524     hardcode_direct=yes
3525     hardcode_shlibpath_var=no
3526     ;;
3527
3528   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3529   freebsd2*)
3530     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3531     hardcode_direct=yes
3532     hardcode_minus_L=yes
3533     hardcode_shlibpath_var=no
3534     ;;
3535
3536   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3537   freebsd*)
3538     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3539     hardcode_libdir_flag_spec='-R$libdir'
3540     hardcode_direct=yes
3541     hardcode_shlibpath_var=no
3542     ;;
3543
3544   hpux9* | hpux10* | hpux11*)
3545     case $host_os in
3546     hpux9*) 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' ;;
3547     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3548     esac
3549     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3550     hardcode_libdir_separator=:
3551     hardcode_direct=yes
3552     hardcode_minus_L=yes # Not in the search PATH, but as the default
3553                          # location of the library.
3554     export_dynamic_flag_spec='${wl}-E'
3555     ;;
3556
3557   irix5* | irix6*)
3558     if test "$GCC" = yes; then
3559       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'
3560     else
3561       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'
3562     fi
3563     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3564     hardcode_libdir_separator=:
3565     link_all_deplibs=yes
3566     ;;
3567
3568   netbsd*)
3569     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3571     else
3572       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
3573     fi
3574     hardcode_libdir_flag_spec='-R$libdir'
3575     hardcode_direct=yes
3576     hardcode_shlibpath_var=no
3577     ;;
3578
3579   newsos6)
3580     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3581     hardcode_direct=yes
3582     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3583     hardcode_libdir_separator=:
3584     hardcode_shlibpath_var=no
3585     ;;
3586
3587   openbsd*)
3588     hardcode_direct=yes
3589     hardcode_shlibpath_var=no
3590     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3591       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3592       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3593       export_dynamic_flag_spec='${wl}-E'
3594     else
3595       case "$host_os" in
3596       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3597         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3598         hardcode_libdir_flag_spec='-R$libdir'
3599         ;;
3600       *)
3601         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3602         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3603         ;;
3604       esac
3605     fi
3606     ;;
3607
3608   os2*)
3609     hardcode_libdir_flag_spec='-L$libdir'
3610     hardcode_minus_L=yes
3611     allow_undefined_flag=unsupported
3612     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'
3613     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3614     ;;
3615
3616   osf3*)
3617     if test "$GCC" = yes; then
3618       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3619       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'
3620     else
3621       allow_undefined_flag=' -expect_unresolved \*'
3622       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'
3623     fi
3624     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3625     hardcode_libdir_separator=:
3626     ;;
3627
3628   osf4* | osf5*)        # as osf3* with the addition of -msym flag
3629     if test "$GCC" = yes; then
3630       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3631       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'
3632       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3633     else
3634       allow_undefined_flag=' -expect_unresolved \*'
3635       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'
3636       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3637       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3638
3639       #Both c and cxx compiler support -rpath directly
3640       hardcode_libdir_flag_spec='-rpath $libdir'
3641     fi
3642     hardcode_libdir_separator=:
3643     ;;
3644
3645   sco3.2v5*)
3646     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3647     hardcode_shlibpath_var=no
3648     runpath_var=LD_RUN_PATH
3649     hardcode_runpath_var=yes
3650     export_dynamic_flag_spec='${wl}-Bexport'
3651     ;;
3652
3653   solaris*)
3654     # gcc --version < 3.0 without binutils cannot create self contained
3655     # shared libraries reliably, requiring libgcc.a to resolve some of
3656     # the object symbols generated in some cases.  Libraries that use
3657     # assert need libgcc.a to resolve __eprintf, for example.  Linking
3658     # a copy of libgcc.a into every shared library to guarantee resolving
3659     # such symbols causes other problems:  According to Tim Van Holder
3660     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3661     # (to the application) exception stack for one thing.
3662     no_undefined_flag=' -z defs'
3663     if test "$GCC" = yes; then
3664       case `$CC --version 2>/dev/null` in
3665       [12].*)
3666         cat <<EOF 1>&2
3667
3668 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3669 *** create self contained shared libraries on Solaris systems, without
3670 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
3671 *** -no-undefined support, which will at least allow you to build shared
3672 *** libraries.  However, you may find that when you link such libraries
3673 *** into an application without using GCC, you have to manually add
3674 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
3675 *** upgrade to a newer version of GCC.  Another option is to rebuild your
3676 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3677
3678 EOF
3679         no_undefined_flag=
3680         ;;
3681       esac
3682     fi
3683     # $CC -shared without GNU ld will not create a library from C++
3684     # object files and a static libstdc++, better avoid it by now
3685     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3686     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3687                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3688     hardcode_libdir_flag_spec='-R$libdir'
3689     hardcode_shlibpath_var=no
3690     case $host_os in
3691     solaris2.[0-5] | solaris2.[0-5].*) ;;
3692     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3693       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3694     esac
3695     link_all_deplibs=yes
3696     ;;
3697
3698   sunos4*)
3699     if test "x$host_vendor" = xsequent; then
3700       # Use $CC to link under sequent, because it throws in some extra .o
3701       # files that make .init and .fini sections work.
3702       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3703     else
3704       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3705     fi
3706     hardcode_libdir_flag_spec='-L$libdir'
3707     hardcode_direct=yes
3708     hardcode_minus_L=yes
3709     hardcode_shlibpath_var=no
3710     ;;
3711
3712   sysv4)
3713     if test "x$host_vendor" = xsno; then
3714       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3715       hardcode_direct=yes # is this really true???
3716     else
3717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3718       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3719     fi
3720     runpath_var='LD_RUN_PATH'
3721     hardcode_shlibpath_var=no
3722     ;;
3723
3724   sysv4.3*)
3725     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3726     hardcode_shlibpath_var=no
3727     export_dynamic_flag_spec='-Bexport'
3728     ;;
3729
3730   sysv5*)
3731     no_undefined_flag=' -z text'
3732     # $CC -shared without GNU ld will not create a library from C++
3733     # object files and a static libstdc++, better avoid it by now
3734     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3735     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3736                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3737     hardcode_libdir_flag_spec=
3738     hardcode_shlibpath_var=no
3739     runpath_var='LD_RUN_PATH'
3740     ;;
3741
3742   uts4*)
3743     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3744     hardcode_libdir_flag_spec='-L$libdir'
3745     hardcode_shlibpath_var=no
3746     ;;
3747
3748   dgux*)
3749     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3750     hardcode_libdir_flag_spec='-L$libdir'
3751     hardcode_shlibpath_var=no
3752     ;;
3753
3754   sysv4*MP*)
3755     if test -d /usr/nec; then
3756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3757       hardcode_shlibpath_var=no
3758       runpath_var=LD_RUN_PATH
3759       hardcode_runpath_var=yes
3760       ld_shlibs=yes
3761     fi
3762     ;;
3763
3764   sysv4.2uw2*)
3765     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3766     hardcode_direct=yes
3767     hardcode_minus_L=no
3768     hardcode_shlibpath_var=no
3769     hardcode_runpath_var=yes
3770     runpath_var=LD_RUN_PATH
3771     ;;
3772
3773   sysv5uw7* | unixware7*)
3774     no_undefined_flag='${wl}-z ${wl}text'
3775     if test "$GCC" = yes; then
3776       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3777     else
3778       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3779     fi
3780     runpath_var='LD_RUN_PATH'
3781     hardcode_shlibpath_var=no
3782     ;;
3783
3784   *)
3785     ld_shlibs=no
3786     ;;
3787   esac
3788 fi
3789 echo "$ac_t""$ld_shlibs" 1>&6
3790 test "$ld_shlibs" = no && can_build_shared=no
3791 ##
3792 ## END FIXME
3793
3794 ## FIXME: this should be a separate macro
3795 ##
3796 # Check hardcoding attributes.
3797 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3798 echo "configure:3799: checking how to hardcode library paths into programs" >&5
3799 hardcode_action=
3800 if test -n "$hardcode_libdir_flag_spec" || \
3801    test -n "$runpath_var"; then
3802
3803   # We can hardcode non-existant directories.
3804   if test "$hardcode_direct" != no &&
3805      # If the only mechanism to avoid hardcoding is shlibpath_var, we
3806      # have to relink, otherwise we might link with an installed library
3807      # when we should be linking with a yet-to-be-installed one
3808      ## test "$hardcode_shlibpath_var" != no &&
3809      test "$hardcode_minus_L" != no; then
3810     # Linking always hardcodes the temporary library directory.
3811     hardcode_action=relink
3812   else
3813     # We can link without hardcoding, and we can hardcode nonexisting dirs.
3814     hardcode_action=immediate
3815   fi
3816 else
3817   # We cannot hardcode anything, or else we can only hardcode existing
3818   # directories.
3819   hardcode_action=unsupported
3820 fi
3821 echo "$ac_t""$hardcode_action" 1>&6
3822 ##
3823 ## END FIXME
3824
3825 ## FIXME: this should be a separate macro
3826 ##
3827 striplib=
3828 old_striplib=
3829 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3830 echo "configure:3831: checking whether stripping libraries is possible" >&5
3831 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3832   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3833   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3834   echo "$ac_t""yes" 1>&6
3835 else
3836   echo "$ac_t""no" 1>&6
3837 fi
3838 ##
3839 ## END FIXME
3840
3841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3842 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3843
3844 ## FIXME: this should be a separate macro
3845 ##
3846 # PORTME Fill in your ld.so characteristics
3847 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3848 echo "configure:3849: checking dynamic linker characteristics" >&5
3849 library_names_spec=
3850 libname_spec='lib$name'
3851 soname_spec=
3852 postinstall_cmds=
3853 postuninstall_cmds=
3854 finish_cmds=
3855 finish_eval=
3856 shlibpath_var=
3857 shlibpath_overrides_runpath=unknown
3858 version_type=none
3859 dynamic_linker="$host_os ld.so"
3860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3862
3863 case $host_os in
3864 aix3*)
3865   version_type=linux
3866   library_names_spec='${libname}${release}.so$versuffix $libname.a'
3867   shlibpath_var=LIBPATH
3868
3869   # AIX has no versioning support, so we append a major version to the name.
3870   soname_spec='${libname}${release}.so$major'
3871   ;;
3872
3873 aix4* | aix5*)
3874   version_type=linux
3875   if test "$host_cpu" = ia64; then
3876     # AIX 5 supports IA64
3877     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3878     shlibpath_var=LD_LIBRARY_PATH
3879   else
3880     # With GCC up to 2.95.x, collect2 would create an import file
3881     # for dependence libraries.  The import file would start with
3882     # the line `#! .'.  This would cause the generated library to
3883     # depend on `.', always an invalid library.  This was fixed in
3884     # development snapshots of GCC prior to 3.0.
3885     case $host_os in
3886       aix4 | aix4.[01] | aix4.[01].*)
3887         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3888              echo ' yes '
3889              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3890           :
3891         else
3892           can_build_shared=no
3893         fi
3894         ;;
3895     esac
3896     # AIX (on Power*) has no versioning support, so currently we can
3897     # not hardcode correct soname into executable. Probably we can
3898     # add versioning support to collect2, so additional links can
3899     # be useful in future.
3900     if test "$aix_use_runtimelinking" = yes; then
3901       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3902       # instead of lib<name>.a to let people know that these are not
3903       # typical AIX shared libraries.
3904       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3905     else
3906       # We preserve .a as extension for shared libraries through AIX4.2
3907       # and later when we are not doing run time linking.
3908       library_names_spec='${libname}${release}.a $libname.a'
3909       soname_spec='${libname}${release}.so$major'
3910     fi
3911     shlibpath_var=LIBPATH
3912   fi
3913   ;;
3914
3915 amigaos*)
3916   library_names_spec='$libname.ixlibrary $libname.a'
3917   # Create ${libname}_ixlibrary.a entries in /sys/libs.
3918   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'
3919   ;;
3920
3921 beos*)
3922   library_names_spec='${libname}.so'
3923   dynamic_linker="$host_os ld.so"
3924   shlibpath_var=LIBRARY_PATH
3925   ;;
3926
3927 bsdi4*)
3928   version_type=linux
3929   need_version=no
3930   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3931   soname_spec='${libname}${release}.so$major'
3932   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3933   shlibpath_var=LD_LIBRARY_PATH
3934   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3935   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3936   export_dynamic_flag_spec=-rdynamic
3937   # the default ld.so.conf also contains /usr/contrib/lib and
3938   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3939   # libtool to hard-code these into programs
3940   ;;
3941
3942 cygwin* | mingw* | pw32*)
3943   version_type=windows
3944   need_version=no
3945   need_lib_prefix=no
3946   case $GCC,$host_os in
3947   yes,cygwin*)
3948     library_names_spec='$libname.dll.a'
3949     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3950     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3951       dldir=$destdir/`dirname \$dlpath`~
3952       test -d \$dldir || mkdir -p \$dldir~
3953       $install_prog .libs/$dlname \$dldir/$dlname'
3954     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3955       dlpath=$dir/\$dldll~
3956        $rm \$dlpath'
3957     ;;
3958   yes,mingw*)
3959     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3960     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3961     ;;
3962   yes,pw32*)
3963     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3964     ;;
3965   *)
3966     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3967     ;;
3968   esac
3969   dynamic_linker='Win32 ld.exe'
3970   # FIXME: first we should search . and the directory the executable is in
3971   shlibpath_var=PATH
3972   ;;
3973
3974 darwin* | rhapsody*)
3975   dynamic_linker="$host_os dyld"
3976   version_type=darwin
3977   need_lib_prefix=no
3978   need_version=no
3979   # FIXME: Relying on posixy $() will cause problems for
3980   #        cross-compilation, but unfortunately the echo tests do not
3981   #        yet detect zsh echo's removal of \ escapes.
3982   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3983   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3984   shlibpath_overrides_runpath=yes
3985   shlibpath_var=DYLD_LIBRARY_PATH
3986   ;;
3987
3988 freebsd1*)
3989   dynamic_linker=no
3990   ;;
3991
3992 freebsd*)
3993   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3994   version_type=freebsd-$objformat
3995   case $version_type in
3996     freebsd-elf*)
3997       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3998       need_version=no
3999       need_lib_prefix=no
4000       ;;
4001     freebsd-*)
4002       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4003       need_version=yes
4004       ;;
4005   esac
4006   shlibpath_var=LD_LIBRARY_PATH
4007   case $host_os in
4008   freebsd2*)
4009     shlibpath_overrides_runpath=yes
4010     ;;
4011   *)
4012     shlibpath_overrides_runpath=no
4013     hardcode_into_libs=yes
4014     ;;
4015   esac
4016   ;;
4017
4018 gnu*)
4019   version_type=linux
4020   need_lib_prefix=no
4021   need_version=no
4022   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4023   soname_spec='${libname}${release}.so$major'
4024   shlibpath_var=LD_LIBRARY_PATH
4025   hardcode_into_libs=yes
4026   ;;
4027
4028 hpux9* | hpux10* | hpux11*)
4029   # Give a soname corresponding to the major version so that dld.sl refuses to
4030   # link against other versions.
4031   dynamic_linker="$host_os dld.sl"
4032   version_type=sunos
4033   need_lib_prefix=no
4034   need_version=no
4035   shlibpath_var=SHLIB_PATH
4036   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4037   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4038   soname_spec='${libname}${release}.sl$major'
4039   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4040   postinstall_cmds='chmod 555 $lib'
4041   ;;
4042
4043 irix5* | irix6*)
4044   version_type=irix
4045   need_lib_prefix=no
4046   need_version=no
4047   soname_spec='${libname}${release}.so$major'
4048   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4049   case $host_os in
4050   irix5*)
4051     libsuff= shlibsuff=
4052     ;;
4053   *)
4054     case $LD in # libtool.m4 will add one of these switches to LD
4055     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4056     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4057     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4058     *) libsuff= shlibsuff= libmagic=never-match;;
4059     esac
4060     ;;
4061   esac
4062   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4063   shlibpath_overrides_runpath=no
4064   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4065   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4066   ;;
4067
4068 # No shared lib support for Linux oldld, aout, or coff.
4069 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4070   dynamic_linker=no
4071   ;;
4072
4073 # This must be Linux ELF.
4074 linux-gnu*)
4075   version_type=linux
4076   need_lib_prefix=no
4077   need_version=no
4078   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4079   soname_spec='${libname}${release}.so$major'
4080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4081   shlibpath_var=LD_LIBRARY_PATH
4082   shlibpath_overrides_runpath=no
4083   # This implies no fast_install, which is unacceptable.
4084   # Some rework will be needed to allow for fast_install
4085   # before this can be enabled.
4086   hardcode_into_libs=yes
4087
4088   # We used to test for /lib/ld.so.1 and disable shared libraries on
4089   # powerpc, because MkLinux only supported shared libraries with the
4090   # GNU dynamic linker.  Since this was broken with cross compilers,
4091   # most powerpc-linux boxes support dynamic linking these days and
4092   # people can always --disable-shared, the test was removed, and we
4093   # assume the GNU/Linux dynamic linker is in use.
4094   dynamic_linker='GNU/Linux ld.so'
4095   ;;
4096
4097 netbsd*)
4098   version_type=sunos
4099   need_lib_prefix=no
4100   need_version=no
4101   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4102     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4103     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4104     dynamic_linker='NetBSD (a.out) ld.so'
4105   else
4106     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4107     soname_spec='${libname}${release}.so$major'
4108     dynamic_linker='NetBSD ld.elf_so'
4109   fi
4110   shlibpath_var=LD_LIBRARY_PATH
4111   shlibpath_overrides_runpath=yes
4112   hardcode_into_libs=yes
4113   ;;
4114
4115 newsos6)
4116   version_type=linux
4117   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4118   shlibpath_var=LD_LIBRARY_PATH
4119   shlibpath_overrides_runpath=yes
4120   ;;
4121
4122 openbsd*)
4123   version_type=sunos
4124   need_lib_prefix=no
4125   need_version=no
4126   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4127     case "$host_os" in
4128     openbsd2.[89] | openbsd2.[89].*)
4129       shlibpath_overrides_runpath=no
4130       ;;
4131     *)
4132       shlibpath_overrides_runpath=yes
4133       ;;
4134     esac
4135   else
4136     shlibpath_overrides_runpath=yes
4137   fi
4138   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4140   shlibpath_var=LD_LIBRARY_PATH
4141   ;;
4142
4143 os2*)
4144   libname_spec='$name'
4145   need_lib_prefix=no
4146   library_names_spec='$libname.dll $libname.a'
4147   dynamic_linker='OS/2 ld.exe'
4148   shlibpath_var=LIBPATH
4149   ;;
4150
4151 osf3* | osf4* | osf5*)
4152   version_type=osf
4153   need_version=no
4154   soname_spec='${libname}${release}.so'
4155   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4156   shlibpath_var=LD_LIBRARY_PATH
4157   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4158   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4159   ;;
4160
4161 sco3.2v5*)
4162   version_type=osf
4163   soname_spec='${libname}${release}.so$major'
4164   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4165   shlibpath_var=LD_LIBRARY_PATH
4166   ;;
4167
4168 solaris*)
4169   version_type=linux
4170   need_lib_prefix=no
4171   need_version=no
4172   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4173   soname_spec='${libname}${release}.so$major'
4174   shlibpath_var=LD_LIBRARY_PATH
4175   shlibpath_overrides_runpath=yes
4176   hardcode_into_libs=yes
4177   # ldd complains unless libraries are executable
4178   postinstall_cmds='chmod +x $lib'
4179   ;;
4180
4181 sunos4*)
4182   version_type=sunos
4183   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4184   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4185   shlibpath_var=LD_LIBRARY_PATH
4186   shlibpath_overrides_runpath=yes
4187   if test "$with_gnu_ld" = yes; then
4188     need_lib_prefix=no
4189   fi
4190   need_version=yes
4191   ;;
4192
4193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4194   version_type=linux
4195   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4196   soname_spec='${libname}${release}.so$major'
4197   shlibpath_var=LD_LIBRARY_PATH
4198   case $host_vendor in
4199     sni)
4200       shlibpath_overrides_runpath=no
4201       ;;
4202     motorola)
4203       need_lib_prefix=no
4204       need_version=no
4205       shlibpath_overrides_runpath=no
4206       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4207       ;;
4208   esac
4209   ;;
4210
4211 uts4*)
4212   version_type=linux
4213   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4214   soname_spec='${libname}${release}.so$major'
4215   shlibpath_var=LD_LIBRARY_PATH
4216   ;;
4217
4218 dgux*)
4219   version_type=linux
4220   need_lib_prefix=no
4221   need_version=no
4222   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4223   soname_spec='${libname}${release}.so$major'
4224   shlibpath_var=LD_LIBRARY_PATH
4225   ;;
4226
4227 sysv4*MP*)
4228   if test -d /usr/nec ;then
4229     version_type=linux
4230     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4231     soname_spec='$libname.so.$major'
4232     shlibpath_var=LD_LIBRARY_PATH
4233   fi
4234   ;;
4235
4236 *)
4237   dynamic_linker=no
4238   ;;
4239 esac
4240 echo "$ac_t""$dynamic_linker" 1>&6
4241 test "$dynamic_linker" = no && can_build_shared=no
4242 ##
4243 ## END FIXME
4244
4245 ## FIXME: this should be a separate macro
4246 ##
4247 # Report the final consequences.
4248 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4249 echo "configure:4250: checking if libtool supports shared libraries" >&5
4250 echo "$ac_t""$can_build_shared" 1>&6
4251 ##
4252 ## END FIXME
4253
4254 ## FIXME: this should be a separate macro
4255 ##
4256 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4257 echo "configure:4258: checking whether to build shared libraries" >&5
4258 test "$can_build_shared" = "no" && enable_shared=no
4259
4260 # On AIX, shared libraries and static libraries use the same namespace, and
4261 # are all built from PIC.
4262 case "$host_os" in
4263 aix3*)
4264   test "$enable_shared" = yes && enable_static=no
4265   if test -n "$RANLIB"; then
4266     archive_cmds="$archive_cmds~\$RANLIB \$lib"
4267     postinstall_cmds='$RANLIB $lib'
4268   fi
4269   ;;
4270
4271 aix4*)
4272   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4273     test "$enable_shared" = yes && enable_static=no
4274   fi
4275   ;;
4276 esac
4277 echo "$ac_t""$enable_shared" 1>&6
4278 ##
4279 ## END FIXME
4280
4281 ## FIXME: this should be a separate macro
4282 ##
4283 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4284 echo "configure:4285: checking whether to build static libraries" >&5
4285 # Make sure either enable_shared or enable_static is yes.
4286 test "$enable_shared" = yes || enable_static=yes
4287 echo "$ac_t""$enable_static" 1>&6
4288 ##
4289 ## END FIXME
4290
4291 if test "$hardcode_action" = relink; then
4292   # Fast installation is not supported
4293   enable_fast_install=no
4294 elif test "$shlibpath_overrides_runpath" = yes ||
4295      test "$enable_shared" = no; then
4296   # Fast installation is not necessary
4297   enable_fast_install=needless
4298 fi
4299
4300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4301 if test "$GCC" = yes; then
4302   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4303 fi
4304
4305 if test "x$enable_dlopen" != xyes; then
4306   enable_dlopen=unknown
4307   enable_dlopen_self=unknown
4308   enable_dlopen_self_static=unknown
4309 else
4310   lt_cv_dlopen=no
4311   lt_cv_dlopen_libs=
4312
4313   case $host_os in
4314   beos*)
4315     lt_cv_dlopen="load_add_on"
4316     lt_cv_dlopen_libs=
4317     lt_cv_dlopen_self=yes
4318     ;;
4319
4320   cygwin* | mingw* | pw32*)
4321     lt_cv_dlopen="LoadLibrary"
4322     lt_cv_dlopen_libs=
4323    ;;
4324
4325   *)
4326     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4327 echo "configure:4328: checking for shl_load" >&5
4328 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4329   echo $ac_n "(cached) $ac_c" 1>&6
4330 else
4331   cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* System header to define __stub macros and hopefully few prototypes,
4335     which can conflict with char shl_load(); below.  */
4336 #include <assert.h>
4337 /* Override any gcc2 internal prototype to avoid an error.  */
4338 /* We use char because int might match the return type of a gcc2
4339     builtin and then its argument prototype would still apply.  */
4340 char shl_load();
4341
4342 int main() {
4343
4344 /* The GNU C library defines this for functions which it implements
4345     to always fail with ENOSYS.  Some functions are actually named
4346     something starting with __ and the normal name is an alias.  */
4347 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4348 choke me
4349 #else
4350 shl_load();
4351 #endif
4352
4353 ; return 0; }
4354 EOF
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4356   rm -rf conftest*
4357   eval "ac_cv_func_shl_load=yes"
4358 else
4359   echo "configure: failed program was:" >&5
4360   cat conftest.$ac_ext >&5
4361   rm -rf conftest*
4362   eval "ac_cv_func_shl_load=no"
4363 fi
4364 rm -f conftest*
4365 fi
4366
4367 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4368   echo "$ac_t""yes" 1>&6
4369   lt_cv_dlopen="shl_load"
4370 else
4371   echo "$ac_t""no" 1>&6
4372 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4373 echo "configure:4374: checking for shl_load in -ldld" >&5
4374 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4376   echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378   ac_save_LIBS="$LIBS"
4379 LIBS="-ldld  $LIBS"
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 /* Override any gcc2 internal prototype to avoid an error.  */
4384 /* We use char because int might match the return type of a gcc2
4385     builtin and then its argument prototype would still apply.  */
4386 char shl_load();
4387
4388 int main() {
4389 shl_load()
4390 ; return 0; }
4391 EOF
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393   rm -rf conftest*
4394   eval "ac_cv_lib_$ac_lib_var=yes"
4395 else
4396   echo "configure: failed program was:" >&5
4397   cat conftest.$ac_ext >&5
4398   rm -rf conftest*
4399   eval "ac_cv_lib_$ac_lib_var=no"
4400 fi
4401 rm -f conftest*
4402 LIBS="$ac_save_LIBS"
4403
4404 fi
4405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4406   echo "$ac_t""yes" 1>&6
4407   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4408 else
4409   echo "$ac_t""no" 1>&6
4410 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4411 echo "configure:4412: checking for dlopen" >&5
4412 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4413   echo $ac_n "(cached) $ac_c" 1>&6
4414 else
4415   cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* System header to define __stub macros and hopefully few prototypes,
4419     which can conflict with char dlopen(); below.  */
4420 #include <assert.h>
4421 /* Override any gcc2 internal prototype to avoid an error.  */
4422 /* We use char because int might match the return type of a gcc2
4423     builtin and then its argument prototype would still apply.  */
4424 char dlopen();
4425
4426 int main() {
4427
4428 /* The GNU C library defines this for functions which it implements
4429     to always fail with ENOSYS.  Some functions are actually named
4430     something starting with __ and the normal name is an alias.  */
4431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4432 choke me
4433 #else
4434 dlopen();
4435 #endif
4436
4437 ; return 0; }
4438 EOF
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440   rm -rf conftest*
4441   eval "ac_cv_func_dlopen=yes"
4442 else
4443   echo "configure: failed program was:" >&5
4444   cat conftest.$ac_ext >&5
4445   rm -rf conftest*
4446   eval "ac_cv_func_dlopen=no"
4447 fi
4448 rm -f conftest*
4449 fi
4450
4451 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4452   echo "$ac_t""yes" 1>&6
4453   lt_cv_dlopen="dlopen"
4454 else
4455   echo "$ac_t""no" 1>&6
4456 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4457 echo "configure:4458: checking for dlopen in -ldl" >&5
4458 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460   echo $ac_n "(cached) $ac_c" 1>&6
4461 else
4462   ac_save_LIBS="$LIBS"
4463 LIBS="-ldl  $LIBS"
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error.  */
4468 /* We use char because int might match the return type of a gcc2
4469     builtin and then its argument prototype would still apply.  */
4470 char dlopen();
4471
4472 int main() {
4473 dlopen()
4474 ; return 0; }
4475 EOF
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4477   rm -rf conftest*
4478   eval "ac_cv_lib_$ac_lib_var=yes"
4479 else
4480   echo "configure: failed program was:" >&5
4481   cat conftest.$ac_ext >&5
4482   rm -rf conftest*
4483   eval "ac_cv_lib_$ac_lib_var=no"
4484 fi
4485 rm -f conftest*
4486 LIBS="$ac_save_LIBS"
4487
4488 fi
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490   echo "$ac_t""yes" 1>&6
4491   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4492 else
4493   echo "$ac_t""no" 1>&6
4494 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4495 echo "configure:4496: checking for dlopen in -lsvld" >&5
4496 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4498   echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500   ac_save_LIBS="$LIBS"
4501 LIBS="-lsvld  $LIBS"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error.  */
4506 /* We use char because int might match the return type of a gcc2
4507     builtin and then its argument prototype would still apply.  */
4508 char dlopen();
4509
4510 int main() {
4511 dlopen()
4512 ; return 0; }
4513 EOF
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4515   rm -rf conftest*
4516   eval "ac_cv_lib_$ac_lib_var=yes"
4517 else
4518   echo "configure: failed program was:" >&5
4519   cat conftest.$ac_ext >&5
4520   rm -rf conftest*
4521   eval "ac_cv_lib_$ac_lib_var=no"
4522 fi
4523 rm -f conftest*
4524 LIBS="$ac_save_LIBS"
4525
4526 fi
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528   echo "$ac_t""yes" 1>&6
4529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4530 else
4531   echo "$ac_t""no" 1>&6
4532 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4533 echo "configure:4534: checking for dld_link in -ldld" >&5
4534 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4536   echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538   ac_save_LIBS="$LIBS"
4539 LIBS="-ldld  $LIBS"
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error.  */
4544 /* We use char because int might match the return type of a gcc2
4545     builtin and then its argument prototype would still apply.  */
4546 char dld_link();
4547
4548 int main() {
4549 dld_link()
4550 ; return 0; }
4551 EOF
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553   rm -rf conftest*
4554   eval "ac_cv_lib_$ac_lib_var=yes"
4555 else
4556   echo "configure: failed program was:" >&5
4557   cat conftest.$ac_ext >&5
4558   rm -rf conftest*
4559   eval "ac_cv_lib_$ac_lib_var=no"
4560 fi
4561 rm -f conftest*
4562 LIBS="$ac_save_LIBS"
4563
4564 fi
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566   echo "$ac_t""yes" 1>&6
4567   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4568 else
4569   echo "$ac_t""no" 1>&6
4570 fi
4571
4572               
4573 fi
4574
4575             
4576 fi
4577
4578           
4579 fi
4580
4581         
4582 fi
4583
4584       
4585 fi
4586
4587     ;;
4588   esac
4589
4590   if test "x$lt_cv_dlopen" != xno; then
4591     enable_dlopen=yes
4592   else
4593     enable_dlopen=no
4594   fi
4595
4596   case $lt_cv_dlopen in
4597   dlopen)
4598     save_CPPFLAGS="$CPPFLAGS"
4599         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4600
4601     save_LDFLAGS="$LDFLAGS"
4602     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4603
4604     save_LIBS="$LIBS"
4605     LIBS="$lt_cv_dlopen_libs $LIBS"
4606
4607     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4608 echo "configure:4609: checking whether a program can dlopen itself" >&5
4609 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4610   echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612           if test "$cross_compiling" = yes; then :
4613   lt_cv_dlopen_self=cross
4614 else
4615     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4616   lt_status=$lt_dlunknown
4617   cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620
4621 #if HAVE_DLFCN_H
4622 #include <dlfcn.h>
4623 #endif
4624
4625 #include <stdio.h>
4626
4627 #ifdef RTLD_GLOBAL
4628 #  define LT_DLGLOBAL           RTLD_GLOBAL
4629 #else
4630 #  ifdef DL_GLOBAL
4631 #    define LT_DLGLOBAL         DL_GLOBAL
4632 #  else
4633 #    define LT_DLGLOBAL         0
4634 #  endif
4635 #endif
4636
4637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4638    find out it does not work in some platform. */
4639 #ifndef LT_DLLAZY_OR_NOW
4640 #  ifdef RTLD_LAZY
4641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4642 #  else
4643 #    ifdef DL_LAZY
4644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
4645 #    else
4646 #      ifdef RTLD_NOW
4647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
4648 #      else
4649 #        ifdef DL_NOW
4650 #          define LT_DLLAZY_OR_NOW      DL_NOW
4651 #        else
4652 #          define LT_DLLAZY_OR_NOW      0
4653 #        endif
4654 #      endif
4655 #    endif
4656 #  endif
4657 #endif
4658
4659 #ifdef __cplusplus
4660 extern "C" void exit (int);
4661 #endif
4662
4663 void fnord() { int i=42;}
4664 int main ()
4665 {
4666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4667   int status = $lt_dlunknown;
4668
4669   if (self)
4670     {
4671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4673       /* dlclose (self); */
4674     }
4675
4676     exit (status);
4677 }
4678 EOF
4679   if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4680     (./conftest; exit; ) 2>/dev/null
4681     lt_status=$?
4682     case x$lt_status in
4683       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4684       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4685       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4686     esac
4687   else :
4688     # compilation failed
4689     lt_cv_dlopen_self=no
4690   fi
4691 fi
4692 rm -fr conftest*
4693
4694     
4695 fi
4696
4697 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4698
4699     if test "x$lt_cv_dlopen_self" = xyes; then
4700       LDFLAGS="$LDFLAGS $link_static_flag"
4701       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether a statically linked program can dlopen itself" >&5
4703 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4704   echo $ac_n "(cached) $ac_c" 1>&6
4705 else
4706           if test "$cross_compiling" = yes; then :
4707   lt_cv_dlopen_self_static=cross
4708 else
4709     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4710   lt_status=$lt_dlunknown
4711   cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714
4715 #if HAVE_DLFCN_H
4716 #include <dlfcn.h>
4717 #endif
4718
4719 #include <stdio.h>
4720
4721 #ifdef RTLD_GLOBAL
4722 #  define LT_DLGLOBAL           RTLD_GLOBAL
4723 #else
4724 #  ifdef DL_GLOBAL
4725 #    define LT_DLGLOBAL         DL_GLOBAL
4726 #  else
4727 #    define LT_DLGLOBAL         0
4728 #  endif
4729 #endif
4730
4731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4732    find out it does not work in some platform. */
4733 #ifndef LT_DLLAZY_OR_NOW
4734 #  ifdef RTLD_LAZY
4735 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4736 #  else
4737 #    ifdef DL_LAZY
4738 #      define LT_DLLAZY_OR_NOW          DL_LAZY
4739 #    else
4740 #      ifdef RTLD_NOW
4741 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
4742 #      else
4743 #        ifdef DL_NOW
4744 #          define LT_DLLAZY_OR_NOW      DL_NOW
4745 #        else
4746 #          define LT_DLLAZY_OR_NOW      0
4747 #        endif
4748 #      endif
4749 #    endif
4750 #  endif
4751 #endif
4752
4753 #ifdef __cplusplus
4754 extern "C" void exit (int);
4755 #endif
4756
4757 void fnord() { int i=42;}
4758 int main ()
4759 {
4760   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4761   int status = $lt_dlunknown;
4762
4763   if (self)
4764     {
4765       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4766       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4767       /* dlclose (self); */
4768     }
4769
4770     exit (status);
4771 }
4772 EOF
4773   if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4774     (./conftest; exit; ) 2>/dev/null
4775     lt_status=$?
4776     case x$lt_status in
4777       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4778       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4779       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4780     esac
4781   else :
4782     # compilation failed
4783     lt_cv_dlopen_self_static=no
4784   fi
4785 fi
4786 rm -fr conftest*
4787
4788       
4789 fi
4790
4791 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4792     fi
4793
4794     CPPFLAGS="$save_CPPFLAGS"
4795     LDFLAGS="$save_LDFLAGS"
4796     LIBS="$save_LIBS"
4797     ;;
4798   esac
4799
4800   case $lt_cv_dlopen_self in
4801   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4802   *) enable_dlopen_self=unknown ;;
4803   esac
4804
4805   case $lt_cv_dlopen_self_static in
4806   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4807   *) enable_dlopen_self_static=unknown ;;
4808   esac
4809 fi
4810
4811
4812 ## FIXME: this should be a separate macro
4813 ##
4814 if test "$enable_shared" = yes && test "$GCC" = yes; then
4815   case $archive_cmds in
4816   *'~'*)
4817     # FIXME: we may have to deal with multi-command sequences.
4818     ;;
4819   '$CC '*)
4820     # Test whether the compiler implicitly links with -lc since on some
4821     # systems, -lgcc has to come before -lc. If gcc already passes -lc
4822     # to ld, don't add -lc before -lgcc.
4823     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4824 echo "configure:4825: checking whether -lc should be explicitly linked in" >&5
4825     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4826   echo $ac_n "(cached) $ac_c" 1>&6
4827 else
4828   $rm conftest*
4829     echo 'static int dummy;' > conftest.$ac_ext
4830
4831     if { (eval echo configure:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4832       soname=conftest
4833       lib=conftest
4834       libobjs=conftest.$ac_objext
4835       deplibs=
4836       wl=$lt_cv_prog_cc_wl
4837       compiler_flags=-v
4838       linker_flags=-v
4839       verstring=
4840       output_objdir=.
4841       libname=conftest
4842       save_allow_undefined_flag=$allow_undefined_flag
4843       allow_undefined_flag=
4844       if { (eval echo configure:4845: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4845       then
4846         lt_cv_archive_cmds_need_lc=no
4847       else
4848         lt_cv_archive_cmds_need_lc=yes
4849       fi
4850       allow_undefined_flag=$save_allow_undefined_flag
4851     else
4852       cat conftest.err 1>&5
4853     fi
4854 fi
4855
4856     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4857     ;;
4858   esac
4859 fi
4860 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4861 ##
4862 ## END FIXME
4863
4864 ## FIXME: this should be a separate macro
4865 ##
4866 # The second clause should only fire when bootstrapping the
4867 # libtool distribution, otherwise you forgot to ship ltmain.sh
4868 # with your package, and you will get complaints that there are
4869 # no rules to generate ltmain.sh.
4870 if test -f "$ltmain"; then
4871   :
4872 else
4873   # If there is no Makefile yet, we rely on a make rule to execute
4874   # `config.status --recheck' to rerun these tests and create the
4875   # libtool script then.
4876   test -f Makefile && make "$ltmain"
4877 fi
4878
4879 if test -f "$ltmain"; then
4880   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4881   $rm -f "${ofile}T"
4882
4883   echo creating $ofile
4884
4885   # Now quote all the things that may contain metacharacters while being
4886   # careful not to overquote the AC_SUBSTed values.  We take copies of the
4887   # variables and quote the copies for generation of the libtool script.
4888   for var in echo old_CC old_CFLAGS \
4889     AR AR_FLAGS CC LD LN_S NM SHELL \
4890     reload_flag reload_cmds wl \
4891     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4892     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4893     library_names_spec soname_spec \
4894     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4895     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4896     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4897     old_striplib striplib file_magic_cmd export_symbols_cmds \
4898     deplibs_check_method allow_undefined_flag no_undefined_flag \
4899     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4900     global_symbol_to_c_name_address \
4901     hardcode_libdir_flag_spec hardcode_libdir_separator  \
4902     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4903     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4904
4905     case $var in
4906     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4907     old_postinstall_cmds | old_postuninstall_cmds | \
4908     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4909     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4910     postinstall_cmds | postuninstall_cmds | \
4911     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4912       # Double-quote double-evaled strings.
4913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4914       ;;
4915     *)
4916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4917       ;;
4918     esac
4919   done
4920
4921   cat <<__EOF__ > "${ofile}T"
4922 #! $SHELL
4923
4924 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4925 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4927 #
4928 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4929 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4930 #
4931 # This program is free software; you can redistribute it and/or modify
4932 # it under the terms of the GNU General Public License as published by
4933 # the Free Software Foundation; either version 2 of the License, or
4934 # (at your option) any later version.
4935 #
4936 # This program is distributed in the hope that it will be useful, but
4937 # WITHOUT ANY WARRANTY; without even the implied warranty of
4938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4939 # General Public License for more details.
4940 #
4941 # You should have received a copy of the GNU General Public License
4942 # along with this program; if not, write to the Free Software
4943 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4944 #
4945 # As a special exception to the GNU General Public License, if you
4946 # distribute this file as part of a program that contains a
4947 # configuration script generated by Autoconf, you may include it under
4948 # the same distribution terms that you use for the rest of that program.
4949
4950 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4951 Xsed="sed -e s/^X//"
4952
4953 # The HP-UX ksh and POSIX shell print the target directory to stdout
4954 # if CDPATH is set.
4955 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4956
4957 # ### BEGIN LIBTOOL CONFIG
4958
4959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4960
4961 # Shell to use when invoking shell scripts.
4962 SHELL=$lt_SHELL
4963
4964 # Whether or not to build shared libraries.
4965 build_libtool_libs=$enable_shared
4966
4967 # Whether or not to build static libraries.
4968 build_old_libs=$enable_static
4969
4970 # Whether or not to add -lc for building shared libraries.
4971 build_libtool_need_lc=$need_lc
4972
4973 # Whether or not to optimize for fast installation.
4974 fast_install=$enable_fast_install
4975
4976 # The host system.
4977 host_alias=$host_alias
4978 host=$host
4979
4980 # An echo program that does not interpret backslashes.
4981 echo=$lt_echo
4982
4983 # The archiver.
4984 AR=$lt_AR
4985 AR_FLAGS=$lt_AR_FLAGS
4986
4987 # The default C compiler.
4988 CC=$lt_CC
4989
4990 # Is the compiler the GNU C compiler?
4991 with_gcc=$GCC
4992
4993 # The linker used to build libraries.
4994 LD=$lt_LD
4995
4996 # Whether we need hard or soft links.
4997 LN_S=$lt_LN_S
4998
4999 # A BSD-compatible nm program.
5000 NM=$lt_NM
5001
5002 # A symbol stripping program
5003 STRIP=$STRIP
5004
5005 # Used to examine libraries when file_magic_cmd begins "file"
5006 MAGIC_CMD=$MAGIC_CMD
5007
5008 # Used on cygwin: DLL creation program.
5009 DLLTOOL="$DLLTOOL"
5010
5011 # Used on cygwin: object dumper.
5012 OBJDUMP="$OBJDUMP"
5013
5014 # Used on cygwin: assembler.
5015 AS="$AS"
5016
5017 # The name of the directory that contains temporary libtool files.
5018 objdir=$objdir
5019
5020 # How to create reloadable object files.
5021 reload_flag=$lt_reload_flag
5022 reload_cmds=$lt_reload_cmds
5023
5024 # How to pass a linker flag through the compiler.
5025 wl=$lt_wl
5026
5027 # Object file suffix (normally "o").
5028 objext="$ac_objext"
5029
5030 # Old archive suffix (normally "a").
5031 libext="$libext"
5032
5033 # Executable file suffix (normally "").
5034 exeext="$exeext"
5035
5036 # Additional compiler flags for building library objects.
5037 pic_flag=$lt_pic_flag
5038 pic_mode=$pic_mode
5039
5040 # Does compiler simultaneously support -c and -o options?
5041 compiler_c_o=$lt_compiler_c_o
5042
5043 # Can we write directly to a .lo ?
5044 compiler_o_lo=$lt_compiler_o_lo
5045
5046 # Must we lock files when doing compilation ?
5047 need_locks=$lt_need_locks
5048
5049 # Do we need the lib prefix for modules?
5050 need_lib_prefix=$need_lib_prefix
5051
5052 # Do we need a version for libraries?
5053 need_version=$need_version
5054
5055 # Whether dlopen is supported.
5056 dlopen_support=$enable_dlopen
5057
5058 # Whether dlopen of programs is supported.
5059 dlopen_self=$enable_dlopen_self
5060
5061 # Whether dlopen of statically linked programs is supported.
5062 dlopen_self_static=$enable_dlopen_self_static
5063
5064 # Compiler flag to prevent dynamic linking.
5065 link_static_flag=$lt_link_static_flag
5066
5067 # Compiler flag to turn off builtin functions.
5068 no_builtin_flag=$lt_no_builtin_flag
5069
5070 # Compiler flag to allow reflexive dlopens.
5071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5072
5073 # Compiler flag to generate shared objects directly from archives.
5074 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5075
5076 # Compiler flag to generate thread-safe objects.
5077 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5078
5079 # Library versioning type.
5080 version_type=$version_type
5081
5082 # Format of library name prefix.
5083 libname_spec=$lt_libname_spec
5084
5085 # List of archive names.  First name is the real one, the rest are links.
5086 # The last name is the one that the linker finds with -lNAME.
5087 library_names_spec=$lt_library_names_spec
5088
5089 # The coded name of the library, if different from the real name.
5090 soname_spec=$lt_soname_spec
5091
5092 # Commands used to build and install an old-style archive.
5093 RANLIB=$lt_RANLIB
5094 old_archive_cmds=$lt_old_archive_cmds
5095 old_postinstall_cmds=$lt_old_postinstall_cmds
5096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5097
5098 # Create an old-style archive from a shared archive.
5099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5100
5101 # Create a temporary old-style archive to link instead of a shared archive.
5102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5103
5104 # Commands used to build and install a shared archive.
5105 archive_cmds=$lt_archive_cmds
5106 archive_expsym_cmds=$lt_archive_expsym_cmds
5107 postinstall_cmds=$lt_postinstall_cmds
5108 postuninstall_cmds=$lt_postuninstall_cmds
5109
5110 # Commands to strip libraries.
5111 old_striplib=$lt_old_striplib
5112 striplib=$lt_striplib
5113
5114 # Method to check whether dependent libraries are shared objects.
5115 deplibs_check_method=$lt_deplibs_check_method
5116
5117 # Command to use when deplibs_check_method == file_magic.
5118 file_magic_cmd=$lt_file_magic_cmd
5119
5120 # Flag that allows shared libraries with undefined symbols to be built.
5121 allow_undefined_flag=$lt_allow_undefined_flag
5122
5123 # Flag that forces no undefined symbols.
5124 no_undefined_flag=$lt_no_undefined_flag
5125
5126 # Commands used to finish a libtool library installation in a directory.
5127 finish_cmds=$lt_finish_cmds
5128
5129 # Same as above, but a single script fragment to be evaled but not shown.
5130 finish_eval=$lt_finish_eval
5131
5132 # Take the output of nm and produce a listing of raw symbols and C names.
5133 global_symbol_pipe=$lt_global_symbol_pipe
5134
5135 # Transform the output of nm in a proper C declaration
5136 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5137
5138 # Transform the output of nm in a C name address pair
5139 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5140
5141 # This is the shared library runtime path variable.
5142 runpath_var=$runpath_var
5143
5144 # This is the shared library path variable.
5145 shlibpath_var=$shlibpath_var
5146
5147 # Is shlibpath searched before the hard-coded library search path?
5148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5149
5150 # How to hardcode a shared library path into an executable.
5151 hardcode_action=$hardcode_action
5152
5153 # Whether we should hardcode library paths into libraries.
5154 hardcode_into_libs=$hardcode_into_libs
5155
5156 # Flag to hardcode \$libdir into a binary during linking.
5157 # This must work even if \$libdir does not exist.
5158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5159
5160 # Whether we need a single -rpath flag with a separated argument.
5161 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5162
5163 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5164 # resulting binary.
5165 hardcode_direct=$hardcode_direct
5166
5167 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5168 # resulting binary.
5169 hardcode_minus_L=$hardcode_minus_L
5170
5171 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5172 # the resulting binary.
5173 hardcode_shlibpath_var=$hardcode_shlibpath_var
5174
5175 # Variables whose values should be saved in libtool wrapper scripts and
5176 # restored at relink time.
5177 variables_saved_for_relink="$variables_saved_for_relink"
5178
5179 # Whether libtool must link a program against all its dependency libraries.
5180 link_all_deplibs=$link_all_deplibs
5181
5182 # Compile-time system search path for libraries
5183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5184
5185 # Run-time system search path for libraries
5186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5187
5188 # Fix the shell variable \$srcfile for the compiler.
5189 fix_srcfile_path="$fix_srcfile_path"
5190
5191 # Set to yes if exported symbols are required.
5192 always_export_symbols=$always_export_symbols
5193
5194 # The commands to list exported symbols.
5195 export_symbols_cmds=$lt_export_symbols_cmds
5196
5197 # The commands to extract the exported symbol list from a shared archive.
5198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5199
5200 # Symbols that should not be listed in the preloaded symbols.
5201 exclude_expsyms=$lt_exclude_expsyms
5202
5203 # Symbols that must always be exported.
5204 include_expsyms=$lt_include_expsyms
5205
5206 # ### END LIBTOOL CONFIG
5207
5208 __EOF__
5209
5210   case $host_os in
5211   aix3*)
5212     cat <<\EOF >> "${ofile}T"
5213
5214 # AIX sometimes has problems with the GCC collect2 program.  For some
5215 # reason, if we set the COLLECT_NAMES environment variable, the problems
5216 # vanish in a puff of smoke.
5217 if test "X${COLLECT_NAMES+set}" != Xset; then
5218   COLLECT_NAMES=
5219   export COLLECT_NAMES
5220 fi
5221 EOF
5222     ;;
5223   esac
5224
5225   case $host_os in
5226   cygwin* | mingw* | pw32* | os2*)
5227     cat <<'EOF' >> "${ofile}T"
5228       # This is a source program that is used to create dlls on Windows
5229       # Don't remove nor modify the starting and closing comments
5230 # /* ltdll.c starts here */
5231 # #define WIN32_LEAN_AND_MEAN
5232 # #include <windows.h>
5233 # #undef WIN32_LEAN_AND_MEAN
5234 # #include <stdio.h>
5235 #
5236 # #ifndef __CYGWIN__
5237 # #  ifdef __CYGWIN32__
5238 # #    define __CYGWIN__ __CYGWIN32__
5239 # #  endif
5240 # #endif
5241 #
5242 # #ifdef __cplusplus
5243 # extern "C" {
5244 # #endif
5245 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5246 # #ifdef __cplusplus
5247 # }
5248 # #endif
5249 #
5250 # #ifdef __CYGWIN__
5251 # #include <cygwin/cygwin_dll.h>
5252 # DECLARE_CYGWIN_DLL( DllMain );
5253 # #endif
5254 # HINSTANCE __hDllInstance_base;
5255 #
5256 # BOOL APIENTRY
5257 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5258 # {
5259 #   __hDllInstance_base = hInst;
5260 #   return TRUE;
5261 # }
5262 # /* ltdll.c ends here */
5263         # This is a source program that is used to create import libraries
5264         # on Windows for dlls which lack them. Don't remove nor modify the
5265         # starting and closing comments
5266 # /* impgen.c starts here */
5267 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5268 #
5269 #  This file is part of GNU libtool.
5270 #
5271 #  This program is free software; you can redistribute it and/or modify
5272 #  it under the terms of the GNU General Public License as published by
5273 #  the Free Software Foundation; either version 2 of the License, or
5274 #  (at your option) any later version.
5275 #
5276 #  This program is distributed in the hope that it will be useful,
5277 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
5278 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5279 #  GNU General Public License for more details.
5280 #
5281 #  You should have received a copy of the GNU General Public License
5282 #  along with this program; if not, write to the Free Software
5283 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5284 #  */
5285 #
5286 # #include <stdio.h>            /* for printf() */
5287 # #include <unistd.h>           /* for open(), lseek(), read() */
5288 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5289 # #include <string.h>           /* for strdup() */
5290 #
5291 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5292 # #ifndef O_BINARY
5293 # #define O_BINARY 0
5294 # #endif
5295 #
5296 # static unsigned int
5297 # pe_get16 (fd, offset)
5298 #      int fd;
5299 #      int offset;
5300 # {
5301 #   unsigned char b[2];
5302 #   lseek (fd, offset, SEEK_SET);
5303 #   read (fd, b, 2);
5304 #   return b[0] + (b[1]<<8);
5305 # }
5306 #
5307 # static unsigned int
5308 # pe_get32 (fd, offset)
5309 #     int fd;
5310 #     int offset;
5311 # {
5312 #   unsigned char b[4];
5313 #   lseek (fd, offset, SEEK_SET);
5314 #   read (fd, b, 4);
5315 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5316 # }
5317 #
5318 # static unsigned int
5319 # pe_as32 (ptr)
5320 #      void *ptr;
5321 # {
5322 #   unsigned char *b = ptr;
5323 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5324 # }
5325 #
5326 # int
5327 # main (argc, argv)
5328 #     int argc;
5329 #     char *argv[];
5330 # {
5331 #     int dll;
5332 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5333 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
5334 #     unsigned long name_rvas, nexp;
5335 #     unsigned char *expdata, *erva;
5336 #     char *filename, *dll_name;
5337 #
5338 #     filename = argv[1];
5339 #
5340 #     dll = open(filename, O_RDONLY|O_BINARY);
5341 #     if (dll < 1)
5342 #       return 1;
5343 #
5344 #     dll_name = filename;
5345 #
5346 #     for (i=0; filename[i]; i++)
5347 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5348 #           dll_name = filename + i +1;
5349 #
5350 #     pe_header_offset = pe_get32 (dll, 0x3c);
5351 #     opthdr_ofs = pe_header_offset + 4 + 20;
5352 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5353 #
5354 #     if (num_entries < 1) /* no exports */
5355 #       return 1;
5356 #
5357 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5358 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
5359 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5360 #     secptr = (pe_header_offset + 4 + 20 +
5361 #             pe_get16 (dll, pe_header_offset + 4 + 16));
5362 #
5363 #     expptr = 0;
5364 #     for (i = 0; i < nsections; i++)
5365 #     {
5366 #       char sname[8];
5367 #       unsigned long secptr1 = secptr + 40 * i;
5368 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5369 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5370 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5371 #       lseek(dll, secptr1, SEEK_SET);
5372 #       read(dll, sname, 8);
5373 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5374 #       {
5375 #           expptr = fptr + (export_rva - vaddr);
5376 #           if (export_rva + export_size > vaddr + vsize)
5377 #               export_size = vsize - (export_rva - vaddr);
5378 #           break;
5379 #       }
5380 #     }
5381 #
5382 #     expdata = (unsigned char*)malloc(export_size);
5383 #     lseek (dll, expptr, SEEK_SET);
5384 #     read (dll, expdata, export_size);
5385 #     erva = expdata - export_rva;
5386 #
5387 #     nexp = pe_as32 (expdata+24);
5388 #     name_rvas = pe_as32 (expdata+32);
5389 #
5390 #     printf ("EXPORTS\n");
5391 #     for (i = 0; i<nexp; i++)
5392 #     {
5393 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5394 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5395 #     }
5396 #
5397 #     return 0;
5398 # }
5399 # /* impgen.c ends here */
5400
5401 EOF
5402     ;;
5403   esac
5404
5405   # We use sed instead of cat because bash on DJGPP gets confused if
5406   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5407   # text mode, it properly converts lines to CR/LF.  This bash problem
5408   # is reportedly fixed, but why not run on old versions too?
5409   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5410
5411   mv -f "${ofile}T" "$ofile" || \
5412     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5413   chmod +x "$ofile"
5414 fi
5415 ##
5416 ## END FIXME
5417
5418
5419
5420
5421
5422 # This can be used to rebuild libtool when needed
5423 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5424
5425 # Always use our own libtool.
5426 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5427
5428 # Prevent multiple expansion
5429
5430
5431     EXTLIB='la'
5432     EXTOBJ='lo'
5433     LIBTOOL='$(top)/libtool'
5434     LIBTOOLCC='$(top)/libtool --mode=compile'
5435     LIBTOOLLD='$(top)/libtool --mode=link'
5436     CCOUTPUT='-c -o $@ $<'
5437 else
5438     
5439 # Make sure we can run config.sub.
5440 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5441 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5442 fi
5443
5444 echo $ac_n "checking host system type""... $ac_c" 1>&6
5445 echo "configure:5446: checking host system type" >&5
5446
5447 host_alias=$host
5448 case "$host_alias" in
5449 NONE)
5450   case $nonopt in
5451   NONE)
5452     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5453     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5454     fi ;;
5455   *) host_alias=$nonopt ;;
5456   esac ;;
5457 esac
5458
5459 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5460 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5461 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5462 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5463 echo "$ac_t""$host" 1>&6
5464
5465     EXTLIB='a'
5466     EXTOBJ='o'
5467     LIBTOOL=''
5468     LIBTOOLCC=''
5469     LIBTOOLLD=''
5470     if test x"$compiler_c_o" = xyes ; then
5471         CCOUTPUT='-c -o $@ $<'
5472     else
5473         CCOUTPUT='-c $< && if test x"$(@F)" != x"$@" ; then mv $(@F) $@ ; fi'
5474     fi
5475     
5476 fi
5477
5478
5479
5480
5481
5482
5483
5484
5485 # Check whether --with-control-dir or --without-control-dir was given.
5486 if test "${with_control_dir+set}" = set; then
5487   withval="$with_control_dir"
5488   CONTROLDIR=$with_control_dir
5489 else
5490   CONTROLDIR=$prefix/bin/control
5491 fi
5492
5493
5494 # Check whether --with-db-dir or --without-db-dir was given.
5495 if test "${with_db_dir+set}" = set; then
5496   withval="$with_db_dir"
5497   DBDIR=$with_db_dir
5498 else
5499   DBDIR=$prefix/db
5500 fi
5501
5502
5503 # Check whether --with-doc-dir or --without-doc-dir was given.
5504 if test "${with_doc_dir+set}" = set; then
5505   withval="$with_doc_dir"
5506   DOCDIR=$with_doc_dir
5507 else
5508   DOCDIR=$prefix/doc
5509 fi
5510
5511
5512 # Check whether --with-etc-dir or --without-etc-dir was given.
5513 if test "${with_etc_dir+set}" = set; then
5514   withval="$with_etc_dir"
5515   ETCDIR=$with_etc_dir
5516 else
5517   ETCDIR=$prefix/etc
5518 fi
5519
5520
5521 # Check whether --with-filter-dir or --without-filter-dir was given.
5522 if test "${with_filter_dir+set}" = set; then
5523   withval="$with_filter_dir"
5524   FILTERDIR=$with_filter_dir
5525 else
5526   FILTERDIR=$prefix/bin/filter
5527 fi
5528
5529
5530 # Check whether --with-lib-dir or --without-lib-dir was given.
5531 if test "${with_lib_dir+set}" = set; then
5532   withval="$with_lib_dir"
5533   LIBDIR=$with_lib_dir
5534 else
5535   LIBDIR=$prefix/lib
5536 fi
5537
5538
5539 # Check whether --with-log-dir or --without-log-dir was given.
5540 if test "${with_log_dir+set}" = set; then
5541   withval="$with_log_dir"
5542   LOGDIR=$with_log_dir
5543 else
5544   LOGDIR=$prefix/log
5545 fi
5546
5547
5548 # Check whether --with-run-dir or --without-run-dir was given.
5549 if test "${with_run_dir+set}" = set; then
5550   withval="$with_run_dir"
5551   RUNDIR=$with_run_dir
5552 else
5553   RUNDIR=$prefix/run
5554 fi
5555
5556
5557 # Check whether --with-spool-dir or --without-spool-dir was given.
5558 if test "${with_spool_dir+set}" = set; then
5559   withval="$with_spool_dir"
5560   SPOOLDIR=$with_spool_dir
5561 else
5562   SPOOLDIR=$prefix/spool
5563 fi
5564
5565
5566 # Check whether --with-tmp-dir or --without-tmp-dir was given.
5567 if test "${with_tmp_dir+set}" = set; then
5568   withval="$with_tmp_dir"
5569   tmpdir=$with_tmp_dir
5570 else
5571   tmpdir=$prefix/tmp
5572 fi
5573
5574
5575
5576 # Check whether --with-syslog-facility or --without-syslog-facility was given.
5577 if test "${with_syslog_facility+set}" = set; then
5578   withval="$with_syslog_facility"
5579   SYSLOG_FACILITY=$with_syslog_facility
5580 else
5581   SYSLOG_FACILITY=none
5582 fi
5583
5584
5585
5586
5587 # Check whether --with-news-user or --without-news-user was given.
5588 if test "${with_news_user+set}" = set; then
5589   withval="$with_news_user"
5590   NEWSUSER=$with_news_user
5591 else
5592   NEWSUSER=news
5593 fi
5594
5595
5596 cat >> confdefs.h <<EOF
5597 #define NEWSUSER "$NEWSUSER"
5598 EOF
5599
5600 # Check whether --with-news-group or --without-news-group was given.
5601 if test "${with_news_group+set}" = set; then
5602   withval="$with_news_group"
5603   NEWSGRP=$with_news_group
5604 else
5605   NEWSGRP=news
5606 fi
5607
5608
5609 cat >> confdefs.h <<EOF
5610 #define NEWSGRP "$NEWSGRP"
5611 EOF
5612
5613 # Check whether --with-news-master or --without-news-master was given.
5614 if test "${with_news_master+set}" = set; then
5615   withval="$with_news_master"
5616   NEWSMASTER=$with_news_master
5617 else
5618   NEWSMASTER=usenet
5619 fi
5620
5621
5622 cat >> confdefs.h <<EOF
5623 #define NEWSMASTER "$NEWSMASTER"
5624 EOF
5625
5626
5627 NEWSUMASK=02
5628 FILEMODE=0664
5629 DIRMODE=0775
5630 RUNDIRMODE=0770
5631 # Check whether --with-news-umask or --without-news-umask was given.
5632 if test "${with_news_umask+set}" = set; then
5633   withval="$with_news_umask"
5634   with_news_umask=`echo "$with_news_umask" | sed 's/^0*//'`
5635     if test "x$with_news_umask" = x22 ; then
5636         NEWSUMASK=022
5637         FILEMODE=0644
5638         DIRMODE=0755
5639         RUNDIRMODE=0750
5640     else
5641         if test "x$with_news_umask" != x2 ; then
5642             { echo "configure: error: Valid umasks are 02 or 022" 1>&2; exit 1; }
5643         fi
5644     fi
5645 fi
5646
5647
5648
5649
5650
5651 cat >> confdefs.h <<EOF
5652 #define ARTFILE_MODE $FILEMODE
5653 EOF
5654
5655 cat >> confdefs.h <<EOF
5656 #define BATCHFILE_MODE $FILEMODE
5657 EOF
5658
5659 cat >> confdefs.h <<EOF
5660 #define GROUPDIR_MODE $DIRMODE
5661 EOF
5662
5663 cat >> confdefs.h <<EOF
5664 #define NEWSUMASK $NEWSUMASK
5665 EOF
5666
5667
5668 INEWSMODE=0550
5669 # Check whether --enable-setgid-inews or --disable-setgid-inews was given.
5670 if test "${enable_setgid_inews+set}" = set; then
5671   enableval="$enable_setgid_inews"
5672   if test "x$enableval" = xyes ; then
5673         INEWSMODE=02555
5674     fi
5675 fi
5676
5677
5678
5679 RNEWSGRP=$NEWSGRP
5680 RNEWSMODE=0500
5681 # Check whether --enable-uucp-rnews or --disable-uucp-rnews was given.
5682 if test "${enable_uucp_rnews+set}" = set; then
5683   enableval="$enable_uucp_rnews"
5684   if test "x$enableval" = xyes ; then
5685         RNEWSGRP=uucp
5686         RNEWSMODE=04550
5687     fi
5688 fi
5689
5690
5691
5692
5693 # Check whether --with-log-compress or --without-log-compress was given.
5694 if test "${with_log_compress+set}" = set; then
5695   withval="$with_log_compress"
5696   LOG_COMPRESS=$with_log_compress
5697 else
5698   LOG_COMPRESS=gzip
5699 fi
5700
5701 case "$LOG_COMPRESS" in
5702 bzip2) LOG_COMPRESSEXT=".bz2" ;;
5703 gzip)  LOG_COMPRESSEXT=".gz"  ;;
5704 *)     LOG_COMPRESSEXT=".Z"   ;;
5705 esac
5706
5707
5708
5709 # Check whether --with-innd-port or --without-innd-port was given.
5710 if test "${with_innd_port+set}" = set; then
5711   withval="$with_innd_port"
5712   cat >> confdefs.h <<EOF
5713 #define INND_PORT $with_innd_port
5714 EOF
5715
5716 fi
5717
5718
5719 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5720 if test "${enable_ipv6+set}" = set; then
5721   enableval="$enable_ipv6"
5722   if test "x$enableval" = xyes ; then
5723         inn_enable_ipv6_tests=yes
5724         cat >> confdefs.h <<\EOF
5725 #define HAVE_INET6 1
5726 EOF
5727
5728     fi
5729 fi
5730
5731
5732 # Check whether --with-max-sockets or --without-max-sockets was given.
5733 if test "${with_max_sockets+set}" = set; then
5734   withval="$with_max_sockets"
5735   :
5736 else
5737   with_max_sockets=15
5738 fi
5739
5740 cat >> confdefs.h <<EOF
5741 #define MAX_SOCKETS $with_max_sockets
5742 EOF
5743
5744
5745 # Check whether --enable-tagged-hash or --disable-tagged-hash was given.
5746 if test "${enable_tagged_hash+set}" = set; then
5747   enableval="$enable_tagged_hash"
5748   if test "x$enableval" = xyes ; then
5749         DO_DBZ_TAGGED_HASH=DO
5750         cat >> confdefs.h <<\EOF
5751 #define DO_TAGGED_HASH 1
5752 EOF
5753
5754     else
5755         DO_DBZ_TAGGED_HASH=DONT
5756     fi
5757 fi
5758
5759
5760
5761 inn_enable_keywords=0
5762 # Check whether --enable-keywords or --disable-keywords was given.
5763 if test "${enable_keywords+set}" = set; then
5764   enableval="$enable_keywords"
5765   if test x"$enableval" = xyes ; then
5766         inn_enable_keywords=1
5767     fi
5768 fi
5769
5770 cat >> confdefs.h <<EOF
5771 #define DO_KEYWORDS $inn_enable_keywords
5772 EOF
5773
5774
5775 # Check whether --enable-largefiles or --disable-largefiles was given.
5776 if test "${enable_largefiles+set}" = set; then
5777   enableval="$enable_largefiles"
5778   case "${enableval}" in
5779     yes) inn_enable_largefiles=yes
5780          if test x"$DO_DBZ_TAGGED_HASH" = xDO ; then
5781 { echo "configure: error: --enable-tagged-hash conflicts with --enable-largefiles." 1>&2; exit 1; }
5782          fi ;;
5783     no)  inn_enable_largefiles=no ;;
5784     *)   { echo "configure: error: invalid argument to --enable-largefiles" 1>&2; exit 1; } ;;
5785     esac
5786 fi
5787
5788
5789 # Check whether --with-sendmail or --without-sendmail was given.
5790 if test "${with_sendmail+set}" = set; then
5791   withval="$with_sendmail"
5792   SENDMAIL=$with_sendmail
5793 fi
5794
5795
5796 # Check whether --with-kerberos or --without-kerberos was given.
5797 if test "${with_kerberos+set}" = set; then
5798   withval="$with_kerberos"
5799   if test x"$with_kerberos" != xno ; then
5800          KRB5_LDFLAGS="-L$with_kerberos/lib"
5801          KRB5_INC="-I$with_kerberos/include"
5802      fi
5803 fi
5804
5805
5806 # Check whether --with-perl or --without-perl was given.
5807 if test "${with_perl+set}" = set; then
5808   withval="$with_perl"
5809   case "${withval}" in
5810     yes) DO_PERL=DO
5811          cat >> confdefs.h <<\EOF
5812 #define DO_PERL 1
5813 EOF
5814
5815          ;;
5816     no)  DO_PERL=DONT ;;
5817     *)   { echo "configure: error: invalid argument to --with-perl" 1>&2; exit 1; } ;;
5818     esac
5819 else
5820   DO_PERL=DONT
5821 fi
5822
5823
5824 # Check whether --with-python or --without-python was given.
5825 if test "${with_python+set}" = set; then
5826   withval="$with_python"
5827   case "${withval}" in
5828     yes) DO_PYTHON=define
5829          cat >> confdefs.h <<\EOF
5830 #define DO_PYTHON 1
5831 EOF
5832
5833          ;;
5834     no)  DO_PYTHON=DONT ;;
5835     *)   { echo "configure: error: invalid argument to --with-python" 1>&2; exit 1; } ;;
5836     esac
5837 else
5838   DO_PYTHON=DONT
5839 fi
5840
5841
5842 HOSTNAME=server.example.net
5843
5844
5845 if test $ac_cv_prog_gcc = yes; then
5846     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5847 echo "configure:5848: checking whether ${CC-cc} needs -traditional" >&5
5848 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5849   echo $ac_n "(cached) $ac_c" 1>&6
5850 else
5851     ac_pattern="Autoconf.*'x'"
5852   cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 #include <sgtty.h>
5856 Autoconf TIOCGETP
5857 EOF
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859   egrep "$ac_pattern" >/dev/null 2>&1; then
5860   rm -rf conftest*
5861   ac_cv_prog_gcc_traditional=yes
5862 else
5863   rm -rf conftest*
5864   ac_cv_prog_gcc_traditional=no
5865 fi
5866 rm -f conftest*
5867
5868
5869   if test $ac_cv_prog_gcc_traditional = no; then
5870     cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 #include <termio.h>
5874 Autoconf TCGETA
5875 EOF
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877   egrep "$ac_pattern" >/dev/null 2>&1; then
5878   rm -rf conftest*
5879   ac_cv_prog_gcc_traditional=yes
5880 fi
5881 rm -f conftest*
5882
5883   fi
5884 fi
5885
5886 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5887   if test $ac_cv_prog_gcc_traditional = yes; then
5888     CC="$CC -traditional"
5889   fi
5890 fi
5891
5892 # Extract the first word of "flex", so it can be a program name with args.
5893 set dummy flex; ac_word=$2
5894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_word" >&5
5896 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
5897   echo $ac_n "(cached) $ac_c" 1>&6
5898 else
5899   if test -n "$LEX"; then
5900   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5901 else
5902   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5903   ac_dummy="$PATH"
5904   for ac_dir in $ac_dummy; do
5905     test -z "$ac_dir" && ac_dir=.
5906     if test -f $ac_dir/$ac_word; then
5907       ac_cv_prog_LEX="flex"
5908       break
5909     fi
5910   done
5911   IFS="$ac_save_ifs"
5912   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
5913 fi
5914 fi
5915 LEX="$ac_cv_prog_LEX"
5916 if test -n "$LEX"; then
5917   echo "$ac_t""$LEX" 1>&6
5918 else
5919   echo "$ac_t""no" 1>&6
5920 fi
5921
5922 if test -z "$LEXLIB"
5923 then
5924   case "$LEX" in
5925   flex*) ac_lib=fl ;;
5926   *) ac_lib=l ;;
5927   esac
5928   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
5929 echo "configure:5930: checking for yywrap in -l$ac_lib" >&5
5930 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
5931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5932   echo $ac_n "(cached) $ac_c" 1>&6
5933 else
5934   ac_save_LIBS="$LIBS"
5935 LIBS="-l$ac_lib  $LIBS"
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error.  */
5940 /* We use char because int might match the return type of a gcc2
5941     builtin and then its argument prototype would still apply.  */
5942 char yywrap();
5943
5944 int main() {
5945 yywrap()
5946 ; return 0; }
5947 EOF
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949   rm -rf conftest*
5950   eval "ac_cv_lib_$ac_lib_var=yes"
5951 else
5952   echo "configure: failed program was:" >&5
5953   cat conftest.$ac_ext >&5
5954   rm -rf conftest*
5955   eval "ac_cv_lib_$ac_lib_var=no"
5956 fi
5957 rm -f conftest*
5958 LIBS="$ac_save_LIBS"
5959
5960 fi
5961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5962   echo "$ac_t""yes" 1>&6
5963   LEXLIB="-l$ac_lib"
5964 else
5965   echo "$ac_t""no" 1>&6
5966 fi
5967
5968 fi
5969
5970 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
5971 echo "configure:5972: checking whether ${MAKE-make} sets \${MAKE}" >&5
5972 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
5973 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
5974   echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976   cat > conftestmake <<\EOF
5977 all:
5978         @echo 'ac_maketemp="${MAKE}"'
5979 EOF
5980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5981 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
5982 if test -n "$ac_maketemp"; then
5983   eval ac_cv_prog_make_${ac_make}_set=yes
5984 else
5985   eval ac_cv_prog_make_${ac_make}_set=no
5986 fi
5987 rm -f conftestmake
5988 fi
5989 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5990   echo "$ac_t""yes" 1>&6
5991   SET_MAKE=
5992 else
5993   echo "$ac_t""no" 1>&6
5994   SET_MAKE="MAKE=${MAKE-make}"
5995 fi
5996
5997 # Extract the first word of "ranlib", so it can be a program name with args.
5998 set dummy ranlib; ac_word=$2
5999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_word" >&5
6001 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6002   echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004   if test -n "$RANLIB"; then
6005   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6006 else
6007   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6008   ac_dummy="$PATH"
6009   for ac_dir in $ac_dummy; do
6010     test -z "$ac_dir" && ac_dir=.
6011     if test -f $ac_dir/$ac_word; then
6012       ac_cv_prog_RANLIB="ranlib"
6013       break
6014     fi
6015   done
6016   IFS="$ac_save_ifs"
6017   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6018 fi
6019 fi
6020 RANLIB="$ac_cv_prog_RANLIB"
6021 if test -n "$RANLIB"; then
6022   echo "$ac_t""$RANLIB" 1>&6
6023 else
6024   echo "$ac_t""no" 1>&6
6025 fi
6026
6027 for ac_prog in 'bison -y' byacc
6028 do
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_word" >&5
6033 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6034   echo $ac_n "(cached) $ac_c" 1>&6
6035 else
6036   if test -n "$YACC"; then
6037   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6038 else
6039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6040   ac_dummy="$PATH"
6041   for ac_dir in $ac_dummy; do
6042     test -z "$ac_dir" && ac_dir=.
6043     if test -f $ac_dir/$ac_word; then
6044       ac_cv_prog_YACC="$ac_prog"
6045       break
6046     fi
6047   done
6048   IFS="$ac_save_ifs"
6049 fi
6050 fi
6051 YACC="$ac_cv_prog_YACC"
6052 if test -n "$YACC"; then
6053   echo "$ac_t""$YACC" 1>&6
6054 else
6055   echo "$ac_t""no" 1>&6
6056 fi
6057
6058 test -n "$YACC" && break
6059 done
6060 test -n "$YACC" || YACC="yacc"
6061
6062
6063 case "$CPP" in
6064 *-traditional-cpp*)
6065     CFLAGS="-traditional-cpp $CFLAGS"
6066     ;;
6067 esac
6068
6069 case "$host" in
6070
6071 *hpux*)
6072     if test x"$GCC" != xyes ; then
6073                 CFLAGS="$CFLAGS -Ae"
6074
6075                 case "$CFLAGS" in
6076         *-g*)
6077             LDFLAGS="$LDFLAGS -g"
6078             ;;
6079         esac
6080     fi
6081     ;;
6082
6083 *darwin*)
6084     LDFLAGS="$LDFLAGS -multiply_defined suppress"
6085     ;;
6086
6087 *UnixWare*|*unixware*|*-sco3*)
6088     if test x"$GCC" != xyes ; then
6089         CFLAGS="$CFLAGS -Kalloca"
6090     fi
6091 esac
6092   
6093
6094 # Extract the first word of "ctags", so it can be a program name with args.
6095 set dummy ctags; ac_word=$2
6096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_word" >&5
6098 if eval "test \"`echo '$''{'ac_cv_path_CTAGS'+set}'`\" = set"; then
6099   echo $ac_n "(cached) $ac_c" 1>&6
6100 else
6101   case "$CTAGS" in
6102   /*)
6103   ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a path.
6104   ;;
6105   ?:/*)                  
6106   ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a dos path.
6107   ;;
6108   *)
6109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6110   ac_dummy="$PATH"
6111   for ac_dir in $ac_dummy; do 
6112     test -z "$ac_dir" && ac_dir=.
6113     if test -f $ac_dir/$ac_word; then
6114       ac_cv_path_CTAGS="$ac_dir/$ac_word"
6115       break
6116     fi
6117   done
6118   IFS="$ac_save_ifs"
6119   test -z "$ac_cv_path_CTAGS" && ac_cv_path_CTAGS="echo"
6120   ;;
6121 esac
6122 fi
6123 CTAGS="$ac_cv_path_CTAGS"
6124 if test -n "$CTAGS"; then
6125   echo "$ac_t""$CTAGS" 1>&6
6126 else
6127   echo "$ac_t""no" 1>&6
6128 fi
6129
6130 if test x"$CTAGS" != xecho ; then
6131     CTAGS="$CTAGS -t -w"
6132 fi
6133
6134
6135
6136 # Extract the first word of "awk", so it can be a program name with args.
6137 set dummy awk; ac_word=$2
6138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6139 echo "configure:6140: checking for $ac_word" >&5
6140 if eval "test \"`echo '$''{'ac_cv_path__PATH_AWK'+set}'`\" = set"; then
6141   echo $ac_n "(cached) $ac_c" 1>&6
6142 else
6143   case "$_PATH_AWK" in
6144   /*)
6145   ac_cv_path__PATH_AWK="$_PATH_AWK" # Let the user override the test with a path.
6146   ;;
6147   ?:/*)                  
6148   ac_cv_path__PATH_AWK="$_PATH_AWK" # Let the user override the test with a dos path.
6149   ;;
6150   *)
6151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6152   ac_dummy="$PATH"
6153   for ac_dir in $ac_dummy; do 
6154     test -z "$ac_dir" && ac_dir=.
6155     if test -f $ac_dir/$ac_word; then
6156       ac_cv_path__PATH_AWK="$ac_dir/$ac_word"
6157       break
6158     fi
6159   done
6160   IFS="$ac_save_ifs"
6161   ;;
6162 esac
6163 fi
6164 _PATH_AWK="$ac_cv_path__PATH_AWK"
6165 if test -n "$_PATH_AWK"; then
6166   echo "$ac_t""$_PATH_AWK" 1>&6
6167 else
6168   echo "$ac_t""no" 1>&6
6169 fi
6170
6171 if test -z "${_PATH_AWK}" ; then
6172     { echo "configure: error: awk was not found in path and is required" 1>&2; exit 1; }
6173 fi
6174 # Extract the first word of "egrep", so it can be a program name with args.
6175 set dummy egrep; ac_word=$2
6176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_word" >&5
6178 if eval "test \"`echo '$''{'ac_cv_path__PATH_EGREP'+set}'`\" = set"; then
6179   echo $ac_n "(cached) $ac_c" 1>&6
6180 else
6181   case "$_PATH_EGREP" in
6182   /*)
6183   ac_cv_path__PATH_EGREP="$_PATH_EGREP" # Let the user override the test with a path.
6184   ;;
6185   ?:/*)                  
6186   ac_cv_path__PATH_EGREP="$_PATH_EGREP" # Let the user override the test with a dos path.
6187   ;;
6188   *)
6189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6190   ac_dummy="$PATH"
6191   for ac_dir in $ac_dummy; do 
6192     test -z "$ac_dir" && ac_dir=.
6193     if test -f $ac_dir/$ac_word; then
6194       ac_cv_path__PATH_EGREP="$ac_dir/$ac_word"
6195       break
6196     fi
6197   done
6198   IFS="$ac_save_ifs"
6199   ;;
6200 esac
6201 fi
6202 _PATH_EGREP="$ac_cv_path__PATH_EGREP"
6203 if test -n "$_PATH_EGREP"; then
6204   echo "$ac_t""$_PATH_EGREP" 1>&6
6205 else
6206   echo "$ac_t""no" 1>&6
6207 fi
6208
6209 if test -z "${_PATH_EGREP}" ; then
6210     { echo "configure: error: egrep was not found in path and is required" 1>&2; exit 1; }
6211 fi
6212 # Extract the first word of "perl", so it can be a program name with args.
6213 set dummy perl; ac_word=$2
6214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_word" >&5
6216 if eval "test \"`echo '$''{'ac_cv_path__PATH_PERL'+set}'`\" = set"; then
6217   echo $ac_n "(cached) $ac_c" 1>&6
6218 else
6219   case "$_PATH_PERL" in
6220   /*)
6221   ac_cv_path__PATH_PERL="$_PATH_PERL" # Let the user override the test with a path.
6222   ;;
6223   ?:/*)                  
6224   ac_cv_path__PATH_PERL="$_PATH_PERL" # Let the user override the test with a dos path.
6225   ;;
6226   *)
6227   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6228   ac_dummy="$PATH"
6229   for ac_dir in $ac_dummy; do 
6230     test -z "$ac_dir" && ac_dir=.
6231     if test -f $ac_dir/$ac_word; then
6232       ac_cv_path__PATH_PERL="$ac_dir/$ac_word"
6233       break
6234     fi
6235   done
6236   IFS="$ac_save_ifs"
6237   ;;
6238 esac
6239 fi
6240 _PATH_PERL="$ac_cv_path__PATH_PERL"
6241 if test -n "$_PATH_PERL"; then
6242   echo "$ac_t""$_PATH_PERL" 1>&6
6243 else
6244   echo "$ac_t""no" 1>&6
6245 fi
6246
6247 if test -z "${_PATH_PERL}" ; then
6248     { echo "configure: error: perl was not found in path and is required" 1>&2; exit 1; }
6249 fi
6250 # Extract the first word of "sh", so it can be a program name with args.
6251 set dummy sh; ac_word=$2
6252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_word" >&5
6254 if eval "test \"`echo '$''{'ac_cv_path__PATH_SH'+set}'`\" = set"; then
6255   echo $ac_n "(cached) $ac_c" 1>&6
6256 else
6257   case "$_PATH_SH" in
6258   /*)
6259   ac_cv_path__PATH_SH="$_PATH_SH" # Let the user override the test with a path.
6260   ;;
6261   ?:/*)                  
6262   ac_cv_path__PATH_SH="$_PATH_SH" # Let the user override the test with a dos path.
6263   ;;
6264   *)
6265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6266   ac_dummy="$PATH"
6267   for ac_dir in $ac_dummy; do 
6268     test -z "$ac_dir" && ac_dir=.
6269     if test -f $ac_dir/$ac_word; then
6270       ac_cv_path__PATH_SH="$ac_dir/$ac_word"
6271       break
6272     fi
6273   done
6274   IFS="$ac_save_ifs"
6275   ;;
6276 esac
6277 fi
6278 _PATH_SH="$ac_cv_path__PATH_SH"
6279 if test -n "$_PATH_SH"; then
6280   echo "$ac_t""$_PATH_SH" 1>&6
6281 else
6282   echo "$ac_t""no" 1>&6
6283 fi
6284
6285 if test -z "${_PATH_SH}" ; then
6286     { echo "configure: error: sh was not found in path and is required" 1>&2; exit 1; }
6287 fi
6288 # Extract the first word of "sed", so it can be a program name with args.
6289 set dummy sed; ac_word=$2
6290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_word" >&5
6292 if eval "test \"`echo '$''{'ac_cv_path__PATH_SED'+set}'`\" = set"; then
6293   echo $ac_n "(cached) $ac_c" 1>&6
6294 else
6295   case "$_PATH_SED" in
6296   /*)
6297   ac_cv_path__PATH_SED="$_PATH_SED" # Let the user override the test with a path.
6298   ;;
6299   ?:/*)                  
6300   ac_cv_path__PATH_SED="$_PATH_SED" # Let the user override the test with a dos path.
6301   ;;
6302   *)
6303   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6304   ac_dummy="$PATH"
6305   for ac_dir in $ac_dummy; do 
6306     test -z "$ac_dir" && ac_dir=.
6307     if test -f $ac_dir/$ac_word; then
6308       ac_cv_path__PATH_SED="$ac_dir/$ac_word"
6309       break
6310     fi
6311   done
6312   IFS="$ac_save_ifs"
6313   ;;
6314 esac
6315 fi
6316 _PATH_SED="$ac_cv_path__PATH_SED"
6317 if test -n "$_PATH_SED"; then
6318   echo "$ac_t""$_PATH_SED" 1>&6
6319 else
6320   echo "$ac_t""no" 1>&6
6321 fi
6322
6323 if test -z "${_PATH_SED}" ; then
6324     { echo "configure: error: sed was not found in path and is required" 1>&2; exit 1; }
6325 fi
6326 # Extract the first word of "sort", so it can be a program name with args.
6327 set dummy sort; ac_word=$2
6328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_word" >&5
6330 if eval "test \"`echo '$''{'ac_cv_path__PATH_SORT'+set}'`\" = set"; then
6331   echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333   case "$_PATH_SORT" in
6334   /*)
6335   ac_cv_path__PATH_SORT="$_PATH_SORT" # Let the user override the test with a path.
6336   ;;
6337   ?:/*)                  
6338   ac_cv_path__PATH_SORT="$_PATH_SORT" # Let the user override the test with a dos path.
6339   ;;
6340   *)
6341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6342   ac_dummy="$PATH"
6343   for ac_dir in $ac_dummy; do 
6344     test -z "$ac_dir" && ac_dir=.
6345     if test -f $ac_dir/$ac_word; then
6346       ac_cv_path__PATH_SORT="$ac_dir/$ac_word"
6347       break
6348     fi
6349   done
6350   IFS="$ac_save_ifs"
6351   ;;
6352 esac
6353 fi
6354 _PATH_SORT="$ac_cv_path__PATH_SORT"
6355 if test -n "$_PATH_SORT"; then
6356   echo "$ac_t""$_PATH_SORT" 1>&6
6357 else
6358   echo "$ac_t""no" 1>&6
6359 fi
6360
6361 if test -z "${_PATH_SORT}" ; then
6362     { echo "configure: error: sort was not found in path and is required" 1>&2; exit 1; }
6363 fi
6364 for ac_prog in uux
6365 do
6366 # Extract the first word of "$ac_prog", so it can be a program name with args.
6367 set dummy $ac_prog; ac_word=$2
6368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_word" >&5
6370 if eval "test \"`echo '$''{'ac_cv_path__PATH_UUX'+set}'`\" = set"; then
6371   echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373   case "$_PATH_UUX" in
6374   /*)
6375   ac_cv_path__PATH_UUX="$_PATH_UUX" # Let the user override the test with a path.
6376   ;;
6377   ?:/*)                  
6378   ac_cv_path__PATH_UUX="$_PATH_UUX" # Let the user override the test with a dos path.
6379   ;;
6380   *)
6381   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6382   ac_dummy="$PATH"
6383   for ac_dir in $ac_dummy; do 
6384     test -z "$ac_dir" && ac_dir=.
6385     if test -f $ac_dir/$ac_word; then
6386       ac_cv_path__PATH_UUX="$ac_dir/$ac_word"
6387       break
6388     fi
6389   done
6390   IFS="$ac_save_ifs"
6391   ;;
6392 esac
6393 fi
6394 _PATH_UUX="$ac_cv_path__PATH_UUX"
6395 if test -n "$_PATH_UUX"; then
6396   echo "$ac_t""$_PATH_UUX" 1>&6
6397 else
6398   echo "$ac_t""no" 1>&6
6399 fi
6400
6401 test -n "$_PATH_UUX" && break
6402 done
6403 test -n "$_PATH_UUX" || _PATH_UUX="uux"
6404
6405
6406 inn_perl_command='print $]'
6407
6408
6409 echo $ac_n "checking for Perl version""... $ac_c" 1>&6
6410 echo "configure:6411: checking for Perl version" >&5
6411 if eval "test \"`echo '$''{'inn_cv_perl_version'+set}'`\" = set"; then
6412   echo $ac_n "(cached) $ac_c" 1>&6
6413 else
6414   if $_PATH_PERL -e 'require 5.004_03;' > /dev/null 2>&1 ; then
6415     inn_cv_perl_version=`$_PATH_PERL -e "$inn_perl_command"`
6416 else
6417     { echo "configure: error: Perl 5.004_03 or greater is required" 1>&2; exit 1; }
6418 fi
6419 fi
6420
6421 echo "$ac_t""$inn_cv_perl_version" 1>&6
6422
6423 pgpverify=true
6424 for ac_prog in gpgv
6425 do
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_word" >&5
6430 if eval "test \"`echo '$''{'ac_cv_path_PATH_GPGV'+set}'`\" = set"; then
6431   echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433   case "$PATH_GPGV" in
6434   /*)
6435   ac_cv_path_PATH_GPGV="$PATH_GPGV" # Let the user override the test with a path.
6436   ;;
6437   ?:/*)                  
6438   ac_cv_path_PATH_GPGV="$PATH_GPGV" # Let the user override the test with a dos path.
6439   ;;
6440   *)
6441   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6442   ac_dummy="$PATH"
6443   for ac_dir in $ac_dummy; do 
6444     test -z "$ac_dir" && ac_dir=.
6445     if test -f $ac_dir/$ac_word; then
6446       ac_cv_path_PATH_GPGV="$ac_dir/$ac_word"
6447       break
6448     fi
6449   done
6450   IFS="$ac_save_ifs"
6451   ;;
6452 esac
6453 fi
6454 PATH_GPGV="$ac_cv_path_PATH_GPGV"
6455 if test -n "$PATH_GPGV"; then
6456   echo "$ac_t""$PATH_GPGV" 1>&6
6457 else
6458   echo "$ac_t""no" 1>&6
6459 fi
6460
6461 test -n "$PATH_GPGV" && break
6462 done
6463
6464 for ac_prog in pgpv pgp pgpgpg
6465 do
6466 # Extract the first word of "$ac_prog", so it can be a program name with args.
6467 set dummy $ac_prog; ac_word=$2
6468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_word" >&5
6470 if eval "test \"`echo '$''{'ac_cv_path__PATH_PGP'+set}'`\" = set"; then
6471   echo $ac_n "(cached) $ac_c" 1>&6
6472 else
6473   case "$_PATH_PGP" in
6474   /*)
6475   ac_cv_path__PATH_PGP="$_PATH_PGP" # Let the user override the test with a path.
6476   ;;
6477   ?:/*)                  
6478   ac_cv_path__PATH_PGP="$_PATH_PGP" # Let the user override the test with a dos path.
6479   ;;
6480   *)
6481   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6482   ac_dummy="$PATH"
6483   for ac_dir in $ac_dummy; do 
6484     test -z "$ac_dir" && ac_dir=.
6485     if test -f $ac_dir/$ac_word; then
6486       ac_cv_path__PATH_PGP="$ac_dir/$ac_word"
6487       break
6488     fi
6489   done
6490   IFS="$ac_save_ifs"
6491   ;;
6492 esac
6493 fi
6494 _PATH_PGP="$ac_cv_path__PATH_PGP"
6495 if test -n "$_PATH_PGP"; then
6496   echo "$ac_t""$_PATH_PGP" 1>&6
6497 else
6498   echo "$ac_t""no" 1>&6
6499 fi
6500
6501 test -n "$_PATH_PGP" && break
6502 done
6503
6504 if test -z "$_PATH_PGP" && test -z "$PATH_GPGV" ; then
6505     pgpverify=false
6506 fi
6507
6508
6509 for ac_prog in wget ncftpget ncftp
6510 do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_word" >&5
6515 if eval "test \"`echo '$''{'ac_cv_path_GETFTP'+set}'`\" = set"; then
6516   echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518   case "$GETFTP" in
6519   /*)
6520   ac_cv_path_GETFTP="$GETFTP" # Let the user override the test with a path.
6521   ;;
6522   ?:/*)                  
6523   ac_cv_path_GETFTP="$GETFTP" # Let the user override the test with a dos path.
6524   ;;
6525   *)
6526   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6527   ac_dummy="$PATH"
6528   for ac_dir in $ac_dummy; do 
6529     test -z "$ac_dir" && ac_dir=.
6530     if test -f $ac_dir/$ac_word; then
6531       ac_cv_path_GETFTP="$ac_dir/$ac_word"
6532       break
6533     fi
6534   done
6535   IFS="$ac_save_ifs"
6536   ;;
6537 esac
6538 fi
6539 GETFTP="$ac_cv_path_GETFTP"
6540 if test -n "$GETFTP"; then
6541   echo "$ac_t""$GETFTP" 1>&6
6542 else
6543   echo "$ac_t""no" 1>&6
6544 fi
6545
6546 test -n "$GETFTP" && break
6547 done
6548 test -n "$GETFTP" || GETFTP="$prefix/bin/simpleftp"
6549
6550
6551 case "$LOG_COMPRESS" in
6552 compress|gzip) ;;
6553 *)             # Extract the first word of ""$LOG_COMPRESS"", so it can be a program name with args.
6554 set dummy "$LOG_COMPRESS"; ac_word=$2
6555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_word" >&5
6557 if eval "test \"`echo '$''{'ac_cv_path_LOG_COMPRESS'+set}'`\" = set"; then
6558   echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6560   case "$LOG_COMPRESS" in
6561   /*)
6562   ac_cv_path_LOG_COMPRESS="$LOG_COMPRESS" # Let the user override the test with a path.
6563   ;;
6564   ?:/*)                  
6565   ac_cv_path_LOG_COMPRESS="$LOG_COMPRESS" # Let the user override the test with a dos path.
6566   ;;
6567   *)
6568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6569   ac_dummy="$PATH"
6570   for ac_dir in $ac_dummy; do 
6571     test -z "$ac_dir" && ac_dir=.
6572     if test -f $ac_dir/$ac_word; then
6573       ac_cv_path_LOG_COMPRESS="$ac_dir/$ac_word"
6574       break
6575     fi
6576   done
6577   IFS="$ac_save_ifs"
6578   ;;
6579 esac
6580 fi
6581 LOG_COMPRESS="$ac_cv_path_LOG_COMPRESS"
6582 if test -n "$LOG_COMPRESS"; then
6583   echo "$ac_t""$LOG_COMPRESS" 1>&6
6584 else
6585   echo "$ac_t""no" 1>&6
6586 fi
6587
6588 if test -z "${LOG_COMPRESS}" ; then
6589     { echo "configure: error: "$LOG_COMPRESS" was not found in path and is required" 1>&2; exit 1; }
6590 fi
6591 esac
6592 # Extract the first word of "compress", so it can be a program name with args.
6593 set dummy compress; ac_word=$2
6594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6595 echo "configure:6596: checking for $ac_word" >&5
6596 if eval "test \"`echo '$''{'ac_cv_path_COMPRESS'+set}'`\" = set"; then
6597   echo $ac_n "(cached) $ac_c" 1>&6
6598 else
6599   case "$COMPRESS" in
6600   /*)
6601   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6602   ;;
6603   ?:/*)                  
6604   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a dos path.
6605   ;;
6606   *)
6607   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6608   ac_dummy="$PATH"
6609   for ac_dir in $ac_dummy; do 
6610     test -z "$ac_dir" && ac_dir=.
6611     if test -f $ac_dir/$ac_word; then
6612       ac_cv_path_COMPRESS="$ac_dir/$ac_word"
6613       break
6614     fi
6615   done
6616   IFS="$ac_save_ifs"
6617   test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS="compress"
6618   ;;
6619 esac
6620 fi
6621 COMPRESS="$ac_cv_path_COMPRESS"
6622 if test -n "$COMPRESS"; then
6623   echo "$ac_t""$COMPRESS" 1>&6
6624 else
6625   echo "$ac_t""no" 1>&6
6626 fi
6627
6628 if test x"$LOG_COMPRESS" = xcompress ; then
6629     if test x"$COMPRESS" = xcompress ; then
6630         { echo "configure: error: compress not found but specified for log compression" 1>&2; exit 1; }
6631     fi
6632     LOG_COMPRESS="$COMPRESS"
6633 fi
6634 # Extract the first word of "gzip", so it can be a program name with args.
6635 set dummy gzip; ac_word=$2
6636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_word" >&5
6638 if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
6639   echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641   case "$GZIP" in
6642   /*)
6643   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
6644   ;;
6645   ?:/*)                  
6646   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a dos path.
6647   ;;
6648   *)
6649   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6650   ac_dummy="$PATH"
6651   for ac_dir in $ac_dummy; do 
6652     test -z "$ac_dir" && ac_dir=.
6653     if test -f $ac_dir/$ac_word; then
6654       ac_cv_path_GZIP="$ac_dir/$ac_word"
6655       break
6656     fi
6657   done
6658   IFS="$ac_save_ifs"
6659   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="gzip"
6660   ;;
6661 esac
6662 fi
6663 GZIP="$ac_cv_path_GZIP"
6664 if test -n "$GZIP"; then
6665   echo "$ac_t""$GZIP" 1>&6
6666 else
6667   echo "$ac_t""no" 1>&6
6668 fi
6669
6670 if test x"$LOG_COMPRESS" = xgzip ; then
6671     if test x"$GZIP" = xgzip ; then
6672         { echo "configure: error: gzip not found but specified for log compression" 1>&2; exit 1; }
6673     fi
6674     LOG_COMPRESS="$GZIP"
6675 fi
6676
6677 if test x"$COMPRESS" = xcompress && test x"$GZIP" != xgzip ; then
6678     UNCOMPRESS="$GZIP -d"
6679 else
6680     UNCOMPRESS="$COMPRESS -d"
6681 fi
6682
6683
6684 if test "${with_sendmail+set}" = set ; then
6685     echo $ac_n "checking for sendmail""... $ac_c" 1>&6
6686 echo "configure:6687: checking for sendmail" >&5
6687     echo "$ac_t""$SENDMAIL" 1>&6
6688 else
6689     # Extract the first word of "sendmail", so it can be a program name with args.
6690 set dummy sendmail; ac_word=$2
6691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_word" >&5
6693 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
6694   echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696   case "$SENDMAIL" in
6697   /*)
6698   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6699   ;;
6700   ?:/*)                  
6701   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
6702   ;;
6703   *)
6704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6705   ac_dummy=""/usr/sbin:/usr/lib""
6706   for ac_dir in $ac_dummy; do 
6707     test -z "$ac_dir" && ac_dir=.
6708     if test -f $ac_dir/$ac_word; then
6709       ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
6710       break
6711     fi
6712   done
6713   IFS="$ac_save_ifs"
6714   ;;
6715 esac
6716 fi
6717 SENDMAIL="$ac_cv_path_SENDMAIL"
6718 if test -n "$SENDMAIL"; then
6719   echo "$ac_t""$SENDMAIL" 1>&6
6720 else
6721   echo "$ac_t""no" 1>&6
6722 fi
6723
6724     if test -z "$SENDMAIL" ; then
6725         { echo "configure: error: sendmail not found" 1>&2; exit 1; }
6726     fi
6727 fi
6728
6729 # Extract the first word of "uustat", so it can be a program name with args.
6730 set dummy uustat; ac_word=$2
6731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_word" >&5
6733 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_UUSTAT'+set}'`\" = set"; then
6734   echo $ac_n "(cached) $ac_c" 1>&6
6735 else
6736   if test -n "$HAVE_UUSTAT"; then
6737   ac_cv_prog_HAVE_UUSTAT="$HAVE_UUSTAT" # Let the user override the test.
6738 else
6739   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6740   ac_dummy="$PATH"
6741   for ac_dir in $ac_dummy; do
6742     test -z "$ac_dir" && ac_dir=.
6743     if test -f $ac_dir/$ac_word; then
6744       ac_cv_prog_HAVE_UUSTAT="DO"
6745       break
6746     fi
6747   done
6748   IFS="$ac_save_ifs"
6749   test -z "$ac_cv_prog_HAVE_UUSTAT" && ac_cv_prog_HAVE_UUSTAT="DONT"
6750 fi
6751 fi
6752 HAVE_UUSTAT="$ac_cv_prog_HAVE_UUSTAT"
6753 if test -n "$HAVE_UUSTAT"; then
6754   echo "$ac_t""$HAVE_UUSTAT" 1>&6
6755 else
6756   echo "$ac_t""no" 1>&6
6757 fi
6758
6759
6760
6761 if test x"$DO_PYTHON" = xdefine ; then
6762     # Extract the first word of "python", so it can be a program name with args.
6763 set dummy python; ac_word=$2
6764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_word" >&5
6766 if eval "test \"`echo '$''{'ac_cv_path__PATH_PYTHON'+set}'`\" = set"; then
6767   echo $ac_n "(cached) $ac_c" 1>&6
6768 else
6769   case "$_PATH_PYTHON" in
6770   /*)
6771   ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a path.
6772   ;;
6773   ?:/*)                  
6774   ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a dos path.
6775   ;;
6776   *)
6777   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6778   ac_dummy="$PATH"
6779   for ac_dir in $ac_dummy; do 
6780     test -z "$ac_dir" && ac_dir=.
6781     if test -f $ac_dir/$ac_word; then
6782       ac_cv_path__PATH_PYTHON="$ac_dir/$ac_word"
6783       break
6784     fi
6785   done
6786   IFS="$ac_save_ifs"
6787   ;;
6788 esac
6789 fi
6790 _PATH_PYTHON="$ac_cv_path__PATH_PYTHON"
6791 if test -n "$_PATH_PYTHON"; then
6792   echo "$ac_t""$_PATH_PYTHON" 1>&6
6793 else
6794   echo "$ac_t""no" 1>&6
6795 fi
6796
6797 if test -z "${_PATH_PYTHON}" ; then
6798     { echo "configure: error: python was not found in path and is required" 1>&2; exit 1; }
6799 fi
6800 fi
6801
6802
6803
6804
6805
6806 echo $ac_n "checking for library containing setproctitle""... $ac_c" 1>&6
6807 echo "configure:6808: checking for library containing setproctitle" >&5
6808 if eval "test \"`echo '$''{'ac_cv_search_setproctitle'+set}'`\" = set"; then
6809   echo $ac_n "(cached) $ac_c" 1>&6
6810 else
6811   ac_func_search_save_LIBS="$LIBS"
6812 ac_cv_search_setproctitle="no"
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 /* Override any gcc2 internal prototype to avoid an error.  */
6817 /* We use char because int might match the return type of a gcc2
6818     builtin and then its argument prototype would still apply.  */
6819 char setproctitle();
6820
6821 int main() {
6822 setproctitle()
6823 ; return 0; }
6824 EOF
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6826   rm -rf conftest*
6827   ac_cv_search_setproctitle="none required"
6828 else
6829   echo "configure: failed program was:" >&5
6830   cat conftest.$ac_ext >&5
6831 fi
6832 rm -f conftest*
6833 test "$ac_cv_search_setproctitle" = "no" && for i in util; do
6834 LIBS="-l$i  $ac_func_search_save_LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error.  */
6839 /* We use char because int might match the return type of a gcc2
6840     builtin and then its argument prototype would still apply.  */
6841 char setproctitle();
6842
6843 int main() {
6844 setproctitle()
6845 ; return 0; }
6846 EOF
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848   rm -rf conftest*
6849   ac_cv_search_setproctitle="-l$i"
6850 break
6851 else
6852   echo "configure: failed program was:" >&5
6853   cat conftest.$ac_ext >&5
6854 fi
6855 rm -f conftest*
6856 done
6857 LIBS="$ac_func_search_save_LIBS"
6858 fi
6859
6860 echo "$ac_t""$ac_cv_search_setproctitle" 1>&6
6861 if test "$ac_cv_search_setproctitle" != "no"; then
6862   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
6863   cat >> confdefs.h <<\EOF
6864 #define HAVE_SETPROCTITLE 1
6865 EOF
6866
6867 else :
6868   LIBOBJS="$LIBOBJS setproctitle.o"
6869      for ac_func in pstat
6870 do
6871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6872 echo "configure:6873: checking for $ac_func" >&5
6873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6874   echo $ac_n "(cached) $ac_c" 1>&6
6875 else
6876   cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 /* System header to define __stub macros and hopefully few prototypes,
6880     which can conflict with char $ac_func(); below.  */
6881 #include <assert.h>
6882 /* Override any gcc2 internal prototype to avoid an error.  */
6883 /* We use char because int might match the return type of a gcc2
6884     builtin and then its argument prototype would still apply.  */
6885 char $ac_func();
6886
6887 int main() {
6888
6889 /* The GNU C library defines this for functions which it implements
6890     to always fail with ENOSYS.  Some functions are actually named
6891     something starting with __ and the normal name is an alias.  */
6892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6893 choke me
6894 #else
6895 $ac_func();
6896 #endif
6897
6898 ; return 0; }
6899 EOF
6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6901   rm -rf conftest*
6902   eval "ac_cv_func_$ac_func=yes"
6903 else
6904   echo "configure: failed program was:" >&5
6905   cat conftest.$ac_ext >&5
6906   rm -rf conftest*
6907   eval "ac_cv_func_$ac_func=no"
6908 fi
6909 rm -f conftest*
6910 fi
6911
6912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6913   echo "$ac_t""yes" 1>&6
6914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6915   cat >> confdefs.h <<EOF
6916 #define $ac_tr_func 1
6917 EOF
6918  
6919 else
6920   echo "$ac_t""no" 1>&6
6921 fi
6922 done
6923
6924 fi
6925
6926
6927 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
6928 echo "configure:6929: checking for library containing gethostbyname" >&5
6929 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
6930   echo $ac_n "(cached) $ac_c" 1>&6
6931 else
6932   ac_func_search_save_LIBS="$LIBS"
6933 ac_cv_search_gethostbyname="no"
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 /* We use char because int might match the return type of a gcc2
6939     builtin and then its argument prototype would still apply.  */
6940 char gethostbyname();
6941
6942 int main() {
6943 gethostbyname()
6944 ; return 0; }
6945 EOF
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6947   rm -rf conftest*
6948   ac_cv_search_gethostbyname="none required"
6949 else
6950   echo "configure: failed program was:" >&5
6951   cat conftest.$ac_ext >&5
6952 fi
6953 rm -f conftest*
6954 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
6955 LIBS="-l$i  $ac_func_search_save_LIBS"
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* Override any gcc2 internal prototype to avoid an error.  */
6960 /* We use char because int might match the return type of a gcc2
6961     builtin and then its argument prototype would still apply.  */
6962 char gethostbyname();
6963
6964 int main() {
6965 gethostbyname()
6966 ; return 0; }
6967 EOF
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969   rm -rf conftest*
6970   ac_cv_search_gethostbyname="-l$i"
6971 break
6972 else
6973   echo "configure: failed program was:" >&5
6974   cat conftest.$ac_ext >&5
6975 fi
6976 rm -f conftest*
6977 done
6978 LIBS="$ac_func_search_save_LIBS"
6979 fi
6980
6981 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
6982 if test "$ac_cv_search_gethostbyname" != "no"; then
6983   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6984   
6985 else :
6986   
6987 fi
6988
6989 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
6990 echo "configure:6991: checking for library containing socket" >&5
6991 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
6992   echo $ac_n "(cached) $ac_c" 1>&6
6993 else
6994   ac_func_search_save_LIBS="$LIBS"
6995 ac_cv_search_socket="no"
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 /* Override any gcc2 internal prototype to avoid an error.  */
7000 /* We use char because int might match the return type of a gcc2
7001     builtin and then its argument prototype would still apply.  */
7002 char socket();
7003
7004 int main() {
7005 socket()
7006 ; return 0; }
7007 EOF
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7009   rm -rf conftest*
7010   ac_cv_search_socket="none required"
7011 else
7012   echo "configure: failed program was:" >&5
7013   cat conftest.$ac_ext >&5
7014 fi
7015 rm -f conftest*
7016 test "$ac_cv_search_socket" = "no" && for i in socket; do
7017 LIBS="-l$i  $ac_func_search_save_LIBS"
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* Override any gcc2 internal prototype to avoid an error.  */
7022 /* We use char because int might match the return type of a gcc2
7023     builtin and then its argument prototype would still apply.  */
7024 char socket();
7025
7026 int main() {
7027 socket()
7028 ; return 0; }
7029 EOF
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031   rm -rf conftest*
7032   ac_cv_search_socket="-l$i"
7033 break
7034 else
7035   echo "configure: failed program was:" >&5
7036   cat conftest.$ac_ext >&5
7037 fi
7038 rm -f conftest*
7039 done
7040 LIBS="$ac_func_search_save_LIBS"
7041 fi
7042
7043 echo "$ac_t""$ac_cv_search_socket" 1>&6
7044 if test "$ac_cv_search_socket" != "no"; then
7045   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7046   
7047 else :
7048   echo $ac_n "checking for socket in -lnsl""... $ac_c" 1>&6
7049 echo "configure:7050: checking for socket in -lnsl" >&5
7050 ac_lib_var=`echo nsl'_'socket | sed 'y%./+-%__p_%'`
7051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7052   echo $ac_n "(cached) $ac_c" 1>&6
7053 else
7054   ac_save_LIBS="$LIBS"
7055 LIBS="-lnsl -lsocket $LIBS"
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 /* Override any gcc2 internal prototype to avoid an error.  */
7060 /* We use char because int might match the return type of a gcc2
7061     builtin and then its argument prototype would still apply.  */
7062 char socket();
7063
7064 int main() {
7065 socket()
7066 ; return 0; }
7067 EOF
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069   rm -rf conftest*
7070   eval "ac_cv_lib_$ac_lib_var=yes"
7071 else
7072   echo "configure: failed program was:" >&5
7073   cat conftest.$ac_ext >&5
7074   rm -rf conftest*
7075   eval "ac_cv_lib_$ac_lib_var=no"
7076 fi
7077 rm -f conftest*
7078 LIBS="$ac_save_LIBS"
7079
7080 fi
7081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7082   echo "$ac_t""yes" 1>&6
7083   LIBS="$LIBS -lsocket -lnsl"
7084 else
7085   echo "$ac_t""no" 1>&6
7086 fi
7087
7088 fi
7089
7090
7091 echo $ac_n "checking for library containing inet_aton""... $ac_c" 1>&6
7092 echo "configure:7093: checking for library containing inet_aton" >&5
7093 if eval "test \"`echo '$''{'ac_cv_search_inet_aton'+set}'`\" = set"; then
7094   echo $ac_n "(cached) $ac_c" 1>&6
7095 else
7096   ac_func_search_save_LIBS="$LIBS"
7097 ac_cv_search_inet_aton="no"
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 /* Override any gcc2 internal prototype to avoid an error.  */
7102 /* We use char because int might match the return type of a gcc2
7103     builtin and then its argument prototype would still apply.  */
7104 char inet_aton();
7105
7106 int main() {
7107 inet_aton()
7108 ; return 0; }
7109 EOF
7110 if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7111   rm -rf conftest*
7112   ac_cv_search_inet_aton="none required"
7113 else
7114   echo "configure: failed program was:" >&5
7115   cat conftest.$ac_ext >&5
7116 fi
7117 rm -f conftest*
7118 test "$ac_cv_search_inet_aton" = "no" && for i in resolv; do
7119 LIBS="-l$i  $ac_func_search_save_LIBS"
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error.  */
7124 /* We use char because int might match the return type of a gcc2
7125     builtin and then its argument prototype would still apply.  */
7126 char inet_aton();
7127
7128 int main() {
7129 inet_aton()
7130 ; return 0; }
7131 EOF
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7133   rm -rf conftest*
7134   ac_cv_search_inet_aton="-l$i"
7135 break
7136 else
7137   echo "configure: failed program was:" >&5
7138   cat conftest.$ac_ext >&5
7139 fi
7140 rm -f conftest*
7141 done
7142 LIBS="$ac_func_search_save_LIBS"
7143 fi
7144
7145 echo "$ac_t""$ac_cv_search_inet_aton" 1>&6
7146 if test "$ac_cv_search_inet_aton" != "no"; then
7147   test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
7148   
7149 else :
7150   
7151 fi
7152
7153 inn_save_LIBS=$LIBS
7154 LIBS=${CRYPT_LIB}
7155
7156 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
7157 echo "configure:7158: checking for library containing crypt" >&5
7158 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
7159   echo $ac_n "(cached) $ac_c" 1>&6
7160 else
7161   ac_func_search_save_LIBS="$LIBS"
7162 ac_cv_search_crypt="no"
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* Override any gcc2 internal prototype to avoid an error.  */
7167 /* We use char because int might match the return type of a gcc2
7168     builtin and then its argument prototype would still apply.  */
7169 char crypt();
7170
7171 int main() {
7172 crypt()
7173 ; return 0; }
7174 EOF
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7176   rm -rf conftest*
7177   ac_cv_search_crypt="none required"
7178 else
7179   echo "configure: failed program was:" >&5
7180   cat conftest.$ac_ext >&5
7181 fi
7182 rm -f conftest*
7183 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
7184 LIBS="-l$i  $ac_func_search_save_LIBS"
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 /* Override any gcc2 internal prototype to avoid an error.  */
7189 /* We use char because int might match the return type of a gcc2
7190     builtin and then its argument prototype would still apply.  */
7191 char crypt();
7192
7193 int main() {
7194 crypt()
7195 ; return 0; }
7196 EOF
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198   rm -rf conftest*
7199   ac_cv_search_crypt="-l$i"
7200 break
7201 else
7202   echo "configure: failed program was:" >&5
7203   cat conftest.$ac_ext >&5
7204 fi
7205 rm -f conftest*
7206 done
7207 LIBS="$ac_func_search_save_LIBS"
7208 fi
7209
7210 echo "$ac_t""$ac_cv_search_crypt" 1>&6
7211 if test "$ac_cv_search_crypt" != "no"; then
7212   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
7213   CRYPT_LIB=$LIBS
7214                 
7215 else :
7216   
7217 fi
7218 LIBS=$inn_save_LIBS
7219
7220 inn_save_LIBS=$LIBS
7221 LIBS=${SHADOW_LIB}
7222
7223 echo $ac_n "checking for library containing getspnam""... $ac_c" 1>&6
7224 echo "configure:7225: checking for library containing getspnam" >&5
7225 if eval "test \"`echo '$''{'ac_cv_search_getspnam'+set}'`\" = set"; then
7226   echo $ac_n "(cached) $ac_c" 1>&6
7227 else
7228   ac_func_search_save_LIBS="$LIBS"
7229 ac_cv_search_getspnam="no"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 /* We use char because int might match the return type of a gcc2
7235     builtin and then its argument prototype would still apply.  */
7236 char getspnam();
7237
7238 int main() {
7239 getspnam()
7240 ; return 0; }
7241 EOF
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243   rm -rf conftest*
7244   ac_cv_search_getspnam="none required"
7245 else
7246   echo "configure: failed program was:" >&5
7247   cat conftest.$ac_ext >&5
7248 fi
7249 rm -f conftest*
7250 test "$ac_cv_search_getspnam" = "no" && for i in shadow; do
7251 LIBS="-l$i  $ac_func_search_save_LIBS"
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7255 /* Override any gcc2 internal prototype to avoid an error.  */
7256 /* We use char because int might match the return type of a gcc2
7257     builtin and then its argument prototype would still apply.  */
7258 char getspnam();
7259
7260 int main() {
7261 getspnam()
7262 ; return 0; }
7263 EOF
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265   rm -rf conftest*
7266   ac_cv_search_getspnam="-l$i"
7267 break
7268 else
7269   echo "configure: failed program was:" >&5
7270   cat conftest.$ac_ext >&5
7271 fi
7272 rm -f conftest*
7273 done
7274 LIBS="$ac_func_search_save_LIBS"
7275 fi
7276
7277 echo "$ac_t""$ac_cv_search_getspnam" 1>&6
7278 if test "$ac_cv_search_getspnam" != "no"; then
7279   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
7280   SHADOW_LIB=$LIBS
7281                 
7282 else :
7283   
7284 fi
7285 LIBS=$inn_save_LIBS
7286
7287
7288 inn_check_pam=1
7289 for ac_hdr in pam/pam_appl.h
7290 do
7291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7293 echo "configure:7294: checking for $ac_hdr" >&5
7294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7295   echo $ac_n "(cached) $ac_c" 1>&6
7296 else
7297   cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 #include <$ac_hdr>
7301 EOF
7302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7303 { (eval echo configure:7304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7305 if test -z "$ac_err"; then
7306   rm -rf conftest*
7307   eval "ac_cv_header_$ac_safe=yes"
7308 else
7309   echo "$ac_err" >&5
7310   echo "configure: failed program was:" >&5
7311   cat conftest.$ac_ext >&5
7312   rm -rf conftest*
7313   eval "ac_cv_header_$ac_safe=no"
7314 fi
7315 rm -f conftest*
7316 fi
7317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7320   cat >> confdefs.h <<EOF
7321 #define $ac_tr_hdr 1
7322 EOF
7323  
7324 else
7325   echo "$ac_t""no" 1>&6
7326 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
7328 echo "configure:7329: checking for security/pam_appl.h" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330   echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332   cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <security/pam_appl.h>
7336 EOF
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7341   rm -rf conftest*
7342   eval "ac_cv_header_$ac_safe=yes"
7343 else
7344   echo "$ac_err" >&5
7345   echo "configure: failed program was:" >&5
7346   cat conftest.$ac_ext >&5
7347   rm -rf conftest*
7348   eval "ac_cv_header_$ac_safe=no"
7349 fi
7350 rm -f conftest*
7351 fi
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353   echo "$ac_t""yes" 1>&6
7354   :
7355 else
7356   echo "$ac_t""no" 1>&6
7357 inn_check_pam=0
7358 fi
7359
7360 fi
7361 done
7362
7363 if test x"$inn_check_pam" = x1; then
7364     inn_save_LIBS=$LIBS
7365 LIBS=${PAM_LIB}
7366
7367 echo $ac_n "checking for library containing pam_start""... $ac_c" 1>&6
7368 echo "configure:7369: checking for library containing pam_start" >&5
7369 if eval "test \"`echo '$''{'ac_cv_search_pam_start'+set}'`\" = set"; then
7370   echo $ac_n "(cached) $ac_c" 1>&6
7371 else
7372   ac_func_search_save_LIBS="$LIBS"
7373 ac_cv_search_pam_start="no"
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* Override any gcc2 internal prototype to avoid an error.  */
7378 /* We use char because int might match the return type of a gcc2
7379     builtin and then its argument prototype would still apply.  */
7380 char pam_start();
7381
7382 int main() {
7383 pam_start()
7384 ; return 0; }
7385 EOF
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387   rm -rf conftest*
7388   ac_cv_search_pam_start="none required"
7389 else
7390   echo "configure: failed program was:" >&5
7391   cat conftest.$ac_ext >&5
7392 fi
7393 rm -f conftest*
7394 test "$ac_cv_search_pam_start" = "no" && for i in pam; do
7395 LIBS="-l$i  $ac_func_search_save_LIBS"
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* Override any gcc2 internal prototype to avoid an error.  */
7400 /* We use char because int might match the return type of a gcc2
7401     builtin and then its argument prototype would still apply.  */
7402 char pam_start();
7403
7404 int main() {
7405 pam_start()
7406 ; return 0; }
7407 EOF
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409   rm -rf conftest*
7410   ac_cv_search_pam_start="-l$i"
7411 break
7412 else
7413   echo "configure: failed program was:" >&5
7414   cat conftest.$ac_ext >&5
7415 fi
7416 rm -f conftest*
7417 done
7418 LIBS="$ac_func_search_save_LIBS"
7419 fi
7420
7421 echo "$ac_t""$ac_cv_search_pam_start" 1>&6
7422 if test "$ac_cv_search_pam_start" != "no"; then
7423   test "$ac_cv_search_pam_start" = "none required" || LIBS="$ac_cv_search_pam_start $LIBS"
7424   PAM_LIB=$LIBS
7425                 cat >> confdefs.h <<\EOF
7426 #define HAVE_PAM 1
7427 EOF
7428
7429 else :
7430   
7431 fi
7432 LIBS=$inn_save_LIBS
7433
7434 fi
7435
7436 if test x"$inn_enable_keywords" = x1 ; then
7437     inn_save_LIBS=$LIBS
7438 LIBS=${REGEX_LIB}
7439
7440 echo $ac_n "checking for library containing regexec""... $ac_c" 1>&6
7441 echo "configure:7442: checking for library containing regexec" >&5
7442 if eval "test \"`echo '$''{'ac_cv_search_regexec'+set}'`\" = set"; then
7443   echo $ac_n "(cached) $ac_c" 1>&6
7444 else
7445   ac_func_search_save_LIBS="$LIBS"
7446 ac_cv_search_regexec="no"
7447 cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 /* Override any gcc2 internal prototype to avoid an error.  */
7451 /* We use char because int might match the return type of a gcc2
7452     builtin and then its argument prototype would still apply.  */
7453 char regexec();
7454
7455 int main() {
7456 regexec()
7457 ; return 0; }
7458 EOF
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460   rm -rf conftest*
7461   ac_cv_search_regexec="none required"
7462 else
7463   echo "configure: failed program was:" >&5
7464   cat conftest.$ac_ext >&5
7465 fi
7466 rm -f conftest*
7467 test "$ac_cv_search_regexec" = "no" && for i in regex; do
7468 LIBS="-l$i  $ac_func_search_save_LIBS"
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 /* Override any gcc2 internal prototype to avoid an error.  */
7473 /* We use char because int might match the return type of a gcc2
7474     builtin and then its argument prototype would still apply.  */
7475 char regexec();
7476
7477 int main() {
7478 regexec()
7479 ; return 0; }
7480 EOF
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482   rm -rf conftest*
7483   ac_cv_search_regexec="-l$i"
7484 break
7485 else
7486   echo "configure: failed program was:" >&5
7487   cat conftest.$ac_ext >&5
7488 fi
7489 rm -f conftest*
7490 done
7491 LIBS="$ac_func_search_save_LIBS"
7492 fi
7493
7494 echo "$ac_t""$ac_cv_search_regexec" 1>&6
7495 if test "$ac_cv_search_regexec" != "no"; then
7496   test "$ac_cv_search_regexec" = "none required" || LIBS="$ac_cv_search_regexec $LIBS"
7497   REGEX_LIB=$LIBS
7498                 
7499 else :
7500   { echo "configure: error: no usable regular expression library found" 1>&2; exit 1; }
7501 fi
7502 LIBS=$inn_save_LIBS
7503
7504 fi
7505
7506
7507 # Check whether --with-berkeleydb or --without-berkeleydb was given.
7508 if test "${with_berkeleydb+set}" = set; then
7509   withval="$with_berkeleydb"
7510   BERKELEY_DB_DIR=$with_berkeleydb
7511 else
7512   BERKELEY_DB_DIR=no
7513 fi
7514
7515 echo $ac_n "checking if BerkeleyDB is desired""... $ac_c" 1>&6
7516 echo "configure:7517: checking if BerkeleyDB is desired" >&5
7517 if test x"$BERKELEY_DB_DIR" = xno ; then
7518     echo "$ac_t""no" 1>&6
7519     BERKELEY_DB_LDFLAGS=
7520     BERKELEY_DB_CFLAGS=
7521     BERKELEY_DB_LIB=
7522 else
7523     echo "$ac_t""yes" 1>&6
7524     echo $ac_n "checking for BerkeleyDB location""... $ac_c" 1>&6
7525 echo "configure:7526: checking for BerkeleyDB location" >&5
7526     if test x"$BERKELEY_DB_DIR" = xyes ; then
7527         for v in BerkeleyDB BerkeleyDB.3.0 BerkeleyDB.3.1 BerkeleyDB.3.2 \
7528                  BerkeleyDB.3.3 BerkeleyDB.4.0 BerkeleyDB.4.1 BerkeleyDB.4.2 \
7529                  BerkeleyDB.4.3 BerkeleyDB.4.4 BerkeleyDB.4.5 BerkeleyDB.4.6; do
7530             for d in $prefix /usr/local /opt /usr ; do
7531                 if test -d "$d/$v" ; then
7532                     BERKELEY_DB_DIR="$d/$v"
7533                     break
7534                 fi
7535             done
7536         done
7537     fi
7538     if test x"$BERKELEY_DB_DIR" = xyes ; then
7539         for v in db46 db45 db44 db43 db42 db41 db4 db3 db2 ; do
7540             if test -d "/usr/local/include/$v" ; then
7541                 BERKELEY_DB_LDFLAGS="-L/usr/local/lib"
7542                 BERKELEY_DB_CFLAGS="-I/usr/local/include/$v"
7543                 BERKELEY_DB_LIB="-l$v"
7544                 echo "$ac_t""FreeBSD locations" 1>&6
7545                 break
7546             fi
7547         done
7548         if test x"$BERKELEY_DB_LIB" = x ; then
7549             for v in db44 db43 db42 db41 db4 db3 db2 ; do
7550                 if test -d "/usr/include/$v" ; then
7551                     BERKELEY_DB_CFLAGS="-I/usr/include/$v"
7552                     BERKELEY_DB_LIB="-l$v"
7553                     echo "$ac_t""Linux locations" 1>&6
7554                     break
7555                 fi
7556             done
7557             if test x"$BERKELEY_DB_LIB" = x ; then        
7558                 BERKELEY_DB_LIB=-ldb
7559                 echo "$ac_t""trying -ldb" 1>&6
7560             fi
7561         fi
7562     else
7563         BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib"
7564         BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include"
7565         BERKELEY_DB_LIB="-ldb"
7566         echo "$ac_t""$BERKELEY_DB_DIR" 1>&6
7567     fi
7568     cat >> confdefs.h <<\EOF
7569 #define USE_BERKELEY_DB 1
7570 EOF
7571
7572 fi
7573
7574
7575
7576
7577 if test x"$BERKELEY_DB_LIB" != x ; then
7578     DBM_INC="$BERKELEY_DB_CFLAGS"
7579     DBM_LIB="$BERKELEY_DB_LDFLAGS $BERKELEY_DB_LIB"
7580     
7581     cat >> confdefs.h <<\EOF
7582 #define HAVE_BDB_DBM 1
7583 EOF
7584
7585 else
7586     inn_save_LIBS=$LIBS
7587 LIBS=${DBM_LIB}
7588
7589 echo $ac_n "checking for library containing dbm_open""... $ac_c" 1>&6
7590 echo "configure:7591: checking for library containing dbm_open" >&5
7591 if eval "test \"`echo '$''{'ac_cv_search_dbm_open'+set}'`\" = set"; then
7592   echo $ac_n "(cached) $ac_c" 1>&6
7593 else
7594   ac_func_search_save_LIBS="$LIBS"
7595 ac_cv_search_dbm_open="no"
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error.  */
7600 /* We use char because int might match the return type of a gcc2
7601     builtin and then its argument prototype would still apply.  */
7602 char dbm_open();
7603
7604 int main() {
7605 dbm_open()
7606 ; return 0; }
7607 EOF
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609   rm -rf conftest*
7610   ac_cv_search_dbm_open="none required"
7611 else
7612   echo "configure: failed program was:" >&5
7613   cat conftest.$ac_ext >&5
7614 fi
7615 rm -f conftest*
7616 test "$ac_cv_search_dbm_open" = "no" && for i in ndbm dbm; do
7617 LIBS="-l$i  $ac_func_search_save_LIBS"
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* Override any gcc2 internal prototype to avoid an error.  */
7622 /* We use char because int might match the return type of a gcc2
7623     builtin and then its argument prototype would still apply.  */
7624 char dbm_open();
7625
7626 int main() {
7627 dbm_open()
7628 ; return 0; }
7629 EOF
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7631   rm -rf conftest*
7632   ac_cv_search_dbm_open="-l$i"
7633 break
7634 else
7635   echo "configure: failed program was:" >&5
7636   cat conftest.$ac_ext >&5
7637 fi
7638 rm -f conftest*
7639 done
7640 LIBS="$ac_func_search_save_LIBS"
7641 fi
7642
7643 echo "$ac_t""$ac_cv_search_dbm_open" 1>&6
7644 if test "$ac_cv_search_dbm_open" != "no"; then
7645   test "$ac_cv_search_dbm_open" = "none required" || LIBS="$ac_cv_search_dbm_open $LIBS"
7646   DBM_LIB=$LIBS
7647                 cat >> confdefs.h <<\EOF
7648 #define HAVE_DBM 1
7649 EOF
7650
7651 else :
7652   
7653 fi
7654 LIBS=$inn_save_LIBS
7655
7656     DBM_INC=
7657 fi
7658
7659
7660
7661 # Check whether --with-openssl or --without-openssl was given.
7662 if test "${with_openssl+set}" = set; then
7663   withval="$with_openssl"
7664   OPENSSL_DIR=$with_openssl
7665 else
7666   OPENSSL_DIR=no
7667 fi
7668
7669 echo $ac_n "checking if OpenSSL is desired""... $ac_c" 1>&6
7670 echo "configure:7671: checking if OpenSSL is desired" >&5
7671 if test x"$OPENSSL_DIR" = xno ; then
7672     echo "$ac_t""no" 1>&6
7673     SSL_BIN=
7674     SSL_INC=
7675     SSL_LIB=
7676 else
7677     echo "$ac_t""yes" 1>&6
7678     echo $ac_n "checking for OpenSSL location""... $ac_c" 1>&6
7679 echo "configure:7680: checking for OpenSSL location" >&5
7680     if test x"$OPENSSL_DIR" = xyes ; then
7681         for dir in $prefix /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg \
7682                    /usr/local /usr ; do
7683             if test -f "$dir/include/openssl/ssl.h" ; then
7684                 OPENSSL_DIR=$dir
7685                 break
7686             fi
7687         done
7688     fi
7689     if test x"$OPENSSL_DIR" = xyes ; then
7690         { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7691     else
7692         echo "$ac_t""$OPENSSL_DIR" 1>&6
7693         SSL_BIN="${OPENSSL_DIR}/bin"
7694         SSL_INC="-I${OPENSSL_DIR}/include"
7695
7696         # This is mildly tricky.  In order to satisfy most linkers, libraries
7697         # have to be listed in the right order, which means that libraries
7698         # with dependencies on other libraries need to be listed first.  But
7699         # the -L flag for the OpenSSL library directory needs to go first of
7700         # all.  So put the -L flag into LIBS and accumulate actual libraries
7701         # into SSL_LIB, and then at the end, restore LIBS and move -L to the
7702         # beginning of SSL_LIB.
7703         inn_save_LIBS=$LIBS
7704         LIBS="$LIBS -L${OPENSSL_DIR}/lib"
7705         SSL_LIB=''
7706         echo $ac_n "checking for RSAPublicEncrypt in -lrsaref""... $ac_c" 1>&6
7707 echo "configure:7708: checking for RSAPublicEncrypt in -lrsaref" >&5
7708 ac_lib_var=`echo rsaref'_'RSAPublicEncrypt | sed 'y%./+-%__p_%'`
7709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7710   echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712   ac_save_LIBS="$LIBS"
7713 LIBS="-lrsaref  $LIBS"
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* Override any gcc2 internal prototype to avoid an error.  */
7718 /* We use char because int might match the return type of a gcc2
7719     builtin and then its argument prototype would still apply.  */
7720 char RSAPublicEncrypt();
7721
7722 int main() {
7723 RSAPublicEncrypt()
7724 ; return 0; }
7725 EOF
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7727   rm -rf conftest*
7728   eval "ac_cv_lib_$ac_lib_var=yes"
7729 else
7730   echo "configure: failed program was:" >&5
7731   cat conftest.$ac_ext >&5
7732   rm -rf conftest*
7733   eval "ac_cv_lib_$ac_lib_var=no"
7734 fi
7735 rm -f conftest*
7736 LIBS="$ac_save_LIBS"
7737
7738 fi
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740   echo "$ac_t""yes" 1>&6
7741   echo $ac_n "checking for RSAPublicEncrypt in -lRSAglue""... $ac_c" 1>&6
7742 echo "configure:7743: checking for RSAPublicEncrypt in -lRSAglue" >&5
7743 ac_lib_var=`echo RSAglue'_'RSAPublicEncrypt | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745   echo $ac_n "(cached) $ac_c" 1>&6
7746 else
7747   ac_save_LIBS="$LIBS"
7748 LIBS="-lRSAglue -lrsaref $LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error.  */
7753 /* We use char because int might match the return type of a gcc2
7754     builtin and then its argument prototype would still apply.  */
7755 char RSAPublicEncrypt();
7756
7757 int main() {
7758 RSAPublicEncrypt()
7759 ; return 0; }
7760 EOF
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762   rm -rf conftest*
7763   eval "ac_cv_lib_$ac_lib_var=yes"
7764 else
7765   echo "configure: failed program was:" >&5
7766   cat conftest.$ac_ext >&5
7767   rm -rf conftest*
7768   eval "ac_cv_lib_$ac_lib_var=no"
7769 fi
7770 rm -f conftest*
7771 LIBS="$ac_save_LIBS"
7772
7773 fi
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775   echo "$ac_t""yes" 1>&6
7776   SSL_LIB="-lRSAglue -lrsaref"
7777 else
7778   echo "$ac_t""no" 1>&6
7779 fi
7780
7781 else
7782   echo "$ac_t""no" 1>&6
7783 fi
7784
7785         echo $ac_n "checking for BIO_new in -lcrypto""... $ac_c" 1>&6
7786 echo "configure:7787: checking for BIO_new in -lcrypto" >&5
7787 ac_lib_var=`echo crypto'_'BIO_new | sed 'y%./+-%__p_%'`
7788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7789   echo $ac_n "(cached) $ac_c" 1>&6
7790 else
7791   ac_save_LIBS="$LIBS"
7792 LIBS="-lcrypto $SSL_LIB $LIBS"
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 /* We use char because int might match the return type of a gcc2
7798     builtin and then its argument prototype would still apply.  */
7799 char BIO_new();
7800
7801 int main() {
7802 BIO_new()
7803 ; return 0; }
7804 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806   rm -rf conftest*
7807   eval "ac_cv_lib_$ac_lib_var=yes"
7808 else
7809   echo "configure: failed program was:" >&5
7810   cat conftest.$ac_ext >&5
7811   rm -rf conftest*
7812   eval "ac_cv_lib_$ac_lib_var=no"
7813 fi
7814 rm -f conftest*
7815 LIBS="$ac_save_LIBS"
7816
7817 fi
7818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7819   echo "$ac_t""yes" 1>&6
7820   echo $ac_n "checking for DSO_load in -ldl""... $ac_c" 1>&6
7821 echo "configure:7822: checking for DSO_load in -ldl" >&5
7822 ac_lib_var=`echo dl'_'DSO_load | sed 'y%./+-%__p_%'`
7823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7824   echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826   ac_save_LIBS="$LIBS"
7827 LIBS="-ldl -lcrypto -ldl $SSL_LIB $LIBS"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error.  */
7832 /* We use char because int might match the return type of a gcc2
7833     builtin and then its argument prototype would still apply.  */
7834 char DSO_load();
7835
7836 int main() {
7837 DSO_load()
7838 ; return 0; }
7839 EOF
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7841   rm -rf conftest*
7842   eval "ac_cv_lib_$ac_lib_var=yes"
7843 else
7844   echo "configure: failed program was:" >&5
7845   cat conftest.$ac_ext >&5
7846   rm -rf conftest*
7847   eval "ac_cv_lib_$ac_lib_var=no"
7848 fi
7849 rm -f conftest*
7850 LIBS="$ac_save_LIBS"
7851
7852 fi
7853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7854   echo "$ac_t""yes" 1>&6
7855   SSL_LIB="-lcrypto -ldl $SSL_LIB"
7856 else
7857   echo "$ac_t""no" 1>&6
7858 SSL_LIB="-lcrypto $SSL_LIB"
7859 fi
7860
7861 else
7862   echo "$ac_t""no" 1>&6
7863 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7864 fi
7865
7866         echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7867 echo "configure:7868: checking for SSL_library_init in -lssl" >&5
7868 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
7869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7870   echo $ac_n "(cached) $ac_c" 1>&6
7871 else
7872   ac_save_LIBS="$LIBS"
7873 LIBS="-lssl $SSL_LIB $LIBS"
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 /* We use char because int might match the return type of a gcc2
7879     builtin and then its argument prototype would still apply.  */
7880 char SSL_library_init();
7881
7882 int main() {
7883 SSL_library_init()
7884 ; return 0; }
7885 EOF
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7887   rm -rf conftest*
7888   eval "ac_cv_lib_$ac_lib_var=yes"
7889 else
7890   echo "configure: failed program was:" >&5
7891   cat conftest.$ac_ext >&5
7892   rm -rf conftest*
7893   eval "ac_cv_lib_$ac_lib_var=no"
7894 fi
7895 rm -f conftest*
7896 LIBS="$ac_save_LIBS"
7897
7898 fi
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7900   echo "$ac_t""yes" 1>&6
7901   SSL_LIB="-lssl $SSL_LIB"
7902 else
7903   echo "$ac_t""no" 1>&6
7904 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7905 fi
7906
7907         SSL_LIB="-L${OPENSSL_DIR}/lib $SSL_LIB"
7908         LIBS=$inn_save_LIBS
7909         cat >> confdefs.h <<\EOF
7910 #define HAVE_SSL 1
7911 EOF
7912
7913     fi
7914 fi
7915
7916
7917
7918
7919
7920 # Check whether --with-sasl or --without-sasl was given.
7921 if test "${with_sasl+set}" = set; then
7922   withval="$with_sasl"
7923   SASL_DIR=$with_sasl
7924 else
7925   SASL_DIR=no
7926 fi
7927
7928 echo $ac_n "checking if SASL is desired""... $ac_c" 1>&6
7929 echo "configure:7930: checking if SASL is desired" >&5
7930 if test x"$SASL_DIR" = xno ; then
7931     echo "$ac_t""no" 1>&6
7932     SASL_INC=
7933     SASL_LIB=
7934 else
7935     echo "$ac_t""yes" 1>&6
7936     echo $ac_n "checking for SASL location""... $ac_c" 1>&6
7937 echo "configure:7938: checking for SASL location" >&5
7938     if test x"$SASL_DIR" = xyes ; then
7939         for dir in $prefix /usr/local/sasl /usr/sasl /usr/pkg /usr/local ; do
7940             if test -f "$dir/include/sasl/sasl.h" ; then
7941                 SASL_DIR=$dir
7942                 break
7943             fi
7944         done
7945     fi
7946     if test x"$SASL_DIR" = xyes ; then
7947         if test -f "/usr/include/sasl/sasl.h" ; then
7948             SASL_INC=-I/usr/include/sasl
7949             SASL_DIR=/usr
7950             echo "$ac_t""$SASL_DIR" 1>&6
7951             inn_save_LIBS=$LIBS
7952             echo $ac_n "checking for sasl_getprop in -lsasl2""... $ac_c" 1>&6
7953 echo "configure:7954: checking for sasl_getprop in -lsasl2" >&5
7954 ac_lib_var=`echo sasl2'_'sasl_getprop | sed 'y%./+-%__p_%'`
7955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7956   echo $ac_n "(cached) $ac_c" 1>&6
7957 else
7958   ac_save_LIBS="$LIBS"
7959 LIBS="-lsasl2  $LIBS"
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7963 /* Override any gcc2 internal prototype to avoid an error.  */
7964 /* We use char because int might match the return type of a gcc2
7965     builtin and then its argument prototype would still apply.  */
7966 char sasl_getprop();
7967
7968 int main() {
7969 sasl_getprop()
7970 ; return 0; }
7971 EOF
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973   rm -rf conftest*
7974   eval "ac_cv_lib_$ac_lib_var=yes"
7975 else
7976   echo "configure: failed program was:" >&5
7977   cat conftest.$ac_ext >&5
7978   rm -rf conftest*
7979   eval "ac_cv_lib_$ac_lib_var=no"
7980 fi
7981 rm -f conftest*
7982 LIBS="$ac_save_LIBS"
7983
7984 fi
7985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7986   echo "$ac_t""yes" 1>&6
7987   SASL_LIB=-lsasl2
7988 else
7989   echo "$ac_t""no" 1>&6
7990 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
7991 fi
7992
7993             LIBS=$inn_save_LIBS
7994             cat >> confdefs.h <<\EOF
7995 #define HAVE_SASL 1
7996 EOF
7997
7998         else
7999             { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
8000         fi
8001     else
8002         echo "$ac_t""$SASL_DIR" 1>&6
8003         SASL_INC="-I${SASL_DIR}/include"
8004
8005         inn_save_LIBS=$LIBS
8006         LIBS="$LIBS -L${SASL_DIR}/lib"
8007         echo $ac_n "checking for sasl_getprop in -lsasl2""... $ac_c" 1>&6
8008 echo "configure:8009: checking for sasl_getprop in -lsasl2" >&5
8009 ac_lib_var=`echo sasl2'_'sasl_getprop | sed 'y%./+-%__p_%'`
8010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8011   echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013   ac_save_LIBS="$LIBS"
8014 LIBS="-lsasl2  $LIBS"
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error.  */
8019 /* We use char because int might match the return type of a gcc2
8020     builtin and then its argument prototype would still apply.  */
8021 char sasl_getprop();
8022
8023 int main() {
8024 sasl_getprop()
8025 ; return 0; }
8026 EOF
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8028   rm -rf conftest*
8029   eval "ac_cv_lib_$ac_lib_var=yes"
8030 else
8031   echo "configure: failed program was:" >&5
8032   cat conftest.$ac_ext >&5
8033   rm -rf conftest*
8034   eval "ac_cv_lib_$ac_lib_var=no"
8035 fi
8036 rm -f conftest*
8037 LIBS="$ac_save_LIBS"
8038
8039 fi
8040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8041   echo "$ac_t""yes" 1>&6
8042   SASL_LIB="-L${SASL_DIR}/lib -lsasl2"
8043 else
8044   echo "$ac_t""no" 1>&6
8045 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
8046 fi
8047
8048         LIBS=$inn_save_LIBS
8049         cat >> confdefs.h <<\EOF
8050 #define HAVE_SASL 1
8051 EOF
8052
8053     fi
8054 fi
8055
8056
8057
8058 if test x"$KRB5_INC" != x ; then
8059     inn_save_LIBS=$LIBS
8060 LIBS=${KRB5_LIB}
8061
8062 echo $ac_n "checking for library containing krb5_parse_name""... $ac_c" 1>&6
8063 echo "configure:8064: checking for library containing krb5_parse_name" >&5
8064 if eval "test \"`echo '$''{'ac_cv_search_krb5_parse_name'+set}'`\" = set"; then
8065   echo $ac_n "(cached) $ac_c" 1>&6
8066 else
8067   ac_func_search_save_LIBS="$LIBS"
8068 ac_cv_search_krb5_parse_name="no"
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8072 /* Override any gcc2 internal prototype to avoid an error.  */
8073 /* We use char because int might match the return type of a gcc2
8074     builtin and then its argument prototype would still apply.  */
8075 char krb5_parse_name();
8076
8077 int main() {
8078 krb5_parse_name()
8079 ; return 0; }
8080 EOF
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082   rm -rf conftest*
8083   ac_cv_search_krb5_parse_name="none required"
8084 else
8085   echo "configure: failed program was:" >&5
8086   cat conftest.$ac_ext >&5
8087 fi
8088 rm -f conftest*
8089 test "$ac_cv_search_krb5_parse_name" = "no" && for i in krb5; do
8090 LIBS="-l$i $LIBS -lk5crypto -lcom_err $ac_func_search_save_LIBS"
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* Override any gcc2 internal prototype to avoid an error.  */
8095 /* We use char because int might match the return type of a gcc2
8096     builtin and then its argument prototype would still apply.  */
8097 char krb5_parse_name();
8098
8099 int main() {
8100 krb5_parse_name()
8101 ; return 0; }
8102 EOF
8103 if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8104   rm -rf conftest*
8105   ac_cv_search_krb5_parse_name="-l$i"
8106 break
8107 else
8108   echo "configure: failed program was:" >&5
8109   cat conftest.$ac_ext >&5
8110 fi
8111 rm -f conftest*
8112 done
8113 LIBS="$ac_func_search_save_LIBS"
8114 fi
8115
8116 echo "$ac_t""$ac_cv_search_krb5_parse_name" 1>&6
8117 if test "$ac_cv_search_krb5_parse_name" != "no"; then
8118   test "$ac_cv_search_krb5_parse_name" = "none required" || LIBS="$ac_cv_search_krb5_parse_name $LIBS"
8119   KRB5_LIB=$LIBS
8120                 KRB5_AUTH="auth_krb5"
8121          KRB5_LIB="$KRB5_LDFLAGS $KRB5_LIB -lk5crypto -lcom_err"
8122          
8123          
8124          for ac_hdr in et/com_err.h
8125 do
8126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8128 echo "configure:8129: checking for $ac_hdr" >&5
8129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8130   echo $ac_n "(cached) $ac_c" 1>&6
8131 else
8132   cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8135 #include <$ac_hdr>
8136 EOF
8137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8138 { (eval echo configure:8139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8140 if test -z "$ac_err"; then
8141   rm -rf conftest*
8142   eval "ac_cv_header_$ac_safe=yes"
8143 else
8144   echo "$ac_err" >&5
8145   echo "configure: failed program was:" >&5
8146   cat conftest.$ac_ext >&5
8147   rm -rf conftest*
8148   eval "ac_cv_header_$ac_safe=no"
8149 fi
8150 rm -f conftest*
8151 fi
8152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8153   echo "$ac_t""yes" 1>&6
8154     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8155   cat >> confdefs.h <<EOF
8156 #define $ac_tr_hdr 1
8157 EOF
8158  
8159 else
8160   echo "$ac_t""no" 1>&6
8161 fi
8162 done
8163
8164 else :
8165   
8166 fi
8167 LIBS=$inn_save_LIBS
8168
8169 fi
8170
8171 if test x"$KRB5_INC" != x ; then
8172     inn_save_LIBS=$LIBS
8173     LIBS=$KRB5_LIB
8174     for ac_func in krb5_init_ets
8175 do
8176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8177 echo "configure:8178: checking for $ac_func" >&5
8178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8179   echo $ac_n "(cached) $ac_c" 1>&6
8180 else
8181   cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8184 /* System header to define __stub macros and hopefully few prototypes,
8185     which can conflict with char $ac_func(); below.  */
8186 #include <assert.h>
8187 /* Override any gcc2 internal prototype to avoid an error.  */
8188 /* We use char because int might match the return type of a gcc2
8189     builtin and then its argument prototype would still apply.  */
8190 char $ac_func();
8191
8192 int main() {
8193
8194 /* The GNU C library defines this for functions which it implements
8195     to always fail with ENOSYS.  Some functions are actually named
8196     something starting with __ and the normal name is an alias.  */
8197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8198 choke me
8199 #else
8200 $ac_func();
8201 #endif
8202
8203 ; return 0; }
8204 EOF
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8206   rm -rf conftest*
8207   eval "ac_cv_func_$ac_func=yes"
8208 else
8209   echo "configure: failed program was:" >&5
8210   cat conftest.$ac_ext >&5
8211   rm -rf conftest*
8212   eval "ac_cv_func_$ac_func=no"
8213 fi
8214 rm -f conftest*
8215 fi
8216
8217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8218   echo "$ac_t""yes" 1>&6
8219     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8220   cat >> confdefs.h <<EOF
8221 #define $ac_tr_func 1
8222 EOF
8223  
8224 else
8225   echo "$ac_t""no" 1>&6
8226 fi
8227 done
8228
8229     LIBS=$inn_save_LIBS
8230 fi
8231
8232 if test x"$DO_PERL" = xDO ; then
8233     echo $ac_n "checking for Perl linkage""... $ac_c" 1>&6
8234 echo "configure:8235: checking for Perl linkage" >&5
8235     inn_perl_core_path=`$_PATH_PERL -MConfig -e 'print $Config{archlibexp}'`
8236     inn_perl_core_flags=`$_PATH_PERL -MExtUtils::Embed -e ccopts`
8237     inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -1`
8238     inn_perl_core_libs=" $inn_perl_core_libs "
8239     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lc / /'`
8240     for i in $LIBS ; do
8241         inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed "s/ $i / /"`
8242     done
8243     case $host in
8244     *-linux*)
8245         inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lgdbm / /'`
8246         ;;
8247     *-cygwin*)
8248         inn_perl_libname=`$_PATH_PERL -MConfig -e 'print $Config{libperl}'`
8249         inn_perl_libname=`echo "$inn_perl_libname" | sed 's/^lib//; s/\.a$//'`
8250         inn_perl_core_libs="${inn_perl_core_libs}-l$inn_perl_libname"
8251         ;;
8252     esac
8253     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/^  *//'`
8254     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/  *$//'`
8255     inn_perl_core_flags=" $inn_perl_core_flags "
8256     if test x"$inn_enable_largefiles" != xyes ; then
8257         for f in -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES ; do
8258             inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed "s/ $f / /"`
8259         done
8260     fi
8261     inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/^  *//'`
8262     inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/  *$//'`
8263     PERL_INC="$inn_perl_core_flags"
8264     PERL_LIB="$inn_perl_core_libs"
8265     echo "$ac_t""$inn_perl_core_path" 1>&6
8266 else
8267     PERL_INC=''
8268     PERL_LIB=''
8269 fi
8270
8271
8272
8273 if test x"$DO_PYTHON" = xdefine ; then
8274     echo $ac_n "checking for Python linkage""... $ac_c" 1>&6
8275 echo "configure:8276: checking for Python linkage" >&5
8276     py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
8277     py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
8278     py_libdir="${py_prefix}/lib/python${py_ver}"
8279     PYTHON_INC="-I${py_prefix}/include/python${py_ver}"
8280     py_linkage=""
8281     for py_linkpart in LIBS LIBC LIBM LOCALMODLIBS BASEMODLIBS \
8282                        LINKFORSHARED LDFLAGS ; do
8283         py_linkage="$py_linkage "`grep "^${py_linkpart}=" \
8284                                        $py_libdir/config/Makefile \
8285                                   | sed -e 's/^.*=//'`
8286     done
8287     PYTHON_LIB="-L$py_libdir/config -lpython$py_ver $py_linkage"
8288     PYTHON_LIB=`echo $PYTHON_LIB | sed -e 's/ \\t*/ /g'`
8289     echo "$ac_t""$py_libdir" 1>&6
8290 else
8291     PYTHON_LIB=""
8292     PYTHON_INC=""
8293 fi
8294
8295
8296
8297 if test x"$inn_enable_largefiles" = xyes ; then
8298     echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8299 echo "configure:8300: checking for largefile linkage" >&5
8300     case "$host" in
8301     *-aix4.01*)
8302         echo "$ac_t""no" 1>&6
8303         { echo "configure: error: AIX before 4.2 does not support large files" 1>&2; exit 1; }
8304         ;;
8305     *-aix4*)
8306         echo "$ac_t""ok" 1>&6
8307         LFS_CFLAGS="-D_LARGE_FILES"
8308         LFS_LDFLAGS=""
8309         LFS_LIBS=""
8310         ;;
8311     *-hpux*)
8312         echo "$ac_t""ok" 1>&6
8313         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8314         LFS_LDFLAGS=""
8315         LFS_LIBS=""
8316         ;;
8317     *-irix*)
8318         echo "$ac_t""no" 1>&6
8319         { echo "configure: error: Large files not supported on this platform" 1>&2; exit 1; }
8320         ;;
8321     *-linux*)
8322         echo "$ac_t""maybe" 1>&6
8323         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8324         LFS_LDFLAGS=""
8325         LFS_LIBS=""
8326         cat >> confdefs.h <<\EOF
8327 #define _GNU_SOURCE 1
8328 EOF
8329
8330         ;;
8331     *-solaris*)
8332         echo "$ac_t""ok" 1>&6
8333         # Extract the first word of "getconf", so it can be a program name with args.
8334 set dummy getconf; ac_word=$2
8335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8336 echo "configure:8337: checking for $ac_word" >&5
8337 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8338   echo $ac_n "(cached) $ac_c" 1>&6
8339 else
8340   case "$GETCONF" in
8341   /*)
8342   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8343   ;;
8344   ?:/*)                  
8345   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
8346   ;;
8347   *)
8348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8349   ac_dummy="$PATH"
8350   for ac_dir in $ac_dummy; do 
8351     test -z "$ac_dir" && ac_dir=.
8352     if test -f $ac_dir/$ac_word; then
8353       ac_cv_path_GETCONF="$ac_dir/$ac_word"
8354       break
8355     fi
8356   done
8357   IFS="$ac_save_ifs"
8358   ;;
8359 esac
8360 fi
8361 GETCONF="$ac_cv_path_GETCONF"
8362 if test -n "$GETCONF"; then
8363   echo "$ac_t""$GETCONF" 1>&6
8364 else
8365   echo "$ac_t""no" 1>&6
8366 fi
8367
8368         if test -z "$GETCONF" ; then
8369             { echo "configure: error: getconf required to configure large file support" 1>&2; exit 1; }
8370         fi
8371         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
8372         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
8373         LFS_LIBS=`$GETCONF LFS_LIBS`
8374         ;;
8375     *)
8376         echo "$ac_t""maybe" 1>&6
8377         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8378         LFS_LDFLAGS=""
8379         LFS_LIBS=""
8380         ;;
8381     esac
8382     
8383     
8384     
8385 fi
8386
8387 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8388 echo "configure:8389: checking for ANSI C header files" >&5
8389 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8390   echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8392   cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 #include <stdlib.h>
8396 #include <stdarg.h>
8397 #include <string.h>
8398 #include <float.h>
8399 EOF
8400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8401 { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8403 if test -z "$ac_err"; then
8404   rm -rf conftest*
8405   ac_cv_header_stdc=yes
8406 else
8407   echo "$ac_err" >&5
8408   echo "configure: failed program was:" >&5
8409   cat conftest.$ac_ext >&5
8410   rm -rf conftest*
8411   ac_cv_header_stdc=no
8412 fi
8413 rm -f conftest*
8414
8415 if test $ac_cv_header_stdc = yes; then
8416   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 #include <string.h>
8421 EOF
8422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8423   egrep "memchr" >/dev/null 2>&1; then
8424   :
8425 else
8426   rm -rf conftest*
8427   ac_cv_header_stdc=no
8428 fi
8429 rm -f conftest*
8430
8431 fi
8432
8433 if test $ac_cv_header_stdc = yes; then
8434   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <stdlib.h>
8439 EOF
8440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8441   egrep "free" >/dev/null 2>&1; then
8442   :
8443 else
8444   rm -rf conftest*
8445   ac_cv_header_stdc=no
8446 fi
8447 rm -f conftest*
8448
8449 fi
8450
8451 if test $ac_cv_header_stdc = yes; then
8452   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8453 if test "$cross_compiling" = yes; then
8454   :
8455 else
8456   cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 #include <ctype.h>
8460 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8461 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8463 int main () { int i; for (i = 0; i < 256; i++)
8464 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8465 exit (0); }
8466
8467 EOF
8468 if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8469 then
8470   :
8471 else
8472   echo "configure: failed program was:" >&5
8473   cat conftest.$ac_ext >&5
8474   rm -fr conftest*
8475   ac_cv_header_stdc=no
8476 fi
8477 rm -fr conftest*
8478 fi
8479
8480 fi
8481 fi
8482
8483 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8484 if test $ac_cv_header_stdc = yes; then
8485   cat >> confdefs.h <<\EOF
8486 #define STDC_HEADERS 1
8487 EOF
8488
8489 fi
8490
8491
8492 if test x"$ac_cv_header_stdc" = xno ; then
8493     for ac_hdr in memory.h stdlib.h strings.h
8494 do
8495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8497 echo "configure:8498: checking for $ac_hdr" >&5
8498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8499   echo $ac_n "(cached) $ac_c" 1>&6
8500 else
8501   cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8504 #include <$ac_hdr>
8505 EOF
8506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8507 { (eval echo configure:8508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8509 if test -z "$ac_err"; then
8510   rm -rf conftest*
8511   eval "ac_cv_header_$ac_safe=yes"
8512 else
8513   echo "$ac_err" >&5
8514   echo "configure: failed program was:" >&5
8515   cat conftest.$ac_ext >&5
8516   rm -rf conftest*
8517   eval "ac_cv_header_$ac_safe=no"
8518 fi
8519 rm -f conftest*
8520 fi
8521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8522   echo "$ac_t""yes" 1>&6
8523     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8524   cat >> confdefs.h <<EOF
8525 #define $ac_tr_hdr 1
8526 EOF
8527  
8528 else
8529   echo "$ac_t""no" 1>&6
8530 fi
8531 done
8532
8533     for ac_func in memcpy strchr
8534 do
8535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8536 echo "configure:8537: checking for $ac_func" >&5
8537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8538   echo $ac_n "(cached) $ac_c" 1>&6
8539 else
8540   cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 /* System header to define __stub macros and hopefully few prototypes,
8544     which can conflict with char $ac_func(); below.  */
8545 #include <assert.h>
8546 /* Override any gcc2 internal prototype to avoid an error.  */
8547 /* We use char because int might match the return type of a gcc2
8548     builtin and then its argument prototype would still apply.  */
8549 char $ac_func();
8550
8551 int main() {
8552
8553 /* The GNU C library defines this for functions which it implements
8554     to always fail with ENOSYS.  Some functions are actually named
8555     something starting with __ and the normal name is an alias.  */
8556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8557 choke me
8558 #else
8559 $ac_func();
8560 #endif
8561
8562 ; return 0; }
8563 EOF
8564 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8565   rm -rf conftest*
8566   eval "ac_cv_func_$ac_func=yes"
8567 else
8568   echo "configure: failed program was:" >&5
8569   cat conftest.$ac_ext >&5
8570   rm -rf conftest*
8571   eval "ac_cv_func_$ac_func=no"
8572 fi
8573 rm -f conftest*
8574 fi
8575
8576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8577   echo "$ac_t""yes" 1>&6
8578     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8579   cat >> confdefs.h <<EOF
8580 #define $ac_tr_func 1
8581 EOF
8582  
8583 else
8584   echo "$ac_t""no" 1>&6
8585 fi
8586 done
8587
8588 fi
8589
8590 ac_header_dirent=no
8591 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8592 do
8593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8594 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8595 echo "configure:8596: checking for $ac_hdr that defines DIR" >&5
8596 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8597   echo $ac_n "(cached) $ac_c" 1>&6
8598 else
8599   cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 #include <sys/types.h>
8603 #include <$ac_hdr>
8604 int main() {
8605 DIR *dirp = 0;
8606 ; return 0; }
8607 EOF
8608 if { (eval echo configure:8609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8609   rm -rf conftest*
8610   eval "ac_cv_header_dirent_$ac_safe=yes"
8611 else
8612   echo "configure: failed program was:" >&5
8613   cat conftest.$ac_ext >&5
8614   rm -rf conftest*
8615   eval "ac_cv_header_dirent_$ac_safe=no"
8616 fi
8617 rm -f conftest*
8618 fi
8619 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8620   echo "$ac_t""yes" 1>&6
8621     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8622   cat >> confdefs.h <<EOF
8623 #define $ac_tr_hdr 1
8624 EOF
8625  ac_header_dirent=$ac_hdr; break
8626 else
8627   echo "$ac_t""no" 1>&6
8628 fi
8629 done
8630 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8631 if test $ac_header_dirent = dirent.h; then
8632 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8633 echo "configure:8634: checking for opendir in -ldir" >&5
8634 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8636   echo $ac_n "(cached) $ac_c" 1>&6
8637 else
8638   ac_save_LIBS="$LIBS"
8639 LIBS="-ldir  $LIBS"
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 /* Override any gcc2 internal prototype to avoid an error.  */
8644 /* We use char because int might match the return type of a gcc2
8645     builtin and then its argument prototype would still apply.  */
8646 char opendir();
8647
8648 int main() {
8649 opendir()
8650 ; return 0; }
8651 EOF
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8653   rm -rf conftest*
8654   eval "ac_cv_lib_$ac_lib_var=yes"
8655 else
8656   echo "configure: failed program was:" >&5
8657   cat conftest.$ac_ext >&5
8658   rm -rf conftest*
8659   eval "ac_cv_lib_$ac_lib_var=no"
8660 fi
8661 rm -f conftest*
8662 LIBS="$ac_save_LIBS"
8663
8664 fi
8665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8666   echo "$ac_t""yes" 1>&6
8667   LIBS="$LIBS -ldir"
8668 else
8669   echo "$ac_t""no" 1>&6
8670 fi
8671
8672 else
8673 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8674 echo "configure:8675: checking for opendir in -lx" >&5
8675 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8677   echo $ac_n "(cached) $ac_c" 1>&6
8678 else
8679   ac_save_LIBS="$LIBS"
8680 LIBS="-lx  $LIBS"
8681 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure"
8683 #include "confdefs.h"
8684 /* Override any gcc2 internal prototype to avoid an error.  */
8685 /* We use char because int might match the return type of a gcc2
8686     builtin and then its argument prototype would still apply.  */
8687 char opendir();
8688
8689 int main() {
8690 opendir()
8691 ; return 0; }
8692 EOF
8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8694   rm -rf conftest*
8695   eval "ac_cv_lib_$ac_lib_var=yes"
8696 else
8697   echo "configure: failed program was:" >&5
8698   cat conftest.$ac_ext >&5
8699   rm -rf conftest*
8700   eval "ac_cv_lib_$ac_lib_var=no"
8701 fi
8702 rm -f conftest*
8703 LIBS="$ac_save_LIBS"
8704
8705 fi
8706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8707   echo "$ac_t""yes" 1>&6
8708   LIBS="$LIBS -lx"
8709 else
8710   echo "$ac_t""no" 1>&6
8711 fi
8712
8713 fi
8714
8715 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8716 echo "configure:8717: checking whether time.h and sys/time.h may both be included" >&5
8717 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8718   echo $ac_n "(cached) $ac_c" 1>&6
8719 else
8720   cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723 #include <sys/types.h>
8724 #include <sys/time.h>
8725 #include <time.h>
8726 int main() {
8727 struct tm *tp;
8728 ; return 0; }
8729 EOF
8730 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8731   rm -rf conftest*
8732   ac_cv_header_time=yes
8733 else
8734   echo "configure: failed program was:" >&5
8735   cat conftest.$ac_ext >&5
8736   rm -rf conftest*
8737   ac_cv_header_time=no
8738 fi
8739 rm -f conftest*
8740 fi
8741
8742 echo "$ac_t""$ac_cv_header_time" 1>&6
8743 if test $ac_cv_header_time = yes; then
8744   cat >> confdefs.h <<\EOF
8745 #define TIME_WITH_SYS_TIME 1
8746 EOF
8747
8748 fi
8749
8750 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8751 echo "configure:8752: checking for sys/wait.h that is POSIX.1 compatible" >&5
8752 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8753   echo $ac_n "(cached) $ac_c" 1>&6
8754 else
8755   cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 #include <sys/types.h>
8759 #include <sys/wait.h>
8760 #ifndef WEXITSTATUS
8761 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8762 #endif
8763 #ifndef WIFEXITED
8764 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8765 #endif
8766 int main() {
8767 int s;
8768 wait (&s);
8769 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8770 ; return 0; }
8771 EOF
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8773   rm -rf conftest*
8774   ac_cv_header_sys_wait_h=yes
8775 else
8776   echo "configure: failed program was:" >&5
8777   cat conftest.$ac_ext >&5
8778   rm -rf conftest*
8779   ac_cv_header_sys_wait_h=no
8780 fi
8781 rm -f conftest*
8782 fi
8783
8784 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8785 if test $ac_cv_header_sys_wait_h = yes; then
8786   cat >> confdefs.h <<\EOF
8787 #define HAVE_SYS_WAIT_H 1
8788 EOF
8789
8790 fi
8791
8792
8793 for ac_hdr in crypt.h inttypes.h limits.h ndbm.h pam/pam_appl.h stdbool.h \
8794                  stddef.h stdint.h string.h sys/bitypes.h sys/filio.h \
8795                  sys/loadavg.h sys/param.h sys/select.h sys/sysinfo.h \
8796                  sys/time.h unistd.h sys/inotify.h
8797 do
8798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8800 echo "configure:8801: checking for $ac_hdr" >&5
8801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8802   echo $ac_n "(cached) $ac_c" 1>&6
8803 else
8804   cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8807 #include <$ac_hdr>
8808 EOF
8809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8810 { (eval echo configure:8811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8812 if test -z "$ac_err"; then
8813   rm -rf conftest*
8814   eval "ac_cv_header_$ac_safe=yes"
8815 else
8816   echo "$ac_err" >&5
8817   echo "configure: failed program was:" >&5
8818   cat conftest.$ac_ext >&5
8819   rm -rf conftest*
8820   eval "ac_cv_header_$ac_safe=no"
8821 fi
8822 rm -f conftest*
8823 fi
8824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8825   echo "$ac_t""yes" 1>&6
8826     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8827   cat >> confdefs.h <<EOF
8828 #define $ac_tr_hdr 1
8829 EOF
8830  
8831 else
8832   echo "$ac_t""no" 1>&6
8833 fi
8834 done
8835
8836
8837 if test x"$ac_cv_header_ndbm_h" = xno ; then
8838     for ac_hdr in db1/ndbm.h gdbm-ndbm.h
8839 do
8840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8842 echo "configure:8843: checking for $ac_hdr" >&5
8843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8844   echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846   cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 #include <$ac_hdr>
8850 EOF
8851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8852 { (eval echo configure:8853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8854 if test -z "$ac_err"; then
8855   rm -rf conftest*
8856   eval "ac_cv_header_$ac_safe=yes"
8857 else
8858   echo "$ac_err" >&5
8859   echo "configure: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   rm -rf conftest*
8862   eval "ac_cv_header_$ac_safe=no"
8863 fi
8864 rm -f conftest*
8865 fi
8866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8867   echo "$ac_t""yes" 1>&6
8868     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8869   cat >> confdefs.h <<EOF
8870 #define $ac_tr_hdr 1
8871 EOF
8872  
8873 else
8874   echo "$ac_t""no" 1>&6
8875 fi
8876 done
8877
8878 fi
8879
8880
8881 echo $ac_n "checking whether h_errno must be declared""... $ac_c" 1>&6
8882 echo "configure:8883: checking whether h_errno must be declared" >&5
8883 if eval "test \"`echo '$''{'inn_cv_herrno_need_decl'+set}'`\" = set"; then
8884   echo $ac_n "(cached) $ac_c" 1>&6
8885 else
8886   cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 #include <netdb.h>
8890 int main() {
8891 h_errno = 0;
8892 ; return 0; }
8893 EOF
8894 if { (eval echo configure:8895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8895   rm -rf conftest*
8896   inn_cv_herrno_need_decl=no
8897 else
8898   echo "configure: failed program was:" >&5
8899   cat conftest.$ac_ext >&5
8900   rm -rf conftest*
8901   inn_cv_herrno_need_decl=yes
8902 fi
8903 rm -f conftest*
8904 fi
8905
8906 echo "$ac_t""$inn_cv_herrno_need_decl" 1>&6
8907 if test "$inn_cv_herrno_need_decl" = yes ; then
8908     cat >> confdefs.h <<\EOF
8909 #define NEED_HERRNO_DECLARATION 1
8910 EOF
8911
8912 fi
8913
8914
8915
8916
8917 echo $ac_n "checking whether inet_aton must be declared""... $ac_c" 1>&6
8918 echo "configure:8919: checking whether inet_aton must be declared" >&5
8919 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_aton'+set}'`\" = set"; then
8920   echo $ac_n "(cached) $ac_c" 1>&6
8921 else
8922   cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 #include <stdio.h>
8926 #include <sys/types.h>
8927 #if STDC_HEADERS
8928 # include <stdlib.h>
8929 # include <stddef.h>
8930 #else
8931 # if HAVE_STDLIB_H
8932 #  include <stdlib.h>
8933 # endif
8934 # if !HAVE_STRCHR
8935 #  define strchr index
8936 #  define strrchr rindex
8937 # endif
8938 #endif
8939 #if HAVE_STRING_H
8940 # if !STDC_HEADERS && HAVE_MEMORY_H
8941 #  include <memory.h>
8942 # endif
8943 # include <string.h>
8944 #else
8945 # if HAVE_STRINGS_H
8946 #  include <strings.h>
8947 # endif
8948 #endif
8949 #if HAVE_UNISTD_H
8950 # include <unistd.h>
8951 #endif
8952 #include <netinet/in.h>
8953 #include <arpa/inet.h>
8954 int main() {
8955 char *(*pfn) = (char *(*)) inet_aton
8956 ; return 0; }
8957 EOF
8958 if { (eval echo configure:8959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8959   rm -rf conftest*
8960   inn_cv_decl_needed_inet_aton=no
8961 else
8962   echo "configure: failed program was:" >&5
8963   cat conftest.$ac_ext >&5
8964   rm -rf conftest*
8965   inn_cv_decl_needed_inet_aton=yes
8966 fi
8967 rm -f conftest*
8968 fi
8969
8970 if test $inn_cv_decl_needed_inet_aton = yes ; then
8971     echo "$ac_t""yes" 1>&6
8972     cat >> confdefs.h <<\EOF
8973 #define NEED_DECLARATION_INET_ATON 1
8974 EOF
8975
8976 else
8977     echo "$ac_t""no" 1>&6
8978 fi
8979 echo $ac_n "checking whether inet_ntoa must be declared""... $ac_c" 1>&6
8980 echo "configure:8981: checking whether inet_ntoa must be declared" >&5
8981 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_ntoa'+set}'`\" = set"; then
8982   echo $ac_n "(cached) $ac_c" 1>&6
8983 else
8984   cat > conftest.$ac_ext <<EOF
8985 #line 8986 "configure"
8986 #include "confdefs.h"
8987 #include <stdio.h>
8988 #include <sys/types.h>
8989 #if STDC_HEADERS
8990 # include <stdlib.h>
8991 # include <stddef.h>
8992 #else
8993 # if HAVE_STDLIB_H
8994 #  include <stdlib.h>
8995 # endif
8996 # if !HAVE_STRCHR
8997 #  define strchr index
8998 #  define strrchr rindex
8999 # endif
9000 #endif
9001 #if HAVE_STRING_H
9002 # if !STDC_HEADERS && HAVE_MEMORY_H
9003 #  include <memory.h>
9004 # endif
9005 # include <string.h>
9006 #else
9007 # if HAVE_STRINGS_H
9008 #  include <strings.h>
9009 # endif
9010 #endif
9011 #if HAVE_UNISTD_H
9012 # include <unistd.h>
9013 #endif
9014 #include <netinet/in.h>
9015 #include <arpa/inet.h>
9016 int main() {
9017 char *(*pfn) = (char *(*)) inet_ntoa
9018 ; return 0; }
9019 EOF
9020 if { (eval echo configure:9021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9021   rm -rf conftest*
9022   inn_cv_decl_needed_inet_ntoa=no
9023 else
9024   echo "configure: failed program was:" >&5
9025   cat conftest.$ac_ext >&5
9026   rm -rf conftest*
9027   inn_cv_decl_needed_inet_ntoa=yes
9028 fi
9029 rm -f conftest*
9030 fi
9031
9032 if test $inn_cv_decl_needed_inet_ntoa = yes ; then
9033     echo "$ac_t""yes" 1>&6
9034     cat >> confdefs.h <<\EOF
9035 #define NEED_DECLARATION_INET_NTOA 1
9036 EOF
9037
9038 else
9039     echo "$ac_t""no" 1>&6
9040 fi
9041 echo $ac_n "checking whether snprintf must be declared""... $ac_c" 1>&6
9042 echo "configure:9043: checking whether snprintf must be declared" >&5
9043 if eval "test \"`echo '$''{'inn_cv_decl_needed_snprintf'+set}'`\" = set"; then
9044   echo $ac_n "(cached) $ac_c" 1>&6
9045 else
9046   cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 #include <stdio.h>
9050 #include <sys/types.h>
9051 #if STDC_HEADERS
9052 # include <stdlib.h>
9053 # include <stddef.h>
9054 #else
9055 # if HAVE_STDLIB_H
9056 #  include <stdlib.h>
9057 # endif
9058 # if !HAVE_STRCHR
9059 #  define strchr index
9060 #  define strrchr rindex
9061 # endif
9062 #endif
9063 #if HAVE_STRING_H
9064 # if !STDC_HEADERS && HAVE_MEMORY_H
9065 #  include <memory.h>
9066 # endif
9067 # include <string.h>
9068 #else
9069 # if HAVE_STRINGS_H
9070 #  include <strings.h>
9071 # endif
9072 #endif
9073 #if HAVE_UNISTD_H
9074 # include <unistd.h>
9075 #endif
9076
9077 int main() {
9078 char *(*pfn) = (char *(*)) snprintf
9079 ; return 0; }
9080 EOF
9081 if { (eval echo configure:9082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9082   rm -rf conftest*
9083   inn_cv_decl_needed_snprintf=no
9084 else
9085   echo "configure: failed program was:" >&5
9086   cat conftest.$ac_ext >&5
9087   rm -rf conftest*
9088   inn_cv_decl_needed_snprintf=yes
9089 fi
9090 rm -f conftest*
9091 fi
9092
9093 if test $inn_cv_decl_needed_snprintf = yes ; then
9094     echo "$ac_t""yes" 1>&6
9095     cat >> confdefs.h <<\EOF
9096 #define NEED_DECLARATION_SNPRINTF 1
9097 EOF
9098
9099 else
9100     echo "$ac_t""no" 1>&6
9101 fi
9102 echo $ac_n "checking whether vsnprintf must be declared""... $ac_c" 1>&6
9103 echo "configure:9104: checking whether vsnprintf must be declared" >&5
9104 if eval "test \"`echo '$''{'inn_cv_decl_needed_vsnprintf'+set}'`\" = set"; then
9105   echo $ac_n "(cached) $ac_c" 1>&6
9106 else
9107   cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9110 #include <stdio.h>
9111 #include <sys/types.h>
9112 #if STDC_HEADERS
9113 # include <stdlib.h>
9114 # include <stddef.h>
9115 #else
9116 # if HAVE_STDLIB_H
9117 #  include <stdlib.h>
9118 # endif
9119 # if !HAVE_STRCHR
9120 #  define strchr index
9121 #  define strrchr rindex
9122 # endif
9123 #endif
9124 #if HAVE_STRING_H
9125 # if !STDC_HEADERS && HAVE_MEMORY_H
9126 #  include <memory.h>
9127 # endif
9128 # include <string.h>
9129 #else
9130 # if HAVE_STRINGS_H
9131 #  include <strings.h>
9132 # endif
9133 #endif
9134 #if HAVE_UNISTD_H
9135 # include <unistd.h>
9136 #endif
9137
9138 int main() {
9139 char *(*pfn) = (char *(*)) vsnprintf
9140 ; return 0; }
9141 EOF
9142 if { (eval echo configure:9143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9143   rm -rf conftest*
9144   inn_cv_decl_needed_vsnprintf=no
9145 else
9146   echo "configure: failed program was:" >&5
9147   cat conftest.$ac_ext >&5
9148   rm -rf conftest*
9149   inn_cv_decl_needed_vsnprintf=yes
9150 fi
9151 rm -f conftest*
9152 fi
9153
9154 if test $inn_cv_decl_needed_vsnprintf = yes ; then
9155     echo "$ac_t""yes" 1>&6
9156     cat >> confdefs.h <<\EOF
9157 #define NEED_DECLARATION_VSNPRINTF 1
9158 EOF
9159
9160 else
9161     echo "$ac_t""no" 1>&6
9162 fi
9163
9164 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9165 echo "configure:9166: checking whether byte ordering is bigendian" >&5
9166 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9167   echo $ac_n "(cached) $ac_c" 1>&6
9168 else
9169   ac_cv_c_bigendian=unknown
9170 # See if sys/param.h defines the BYTE_ORDER macro.
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 #include <sys/types.h>
9175 #include <sys/param.h>
9176 int main() {
9177
9178 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9179  bogus endian macros
9180 #endif
9181 ; return 0; }
9182 EOF
9183 if { (eval echo configure:9184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9184   rm -rf conftest*
9185   # It does; now see whether it defined to BIG_ENDIAN or not.
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 #include <sys/types.h>
9190 #include <sys/param.h>
9191 int main() {
9192
9193 #if BYTE_ORDER != BIG_ENDIAN
9194  not big endian
9195 #endif
9196 ; return 0; }
9197 EOF
9198 if { (eval echo configure:9199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9199   rm -rf conftest*
9200   ac_cv_c_bigendian=yes
9201 else
9202   echo "configure: failed program was:" >&5
9203   cat conftest.$ac_ext >&5
9204   rm -rf conftest*
9205   ac_cv_c_bigendian=no
9206 fi
9207 rm -f conftest*
9208 else
9209   echo "configure: failed program was:" >&5
9210   cat conftest.$ac_ext >&5
9211 fi
9212 rm -f conftest*
9213 if test $ac_cv_c_bigendian = unknown; then
9214 if test "$cross_compiling" = yes; then
9215     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9216 else
9217   cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 main () {
9221   /* Are we little or big endian?  From Harbison&Steele.  */
9222   union
9223   {
9224     long l;
9225     char c[sizeof (long)];
9226   } u;
9227   u.l = 1;
9228   exit (u.c[sizeof (long) - 1] == 1);
9229 }
9230 EOF
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9232 then
9233   ac_cv_c_bigendian=no
9234 else
9235   echo "configure: failed program was:" >&5
9236   cat conftest.$ac_ext >&5
9237   rm -fr conftest*
9238   ac_cv_c_bigendian=yes
9239 fi
9240 rm -fr conftest*
9241 fi
9242
9243 fi
9244 fi
9245
9246 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9247 if test $ac_cv_c_bigendian = yes; then
9248   cat >> confdefs.h <<\EOF
9249 #define WORDS_BIGENDIAN 1
9250 EOF
9251
9252 fi
9253
9254 echo $ac_n "checking for working const""... $ac_c" 1>&6
9255 echo "configure:9256: checking for working const" >&5
9256 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9257   echo $ac_n "(cached) $ac_c" 1>&6
9258 else
9259   cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9262
9263 int main() {
9264
9265 /* Ultrix mips cc rejects this.  */
9266 typedef int charset[2]; const charset x;
9267 /* SunOS 4.1.1 cc rejects this.  */
9268 char const *const *ccp;
9269 char **p;
9270 /* NEC SVR4.0.2 mips cc rejects this.  */
9271 struct point {int x, y;};
9272 static struct point const zero = {0,0};
9273 /* AIX XL C 1.02.0.0 rejects this.
9274    It does not let you subtract one const X* pointer from another in an arm
9275    of an if-expression whose if-part is not a constant expression */
9276 const char *g = "string";
9277 ccp = &g + (g ? g-g : 0);
9278 /* HPUX 7.0 cc rejects these. */
9279 ++ccp;
9280 p = (char**) ccp;
9281 ccp = (char const *const *) p;
9282 { /* SCO 3.2v4 cc rejects this.  */
9283   char *t;
9284   char const *s = 0 ? (char *) 0 : (char const *) 0;
9285
9286   *t++ = 0;
9287 }
9288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9289   int x[] = {25, 17};
9290   const int *foo = &x[0];
9291   ++foo;
9292 }
9293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9294   typedef const int *iptr;
9295   iptr p = 0;
9296   ++p;
9297 }
9298 { /* AIX XL C 1.02.0.0 rejects this saying
9299      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9300   struct s { int j; const int *ap[3]; };
9301   struct s *b; b->j = 5;
9302 }
9303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9304   const int foo = 10;
9305 }
9306
9307 ; return 0; }
9308 EOF
9309 if { (eval echo configure:9310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9310   rm -rf conftest*
9311   ac_cv_c_const=yes
9312 else
9313   echo "configure: failed program was:" >&5
9314   cat conftest.$ac_ext >&5
9315   rm -rf conftest*
9316   ac_cv_c_const=no
9317 fi
9318 rm -f conftest*
9319 fi
9320
9321 echo "$ac_t""$ac_cv_c_const" 1>&6
9322 if test $ac_cv_c_const = no; then
9323   cat >> confdefs.h <<\EOF
9324 #define const 
9325 EOF
9326
9327 fi
9328
9329 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9330 echo "configure:9331: checking for st_blksize in struct stat" >&5
9331 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9332   echo $ac_n "(cached) $ac_c" 1>&6
9333 else
9334   cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9337 #include <sys/types.h>
9338 #include <sys/stat.h>
9339 int main() {
9340 struct stat s; s.st_blksize;
9341 ; return 0; }
9342 EOF
9343 if { (eval echo configure:9344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9344   rm -rf conftest*
9345   ac_cv_struct_st_blksize=yes
9346 else
9347   echo "configure: failed program was:" >&5
9348   cat conftest.$ac_ext >&5
9349   rm -rf conftest*
9350   ac_cv_struct_st_blksize=no
9351 fi
9352 rm -f conftest*
9353 fi
9354
9355 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9356 if test $ac_cv_struct_st_blksize = yes; then
9357   cat >> confdefs.h <<\EOF
9358 #define HAVE_ST_BLKSIZE 1
9359 EOF
9360
9361 fi
9362
9363 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9364 echo "configure:9365: checking whether struct tm is in sys/time.h or time.h" >&5
9365 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9366   echo $ac_n "(cached) $ac_c" 1>&6
9367 else
9368   cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 #include <sys/types.h>
9372 #include <time.h>
9373 int main() {
9374 struct tm *tp; tp->tm_sec;
9375 ; return 0; }
9376 EOF
9377 if { (eval echo configure:9378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9378   rm -rf conftest*
9379   ac_cv_struct_tm=time.h
9380 else
9381   echo "configure: failed program was:" >&5
9382   cat conftest.$ac_ext >&5
9383   rm -rf conftest*
9384   ac_cv_struct_tm=sys/time.h
9385 fi
9386 rm -f conftest*
9387 fi
9388
9389 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9390 if test $ac_cv_struct_tm = sys/time.h; then
9391   cat >> confdefs.h <<\EOF
9392 #define TM_IN_SYS_TIME 1
9393 EOF
9394
9395 fi
9396
9397 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9398 echo "configure:9399: checking for size_t" >&5
9399 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9400   echo $ac_n "(cached) $ac_c" 1>&6
9401 else
9402   cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 #include <sys/types.h>
9406 #if STDC_HEADERS
9407 #include <stdlib.h>
9408 #include <stddef.h>
9409 #endif
9410 EOF
9411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9412   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9413   rm -rf conftest*
9414   ac_cv_type_size_t=yes
9415 else
9416   rm -rf conftest*
9417   ac_cv_type_size_t=no
9418 fi
9419 rm -f conftest*
9420
9421 fi
9422 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9423 if test $ac_cv_type_size_t = no; then
9424   cat >> confdefs.h <<\EOF
9425 #define size_t unsigned
9426 EOF
9427
9428 fi
9429
9430 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9431 echo "configure:9432: checking for uid_t in sys/types.h" >&5
9432 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9433   echo $ac_n "(cached) $ac_c" 1>&6
9434 else
9435   cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 #include <sys/types.h>
9439 EOF
9440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9441   egrep "uid_t" >/dev/null 2>&1; then
9442   rm -rf conftest*
9443   ac_cv_type_uid_t=yes
9444 else
9445   rm -rf conftest*
9446   ac_cv_type_uid_t=no
9447 fi
9448 rm -f conftest*
9449
9450 fi
9451
9452 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9453 if test $ac_cv_type_uid_t = no; then
9454   cat >> confdefs.h <<\EOF
9455 #define uid_t int
9456 EOF
9457
9458   cat >> confdefs.h <<\EOF
9459 #define gid_t int
9460 EOF
9461
9462 fi
9463
9464 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9465 echo "configure:9466: checking for off_t" >&5
9466 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9467   echo $ac_n "(cached) $ac_c" 1>&6
9468 else
9469   cat > conftest.$ac_ext <<EOF
9470 #line 9471 "configure"
9471 #include "confdefs.h"
9472 #include <sys/types.h>
9473 #if STDC_HEADERS
9474 #include <stdlib.h>
9475 #include <stddef.h>
9476 #endif
9477 EOF
9478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9479   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9480   rm -rf conftest*
9481   ac_cv_type_off_t=yes
9482 else
9483   rm -rf conftest*
9484   ac_cv_type_off_t=no
9485 fi
9486 rm -f conftest*
9487
9488 fi
9489 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9490 if test $ac_cv_type_off_t = no; then
9491   cat >> confdefs.h <<\EOF
9492 #define off_t long
9493 EOF
9494
9495 fi
9496
9497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9498 echo "configure:9499: checking for pid_t" >&5
9499 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9500   echo $ac_n "(cached) $ac_c" 1>&6
9501 else
9502   cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <sys/types.h>
9506 #if STDC_HEADERS
9507 #include <stdlib.h>
9508 #include <stddef.h>
9509 #endif
9510 EOF
9511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9512   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9513   rm -rf conftest*
9514   ac_cv_type_pid_t=yes
9515 else
9516   rm -rf conftest*
9517   ac_cv_type_pid_t=no
9518 fi
9519 rm -f conftest*
9520
9521 fi
9522 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9523 if test $ac_cv_type_pid_t = no; then
9524   cat >> confdefs.h <<\EOF
9525 #define pid_t int
9526 EOF
9527
9528 fi
9529
9530 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9531 echo "configure:9532: checking for ptrdiff_t" >&5
9532 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
9533   echo $ac_n "(cached) $ac_c" 1>&6
9534 else
9535   cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 #include <sys/types.h>
9539 #if STDC_HEADERS
9540 #include <stdlib.h>
9541 #include <stddef.h>
9542 #endif
9543 EOF
9544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9545   egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9546   rm -rf conftest*
9547   ac_cv_type_ptrdiff_t=yes
9548 else
9549   rm -rf conftest*
9550   ac_cv_type_ptrdiff_t=no
9551 fi
9552 rm -f conftest*
9553
9554 fi
9555 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
9556 if test $ac_cv_type_ptrdiff_t = no; then
9557   cat >> confdefs.h <<\EOF
9558 #define ptrdiff_t long
9559 EOF
9560
9561 fi
9562
9563 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
9564 echo "configure:9565: checking for ssize_t" >&5
9565 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
9566   echo $ac_n "(cached) $ac_c" 1>&6
9567 else
9568   cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9572 #if STDC_HEADERS
9573 #include <stdlib.h>
9574 #include <stddef.h>
9575 #endif
9576 EOF
9577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9578   egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9579   rm -rf conftest*
9580   ac_cv_type_ssize_t=yes
9581 else
9582   rm -rf conftest*
9583   ac_cv_type_ssize_t=no
9584 fi
9585 rm -f conftest*
9586
9587 fi
9588 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
9589 if test $ac_cv_type_ssize_t = no; then
9590   cat >> confdefs.h <<\EOF
9591 #define ssize_t int
9592 EOF
9593
9594 fi
9595
9596
9597
9598 echo $ac_n "checking for C99 variadic macros""... $ac_c" 1>&6
9599 echo "configure:9600: checking for C99 variadic macros" >&5
9600 if eval "test \"`echo '$''{'inn_cv_c_c99_vamacros'+set}'`\" = set"; then
9601   echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9603   cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9606 #include <stdio.h>
9607 #define error(...) fprintf(stderr, __VA_ARGS__)
9608 int main() {
9609 error("foo"); error("foo %d", 0); return 0;
9610 ; return 0; }
9611 EOF
9612 if { (eval echo configure:9613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9613   rm -rf conftest*
9614   inn_cv_c_c99_vamacros=yes
9615 else
9616   echo "configure: failed program was:" >&5
9617   cat conftest.$ac_ext >&5
9618   rm -rf conftest*
9619   inn_cv_c_c99_vamacros=no
9620 fi
9621 rm -f conftest*
9622 fi
9623
9624 echo "$ac_t""$inn_cv_c_c99_vamacros" 1>&6
9625 if test $inn_cv_c_c99_vamacros = yes ; then
9626     cat >> confdefs.h <<\EOF
9627 #define HAVE_C99_VAMACROS 1
9628 EOF
9629
9630 fi
9631
9632
9633 echo $ac_n "checking for GNU-style variadic macros""... $ac_c" 1>&6
9634 echo "configure:9635: checking for GNU-style variadic macros" >&5
9635 if eval "test \"`echo '$''{'inn_cv_c_gnu_vamacros'+set}'`\" = set"; then
9636   echo $ac_n "(cached) $ac_c" 1>&6
9637 else
9638   cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 #include <stdio.h>
9642 #define error(args...) fprintf(stderr, args)
9643 int main() {
9644 error("foo"); error("foo %d", 0); return 0;
9645 ; return 0; }
9646 EOF
9647 if { (eval echo configure:9648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9648   rm -rf conftest*
9649   inn_cv_c_gnu_vamacros=yes
9650 else
9651   echo "configure: failed program was:" >&5
9652   cat conftest.$ac_ext >&5
9653   rm -rf conftest*
9654   inn_cv_c_gnu_vamacros=no
9655 fi
9656 rm -f conftest*
9657 fi
9658
9659 echo "$ac_t""$inn_cv_c_gnu_vamacros" 1>&6
9660 if test $inn_cv_c_gnu_vamacros = yes ; then
9661     cat >> confdefs.h <<\EOF
9662 #define HAVE_GNU_VAMACROS 1
9663 EOF
9664
9665 fi
9666
9667
9668 echo $ac_n "checking for long long int""... $ac_c" 1>&6
9669 echo "configure:9670: checking for long long int" >&5
9670 if eval "test \"`echo '$''{'inn_cv_c_long_long'+set}'`\" = set"; then
9671   echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673   cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676
9677 int main() {
9678 long long int i;
9679 ; return 0; }
9680 EOF
9681 if { (eval echo configure:9682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9682   rm -rf conftest*
9683   inn_cv_c_long_long=yes
9684 else
9685   echo "configure: failed program was:" >&5
9686   cat conftest.$ac_ext >&5
9687   rm -rf conftest*
9688   inn_cv_c_long_long=no
9689 fi
9690 rm -f conftest*
9691 fi
9692
9693 echo "$ac_t""$inn_cv_c_long_long" 1>&6
9694 if test $inn_cv_c_long_long = yes ; then
9695     cat >> confdefs.h <<\EOF
9696 #define HAVE_LONG_LONG 1
9697 EOF
9698
9699 fi
9700
9701
9702
9703
9704 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9705 echo "configure:9706: checking for sig_atomic_t" >&5
9706 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
9707   echo $ac_n "(cached) $ac_c" 1>&6
9708 else
9709   cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 #include <sys/types.h>
9713 #ifdef STDC_HEADERS
9714 # include <stdlib.h>
9715 # include <stddef.h>
9716 #endif
9717 #include <signal.h>
9718 EOF
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720   egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9721   rm -rf conftest*
9722   ac_cv_type_sig_atomic_t=yes
9723 else
9724   rm -rf conftest*
9725   ac_cv_type_sig_atomic_t=no
9726
9727 fi
9728 rm -f conftest*
9729
9730 fi
9731
9732 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
9733 if test x"$ac_cv_type_sig_atomic_t" = xno ; then
9734     cat >> confdefs.h <<EOF
9735 #define sig_atomic_t int
9736 EOF
9737
9738 fi
9739
9740 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
9741 echo "configure:9742: checking for socklen_t" >&5
9742 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
9743   echo $ac_n "(cached) $ac_c" 1>&6
9744 else
9745   cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9748 #include <sys/types.h>
9749 #ifdef STDC_HEADERS
9750 # include <stdlib.h>
9751 # include <stddef.h>
9752 #endif
9753 #include <sys/socket.h>
9754 EOF
9755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9756   egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9757   rm -rf conftest*
9758   ac_cv_type_socklen_t=yes
9759 else
9760   rm -rf conftest*
9761   ac_cv_type_socklen_t=no
9762
9763 fi
9764 rm -f conftest*
9765
9766 fi
9767
9768 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
9769 if test x"$ac_cv_type_socklen_t" = xno ; then
9770     cat >> confdefs.h <<EOF
9771 #define socklen_t int
9772 EOF
9773
9774 fi
9775
9776
9777
9778
9779 echo $ac_n "checking value of IOV_MAX""... $ac_c" 1>&6
9780 echo "configure:9781: checking value of IOV_MAX" >&5
9781 if eval "test \"`echo '$''{'inn_cv_macro_iov_max'+set}'`\" = set"; then
9782   echo $ac_n "(cached) $ac_c" 1>&6
9783 else
9784   if test "$cross_compiling" = yes; then
9785   16
9786 else
9787   cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 #include <sys/types.h>
9791 #include <stdio.h>
9792 #include <sys/uio.h>
9793 #include <errno.h>
9794 #include <fcntl.h>
9795 #ifdef HAVE_UNISTD_H
9796 # include <unistd.h>
9797 #endif
9798 #ifdef HAVE_LIMITS_H
9799 # include <limits.h>
9800 #endif
9801
9802 int
9803 main ()
9804 {
9805   int fd, size;
9806   struct iovec array[1024];
9807   char data;
9808
9809   FILE *f = fopen ("conftestval", "w");
9810   if (!f) return 1;
9811 #ifdef IOV_MAX
9812   fprintf (f, "set in limits.h\n");
9813 #else
9814 # ifdef UIO_MAXIOV
9815   fprintf (f, "%d\n", UIO_MAXIOV);
9816 # else
9817   fd = open ("/dev/null", O_WRONLY, 0666);
9818   if (fd < 0) return 1;
9819   for (size = 1; size <= 1024; size++)
9820     {
9821       array[size - 1].iov_base = &data;
9822       array[size - 1].iov_len = sizeof data;
9823       if (writev (fd, array, size) < 0)
9824         {
9825           if (errno != EINVAL) return 1;
9826           fprintf(f, "%d\n", size - 1);
9827           exit (0);
9828         }
9829     }
9830   fprintf (f, "1024\n");
9831 # endif /* UIO_MAXIOV */
9832 #endif /* IOV_MAX */
9833   return 0;
9834 }
9835 EOF
9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9837 then
9838   inn_cv_macro_iov_max=`cat conftestval`
9839 else
9840   echo "configure: failed program was:" >&5
9841   cat conftest.$ac_ext >&5
9842   rm -fr conftest*
9843   inn_cv_macro_iov_max=error
9844 fi
9845 rm -fr conftest*
9846 fi
9847
9848 if test x"$inn_cv_macro_iov_max" = xerror ; then
9849     echo "configure: warning: probe failure, assuming 16" 1>&2
9850     inn_cv_macro_iov_max=16
9851 fi
9852 fi
9853
9854 echo "$ac_t""$inn_cv_macro_iov_max" 1>&6
9855 if test x"$inn_cv_macro_iov_max" != x"set in limits.h" ; then
9856     cat >> confdefs.h <<EOF
9857 #define IOV_MAX $inn_cv_macro_iov_max
9858 EOF
9859
9860 fi
9861
9862
9863 echo $ac_n "checking for SUN_LEN""... $ac_c" 1>&6
9864 echo "configure:9865: checking for SUN_LEN" >&5
9865 if eval "test \"`echo '$''{'inn_cv_macro_sun_len'+set}'`\" = set"; then
9866   echo $ac_n "(cached) $ac_c" 1>&6
9867 else
9868   cat > conftest.$ac_ext <<EOF
9869 #line 9870 "configure"
9870 #include "confdefs.h"
9871 #include <sys/types.h>
9872 #include <sys/un.h>
9873 int main() {
9874 struct sockaddr_un sun;
9875 int i;
9876
9877 i = SUN_LEN(&sun);
9878 ; return 0; }
9879 EOF
9880 if { (eval echo configure:9881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9881   rm -rf conftest*
9882   inn_cv_macro_sun_len=yes
9883 else
9884   echo "configure: failed program was:" >&5
9885   cat conftest.$ac_ext >&5
9886   rm -rf conftest*
9887   inn_cv_macro_sun_len=no
9888 fi
9889 rm -f conftest*
9890 fi
9891
9892 echo "$ac_t""$inn_cv_macro_sun_len" 1>&6
9893 if test x"$inn_cv_macro_sun_len" = xyes ; then
9894     cat >> confdefs.h <<\EOF
9895 #define HAVE_SUN_LEN 1
9896 EOF
9897
9898 fi
9899
9900
9901 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
9902 echo "configure:9903: checking for tm_gmtoff in struct tm" >&5
9903 if eval "test \"`echo '$''{'inn_cv_struct_tm_gmtoff'+set}'`\" = set"; then
9904   echo $ac_n "(cached) $ac_c" 1>&6
9905 else
9906   cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <time.h>
9910 int main() {
9911 struct tm t; t.tm_gmtoff = 3600
9912 ; return 0; }
9913 EOF
9914 if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9915   rm -rf conftest*
9916   inn_cv_struct_tm_gmtoff=yes
9917 else
9918   echo "configure: failed program was:" >&5
9919   cat conftest.$ac_ext >&5
9920   rm -rf conftest*
9921   inn_cv_struct_tm_gmtoff=no
9922 fi
9923 rm -f conftest*
9924 fi
9925
9926 echo "$ac_t""$inn_cv_struct_tm_gmtoff" 1>&6
9927 if test x"$inn_cv_struct_tm_gmtoff" = xyes ; then
9928     cat >> confdefs.h <<\EOF
9929 #define HAVE_TM_GMTOFF 1
9930 EOF
9931
9932 fi
9933
9934
9935 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
9936 echo "configure:9937: checking for tm_zone in struct tm" >&5
9937 if eval "test \"`echo '$''{'inn_cv_struct_tm_zone'+set}'`\" = set"; then
9938   echo $ac_n "(cached) $ac_c" 1>&6
9939 else
9940   cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9943 #include <time.h>
9944 int main() {
9945 struct tm t; t.tm_zone = "UTC"
9946 ; return 0; }
9947 EOF
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9949   rm -rf conftest*
9950   inn_cv_struct_tm_zone=yes
9951 else
9952   echo "configure: failed program was:" >&5
9953   cat conftest.$ac_ext >&5
9954   rm -rf conftest*
9955   inn_cv_struct_tm_zone=no
9956 fi
9957 rm -f conftest*
9958 fi
9959
9960 echo "$ac_t""$inn_cv_struct_tm_zone" 1>&6
9961 if test x"$inn_cv_struct_tm_zone" = xyes ; then
9962     cat >> confdefs.h <<\EOF
9963 #define HAVE_TM_ZONE 1
9964 EOF
9965
9966 fi
9967
9968
9969 echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
9970 echo "configure:9971: checking for timezone variable" >&5
9971 if eval "test \"`echo '$''{'inn_cv_var_timezone'+set}'`\" = set"; then
9972   echo $ac_n "(cached) $ac_c" 1>&6
9973 else
9974   cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 #include <time.h>
9978 int main() {
9979 timezone = 3600; altzone = 7200
9980 ; return 0; }
9981 EOF
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9983   rm -rf conftest*
9984   inn_cv_var_timezone=yes
9985 else
9986   echo "configure: failed program was:" >&5
9987   cat conftest.$ac_ext >&5
9988   rm -rf conftest*
9989   inn_cv_var_timezone=no
9990 fi
9991 rm -f conftest*
9992 fi
9993
9994 echo "$ac_t""$inn_cv_var_timezone" 1>&6
9995 if test x"$inn_cv_var_timezone" = xyes ; then
9996     cat >> confdefs.h <<\EOF
9997 #define HAVE_VAR_TIMEZONE 1
9998 EOF
9999
10000 fi
10001
10002
10003 echo $ac_n "checking for tzname variable""... $ac_c" 1>&6
10004 echo "configure:10005: checking for tzname variable" >&5
10005 if eval "test \"`echo '$''{'inn_cv_var_tzname'+set}'`\" = set"; then
10006   echo $ac_n "(cached) $ac_c" 1>&6
10007 else
10008   cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 #include <time.h>
10012 int main() {
10013 *tzname = "UTC"
10014 ; return 0; }
10015 EOF
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10017   rm -rf conftest*
10018   inn_cv_var_tzname=yes
10019 else
10020   echo "configure: failed program was:" >&5
10021   cat conftest.$ac_ext >&5
10022   rm -rf conftest*
10023   inn_cv_var_tzname=no
10024 fi
10025 rm -f conftest*
10026 fi
10027
10028 echo "$ac_t""$inn_cv_var_tzname" 1>&6
10029 if test x"$inn_cv_var_tzname" = xyes ; then
10030     cat >> confdefs.h <<\EOF
10031 #define HAVE_VAR_TZNAME 1
10032 EOF
10033
10034 fi
10035
10036
10037
10038 echo $ac_n "checking size of int""... $ac_c" 1>&6
10039 echo "configure:10040: checking size of int" >&5
10040 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10041   echo $ac_n "(cached) $ac_c" 1>&6
10042 else
10043   if test "$cross_compiling" = yes; then
10044   ac_cv_sizeof_int=4
10045 else
10046   cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 #include <stdio.h>
10050 main()
10051 {
10052     FILE *f = fopen("conftestval", "w");
10053     if (!f) exit(1);
10054     fprintf(f, "%d\n", sizeof(int));
10055     exit(0);
10056 }
10057 EOF
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10059 then
10060   ac_cv_sizeof_int=`cat conftestval`
10061 else
10062   echo "configure: failed program was:" >&5
10063   cat conftest.$ac_ext >&5
10064   rm -fr conftest*
10065   ac_cv_sizeof_int=0
10066 fi
10067 rm -fr conftest*
10068 fi
10069
10070
10071 fi
10072 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10073 if test x"$ac_cv_sizeof_int" = x"4" ; then
10074     INN_INT32=int
10075 else
10076     echo $ac_n "checking size of long""... $ac_c" 1>&6
10077 echo "configure:10078: checking size of long" >&5
10078 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10079   echo $ac_n "(cached) $ac_c" 1>&6
10080 else
10081   if test "$cross_compiling" = yes; then
10082   ac_cv_sizeof_long=4
10083 else
10084   cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 #include <stdio.h>
10088 main()
10089 {
10090     FILE *f = fopen("conftestval", "w");
10091     if (!f) exit(1);
10092     fprintf(f, "%d\n", sizeof(long));
10093     exit(0);
10094 }
10095 EOF
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10097 then
10098   ac_cv_sizeof_long=`cat conftestval`
10099 else
10100   echo "configure: failed program was:" >&5
10101   cat conftest.$ac_ext >&5
10102   rm -fr conftest*
10103   ac_cv_sizeof_long=0
10104 fi
10105 rm -fr conftest*
10106 fi
10107
10108
10109 fi
10110 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10111 if test x"$ac_cv_sizeof_long" = x"4" ; then
10112     INN_INT32=long
10113 else
10114     echo $ac_n "checking size of short""... $ac_c" 1>&6
10115 echo "configure:10116: checking size of short" >&5
10116 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10117   echo $ac_n "(cached) $ac_c" 1>&6
10118 else
10119   if test "$cross_compiling" = yes; then
10120   ac_cv_sizeof_short=2
10121 else
10122   cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 #include <stdio.h>
10126 main()
10127 {
10128     FILE *f = fopen("conftestval", "w");
10129     if (!f) exit(1);
10130     fprintf(f, "%d\n", sizeof(short));
10131     exit(0);
10132 }
10133 EOF
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10135 then
10136   ac_cv_sizeof_short=`cat conftestval`
10137 else
10138   echo "configure: failed program was:" >&5
10139   cat conftest.$ac_ext >&5
10140   rm -fr conftest*
10141   ac_cv_sizeof_short=0
10142 fi
10143 rm -fr conftest*
10144 fi
10145
10146
10147 fi
10148 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10149 if test x"$ac_cv_sizeof_short" = x"4" ; then
10150     INN_INT32=short
10151 else
10152     :
10153 fi
10154
10155 fi
10156
10157 fi
10158
10159
10160 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
10161 echo "configure:10162: checking for int32_t" >&5
10162 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
10163   echo $ac_n "(cached) $ac_c" 1>&6
10164 else
10165   cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <sys/types.h>
10169 #ifdef STDC_HEADERS
10170 # include <stdlib.h>
10171 # include <stddef.h>
10172 #endif
10173 #ifdef HAVE_STDINT_H
10174 # include <stdint.h>
10175 #endif
10176 #ifdef HAVE_SYS_BITYPES_H
10177 # include <sys/bitypes.h>
10178 #endif
10179
10180 EOF
10181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10182   egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10183   rm -rf conftest*
10184   ac_cv_type_int32_t=yes
10185 else
10186   rm -rf conftest*
10187   ac_cv_type_int32_t=no
10188
10189 fi
10190 rm -f conftest*
10191
10192 fi
10193
10194 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
10195 if test x"$ac_cv_type_int32_t" = xno ; then
10196     cat >> confdefs.h <<EOF
10197 #define int32_t $INN_INT32
10198 EOF
10199
10200 fi
10201
10202
10203 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
10204 echo "configure:10205: checking for uint32_t" >&5
10205 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
10206   echo $ac_n "(cached) $ac_c" 1>&6
10207 else
10208   cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 #include <sys/types.h>
10212 #ifdef STDC_HEADERS
10213 # include <stdlib.h>
10214 # include <stddef.h>
10215 #endif
10216 #ifdef HAVE_STDINT_H
10217 # include <stdint.h>
10218 #endif
10219 #ifdef HAVE_SYS_BITYPES_H
10220 # include <sys/bitypes.h>
10221 #endif
10222
10223 EOF
10224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10225   egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10226   rm -rf conftest*
10227   ac_cv_type_uint32_t=yes
10228 else
10229   rm -rf conftest*
10230   ac_cv_type_uint32_t=no
10231
10232 fi
10233 rm -f conftest*
10234
10235 fi
10236
10237 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
10238 if test x"$ac_cv_type_uint32_t" = xno ; then
10239     cat >> confdefs.h <<EOF
10240 #define uint32_t unsigned $INN_INT32
10241 EOF
10242
10243 fi
10244
10245 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10246 echo "configure:10247: checking for 8-bit clean memcmp" >&5
10247 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10248   echo $ac_n "(cached) $ac_c" 1>&6
10249 else
10250   if test "$cross_compiling" = yes; then
10251   ac_cv_func_memcmp_clean=no
10252 else
10253   cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256
10257 main()
10258 {
10259   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10260   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10261 }
10262
10263 EOF
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10265 then
10266   ac_cv_func_memcmp_clean=yes
10267 else
10268   echo "configure: failed program was:" >&5
10269   cat conftest.$ac_ext >&5
10270   rm -fr conftest*
10271   ac_cv_func_memcmp_clean=no
10272 fi
10273 rm -fr conftest*
10274 fi
10275
10276 fi
10277
10278 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10279 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10280
10281 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10282 echo "configure:10283: checking return type of signal handlers" >&5
10283 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10284   echo $ac_n "(cached) $ac_c" 1>&6
10285 else
10286   cat > conftest.$ac_ext <<EOF
10287 #line 10288 "configure"
10288 #include "confdefs.h"
10289 #include <sys/types.h>
10290 #include <signal.h>
10291 #ifdef signal
10292 #undef signal
10293 #endif
10294 #ifdef __cplusplus
10295 extern "C" void (*signal (int, void (*)(int)))(int);
10296 #else
10297 void (*signal ()) ();
10298 #endif
10299
10300 int main() {
10301 int i;
10302 ; return 0; }
10303 EOF
10304 if { (eval echo configure:10305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10305   rm -rf conftest*
10306   ac_cv_type_signal=void
10307 else
10308   echo "configure: failed program was:" >&5
10309   cat conftest.$ac_ext >&5
10310   rm -rf conftest*
10311   ac_cv_type_signal=int
10312 fi
10313 rm -f conftest*
10314 fi
10315
10316 echo "$ac_t""$ac_cv_type_signal" 1>&6
10317 cat >> confdefs.h <<EOF
10318 #define RETSIGTYPE $ac_cv_type_signal
10319 EOF
10320
10321
10322
10323
10324
10325
10326 echo $ac_n "checking for working inet_ntoa""... $ac_c" 1>&6
10327 echo "configure:10328: checking for working inet_ntoa" >&5
10328 if eval "test \"`echo '$''{'inn_cv_func_inet_ntoa_works'+set}'`\" = set"; then
10329   echo $ac_n "(cached) $ac_c" 1>&6
10330 else
10331   if test "$cross_compiling" = yes; then
10332   inn_cv_func_inet_ntoa_works=no
10333 else
10334   cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10337 #include <sys/types.h>
10338 #include <sys/socket.h>
10339 #include <netinet/in.h>
10340 #include <arpa/inet.h>
10341 #if STDC_HEADERS || HAVE_STRING_H
10342 # include <string.h>
10343 #endif
10344
10345 int
10346 main ()
10347 {
10348   struct in_addr in;
10349   in.s_addr = htonl (0x7f000000L);
10350   return (!strcmp (inet_ntoa (in), "127.0.0.0") ? 0 : 1);
10351 }
10352 EOF
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10354 then
10355   inn_cv_func_inet_ntoa_works=yes
10356 else
10357   echo "configure: failed program was:" >&5
10358   cat conftest.$ac_ext >&5
10359   rm -fr conftest*
10360   inn_cv_func_inet_ntoa_works=no
10361 fi
10362 rm -fr conftest*
10363 fi
10364
10365 fi
10366
10367 echo "$ac_t""$inn_cv_func_inet_ntoa_works" 1>&6
10368 if test "$inn_cv_func_inet_ntoa_works" = yes ; then
10369     cat >> confdefs.h <<\EOF
10370 #define HAVE_INET_NTOA 1
10371 EOF
10372
10373 else
10374     LIBOBJS="$LIBOBJS inet_ntoa.${ac_objext}"
10375 fi
10376
10377
10378 echo $ac_n "checking whether struct sockaddr has sa_len""... $ac_c" 1>&6
10379 echo "configure:10380: checking whether struct sockaddr has sa_len" >&5
10380 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
10381   echo $ac_n "(cached) $ac_c" 1>&6
10382 else
10383   cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 #include <sys/types.h>
10387                         #include <sys/socket.h>
10388                         #include <netinet/in.h>
10389 int main() {
10390 struct sockaddr sa; int x = sa.sa_len;
10391 ; return 0; }
10392 EOF
10393 if { (eval echo configure:10394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10394   rm -rf conftest*
10395   inn_cv_struct_sockaddr_sa_len=yes
10396 else
10397   echo "configure: failed program was:" >&5
10398   cat conftest.$ac_ext >&5
10399   rm -rf conftest*
10400   inn_cv_struct_sockaddr_sa_len=no
10401 fi
10402 rm -f conftest*
10403 fi
10404
10405 echo "$ac_t""$inn_cv_struct_sockaddr_sa_len" 1>&6
10406 if test "$inn_cv_struct_sockaddr_sa_len" = yes ; then
10407     cat >> confdefs.h <<\EOF
10408 #define HAVE_SOCKADDR_LEN 1
10409 EOF
10410
10411 fi
10412
10413
10414 echo $ac_n "checking for SA_LEN(s) macro""... $ac_c" 1>&6
10415 echo "configure:10416: checking for SA_LEN(s) macro" >&5
10416 if eval "test \"`echo '$''{'inn_cv_sa_len_macro'+set}'`\" = set"; then
10417   echo $ac_n "(cached) $ac_c" 1>&6
10418 else
10419   cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <sys/types.h>
10423                         #include <sys/socket.h>
10424                         #include <netinet/in.h>
10425 int main() {
10426 struct sockaddr sa; int x = SA_LEN(&sa);
10427 ; return 0; }
10428 EOF
10429 if { (eval echo configure:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10430   rm -rf conftest*
10431   inn_cv_sa_len_macro=yes
10432 else
10433   echo "configure: failed program was:" >&5
10434   cat conftest.$ac_ext >&5
10435   rm -rf conftest*
10436   inn_cv_sa_len_macro=no
10437 fi
10438 rm -f conftest*
10439 fi
10440
10441 echo "$ac_t""$inn_cv_sa_len_macro" 1>&6
10442 if test "$inn_cv_sa_len_macro" = yes ; then
10443     cat >> confdefs.h <<\EOF
10444 #define HAVE_SA_LEN_MACRO 1
10445 EOF
10446
10447 fi
10448
10449
10450
10451
10452 echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
10453 echo "configure:10454: checking for struct sockaddr_storage" >&5
10454 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_storage'+set}'`\" = set"; then
10455   echo $ac_n "(cached) $ac_c" 1>&6
10456 else
10457   cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10460 #include <sys/types.h>
10461                         #include <sys/socket.h>
10462                         #include <netinet/in.h>
10463 int main() {
10464 struct sockaddr_storage ss;
10465 ; return 0; }
10466 EOF
10467 if { (eval echo configure:10468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10468   rm -rf conftest*
10469   inn_cv_struct_sockaddr_storage=yes
10470 else
10471   echo "configure: failed program was:" >&5
10472   cat conftest.$ac_ext >&5
10473   rm -rf conftest*
10474   inn_cv_struct_sockaddr_storage=no
10475 fi
10476 rm -f conftest*
10477 fi
10478
10479 echo "$ac_t""$inn_cv_struct_sockaddr_storage" 1>&6
10480 if test "$inn_cv_struct_sockaddr_storage" = yes ; then
10481     cat >> confdefs.h <<\EOF
10482 #define HAVE_SOCKADDR_STORAGE 1
10483 EOF
10484
10485     echo $ac_n "checking for RFC 2553 style sockaddr_storage member names""... $ac_c" 1>&6
10486 echo "configure:10487: checking for RFC 2553 style sockaddr_storage member names" >&5
10487 if eval "test \"`echo '$''{'inn_cv_2553_ss_family'+set}'`\" = set"; then
10488   echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10490   cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 #include <sys/types.h>
10494                         #include <sys/socket.h>
10495                         #include <netinet/in.h>
10496 int main() {
10497 struct sockaddr_storage ss; int x=ss.ss_family;
10498 ; return 0; }
10499 EOF
10500 if { (eval echo configure:10501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10501   rm -rf conftest*
10502   inn_cv_2553_ss_family=no
10503 else
10504   echo "configure: failed program was:" >&5
10505   cat conftest.$ac_ext >&5
10506   rm -rf conftest*
10507   inn_cv_2553_ss_family=yes
10508 fi
10509 rm -f conftest*
10510 fi
10511
10512 echo "$ac_t""$inn_cv_2553_ss_family" 1>&6
10513 if test "$inn_cv_2553_ss_family" = yes ; then
10514     cat >> confdefs.h <<\EOF
10515 #define HAVE_2553_STYLE_SS_FAMILY 1
10516 EOF
10517
10518 fi
10519 fi
10520
10521
10522
10523
10524 if test "$inn_enable_ipv6_tests" = yes ; then
10525     echo $ac_n "checking whether IN6_ARE_ADDR_EQUAL macro is broken""... $ac_c" 1>&6
10526 echo "configure:10527: checking whether IN6_ARE_ADDR_EQUAL macro is broken" >&5
10527 if eval "test \"`echo '$''{'inn_cv_in6_are_addr_equal_broken'+set}'`\" = set"; then
10528   echo $ac_n "(cached) $ac_c" 1>&6
10529 else
10530   if test "$cross_compiling" = yes; then
10531   inn_cv_in6_are_addr_equal_broken=no
10532 else
10533   cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10537 #include <sys/socket.h>
10538 #include <netinet/in.h>
10539 #include <arpa/inet.h>
10540
10541 int
10542 main ()
10543 {
10544   struct in6_addr a;
10545   struct in6_addr b;
10546
10547   inet_pton(AF_INET6,"fe80::1234:5678:abcd",&a);
10548   inet_pton(AF_INET6,"fe80::1234:5678:abcd",&b);
10549   return IN6_ARE_ADDR_EQUAL(&a,&b) ? 0 : 1;
10550 }
10551 EOF
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10553 then
10554   inn_cv_in6_are_addr_equal_broken=no
10555 else
10556   echo "configure: failed program was:" >&5
10557   cat conftest.$ac_ext >&5
10558   rm -fr conftest*
10559   inn_cv_in6_are_addr_equal_broken=yes
10560 fi
10561 rm -fr conftest*
10562 fi
10563
10564 fi
10565
10566 echo "$ac_t""$inn_cv_in6_are_addr_equal_broken" 1>&6
10567 if test "$inn_cv_in6_are_addr_equal_broken" = yes ; then
10568     cat >> confdefs.h <<\EOF
10569 #define HAVE_BROKEN_IN6_ARE_ADDR_EQUAL 1
10570 EOF
10571
10572 fi
10573 fi
10574
10575
10576
10577
10578 echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
10579 echo "configure:10580: checking for working snprintf" >&5
10580 if eval "test \"`echo '$''{'inn_cv_func_snprintf_works'+set}'`\" = set"; then
10581   echo $ac_n "(cached) $ac_c" 1>&6
10582 else
10583   if test "$cross_compiling" = yes; then
10584   inn_cv_func_snprintf_works=no
10585 else
10586   cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10589 #include <stdio.h>
10590 #include <stdarg.h>
10591
10592 char buf[2];
10593
10594 int
10595 test (char *format, ...)
10596 {
10597   va_list args;
10598   int count;
10599
10600   va_start (args, format);
10601   count = vsnprintf (buf, sizeof buf, format, args);
10602   va_end (args);
10603   return count;
10604 }
10605
10606 int
10607 main ()
10608 {
10609   return ((test ("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
10610            && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
10611 }
10612 EOF
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10614 then
10615   inn_cv_func_snprintf_works=yes
10616 else
10617   echo "configure: failed program was:" >&5
10618   cat conftest.$ac_ext >&5
10619   rm -fr conftest*
10620   inn_cv_func_snprintf_works=no
10621 fi
10622 rm -fr conftest*
10623 fi
10624
10625 fi
10626
10627 echo "$ac_t""$inn_cv_func_snprintf_works" 1>&6
10628 if test "$inn_cv_func_snprintf_works" = yes ; then
10629     cat >> confdefs.h <<\EOF
10630 #define HAVE_SNPRINTF 1
10631 EOF
10632
10633 else
10634     LIBOBJS="$LIBOBJS snprintf.${ac_objext}"
10635 fi
10636
10637 for ac_func in atexit getloadavg getrlimit getrusage getspnam setbuffer \
10638                sigaction setgroups setrlimit setsid socketpair statvfs \
10639                strncasecmp strtoul symlink sysconf
10640 do
10641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10642 echo "configure:10643: checking for $ac_func" >&5
10643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10644   echo $ac_n "(cached) $ac_c" 1>&6
10645 else
10646   cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10649 /* System header to define __stub macros and hopefully few prototypes,
10650     which can conflict with char $ac_func(); below.  */
10651 #include <assert.h>
10652 /* Override any gcc2 internal prototype to avoid an error.  */
10653 /* We use char because int might match the return type of a gcc2
10654     builtin and then its argument prototype would still apply.  */
10655 char $ac_func();
10656
10657 int main() {
10658
10659 /* The GNU C library defines this for functions which it implements
10660     to always fail with ENOSYS.  Some functions are actually named
10661     something starting with __ and the normal name is an alias.  */
10662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10663 choke me
10664 #else
10665 $ac_func();
10666 #endif
10667
10668 ; return 0; }
10669 EOF
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671   rm -rf conftest*
10672   eval "ac_cv_func_$ac_func=yes"
10673 else
10674   echo "configure: failed program was:" >&5
10675   cat conftest.$ac_ext >&5
10676   rm -rf conftest*
10677   eval "ac_cv_func_$ac_func=no"
10678 fi
10679 rm -f conftest*
10680 fi
10681
10682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10683   echo "$ac_t""yes" 1>&6
10684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10685   cat >> confdefs.h <<EOF
10686 #define $ac_tr_func 1
10687 EOF
10688  
10689 else
10690   echo "$ac_t""no" 1>&6
10691 fi
10692 done
10693
10694
10695 if test x"$ac_cv_func_getrlimit" = xno ; then
10696     for ac_func in getdtablesize ulimit
10697 do
10698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10699 echo "configure:10700: checking for $ac_func" >&5
10700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10701   echo $ac_n "(cached) $ac_c" 1>&6
10702 else
10703   cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 /* System header to define __stub macros and hopefully few prototypes,
10707     which can conflict with char $ac_func(); below.  */
10708 #include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error.  */
10710 /* We use char because int might match the return type of a gcc2
10711     builtin and then its argument prototype would still apply.  */
10712 char $ac_func();
10713
10714 int main() {
10715
10716 /* The GNU C library defines this for functions which it implements
10717     to always fail with ENOSYS.  Some functions are actually named
10718     something starting with __ and the normal name is an alias.  */
10719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10720 choke me
10721 #else
10722 $ac_func();
10723 #endif
10724
10725 ; return 0; }
10726 EOF
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728   rm -rf conftest*
10729   eval "ac_cv_func_$ac_func=yes"
10730 else
10731   echo "configure: failed program was:" >&5
10732   cat conftest.$ac_ext >&5
10733   rm -rf conftest*
10734   eval "ac_cv_func_$ac_func=no"
10735 fi
10736 rm -f conftest*
10737 fi
10738
10739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10740   echo "$ac_t""yes" 1>&6
10741     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10742   cat >> confdefs.h <<EOF
10743 #define $ac_tr_func 1
10744 EOF
10745  break
10746 else
10747   echo "$ac_t""no" 1>&6
10748 fi
10749 done
10750
10751 fi
10752
10753 if test x"$ac_cv_func_statvfs" = xno ; then
10754     for ac_func in statfs
10755 do
10756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10757 echo "configure:10758: checking for $ac_func" >&5
10758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10759   echo $ac_n "(cached) $ac_c" 1>&6
10760 else
10761   cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 /* System header to define __stub macros and hopefully few prototypes,
10765     which can conflict with char $ac_func(); below.  */
10766 #include <assert.h>
10767 /* Override any gcc2 internal prototype to avoid an error.  */
10768 /* We use char because int might match the return type of a gcc2
10769     builtin and then its argument prototype would still apply.  */
10770 char $ac_func();
10771
10772 int main() {
10773
10774 /* The GNU C library defines this for functions which it implements
10775     to always fail with ENOSYS.  Some functions are actually named
10776     something starting with __ and the normal name is an alias.  */
10777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10778 choke me
10779 #else
10780 $ac_func();
10781 #endif
10782
10783 ; return 0; }
10784 EOF
10785 if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10786   rm -rf conftest*
10787   eval "ac_cv_func_$ac_func=yes"
10788 else
10789   echo "configure: failed program was:" >&5
10790   cat conftest.$ac_ext >&5
10791   rm -rf conftest*
10792   eval "ac_cv_func_$ac_func=no"
10793 fi
10794 rm -f conftest*
10795 fi
10796
10797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10798   echo "$ac_t""yes" 1>&6
10799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10800   cat >> confdefs.h <<EOF
10801 #define $ac_tr_func 1
10802 EOF
10803  
10804 else
10805   echo "$ac_t""no" 1>&6
10806 fi
10807 done
10808
10809     for ac_hdr in sys/vfs.h sys/mount.h
10810 do
10811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10813 echo "configure:10814: checking for $ac_hdr" >&5
10814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10815   echo $ac_n "(cached) $ac_c" 1>&6
10816 else
10817   cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10820 #include <$ac_hdr>
10821 EOF
10822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10823 { (eval echo configure:10824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10825 if test -z "$ac_err"; then
10826   rm -rf conftest*
10827   eval "ac_cv_header_$ac_safe=yes"
10828 else
10829   echo "$ac_err" >&5
10830   echo "configure: failed program was:" >&5
10831   cat conftest.$ac_ext >&5
10832   rm -rf conftest*
10833   eval "ac_cv_header_$ac_safe=no"
10834 fi
10835 rm -f conftest*
10836 fi
10837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10838   echo "$ac_t""yes" 1>&6
10839     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10840   cat >> confdefs.h <<EOF
10841 #define $ac_tr_hdr 1
10842 EOF
10843  
10844 else
10845   echo "$ac_t""no" 1>&6
10846 fi
10847 done
10848
10849 fi
10850
10851 for ac_func in fseeko ftello getpagesize hstrerror inet_aton mkstemp \
10852                  pread pwrite seteuid strcasecmp strerror strlcat strlcpy \
10853                  strspn setenv
10854 do
10855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10856 echo "configure:10857: checking for $ac_func" >&5
10857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10858   echo $ac_n "(cached) $ac_c" 1>&6
10859 else
10860   cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 /* System header to define __stub macros and hopefully few prototypes,
10864     which can conflict with char $ac_func(); below.  */
10865 #include <assert.h>
10866 /* Override any gcc2 internal prototype to avoid an error.  */
10867 /* We use char because int might match the return type of a gcc2
10868     builtin and then its argument prototype would still apply.  */
10869 char $ac_func();
10870
10871 int main() {
10872
10873 /* The GNU C library defines this for functions which it implements
10874     to always fail with ENOSYS.  Some functions are actually named
10875     something starting with __ and the normal name is an alias.  */
10876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10877 choke me
10878 #else
10879 $ac_func();
10880 #endif
10881
10882 ; return 0; }
10883 EOF
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10885   rm -rf conftest*
10886   eval "ac_cv_func_$ac_func=yes"
10887 else
10888   echo "configure: failed program was:" >&5
10889   cat conftest.$ac_ext >&5
10890   rm -rf conftest*
10891   eval "ac_cv_func_$ac_func=no"
10892 fi
10893 rm -f conftest*
10894 fi
10895
10896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10897   echo "$ac_t""yes" 1>&6
10898     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10899   cat >> confdefs.h <<EOF
10900 #define $ac_tr_func 1
10901 EOF
10902  
10903 else
10904   echo "$ac_t""no" 1>&6
10905 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10906 fi
10907 done
10908
10909
10910
10911
10912
10913
10914
10915 if test "$ac_cv_func_fseeko" = no || test "$ac_cv_func_ftello" = no ; then
10916    echo $ac_n "checking for off_t-compatible fpos_t""... $ac_c" 1>&6
10917 echo "configure:10918: checking for off_t-compatible fpos_t" >&5
10918 if eval "test \"`echo '$''{'inn_cv_type_fpos_t_large'+set}'`\" = set"; then
10919   echo $ac_n "(cached) $ac_c" 1>&6
10920 else
10921   if test "$cross_compiling" = yes; then
10922   inn_cv_type_fpos_t_large=no
10923 else
10924   cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #include <stdio.h>
10928 #include <sys/types.h>
10929
10930 int
10931 main ()
10932 {
10933   fpos_t fpos = 9223372036854775807ULL;
10934   off_t off;
10935   off = fpos;
10936   exit(off == (off_t) 9223372036854775807ULL ? 0 : 1);
10937 }
10938 EOF
10939 if { (eval echo configure:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10940 then
10941   inn_cv_type_fpos_t_large=yes
10942 else
10943   echo "configure: failed program was:" >&5
10944   cat conftest.$ac_ext >&5
10945   rm -fr conftest*
10946   inn_cv_type_fpos_t_large=no
10947 fi
10948 rm -fr conftest*
10949 fi
10950
10951 if test "$inn_cv_type_fpos_t_large" = yes ; then
10952     cat >> confdefs.h <<\EOF
10953 #define HAVE_LARGE_FPOS_T 1
10954 EOF
10955
10956 fi
10957 fi
10958
10959 echo "$ac_t""$inn_cv_type_fpos_t_large" 1>&6
10960 fi
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10978 echo "configure:10979: checking for working mmap" >&5
10979 if eval "test \"`echo '$''{'inn_cv_func_mmap'+set}'`\" = set"; then
10980   echo $ac_n "(cached) $ac_c" 1>&6
10981 else
10982   if test "$cross_compiling" = yes; then
10983   inn_cv_func_mmap=no
10984 else
10985   cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10988 #include <stdio.h>
10989 #include <sys/types.h>
10990 #if STDC_HEADERS
10991 # include <stdlib.h>
10992 # include <stddef.h>
10993 #else
10994 # if HAVE_STDLIB_H
10995 #  include <stdlib.h>
10996 # endif
10997 # if !HAVE_STRCHR
10998 #  define strchr index
10999 #  define strrchr rindex
11000 # endif
11001 #endif
11002 #if HAVE_STRING_H
11003 # if !STDC_HEADERS && HAVE_MEMORY_H
11004 #  include <memory.h>
11005 # endif
11006 # include <string.h>
11007 #else
11008 # if HAVE_STRINGS_H
11009 #  include <strings.h>
11010 # endif
11011 #endif
11012 #if HAVE_UNISTD_H
11013 # include <unistd.h>
11014 #endif
11015 #include <fcntl.h>
11016 #include <sys/mman.h>
11017
11018 int
11019 main()
11020 {
11021   int *data, *data2;
11022   int i, fd;
11023
11024   /* First, make a file with some known garbage in it.  Use something
11025      larger than one page but still an odd page size. */
11026   data = malloc (20000);
11027   if (!data) return 1;
11028   for (i = 0; i < 20000 / sizeof (int); i++)
11029     data[i] = rand();
11030   umask (0);
11031   fd = creat ("conftestmmaps", 0600);
11032   if (fd < 0) return 1;
11033   if (write (fd, data, 20000) != 20000) return 1;
11034   close (fd);
11035
11036   /* Next, try to mmap the file and make sure we see the same garbage. */
11037   fd = open ("conftestmmaps", O_RDWR);
11038   if (fd < 0) return 1;
11039   data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11040   if (data2 == (int *) -1) return 1;
11041   for (i = 0; i < 20000 / sizeof (int); i++)
11042     if (data[i] != data2[i])
11043       return 1;
11044
11045   close (fd);
11046   unlink ("conftestmmaps");
11047   return 0;
11048 }
11049 EOF
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11051 then
11052   inn_cv_func_mmap=yes
11053 else
11054   echo "configure: failed program was:" >&5
11055   cat conftest.$ac_ext >&5
11056   rm -fr conftest*
11057   inn_cv_func_mmap=no
11058 fi
11059 rm -fr conftest*
11060 fi
11061
11062 fi
11063
11064 echo "$ac_t""$inn_cv_func_mmap" 1>&6
11065 if test $inn_cv_func_mmap = yes ; then
11066     cat >> confdefs.h <<\EOF
11067 #define HAVE_MMAP 1
11068 EOF
11069
11070 fi
11071 if test x"$inn_cv_func_mmap" = xyes ; then
11072     for ac_func in madvise
11073 do
11074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11075 echo "configure:11076: checking for $ac_func" >&5
11076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11077   echo $ac_n "(cached) $ac_c" 1>&6
11078 else
11079   cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 /* System header to define __stub macros and hopefully few prototypes,
11083     which can conflict with char $ac_func(); below.  */
11084 #include <assert.h>
11085 /* Override any gcc2 internal prototype to avoid an error.  */
11086 /* We use char because int might match the return type of a gcc2
11087     builtin and then its argument prototype would still apply.  */
11088 char $ac_func();
11089
11090 int main() {
11091
11092 /* The GNU C library defines this for functions which it implements
11093     to always fail with ENOSYS.  Some functions are actually named
11094     something starting with __ and the normal name is an alias.  */
11095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11096 choke me
11097 #else
11098 $ac_func();
11099 #endif
11100
11101 ; return 0; }
11102 EOF
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11104   rm -rf conftest*
11105   eval "ac_cv_func_$ac_func=yes"
11106 else
11107   echo "configure: failed program was:" >&5
11108   cat conftest.$ac_ext >&5
11109   rm -rf conftest*
11110   eval "ac_cv_func_$ac_func=no"
11111 fi
11112 rm -f conftest*
11113 fi
11114
11115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11116   echo "$ac_t""yes" 1>&6
11117     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11118   cat >> confdefs.h <<EOF
11119 #define $ac_tr_func 1
11120 EOF
11121  
11122 else
11123   echo "$ac_t""no" 1>&6
11124 fi
11125 done
11126
11127     echo $ac_n "checking whether mmap sees writes""... $ac_c" 1>&6
11128 echo "configure:11129: checking whether mmap sees writes" >&5
11129 if eval "test \"`echo '$''{'inn_cv_func_mmap_sees_writes'+set}'`\" = set"; then
11130   echo $ac_n "(cached) $ac_c" 1>&6
11131 else
11132   if test "$cross_compiling" = yes; then
11133   inn_cv_func_mmap_sees_writes=no
11134 else
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <stdlib.h>
11139 #include <sys/types.h>
11140 #include <sys/stat.h>
11141 #include <fcntl.h>
11142 #if HAVE_UNISTD_H
11143 # include <unistd.h>
11144 #endif
11145 #include <sys/mman.h>
11146
11147 /* Fractional page is probably worst case. */
11148 static char zbuff[1024];
11149 static char fname[] = "conftestw";
11150
11151 int
11152 main ()
11153 {
11154   char *map;
11155   int i, fd;
11156
11157   fd = open (fname, O_RDWR | O_CREAT, 0660);
11158   if (fd < 0) return 1;
11159   unlink (fname);
11160   write (fd, zbuff, sizeof (zbuff));
11161   lseek (fd, 0, SEEK_SET);
11162   map = mmap (0, sizeof (zbuff), PROT_READ, MAP_SHARED, fd, 0);
11163   if (map == (char *) -1) return 2;
11164   for (i = 0; fname[i]; i++)
11165     {
11166       if (write (fd, &fname[i], 1) != 1) return 3;
11167       if (map[i] != fname[i]) return 4;
11168     }
11169   return 0;
11170 }
11171 EOF
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11173 then
11174   inn_cv_func_mmap_sees_writes=yes
11175 else
11176   echo "configure: failed program was:" >&5
11177   cat conftest.$ac_ext >&5
11178   rm -fr conftest*
11179   inn_cv_func_mmap_sees_writes=no
11180 fi
11181 rm -fr conftest*
11182 fi
11183
11184 fi
11185
11186 echo "$ac_t""$inn_cv_func_mmap_sees_writes" 1>&6
11187 if test $inn_cv_func_mmap_sees_writes = no ; then
11188     cat >> confdefs.h <<\EOF
11189 #define MMAP_MISSES_WRITES 1
11190 EOF
11191
11192 fi
11193     echo $ac_n "checking whether msync is needed""... $ac_c" 1>&6
11194 echo "configure:11195: checking whether msync is needed" >&5
11195 if eval "test \"`echo '$''{'inn_cv_func_mmap_need_msync'+set}'`\" = set"; then
11196   echo $ac_n "(cached) $ac_c" 1>&6
11197 else
11198   if test "$cross_compiling" = yes; then
11199   inn_cv_func_mmap_need_msync=yes
11200 else
11201   cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204 #include <stdio.h>
11205 #include <sys/types.h>
11206 #if STDC_HEADERS
11207 # include <stdlib.h>
11208 # include <stddef.h>
11209 #else
11210 # if HAVE_STDLIB_H
11211 #  include <stdlib.h>
11212 # endif
11213 # if !HAVE_STRCHR
11214 #  define strchr index
11215 #  define strrchr rindex
11216 # endif
11217 #endif
11218 #if HAVE_STRING_H
11219 # if !STDC_HEADERS && HAVE_MEMORY_H
11220 #  include <memory.h>
11221 # endif
11222 # include <string.h>
11223 #else
11224 # if HAVE_STRINGS_H
11225 #  include <strings.h>
11226 # endif
11227 #endif
11228 #if HAVE_UNISTD_H
11229 # include <unistd.h>
11230 #endif
11231 #include <sys/types.h>
11232 #include <fcntl.h>
11233 #include <sys/mman.h>
11234
11235 int
11236 main()
11237 {
11238   int *data, *data2;
11239   int i, fd;
11240
11241   /* First, make a file with some known garbage in it.  Use something
11242      larger than one page but still an odd page size. */
11243   data = malloc (20000);
11244   if (!data) return 1;
11245   for (i = 0; i < 20000 / sizeof (int); i++)
11246     data[i] = rand();
11247   umask (0);
11248   fd = creat ("conftestmmaps", 0600);
11249   if (fd < 0) return 1;
11250   if (write (fd, data, 20000) != 20000) return 1;
11251   close (fd);
11252
11253   /* Next, try to mmap the file and make sure we see the same garbage. */
11254   fd = open ("conftestmmaps", O_RDWR);
11255   if (fd < 0) return 1;
11256   data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11257   if (data2 == (int *) -1) return 1;
11258
11259   /* Finally, see if changes made to the mmaped region propagate back to
11260      the file as seen by read (meaning that msync isn't needed). */
11261   for (i = 0; i < 20000 / sizeof (int); i++)
11262     data2[i]++;
11263   if (read (fd, data, 20000) != 20000) return 1;
11264   for (i = 0; i < 20000 / sizeof (int); i++)
11265     if (data[i] != data2[i])
11266       return 1;
11267
11268   close (fd);
11269   unlink ("conftestmmapm");
11270   return 0;
11271 }
11272 EOF
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11274 then
11275   inn_cv_func_mmap_need_msync=no
11276 else
11277   echo "configure: failed program was:" >&5
11278   cat conftest.$ac_ext >&5
11279   rm -fr conftest*
11280   inn_cv_func_mmap_need_msync=yes
11281 fi
11282 rm -fr conftest*
11283 fi
11284
11285 fi
11286
11287 echo "$ac_t""$inn_cv_func_mmap_need_msync" 1>&6
11288 if test $inn_cv_func_mmap_need_msync = yes ; then
11289     cat >> confdefs.h <<\EOF
11290 #define MMAP_NEEDS_MSYNC 1
11291 EOF
11292
11293 fi
11294     echo $ac_n "checking how many arguments msync takes""... $ac_c" 1>&6
11295 echo "configure:11296: checking how many arguments msync takes" >&5
11296 if eval "test \"`echo '$''{'inn_cv_func_msync_args'+set}'`\" = set"; then
11297   echo $ac_n "(cached) $ac_c" 1>&6
11298 else
11299   cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 #include <sys/types.h>
11303 #include <sys/mman.h>
11304 int main() {
11305 char *p; int psize; msync (p, psize, MS_ASYNC);
11306 ; return 0; }
11307 EOF
11308 if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11309   rm -rf conftest*
11310   inn_cv_func_msync_args=3
11311 else
11312   echo "configure: failed program was:" >&5
11313   cat conftest.$ac_ext >&5
11314   rm -rf conftest*
11315   inn_cv_func_msync_args=2
11316 fi
11317 rm -f conftest*
11318 fi
11319
11320 echo "$ac_t""$inn_cv_func_msync_args" 1>&6
11321 if test $inn_cv_func_msync_args = 3 ; then
11322     cat >> confdefs.h <<\EOF
11323 #define HAVE_MSYNC_3_ARG 1
11324 EOF
11325
11326 fi
11327 fi
11328
11329
11330 echo $ac_n "checking for Unix domain sockets""... $ac_c" 1>&6
11331 echo "configure:11332: checking for Unix domain sockets" >&5
11332 if eval "test \"`echo '$''{'inn_cv_sys_unix_sockets'+set}'`\" = set"; then
11333   echo $ac_n "(cached) $ac_c" 1>&6
11334 else
11335   cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11338 #include <sys/socket.h>
11339 #ifdef AF_UNIX
11340 yes
11341 #endif
11342 EOF
11343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11344   egrep "yes" >/dev/null 2>&1; then
11345   rm -rf conftest*
11346   inn_cv_sys_unix_sockets=yes
11347 else
11348   rm -rf conftest*
11349   inn_cv_sys_unix_sockets=no
11350 fi
11351 rm -f conftest*
11352
11353 fi
11354
11355 echo "$ac_t""$inn_cv_sys_unix_sockets" 1>&6
11356 if test $inn_cv_sys_unix_sockets = yes ; then
11357     cat >> confdefs.h <<\EOF
11358 #define HAVE_UNIX_DOMAIN_SOCKETS 1
11359 EOF
11360
11361 fi
11362
11363
11364 echo $ac_n "checking log facility for news""... $ac_c" 1>&6
11365 echo "configure:11366: checking log facility for news" >&5
11366 if eval "test \"`echo '$''{'inn_cv_log_facility'+set}'`\" = set"; then
11367   echo $ac_n "(cached) $ac_c" 1>&6
11368 else
11369   cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11372 #include <syslog.h>
11373 #ifdef LOG_NEWS
11374 yes
11375 #endif
11376 EOF
11377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11378   egrep "yes" >/dev/null 2>&1; then
11379   rm -rf conftest*
11380   inn_cv_log_facility=LOG_NEWS
11381 else
11382   rm -rf conftest*
11383   inn_cv_log_facility=LOG_LOCAL1
11384 fi
11385 rm -f conftest*
11386
11387 fi
11388
11389 if test x"$SYSLOG_FACILITY" = xnone ; then
11390     SYSLOG_FACILITY=$inn_cv_log_facility
11391 fi
11392 echo "$ac_t""$SYSLOG_FACILITY" 1>&6
11393 cat >> confdefs.h <<EOF
11394 #define LOG_INN_SERVER $SYSLOG_FACILITY
11395 EOF
11396
11397 cat >> confdefs.h <<EOF
11398 #define LOG_INN_PROG $SYSLOG_FACILITY
11399 EOF
11400
11401
11402
11403 LIBS=`echo "$LIBS" | sed 's/^  *//' | sed 's/   */ /g' | sed 's/  *$//'`
11404
11405
11406 trap '' 1 2 15
11407 cat > confcache <<\EOF
11408 # This file is a shell script that caches the results of configure
11409 # tests run on this system so they can be shared between configure
11410 # scripts and configure runs.  It is not useful on other systems.
11411 # If it contains results you don't want to keep, you may remove or edit it.
11412 #
11413 # By default, configure uses ./config.cache as the cache file,
11414 # creating it if it does not exist already.  You can give configure
11415 # the --cache-file=FILE option to use a different cache file; that is
11416 # what configure does when it calls configure scripts in
11417 # subdirectories, so they share the cache.
11418 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11419 # config.status only pays attention to the cache file if you give it the
11420 # --recheck option to rerun configure.
11421 #
11422 EOF
11423 # The following way of writing the cache mishandles newlines in values,
11424 # but we know of no workaround that is simple, portable, and efficient.
11425 # So, don't put newlines in cache variables' values.
11426 # Ultrix sh set writes to stderr and can't be redirected directly,
11427 # and sets the high bit in the cache file unless we assign to the vars.
11428 (set) 2>&1 |
11429   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11430   *ac_space=\ *)
11431     # `set' does not quote correctly, so add quotes (double-quote substitution
11432     # turns \\\\ into \\, and sed turns \\ into \).
11433     sed -n \
11434       -e "s/'/'\\\\''/g" \
11435       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11436     ;;
11437   *)
11438     # `set' quotes correctly as required by POSIX, so do not add quotes.
11439     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11440     ;;
11441   esac >> confcache
11442 if cmp -s $cache_file confcache; then
11443   :
11444 else
11445   if test -w $cache_file; then
11446     echo "updating cache $cache_file"
11447     cat confcache > $cache_file
11448   else
11449     echo "not updating unwritable cache $cache_file"
11450   fi
11451 fi
11452 rm -f confcache
11453
11454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11455
11456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11457 # Let make expand exec_prefix.
11458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11459
11460 # Any assignment to VPATH causes Sun make to only execute
11461 # the first set of double-colon rules, so remove it if not needed.
11462 # If there is a colon in the path, we need to keep it.
11463 if test "x$srcdir" = x.; then
11464   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
11465 fi
11466
11467 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11468
11469 DEFS=-DHAVE_CONFIG_H
11470
11471 # Without the "./", some shells look in PATH for config.status.
11472 : ${CONFIG_STATUS=./config.status}
11473
11474 echo creating $CONFIG_STATUS
11475 rm -f $CONFIG_STATUS
11476 cat > $CONFIG_STATUS <<EOF
11477 #! /bin/sh
11478 # Generated automatically by configure.
11479 # Run this file to recreate the current configuration.
11480 # This directory was configured as follows,
11481 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11482 #
11483 # $0 $ac_configure_args
11484 #
11485 # Compiler output produced by configure, useful for debugging
11486 # configure, is in ./config.log if it exists.
11487
11488 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11489 for ac_option
11490 do
11491   case "\$ac_option" in
11492   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11493     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11494     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11495   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11496     echo "$CONFIG_STATUS generated by autoconf version 2.13"
11497     exit 0 ;;
11498   -help | --help | --hel | --he | --h)
11499     echo "\$ac_cs_usage"; exit 0 ;;
11500   *) echo "\$ac_cs_usage"; exit 1 ;;
11501   esac
11502 done
11503
11504 ac_given_srcdir=$srcdir
11505
11506 trap 'rm -fr `echo "Makefile.global
11507         include/paths.h
11508         samples/inn.conf
11509         samples/innreport.conf
11510         samples/newsfeeds
11511         samples/sasl.conf
11512         scripts/inncheck
11513         scripts/innshellvars
11514         scripts/innshellvars.pl
11515         scripts/innshellvars.tcl
11516         scripts/news.daily
11517         support/fixscript
11518          include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11519 EOF
11520 cat >> $CONFIG_STATUS <<EOF
11521
11522 # Protect against being on the right side of a sed subst in config.status.
11523 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11524  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11525 $ac_vpsub
11526 $extrasub
11527 s%@SHELL@%$SHELL%g
11528 s%@CFLAGS@%$CFLAGS%g
11529 s%@CPPFLAGS@%$CPPFLAGS%g
11530 s%@CXXFLAGS@%$CXXFLAGS%g
11531 s%@FFLAGS@%$FFLAGS%g
11532 s%@DEFS@%$DEFS%g
11533 s%@LDFLAGS@%$LDFLAGS%g
11534 s%@LIBS@%$LIBS%g
11535 s%@exec_prefix@%$exec_prefix%g
11536 s%@prefix@%$prefix%g
11537 s%@program_transform_name@%$program_transform_name%g
11538 s%@bindir@%$bindir%g
11539 s%@sbindir@%$sbindir%g
11540 s%@libexecdir@%$libexecdir%g
11541 s%@datadir@%$datadir%g
11542 s%@sysconfdir@%$sysconfdir%g
11543 s%@sharedstatedir@%$sharedstatedir%g
11544 s%@localstatedir@%$localstatedir%g
11545 s%@libdir@%$libdir%g
11546 s%@includedir@%$includedir%g
11547 s%@oldincludedir@%$oldincludedir%g
11548 s%@infodir@%$infodir%g
11549 s%@mandir@%$mandir%g
11550 s%@builddir@%$builddir%g
11551 s%@CC@%$CC%g
11552 s%@CPP@%$CPP%g
11553 s%@OBJEXT@%$OBJEXT%g
11554 s%@host@%$host%g
11555 s%@host_alias@%$host_alias%g
11556 s%@host_cpu@%$host_cpu%g
11557 s%@host_vendor@%$host_vendor%g
11558 s%@host_os@%$host_os%g
11559 s%@build@%$build%g
11560 s%@build_alias@%$build_alias%g
11561 s%@build_cpu@%$build_cpu%g
11562 s%@build_vendor@%$build_vendor%g
11563 s%@build_os@%$build_os%g
11564 s%@LN_S@%$LN_S%g
11565 s%@EXEEXT@%$EXEEXT%g
11566 s%@ECHO@%$ECHO%g
11567 s%@RANLIB@%$RANLIB%g
11568 s%@STRIP@%$STRIP%g
11569 s%@LIBTOOL@%$LIBTOOL%g
11570 s%@EXTLIB@%$EXTLIB%g
11571 s%@EXTOBJ@%$EXTOBJ%g
11572 s%@LIBTOOLCC@%$LIBTOOLCC%g
11573 s%@LIBTOOLLD@%$LIBTOOLLD%g
11574 s%@CCOUTPUT@%$CCOUTPUT%g
11575 s%@CONTROLDIR@%$CONTROLDIR%g
11576 s%@DBDIR@%$DBDIR%g
11577 s%@DOCDIR@%$DOCDIR%g
11578 s%@ETCDIR@%$ETCDIR%g
11579 s%@FILTERDIR@%$FILTERDIR%g
11580 s%@LIBDIR@%$LIBDIR%g
11581 s%@LOGDIR@%$LOGDIR%g
11582 s%@RUNDIR@%$RUNDIR%g
11583 s%@SPOOLDIR@%$SPOOLDIR%g
11584 s%@tmpdir@%$tmpdir%g
11585 s%@NEWSUSER@%$NEWSUSER%g
11586 s%@NEWSGRP@%$NEWSGRP%g
11587 s%@NEWSMASTER@%$NEWSMASTER%g
11588 s%@NEWSUMASK@%$NEWSUMASK%g
11589 s%@FILEMODE@%$FILEMODE%g
11590 s%@DIRMODE@%$DIRMODE%g
11591 s%@RUNDIRMODE@%$RUNDIRMODE%g
11592 s%@INEWSMODE@%$INEWSMODE%g
11593 s%@RNEWSGRP@%$RNEWSGRP%g
11594 s%@RNEWSMODE@%$RNEWSMODE%g
11595 s%@LOG_COMPRESS@%$LOG_COMPRESS%g
11596 s%@LOG_COMPRESSEXT@%$LOG_COMPRESSEXT%g
11597 s%@DO_DBZ_TAGGED_HASH@%$DO_DBZ_TAGGED_HASH%g
11598 s%@HOSTNAME@%$HOSTNAME%g
11599 s%@LEX@%$LEX%g
11600 s%@LEXLIB@%$LEXLIB%g
11601 s%@SET_MAKE@%$SET_MAKE%g
11602 s%@YACC@%$YACC%g
11603 s%@CTAGS@%$CTAGS%g
11604 s%@_PATH_AWK@%$_PATH_AWK%g
11605 s%@_PATH_EGREP@%$_PATH_EGREP%g
11606 s%@_PATH_PERL@%$_PATH_PERL%g
11607 s%@_PATH_SH@%$_PATH_SH%g
11608 s%@_PATH_SED@%$_PATH_SED%g
11609 s%@_PATH_SORT@%$_PATH_SORT%g
11610 s%@_PATH_UUX@%$_PATH_UUX%g
11611 s%@PATH_GPGV@%$PATH_GPGV%g
11612 s%@_PATH_PGP@%$_PATH_PGP%g
11613 s%@pgpverify@%$pgpverify%g
11614 s%@GETFTP@%$GETFTP%g
11615 s%@COMPRESS@%$COMPRESS%g
11616 s%@GZIP@%$GZIP%g
11617 s%@UNCOMPRESS@%$UNCOMPRESS%g
11618 s%@SENDMAIL@%$SENDMAIL%g
11619 s%@HAVE_UUSTAT@%$HAVE_UUSTAT%g
11620 s%@_PATH_PYTHON@%$_PATH_PYTHON%g
11621 s%@CRYPT_LIB@%$CRYPT_LIB%g
11622 s%@SHADOW_LIB@%$SHADOW_LIB%g
11623 s%@PAM_LIB@%$PAM_LIB%g
11624 s%@REGEX_LIB@%$REGEX_LIB%g
11625 s%@BERKELEY_DB_LDFLAGS@%$BERKELEY_DB_LDFLAGS%g
11626 s%@BERKELEY_DB_CFLAGS@%$BERKELEY_DB_CFLAGS%g
11627 s%@BERKELEY_DB_LIB@%$BERKELEY_DB_LIB%g
11628 s%@DBM_LIB@%$DBM_LIB%g
11629 s%@DBM_INC@%$DBM_INC%g
11630 s%@SSL_BIN@%$SSL_BIN%g
11631 s%@SSL_INC@%$SSL_INC%g
11632 s%@SSL_LIB@%$SSL_LIB%g
11633 s%@SASL_INC@%$SASL_INC%g
11634 s%@SASL_LIB@%$SASL_LIB%g
11635 s%@KRB5_AUTH@%$KRB5_AUTH%g
11636 s%@KRB5_INC@%$KRB5_INC%g
11637 s%@KRB5_LIB@%$KRB5_LIB%g
11638 s%@PERL_INC@%$PERL_INC%g
11639 s%@PERL_LIB@%$PERL_LIB%g
11640 s%@PYTHON_LIB@%$PYTHON_LIB%g
11641 s%@PYTHON_INC@%$PYTHON_INC%g
11642 s%@GETCONF@%$GETCONF%g
11643 s%@LFS_CFLAGS@%$LFS_CFLAGS%g
11644 s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
11645 s%@LFS_LIBS@%$LFS_LIBS%g
11646 s%@LIBOBJS@%$LIBOBJS%g
11647 s%@SYSLOG_FACILITY@%$SYSLOG_FACILITY%g
11648
11649 CEOF
11650 EOF
11651
11652 cat >> $CONFIG_STATUS <<\EOF
11653
11654 # Split the substitutions into bite-sized pieces for seds with
11655 # small command number limits, like on Digital OSF/1 and HP-UX.
11656 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11657 ac_file=1 # Number of current file.
11658 ac_beg=1 # First line for current file.
11659 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11660 ac_more_lines=:
11661 ac_sed_cmds=""
11662 while $ac_more_lines; do
11663   if test $ac_beg -gt 1; then
11664     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11665   else
11666     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11667   fi
11668   if test ! -s conftest.s$ac_file; then
11669     ac_more_lines=false
11670     rm -f conftest.s$ac_file
11671   else
11672     if test -z "$ac_sed_cmds"; then
11673       ac_sed_cmds="sed -f conftest.s$ac_file"
11674     else
11675       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11676     fi
11677     ac_file=`expr $ac_file + 1`
11678     ac_beg=$ac_end
11679     ac_end=`expr $ac_end + $ac_max_sed_cmds`
11680   fi
11681 done
11682 if test -z "$ac_sed_cmds"; then
11683   ac_sed_cmds=cat
11684 fi
11685 EOF
11686
11687 cat >> $CONFIG_STATUS <<EOF
11688
11689 CONFIG_FILES=\${CONFIG_FILES-"Makefile.global
11690         include/paths.h
11691         samples/inn.conf
11692         samples/innreport.conf
11693         samples/newsfeeds
11694         samples/sasl.conf
11695         scripts/inncheck
11696         scripts/innshellvars
11697         scripts/innshellvars.pl
11698         scripts/innshellvars.tcl
11699         scripts/news.daily
11700         support/fixscript
11701         "}
11702 EOF
11703 cat >> $CONFIG_STATUS <<\EOF
11704 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11705   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11706   case "$ac_file" in
11707   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11708        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11709   *) ac_file_in="${ac_file}.in" ;;
11710   esac
11711
11712   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11713
11714   # Remove last slash and all that follows it.  Not all systems have dirname.
11715   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11716   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11717     # The file is in a subdirectory.
11718     test ! -d "$ac_dir" && mkdir "$ac_dir"
11719     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11720     # A "../" for each directory in $ac_dir_suffix.
11721     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11722   else
11723     ac_dir_suffix= ac_dots=
11724   fi
11725
11726   case "$ac_given_srcdir" in
11727   .)  srcdir=.
11728       if test -z "$ac_dots"; then top_srcdir=.
11729       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11730   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11731   *) # Relative path.
11732     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11733     top_srcdir="$ac_dots$ac_given_srcdir" ;;
11734   esac
11735
11736
11737   echo creating "$ac_file"
11738   rm -f "$ac_file"
11739   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11740   case "$ac_file" in
11741   *Makefile*) ac_comsub="1i\\
11742 # $configure_input" ;;
11743   *) ac_comsub= ;;
11744   esac
11745
11746   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11747   sed -e "$ac_comsub
11748 s%@configure_input@%$configure_input%g
11749 s%@srcdir@%$srcdir%g
11750 s%@top_srcdir@%$top_srcdir%g
11751 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11752 fi; done
11753 rm -f conftest.s*
11754
11755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11757 #
11758 # ac_d sets the value in "#define NAME VALUE" lines.
11759 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11760 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
11761 ac_dC='\3'
11762 ac_dD='%g'
11763 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11764 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11765 ac_uB='\([      ]\)%\1#\2define\3'
11766 ac_uC=' '
11767 ac_uD='\4%g'
11768 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11769 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11770 ac_eB='$%\1#\2define\3'
11771 ac_eC=' '
11772 ac_eD='%g'
11773
11774 if test "${CONFIG_HEADERS+set}" != set; then
11775 EOF
11776 cat >> $CONFIG_STATUS <<EOF
11777   CONFIG_HEADERS="include/config.h"
11778 EOF
11779 cat >> $CONFIG_STATUS <<\EOF
11780 fi
11781 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11782   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11783   case "$ac_file" in
11784   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11785        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11786   *) ac_file_in="${ac_file}.in" ;;
11787   esac
11788
11789   echo creating $ac_file
11790
11791   rm -f conftest.frag conftest.in conftest.out
11792   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11793   cat $ac_file_inputs > conftest.in
11794
11795 EOF
11796
11797 # Transform confdefs.h into a sed script conftest.vals that substitutes
11798 # the proper values into config.h.in to produce config.h.  And first:
11799 # Protect against being on the right side of a sed subst in config.status.
11800 # Protect against being in an unquoted here document in config.status.
11801 rm -f conftest.vals
11802 cat > conftest.hdr <<\EOF
11803 s/[\\&%]/\\&/g
11804 s%[\\$`]%\\&%g
11805 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11806 s%ac_d%ac_u%gp
11807 s%ac_u%ac_e%gp
11808 EOF
11809 sed -n -f conftest.hdr confdefs.h > conftest.vals
11810 rm -f conftest.hdr
11811
11812 # This sed command replaces #undef with comments.  This is necessary, for
11813 # example, in the case of _POSIX_SOURCE, which is predefined and required
11814 # on some systems where configure will not decide to define it.
11815 cat >> conftest.vals <<\EOF
11816 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11817 EOF
11818
11819 # Break up conftest.vals because some shells have a limit on
11820 # the size of here documents, and old seds have small limits too.
11821
11822 rm -f conftest.tail
11823 while :
11824 do
11825   ac_lines=`grep -c . conftest.vals`
11826   # grep -c gives empty output for an empty file on some AIX systems.
11827   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11828   # Write a limited-size here document to conftest.frag.
11829   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11830   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11831   echo 'CEOF
11832   sed -f conftest.frag conftest.in > conftest.out
11833   rm -f conftest.in
11834   mv conftest.out conftest.in
11835 ' >> $CONFIG_STATUS
11836   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11837   rm -f conftest.vals
11838   mv conftest.tail conftest.vals
11839 done
11840 rm -f conftest.vals
11841
11842 cat >> $CONFIG_STATUS <<\EOF
11843   rm -f conftest.frag conftest.h
11844   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
11845   cat conftest.in >> conftest.h
11846   rm -f conftest.in
11847   if cmp -s $ac_file conftest.h 2>/dev/null; then
11848     echo "$ac_file is unchanged"
11849     rm -f conftest.h
11850   else
11851     # Remove last slash and all that follows it.  Not all systems have dirname.
11852       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11853       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11854       # The file is in a subdirectory.
11855       test ! -d "$ac_dir" && mkdir "$ac_dir"
11856     fi
11857     rm -f $ac_file
11858     mv conftest.h $ac_file
11859   fi
11860 fi; done
11861
11862 EOF
11863 cat >> $CONFIG_STATUS <<EOF
11864
11865 EOF
11866 cat >> $CONFIG_STATUS <<\EOF
11867 chmod +x support/fixscript
11868
11869 exit 0
11870 EOF
11871 chmod +x $CONFIG_STATUS
11872 rm -fr confdefs* $ac_clean_files
11873 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11874
11875
11876 cat <<EOM
11877
11878 Please check the following files before running make, to ensure that 
11879 everything was set correctly.
11880
11881         Makefile.global
11882         include/config.h
11883         include/paths.h
11884         innfeed/innfeed.h
11885
11886 EOM
11887
11888 if $_PATH_PERL -e "exit((stat('$tmpdir'))[2] & 2)" > /dev/null ; then
11889     :
11890 else
11891     cat <<EOM
11892
11893 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11894
11895   The temporary directory you have configured is world-writeable.  It is
11896   currently set to $tmpdir.
11897
11898   This directory is used by INN for temporary files and should only be
11899   writeable by the news user.  INN does not go to great lengths to prevent
11900   symlink attacks and the like because it assumes this directory is not
11901   world-writeable.  By configuring INN in this fashion, you may be
11902   introducing a locally exploitable security hole.
11903
11904   It is STRONGLY recommended that you use a temporary directory reserved for
11905   INN's exclusive use, one which is not world-writeable.  You can do this
11906   either with --with-tmp-dir or by setting --prefix to something other than
11907   /usr or /.
11908
11909 EOM
11910 fi