]> granicus.if.org Git - shadow/blob - configure
[svn-upgrade] Integrating new upstream version, shadow (4.0.0)
[shadow] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator.  Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13   UNAME=${UNAME-`uname 2>/dev/null`}
14   case X$UNAME in
15     *-DOS) lt_cv_sys_path_separator=';' ;;
16     *)     lt_cv_sys_path_separator=':' ;;
17   esac
18   PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
23
24 case X$ECHO in
25 X*--fallback-echo)
26   # Remove one level of quotation (which was required for Make).
27   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
28   ;;
29 esac
30
31 echo=${ECHO-echo}
32 if test "X$1" = X--no-reexec; then
33   # Discard the --no-reexec flag, and continue.
34   shift
35 elif test "X$1" = X--fallback-echo; then
36   # Avoid inline document here, it may be left over
37   :
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39   # Yippee, $echo works!
40   :
41 else
42   # Restart under the correct shell.
43   exec $SHELL "$0" --no-reexec ${1+"$@"}
44 fi
45
46 if test "X$1" = X--fallback-echo; then
47   # used as fallback echo
48   shift
49   cat <<EOF
50
51 EOF
52   exit 0
53 fi
54
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
56 # if CDPATH is set.
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65        echo_test_string="`eval $cmd`" &&
66        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
67     then
68       break
69     fi
70   done
71 fi
72
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75    test "X$echo_testing_string" = "X$echo_test_string"; then
76   :
77 else
78   # The Solaris, AIX, and Digital Unix default echo programs unquote
79   # backslashes.  This makes it impossible to quote backslashes using
80   #   echo "$something" | sed 's/\\/\\\\/g'
81   #
82   # So, first we look for a working echo in the user's PATH.
83
84   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85   for dir in $PATH /usr/ucb; do
86     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89        test "X$echo_testing_string" = "X$echo_test_string"; then
90       echo="$dir/echo"
91       break
92     fi
93   done
94   IFS="$save_ifs"
95
96   if test "X$echo" = Xecho; then
97     # We didn't find a better echo, so look for alternatives.
98     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100        test "X$echo_testing_string" = "X$echo_test_string"; then
101       # This shell has a builtin print -r that does the trick.
102       echo='print -r'
103     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104          test "X$CONFIG_SHELL" != X/bin/ksh; then
105       # If we have ksh, try running configure again with it.
106       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107       export ORIGINAL_CONFIG_SHELL
108       CONFIG_SHELL=/bin/ksh
109       export CONFIG_SHELL
110       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
111     else
112       # Try using printf.
113       echo='printf %s\n'
114       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116          test "X$echo_testing_string" = "X$echo_test_string"; then
117         # Cool, printf works
118         :
119       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120            test "X$echo_testing_string" = 'X\t' &&
121            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122            test "X$echo_testing_string" = "X$echo_test_string"; then
123         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124         export CONFIG_SHELL
125         SHELL="$CONFIG_SHELL"
126         export SHELL
127         echo="$CONFIG_SHELL $0 --fallback-echo"
128       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129            test "X$echo_testing_string" = 'X\t' &&
130            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131            test "X$echo_testing_string" = "X$echo_test_string"; then
132         echo="$CONFIG_SHELL $0 --fallback-echo"
133       else
134         # maybe with a smaller string...
135         prev=:
136
137         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
139           then
140             break
141           fi
142           prev="$cmd"
143         done
144
145         if test "$prev" != 'sed 50q "$0"'; then
146           echo_test_string=`eval $prev`
147           export echo_test_string
148           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149         else
150           # Oops.  We lost completely, so just stick with echo.
151           echo=echo
152         fi
153       fi
154     fi
155   fi
156 fi
157 fi
158
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
161 ECHO=$echo
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
164 fi
165
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
172
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181   emulate sh
182   NULLCMD=:
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
184   set -o posix
185 fi
186
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191   as_expr=expr
192 else
193   as_expr=false
194 fi
195
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199   # We could just check for DJGPP; but this test a) works b) is more generic
200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201   if test -f conf$$.exe; then
202     # Don't use ln at all; we don't have any links
203     as_ln_s='cp -p'
204   else
205     as_ln_s='ln -s'
206   fi
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208   as_ln_s=ln
209 else
210   as_ln_s='cp -p'
211 fi
212 rm -f conf$$ conf$$.exe conf$$.file
213
214 as_executable_p="test -f"
215
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
218   as_unset=unset
219 else
220   as_unset=false
221 fi
222
223 # NLS nuisances.
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
241
242 # Name of the host.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246
247 exec 6>&1
248
249 #
250 # Initializations.
251 #
252 ac_default_prefix=/usr/local
253 cross_compiling=no
254 subdirs=
255 MFLAGS= MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 ac_unique_file="lib/dialchk.c"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
266 #include <stdio.h>
267 #if HAVE_SYS_TYPES_H
268 # include <sys/types.h>
269 #endif
270 #if HAVE_SYS_STAT_H
271 # include <sys/stat.h>
272 #endif
273 #if STDC_HEADERS
274 # include <stdlib.h>
275 # include <stddef.h>
276 #else
277 # if HAVE_STDLIB_H
278 #  include <stdlib.h>
279 # endif
280 #endif
281 #if HAVE_STRING_H
282 # if !STDC_HEADERS && HAVE_MEMORY_H
283 #  include <memory.h>
284 # endif
285 # include <string.h>
286 #endif
287 #if HAVE_STRINGS_H
288 # include <strings.h>
289 #endif
290 #if HAVE_INTTYPES_H
291 # include <inttypes.h>
292 #else
293 # if HAVE_STDINT_H
294 #  include <stdint.h>
295 # endif
296 #endif
297 #if HAVE_UNISTD_H
298 # include <unistd.h>
299 #endif"
300
301 # Initialize some variables set by options.
302 ac_init_help=
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
306 cache_file=/dev/null
307 exec_prefix=NONE
308 no_create=
309 no_recursion=
310 prefix=NONE
311 program_prefix=NONE
312 program_suffix=NONE
313 program_transform_name=s,x,x,
314 silent=
315 site=
316 srcdir=
317 verbose=
318 x_includes=NONE
319 x_libraries=NONE
320
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/lib'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='/var/lib'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/share/info'
337 mandir='${prefix}/share/man'
338
339 # Identity of this package.
340 PACKAGE_NAME=
341 PACKAGE_TARNAME=
342 PACKAGE_VERSION=
343 PACKAGE_STRING=
344 PACKAGE_BUGREPORT=
345
346 ac_prev=
347 for ac_option
348 do
349   # If the previous option needs an argument, assign it.
350   if test -n "$ac_prev"; then
351     eval "$ac_prev=\$ac_option"
352     ac_prev=
353     continue
354   fi
355
356   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
357
358   # Accept the important Cygnus configure options, so we can diagnose typos.
359
360   case $ac_option in
361
362   -bindir | --bindir | --bindi | --bind | --bin | --bi)
363     ac_prev=bindir ;;
364   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
365     bindir=$ac_optarg ;;
366
367   -build | --build | --buil | --bui | --bu)
368     ac_prev=build_alias ;;
369   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
370     build_alias=$ac_optarg ;;
371
372   -cache-file | --cache-file | --cache-fil | --cache-fi \
373   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
374     ac_prev=cache_file ;;
375   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
376   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
377     cache_file=$ac_optarg ;;
378
379   --config-cache | -C)
380     cache_file=config.cache ;;
381
382   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
383     ac_prev=datadir ;;
384   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
385   | --da=*)
386     datadir=$ac_optarg ;;
387
388   -disable-* | --disable-*)
389     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
390     # Reject names that are not valid shell variable names.
391     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393    { (exit 1); exit 1; }; }
394     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395     eval "enable_$ac_feature=no" ;;
396
397   -enable-* | --enable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     case $ac_option in
405       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406       *) ac_optarg=yes ;;
407     esac
408     eval "enable_$ac_feature='$ac_optarg'" ;;
409
410   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412   | --exec | --exe | --ex)
413     ac_prev=exec_prefix ;;
414   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416   | --exec=* | --exe=* | --ex=*)
417     exec_prefix=$ac_optarg ;;
418
419   -gas | --gas | --ga | --g)
420     # Obsolete; use --with-gas.
421     with_gas=yes ;;
422
423   -help | --help | --hel | --he | -h)
424     ac_init_help=long ;;
425   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
426     ac_init_help=recursive ;;
427   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
428     ac_init_help=short ;;
429
430   -host | --host | --hos | --ho)
431     ac_prev=host_alias ;;
432   -host=* | --host=* | --hos=* | --ho=*)
433     host_alias=$ac_optarg ;;
434
435   -includedir | --includedir | --includedi | --included | --include \
436   | --includ | --inclu | --incl | --inc)
437     ac_prev=includedir ;;
438   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
439   | --includ=* | --inclu=* | --incl=* | --inc=*)
440     includedir=$ac_optarg ;;
441
442   -infodir | --infodir | --infodi | --infod | --info | --inf)
443     ac_prev=infodir ;;
444   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
445     infodir=$ac_optarg ;;
446
447   -libdir | --libdir | --libdi | --libd)
448     ac_prev=libdir ;;
449   -libdir=* | --libdir=* | --libdi=* | --libd=*)
450     libdir=$ac_optarg ;;
451
452   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
453   | --libexe | --libex | --libe)
454     ac_prev=libexecdir ;;
455   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
456   | --libexe=* | --libex=* | --libe=*)
457     libexecdir=$ac_optarg ;;
458
459   -localstatedir | --localstatedir | --localstatedi | --localstated \
460   | --localstate | --localstat | --localsta | --localst \
461   | --locals | --local | --loca | --loc | --lo)
462     ac_prev=localstatedir ;;
463   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
464   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
465   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
466     localstatedir=$ac_optarg ;;
467
468   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
469     ac_prev=mandir ;;
470   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471     mandir=$ac_optarg ;;
472
473   -nfp | --nfp | --nf)
474     # Obsolete; use --without-fp.
475     with_fp=no ;;
476
477   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478   | --no-cr | --no-c)
479     no_create=yes ;;
480
481   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
483     no_recursion=yes ;;
484
485   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
486   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
487   | --oldin | --oldi | --old | --ol | --o)
488     ac_prev=oldincludedir ;;
489   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
490   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
491   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
492     oldincludedir=$ac_optarg ;;
493
494   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
495     ac_prev=prefix ;;
496   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
497     prefix=$ac_optarg ;;
498
499   -program-prefix | --program-prefix | --program-prefi | --program-pref \
500   | --program-pre | --program-pr | --program-p)
501     ac_prev=program_prefix ;;
502   -program-prefix=* | --program-prefix=* | --program-prefi=* \
503   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
504     program_prefix=$ac_optarg ;;
505
506   -program-suffix | --program-suffix | --program-suffi | --program-suff \
507   | --program-suf | --program-su | --program-s)
508     ac_prev=program_suffix ;;
509   -program-suffix=* | --program-suffix=* | --program-suffi=* \
510   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
511     program_suffix=$ac_optarg ;;
512
513   -program-transform-name | --program-transform-name \
514   | --program-transform-nam | --program-transform-na \
515   | --program-transform-n | --program-transform- \
516   | --program-transform | --program-transfor \
517   | --program-transfo | --program-transf \
518   | --program-trans | --program-tran \
519   | --progr-tra | --program-tr | --program-t)
520     ac_prev=program_transform_name ;;
521   -program-transform-name=* | --program-transform-name=* \
522   | --program-transform-nam=* | --program-transform-na=* \
523   | --program-transform-n=* | --program-transform-=* \
524   | --program-transform=* | --program-transfor=* \
525   | --program-transfo=* | --program-transf=* \
526   | --program-trans=* | --program-tran=* \
527   | --progr-tra=* | --program-tr=* | --program-t=*)
528     program_transform_name=$ac_optarg ;;
529
530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
531   | -silent | --silent | --silen | --sile | --sil)
532     silent=yes ;;
533
534   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
535     ac_prev=sbindir ;;
536   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
537   | --sbi=* | --sb=*)
538     sbindir=$ac_optarg ;;
539
540   -sharedstatedir | --sharedstatedir | --sharedstatedi \
541   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
542   | --sharedst | --shareds | --shared | --share | --shar \
543   | --sha | --sh)
544     ac_prev=sharedstatedir ;;
545   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
546   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
547   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
548   | --sha=* | --sh=*)
549     sharedstatedir=$ac_optarg ;;
550
551   -site | --site | --sit)
552     ac_prev=site ;;
553   -site=* | --site=* | --sit=*)
554     site=$ac_optarg ;;
555
556   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
557     ac_prev=srcdir ;;
558   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
559     srcdir=$ac_optarg ;;
560
561   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
562   | --syscon | --sysco | --sysc | --sys | --sy)
563     ac_prev=sysconfdir ;;
564   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
565   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
566     sysconfdir=$ac_optarg ;;
567
568   -target | --target | --targe | --targ | --tar | --ta | --t)
569     ac_prev=target_alias ;;
570   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
571     target_alias=$ac_optarg ;;
572
573   -v | -verbose | --verbose | --verbos | --verbo | --verb)
574     verbose=yes ;;
575
576   -version | --version | --versio | --versi | --vers | -V)
577     ac_init_version=: ;;
578
579   -with-* | --with-*)
580     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
581     # Reject names that are not valid shell variable names.
582     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583       { echo "$as_me: error: invalid package name: $ac_package" >&2
584    { (exit 1); exit 1; }; }
585     ac_package=`echo $ac_package| sed 's/-/_/g'`
586     case $ac_option in
587       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
588       *) ac_optarg=yes ;;
589     esac
590     eval "with_$ac_package='$ac_optarg'" ;;
591
592   -without-* | --without-*)
593     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
594     # Reject names that are not valid shell variable names.
595     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596       { echo "$as_me: error: invalid package name: $ac_package" >&2
597    { (exit 1); exit 1; }; }
598     ac_package=`echo $ac_package | sed 's/-/_/g'`
599     eval "with_$ac_package=no" ;;
600
601   --x)
602     # Obsolete; use --with-x.
603     with_x=yes ;;
604
605   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
606   | --x-incl | --x-inc | --x-in | --x-i)
607     ac_prev=x_includes ;;
608   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
609   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
610     x_includes=$ac_optarg ;;
611
612   -x-libraries | --x-libraries | --x-librarie | --x-librari \
613   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
614     ac_prev=x_libraries ;;
615   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
616   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
617     x_libraries=$ac_optarg ;;
618
619   -*) { echo "$as_me: error: unrecognized option: $ac_option
620 Try \`$0 --help' for more information." >&2
621    { (exit 1); exit 1; }; }
622     ;;
623
624   *=*)
625     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
626     # Reject names that are not valid shell variable names.
627     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
628       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
629    { (exit 1); exit 1; }; }
630     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
631     eval "$ac_envvar='$ac_optarg'"
632     export $ac_envvar ;;
633
634   *)
635     # FIXME: should be removed in autoconf 3.0.
636     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
637     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
638       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
639     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
640     ;;
641
642   esac
643 done
644
645 if test -n "$ac_prev"; then
646   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
647   { echo "$as_me: error: missing argument to $ac_option" >&2
648    { (exit 1); exit 1; }; }
649 fi
650
651 # Be sure to have absolute paths.
652 for ac_var in exec_prefix prefix
653 do
654   eval ac_val=$`echo $ac_var`
655   case $ac_val in
656     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
657     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
658    { (exit 1); exit 1; }; };;
659   esac
660 done
661
662 # Be sure to have absolute paths.
663 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
664               localstatedir libdir includedir oldincludedir infodir mandir
665 do
666   eval ac_val=$`echo $ac_var`
667   case $ac_val in
668     [\\/$]* | ?:[\\/]* ) ;;
669     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
670    { (exit 1); exit 1; }; };;
671   esac
672 done
673
674 # There might be people who depend on the old broken behavior: `$host'
675 # used to hold the argument of --host etc.
676 build=$build_alias
677 host=$host_alias
678 target=$target_alias
679
680 # FIXME: should be removed in autoconf 3.0.
681 if test "x$host_alias" != x; then
682   if test "x$build_alias" = x; then
683     cross_compiling=maybe
684     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
685     If a cross compiler is detected then cross compile mode will be used." >&2
686   elif test "x$build_alias" != "x$host_alias"; then
687     cross_compiling=yes
688   fi
689 fi
690
691 ac_tool_prefix=
692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
693
694 test "$silent" = yes && exec 6>/dev/null
695
696 # Find the source files, if location was not specified.
697 if test -z "$srcdir"; then
698   ac_srcdir_defaulted=yes
699   # Try the directory containing this script, then its parent.
700   ac_prog=$0
701   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
702   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
703   srcdir=$ac_confdir
704   if test ! -r $srcdir/$ac_unique_file; then
705     srcdir=..
706   fi
707 else
708   ac_srcdir_defaulted=no
709 fi
710 if test ! -r $srcdir/$ac_unique_file; then
711   if test "$ac_srcdir_defaulted" = yes; then
712     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
713    { (exit 1); exit 1; }; }
714   else
715     { echo "$as_me: error: cannot find sources in $srcdir" >&2
716    { (exit 1); exit 1; }; }
717   fi
718 fi
719 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
720 ac_env_build_alias_set=${build_alias+set}
721 ac_env_build_alias_value=$build_alias
722 ac_cv_env_build_alias_set=${build_alias+set}
723 ac_cv_env_build_alias_value=$build_alias
724 ac_env_host_alias_set=${host_alias+set}
725 ac_env_host_alias_value=$host_alias
726 ac_cv_env_host_alias_set=${host_alias+set}
727 ac_cv_env_host_alias_value=$host_alias
728 ac_env_target_alias_set=${target_alias+set}
729 ac_env_target_alias_value=$target_alias
730 ac_cv_env_target_alias_set=${target_alias+set}
731 ac_cv_env_target_alias_value=$target_alias
732 ac_env_CC_set=${CC+set}
733 ac_env_CC_value=$CC
734 ac_cv_env_CC_set=${CC+set}
735 ac_cv_env_CC_value=$CC
736 ac_env_CFLAGS_set=${CFLAGS+set}
737 ac_env_CFLAGS_value=$CFLAGS
738 ac_cv_env_CFLAGS_set=${CFLAGS+set}
739 ac_cv_env_CFLAGS_value=$CFLAGS
740 ac_env_LDFLAGS_set=${LDFLAGS+set}
741 ac_env_LDFLAGS_value=$LDFLAGS
742 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
743 ac_cv_env_LDFLAGS_value=$LDFLAGS
744 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
745 ac_env_CPPFLAGS_value=$CPPFLAGS
746 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
747 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
748 ac_env_CPP_set=${CPP+set}
749 ac_env_CPP_value=$CPP
750 ac_cv_env_CPP_set=${CPP+set}
751 ac_cv_env_CPP_value=$CPP
752
753 #
754 # Report the --help message.
755 #
756 if test "$ac_init_help" = "long"; then
757   # Omit some internal or obsolete options to make the list less imposing.
758   # This message is too long to be a string in the A/UX 3.1 sh.
759   cat <<EOF
760 \`configure' configures this package to adapt to many kinds of systems.
761
762 Usage: $0 [OPTION]... [VAR=VALUE]...
763
764 To assign environment variables (e.g., CC, CFLAGS...), specify them as
765 VAR=VALUE.  See below for descriptions of some of the useful variables.
766
767 Defaults for the options are specified in brackets.
768
769 Configuration:
770   -h, --help              display this help and exit
771       --help=short        display options specific to this package
772       --help=recursive    display the short help of all the included packages
773   -V, --version           display version information and exit
774   -q, --quiet, --silent   do not print \`checking...' messages
775       --cache-file=FILE   cache test results in FILE [disabled]
776   -C, --config-cache      alias for \`--cache-file=config.cache'
777   -n, --no-create         do not create output files
778       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
779
780 EOF
781
782   cat <<EOF
783 Installation directories:
784   --prefix=PREFIX         install architecture-independent files in PREFIX
785                           [$ac_default_prefix]
786   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
787                           [PREFIX]
788
789 By default, \`make install' will install all the files in
790 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
791 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
792 for instance \`--prefix=\$HOME'.
793
794 For better control, use the options below.
795
796 Fine tuning of the installation directories:
797   --bindir=DIR           user executables [EPREFIX/bin]
798   --sbindir=DIR          system admin executables [EPREFIX/sbin]
799   --libexecdir=DIR       program executables [EPREFIX/libexec]
800   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
801   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
802   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
803   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
804   --libdir=DIR           object code libraries [EPREFIX/lib]
805   --includedir=DIR       C header files [PREFIX/include]
806   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
807   --infodir=DIR          info documentation [PREFIX/info]
808   --mandir=DIR           man documentation [PREFIX/man]
809 EOF
810
811   cat <<\EOF
812
813 Program names:
814   --program-prefix=PREFIX            prepend PREFIX to installed program names
815   --program-suffix=SUFFIX            append SUFFIX to installed program names
816   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
817
818 System types:
819   --build=BUILD     configure for building on BUILD [guessed]
820   --host=HOST       build programs to run on HOST [BUILD]
821 EOF
822 fi
823
824 if test -n "$ac_init_help"; then
825
826   cat <<\EOF
827
828 Optional Features:
829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
831   --disable-dependency-tracking Speeds up one-time builds
832   --enable-dependency-tracking  Do not reject slow dependency extractors
833   --enable-shared=PKGS  build shared libraries default=no
834   --enable-static=PKGS  build static libraries default=yes
835   --enable-fast-install=PKGS  optimize for fast installation default=yes
836   --disable-libtool-lock  avoid locking (might break parallel builds)
837   --enable-desrpc         try to use secure RPC in login (default if found)
838   --enable-shadowgrp      enable shadow group support default=yes
839   --disable-nls           do not use Native Language Support
840
841 Optional Packages:
842   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
843   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
844   --with-gnu-ld           assume the C compiler uses GNU ld default=no
845   --with-pic              try to use only PIC/non-PIC objects default=use both
846   --with-libcrack         try to use libcrack (default if found)
847   --with-libcrypt         try to use libcrypt (default if found)
848   --with-libopie          use libopie for OPIE support
849   --with-libpam           use libpam for PAM support
850   --with-libskey          use libskey for S/Key support
851   --with-libtcfs          use libtcfs for TCFS support
852   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
853   --with-included-gettext use the GNU gettext library included here
854
855 Some influential environment variables:
856   CC          C compiler command
857   CFLAGS      C compiler flags
858   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
859               nonstandard directory <lib dir>
860   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
861               headers in a nonstandard directory <include dir>
862   CPP         C preprocessor
863
864 Use these variables to override the choices made by `configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
866
867 EOF
868 fi
869
870 if test "$ac_init_help" = "recursive"; then
871   # If there are subdirs, report their specific --help.
872   ac_popdir=`pwd`
873   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
874     cd $ac_subdir
875     # A "../" for each directory in /$ac_subdir.
876     ac_dots=`echo $ac_subdir |
877              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
878
879     case $srcdir in
880     .) # No --srcdir option.  We are building in place.
881       ac_sub_srcdir=$srcdir ;;
882     [\\/]* | ?:[\\/]* ) # Absolute path.
883       ac_sub_srcdir=$srcdir/$ac_subdir ;;
884     *) # Relative path.
885       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
886     esac
887
888     # Check for guested configure; otherwise get Cygnus style configure.
889     if test -f $ac_sub_srcdir/configure.gnu; then
890       echo
891       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
892     elif test -f $ac_sub_srcdir/configure; then
893       echo
894       $SHELL $ac_sub_srcdir/configure  --help=recursive
895     elif test -f $ac_sub_srcdir/configure.ac ||
896            test -f $ac_sub_srcdir/configure.in; then
897       echo
898       $ac_configure --help
899     else
900       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
901     fi
902     cd $ac_popdir
903   done
904 fi
905
906 test -n "$ac_init_help" && exit 0
907 if $ac_init_version; then
908   cat <<\EOF
909 configure
910 generated by GNU Autoconf 2.52
911
912 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
913 Free Software Foundation, Inc.
914 This configure script is free software; the Free Software Foundation
915 gives unlimited permission to copy, distribute and modify it.
916 EOF
917   exit 0
918 fi
919 exec 5>config.log
920 cat >&5 <<EOF
921 This file contains any messages produced by compilers while
922 running configure, to aid debugging if configure makes a mistake.
923
924 It was created by $as_me, which was
925 generated by GNU Autoconf 2.52.  Invocation command line was
926
927   $ $0 $@
928
929 EOF
930 {
931 cat <<_ASUNAME
932 ## ---------- ##
933 ## Platform.  ##
934 ## ---------- ##
935
936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
941
942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
943 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
944
945 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
946 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
948 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
949 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
950 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
951 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
952
953 PATH = $PATH
954
955 _ASUNAME
956 } >&5
957
958 cat >&5 <<EOF
959 ## ------------ ##
960 ## Core tests.  ##
961 ## ------------ ##
962
963 EOF
964
965 # Keep a trace of the command line.
966 # Strip out --no-create and --no-recursion so they do not pile up.
967 # Also quote any args containing shell meta-characters.
968 ac_configure_args=
969 ac_sep=
970 for ac_arg
971 do
972   case $ac_arg in
973   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974   | --no-cr | --no-c) ;;
975   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
977   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
978     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
979     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
980     ac_sep=" " ;;
981   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
982      ac_sep=" " ;;
983   esac
984   # Get rid of the leading space.
985 done
986
987 # When interrupted or exit'd, cleanup temporary files, and complete
988 # config.log.  We remove comments because anyway the quotes in there
989 # would cause problems or look ugly.
990 trap 'exit_status=$?
991   # Save into config.log some information that might help in debugging.
992   echo >&5
993   echo "## ----------------- ##" >&5
994   echo "## Cache variables.  ##" >&5
995   echo "## ----------------- ##" >&5
996   echo >&5
997   # The following way of writing the cache mishandles newlines in values,
998 {
999   (set) 2>&1 |
1000     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1001     *ac_space=\ *)
1002       sed -n \
1003         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1004           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1005       ;;
1006     *)
1007       sed -n \
1008         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1009       ;;
1010     esac;
1011 } >&5
1012   sed "/^$/d" confdefs.h >conftest.log
1013   if test -s conftest.log; then
1014     echo >&5
1015     echo "## ------------ ##" >&5
1016     echo "## confdefs.h.  ##" >&5
1017     echo "## ------------ ##" >&5
1018     echo >&5
1019     cat conftest.log >&5
1020   fi
1021   (echo; echo) >&5
1022   test "$ac_signal" != 0 &&
1023     echo "$as_me: caught signal $ac_signal" >&5
1024   echo "$as_me: exit $exit_status" >&5
1025   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1026     exit $exit_status
1027      ' 0
1028 for ac_signal in 1 2 13 15; do
1029   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1030 done
1031 ac_signal=0
1032
1033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1034 rm -rf conftest* confdefs.h
1035 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1036 echo >confdefs.h
1037
1038 # Let the site file select an alternate cache file if it wants to.
1039 # Prefer explicitly selected file to automatically selected ones.
1040 if test -z "$CONFIG_SITE"; then
1041   if test "x$prefix" != xNONE; then
1042     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1043   else
1044     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1045   fi
1046 fi
1047 for ac_site_file in $CONFIG_SITE; do
1048   if test -r "$ac_site_file"; then
1049     { echo "$as_me:1049: loading site script $ac_site_file" >&5
1050 echo "$as_me: loading site script $ac_site_file" >&6;}
1051     cat "$ac_site_file" >&5
1052     . "$ac_site_file"
1053   fi
1054 done
1055
1056 if test -r "$cache_file"; then
1057   # Some versions of bash will fail to source /dev/null (special
1058   # files actually), so we avoid doing that.
1059   if test -f "$cache_file"; then
1060     { echo "$as_me:1060: loading cache $cache_file" >&5
1061 echo "$as_me: loading cache $cache_file" >&6;}
1062     case $cache_file in
1063       [\\/]* | ?:[\\/]* ) . $cache_file;;
1064       *)                      . ./$cache_file;;
1065     esac
1066   fi
1067 else
1068   { echo "$as_me:1068: creating cache $cache_file" >&5
1069 echo "$as_me: creating cache $cache_file" >&6;}
1070   >$cache_file
1071 fi
1072
1073 # Check that the precious variables saved in the cache have kept the same
1074 # value.
1075 ac_cache_corrupted=false
1076 for ac_var in `(set) 2>&1 |
1077                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1078   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1079   eval ac_new_set=\$ac_env_${ac_var}_set
1080   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1081   eval ac_new_val="\$ac_env_${ac_var}_value"
1082   case $ac_old_set,$ac_new_set in
1083     set,)
1084       { echo "$as_me:1084: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1085 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1086       ac_cache_corrupted=: ;;
1087     ,set)
1088       { echo "$as_me:1088: error: \`$ac_var' was not set in the previous run" >&5
1089 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1090       ac_cache_corrupted=: ;;
1091     ,);;
1092     *)
1093       if test "x$ac_old_val" != "x$ac_new_val"; then
1094         { echo "$as_me:1094: error: \`$ac_var' has changed since the previous run:" >&5
1095 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1096         { echo "$as_me:1096:   former value:  $ac_old_val" >&5
1097 echo "$as_me:   former value:  $ac_old_val" >&2;}
1098         { echo "$as_me:1098:   current value: $ac_new_val" >&5
1099 echo "$as_me:   current value: $ac_new_val" >&2;}
1100         ac_cache_corrupted=:
1101       fi;;
1102   esac
1103   # Pass precious variables to config.status.  It doesn't matter if
1104   # we pass some twice (in addition to the command line arguments).
1105   if test "$ac_new_set" = set; then
1106     case $ac_new_val in
1107     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1109       ac_configure_args="$ac_configure_args '$ac_arg'"
1110       ;;
1111     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1112        ;;
1113     esac
1114   fi
1115 done
1116 if $ac_cache_corrupted; then
1117   { echo "$as_me:1117: error: changes in the environment can compromise the build" >&5
1118 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1119   { { echo "$as_me:1119: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1120 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1121    { (exit 1); exit 1; }; }
1122 fi
1123
1124 ac_ext=c
1125 ac_cpp='$CPP $CPPFLAGS'
1126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1129
1130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1131   *c*,-n*) ECHO_N= ECHO_C='
1132 ' ECHO_T='      ' ;;
1133   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1134   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1135 esac
1136 echo "#! $SHELL" >conftest.sh
1137 echo  "exit 0"   >>conftest.sh
1138 chmod +x conftest.sh
1139 if { (echo "$as_me:1139: PATH=\".;.\"; conftest.sh") >&5
1140   (PATH=".;."; conftest.sh) 2>&5
1141   ac_status=$?
1142   echo "$as_me:1142: \$? = $ac_status" >&5
1143   (exit $ac_status); }; then
1144   ac_path_separator=';'
1145 else
1146   ac_path_separator=:
1147 fi
1148 PATH_SEPARATOR="$ac_path_separator"
1149 rm -f conftest.sh
1150
1151 ac_aux_dir=
1152 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1153   if test -f $ac_dir/install-sh; then
1154     ac_aux_dir=$ac_dir
1155     ac_install_sh="$ac_aux_dir/install-sh -c"
1156     break
1157   elif test -f $ac_dir/install.sh; then
1158     ac_aux_dir=$ac_dir
1159     ac_install_sh="$ac_aux_dir/install.sh -c"
1160     break
1161   elif test -f $ac_dir/shtool; then
1162     ac_aux_dir=$ac_dir
1163     ac_install_sh="$ac_aux_dir/shtool install -c"
1164     break
1165   fi
1166 done
1167 if test -z "$ac_aux_dir"; then
1168   { { echo "$as_me:1168: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1169 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1170    { (exit 1); exit 1; }; }
1171 fi
1172 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1173 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1174 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1175
1176 # Find a good install program.  We prefer a C program (faster),
1177 # so one script is as good as another.  But avoid the broken or
1178 # incompatible versions:
1179 # SysV /etc/install, /usr/sbin/install
1180 # SunOS /usr/etc/install
1181 # IRIX /sbin/install
1182 # AIX /bin/install
1183 # AmigaOS /C/install, which installs bootblocks on floppy discs
1184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1187 # ./install, which can be erroneously created by make from ./install.sh.
1188 echo "$as_me:1188: checking for a BSD compatible install" >&5
1189 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1190 if test -z "$INSTALL"; then
1191 if test "${ac_cv_path_install+set}" = set; then
1192   echo $ECHO_N "(cached) $ECHO_C" >&6
1193 else
1194     ac_save_IFS=$IFS; IFS=$ac_path_separator
1195   for ac_dir in $PATH; do
1196     IFS=$ac_save_IFS
1197     # Account for people who put trailing slashes in PATH elements.
1198     case $ac_dir/ in
1199     / | ./ | .// | /cC/* \
1200     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1201     | /usr/ucb/* ) ;;
1202     *)
1203       # OSF1 and SCO ODT 3.0 have their own names for install.
1204       # Don't use installbsd from OSF since it installs stuff as root
1205       # by default.
1206       for ac_prog in ginstall scoinst install; do
1207         if $as_executable_p "$ac_dir/$ac_prog"; then
1208           if test $ac_prog = install &&
1209             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1210             # AIX install.  It has an incompatible calling convention.
1211             :
1212           elif test $ac_prog = install &&
1213             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1214             # program-specific install script used by HP pwplus--don't use.
1215             :
1216           else
1217             ac_cv_path_install="$ac_dir/$ac_prog -c"
1218             break 2
1219           fi
1220         fi
1221       done
1222       ;;
1223     esac
1224   done
1225
1226 fi
1227   if test "${ac_cv_path_install+set}" = set; then
1228     INSTALL=$ac_cv_path_install
1229   else
1230     # As a last resort, use the slow shell script.  We don't cache a
1231     # path for INSTALL within a source directory, because that will
1232     # break other packages using the cache if that directory is
1233     # removed, or if the path is relative.
1234     INSTALL=$ac_install_sh
1235   fi
1236 fi
1237 echo "$as_me:1237: result: $INSTALL" >&5
1238 echo "${ECHO_T}$INSTALL" >&6
1239
1240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1241 # It thinks the first close brace ends the variable substitution.
1242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1243
1244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1245
1246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1247
1248 echo "$as_me:1248: checking whether build environment is sane" >&5
1249 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1250 # Just in case
1251 sleep 1
1252 echo timestamp > conftest.file
1253 # Do `set' in a subshell so we don't clobber the current shell's
1254 # arguments.  Must try -L first in case configure is actually a
1255 # symlink; some systems play weird games with the mod time of symlinks
1256 # (eg FreeBSD returns the mod time of the symlink's containing
1257 # directory).
1258 if (
1259    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1260    if test "$*" = "X"; then
1261       # -L didn't work.
1262       set X `ls -t $srcdir/configure conftest.file`
1263    fi
1264    rm -f conftest.file
1265    if test "$*" != "X $srcdir/configure conftest.file" \
1266       && test "$*" != "X conftest.file $srcdir/configure"; then
1267
1268       # If neither matched, then we have a broken ls.  This can happen
1269       # if, for instance, CONFIG_SHELL is bash and it inherits a
1270       # broken ls alias from the environment.  This has actually
1271       # happened.  Such a system could not be considered "sane".
1272       { { echo "$as_me:1272: error: ls -t appears to fail.  Make sure there is not a broken
1273 alias in your environment" >&5
1274 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1275 alias in your environment" >&2;}
1276    { (exit 1); exit 1; }; }
1277    fi
1278
1279    test "$2" = conftest.file
1280    )
1281 then
1282    # Ok.
1283    :
1284 else
1285    { { echo "$as_me:1285: error: newly created file is older than distributed files!
1286 Check your system clock" >&5
1287 echo "$as_me: error: newly created file is older than distributed files!
1288 Check your system clock" >&2;}
1289    { (exit 1); exit 1; }; }
1290 fi
1291 echo "$as_me:1291: result: yes" >&5
1292 echo "${ECHO_T}yes" >&6
1293 test "$program_prefix" != NONE &&
1294   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1295 # Use a double $ so make ignores it.
1296 test "$program_suffix" != NONE &&
1297   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1298 # Double any \ or $.  echo might interpret backslashes.
1299 # By default was `s,x,x', remove it if useless.
1300 cat <<\_ACEOF >conftest.sed
1301 s/[\\$]/&&/g;s/;s,x,x,$//
1302 _ACEOF
1303 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1304 rm conftest.sed
1305
1306 # expand $ac_aux_dir to an absolute path
1307 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1308
1309 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1310 # Use eval to expand $SHELL
1311 if eval "$MISSING --run true"; then
1312   am_missing_run="$MISSING --run "
1313 else
1314   am_missing_run=
1315   am_backtick='`'
1316   { echo "$as_me:1316: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1317 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1318 fi
1319
1320 for ac_prog in awk mawk gawk nawk
1321 do
1322   # Extract the first word of "$ac_prog", so it can be a program name with args.
1323 set dummy $ac_prog; ac_word=$2
1324 echo "$as_me:1324: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_AWK+set}" = set; then
1327   echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329   if test -n "$AWK"; then
1330   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1331 else
1332   ac_save_IFS=$IFS; IFS=$ac_path_separator
1333 ac_dummy="$PATH"
1334 for ac_dir in $ac_dummy; do
1335   IFS=$ac_save_IFS
1336   test -z "$ac_dir" && ac_dir=.
1337   $as_executable_p "$ac_dir/$ac_word" || continue
1338 ac_cv_prog_AWK="$ac_prog"
1339 echo "$as_me:1339: found $ac_dir/$ac_word" >&5
1340 break
1341 done
1342
1343 fi
1344 fi
1345 AWK=$ac_cv_prog_AWK
1346 if test -n "$AWK"; then
1347   echo "$as_me:1347: result: $AWK" >&5
1348 echo "${ECHO_T}$AWK" >&6
1349 else
1350   echo "$as_me:1350: result: no" >&5
1351 echo "${ECHO_T}no" >&6
1352 fi
1353
1354   test -n "$AWK" && break
1355 done
1356
1357 echo "$as_me:1357: checking whether ${MAKE-make} sets \${MAKE}" >&5
1358 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1359 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1360 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   cat >conftest.make <<\EOF
1364 all:
1365         @echo 'ac_maketemp="${MAKE}"'
1366 EOF
1367 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1368 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1369 if test -n "$ac_maketemp"; then
1370   eval ac_cv_prog_make_${ac_make}_set=yes
1371 else
1372   eval ac_cv_prog_make_${ac_make}_set=no
1373 fi
1374 rm -f conftest.make
1375 fi
1376 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1377   echo "$as_me:1377: result: yes" >&5
1378 echo "${ECHO_T}yes" >&6
1379   SET_MAKE=
1380 else
1381   echo "$as_me:1381: result: no" >&5
1382 echo "${ECHO_T}no" >&6
1383   SET_MAKE="MAKE=${MAKE-make}"
1384 fi
1385
1386 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1387 if test "${enable_dependency_tracking+set}" = set; then
1388   enableval="$enable_dependency_tracking"
1389
1390 fi;
1391 if test "x$enable_dependency_tracking" != xno; then
1392   am_depcomp="$ac_aux_dir/depcomp"
1393   AMDEPBACKSLASH='\'
1394 fi
1395
1396 if test "x$enable_dependency_tracking" != xno; then
1397   AMDEP_TRUE=
1398   AMDEP_FALSE='#'
1399 else
1400   AMDEP_TRUE='#'
1401   AMDEP_FALSE=
1402 fi
1403
1404 rm -f .deps 2>/dev/null
1405 mkdir .deps 2>/dev/null
1406 if test -d .deps; then
1407   DEPDIR=.deps
1408 else
1409   # MS-DOS does not allow filenames that begin with a dot.
1410   DEPDIR=_deps
1411 fi
1412 rmdir .deps 2>/dev/null
1413
1414 # test to see if srcdir already configured
1415 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1416    test -f $srcdir/config.status; then
1417   { { echo "$as_me:1417: error: source directory already configured; run \"make distclean\" there first" >&5
1418 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1419    { (exit 1); exit 1; }; }
1420 fi
1421
1422 # Define the identity of the package.
1423 PACKAGE=shadow
1424 VERSION=4.0.0
1425
1426 cat >>confdefs.h <<EOF
1427 #define PACKAGE "$PACKAGE"
1428 EOF
1429
1430 cat >>confdefs.h <<EOF
1431 #define VERSION "$VERSION"
1432 EOF
1433
1434 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1435 # the ones we care about.
1436
1437 # Autoconf 2.50 always computes EXEEXT.  However we need to be
1438 # compatible with 2.13, for now.  So we always define EXEEXT, but we
1439 # don't compute it.
1440
1441 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1442 # requests that it be used.  This is a bit dumb.
1443 : ${OBJEXT=o}
1444
1445 # Some tools Automake needs.
1446
1447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1448
1449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1450
1451 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1452
1453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1454
1455 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1456
1457 AMTAR=${AMTAR-"${am_missing_run}tar"}
1458
1459 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1460
1461 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1462
1463 # We need awk for the "check" target.  The system "awk" is bad on
1464 # some platforms.
1465
1466                                                     ac_config_headers="$ac_config_headers config.h"
1467
1468 test "$prefix" = "NONE" && prefix="/usr"
1469 test "$prefix" = "/usr" && exec_prefix=""
1470 test "$CFLAGS" = "" && CFLAGS="-O2 -Wall"
1471 test "$LDFLAGS" = "" && LDFLAGS="-s"
1472
1473 # Check whether --enable-shared or --disable-shared was given.
1474 if test "${enable_shared+set}" = set; then
1475   enableval="$enable_shared"
1476   p=${PACKAGE-default}
1477 case $enableval in
1478 yes) enable_shared=yes ;;
1479 no) enable_shared=no ;;
1480 *)
1481   enable_shared=no
1482   # Look at the argument we got.  We use all the common list separators.
1483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1484   for pkg in $enableval; do
1485     if test "X$pkg" = "X$p"; then
1486       enable_shared=yes
1487     fi
1488   done
1489   IFS="$ac_save_ifs"
1490   ;;
1491 esac
1492 else
1493   enable_shared=no
1494 fi;
1495 # Check whether --enable-static or --disable-static was given.
1496 if test "${enable_static+set}" = set; then
1497   enableval="$enable_static"
1498   p=${PACKAGE-default}
1499 case $enableval in
1500 yes) enable_static=yes ;;
1501 no) enable_static=no ;;
1502 *)
1503   enable_static=no
1504   # Look at the argument we got.  We use all the common list separators.
1505   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1506   for pkg in $enableval; do
1507     if test "X$pkg" = "X$p"; then
1508       enable_static=yes
1509     fi
1510   done
1511   IFS="$ac_save_ifs"
1512   ;;
1513 esac
1514 else
1515   enable_static=yes
1516 fi;
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:1526: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534   ac_save_IFS=$IFS; IFS=$ac_path_separator
1535 ac_dummy="$PATH"
1536 for ac_dir in $ac_dummy; do
1537   IFS=$ac_save_IFS
1538   test -z "$ac_dir" && ac_dir=.
1539   $as_executable_p "$ac_dir/$ac_word" || continue
1540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1541 echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1542 break
1543 done
1544
1545 fi
1546 fi
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549   echo "$as_me:1549: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552   echo "$as_me:1552: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 fi
1557 if test -z "$ac_cv_prog_CC"; then
1558   ac_ct_CC=$CC
1559   # Extract the first word of "gcc", so it can be a program name with args.
1560 set dummy gcc; ac_word=$2
1561 echo "$as_me:1561: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$ac_ct_CC"; then
1567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569   ac_save_IFS=$IFS; IFS=$ac_path_separator
1570 ac_dummy="$PATH"
1571 for ac_dir in $ac_dummy; do
1572   IFS=$ac_save_IFS
1573   test -z "$ac_dir" && ac_dir=.
1574   $as_executable_p "$ac_dir/$ac_word" || continue
1575 ac_cv_prog_ac_ct_CC="gcc"
1576 echo "$as_me:1576: found $ac_dir/$ac_word" >&5
1577 break
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:1584: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:1587: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   CC=$ac_ct_CC
1592 else
1593   CC="$ac_cv_prog_CC"
1594 fi
1595
1596 if test -z "$CC"; then
1597   if test -n "$ac_tool_prefix"; then
1598   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:1600: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608   ac_save_IFS=$IFS; IFS=$ac_path_separator
1609 ac_dummy="$PATH"
1610 for ac_dir in $ac_dummy; do
1611   IFS=$ac_save_IFS
1612   test -z "$ac_dir" && ac_dir=.
1613   $as_executable_p "$ac_dir/$ac_word" || continue
1614 ac_cv_prog_CC="${ac_tool_prefix}cc"
1615 echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1616 break
1617 done
1618
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623   echo "$as_me:1623: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626   echo "$as_me:1626: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 fi
1631 if test -z "$ac_cv_prog_CC"; then
1632   ac_ct_CC=$CC
1633   # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:1635: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$ac_ct_CC"; then
1641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 else
1643   ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 ac_dummy="$PATH"
1645 for ac_dir in $ac_dummy; do
1646   IFS=$ac_save_IFS
1647   test -z "$ac_dir" && ac_dir=.
1648   $as_executable_p "$ac_dir/$ac_word" || continue
1649 ac_cv_prog_ac_ct_CC="cc"
1650 echo "$as_me:1650: found $ac_dir/$ac_word" >&5
1651 break
1652 done
1653
1654 fi
1655 fi
1656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1657 if test -n "$ac_ct_CC"; then
1658   echo "$as_me:1658: result: $ac_ct_CC" >&5
1659 echo "${ECHO_T}$ac_ct_CC" >&6
1660 else
1661   echo "$as_me:1661: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 fi
1664
1665   CC=$ac_ct_CC
1666 else
1667   CC="$ac_cv_prog_CC"
1668 fi
1669
1670 fi
1671 if test -z "$CC"; then
1672   # Extract the first word of "cc", so it can be a program name with args.
1673 set dummy cc; ac_word=$2
1674 echo "$as_me:1674: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   if test -n "$CC"; then
1680   ac_cv_prog_CC="$CC" # Let the user override the test.
1681 else
1682   ac_prog_rejected=no
1683   ac_save_IFS=$IFS; IFS=$ac_path_separator
1684 ac_dummy="$PATH"
1685 for ac_dir in $ac_dummy; do
1686   IFS=$ac_save_IFS
1687   test -z "$ac_dir" && ac_dir=.
1688   $as_executable_p "$ac_dir/$ac_word" || continue
1689 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1690   ac_prog_rejected=yes
1691   continue
1692 fi
1693 ac_cv_prog_CC="cc"
1694 echo "$as_me:1694: found $ac_dir/$ac_word" >&5
1695 break
1696 done
1697
1698 if test $ac_prog_rejected = yes; then
1699   # We found a bogon in the path, so make sure we never use it.
1700   set dummy $ac_cv_prog_CC
1701   shift
1702   if test $# != 0; then
1703     # We chose a different compiler from the bogus one.
1704     # However, it has the same basename, so the bogon will be chosen
1705     # first if we set CC to just the basename; use the full file name.
1706     shift
1707     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1708     shift
1709     ac_cv_prog_CC="$@"
1710   fi
1711 fi
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716   echo "$as_me:1716: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719   echo "$as_me:1719: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 fi
1724 if test -z "$CC"; then
1725   if test -n "$ac_tool_prefix"; then
1726   for ac_prog in cl
1727   do
1728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1730 echo "$as_me:1730: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   if test -n "$CC"; then
1736   ac_cv_prog_CC="$CC" # Let the user override the test.
1737 else
1738   ac_save_IFS=$IFS; IFS=$ac_path_separator
1739 ac_dummy="$PATH"
1740 for ac_dir in $ac_dummy; do
1741   IFS=$ac_save_IFS
1742   test -z "$ac_dir" && ac_dir=.
1743   $as_executable_p "$ac_dir/$ac_word" || continue
1744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1745 echo "$as_me:1745: found $ac_dir/$ac_word" >&5
1746 break
1747 done
1748
1749 fi
1750 fi
1751 CC=$ac_cv_prog_CC
1752 if test -n "$CC"; then
1753   echo "$as_me:1753: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1755 else
1756   echo "$as_me:1756: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760     test -n "$CC" && break
1761   done
1762 fi
1763 if test -z "$CC"; then
1764   ac_ct_CC=$CC
1765   for ac_prog in cl
1766 do
1767   # Extract the first word of "$ac_prog", so it can be a program name with args.
1768 set dummy $ac_prog; ac_word=$2
1769 echo "$as_me:1769: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772   echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774   if test -n "$ac_ct_CC"; then
1775   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776 else
1777   ac_save_IFS=$IFS; IFS=$ac_path_separator
1778 ac_dummy="$PATH"
1779 for ac_dir in $ac_dummy; do
1780   IFS=$ac_save_IFS
1781   test -z "$ac_dir" && ac_dir=.
1782   $as_executable_p "$ac_dir/$ac_word" || continue
1783 ac_cv_prog_ac_ct_CC="$ac_prog"
1784 echo "$as_me:1784: found $ac_dir/$ac_word" >&5
1785 break
1786 done
1787
1788 fi
1789 fi
1790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791 if test -n "$ac_ct_CC"; then
1792   echo "$as_me:1792: result: $ac_ct_CC" >&5
1793 echo "${ECHO_T}$ac_ct_CC" >&6
1794 else
1795   echo "$as_me:1795: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799   test -n "$ac_ct_CC" && break
1800 done
1801
1802   CC=$ac_ct_CC
1803 fi
1804
1805 fi
1806
1807 test -z "$CC" && { { echo "$as_me:1807: error: no acceptable cc found in \$PATH" >&5
1808 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1809    { (exit 1); exit 1; }; }
1810
1811 # Provide some information about the compiler.
1812 echo "$as_me:1812:" \
1813      "checking for C compiler version" >&5
1814 ac_compiler=`set X $ac_compile; echo $2`
1815 { (eval echo "$as_me:1815: \"$ac_compiler --version </dev/null >&5\"") >&5
1816   (eval $ac_compiler --version </dev/null >&5) 2>&5
1817   ac_status=$?
1818   echo "$as_me:1818: \$? = $ac_status" >&5
1819   (exit $ac_status); }
1820 { (eval echo "$as_me:1820: \"$ac_compiler -v </dev/null >&5\"") >&5
1821   (eval $ac_compiler -v </dev/null >&5) 2>&5
1822   ac_status=$?
1823   echo "$as_me:1823: \$? = $ac_status" >&5
1824   (exit $ac_status); }
1825 { (eval echo "$as_me:1825: \"$ac_compiler -V </dev/null >&5\"") >&5
1826   (eval $ac_compiler -V </dev/null >&5) 2>&5
1827   ac_status=$?
1828   echo "$as_me:1828: \$? = $ac_status" >&5
1829   (exit $ac_status); }
1830
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #line 1832 "configure"
1833 #include "confdefs.h"
1834
1835 int
1836 main ()
1837 {
1838
1839   ;
1840   return 0;
1841 }
1842 _ACEOF
1843 ac_clean_files_save=$ac_clean_files
1844 ac_clean_files="$ac_clean_files a.out a.exe"
1845 # Try to create an executable without -o first, disregard a.out.
1846 # It will help us diagnose broken compilers, and finding out an intuition
1847 # of exeext.
1848 echo "$as_me:1848: checking for C compiler default output" >&5
1849 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1850 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1851 if { (eval echo "$as_me:1851: \"$ac_link_default\"") >&5
1852   (eval $ac_link_default) 2>&5
1853   ac_status=$?
1854   echo "$as_me:1854: \$? = $ac_status" >&5
1855   (exit $ac_status); }; then
1856   # Find the output, starting from the most likely.  This scheme is
1857 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1858 # resort.
1859 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1860                 ls a.out conftest 2>/dev/null;
1861                 ls a.* conftest.* 2>/dev/null`; do
1862   case $ac_file in
1863     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1864     a.out ) # We found the default executable, but exeext='' is most
1865             # certainly right.
1866             break;;
1867     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1869           export ac_cv_exeext
1870           break;;
1871     * ) break;;
1872   esac
1873 done
1874 else
1875   echo "$as_me: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 { { echo "$as_me:1877: error: C compiler cannot create executables" >&5
1878 echo "$as_me: error: C compiler cannot create executables" >&2;}
1879    { (exit 77); exit 77; }; }
1880 fi
1881
1882 ac_exeext=$ac_cv_exeext
1883 echo "$as_me:1883: result: $ac_file" >&5
1884 echo "${ECHO_T}$ac_file" >&6
1885
1886 # Check the compiler produces executables we can run.  If not, either
1887 # the compiler is broken, or we cross compile.
1888 echo "$as_me:1888: checking whether the C compiler works" >&5
1889 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1890 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1891 # If not cross compiling, check that we can run a simple program.
1892 if test "$cross_compiling" != yes; then
1893   if { ac_try='./$ac_file'
1894   { (eval echo "$as_me:1894: \"$ac_try\"") >&5
1895   (eval $ac_try) 2>&5
1896   ac_status=$?
1897   echo "$as_me:1897: \$? = $ac_status" >&5
1898   (exit $ac_status); }; }; then
1899     cross_compiling=no
1900   else
1901     if test "$cross_compiling" = maybe; then
1902         cross_compiling=yes
1903     else
1904         { { echo "$as_me:1904: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'." >&5
1906 echo "$as_me: error: cannot run C compiled programs.
1907 If you meant to cross compile, use \`--host'." >&2;}
1908    { (exit 1); exit 1; }; }
1909     fi
1910   fi
1911 fi
1912 echo "$as_me:1912: result: yes" >&5
1913 echo "${ECHO_T}yes" >&6
1914
1915 rm -f a.out a.exe conftest$ac_cv_exeext
1916 ac_clean_files=$ac_clean_files_save
1917 # Check the compiler produces executables we can run.  If not, either
1918 # the compiler is broken, or we cross compile.
1919 echo "$as_me:1919: checking whether we are cross compiling" >&5
1920 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1921 echo "$as_me:1921: result: $cross_compiling" >&5
1922 echo "${ECHO_T}$cross_compiling" >&6
1923
1924 echo "$as_me:1924: checking for executable suffix" >&5
1925 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1926 if { (eval echo "$as_me:1926: \"$ac_link\"") >&5
1927   (eval $ac_link) 2>&5
1928   ac_status=$?
1929   echo "$as_me:1929: \$? = $ac_status" >&5
1930   (exit $ac_status); }; then
1931   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1932 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1933 # work properly (i.e., refer to `conftest.exe'), while it won't with
1934 # `rm'.
1935 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1936   case $ac_file in
1937     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:1945: error: cannot compute EXEEXT: cannot compile and link" >&5
1946 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1947    { (exit 1); exit 1; }; }
1948 fi
1949
1950 rm -f conftest$ac_cv_exeext
1951 echo "$as_me:1951: result: $ac_cv_exeext" >&5
1952 echo "${ECHO_T}$ac_cv_exeext" >&6
1953
1954 rm -f conftest.$ac_ext
1955 EXEEXT=$ac_cv_exeext
1956 ac_exeext=$EXEEXT
1957 echo "$as_me:1957: checking for object suffix" >&5
1958 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1959 if test "${ac_cv_objext+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   cat >conftest.$ac_ext <<_ACEOF
1963 #line 1963 "configure"
1964 #include "confdefs.h"
1965
1966 int
1967 main ()
1968 {
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 rm -f conftest.o conftest.obj
1975 if { (eval echo "$as_me:1975: \"$ac_compile\"") >&5
1976   (eval $ac_compile) 2>&5
1977   ac_status=$?
1978   echo "$as_me:1978: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1981   case $ac_file in
1982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1983     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1984        break;;
1985   esac
1986 done
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:1990: error: cannot compute OBJEXT: cannot compile" >&5
1991 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1992    { (exit 1); exit 1; }; }
1993 fi
1994
1995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996 fi
1997 echo "$as_me:1997: result: $ac_cv_objext" >&5
1998 echo "${ECHO_T}$ac_cv_objext" >&6
1999 OBJEXT=$ac_cv_objext
2000 ac_objext=$OBJEXT
2001 echo "$as_me:2001: checking whether we are using the GNU C compiler" >&5
2002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   cat >conftest.$ac_ext <<_ACEOF
2007 #line 2007 "configure"
2008 #include "confdefs.h"
2009
2010 int
2011 main ()
2012 {
2013 #ifndef __GNUC__
2014        choke me
2015 #endif
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:2022: \"$ac_compile\"") >&5
2023   (eval $ac_compile) 2>&5
2024   ac_status=$?
2025   echo "$as_me:2025: \$? = $ac_status" >&5
2026   (exit $ac_status); } &&
2027          { ac_try='test -s conftest.$ac_objext'
2028   { (eval echo "$as_me:2028: \"$ac_try\"") >&5
2029   (eval $ac_try) 2>&5
2030   ac_status=$?
2031   echo "$as_me:2031: \$? = $ac_status" >&5
2032   (exit $ac_status); }; }; then
2033   ac_compiler_gnu=yes
2034 else
2035   echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 ac_compiler_gnu=no
2038 fi
2039 rm -f conftest.$ac_objext conftest.$ac_ext
2040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2041
2042 fi
2043 echo "$as_me:2043: result: $ac_cv_c_compiler_gnu" >&5
2044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2045 GCC=`test $ac_compiler_gnu = yes && echo yes`
2046 ac_test_CFLAGS=${CFLAGS+set}
2047 ac_save_CFLAGS=$CFLAGS
2048 CFLAGS="-g"
2049 echo "$as_me:2049: checking whether $CC accepts -g" >&5
2050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2051 if test "${ac_cv_prog_cc_g+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2057
2058 int
2059 main ()
2060 {
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068   (eval $ac_compile) 2>&5
2069   ac_status=$?
2070   echo "$as_me:2070: \$? = $ac_status" >&5
2071   (exit $ac_status); } &&
2072          { ac_try='test -s conftest.$ac_objext'
2073   { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2074   (eval $ac_try) 2>&5
2075   ac_status=$?
2076   echo "$as_me:2076: \$? = $ac_status" >&5
2077   (exit $ac_status); }; }; then
2078   ac_cv_prog_cc_g=yes
2079 else
2080   echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 ac_cv_prog_cc_g=no
2083 fi
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2085 fi
2086 echo "$as_me:2086: result: $ac_cv_prog_cc_g" >&5
2087 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2088 if test "$ac_test_CFLAGS" = set; then
2089   CFLAGS=$ac_save_CFLAGS
2090 elif test $ac_cv_prog_cc_g = yes; then
2091   if test "$GCC" = yes; then
2092     CFLAGS="-g -O2"
2093   else
2094     CFLAGS="-g"
2095   fi
2096 else
2097   if test "$GCC" = yes; then
2098     CFLAGS="-O2"
2099   else
2100     CFLAGS=
2101   fi
2102 fi
2103 # Some people use a C++ compiler to compile C.  Since we use `exit',
2104 # in C++ we need to declare it.  In case someone uses the same compiler
2105 # for both compiling C and C++ we need to have the C++ compiler decide
2106 # the declaration of exit, since it's the most demanding environment.
2107 cat >conftest.$ac_ext <<_ACEOF
2108 #ifndef __cplusplus
2109   choke me
2110 #endif
2111 _ACEOF
2112 rm -f conftest.$ac_objext
2113 if { (eval echo "$as_me:2113: \"$ac_compile\"") >&5
2114   (eval $ac_compile) 2>&5
2115   ac_status=$?
2116   echo "$as_me:2116: \$? = $ac_status" >&5
2117   (exit $ac_status); } &&
2118          { ac_try='test -s conftest.$ac_objext'
2119   { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:2122: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124   for ac_declaration in \
2125    ''\
2126    '#include <stdlib.h>' \
2127    'extern "C" void std::exit (int) throw (); using std::exit;' \
2128    'extern "C" void std::exit (int); using std::exit;' \
2129    'extern "C" void exit (int) throw ();' \
2130    'extern "C" void exit (int);' \
2131    'void exit (int);'
2132 do
2133   cat >conftest.$ac_ext <<_ACEOF
2134 #line 2134 "configure"
2135 #include "confdefs.h"
2136 #include <stdlib.h>
2137 $ac_declaration
2138 int
2139 main ()
2140 {
2141 exit (42);
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:2147: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:2150: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:2156: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   :
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 continue
2163 fi
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165   cat >conftest.$ac_ext <<_ACEOF
2166 #line 2166 "configure"
2167 #include "confdefs.h"
2168 $ac_declaration
2169 int
2170 main ()
2171 {
2172 exit (42);
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:2178: \"$ac_compile\"") >&5
2179   (eval $ac_compile) 2>&5
2180   ac_status=$?
2181   echo "$as_me:2181: \$? = $ac_status" >&5
2182   (exit $ac_status); } &&
2183          { ac_try='test -s conftest.$ac_objext'
2184   { (eval echo "$as_me:2184: \"$ac_try\"") >&5
2185   (eval $ac_try) 2>&5
2186   ac_status=$?
2187   echo "$as_me:2187: \$? = $ac_status" >&5
2188   (exit $ac_status); }; }; then
2189   break
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 fi
2194 rm -f conftest.$ac_objext conftest.$ac_ext
2195 done
2196 rm -f conftest*
2197 if test -n "$ac_declaration"; then
2198   echo '#ifdef __cplusplus' >>confdefs.h
2199   echo $ac_declaration      >>confdefs.h
2200   echo '#endif'             >>confdefs.h
2201 fi
2202
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 fi
2207 rm -f conftest.$ac_objext conftest.$ac_ext
2208 ac_ext=c
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213
2214 ac_config_commands="$ac_config_commands default-1"
2215
2216 am_make=${MAKE-make}
2217 cat > confinc << 'END'
2218 doit:
2219         @echo done
2220 END
2221 # If we don't find an include directive, just comment out the code.
2222 echo "$as_me:2222: checking for style of include used by $am_make" >&5
2223 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2224 am__include='#'
2225 am__quote=
2226 _am_result=none
2227 # First try GNU make style include.
2228 echo "include confinc" > confmf
2229 # We grep out `Entering directory' and `Leaving directory'
2230 # messages which can occur if `w' ends up in MAKEFLAGS.
2231 # In particular we don't look at `^make:' because GNU make might
2232 # be invoked under some other name (usually "gmake"), in which
2233 # case it prints its new name instead of `make'.
2234 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2235    am__include=include
2236    am__quote=
2237    _am_result=GNU
2238 fi
2239 # Now try BSD make style include.
2240 if test "$am__include" = "#"; then
2241    echo '.include "confinc"' > confmf
2242    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2243       am__include=.include
2244       am__quote='"'
2245       _am_result=BSD
2246    fi
2247 fi
2248
2249 echo "$as_me:2249: result: $_am_result" >&5
2250 echo "${ECHO_T}$_am_result" >&6
2251 rm -f confinc confmf
2252
2253 depcc="$CC"   am_compiler_list=
2254
2255 echo "$as_me:2255: checking dependency style of $depcc" >&5
2256 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2257 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2261   # We make a subdir and do the tests there.  Otherwise we can end up
2262   # making bogus files that we don't know about and never remove.  For
2263   # instance it was reported that on HP-UX the gcc test will end up
2264   # making a dummy file named `D' -- because `-MD' means `put the output
2265   # in D'.
2266   mkdir conftest.dir
2267   # Copy depcomp to subdir because otherwise we won't find it if we're
2268   # using a relative directory.
2269   cp "$am_depcomp" conftest.dir
2270   cd conftest.dir
2271
2272   am_cv_CC_dependencies_compiler_type=none
2273   if test "$am_compiler_list" = ""; then
2274      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2275   fi
2276   for depmode in $am_compiler_list; do
2277     # We need to recreate these files for each test, as the compiler may
2278     # overwrite some of them when testing with obscure command lines.
2279     # This happens at least with the AIX C compiler.
2280     echo '#include "conftest.h"' > conftest.c
2281     echo 'int i;' > conftest.h
2282     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2283
2284     case $depmode in
2285     nosideeffect)
2286       # after this tag, mechanisms are not by side-effect, so they'll
2287       # only be used when explicitly requested
2288       if test "x$enable_dependency_tracking" = xyes; then
2289         continue
2290       else
2291         break
2292       fi
2293       ;;
2294     none) break ;;
2295     esac
2296     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2297     # mode.  It turns out that the SunPro C++ compiler does not properly
2298     # handle `-M -o', and we need to detect this.
2299     if depmode=$depmode \
2300        source=conftest.c object=conftest.o \
2301        depfile=conftest.Po tmpdepfile=conftest.TPo \
2302        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2303        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2304        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2305       am_cv_CC_dependencies_compiler_type=$depmode
2306       break
2307     fi
2308   done
2309
2310   cd ..
2311   rm -rf conftest.dir
2312 else
2313   am_cv_CC_dependencies_compiler_type=none
2314 fi
2315
2316 fi
2317 echo "$as_me:2317: result: $am_cv_CC_dependencies_compiler_type" >&5
2318 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2319 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2320
2321         echo "$as_me:2321: checking for strerror in -lcposix" >&5
2322 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2323 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   ac_check_lib_save_LIBS=$LIBS
2327 LIBS="-lcposix  $LIBS"
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2331
2332 /* Override any gcc2 internal prototype to avoid an error.  */
2333 #ifdef __cplusplus
2334 extern "C"
2335 #endif
2336 /* We use char because int might match the return type of a gcc2
2337    builtin and then its argument prototype would still apply.  */
2338 char strerror ();
2339 int
2340 main ()
2341 {
2342 strerror ();
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.$ac_objext conftest$ac_exeext
2348 if { (eval echo "$as_me:2348: \"$ac_link\"") >&5
2349   (eval $ac_link) 2>&5
2350   ac_status=$?
2351   echo "$as_me:2351: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -s conftest$ac_exeext'
2354   { (eval echo "$as_me:2354: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:2357: \$? = $ac_status" >&5
2358   (exit $ac_status); }; }; then
2359   ac_cv_lib_cposix_strerror=yes
2360 else
2361   echo "$as_me: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 ac_cv_lib_cposix_strerror=no
2364 fi
2365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2366 LIBS=$ac_check_lib_save_LIBS
2367 fi
2368 echo "$as_me:2368: result: $ac_cv_lib_cposix_strerror" >&5
2369 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2370 if test $ac_cv_lib_cposix_strerror = yes; then
2371   LIBS="$LIBS -lcposix"
2372 fi
2373
2374 echo "$as_me:2374: checking whether ln -s works" >&5
2375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2376 LN_S=$as_ln_s
2377 if test "$LN_S" = "ln -s"; then
2378   echo "$as_me:2378: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6
2380 else
2381   echo "$as_me:2381: result: no, using $LN_S" >&5
2382 echo "${ECHO_T}no, using $LN_S" >&6
2383 fi
2384
2385 for ac_prog in 'bison -y' byacc
2386 do
2387   # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:2389: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_YACC+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$YACC"; then
2395   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2396 else
2397   ac_save_IFS=$IFS; IFS=$ac_path_separator
2398 ac_dummy="$PATH"
2399 for ac_dir in $ac_dummy; do
2400   IFS=$ac_save_IFS
2401   test -z "$ac_dir" && ac_dir=.
2402   $as_executable_p "$ac_dir/$ac_word" || continue
2403 ac_cv_prog_YACC="$ac_prog"
2404 echo "$as_me:2404: found $ac_dir/$ac_word" >&5
2405 break
2406 done
2407
2408 fi
2409 fi
2410 YACC=$ac_cv_prog_YACC
2411 if test -n "$YACC"; then
2412   echo "$as_me:2412: result: $YACC" >&5
2413 echo "${ECHO_T}$YACC" >&6
2414 else
2415   echo "$as_me:2415: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2417 fi
2418
2419   test -n "$YACC" && break
2420 done
2421 test -n "$YACC" || YACC="yacc"
2422
2423 echo "$as_me:2423: checking for ${CC-cc} option to accept ANSI C" >&5
2424 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2425 if test "${am_cv_prog_cc_stdc+set}" = set; then
2426   echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428   am_cv_prog_cc_stdc=no
2429 ac_save_CC="$CC"
2430 # Don't try gcc -ansi; that turns off useful extensions and
2431 # breaks some systems' header files.
2432 # AIX                   -qlanglvl=ansi
2433 # Ultrix and OSF/1      -std1
2434 # HP-UX 10.20 and later -Ae
2435 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2436 # SVR4                  -Xc -D__EXTENSIONS__
2437 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2438 do
2439   CC="$ac_save_CC $ac_arg"
2440   cat >conftest.$ac_ext <<_ACEOF
2441 #line 2441 "configure"
2442 #include "confdefs.h"
2443 #include <stdarg.h>
2444 #include <stdio.h>
2445 #include <sys/types.h>
2446 #include <sys/stat.h>
2447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2448 struct buf { int x; };
2449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2450 static char *e (p, i)
2451      char **p;
2452      int i;
2453 {
2454   return p[i];
2455 }
2456 static char *f (char * (*g) (char **, int), char **p, ...)
2457 {
2458   char *s;
2459   va_list v;
2460   va_start (v,p);
2461   s = g (p, va_arg (v,int));
2462   va_end (v);
2463   return s;
2464 }
2465 int test (int i, double x);
2466 struct s1 {int (*f) (int a);};
2467 struct s2 {int (*f) (double a);};
2468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2469 int argc;
2470 char **argv;
2471
2472 int
2473 main ()
2474 {
2475
2476 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:2483: \"$ac_compile\"") >&5
2484   (eval $ac_compile) 2>&5
2485   ac_status=$?
2486   echo "$as_me:2486: \$? = $ac_status" >&5
2487   (exit $ac_status); } &&
2488          { ac_try='test -s conftest.$ac_objext'
2489   { (eval echo "$as_me:2489: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:2492: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   am_cv_prog_cc_stdc="$ac_arg"; break
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2498 fi
2499 rm -f conftest.$ac_objext conftest.$ac_ext
2500 done
2501 CC="$ac_save_CC"
2502
2503 fi
2504
2505 if test -z "$am_cv_prog_cc_stdc"; then
2506   echo "$as_me:2506: result: none needed" >&5
2507 echo "${ECHO_T}none needed" >&6
2508 else
2509   echo "$as_me:2509: result: $am_cv_prog_cc_stdc" >&5
2510 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2511 fi
2512 case "x$am_cv_prog_cc_stdc" in
2513   x|xno) ;;
2514   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2515 esac
2516
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 echo "$as_me:2522: checking how to run the C preprocessor" >&5
2523 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2524 # On Suns, sometimes $CPP names a directory.
2525 if test -n "$CPP" && test -d "$CPP"; then
2526   CPP=
2527 fi
2528 if test -z "$CPP"; then
2529   if test "${ac_cv_prog_CPP+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532       # Double quotes because CPP needs to be expanded
2533     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2534     do
2535       ac_preproc_ok=false
2536 for ac_c_preproc_warn_flag in '' yes
2537 do
2538   # Use a header file that comes with gcc, so configuring glibc
2539   # with a fresh cross-compiler works.
2540   # On the NeXT, cc -E runs the code through the compiler's parser,
2541   # not just through cpp. "Syntax error" is here to catch this case.
2542   cat >conftest.$ac_ext <<_ACEOF
2543 #line 2543 "configure"
2544 #include "confdefs.h"
2545 #include <assert.h>
2546                      Syntax error
2547 _ACEOF
2548 if { (eval echo "$as_me:2548: \"$ac_cpp conftest.$ac_ext\"") >&5
2549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2550   ac_status=$?
2551   egrep -v '^ *\+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:2554: \$? = $ac_status" >&5
2555   (exit $ac_status); } >/dev/null; then
2556   if test -s conftest.err; then
2557     ac_cpp_err=$ac_c_preproc_warn_flag
2558   else
2559     ac_cpp_err=
2560   fi
2561 else
2562   ac_cpp_err=yes
2563 fi
2564 if test -z "$ac_cpp_err"; then
2565   :
2566 else
2567   echo "$as_me: failed program was:" >&5
2568   cat conftest.$ac_ext >&5
2569   # Broken: fails on valid input.
2570 continue
2571 fi
2572 rm -f conftest.err conftest.$ac_ext
2573
2574   # OK, works on sane cases.  Now check whether non-existent headers
2575   # can be detected and how.
2576   cat >conftest.$ac_ext <<_ACEOF
2577 #line 2577 "configure"
2578 #include "confdefs.h"
2579 #include <ac_nonexistent.h>
2580 _ACEOF
2581 if { (eval echo "$as_me:2581: \"$ac_cpp conftest.$ac_ext\"") >&5
2582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2583   ac_status=$?
2584   egrep -v '^ *\+' conftest.er1 >conftest.err
2585   rm -f conftest.er1
2586   cat conftest.err >&5
2587   echo "$as_me:2587: \$? = $ac_status" >&5
2588   (exit $ac_status); } >/dev/null; then
2589   if test -s conftest.err; then
2590     ac_cpp_err=$ac_c_preproc_warn_flag
2591   else
2592     ac_cpp_err=
2593   fi
2594 else
2595   ac_cpp_err=yes
2596 fi
2597 if test -z "$ac_cpp_err"; then
2598   # Broken: success on invalid input.
2599 continue
2600 else
2601   echo "$as_me: failed program was:" >&5
2602   cat conftest.$ac_ext >&5
2603   # Passes both tests.
2604 ac_preproc_ok=:
2605 break
2606 fi
2607 rm -f conftest.err conftest.$ac_ext
2608
2609 done
2610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2611 rm -f conftest.err conftest.$ac_ext
2612 if $ac_preproc_ok; then
2613   break
2614 fi
2615
2616     done
2617     ac_cv_prog_CPP=$CPP
2618
2619 fi
2620   CPP=$ac_cv_prog_CPP
2621 else
2622   ac_cv_prog_CPP=$CPP
2623 fi
2624 echo "$as_me:2624: result: $CPP" >&5
2625 echo "${ECHO_T}$CPP" >&6
2626 ac_preproc_ok=false
2627 for ac_c_preproc_warn_flag in '' yes
2628 do
2629   # Use a header file that comes with gcc, so configuring glibc
2630   # with a fresh cross-compiler works.
2631   # On the NeXT, cc -E runs the code through the compiler's parser,
2632   # not just through cpp. "Syntax error" is here to catch this case.
2633   cat >conftest.$ac_ext <<_ACEOF
2634 #line 2634 "configure"
2635 #include "confdefs.h"
2636 #include <assert.h>
2637                      Syntax error
2638 _ACEOF
2639 if { (eval echo "$as_me:2639: \"$ac_cpp conftest.$ac_ext\"") >&5
2640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2641   ac_status=$?
2642   egrep -v '^ *\+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:2645: \$? = $ac_status" >&5
2646   (exit $ac_status); } >/dev/null; then
2647   if test -s conftest.err; then
2648     ac_cpp_err=$ac_c_preproc_warn_flag
2649   else
2650     ac_cpp_err=
2651   fi
2652 else
2653   ac_cpp_err=yes
2654 fi
2655 if test -z "$ac_cpp_err"; then
2656   :
2657 else
2658   echo "$as_me: failed program was:" >&5
2659   cat conftest.$ac_ext >&5
2660   # Broken: fails on valid input.
2661 continue
2662 fi
2663 rm -f conftest.err conftest.$ac_ext
2664
2665   # OK, works on sane cases.  Now check whether non-existent headers
2666   # can be detected and how.
2667   cat >conftest.$ac_ext <<_ACEOF
2668 #line 2668 "configure"
2669 #include "confdefs.h"
2670 #include <ac_nonexistent.h>
2671 _ACEOF
2672 if { (eval echo "$as_me:2672: \"$ac_cpp conftest.$ac_ext\"") >&5
2673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2674   ac_status=$?
2675   egrep -v '^ *\+' conftest.er1 >conftest.err
2676   rm -f conftest.er1
2677   cat conftest.err >&5
2678   echo "$as_me:2678: \$? = $ac_status" >&5
2679   (exit $ac_status); } >/dev/null; then
2680   if test -s conftest.err; then
2681     ac_cpp_err=$ac_c_preproc_warn_flag
2682   else
2683     ac_cpp_err=
2684   fi
2685 else
2686   ac_cpp_err=yes
2687 fi
2688 if test -z "$ac_cpp_err"; then
2689   # Broken: success on invalid input.
2690 continue
2691 else
2692   echo "$as_me: failed program was:" >&5
2693   cat conftest.$ac_ext >&5
2694   # Passes both tests.
2695 ac_preproc_ok=:
2696 break
2697 fi
2698 rm -f conftest.err conftest.$ac_ext
2699
2700 done
2701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2702 rm -f conftest.err conftest.$ac_ext
2703 if $ac_preproc_ok; then
2704   :
2705 else
2706   { { echo "$as_me:2706: error: C preprocessor \"$CPP\" fails sanity check" >&5
2707 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2708    { (exit 1); exit 1; }; }
2709 fi
2710
2711 ac_ext=c
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716
2717 echo "$as_me:2717: checking for function prototypes" >&5
2718 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2719 if test "$am_cv_prog_cc_stdc" != no; then
2720   echo "$as_me:2720: result: yes" >&5
2721 echo "${ECHO_T}yes" >&6
2722
2723 cat >>confdefs.h <<\EOF
2724 #define PROTOTYPES 1
2725 EOF
2726
2727   U= ANSI2KNR=
2728 else
2729   echo "$as_me:2729: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2731   U=_ ANSI2KNR=./ansi2knr
2732 fi
2733 # Ensure some checks needed by ansi2knr itself.
2734 echo "$as_me:2734: checking for ANSI C header files" >&5
2735 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2736 if test "${ac_cv_header_stdc+set}" = set; then
2737   echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739   cat >conftest.$ac_ext <<_ACEOF
2740 #line 2740 "configure"
2741 #include "confdefs.h"
2742 #include <stdlib.h>
2743 #include <stdarg.h>
2744 #include <string.h>
2745 #include <float.h>
2746
2747 _ACEOF
2748 if { (eval echo "$as_me:2748: \"$ac_cpp conftest.$ac_ext\"") >&5
2749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750   ac_status=$?
2751   egrep -v '^ *\+' conftest.er1 >conftest.err
2752   rm -f conftest.er1
2753   cat conftest.err >&5
2754   echo "$as_me:2754: \$? = $ac_status" >&5
2755   (exit $ac_status); } >/dev/null; then
2756   if test -s conftest.err; then
2757     ac_cpp_err=$ac_c_preproc_warn_flag
2758   else
2759     ac_cpp_err=
2760   fi
2761 else
2762   ac_cpp_err=yes
2763 fi
2764 if test -z "$ac_cpp_err"; then
2765   ac_cv_header_stdc=yes
2766 else
2767   echo "$as_me: failed program was:" >&5
2768   cat conftest.$ac_ext >&5
2769   ac_cv_header_stdc=no
2770 fi
2771 rm -f conftest.err conftest.$ac_ext
2772
2773 if test $ac_cv_header_stdc = yes; then
2774   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2775   cat >conftest.$ac_ext <<_ACEOF
2776 #line 2776 "configure"
2777 #include "confdefs.h"
2778 #include <string.h>
2779
2780 _ACEOF
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782   egrep "memchr" >/dev/null 2>&1; then
2783   :
2784 else
2785   ac_cv_header_stdc=no
2786 fi
2787 rm -f conftest*
2788
2789 fi
2790
2791 if test $ac_cv_header_stdc = yes; then
2792   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2793   cat >conftest.$ac_ext <<_ACEOF
2794 #line 2794 "configure"
2795 #include "confdefs.h"
2796 #include <stdlib.h>
2797
2798 _ACEOF
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800   egrep "free" >/dev/null 2>&1; then
2801   :
2802 else
2803   ac_cv_header_stdc=no
2804 fi
2805 rm -f conftest*
2806
2807 fi
2808
2809 if test $ac_cv_header_stdc = yes; then
2810   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2811   if test "$cross_compiling" = yes; then
2812   :
2813 else
2814   cat >conftest.$ac_ext <<_ACEOF
2815 #line 2815 "configure"
2816 #include "confdefs.h"
2817 #include <ctype.h>
2818 #if ((' ' & 0x0FF) == 0x020)
2819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2821 #else
2822 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2823                      || ('j' <= (c) && (c) <= 'r') \
2824                      || ('s' <= (c) && (c) <= 'z'))
2825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2826 #endif
2827
2828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2829 int
2830 main ()
2831 {
2832   int i;
2833   for (i = 0; i < 256; i++)
2834     if (XOR (islower (i), ISLOWER (i))
2835         || toupper (i) != TOUPPER (i))
2836       exit(2);
2837   exit (0);
2838 }
2839 _ACEOF
2840 rm -f conftest$ac_exeext
2841 if { (eval echo "$as_me:2841: \"$ac_link\"") >&5
2842   (eval $ac_link) 2>&5
2843   ac_status=$?
2844   echo "$as_me:2844: \$? = $ac_status" >&5
2845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2846   { (eval echo "$as_me:2846: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:2849: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   :
2852 else
2853   echo "$as_me: program exited with status $ac_status" >&5
2854 echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 ac_cv_header_stdc=no
2857 fi
2858 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2859 fi
2860 fi
2861 fi
2862 echo "$as_me:2862: result: $ac_cv_header_stdc" >&5
2863 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2864 if test $ac_cv_header_stdc = yes; then
2865
2866 cat >>confdefs.h <<\EOF
2867 #define STDC_HEADERS 1
2868 EOF
2869
2870 fi
2871
2872 for ac_header in string.h
2873 do
2874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2875 echo "$as_me:2875: checking for $ac_header" >&5
2876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   cat >conftest.$ac_ext <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2883 #include <$ac_header>
2884 _ACEOF
2885 if { (eval echo "$as_me:2885: \"$ac_cpp conftest.$ac_ext\"") >&5
2886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887   ac_status=$?
2888   egrep -v '^ *\+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:2891: \$? = $ac_status" >&5
2892   (exit $ac_status); } >/dev/null; then
2893   if test -s conftest.err; then
2894     ac_cpp_err=$ac_c_preproc_warn_flag
2895   else
2896     ac_cpp_err=
2897   fi
2898 else
2899   ac_cpp_err=yes
2900 fi
2901 if test -z "$ac_cpp_err"; then
2902   eval "$as_ac_Header=yes"
2903 else
2904   echo "$as_me: failed program was:" >&5
2905   cat conftest.$ac_ext >&5
2906   eval "$as_ac_Header=no"
2907 fi
2908 rm -f conftest.err conftest.$ac_ext
2909 fi
2910 echo "$as_me:2910: result: `eval echo '${'$as_ac_Header'}'`" >&5
2911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2913   cat >>confdefs.h <<EOF
2914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2915 EOF
2916
2917 fi
2918 done
2919
2920 # Check whether --enable-fast-install or --disable-fast-install was given.
2921 if test "${enable_fast_install+set}" = set; then
2922   enableval="$enable_fast_install"
2923   p=${PACKAGE-default}
2924 case $enableval in
2925 yes) enable_fast_install=yes ;;
2926 no) enable_fast_install=no ;;
2927 *)
2928   enable_fast_install=no
2929   # Look at the argument we got.  We use all the common list separators.
2930   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2931   for pkg in $enableval; do
2932     if test "X$pkg" = "X$p"; then
2933       enable_fast_install=yes
2934     fi
2935   done
2936   IFS="$ac_save_ifs"
2937   ;;
2938 esac
2939 else
2940   enable_fast_install=yes
2941 fi;
2942 # Make sure we can run config.sub.
2943 $ac_config_sub sun4 >/dev/null 2>&1 ||
2944   { { echo "$as_me:2944: error: cannot run $ac_config_sub" >&5
2945 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2946    { (exit 1); exit 1; }; }
2947
2948 echo "$as_me:2948: checking build system type" >&5
2949 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2950 if test "${ac_cv_build+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   ac_cv_build_alias=$build_alias
2954 test -z "$ac_cv_build_alias" &&
2955   ac_cv_build_alias=`$ac_config_guess`
2956 test -z "$ac_cv_build_alias" &&
2957   { { echo "$as_me:2957: error: cannot guess build type; you must specify one" >&5
2958 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2959    { (exit 1); exit 1; }; }
2960 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2961   { { echo "$as_me:2961: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2962 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2963    { (exit 1); exit 1; }; }
2964
2965 fi
2966 echo "$as_me:2966: result: $ac_cv_build" >&5
2967 echo "${ECHO_T}$ac_cv_build" >&6
2968 build=$ac_cv_build
2969 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2970 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2971 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2972
2973 echo "$as_me:2973: checking host system type" >&5
2974 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2975 if test "${ac_cv_host+set}" = set; then
2976   echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978   ac_cv_host_alias=$host_alias
2979 test -z "$ac_cv_host_alias" &&
2980   ac_cv_host_alias=$ac_cv_build_alias
2981 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2982   { { echo "$as_me:2982: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2983 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2984    { (exit 1); exit 1; }; }
2985
2986 fi
2987 echo "$as_me:2987: result: $ac_cv_host" >&5
2988 echo "${ECHO_T}$ac_cv_host" >&6
2989 host=$ac_cv_host
2990 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2991 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2992 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2993
2994 # Find the correct PATH separator.  Usually this is `:', but
2995 # DJGPP uses `;' like DOS.
2996 if test "X${PATH_SEPARATOR+set}" != Xset; then
2997   UNAME=${UNAME-`uname 2>/dev/null`}
2998   case X$UNAME in
2999     *-DOS) lt_cv_sys_path_separator=';' ;;
3000     *)     lt_cv_sys_path_separator=':' ;;
3001   esac
3002   PATH_SEPARATOR=$lt_cv_sys_path_separator
3003 fi
3004
3005 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3006 if test "${with_gnu_ld+set}" = set; then
3007   withval="$with_gnu_ld"
3008   test "$withval" = no || with_gnu_ld=yes
3009 else
3010   with_gnu_ld=no
3011 fi;
3012 ac_prog=ld
3013 if test "$GCC" = yes; then
3014   # Check if gcc -print-prog-name=ld gives a path.
3015   echo "$as_me:3015: checking for ld used by GCC" >&5
3016 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3017   case $host in
3018   *-*-mingw*)
3019     # gcc leaves a trailing carriage return which upsets mingw
3020     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3021   *)
3022     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3023   esac
3024   case $ac_prog in
3025     # Accept absolute paths.
3026     [\\/]* | [A-Za-z]:[\\/]*)
3027       re_direlt='/[^/][^/]*/\.\./'
3028       # Canonicalize the path of ld
3029       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3030       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3031         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3032       done
3033       test -z "$LD" && LD="$ac_prog"
3034       ;;
3035   "")
3036     # If it fails, then pretend we aren't using GCC.
3037     ac_prog=ld
3038     ;;
3039   *)
3040     # If it is relative, then search for the first ld in PATH.
3041     with_gnu_ld=unknown
3042     ;;
3043   esac
3044 elif test "$with_gnu_ld" = yes; then
3045   echo "$as_me:3045: checking for GNU ld" >&5
3046 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3047 else
3048   echo "$as_me:3048: checking for non-GNU ld" >&5
3049 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3050 fi
3051 if test "${lt_cv_path_LD+set}" = set; then
3052   echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054   if test -z "$LD"; then
3055   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3056   for ac_dir in $PATH; do
3057     test -z "$ac_dir" && ac_dir=.
3058     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3059       lt_cv_path_LD="$ac_dir/$ac_prog"
3060       # Check to see if the program is GNU ld.  I'd rather use --version,
3061       # but apparently some GNU ld's only accept -v.
3062       # Break only if it was the GNU/non-GNU ld that we prefer.
3063       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3064         test "$with_gnu_ld" != no && break
3065       else
3066         test "$with_gnu_ld" != yes && break
3067       fi
3068     fi
3069   done
3070   IFS="$ac_save_ifs"
3071 else
3072   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3073 fi
3074 fi
3075
3076 LD="$lt_cv_path_LD"
3077 if test -n "$LD"; then
3078   echo "$as_me:3078: result: $LD" >&5
3079 echo "${ECHO_T}$LD" >&6
3080 else
3081   echo "$as_me:3081: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3083 fi
3084 test -z "$LD" && { { echo "$as_me:3084: error: no acceptable ld found in \$PATH" >&5
3085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3086    { (exit 1); exit 1; }; }
3087 echo "$as_me:3087: checking if the linker ($LD) is GNU ld" >&5
3088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3090   echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3093 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3094   lt_cv_prog_gnu_ld=yes
3095 else
3096   lt_cv_prog_gnu_ld=no
3097 fi
3098 fi
3099 echo "$as_me:3099: result: $lt_cv_prog_gnu_ld" >&5
3100 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3101 with_gnu_ld=$lt_cv_prog_gnu_ld
3102
3103 echo "$as_me:3103: checking for $LD option to reload object files" >&5
3104 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3105 if test "${lt_cv_ld_reload_flag+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   lt_cv_ld_reload_flag='-r'
3109 fi
3110 echo "$as_me:3110: result: $lt_cv_ld_reload_flag" >&5
3111 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3112 reload_flag=$lt_cv_ld_reload_flag
3113 test -n "$reload_flag" && reload_flag=" $reload_flag"
3114
3115 echo "$as_me:3115: checking for BSD-compatible nm" >&5
3116 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3117 if test "${lt_cv_path_NM+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   if test -n "$NM"; then
3121   # Let the user override the test.
3122   lt_cv_path_NM="$NM"
3123 else
3124   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3125   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3126     test -z "$ac_dir" && ac_dir=.
3127     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3128     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3129       # Check to see if the nm accepts a BSD-compat flag.
3130       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3131       #   nm: unknown option "B" ignored
3132       # Tru64's nm complains that /dev/null is an invalid object file
3133       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3134         lt_cv_path_NM="$tmp_nm -B"
3135         break
3136       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3137         lt_cv_path_NM="$tmp_nm -p"
3138         break
3139       else
3140         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3141         continue # so that we can try to find one that supports BSD flags
3142       fi
3143     fi
3144   done
3145   IFS="$ac_save_ifs"
3146   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3147 fi
3148 fi
3149
3150 NM="$lt_cv_path_NM"
3151 echo "$as_me:3151: result: $NM" >&5
3152 echo "${ECHO_T}$NM" >&6
3153
3154 echo "$as_me:3154: checking how to recognise dependant libraries" >&5
3155 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3156 if test "${lt_cv_deplibs_check_method+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   lt_cv_file_magic_cmd='$MAGIC_CMD'
3160 lt_cv_file_magic_test_file=
3161 lt_cv_deplibs_check_method='unknown'
3162 # Need to set the preceding variable on all platforms that support
3163 # interlibrary dependencies.
3164 # 'none' -- dependencies not supported.
3165 # `unknown' -- same as none, but documents that we really don't know.
3166 # 'pass_all' -- all dependencies passed with no checks.
3167 # 'test_compile' -- check by making test program.
3168 # 'file_magic [[regex]]' -- check by looking for files in library path
3169 # which responds to the $file_magic_cmd with a given egrep regex.
3170 # If you have `file' or equivalent on your system and you're not sure
3171 # whether `pass_all' will *always* work, you probably want this one.
3172
3173 case $host_os in
3174 aix4* | aix5*)
3175   lt_cv_deplibs_check_method=pass_all
3176   ;;
3177
3178 beos*)
3179   lt_cv_deplibs_check_method=pass_all
3180   ;;
3181
3182 bsdi4*)
3183   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3184   lt_cv_file_magic_cmd='/usr/bin/file -L'
3185   lt_cv_file_magic_test_file=/shlib/libc.so
3186   ;;
3187
3188 cygwin* | mingw* | pw32*)
3189   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3190   lt_cv_file_magic_cmd='$OBJDUMP -f'
3191   ;;
3192
3193 darwin* | rhapsody*)
3194   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3195   lt_cv_file_magic_cmd='/usr/bin/file -L'
3196   case "$host_os" in
3197   rhapsody* | darwin1.[012])
3198     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3199     ;;
3200   *) # Darwin 1.3 on
3201     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3202     ;;
3203   esac
3204   ;;
3205
3206 freebsd*)
3207   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3208     case $host_cpu in
3209     i*86 )
3210       # Not sure whether the presence of OpenBSD here was a mistake.
3211       # Let's accept both of them until this is cleared up.
3212       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3213       lt_cv_file_magic_cmd=/usr/bin/file
3214       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3215       ;;
3216     esac
3217   else
3218     lt_cv_deplibs_check_method=pass_all
3219   fi
3220   ;;
3221
3222 gnu*)
3223   lt_cv_deplibs_check_method=pass_all
3224   ;;
3225
3226 hpux10.20*|hpux11*)
3227   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3228   lt_cv_file_magic_cmd=/usr/bin/file
3229   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3230   ;;
3231
3232 irix5* | irix6*)
3233   case $host_os in
3234   irix5*)
3235     # this will be overridden with pass_all, but let us keep it just in case
3236     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3237     ;;
3238   *)
3239     case $LD in
3240     *-32|*"-32 ") libmagic=32-bit;;
3241     *-n32|*"-n32 ") libmagic=N32;;
3242     *-64|*"-64 ") libmagic=64-bit;;
3243     *) libmagic=never-match;;
3244     esac
3245     # this will be overridden with pass_all, but let us keep it just in case
3246     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3247     ;;
3248   esac
3249   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3250   lt_cv_deplibs_check_method=pass_all
3251   ;;
3252
3253 # This must be Linux ELF.
3254 linux-gnu*)
3255   case $host_cpu in
3256   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3257     lt_cv_deplibs_check_method=pass_all ;;
3258   *)
3259     # glibc up to 2.1.1 does not perform some relocations on ARM
3260     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3261   esac
3262   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3263   ;;
3264
3265 netbsd*)
3266   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3267     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3268   else
3269     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3270   fi
3271   ;;
3272
3273 newos6*)
3274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3275   lt_cv_file_magic_cmd=/usr/bin/file
3276   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3277   ;;
3278
3279 openbsd*)
3280   lt_cv_file_magic_cmd=/usr/bin/file
3281   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3282   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3283     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3284   else
3285     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3286   fi
3287   ;;
3288
3289 osf3* | osf4* | osf5*)
3290   # this will be overridden with pass_all, but let us keep it just in case
3291   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3292   lt_cv_file_magic_test_file=/shlib/libc.so
3293   lt_cv_deplibs_check_method=pass_all
3294   ;;
3295
3296 sco3.2v5*)
3297   lt_cv_deplibs_check_method=pass_all
3298   ;;
3299
3300 solaris*)
3301   lt_cv_deplibs_check_method=pass_all
3302   lt_cv_file_magic_test_file=/lib/libc.so
3303   ;;
3304
3305 sysv5uw[78]* | sysv4*uw2*)
3306   lt_cv_deplibs_check_method=pass_all
3307   ;;
3308
3309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3310   case $host_vendor in
3311   motorola)
3312     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]'
3313     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3314     ;;
3315   ncr)
3316     lt_cv_deplibs_check_method=pass_all
3317     ;;
3318   sequent)
3319     lt_cv_file_magic_cmd='/bin/file'
3320     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3321     ;;
3322   sni)
3323     lt_cv_file_magic_cmd='/bin/file'
3324     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3325     lt_cv_file_magic_test_file=/lib/libc.so
3326     ;;
3327   esac
3328   ;;
3329 esac
3330
3331 fi
3332 echo "$as_me:3332: result: $lt_cv_deplibs_check_method" >&5
3333 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3334 file_magic_cmd=$lt_cv_file_magic_cmd
3335 deplibs_check_method=$lt_cv_deplibs_check_method
3336
3337 # Check for command to grab the raw symbol name followed by C symbol from nm.
3338 echo "$as_me:3338: checking command to parse $NM output" >&5
3339 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343
3344 # These are sane defaults that work on at least a few old systems.
3345 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3346
3347 # Character class describing NM global symbol codes.
3348 symcode='[BCDEGRST]'
3349
3350 # Regexp to match symbols that can be accessed directly from C.
3351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3352
3353 # Transform the above into a raw symbol and a C symbol.
3354 symxfrm='\1 \2\3 \3'
3355
3356 # Transform an extracted symbol line into a proper C declaration
3357 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3358
3359 # Transform an extracted symbol line into symbol name and symbol address
3360 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'"
3361
3362 # Define system-specific variables.
3363 case $host_os in
3364 aix*)
3365   symcode='[BCDT]'
3366   ;;
3367 cygwin* | mingw* | pw32*)
3368   symcode='[ABCDGISTW]'
3369   ;;
3370 hpux*) # Its linker distinguishes data from code symbols
3371   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3372   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'"
3373   ;;
3374 irix*)
3375   symcode='[BCDEGRST]'
3376   ;;
3377 solaris* | sysv5*)
3378   symcode='[BDT]'
3379   ;;
3380 sysv4)
3381   symcode='[DFNSTU]'
3382   ;;
3383 esac
3384
3385 # Handle CRLF in mingw tool chain
3386 opt_cr=
3387 case $host_os in
3388 mingw*)
3389   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3390   ;;
3391 esac
3392
3393 # If we're using GNU nm, then use its standard symbol codes.
3394 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3395   symcode='[ABCDGISTW]'
3396 fi
3397
3398 # Try without a prefix undercore, then with it.
3399 for ac_symprfx in "" "_"; do
3400
3401   # Write the raw and C identifiers.
3402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3403
3404   # Check to see that the pipe works correctly.
3405   pipe_works=no
3406   rm -f conftest*
3407   cat > conftest.$ac_ext <<EOF
3408 #ifdef __cplusplus
3409 extern "C" {
3410 #endif
3411 char nm_test_var;
3412 void nm_test_func(){}
3413 #ifdef __cplusplus
3414 }
3415 #endif
3416 int main(){nm_test_var='a';nm_test_func();return(0);}
3417 EOF
3418
3419   if { (eval echo "$as_me:3419: \"$ac_compile\"") >&5
3420   (eval $ac_compile) 2>&5
3421   ac_status=$?
3422   echo "$as_me:3422: \$? = $ac_status" >&5
3423   (exit $ac_status); }; then
3424     # Now try to grab the symbols.
3425     nlist=conftest.nm
3426     if { (eval echo "$as_me:3426: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3427   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3428   ac_status=$?
3429   echo "$as_me:3429: \$? = $ac_status" >&5
3430   (exit $ac_status); } && test -s "$nlist"; then
3431       # Try sorting and uniquifying the output.
3432       if sort "$nlist" | uniq > "$nlist"T; then
3433         mv -f "$nlist"T "$nlist"
3434       else
3435         rm -f "$nlist"T
3436       fi
3437
3438       # Make sure that we snagged all the symbols we need.
3439       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3440         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3441           cat <<EOF > conftest.$ac_ext
3442 #ifdef __cplusplus
3443 extern "C" {
3444 #endif
3445
3446 EOF
3447           # Now generate the symbol file.
3448           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3449
3450           cat <<EOF >> conftest.$ac_ext
3451 #if defined (__STDC__) && __STDC__
3452 # define lt_ptr void *
3453 #else
3454 # define lt_ptr char *
3455 # define const
3456 #endif
3457
3458 /* The mapping between symbol names and symbols. */
3459 const struct {
3460   const char *name;
3461   lt_ptr address;
3462 }
3463 lt_preloaded_symbols[] =
3464 {
3465 EOF
3466           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3467           cat <<\EOF >> conftest.$ac_ext
3468   {0, (lt_ptr) 0}
3469 };
3470
3471 #ifdef __cplusplus
3472 }
3473 #endif
3474 EOF
3475           # Now try linking the two files.
3476           mv conftest.$ac_objext conftstm.$ac_objext
3477           save_LIBS="$LIBS"
3478           save_CFLAGS="$CFLAGS"
3479           LIBS="conftstm.$ac_objext"
3480           CFLAGS="$CFLAGS$no_builtin_flag"
3481           if { (eval echo "$as_me:3481: \"$ac_link\"") >&5
3482   (eval $ac_link) 2>&5
3483   ac_status=$?
3484   echo "$as_me:3484: \$? = $ac_status" >&5
3485   (exit $ac_status); } && test -s conftest; then
3486             pipe_works=yes
3487           fi
3488           LIBS="$save_LIBS"
3489           CFLAGS="$save_CFLAGS"
3490         else
3491           echo "cannot find nm_test_func in $nlist" >&5
3492         fi
3493       else
3494         echo "cannot find nm_test_var in $nlist" >&5
3495       fi
3496     else
3497       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3498     fi
3499   else
3500     echo "$progname: failed program was:" >&5
3501     cat conftest.$ac_ext >&5
3502   fi
3503   rm -f conftest* conftst*
3504
3505   # Do not use the global_symbol_pipe unless it works.
3506   if test "$pipe_works" = yes; then
3507     break
3508   else
3509     lt_cv_sys_global_symbol_pipe=
3510   fi
3511 done
3512
3513 fi
3514
3515 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3517   global_symbol_to_cdecl=
3518   global_symbol_to_c_name_address=
3519 else
3520   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3521   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3522 fi
3523 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3524 then
3525   echo "$as_me:3525: result: failed" >&5
3526 echo "${ECHO_T}failed" >&6
3527 else
3528   echo "$as_me:3528: result: ok" >&5
3529 echo "${ECHO_T}ok" >&6
3530 fi
3531
3532 for ac_header in dlfcn.h
3533 do
3534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3535 echo "$as_me:3535: checking for $ac_header" >&5
3536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 #line 3541 "configure"
3542 #include "confdefs.h"
3543 #include <$ac_header>
3544 _ACEOF
3545 if { (eval echo "$as_me:3545: \"$ac_cpp conftest.$ac_ext\"") >&5
3546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547   ac_status=$?
3548   egrep -v '^ *\+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:3551: \$? = $ac_status" >&5
3552   (exit $ac_status); } >/dev/null; then
3553   if test -s conftest.err; then
3554     ac_cpp_err=$ac_c_preproc_warn_flag
3555   else
3556     ac_cpp_err=
3557   fi
3558 else
3559   ac_cpp_err=yes
3560 fi
3561 if test -z "$ac_cpp_err"; then
3562   eval "$as_ac_Header=yes"
3563 else
3564   echo "$as_me: failed program was:" >&5
3565   cat conftest.$ac_ext >&5
3566   eval "$as_ac_Header=no"
3567 fi
3568 rm -f conftest.err conftest.$ac_ext
3569 fi
3570 echo "$as_me:3570: result: `eval echo '${'$as_ac_Header'}'`" >&5
3571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3573   cat >>confdefs.h <<EOF
3574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3575 EOF
3576
3577 fi
3578 done
3579
3580 # Only perform the check for file, if the check method requires it
3581 case $deplibs_check_method in
3582 file_magic*)
3583   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3584     echo "$as_me:3584: checking for ${ac_tool_prefix}file" >&5
3585 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3586 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   case $MAGIC_CMD in
3590   /*)
3591   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3592   ;;
3593   ?:/*)
3594   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3595   ;;
3596   *)
3597   ac_save_MAGIC_CMD="$MAGIC_CMD"
3598   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3599   ac_dummy="/usr/bin:$PATH"
3600   for ac_dir in $ac_dummy; do
3601     test -z "$ac_dir" && ac_dir=.
3602     if test -f $ac_dir/${ac_tool_prefix}file; then
3603       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3604       if test -n "$file_magic_test_file"; then
3605         case $deplibs_check_method in
3606         "file_magic "*)
3607           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3608           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3609           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3610             egrep "$file_magic_regex" > /dev/null; then
3611             :
3612           else
3613             cat <<EOF 1>&2
3614
3615 *** Warning: the command libtool uses to detect shared libraries,
3616 *** $file_magic_cmd, produces output that libtool cannot recognize.
3617 *** The result is that libtool may fail to recognize shared libraries
3618 *** as such.  This will affect the creation of libtool libraries that
3619 *** depend on shared libraries, but programs linked with such libtool
3620 *** libraries will work regardless of this problem.  Nevertheless, you
3621 *** may want to report the problem to your system manager and/or to
3622 *** bug-libtool@gnu.org
3623
3624 EOF
3625           fi ;;
3626         esac
3627       fi
3628       break
3629     fi
3630   done
3631   IFS="$ac_save_ifs"
3632   MAGIC_CMD="$ac_save_MAGIC_CMD"
3633   ;;
3634 esac
3635 fi
3636
3637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3638 if test -n "$MAGIC_CMD"; then
3639   echo "$as_me:3639: result: $MAGIC_CMD" >&5
3640 echo "${ECHO_T}$MAGIC_CMD" >&6
3641 else
3642   echo "$as_me:3642: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3644 fi
3645
3646 if test -z "$lt_cv_path_MAGIC_CMD"; then
3647   if test -n "$ac_tool_prefix"; then
3648     echo "$as_me:3648: checking for file" >&5
3649 echo $ECHO_N "checking for file... $ECHO_C" >&6
3650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   case $MAGIC_CMD in
3654   /*)
3655   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3656   ;;
3657   ?:/*)
3658   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3659   ;;
3660   *)
3661   ac_save_MAGIC_CMD="$MAGIC_CMD"
3662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3663   ac_dummy="/usr/bin:$PATH"
3664   for ac_dir in $ac_dummy; do
3665     test -z "$ac_dir" && ac_dir=.
3666     if test -f $ac_dir/file; then
3667       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3668       if test -n "$file_magic_test_file"; then
3669         case $deplibs_check_method in
3670         "file_magic "*)
3671           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3672           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3673           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3674             egrep "$file_magic_regex" > /dev/null; then
3675             :
3676           else
3677             cat <<EOF 1>&2
3678
3679 *** Warning: the command libtool uses to detect shared libraries,
3680 *** $file_magic_cmd, produces output that libtool cannot recognize.
3681 *** The result is that libtool may fail to recognize shared libraries
3682 *** as such.  This will affect the creation of libtool libraries that
3683 *** depend on shared libraries, but programs linked with such libtool
3684 *** libraries will work regardless of this problem.  Nevertheless, you
3685 *** may want to report the problem to your system manager and/or to
3686 *** bug-libtool@gnu.org
3687
3688 EOF
3689           fi ;;
3690         esac
3691       fi
3692       break
3693     fi
3694   done
3695   IFS="$ac_save_ifs"
3696   MAGIC_CMD="$ac_save_MAGIC_CMD"
3697   ;;
3698 esac
3699 fi
3700
3701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3702 if test -n "$MAGIC_CMD"; then
3703   echo "$as_me:3703: result: $MAGIC_CMD" >&5
3704 echo "${ECHO_T}$MAGIC_CMD" >&6
3705 else
3706   echo "$as_me:3706: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710   else
3711     MAGIC_CMD=:
3712   fi
3713 fi
3714
3715   fi
3716   ;;
3717 esac
3718
3719 if test -n "$ac_tool_prefix"; then
3720   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3722 echo "$as_me:3722: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3724 if test "${ac_cv_prog_RANLIB+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   if test -n "$RANLIB"; then
3728   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3729 else
3730   ac_save_IFS=$IFS; IFS=$ac_path_separator
3731 ac_dummy="$PATH"
3732 for ac_dir in $ac_dummy; do
3733   IFS=$ac_save_IFS
3734   test -z "$ac_dir" && ac_dir=.
3735   $as_executable_p "$ac_dir/$ac_word" || continue
3736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3737 echo "$as_me:3737: found $ac_dir/$ac_word" >&5
3738 break
3739 done
3740
3741 fi
3742 fi
3743 RANLIB=$ac_cv_prog_RANLIB
3744 if test -n "$RANLIB"; then
3745   echo "$as_me:3745: result: $RANLIB" >&5
3746 echo "${ECHO_T}$RANLIB" >&6
3747 else
3748   echo "$as_me:3748: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751
3752 fi
3753 if test -z "$ac_cv_prog_RANLIB"; then
3754   ac_ct_RANLIB=$RANLIB
3755   # Extract the first word of "ranlib", so it can be a program name with args.
3756 set dummy ranlib; ac_word=$2
3757 echo "$as_me:3757: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test -n "$ac_ct_RANLIB"; then
3763   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3764 else
3765   ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 ac_dummy="$PATH"
3767 for ac_dir in $ac_dummy; do
3768   IFS=$ac_save_IFS
3769   test -z "$ac_dir" && ac_dir=.
3770   $as_executable_p "$ac_dir/$ac_word" || continue
3771 ac_cv_prog_ac_ct_RANLIB="ranlib"
3772 echo "$as_me:3772: found $ac_dir/$ac_word" >&5
3773 break
3774 done
3775
3776   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3777 fi
3778 fi
3779 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3780 if test -n "$ac_ct_RANLIB"; then
3781   echo "$as_me:3781: result: $ac_ct_RANLIB" >&5
3782 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3783 else
3784   echo "$as_me:3784: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 fi
3787
3788   RANLIB=$ac_ct_RANLIB
3789 else
3790   RANLIB="$ac_cv_prog_RANLIB"
3791 fi
3792
3793 if test -n "$ac_tool_prefix"; then
3794   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}strip; ac_word=$2
3796 echo "$as_me:3796: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_STRIP+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -n "$STRIP"; then
3802   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3803 else
3804   ac_save_IFS=$IFS; IFS=$ac_path_separator
3805 ac_dummy="$PATH"
3806 for ac_dir in $ac_dummy; do
3807   IFS=$ac_save_IFS
3808   test -z "$ac_dir" && ac_dir=.
3809   $as_executable_p "$ac_dir/$ac_word" || continue
3810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3812 break
3813 done
3814
3815 fi
3816 fi
3817 STRIP=$ac_cv_prog_STRIP
3818 if test -n "$STRIP"; then
3819   echo "$as_me:3819: result: $STRIP" >&5
3820 echo "${ECHO_T}$STRIP" >&6
3821 else
3822   echo "$as_me:3822: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826 fi
3827 if test -z "$ac_cv_prog_STRIP"; then
3828   ac_ct_STRIP=$STRIP
3829   # Extract the first word of "strip", so it can be a program name with args.
3830 set dummy strip; ac_word=$2
3831 echo "$as_me:3831: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -n "$ac_ct_STRIP"; then
3837   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3838 else
3839   ac_save_IFS=$IFS; IFS=$ac_path_separator
3840 ac_dummy="$PATH"
3841 for ac_dir in $ac_dummy; do
3842   IFS=$ac_save_IFS
3843   test -z "$ac_dir" && ac_dir=.
3844   $as_executable_p "$ac_dir/$ac_word" || continue
3845 ac_cv_prog_ac_ct_STRIP="strip"
3846 echo "$as_me:3846: found $ac_dir/$ac_word" >&5
3847 break
3848 done
3849
3850   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3851 fi
3852 fi
3853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3854 if test -n "$ac_ct_STRIP"; then
3855   echo "$as_me:3855: result: $ac_ct_STRIP" >&5
3856 echo "${ECHO_T}$ac_ct_STRIP" >&6
3857 else
3858   echo "$as_me:3858: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3860 fi
3861
3862   STRIP=$ac_ct_STRIP
3863 else
3864   STRIP="$ac_cv_prog_STRIP"
3865 fi
3866
3867 enable_dlopen=no
3868 enable_win32_dll=no
3869
3870 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3871 if test "${enable_libtool_lock+set}" = set; then
3872   enableval="$enable_libtool_lock"
3873
3874 fi;
3875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3876
3877 # Some flags need to be propagated to the compiler or linker for good
3878 # libtool support.
3879 case $host in
3880 *-*-irix6*)
3881   # Find out which ABI we are using.
3882   echo '#line 3882 "configure"' > conftest.$ac_ext
3883   if { (eval echo "$as_me:3883: \"$ac_compile\"") >&5
3884   (eval $ac_compile) 2>&5
3885   ac_status=$?
3886   echo "$as_me:3886: \$? = $ac_status" >&5
3887   (exit $ac_status); }; then
3888     case `/usr/bin/file conftest.$ac_objext` in
3889     *32-bit*)
3890       LD="${LD-ld} -32"
3891       ;;
3892     *N32*)
3893       LD="${LD-ld} -n32"
3894       ;;
3895     *64-bit*)
3896       LD="${LD-ld} -64"
3897       ;;
3898     esac
3899   fi
3900   rm -rf conftest*
3901   ;;
3902
3903 *-*-sco3.2v5*)
3904   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3905   SAVE_CFLAGS="$CFLAGS"
3906   CFLAGS="$CFLAGS -belf"
3907   echo "$as_me:3907: checking whether the C compiler needs -belf" >&5
3908 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3909 if test "${lt_cv_cc_needs_belf+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912
3913      ac_ext=c
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919      cat >conftest.$ac_ext <<_ACEOF
3920 #line 3920 "configure"
3921 #include "confdefs.h"
3922
3923 int
3924 main ()
3925 {
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest.$ac_objext conftest$ac_exeext
3932 if { (eval echo "$as_me:3932: \"$ac_link\"") >&5
3933   (eval $ac_link) 2>&5
3934   ac_status=$?
3935   echo "$as_me:3935: \$? = $ac_status" >&5
3936   (exit $ac_status); } &&
3937          { ac_try='test -s conftest$ac_exeext'
3938   { (eval echo "$as_me:3938: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:3941: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943   lt_cv_cc_needs_belf=yes
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 lt_cv_cc_needs_belf=no
3948 fi
3949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3950      ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956 fi
3957 echo "$as_me:3957: result: $lt_cv_cc_needs_belf" >&5
3958 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3959   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3960     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3961     CFLAGS="$SAVE_CFLAGS"
3962   fi
3963   ;;
3964
3965 esac
3966
3967 # Sed substitution that helps us do robust quoting.  It backslashifies
3968 # metacharacters that are still active within double-quoted strings.
3969 Xsed='sed -e s/^X//'
3970 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3971
3972 # Same as above, but do not quote variable references.
3973 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3974
3975 # Sed substitution to delay expansion of an escaped shell variable in a
3976 # double_quote_subst'ed string.
3977 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3978
3979 # Constants:
3980 rm="rm -f"
3981
3982 # Global variables:
3983 default_ofile=libtool
3984 can_build_shared=yes
3985
3986 # All known linkers require a `.a' archive for static linking (except M$VC,
3987 # which needs '.lib').
3988 libext=a
3989 ltmain="$ac_aux_dir/ltmain.sh"
3990 ofile="$default_ofile"
3991 with_gnu_ld="$lt_cv_prog_gnu_ld"
3992 need_locks="$enable_libtool_lock"
3993
3994 old_CC="$CC"
3995 old_CFLAGS="$CFLAGS"
3996
3997 # Set sane defaults for various variables
3998 test -z "$AR" && AR=ar
3999 test -z "$AR_FLAGS" && AR_FLAGS=cru
4000 test -z "$AS" && AS=as
4001 test -z "$CC" && CC=cc
4002 test -z "$DLLTOOL" && DLLTOOL=dlltool
4003 test -z "$LD" && LD=ld
4004 test -z "$LN_S" && LN_S="ln -s"
4005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4006 test -z "$NM" && NM=nm
4007 test -z "$OBJDUMP" && OBJDUMP=objdump
4008 test -z "$RANLIB" && RANLIB=:
4009 test -z "$STRIP" && STRIP=:
4010 test -z "$ac_objext" && ac_objext=o
4011
4012 if test x"$host" != x"$build"; then
4013   ac_tool_prefix=${host_alias}-
4014 else
4015   ac_tool_prefix=
4016 fi
4017
4018 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4019 case $host_os in
4020 linux-gnu*) ;;
4021 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4022 esac
4023
4024 case $host_os in
4025 aix3*)
4026   # AIX sometimes has problems with the GCC collect2 program.  For some
4027   # reason, if we set the COLLECT_NAMES environment variable, the problems
4028   # vanish in a puff of smoke.
4029   if test "X${COLLECT_NAMES+set}" != Xset; then
4030     COLLECT_NAMES=
4031     export COLLECT_NAMES
4032   fi
4033   ;;
4034 esac
4035
4036 # Determine commands to create old-style static archives.
4037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4038 old_postinstall_cmds='chmod 644 $oldlib'
4039 old_postuninstall_cmds=
4040
4041 if test -n "$RANLIB"; then
4042   case $host_os in
4043   openbsd*)
4044     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4045     ;;
4046   *)
4047     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4048     ;;
4049   esac
4050   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4051 fi
4052
4053 # Allow CC to be a program name with arguments.
4054 set dummy $CC
4055 compiler="$2"
4056
4057 echo "$as_me:4057: checking for objdir" >&5
4058 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4059 rm -f .libs 2>/dev/null
4060 mkdir .libs 2>/dev/null
4061 if test -d .libs; then
4062   objdir=.libs
4063 else
4064   # MS-DOS does not allow filenames that begin with a dot.
4065   objdir=_libs
4066 fi
4067 rmdir .libs 2>/dev/null
4068 echo "$as_me:4068: result: $objdir" >&5
4069 echo "${ECHO_T}$objdir" >&6
4070
4071 # Check whether --with-pic or --without-pic was given.
4072 if test "${with_pic+set}" = set; then
4073   withval="$with_pic"
4074   pic_mode="$withval"
4075 else
4076   pic_mode=default
4077 fi;
4078 test -z "$pic_mode" && pic_mode=default
4079
4080 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4081 # in isolation, and that seeing it set (from the cache) indicates that
4082 # the associated values are set (in the cache) correctly too.
4083 echo "$as_me:4083: checking for $compiler option to produce PIC" >&5
4084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4085 if test "${lt_cv_prog_cc_pic+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088    lt_cv_prog_cc_pic=
4089   lt_cv_prog_cc_shlib=
4090   lt_cv_prog_cc_wl=
4091   lt_cv_prog_cc_static=
4092   lt_cv_prog_cc_no_builtin=
4093   lt_cv_prog_cc_can_build_shared=$can_build_shared
4094
4095   if test "$GCC" = yes; then
4096     lt_cv_prog_cc_wl='-Wl,'
4097     lt_cv_prog_cc_static='-static'
4098
4099     case $host_os in
4100     aix*)
4101       # Below there is a dirty hack to force normal static linking with -ldl
4102       # The problem is because libdl dynamically linked with both libc and
4103       # libC (AIX C++ library), which obviously doesn't included in libraries
4104       # list by gcc. This cause undefined symbols with -static flags.
4105       # This hack allows C programs to be linked with "-static -ldl", but
4106       # not sure about C++ programs.
4107       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4108       ;;
4109     amigaos*)
4110       # FIXME: we need at least 68020 code to build shared libraries, but
4111       # adding the `-m68020' flag to GCC prevents building anything better,
4112       # like `-m68040'.
4113       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4114       ;;
4115     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4116       # PIC is the default for these OSes.
4117       ;;
4118     darwin* | rhapsody*)
4119       # PIC is the default on this platform
4120       # Common symbols not allowed in MH_DYLIB files
4121       lt_cv_prog_cc_pic='-fno-common'
4122       ;;
4123     cygwin* | mingw* | pw32* | os2*)
4124       # This hack is so that the source file can tell whether it is being
4125       # built for inclusion in a dll (and should export symbols for example).
4126       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4127       ;;
4128     sysv4*MP*)
4129       if test -d /usr/nec; then
4130          lt_cv_prog_cc_pic=-Kconform_pic
4131       fi
4132       ;;
4133     *)
4134       lt_cv_prog_cc_pic='-fPIC'
4135       ;;
4136     esac
4137   else
4138     # PORTME Check for PIC flags for the system compiler.
4139     case $host_os in
4140     aix3* | aix4* | aix5*)
4141       lt_cv_prog_cc_wl='-Wl,'
4142       # All AIX code is PIC.
4143       if test "$host_cpu" = ia64; then
4144         # AIX 5 now supports IA64 processor
4145         lt_cv_prog_cc_static='-Bstatic'
4146       else
4147         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4148       fi
4149       ;;
4150
4151     hpux9* | hpux10* | hpux11*)
4152       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4153       lt_cv_prog_cc_wl='-Wl,'
4154       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4155       lt_cv_prog_cc_pic='+Z'
4156       ;;
4157
4158     irix5* | irix6*)
4159       lt_cv_prog_cc_wl='-Wl,'
4160       lt_cv_prog_cc_static='-non_shared'
4161       # PIC (with -KPIC) is the default.
4162       ;;
4163
4164     cygwin* | mingw* | pw32* | os2*)
4165       # This hack is so that the source file can tell whether it is being
4166       # built for inclusion in a dll (and should export symbols for example).
4167       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4168       ;;
4169
4170     newsos6)
4171       lt_cv_prog_cc_pic='-KPIC'
4172       lt_cv_prog_cc_static='-Bstatic'
4173       ;;
4174
4175     osf3* | osf4* | osf5*)
4176       # All OSF/1 code is PIC.
4177       lt_cv_prog_cc_wl='-Wl,'
4178       lt_cv_prog_cc_static='-non_shared'
4179       ;;
4180
4181     sco3.2v5*)
4182       lt_cv_prog_cc_pic='-Kpic'
4183       lt_cv_prog_cc_static='-dn'
4184       lt_cv_prog_cc_shlib='-belf'
4185       ;;
4186
4187     solaris*)
4188       lt_cv_prog_cc_pic='-KPIC'
4189       lt_cv_prog_cc_static='-Bstatic'
4190       lt_cv_prog_cc_wl='-Wl,'
4191       ;;
4192
4193     sunos4*)
4194       lt_cv_prog_cc_pic='-PIC'
4195       lt_cv_prog_cc_static='-Bstatic'
4196       lt_cv_prog_cc_wl='-Qoption ld '
4197       ;;
4198
4199     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4200       lt_cv_prog_cc_pic='-KPIC'
4201       lt_cv_prog_cc_static='-Bstatic'
4202       if test "x$host_vendor" = xsni; then
4203         lt_cv_prog_cc_wl='-LD'
4204       else
4205         lt_cv_prog_cc_wl='-Wl,'
4206       fi
4207       ;;
4208
4209     uts4*)
4210       lt_cv_prog_cc_pic='-pic'
4211       lt_cv_prog_cc_static='-Bstatic'
4212       ;;
4213
4214     sysv4*MP*)
4215       if test -d /usr/nec ;then
4216         lt_cv_prog_cc_pic='-Kconform_pic'
4217         lt_cv_prog_cc_static='-Bstatic'
4218       fi
4219       ;;
4220
4221     *)
4222       lt_cv_prog_cc_can_build_shared=no
4223       ;;
4224     esac
4225   fi
4226
4227 fi
4228
4229 if test -z "$lt_cv_prog_cc_pic"; then
4230   echo "$as_me:4230: result: none" >&5
4231 echo "${ECHO_T}none" >&6
4232 else
4233   echo "$as_me:4233: result: $lt_cv_prog_cc_pic" >&5
4234 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4235
4236   # Check to make sure the pic_flag actually works.
4237   echo "$as_me:4237: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4238 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4239   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242       save_CFLAGS="$CFLAGS"
4243     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4244     cat >conftest.$ac_ext <<_ACEOF
4245 #line 4245 "configure"
4246 #include "confdefs.h"
4247
4248 int
4249 main ()
4250 {
4251
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:4257: \"$ac_compile\"") >&5
4258   (eval $ac_compile) 2>&5
4259   ac_status=$?
4260   echo "$as_me:4260: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (eval echo "$as_me:4263: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:4266: \$? = $ac_status" >&5
4267   (exit $ac_status); }; }; then
4268         case $host_os in
4269       hpux9* | hpux10* | hpux11*)
4270         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4271         # they create non-PIC objects.  So, if there were any warnings, we
4272         # assume that PIC is not supported.
4273         if test -s conftest.err; then
4274           lt_cv_prog_cc_pic_works=no
4275         else
4276           lt_cv_prog_cc_pic_works=yes
4277         fi
4278         ;;
4279       *)
4280         lt_cv_prog_cc_pic_works=yes
4281         ;;
4282       esac
4283
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287       lt_cv_prog_cc_pic_works=no
4288
4289 fi
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4291     CFLAGS="$save_CFLAGS"
4292
4293 fi
4294
4295   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4296     lt_cv_prog_cc_pic=
4297     lt_cv_prog_cc_can_build_shared=no
4298   else
4299     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4300   fi
4301
4302   echo "$as_me:4302: result: $lt_cv_prog_cc_pic_works" >&5
4303 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4304 fi
4305
4306 # Check for any special shared library compilation flags.
4307 if test -n "$lt_cv_prog_cc_shlib"; then
4308   { echo "$as_me:4308: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4309 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4310   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4311   else
4312    { echo "$as_me:4312: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4313 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4314     lt_cv_prog_cc_can_build_shared=no
4315   fi
4316 fi
4317
4318 echo "$as_me:4318: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4319 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4320 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323     lt_cv_prog_cc_static_works=no
4324   save_LDFLAGS="$LDFLAGS"
4325   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4326   cat >conftest.$ac_ext <<_ACEOF
4327 #line 4327 "configure"
4328 #include "confdefs.h"
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest.$ac_objext conftest$ac_exeext
4339 if { (eval echo "$as_me:4339: \"$ac_link\"") >&5
4340   (eval $ac_link) 2>&5
4341   ac_status=$?
4342   echo "$as_me:4342: \$? = $ac_status" >&5
4343   (exit $ac_status); } &&
4344          { ac_try='test -s conftest$ac_exeext'
4345   { (eval echo "$as_me:4345: \"$ac_try\"") >&5
4346   (eval $ac_try) 2>&5
4347   ac_status=$?
4348   echo "$as_me:4348: \$? = $ac_status" >&5
4349   (exit $ac_status); }; }; then
4350   lt_cv_prog_cc_static_works=yes
4351 else
4352   echo "$as_me: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4354 fi
4355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4356   LDFLAGS="$save_LDFLAGS"
4357
4358 fi
4359
4360 # Belt *and* braces to stop my trousers falling down:
4361 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4362 echo "$as_me:4362: result: $lt_cv_prog_cc_static_works" >&5
4363 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4364
4365 pic_flag="$lt_cv_prog_cc_pic"
4366 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4367 wl="$lt_cv_prog_cc_wl"
4368 link_static_flag="$lt_cv_prog_cc_static"
4369 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4370 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4371
4372 # Check to see if options -o and -c are simultaneously supported by compiler
4373 echo "$as_me:4373: checking if $compiler supports -c -o file.$ac_objext" >&5
4374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4375 if test "${lt_cv_compiler_c_o+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378
4379 $rm -r conftest 2>/dev/null
4380 mkdir conftest
4381 cd conftest
4382 echo "int some_variable = 0;" > conftest.$ac_ext
4383 mkdir out
4384 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4385 # that will create temporary files in the current directory regardless of
4386 # the output directory.  Thus, making CWD read-only will cause this test
4387 # to fail, enabling locking or at least warning the user not to do parallel
4388 # builds.
4389 chmod -w .
4390 save_CFLAGS="$CFLAGS"
4391 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4392 compiler_c_o=no
4393 if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4394   # The compiler can only warn and ignore the option if not recognized
4395   # So say no if there are warnings
4396   if test -s out/conftest.err; then
4397     lt_cv_compiler_c_o=no
4398   else
4399     lt_cv_compiler_c_o=yes
4400   fi
4401 else
4402   # Append any errors to the config.log.
4403   cat out/conftest.err 1>&5
4404   lt_cv_compiler_c_o=no
4405 fi
4406 CFLAGS="$save_CFLAGS"
4407 chmod u+w .
4408 $rm conftest* out/*
4409 rmdir out
4410 cd ..
4411 rmdir conftest
4412 $rm -r conftest 2>/dev/null
4413
4414 fi
4415
4416 compiler_c_o=$lt_cv_compiler_c_o
4417 echo "$as_me:4417: result: $compiler_c_o" >&5
4418 echo "${ECHO_T}$compiler_c_o" >&6
4419
4420 if test x"$compiler_c_o" = x"yes"; then
4421   # Check to see if we can write to a .lo
4422   echo "$as_me:4422: checking if $compiler supports -c -o file.lo" >&5
4423 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4424   if test "${lt_cv_compiler_o_lo+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427
4428   lt_cv_compiler_o_lo=no
4429   save_CFLAGS="$CFLAGS"
4430   CFLAGS="$CFLAGS -c -o conftest.lo"
4431   save_objext="$ac_objext"
4432   ac_objext=lo
4433   cat >conftest.$ac_ext <<_ACEOF
4434 #line 4434 "configure"
4435 #include "confdefs.h"
4436
4437 int
4438 main ()
4439 {
4440 int some_variable = 0;
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (eval echo "$as_me:4446: \"$ac_compile\"") >&5
4447   (eval $ac_compile) 2>&5
4448   ac_status=$?
4449   echo "$as_me:4449: \$? = $ac_status" >&5
4450   (exit $ac_status); } &&
4451          { ac_try='test -s conftest.$ac_objext'
4452   { (eval echo "$as_me:4452: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:4455: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457       # The compiler can only warn and ignore the option if not recognized
4458     # So say no if there are warnings
4459     if test -s conftest.err; then
4460       lt_cv_compiler_o_lo=no
4461     else
4462       lt_cv_compiler_o_lo=yes
4463     fi
4464
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470   ac_objext="$save_objext"
4471   CFLAGS="$save_CFLAGS"
4472
4473 fi
4474
4475   compiler_o_lo=$lt_cv_compiler_o_lo
4476   echo "$as_me:4476: result: $compiler_o_lo" >&5
4477 echo "${ECHO_T}$compiler_o_lo" >&6
4478 else
4479   compiler_o_lo=no
4480 fi
4481
4482 # Check to see if we can do hard links to lock some files if needed
4483 hard_links="nottested"
4484 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4485   # do not overwrite the value of need_locks provided by the user
4486   echo "$as_me:4486: checking if we can lock with hard links" >&5
4487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4488   hard_links=yes
4489   $rm conftest*
4490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4491   touch conftest.a
4492   ln conftest.a conftest.b 2>&5 || hard_links=no
4493   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4494   echo "$as_me:4494: result: $hard_links" >&5
4495 echo "${ECHO_T}$hard_links" >&6
4496   if test "$hard_links" = no; then
4497     { echo "$as_me:4497: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4499     need_locks=warn
4500   fi
4501 else
4502   need_locks=no
4503 fi
4504
4505 if test "$GCC" = yes; then
4506   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4507   echo "$as_me:4507: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4508 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4509   echo "int some_variable = 0;" > conftest.$ac_ext
4510   save_CFLAGS="$CFLAGS"
4511   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4512   compiler_rtti_exceptions=no
4513   cat >conftest.$ac_ext <<_ACEOF
4514 #line 4514 "configure"
4515 #include "confdefs.h"
4516
4517 int
4518 main ()
4519 {
4520 int some_variable = 0;
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:4526: \"$ac_compile\"") >&5
4527   (eval $ac_compile) 2>&5
4528   ac_status=$?
4529   echo "$as_me:4529: \$? = $ac_status" >&5
4530   (exit $ac_status); } &&
4531          { ac_try='test -s conftest.$ac_objext'
4532   { (eval echo "$as_me:4532: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:4535: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537       # The compiler can only warn and ignore the option if not recognized
4538     # So say no if there are warnings
4539     if test -s conftest.err; then
4540       compiler_rtti_exceptions=no
4541     else
4542       compiler_rtti_exceptions=yes
4543     fi
4544
4545 else
4546   echo "$as_me: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 fi
4549 rm -f conftest.$ac_objext conftest.$ac_ext
4550   CFLAGS="$save_CFLAGS"
4551   echo "$as_me:4551: result: $compiler_rtti_exceptions" >&5
4552 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4553
4554   if test "$compiler_rtti_exceptions" = "yes"; then
4555     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4556   else
4557     no_builtin_flag=' -fno-builtin'
4558   fi
4559 fi
4560
4561 # See if the linker supports building shared libraries.
4562 echo "$as_me:4562: checking whether the linker ($LD) supports shared libraries" >&5
4563 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4564
4565 allow_undefined_flag=
4566 no_undefined_flag=
4567 need_lib_prefix=unknown
4568 need_version=unknown
4569 # when you set need_version to no, make sure it does not cause -set_version
4570 # flags to be left without arguments
4571 archive_cmds=
4572 archive_expsym_cmds=
4573 old_archive_from_new_cmds=
4574 old_archive_from_expsyms_cmds=
4575 export_dynamic_flag_spec=
4576 whole_archive_flag_spec=
4577 thread_safe_flag_spec=
4578 hardcode_into_libs=no
4579 hardcode_libdir_flag_spec=
4580 hardcode_libdir_separator=
4581 hardcode_direct=no
4582 hardcode_minus_L=no
4583 hardcode_shlibpath_var=unsupported
4584 runpath_var=
4585 link_all_deplibs=unknown
4586 always_export_symbols=no
4587 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4588 # include_expsyms should be a list of space-separated symbols to be *always*
4589 # included in the symbol list
4590 include_expsyms=
4591 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4592 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4593 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4594 # as well as any symbol that contains `d'.
4595 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4597 # platforms (ab)use it in PIC code, but their linkers get confused if
4598 # the symbol is explicitly referenced.  Since portable code cannot
4599 # rely on this symbol name, it's probably fine to never include it in
4600 # preloaded symbol tables.
4601 extract_expsyms_cmds=
4602
4603 case $host_os in
4604 cygwin* | mingw* | pw32*)
4605   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4606   # When not using gcc, we currently assume that we are using
4607   # Microsoft Visual C++.
4608   if test "$GCC" != yes; then
4609     with_gnu_ld=no
4610   fi
4611   ;;
4612 openbsd*)
4613   with_gnu_ld=no
4614   ;;
4615 esac
4616
4617 ld_shlibs=yes
4618 if test "$with_gnu_ld" = yes; then
4619   # If archive_cmds runs LD, not CC, wlarc should be empty
4620   wlarc='${wl}'
4621
4622   # See if GNU ld supports shared libraries.
4623   case $host_os in
4624   aix3* | aix4* | aix5*)
4625     # On AIX, the GNU linker is very broken
4626     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4627     ld_shlibs=no
4628     cat <<EOF 1>&2
4629
4630 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4631 *** to be unable to reliably create shared libraries on AIX.
4632 *** Therefore, libtool is disabling shared libraries support.  If you
4633 *** really care for shared libraries, you may want to modify your PATH
4634 *** so that a non-GNU linker is found, and then restart.
4635
4636 EOF
4637     ;;
4638
4639   amigaos*)
4640     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)'
4641     hardcode_libdir_flag_spec='-L$libdir'
4642     hardcode_minus_L=yes
4643
4644     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4645     # that the semantics of dynamic libraries on AmigaOS, at least up
4646     # to version 4, is to share data among multiple programs linked
4647     # with the same dynamic library.  Since this doesn't match the
4648     # behavior of shared libraries on other platforms, we can use
4649     # them.
4650     ld_shlibs=no
4651     ;;
4652
4653   beos*)
4654     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4655       allow_undefined_flag=unsupported
4656       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4657       # support --undefined.  This deserves some investigation.  FIXME
4658       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4659     else
4660       ld_shlibs=no
4661     fi
4662     ;;
4663
4664   cygwin* | mingw* | pw32*)
4665     # hardcode_libdir_flag_spec is actually meaningless, as there is
4666     # no search path for DLLs.
4667     hardcode_libdir_flag_spec='-L$libdir'
4668     allow_undefined_flag=unsupported
4669     always_export_symbols=yes
4670
4671     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4672       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4673       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4674       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4675       else $CC -o impgen impgen.c ; fi)~
4676       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4677
4678     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4679
4680     # cygwin and mingw dlls have different entry points and sets of symbols
4681     # to exclude.
4682     # FIXME: what about values for MSVC?
4683     dll_entry=__cygwin_dll_entry@12
4684     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4685     case $host_os in
4686     mingw*)
4687       # mingw values
4688       dll_entry=_DllMainCRTStartup@12
4689       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4690       ;;
4691     esac
4692
4693     # mingw and cygwin differ, and it's simplest to just exclude the union
4694     # of the two symbol sets.
4695     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4696
4697     # recent cygwin and mingw systems supply a stub DllMain which the user
4698     # can override, but on older systems we have to supply one (in ltdll.c)
4699     if test "x$lt_cv_need_dllmain" = "xyes"; then
4700       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4701       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~
4702         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4703     else
4704       ltdll_obj=
4705       ltdll_cmds=
4706     fi
4707
4708     # Extract the symbol export list from an `--export-all' def file,
4709     # then regenerate the def file from the symbol export list, so that
4710     # the compiled dll only exports the symbol export list.
4711     # Be careful not to strip the DATA tag left be newer dlltools.
4712     export_symbols_cmds="$ltdll_cmds"'
4713       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4714       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4715
4716     # If the export-symbols file already is a .def file (1st line
4717     # is EXPORTS), use it as is.
4718     # If DATA tags from a recent dlltool are present, honour them!
4719     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4720         cp $export_symbols $output_objdir/$soname-def;
4721       else
4722         echo EXPORTS > $output_objdir/$soname-def;
4723         _lt_hint=1;
4724         cat $export_symbols | while read symbol; do
4725          set dummy \$symbol;
4726          case \$# in
4727            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4728            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4729          esac;
4730          _lt_hint=`expr 1 + \$_lt_hint`;
4731         done;
4732       fi~
4733       '"$ltdll_cmds"'
4734       $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~
4735       $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~
4736       $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~
4737       $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~
4738       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4739     ;;
4740
4741   netbsd*)
4742     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4743       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4744       wlarc=
4745     else
4746       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4747       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4748     fi
4749     ;;
4750
4751   solaris* | sysv5*)
4752     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4753       ld_shlibs=no
4754       cat <<EOF 1>&2
4755
4756 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4757 *** create shared libraries on Solaris systems.  Therefore, libtool
4758 *** is disabling shared libraries support.  We urge you to upgrade GNU
4759 *** binutils to release 2.9.1 or newer.  Another option is to modify
4760 *** your PATH or compiler configuration so that the native linker is
4761 *** used, and then restart.
4762
4763 EOF
4764     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4765       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4766       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4767     else
4768       ld_shlibs=no
4769     fi
4770     ;;
4771
4772   sunos4*)
4773     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4774     wlarc=
4775     hardcode_direct=yes
4776     hardcode_shlibpath_var=no
4777     ;;
4778
4779   *)
4780     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4781       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4782       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4783     else
4784       ld_shlibs=no
4785     fi
4786     ;;
4787   esac
4788
4789   if test "$ld_shlibs" = yes; then
4790     runpath_var=LD_RUN_PATH
4791     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4792     export_dynamic_flag_spec='${wl}--export-dynamic'
4793     case $host_os in
4794     cygwin* | mingw* | pw32*)
4795       # dlltool doesn't understand --whole-archive et. al.
4796       whole_archive_flag_spec=
4797       ;;
4798     *)
4799       # ancient GNU ld didn't support --whole-archive et. al.
4800       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4801         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4802       else
4803         whole_archive_flag_spec=
4804       fi
4805       ;;
4806     esac
4807   fi
4808 else
4809   # PORTME fill in a description of your system's linker (not GNU ld)
4810   case $host_os in
4811   aix3*)
4812     allow_undefined_flag=unsupported
4813     always_export_symbols=yes
4814     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'
4815     # Note: this linker hardcodes the directories in LIBPATH if there
4816     # are no directories specified by -L.
4817     hardcode_minus_L=yes
4818     if test "$GCC" = yes && test -z "$link_static_flag"; then
4819       # Neither direct hardcoding nor static linking is supported with a
4820       # broken collect2.
4821       hardcode_direct=unsupported
4822     fi
4823     ;;
4824
4825   aix4* | aix5*)
4826     if test "$host_cpu" = ia64; then
4827       # On IA64, the linker does run time linking by default, so we don't
4828       # have to do anything special.
4829       aix_use_runtimelinking=no
4830       exp_sym_flag='-Bexport'
4831       no_entry_flag=""
4832     else
4833       aix_use_runtimelinking=no
4834
4835       # Test if we are trying to use run time linking or normal
4836       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4837       # need to do runtime linking.
4838       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4839         for ld_flag in $LDFLAGS; do
4840           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4841             aix_use_runtimelinking=yes
4842             break
4843           fi
4844         done
4845       esac
4846
4847       exp_sym_flag='-bexport'
4848       no_entry_flag='-bnoentry'
4849     fi
4850
4851     # When large executables or shared objects are built, AIX ld can
4852     # have problems creating the table of contents.  If linking a library
4853     # or program results in "error TOC overflow" add -mminimal-toc to
4854     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4855     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4856
4857     hardcode_direct=yes
4858     archive_cmds=''
4859     hardcode_libdir_separator=':'
4860     if test "$GCC" = yes; then
4861       case $host_os in aix4.[012]|aix4.[012].*)
4862         collect2name=`${CC} -print-prog-name=collect2`
4863         if test -f "$collect2name" && \
4864           strings "$collect2name" | grep resolve_lib_name >/dev/null
4865         then
4866           # We have reworked collect2
4867           hardcode_direct=yes
4868         else
4869           # We have old collect2
4870           hardcode_direct=unsupported
4871           # It fails to find uninstalled libraries when the uninstalled
4872           # path is not listed in the libpath.  Setting hardcode_minus_L
4873           # to unsupported forces relinking
4874           hardcode_minus_L=yes
4875           hardcode_libdir_flag_spec='-L$libdir'
4876           hardcode_libdir_separator=
4877         fi
4878       esac
4879
4880       shared_flag='-shared'
4881     else
4882       # not using gcc
4883       if test "$host_cpu" = ia64; then
4884         shared_flag='${wl}-G'
4885       else
4886         if test "$aix_use_runtimelinking" = yes; then
4887           shared_flag='${wl}-G'
4888         else
4889           shared_flag='${wl}-bM:SRE'
4890         fi
4891       fi
4892     fi
4893
4894     # It seems that -bexpall can do strange things, so it is better to
4895     # generate a list of symbols to export.
4896     always_export_symbols=yes
4897     if test "$aix_use_runtimelinking" = yes; then
4898       # Warning - without using the other runtime loading flags (-brtl),
4899       # -berok will link without error, but may produce a broken library.
4900       allow_undefined_flag='-berok'
4901       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4902       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"
4903     else
4904       if test "$host_cpu" = ia64; then
4905         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4906         allow_undefined_flag="-z nodefs"
4907         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"
4908       else
4909         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4910         # Warning - without using the other run time loading flags,
4911         # -berok will link without error, but may produce a broken library.
4912         allow_undefined_flag='${wl}-berok'
4913         # This is a bit strange, but is similar to how AIX traditionally builds
4914         # it's shared libraries.
4915         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'
4916       fi
4917     fi
4918     ;;
4919
4920   amigaos*)
4921     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)'
4922     hardcode_libdir_flag_spec='-L$libdir'
4923     hardcode_minus_L=yes
4924     # see comment about different semantics on the GNU ld section
4925     ld_shlibs=no
4926     ;;
4927
4928   cygwin* | mingw* | pw32*)
4929     # When not using gcc, we currently assume that we are using
4930     # Microsoft Visual C++.
4931     # hardcode_libdir_flag_spec is actually meaningless, as there is
4932     # no search path for DLLs.
4933     hardcode_libdir_flag_spec=' '
4934     allow_undefined_flag=unsupported
4935     # Tell ltmain to make .lib files, not .a files.
4936     libext=lib
4937     # FIXME: Setting linknames here is a bad hack.
4938     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4939     # The linker will automatically build a .lib file if we build a DLL.
4940     old_archive_from_new_cmds='true'
4941     # FIXME: Should let the user specify the lib program.
4942     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4943     fix_srcfile_path='`cygpath -w "$srcfile"`'
4944     ;;
4945
4946   darwin* | rhapsody*)
4947     case "$host_os" in
4948     rhapsody* | darwin1.[012])
4949       allow_undefined_flag='-undefined suppress'
4950       ;;
4951     *) # Darwin 1.3 on
4952       allow_undefined_flag='-flat_namespace -undefined suppress'
4953       ;;
4954     esac
4955     # FIXME: Relying on posixy $() will cause problems for
4956     #        cross-compilation, but unfortunately the echo tests do not
4957     #        yet detect zsh echo's removal of \ escapes.
4958     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'
4959     # We need to add '_' to the symbols in $export_symbols first
4960     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4961     hardcode_direct=yes
4962     hardcode_shlibpath_var=no
4963     whole_archive_flag_spec='-all_load $convenience'
4964     ;;
4965
4966   freebsd1*)
4967     ld_shlibs=no
4968     ;;
4969
4970   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4971   # support.  Future versions do this automatically, but an explicit c++rt0.o
4972   # does not break anything, and helps significantly (at the cost of a little
4973   # extra space).
4974   freebsd2.2*)
4975     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4976     hardcode_libdir_flag_spec='-R$libdir'
4977     hardcode_direct=yes
4978     hardcode_shlibpath_var=no
4979     ;;
4980
4981   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4982   freebsd2*)
4983     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4984     hardcode_direct=yes
4985     hardcode_minus_L=yes
4986     hardcode_shlibpath_var=no
4987     ;;
4988
4989   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4990   freebsd*)
4991     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4992     hardcode_libdir_flag_spec='-R$libdir'
4993     hardcode_direct=yes
4994     hardcode_shlibpath_var=no
4995     ;;
4996
4997   hpux9* | hpux10* | hpux11*)
4998     case $host_os in
4999     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' ;;
5000     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5001     esac
5002     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5003     hardcode_libdir_separator=:
5004     hardcode_direct=yes
5005     hardcode_minus_L=yes # Not in the search PATH, but as the default
5006                          # location of the library.
5007     export_dynamic_flag_spec='${wl}-E'
5008     ;;
5009
5010   irix5* | irix6*)
5011     if test "$GCC" = yes; then
5012       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'
5013     else
5014       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'
5015     fi
5016     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5017     hardcode_libdir_separator=:
5018     link_all_deplibs=yes
5019     ;;
5020
5021   netbsd*)
5022     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5023       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5024     else
5025       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5026     fi
5027     hardcode_libdir_flag_spec='-R$libdir'
5028     hardcode_direct=yes
5029     hardcode_shlibpath_var=no
5030     ;;
5031
5032   newsos6)
5033     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5034     hardcode_direct=yes
5035     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5036     hardcode_libdir_separator=:
5037     hardcode_shlibpath_var=no
5038     ;;
5039
5040   openbsd*)
5041     hardcode_direct=yes
5042     hardcode_shlibpath_var=no
5043     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5044       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5045       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5046       export_dynamic_flag_spec='${wl}-E'
5047     else
5048       case "$host_os" in
5049       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5050         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5051         hardcode_libdir_flag_spec='-R$libdir'
5052         ;;
5053       *)
5054         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5055         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5056         ;;
5057       esac
5058     fi
5059     ;;
5060
5061   os2*)
5062     hardcode_libdir_flag_spec='-L$libdir'
5063     hardcode_minus_L=yes
5064     allow_undefined_flag=unsupported
5065     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'
5066     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5067     ;;
5068
5069   osf3*)
5070     if test "$GCC" = yes; then
5071       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5072       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'
5073     else
5074       allow_undefined_flag=' -expect_unresolved \*'
5075       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'
5076     fi
5077     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5078     hardcode_libdir_separator=:
5079     ;;
5080
5081   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5082     if test "$GCC" = yes; then
5083       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5084       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'
5085       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5086     else
5087       allow_undefined_flag=' -expect_unresolved \*'
5088       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'
5089       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5090       $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'
5091
5092       #Both c and cxx compiler support -rpath directly
5093       hardcode_libdir_flag_spec='-rpath $libdir'
5094     fi
5095     hardcode_libdir_separator=:
5096     ;;
5097
5098   sco3.2v5*)
5099     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5100     hardcode_shlibpath_var=no
5101     runpath_var=LD_RUN_PATH
5102     hardcode_runpath_var=yes
5103     export_dynamic_flag_spec='${wl}-Bexport'
5104     ;;
5105
5106   solaris*)
5107     # gcc --version < 3.0 without binutils cannot create self contained
5108     # shared libraries reliably, requiring libgcc.a to resolve some of
5109     # the object symbols generated in some cases.  Libraries that use
5110     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5111     # a copy of libgcc.a into every shared library to guarantee resolving
5112     # such symbols causes other problems:  According to Tim Van Holder
5113     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5114     # (to the application) exception stack for one thing.
5115     no_undefined_flag=' -z defs'
5116     if test "$GCC" = yes; then
5117       case `$CC --version 2>/dev/null` in
5118       [12].*)
5119         cat <<EOF 1>&2
5120
5121 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5122 *** create self contained shared libraries on Solaris systems, without
5123 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5124 *** -no-undefined support, which will at least allow you to build shared
5125 *** libraries.  However, you may find that when you link such libraries
5126 *** into an application without using GCC, you have to manually add
5127 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5128 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5129 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5130
5131 EOF
5132         no_undefined_flag=
5133         ;;
5134       esac
5135     fi
5136     # $CC -shared without GNU ld will not create a library from C++
5137     # object files and a static libstdc++, better avoid it by now
5138     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5139     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5140                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5141     hardcode_libdir_flag_spec='-R$libdir'
5142     hardcode_shlibpath_var=no
5143     case $host_os in
5144     solaris2.[0-5] | solaris2.[0-5].*) ;;
5145     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5146       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5147     esac
5148     link_all_deplibs=yes
5149     ;;
5150
5151   sunos4*)
5152     if test "x$host_vendor" = xsequent; then
5153       # Use $CC to link under sequent, because it throws in some extra .o
5154       # files that make .init and .fini sections work.
5155       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5156     else
5157       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5158     fi
5159     hardcode_libdir_flag_spec='-L$libdir'
5160     hardcode_direct=yes
5161     hardcode_minus_L=yes
5162     hardcode_shlibpath_var=no
5163     ;;
5164
5165   sysv4)
5166     if test "x$host_vendor" = xsno; then
5167       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5168       hardcode_direct=yes # is this really true???
5169     else
5170       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5171       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5172     fi
5173     runpath_var='LD_RUN_PATH'
5174     hardcode_shlibpath_var=no
5175     ;;
5176
5177   sysv4.3*)
5178     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5179     hardcode_shlibpath_var=no
5180     export_dynamic_flag_spec='-Bexport'
5181     ;;
5182
5183   sysv5*)
5184     no_undefined_flag=' -z text'
5185     # $CC -shared without GNU ld will not create a library from C++
5186     # object files and a static libstdc++, better avoid it by now
5187     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5188     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5189                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5190     hardcode_libdir_flag_spec=
5191     hardcode_shlibpath_var=no
5192     runpath_var='LD_RUN_PATH'
5193     ;;
5194
5195   uts4*)
5196     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5197     hardcode_libdir_flag_spec='-L$libdir'
5198     hardcode_shlibpath_var=no
5199     ;;
5200
5201   dgux*)
5202     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5203     hardcode_libdir_flag_spec='-L$libdir'
5204     hardcode_shlibpath_var=no
5205     ;;
5206
5207   sysv4*MP*)
5208     if test -d /usr/nec; then
5209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5210       hardcode_shlibpath_var=no
5211       runpath_var=LD_RUN_PATH
5212       hardcode_runpath_var=yes
5213       ld_shlibs=yes
5214     fi
5215     ;;
5216
5217   sysv4.2uw2*)
5218     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5219     hardcode_direct=yes
5220     hardcode_minus_L=no
5221     hardcode_shlibpath_var=no
5222     hardcode_runpath_var=yes
5223     runpath_var=LD_RUN_PATH
5224     ;;
5225
5226   sysv5uw7* | unixware7*)
5227     no_undefined_flag='${wl}-z ${wl}text'
5228     if test "$GCC" = yes; then
5229       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5230     else
5231       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5232     fi
5233     runpath_var='LD_RUN_PATH'
5234     hardcode_shlibpath_var=no
5235     ;;
5236
5237   *)
5238     ld_shlibs=no
5239     ;;
5240   esac
5241 fi
5242 echo "$as_me:5242: result: $ld_shlibs" >&5
5243 echo "${ECHO_T}$ld_shlibs" >&6
5244 test "$ld_shlibs" = no && can_build_shared=no
5245
5246 # Check hardcoding attributes.
5247 echo "$as_me:5247: checking how to hardcode library paths into programs" >&5
5248 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5249 hardcode_action=
5250 if test -n "$hardcode_libdir_flag_spec" || \
5251    test -n "$runpath_var"; then
5252
5253   # We can hardcode non-existant directories.
5254   if test "$hardcode_direct" != no &&
5255      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5256      # have to relink, otherwise we might link with an installed library
5257      # when we should be linking with a yet-to-be-installed one
5258      ## test "$hardcode_shlibpath_var" != no &&
5259      test "$hardcode_minus_L" != no; then
5260     # Linking always hardcodes the temporary library directory.
5261     hardcode_action=relink
5262   else
5263     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5264     hardcode_action=immediate
5265   fi
5266 else
5267   # We cannot hardcode anything, or else we can only hardcode existing
5268   # directories.
5269   hardcode_action=unsupported
5270 fi
5271 echo "$as_me:5271: result: $hardcode_action" >&5
5272 echo "${ECHO_T}$hardcode_action" >&6
5273
5274 striplib=
5275 old_striplib=
5276 echo "$as_me:5276: checking whether stripping libraries is possible" >&5
5277 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5278 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5279   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5280   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5281   echo "$as_me:5281: result: yes" >&5
5282 echo "${ECHO_T}yes" >&6
5283 else
5284   echo "$as_me:5284: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5289 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5290
5291 # PORTME Fill in your ld.so characteristics
5292 echo "$as_me:5292: checking dynamic linker characteristics" >&5
5293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5294 library_names_spec=
5295 libname_spec='lib$name'
5296 soname_spec=
5297 postinstall_cmds=
5298 postuninstall_cmds=
5299 finish_cmds=
5300 finish_eval=
5301 shlibpath_var=
5302 shlibpath_overrides_runpath=unknown
5303 version_type=none
5304 dynamic_linker="$host_os ld.so"
5305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5307
5308 case $host_os in
5309 aix3*)
5310   version_type=linux
5311   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5312   shlibpath_var=LIBPATH
5313
5314   # AIX has no versioning support, so we append a major version to the name.
5315   soname_spec='${libname}${release}.so$major'
5316   ;;
5317
5318 aix4* | aix5*)
5319   version_type=linux
5320   if test "$host_cpu" = ia64; then
5321     # AIX 5 supports IA64
5322     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5323     shlibpath_var=LD_LIBRARY_PATH
5324   else
5325     # With GCC up to 2.95.x, collect2 would create an import file
5326     # for dependence libraries.  The import file would start with
5327     # the line `#! .'.  This would cause the generated library to
5328     # depend on `.', always an invalid library.  This was fixed in
5329     # development snapshots of GCC prior to 3.0.
5330     case $host_os in
5331       aix4 | aix4.[01] | aix4.[01].*)
5332         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5333              echo ' yes '
5334              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5335           :
5336         else
5337           can_build_shared=no
5338         fi
5339         ;;
5340     esac
5341     # AIX (on Power*) has no versioning support, so currently we can
5342     # not hardcode correct soname into executable. Probably we can
5343     # add versioning support to collect2, so additional links can
5344     # be useful in future.
5345     if test "$aix_use_runtimelinking" = yes; then
5346       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5347       # instead of lib<name>.a to let people know that these are not
5348       # typical AIX shared libraries.
5349       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5350     else
5351       # We preserve .a as extension for shared libraries through AIX4.2
5352       # and later when we are not doing run time linking.
5353       library_names_spec='${libname}${release}.a $libname.a'
5354       soname_spec='${libname}${release}.so$major'
5355     fi
5356     shlibpath_var=LIBPATH
5357   fi
5358   ;;
5359
5360 amigaos*)
5361   library_names_spec='$libname.ixlibrary $libname.a'
5362   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5363   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'
5364   ;;
5365
5366 beos*)
5367   library_names_spec='${libname}.so'
5368   dynamic_linker="$host_os ld.so"
5369   shlibpath_var=LIBRARY_PATH
5370   ;;
5371
5372 bsdi4*)
5373   version_type=linux
5374   need_version=no
5375   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5376   soname_spec='${libname}${release}.so$major'
5377   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5378   shlibpath_var=LD_LIBRARY_PATH
5379   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5380   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5381   export_dynamic_flag_spec=-rdynamic
5382   # the default ld.so.conf also contains /usr/contrib/lib and
5383   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5384   # libtool to hard-code these into programs
5385   ;;
5386
5387 cygwin* | mingw* | pw32*)
5388   version_type=windows
5389   need_version=no
5390   need_lib_prefix=no
5391   case $GCC,$host_os in
5392   yes,cygwin*)
5393     library_names_spec='$libname.dll.a'
5394     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5395     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5396       dldir=$destdir/`dirname \$dlpath`~
5397       test -d \$dldir || mkdir -p \$dldir~
5398       $install_prog .libs/$dlname \$dldir/$dlname'
5399     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5400       dlpath=$dir/\$dldll~
5401        $rm \$dlpath'
5402     ;;
5403   yes,mingw*)
5404     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5405     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5406     ;;
5407   yes,pw32*)
5408     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5409     ;;
5410   *)
5411     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5412     ;;
5413   esac
5414   dynamic_linker='Win32 ld.exe'
5415   # FIXME: first we should search . and the directory the executable is in
5416   shlibpath_var=PATH
5417   ;;
5418
5419 darwin* | rhapsody*)
5420   dynamic_linker="$host_os dyld"
5421   version_type=darwin
5422   need_lib_prefix=no
5423   need_version=no
5424   # FIXME: Relying on posixy $() will cause problems for
5425   #        cross-compilation, but unfortunately the echo tests do not
5426   #        yet detect zsh echo's removal of \ escapes.
5427   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)'
5428   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5429   shlibpath_overrides_runpath=yes
5430   shlibpath_var=DYLD_LIBRARY_PATH
5431   ;;
5432
5433 freebsd1*)
5434   dynamic_linker=no
5435   ;;
5436
5437 freebsd*)
5438   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5439   version_type=freebsd-$objformat
5440   case $version_type in
5441     freebsd-elf*)
5442       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5443       need_version=no
5444       need_lib_prefix=no
5445       ;;
5446     freebsd-*)
5447       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5448       need_version=yes
5449       ;;
5450   esac
5451   shlibpath_var=LD_LIBRARY_PATH
5452   case $host_os in
5453   freebsd2*)
5454     shlibpath_overrides_runpath=yes
5455     ;;
5456   *)
5457     shlibpath_overrides_runpath=no
5458     hardcode_into_libs=yes
5459     ;;
5460   esac
5461   ;;
5462
5463 gnu*)
5464   version_type=linux
5465   need_lib_prefix=no
5466   need_version=no
5467   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5468   soname_spec='${libname}${release}.so$major'
5469   shlibpath_var=LD_LIBRARY_PATH
5470   hardcode_into_libs=yes
5471   ;;
5472
5473 hpux9* | hpux10* | hpux11*)
5474   # Give a soname corresponding to the major version so that dld.sl refuses to
5475   # link against other versions.
5476   dynamic_linker="$host_os dld.sl"
5477   version_type=sunos
5478   need_lib_prefix=no
5479   need_version=no
5480   shlibpath_var=SHLIB_PATH
5481   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5482   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5483   soname_spec='${libname}${release}.sl$major'
5484   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5485   postinstall_cmds='chmod 555 $lib'
5486   ;;
5487
5488 irix5* | irix6*)
5489   version_type=irix
5490   need_lib_prefix=no
5491   need_version=no
5492   soname_spec='${libname}${release}.so$major'
5493   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5494   case $host_os in
5495   irix5*)
5496     libsuff= shlibsuff=
5497     ;;
5498   *)
5499     case $LD in # libtool.m4 will add one of these switches to LD
5500     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5501     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5502     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5503     *) libsuff= shlibsuff= libmagic=never-match;;
5504     esac
5505     ;;
5506   esac
5507   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5508   shlibpath_overrides_runpath=no
5509   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5510   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5511   ;;
5512
5513 # No shared lib support for Linux oldld, aout, or coff.
5514 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5515   dynamic_linker=no
5516   ;;
5517
5518 # This must be Linux ELF.
5519 linux-gnu*)
5520   version_type=linux
5521   need_lib_prefix=no
5522   need_version=no
5523   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5524   soname_spec='${libname}${release}.so$major'
5525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5526   shlibpath_var=LD_LIBRARY_PATH
5527   shlibpath_overrides_runpath=no
5528   # This implies no fast_install, which is unacceptable.
5529   # Some rework will be needed to allow for fast_install
5530   # before this can be enabled.
5531   hardcode_into_libs=yes
5532
5533   # We used to test for /lib/ld.so.1 and disable shared libraries on
5534   # powerpc, because MkLinux only supported shared libraries with the
5535   # GNU dynamic linker.  Since this was broken with cross compilers,
5536   # most powerpc-linux boxes support dynamic linking these days and
5537   # people can always --disable-shared, the test was removed, and we
5538   # assume the GNU/Linux dynamic linker is in use.
5539   dynamic_linker='GNU/Linux ld.so'
5540   ;;
5541
5542 netbsd*)
5543   version_type=sunos
5544   need_lib_prefix=no
5545   need_version=no
5546   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5547     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5548     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5549     dynamic_linker='NetBSD (a.out) ld.so'
5550   else
5551     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5552     soname_spec='${libname}${release}.so$major'
5553     dynamic_linker='NetBSD ld.elf_so'
5554   fi
5555   shlibpath_var=LD_LIBRARY_PATH
5556   shlibpath_overrides_runpath=yes
5557   hardcode_into_libs=yes
5558   ;;
5559
5560 newsos6)
5561   version_type=linux
5562   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5563   shlibpath_var=LD_LIBRARY_PATH
5564   shlibpath_overrides_runpath=yes
5565   ;;
5566
5567 openbsd*)
5568   version_type=sunos
5569   need_lib_prefix=no
5570   need_version=no
5571   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5572     case "$host_os" in
5573     openbsd2.[89] | openbsd2.[89].*)
5574       shlibpath_overrides_runpath=no
5575       ;;
5576     *)
5577       shlibpath_overrides_runpath=yes
5578       ;;
5579     esac
5580   else
5581     shlibpath_overrides_runpath=yes
5582   fi
5583   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5585   shlibpath_var=LD_LIBRARY_PATH
5586   ;;
5587
5588 os2*)
5589   libname_spec='$name'
5590   need_lib_prefix=no
5591   library_names_spec='$libname.dll $libname.a'
5592   dynamic_linker='OS/2 ld.exe'
5593   shlibpath_var=LIBPATH
5594   ;;
5595
5596 osf3* | osf4* | osf5*)
5597   version_type=osf
5598   need_version=no
5599   soname_spec='${libname}${release}.so'
5600   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5601   shlibpath_var=LD_LIBRARY_PATH
5602   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5603   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5604   ;;
5605
5606 sco3.2v5*)
5607   version_type=osf
5608   soname_spec='${libname}${release}.so$major'
5609   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5610   shlibpath_var=LD_LIBRARY_PATH
5611   ;;
5612
5613 solaris*)
5614   version_type=linux
5615   need_lib_prefix=no
5616   need_version=no
5617   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5618   soname_spec='${libname}${release}.so$major'
5619   shlibpath_var=LD_LIBRARY_PATH
5620   shlibpath_overrides_runpath=yes
5621   hardcode_into_libs=yes
5622   # ldd complains unless libraries are executable
5623   postinstall_cmds='chmod +x $lib'
5624   ;;
5625
5626 sunos4*)
5627   version_type=sunos
5628   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5629   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5630   shlibpath_var=LD_LIBRARY_PATH
5631   shlibpath_overrides_runpath=yes
5632   if test "$with_gnu_ld" = yes; then
5633     need_lib_prefix=no
5634   fi
5635   need_version=yes
5636   ;;
5637
5638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5639   version_type=linux
5640   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5641   soname_spec='${libname}${release}.so$major'
5642   shlibpath_var=LD_LIBRARY_PATH
5643   case $host_vendor in
5644     sni)
5645       shlibpath_overrides_runpath=no
5646       ;;
5647     motorola)
5648       need_lib_prefix=no
5649       need_version=no
5650       shlibpath_overrides_runpath=no
5651       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5652       ;;
5653   esac
5654   ;;
5655
5656 uts4*)
5657   version_type=linux
5658   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5659   soname_spec='${libname}${release}.so$major'
5660   shlibpath_var=LD_LIBRARY_PATH
5661   ;;
5662
5663 dgux*)
5664   version_type=linux
5665   need_lib_prefix=no
5666   need_version=no
5667   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5668   soname_spec='${libname}${release}.so$major'
5669   shlibpath_var=LD_LIBRARY_PATH
5670   ;;
5671
5672 sysv4*MP*)
5673   if test -d /usr/nec ;then
5674     version_type=linux
5675     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5676     soname_spec='$libname.so.$major'
5677     shlibpath_var=LD_LIBRARY_PATH
5678   fi
5679   ;;
5680
5681 *)
5682   dynamic_linker=no
5683   ;;
5684 esac
5685 echo "$as_me:5685: result: $dynamic_linker" >&5
5686 echo "${ECHO_T}$dynamic_linker" >&6
5687 test "$dynamic_linker" = no && can_build_shared=no
5688
5689 # Report the final consequences.
5690 echo "$as_me:5690: checking if libtool supports shared libraries" >&5
5691 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5692 echo "$as_me:5692: result: $can_build_shared" >&5
5693 echo "${ECHO_T}$can_build_shared" >&6
5694
5695 echo "$as_me:5695: checking whether to build shared libraries" >&5
5696 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5697 test "$can_build_shared" = "no" && enable_shared=no
5698
5699 # On AIX, shared libraries and static libraries use the same namespace, and
5700 # are all built from PIC.
5701 case "$host_os" in
5702 aix3*)
5703   test "$enable_shared" = yes && enable_static=no
5704   if test -n "$RANLIB"; then
5705     archive_cmds="$archive_cmds~\$RANLIB \$lib"
5706     postinstall_cmds='$RANLIB $lib'
5707   fi
5708   ;;
5709
5710 aix4*)
5711   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5712     test "$enable_shared" = yes && enable_static=no
5713   fi
5714   ;;
5715 esac
5716 echo "$as_me:5716: result: $enable_shared" >&5
5717 echo "${ECHO_T}$enable_shared" >&6
5718
5719 echo "$as_me:5719: checking whether to build static libraries" >&5
5720 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5721 # Make sure either enable_shared or enable_static is yes.
5722 test "$enable_shared" = yes || enable_static=yes
5723 echo "$as_me:5723: result: $enable_static" >&5
5724 echo "${ECHO_T}$enable_static" >&6
5725
5726 if test "$hardcode_action" = relink; then
5727   # Fast installation is not supported
5728   enable_fast_install=no
5729 elif test "$shlibpath_overrides_runpath" = yes ||
5730      test "$enable_shared" = no; then
5731   # Fast installation is not necessary
5732   enable_fast_install=needless
5733 fi
5734
5735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5736 if test "$GCC" = yes; then
5737   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5738 fi
5739
5740 if test "x$enable_dlopen" != xyes; then
5741   enable_dlopen=unknown
5742   enable_dlopen_self=unknown
5743   enable_dlopen_self_static=unknown
5744 else
5745   lt_cv_dlopen=no
5746   lt_cv_dlopen_libs=
5747
5748   case $host_os in
5749   beos*)
5750     lt_cv_dlopen="load_add_on"
5751     lt_cv_dlopen_libs=
5752     lt_cv_dlopen_self=yes
5753     ;;
5754
5755   cygwin* | mingw* | pw32*)
5756     lt_cv_dlopen="LoadLibrary"
5757     lt_cv_dlopen_libs=
5758    ;;
5759
5760   *)
5761     echo "$as_me:5761: checking for shl_load" >&5
5762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5763 if test "${ac_cv_func_shl_load+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   cat >conftest.$ac_ext <<_ACEOF
5767 #line 5767 "configure"
5768 #include "confdefs.h"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770     which can conflict with char shl_load (); below.  */
5771 #include <assert.h>
5772 /* Override any gcc2 internal prototype to avoid an error.  */
5773 #ifdef __cplusplus
5774 extern "C"
5775 #endif
5776 /* We use char because int might match the return type of a gcc2
5777    builtin and then its argument prototype would still apply.  */
5778 char shl_load ();
5779 char (*f) ();
5780
5781 int
5782 main ()
5783 {
5784 /* The GNU C library defines this for functions which it implements
5785     to always fail with ENOSYS.  Some functions are actually named
5786     something starting with __ and the normal name is an alias.  */
5787 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5788 choke me
5789 #else
5790 f = shl_load;
5791 #endif
5792
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:5798: \"$ac_link\"") >&5
5799   (eval $ac_link) 2>&5
5800   ac_status=$?
5801   echo "$as_me:5801: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -s conftest$ac_exeext'
5804   { (eval echo "$as_me:5804: \"$ac_try\"") >&5
5805   (eval $ac_try) 2>&5
5806   ac_status=$?
5807   echo "$as_me:5807: \$? = $ac_status" >&5
5808   (exit $ac_status); }; }; then
5809   ac_cv_func_shl_load=yes
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_cv_func_shl_load=no
5814 fi
5815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5816 fi
5817 echo "$as_me:5817: result: $ac_cv_func_shl_load" >&5
5818 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5819 if test $ac_cv_func_shl_load = yes; then
5820   lt_cv_dlopen="shl_load"
5821 else
5822   echo "$as_me:5822: checking for shl_load in -ldld" >&5
5823 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5824 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   ac_check_lib_save_LIBS=$LIBS
5828 LIBS="-ldld  $LIBS"
5829 cat >conftest.$ac_ext <<_ACEOF
5830 #line 5830 "configure"
5831 #include "confdefs.h"
5832
5833 /* Override any gcc2 internal prototype to avoid an error.  */
5834 #ifdef __cplusplus
5835 extern "C"
5836 #endif
5837 /* We use char because int might match the return type of a gcc2
5838    builtin and then its argument prototype would still apply.  */
5839 char shl_load ();
5840 int
5841 main ()
5842 {
5843 shl_load ();
5844   ;
5845   return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:5849: \"$ac_link\"") >&5
5850   (eval $ac_link) 2>&5
5851   ac_status=$?
5852   echo "$as_me:5852: \$? = $ac_status" >&5
5853   (exit $ac_status); } &&
5854          { ac_try='test -s conftest$ac_exeext'
5855   { (eval echo "$as_me:5855: \"$ac_try\"") >&5
5856   (eval $ac_try) 2>&5
5857   ac_status=$?
5858   echo "$as_me:5858: \$? = $ac_status" >&5
5859   (exit $ac_status); }; }; then
5860   ac_cv_lib_dld_shl_load=yes
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5864 ac_cv_lib_dld_shl_load=no
5865 fi
5866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867 LIBS=$ac_check_lib_save_LIBS
5868 fi
5869 echo "$as_me:5869: result: $ac_cv_lib_dld_shl_load" >&5
5870 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5871 if test $ac_cv_lib_dld_shl_load = yes; then
5872   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5873 else
5874   echo "$as_me:5874: checking for dlopen" >&5
5875 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5876 if test "${ac_cv_func_dlopen+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   cat >conftest.$ac_ext <<_ACEOF
5880 #line 5880 "configure"
5881 #include "confdefs.h"
5882 /* System header to define __stub macros and hopefully few prototypes,
5883     which can conflict with char dlopen (); below.  */
5884 #include <assert.h>
5885 /* Override any gcc2 internal prototype to avoid an error.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 /* We use char because int might match the return type of a gcc2
5890    builtin and then its argument prototype would still apply.  */
5891 char dlopen ();
5892 char (*f) ();
5893
5894 int
5895 main ()
5896 {
5897 /* The GNU C library defines this for functions which it implements
5898     to always fail with ENOSYS.  Some functions are actually named
5899     something starting with __ and the normal name is an alias.  */
5900 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5901 choke me
5902 #else
5903 f = dlopen;
5904 #endif
5905
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext conftest$ac_exeext
5911 if { (eval echo "$as_me:5911: \"$ac_link\"") >&5
5912   (eval $ac_link) 2>&5
5913   ac_status=$?
5914   echo "$as_me:5914: \$? = $ac_status" >&5
5915   (exit $ac_status); } &&
5916          { ac_try='test -s conftest$ac_exeext'
5917   { (eval echo "$as_me:5917: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:5920: \$? = $ac_status" >&5
5921   (exit $ac_status); }; }; then
5922   ac_cv_func_dlopen=yes
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5926 ac_cv_func_dlopen=no
5927 fi
5928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5929 fi
5930 echo "$as_me:5930: result: $ac_cv_func_dlopen" >&5
5931 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5932 if test $ac_cv_func_dlopen = yes; then
5933   lt_cv_dlopen="dlopen"
5934 else
5935   echo "$as_me:5935: checking for dlopen in -ldl" >&5
5936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940   ac_check_lib_save_LIBS=$LIBS
5941 LIBS="-ldl  $LIBS"
5942 cat >conftest.$ac_ext <<_ACEOF
5943 #line 5943 "configure"
5944 #include "confdefs.h"
5945
5946 /* Override any gcc2 internal prototype to avoid an error.  */
5947 #ifdef __cplusplus
5948 extern "C"
5949 #endif
5950 /* We use char because int might match the return type of a gcc2
5951    builtin and then its argument prototype would still apply.  */
5952 char dlopen ();
5953 int
5954 main ()
5955 {
5956 dlopen ();
5957   ;
5958   return 0;
5959 }
5960 _ACEOF
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (eval echo "$as_me:5962: \"$ac_link\"") >&5
5963   (eval $ac_link) 2>&5
5964   ac_status=$?
5965   echo "$as_me:5965: \$? = $ac_status" >&5
5966   (exit $ac_status); } &&
5967          { ac_try='test -s conftest$ac_exeext'
5968   { (eval echo "$as_me:5968: \"$ac_try\"") >&5
5969   (eval $ac_try) 2>&5
5970   ac_status=$?
5971   echo "$as_me:5971: \$? = $ac_status" >&5
5972   (exit $ac_status); }; }; then
5973   ac_cv_lib_dl_dlopen=yes
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 ac_cv_lib_dl_dlopen=no
5978 fi
5979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5980 LIBS=$ac_check_lib_save_LIBS
5981 fi
5982 echo "$as_me:5982: result: $ac_cv_lib_dl_dlopen" >&5
5983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5984 if test $ac_cv_lib_dl_dlopen = yes; then
5985   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5986 else
5987   echo "$as_me:5987: checking for dlopen in -lsvld" >&5
5988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   ac_check_lib_save_LIBS=$LIBS
5993 LIBS="-lsvld  $LIBS"
5994 cat >conftest.$ac_ext <<_ACEOF
5995 #line 5995 "configure"
5996 #include "confdefs.h"
5997
5998 /* Override any gcc2 internal prototype to avoid an error.  */
5999 #ifdef __cplusplus
6000 extern "C"
6001 #endif
6002 /* We use char because int might match the return type of a gcc2
6003    builtin and then its argument prototype would still apply.  */
6004 char dlopen ();
6005 int
6006 main ()
6007 {
6008 dlopen ();
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (eval echo "$as_me:6014: \"$ac_link\"") >&5
6015   (eval $ac_link) 2>&5
6016   ac_status=$?
6017   echo "$as_me:6017: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -s conftest$ac_exeext'
6020   { (eval echo "$as_me:6020: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:6023: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025   ac_cv_lib_svld_dlopen=yes
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6029 ac_cv_lib_svld_dlopen=no
6030 fi
6031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6032 LIBS=$ac_check_lib_save_LIBS
6033 fi
6034 echo "$as_me:6034: result: $ac_cv_lib_svld_dlopen" >&5
6035 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6036 if test $ac_cv_lib_svld_dlopen = yes; then
6037   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6038 else
6039   echo "$as_me:6039: checking for dld_link in -ldld" >&5
6040 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6041 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   ac_check_lib_save_LIBS=$LIBS
6045 LIBS="-ldld  $LIBS"
6046 cat >conftest.$ac_ext <<_ACEOF
6047 #line 6047 "configure"
6048 #include "confdefs.h"
6049
6050 /* Override any gcc2 internal prototype to avoid an error.  */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 /* We use char because int might match the return type of a gcc2
6055    builtin and then its argument prototype would still apply.  */
6056 char dld_link ();
6057 int
6058 main ()
6059 {
6060 dld_link ();
6061   ;
6062   return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:6066: \"$ac_link\"") >&5
6067   (eval $ac_link) 2>&5
6068   ac_status=$?
6069   echo "$as_me:6069: \$? = $ac_status" >&5
6070   (exit $ac_status); } &&
6071          { ac_try='test -s conftest$ac_exeext'
6072   { (eval echo "$as_me:6072: \"$ac_try\"") >&5
6073   (eval $ac_try) 2>&5
6074   ac_status=$?
6075   echo "$as_me:6075: \$? = $ac_status" >&5
6076   (exit $ac_status); }; }; then
6077   ac_cv_lib_dld_dld_link=yes
6078 else
6079   echo "$as_me: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 ac_cv_lib_dld_dld_link=no
6082 fi
6083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6085 fi
6086 echo "$as_me:6086: result: $ac_cv_lib_dld_dld_link" >&5
6087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6088 if test $ac_cv_lib_dld_dld_link = yes; then
6089   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6090 fi
6091
6092 fi
6093
6094 fi
6095
6096 fi
6097
6098 fi
6099
6100 fi
6101
6102     ;;
6103   esac
6104
6105   if test "x$lt_cv_dlopen" != xno; then
6106     enable_dlopen=yes
6107   else
6108     enable_dlopen=no
6109   fi
6110
6111   case $lt_cv_dlopen in
6112   dlopen)
6113     save_CPPFLAGS="$CPPFLAGS"
6114         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6115
6116     save_LDFLAGS="$LDFLAGS"
6117     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6118
6119     save_LIBS="$LIBS"
6120     LIBS="$lt_cv_dlopen_libs $LIBS"
6121
6122     echo "$as_me:6122: checking whether a program can dlopen itself" >&5
6123 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6124 if test "${lt_cv_dlopen_self+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127           if test "$cross_compiling" = yes; then :
6128   lt_cv_dlopen_self=cross
6129 else
6130     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6131   lt_status=$lt_dlunknown
6132   cat > conftest.$ac_ext <<EOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6135
6136 #if HAVE_DLFCN_H
6137 #include <dlfcn.h>
6138 #endif
6139
6140 #include <stdio.h>
6141
6142 #ifdef RTLD_GLOBAL
6143 #  define LT_DLGLOBAL           RTLD_GLOBAL
6144 #else
6145 #  ifdef DL_GLOBAL
6146 #    define LT_DLGLOBAL         DL_GLOBAL
6147 #  else
6148 #    define LT_DLGLOBAL         0
6149 #  endif
6150 #endif
6151
6152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6153    find out it does not work in some platform. */
6154 #ifndef LT_DLLAZY_OR_NOW
6155 #  ifdef RTLD_LAZY
6156 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6157 #  else
6158 #    ifdef DL_LAZY
6159 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6160 #    else
6161 #      ifdef RTLD_NOW
6162 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6163 #      else
6164 #        ifdef DL_NOW
6165 #          define LT_DLLAZY_OR_NOW      DL_NOW
6166 #        else
6167 #          define LT_DLLAZY_OR_NOW      0
6168 #        endif
6169 #      endif
6170 #    endif
6171 #  endif
6172 #endif
6173
6174 #ifdef __cplusplus
6175 extern "C" void exit (int);
6176 #endif
6177
6178 void fnord() { int i=42;}
6179 int main ()
6180 {
6181   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6182   int status = $lt_dlunknown;
6183
6184   if (self)
6185     {
6186       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6187       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6188       /* dlclose (self); */
6189     }
6190
6191     exit (status);
6192 }
6193 EOF
6194   if { (eval echo "$as_me:6194: \"$ac_link\"") >&5
6195   (eval $ac_link) 2>&5
6196   ac_status=$?
6197   echo "$as_me:6197: \$? = $ac_status" >&5
6198   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6199     (./conftest; exit; ) 2>/dev/null
6200     lt_status=$?
6201     case x$lt_status in
6202       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6203       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6204       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6205     esac
6206   else :
6207     # compilation failed
6208     lt_cv_dlopen_self=no
6209   fi
6210 fi
6211 rm -fr conftest*
6212
6213 fi
6214 echo "$as_me:6214: result: $lt_cv_dlopen_self" >&5
6215 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6216
6217     if test "x$lt_cv_dlopen_self" = xyes; then
6218       LDFLAGS="$LDFLAGS $link_static_flag"
6219       echo "$as_me:6219: checking whether a statically linked program can dlopen itself" >&5
6220 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6221 if test "${lt_cv_dlopen_self_static+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224           if test "$cross_compiling" = yes; then :
6225   lt_cv_dlopen_self_static=cross
6226 else
6227     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6228   lt_status=$lt_dlunknown
6229   cat > conftest.$ac_ext <<EOF
6230 #line 6230 "configure"
6231 #include "confdefs.h"
6232
6233 #if HAVE_DLFCN_H
6234 #include <dlfcn.h>
6235 #endif
6236
6237 #include <stdio.h>
6238
6239 #ifdef RTLD_GLOBAL
6240 #  define LT_DLGLOBAL           RTLD_GLOBAL
6241 #else
6242 #  ifdef DL_GLOBAL
6243 #    define LT_DLGLOBAL         DL_GLOBAL
6244 #  else
6245 #    define LT_DLGLOBAL         0
6246 #  endif
6247 #endif
6248
6249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6250    find out it does not work in some platform. */
6251 #ifndef LT_DLLAZY_OR_NOW
6252 #  ifdef RTLD_LAZY
6253 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6254 #  else
6255 #    ifdef DL_LAZY
6256 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6257 #    else
6258 #      ifdef RTLD_NOW
6259 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6260 #      else
6261 #        ifdef DL_NOW
6262 #          define LT_DLLAZY_OR_NOW      DL_NOW
6263 #        else
6264 #          define LT_DLLAZY_OR_NOW      0
6265 #        endif
6266 #      endif
6267 #    endif
6268 #  endif
6269 #endif
6270
6271 #ifdef __cplusplus
6272 extern "C" void exit (int);
6273 #endif
6274
6275 void fnord() { int i=42;}
6276 int main ()
6277 {
6278   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6279   int status = $lt_dlunknown;
6280
6281   if (self)
6282     {
6283       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6284       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6285       /* dlclose (self); */
6286     }
6287
6288     exit (status);
6289 }
6290 EOF
6291   if { (eval echo "$as_me:6291: \"$ac_link\"") >&5
6292   (eval $ac_link) 2>&5
6293   ac_status=$?
6294   echo "$as_me:6294: \$? = $ac_status" >&5
6295   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6296     (./conftest; exit; ) 2>/dev/null
6297     lt_status=$?
6298     case x$lt_status in
6299       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6300       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6301       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6302     esac
6303   else :
6304     # compilation failed
6305     lt_cv_dlopen_self_static=no
6306   fi
6307 fi
6308 rm -fr conftest*
6309
6310 fi
6311 echo "$as_me:6311: result: $lt_cv_dlopen_self_static" >&5
6312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6313     fi
6314
6315     CPPFLAGS="$save_CPPFLAGS"
6316     LDFLAGS="$save_LDFLAGS"
6317     LIBS="$save_LIBS"
6318     ;;
6319   esac
6320
6321   case $lt_cv_dlopen_self in
6322   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6323   *) enable_dlopen_self=unknown ;;
6324   esac
6325
6326   case $lt_cv_dlopen_self_static in
6327   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6328   *) enable_dlopen_self_static=unknown ;;
6329   esac
6330 fi
6331
6332 if test "$enable_shared" = yes && test "$GCC" = yes; then
6333   case $archive_cmds in
6334   *'~'*)
6335     # FIXME: we may have to deal with multi-command sequences.
6336     ;;
6337   '$CC '*)
6338     # Test whether the compiler implicitly links with -lc since on some
6339     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6340     # to ld, don't add -lc before -lgcc.
6341     echo "$as_me:6341: checking whether -lc should be explicitly linked in" >&5
6342 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6343     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   $rm conftest*
6347     echo 'static int dummy;' > conftest.$ac_ext
6348
6349     if { (eval echo "$as_me:6349: \"$ac_compile\"") >&5
6350   (eval $ac_compile) 2>&5
6351   ac_status=$?
6352   echo "$as_me:6352: \$? = $ac_status" >&5
6353   (exit $ac_status); }; then
6354       soname=conftest
6355       lib=conftest
6356       libobjs=conftest.$ac_objext
6357       deplibs=
6358       wl=$lt_cv_prog_cc_wl
6359       compiler_flags=-v
6360       linker_flags=-v
6361       verstring=
6362       output_objdir=.
6363       libname=conftest
6364       save_allow_undefined_flag=$allow_undefined_flag
6365       allow_undefined_flag=
6366       if { (eval echo "$as_me:6366: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6367   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6368   ac_status=$?
6369   echo "$as_me:6369: \$? = $ac_status" >&5
6370   (exit $ac_status); }
6371       then
6372         lt_cv_archive_cmds_need_lc=no
6373       else
6374         lt_cv_archive_cmds_need_lc=yes
6375       fi
6376       allow_undefined_flag=$save_allow_undefined_flag
6377     else
6378       cat conftest.err 1>&5
6379     fi
6380 fi
6381
6382     echo "$as_me:6382: result: $lt_cv_archive_cmds_need_lc" >&5
6383 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6384     ;;
6385   esac
6386 fi
6387 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6388
6389 # The second clause should only fire when bootstrapping the
6390 # libtool distribution, otherwise you forgot to ship ltmain.sh
6391 # with your package, and you will get complaints that there are
6392 # no rules to generate ltmain.sh.
6393 if test -f "$ltmain"; then
6394   :
6395 else
6396   # If there is no Makefile yet, we rely on a make rule to execute
6397   # `config.status --recheck' to rerun these tests and create the
6398   # libtool script then.
6399   test -f Makefile && make "$ltmain"
6400 fi
6401
6402 if test -f "$ltmain"; then
6403   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6404   $rm -f "${ofile}T"
6405
6406   echo creating $ofile
6407
6408   # Now quote all the things that may contain metacharacters while being
6409   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6410   # variables and quote the copies for generation of the libtool script.
6411   for var in echo old_CC old_CFLAGS \
6412     AR AR_FLAGS CC LD LN_S NM SHELL \
6413     reload_flag reload_cmds wl \
6414     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6415     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6416     library_names_spec soname_spec \
6417     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6418     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6419     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6420     old_striplib striplib file_magic_cmd export_symbols_cmds \
6421     deplibs_check_method allow_undefined_flag no_undefined_flag \
6422     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6423     global_symbol_to_c_name_address \
6424     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6425     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6426     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6427
6428     case $var in
6429     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6430     old_postinstall_cmds | old_postuninstall_cmds | \
6431     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6432     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6433     postinstall_cmds | postuninstall_cmds | \
6434     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6435       # Double-quote double-evaled strings.
6436       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6437       ;;
6438     *)
6439       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6440       ;;
6441     esac
6442   done
6443
6444   cat <<__EOF__ > "${ofile}T"
6445 #! $SHELL
6446
6447 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6448 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6449 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6450 #
6451 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6452 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6453 #
6454 # This program is free software; you can redistribute it and/or modify
6455 # it under the terms of the GNU General Public License as published by
6456 # the Free Software Foundation; either version 2 of the License, or
6457 # (at your option) any later version.
6458 #
6459 # This program is distributed in the hope that it will be useful, but
6460 # WITHOUT ANY WARRANTY; without even the implied warranty of
6461 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6462 # General Public License for more details.
6463 #
6464 # You should have received a copy of the GNU General Public License
6465 # along with this program; if not, write to the Free Software
6466 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6467 #
6468 # As a special exception to the GNU General Public License, if you
6469 # distribute this file as part of a program that contains a
6470 # configuration script generated by Autoconf, you may include it under
6471 # the same distribution terms that you use for the rest of that program.
6472
6473 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6474 Xsed="sed -e s/^X//"
6475
6476 # The HP-UX ksh and POSIX shell print the target directory to stdout
6477 # if CDPATH is set.
6478 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6479
6480 # ### BEGIN LIBTOOL CONFIG
6481
6482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6483
6484 # Shell to use when invoking shell scripts.
6485 SHELL=$lt_SHELL
6486
6487 # Whether or not to build shared libraries.
6488 build_libtool_libs=$enable_shared
6489
6490 # Whether or not to build static libraries.
6491 build_old_libs=$enable_static
6492
6493 # Whether or not to add -lc for building shared libraries.
6494 build_libtool_need_lc=$need_lc
6495
6496 # Whether or not to optimize for fast installation.
6497 fast_install=$enable_fast_install
6498
6499 # The host system.
6500 host_alias=$host_alias
6501 host=$host
6502
6503 # An echo program that does not interpret backslashes.
6504 echo=$lt_echo
6505
6506 # The archiver.
6507 AR=$lt_AR
6508 AR_FLAGS=$lt_AR_FLAGS
6509
6510 # The default C compiler.
6511 CC=$lt_CC
6512
6513 # Is the compiler the GNU C compiler?
6514 with_gcc=$GCC
6515
6516 # The linker used to build libraries.
6517 LD=$lt_LD
6518
6519 # Whether we need hard or soft links.
6520 LN_S=$lt_LN_S
6521
6522 # A BSD-compatible nm program.
6523 NM=$lt_NM
6524
6525 # A symbol stripping program
6526 STRIP=$STRIP
6527
6528 # Used to examine libraries when file_magic_cmd begins "file"
6529 MAGIC_CMD=$MAGIC_CMD
6530
6531 # Used on cygwin: DLL creation program.
6532 DLLTOOL="$DLLTOOL"
6533
6534 # Used on cygwin: object dumper.
6535 OBJDUMP="$OBJDUMP"
6536
6537 # Used on cygwin: assembler.
6538 AS="$AS"
6539
6540 # The name of the directory that contains temporary libtool files.
6541 objdir=$objdir
6542
6543 # How to create reloadable object files.
6544 reload_flag=$lt_reload_flag
6545 reload_cmds=$lt_reload_cmds
6546
6547 # How to pass a linker flag through the compiler.
6548 wl=$lt_wl
6549
6550 # Object file suffix (normally "o").
6551 objext="$ac_objext"
6552
6553 # Old archive suffix (normally "a").
6554 libext="$libext"
6555
6556 # Executable file suffix (normally "").
6557 exeext="$exeext"
6558
6559 # Additional compiler flags for building library objects.
6560 pic_flag=$lt_pic_flag
6561 pic_mode=$pic_mode
6562
6563 # Does compiler simultaneously support -c and -o options?
6564 compiler_c_o=$lt_compiler_c_o
6565
6566 # Can we write directly to a .lo ?
6567 compiler_o_lo=$lt_compiler_o_lo
6568
6569 # Must we lock files when doing compilation ?
6570 need_locks=$lt_need_locks
6571
6572 # Do we need the lib prefix for modules?
6573 need_lib_prefix=$need_lib_prefix
6574
6575 # Do we need a version for libraries?
6576 need_version=$need_version
6577
6578 # Whether dlopen is supported.
6579 dlopen_support=$enable_dlopen
6580
6581 # Whether dlopen of programs is supported.
6582 dlopen_self=$enable_dlopen_self
6583
6584 # Whether dlopen of statically linked programs is supported.
6585 dlopen_self_static=$enable_dlopen_self_static
6586
6587 # Compiler flag to prevent dynamic linking.
6588 link_static_flag=$lt_link_static_flag
6589
6590 # Compiler flag to turn off builtin functions.
6591 no_builtin_flag=$lt_no_builtin_flag
6592
6593 # Compiler flag to allow reflexive dlopens.
6594 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6595
6596 # Compiler flag to generate shared objects directly from archives.
6597 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6598
6599 # Compiler flag to generate thread-safe objects.
6600 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6601
6602 # Library versioning type.
6603 version_type=$version_type
6604
6605 # Format of library name prefix.
6606 libname_spec=$lt_libname_spec
6607
6608 # List of archive names.  First name is the real one, the rest are links.
6609 # The last name is the one that the linker finds with -lNAME.
6610 library_names_spec=$lt_library_names_spec
6611
6612 # The coded name of the library, if different from the real name.
6613 soname_spec=$lt_soname_spec
6614
6615 # Commands used to build and install an old-style archive.
6616 RANLIB=$lt_RANLIB
6617 old_archive_cmds=$lt_old_archive_cmds
6618 old_postinstall_cmds=$lt_old_postinstall_cmds
6619 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6620
6621 # Create an old-style archive from a shared archive.
6622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6623
6624 # Create a temporary old-style archive to link instead of a shared archive.
6625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6626
6627 # Commands used to build and install a shared archive.
6628 archive_cmds=$lt_archive_cmds
6629 archive_expsym_cmds=$lt_archive_expsym_cmds
6630 postinstall_cmds=$lt_postinstall_cmds
6631 postuninstall_cmds=$lt_postuninstall_cmds
6632
6633 # Commands to strip libraries.
6634 old_striplib=$lt_old_striplib
6635 striplib=$lt_striplib
6636
6637 # Method to check whether dependent libraries are shared objects.
6638 deplibs_check_method=$lt_deplibs_check_method
6639
6640 # Command to use when deplibs_check_method == file_magic.
6641 file_magic_cmd=$lt_file_magic_cmd
6642
6643 # Flag that allows shared libraries with undefined symbols to be built.
6644 allow_undefined_flag=$lt_allow_undefined_flag
6645
6646 # Flag that forces no undefined symbols.
6647 no_undefined_flag=$lt_no_undefined_flag
6648
6649 # Commands used to finish a libtool library installation in a directory.
6650 finish_cmds=$lt_finish_cmds
6651
6652 # Same as above, but a single script fragment to be evaled but not shown.
6653 finish_eval=$lt_finish_eval
6654
6655 # Take the output of nm and produce a listing of raw symbols and C names.
6656 global_symbol_pipe=$lt_global_symbol_pipe
6657
6658 # Transform the output of nm in a proper C declaration
6659 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6660
6661 # Transform the output of nm in a C name address pair
6662 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6663
6664 # This is the shared library runtime path variable.
6665 runpath_var=$runpath_var
6666
6667 # This is the shared library path variable.
6668 shlibpath_var=$shlibpath_var
6669
6670 # Is shlibpath searched before the hard-coded library search path?
6671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6672
6673 # How to hardcode a shared library path into an executable.
6674 hardcode_action=$hardcode_action
6675
6676 # Whether we should hardcode library paths into libraries.
6677 hardcode_into_libs=$hardcode_into_libs
6678
6679 # Flag to hardcode \$libdir into a binary during linking.
6680 # This must work even if \$libdir does not exist.
6681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6682
6683 # Whether we need a single -rpath flag with a separated argument.
6684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6685
6686 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6687 # resulting binary.
6688 hardcode_direct=$hardcode_direct
6689
6690 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6691 # resulting binary.
6692 hardcode_minus_L=$hardcode_minus_L
6693
6694 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6695 # the resulting binary.
6696 hardcode_shlibpath_var=$hardcode_shlibpath_var
6697
6698 # Variables whose values should be saved in libtool wrapper scripts and
6699 # restored at relink time.
6700 variables_saved_for_relink="$variables_saved_for_relink"
6701
6702 # Whether libtool must link a program against all its dependency libraries.
6703 link_all_deplibs=$link_all_deplibs
6704
6705 # Compile-time system search path for libraries
6706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6707
6708 # Run-time system search path for libraries
6709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6710
6711 # Fix the shell variable \$srcfile for the compiler.
6712 fix_srcfile_path="$fix_srcfile_path"
6713
6714 # Set to yes if exported symbols are required.
6715 always_export_symbols=$always_export_symbols
6716
6717 # The commands to list exported symbols.
6718 export_symbols_cmds=$lt_export_symbols_cmds
6719
6720 # The commands to extract the exported symbol list from a shared archive.
6721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6722
6723 # Symbols that should not be listed in the preloaded symbols.
6724 exclude_expsyms=$lt_exclude_expsyms
6725
6726 # Symbols that must always be exported.
6727 include_expsyms=$lt_include_expsyms
6728
6729 # ### END LIBTOOL CONFIG
6730
6731 __EOF__
6732
6733   case $host_os in
6734   aix3*)
6735     cat <<\EOF >> "${ofile}T"
6736
6737 # AIX sometimes has problems with the GCC collect2 program.  For some
6738 # reason, if we set the COLLECT_NAMES environment variable, the problems
6739 # vanish in a puff of smoke.
6740 if test "X${COLLECT_NAMES+set}" != Xset; then
6741   COLLECT_NAMES=
6742   export COLLECT_NAMES
6743 fi
6744 EOF
6745     ;;
6746   esac
6747
6748   case $host_os in
6749   cygwin* | mingw* | pw32* | os2*)
6750     cat <<'EOF' >> "${ofile}T"
6751       # This is a source program that is used to create dlls on Windows
6752       # Don't remove nor modify the starting and closing comments
6753 # /* ltdll.c starts here */
6754 # #define WIN32_LEAN_AND_MEAN
6755 # #include <windows.h>
6756 # #undef WIN32_LEAN_AND_MEAN
6757 # #include <stdio.h>
6758 #
6759 # #ifndef __CYGWIN__
6760 # #  ifdef __CYGWIN32__
6761 # #    define __CYGWIN__ __CYGWIN32__
6762 # #  endif
6763 # #endif
6764 #
6765 # #ifdef __cplusplus
6766 # extern "C" {
6767 # #endif
6768 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6769 # #ifdef __cplusplus
6770 # }
6771 # #endif
6772 #
6773 # #ifdef __CYGWIN__
6774 # #include <cygwin/cygwin_dll.h>
6775 # DECLARE_CYGWIN_DLL( DllMain );
6776 # #endif
6777 # HINSTANCE __hDllInstance_base;
6778 #
6779 # BOOL APIENTRY
6780 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6781 # {
6782 #   __hDllInstance_base = hInst;
6783 #   return TRUE;
6784 # }
6785 # /* ltdll.c ends here */
6786         # This is a source program that is used to create import libraries
6787         # on Windows for dlls which lack them. Don't remove nor modify the
6788         # starting and closing comments
6789 # /* impgen.c starts here */
6790 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6791 #
6792 #  This file is part of GNU libtool.
6793 #
6794 #  This program is free software; you can redistribute it and/or modify
6795 #  it under the terms of the GNU General Public License as published by
6796 #  the Free Software Foundation; either version 2 of the License, or
6797 #  (at your option) any later version.
6798 #
6799 #  This program is distributed in the hope that it will be useful,
6800 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
6801 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6802 #  GNU General Public License for more details.
6803 #
6804 #  You should have received a copy of the GNU General Public License
6805 #  along with this program; if not, write to the Free Software
6806 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6807 #  */
6808 #
6809 # #include <stdio.h>            /* for printf() */
6810 # #include <unistd.h>           /* for open(), lseek(), read() */
6811 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6812 # #include <string.h>           /* for strdup() */
6813 #
6814 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6815 # #ifndef O_BINARY
6816 # #define O_BINARY 0
6817 # #endif
6818 #
6819 # static unsigned int
6820 # pe_get16 (fd, offset)
6821 #      int fd;
6822 #      int offset;
6823 # {
6824 #   unsigned char b[2];
6825 #   lseek (fd, offset, SEEK_SET);
6826 #   read (fd, b, 2);
6827 #   return b[0] + (b[1]<<8);
6828 # }
6829 #
6830 # static unsigned int
6831 # pe_get32 (fd, offset)
6832 #     int fd;
6833 #     int offset;
6834 # {
6835 #   unsigned char b[4];
6836 #   lseek (fd, offset, SEEK_SET);
6837 #   read (fd, b, 4);
6838 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6839 # }
6840 #
6841 # static unsigned int
6842 # pe_as32 (ptr)
6843 #      void *ptr;
6844 # {
6845 #   unsigned char *b = ptr;
6846 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6847 # }
6848 #
6849 # int
6850 # main (argc, argv)
6851 #     int argc;
6852 #     char *argv[];
6853 # {
6854 #     int dll;
6855 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6856 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
6857 #     unsigned long name_rvas, nexp;
6858 #     unsigned char *expdata, *erva;
6859 #     char *filename, *dll_name;
6860 #
6861 #     filename = argv[1];
6862 #
6863 #     dll = open(filename, O_RDONLY|O_BINARY);
6864 #     if (dll < 1)
6865 #       return 1;
6866 #
6867 #     dll_name = filename;
6868 #
6869 #     for (i=0; filename[i]; i++)
6870 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6871 #           dll_name = filename + i +1;
6872 #
6873 #     pe_header_offset = pe_get32 (dll, 0x3c);
6874 #     opthdr_ofs = pe_header_offset + 4 + 20;
6875 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6876 #
6877 #     if (num_entries < 1) /* no exports */
6878 #       return 1;
6879 #
6880 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6881 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
6882 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6883 #     secptr = (pe_header_offset + 4 + 20 +
6884 #             pe_get16 (dll, pe_header_offset + 4 + 16));
6885 #
6886 #     expptr = 0;
6887 #     for (i = 0; i < nsections; i++)
6888 #     {
6889 #       char sname[8];
6890 #       unsigned long secptr1 = secptr + 40 * i;
6891 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6892 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6893 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6894 #       lseek(dll, secptr1, SEEK_SET);
6895 #       read(dll, sname, 8);
6896 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6897 #       {
6898 #           expptr = fptr + (export_rva - vaddr);
6899 #           if (export_rva + export_size > vaddr + vsize)
6900 #               export_size = vsize - (export_rva - vaddr);
6901 #           break;
6902 #       }
6903 #     }
6904 #
6905 #     expdata = (unsigned char*)malloc(export_size);
6906 #     lseek (dll, expptr, SEEK_SET);
6907 #     read (dll, expdata, export_size);
6908 #     erva = expdata - export_rva;
6909 #
6910 #     nexp = pe_as32 (expdata+24);
6911 #     name_rvas = pe_as32 (expdata+32);
6912 #
6913 #     printf ("EXPORTS\n");
6914 #     for (i = 0; i<nexp; i++)
6915 #     {
6916 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6917 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6918 #     }
6919 #
6920 #     return 0;
6921 # }
6922 # /* impgen.c ends here */
6923
6924 EOF
6925     ;;
6926   esac
6927
6928   # We use sed instead of cat because bash on DJGPP gets confused if
6929   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6930   # text mode, it properly converts lines to CR/LF.  This bash problem
6931   # is reportedly fixed, but why not run on old versions too?
6932   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6933
6934   mv -f "${ofile}T" "$ofile" || \
6935     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6936   chmod +x "$ofile"
6937 fi
6938
6939 # This can be used to rebuild libtool when needed
6940 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6941
6942 # Always use our own libtool.
6943 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6944
6945 # Prevent multiple expansion
6946
6947 ac_header_dirent=no
6948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6949   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6950 echo "$as_me:6950: checking for $ac_hdr that defines DIR" >&5
6951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   cat >conftest.$ac_ext <<_ACEOF
6956 #line 6956 "configure"
6957 #include "confdefs.h"
6958 #include <sys/types.h>
6959 #include <$ac_hdr>
6960
6961 int
6962 main ()
6963 {
6964 if ((DIR *) 0)
6965 return 0;
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:6971: \"$ac_compile\"") >&5
6972   (eval $ac_compile) 2>&5
6973   ac_status=$?
6974   echo "$as_me:6974: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -s conftest.$ac_objext'
6977   { (eval echo "$as_me:6977: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:6980: \$? = $ac_status" >&5
6981   (exit $ac_status); }; }; then
6982   eval "$as_ac_Header=yes"
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 eval "$as_ac_Header=no"
6987 fi
6988 rm -f conftest.$ac_objext conftest.$ac_ext
6989 fi
6990 echo "$as_me:6990: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6993   cat >>confdefs.h <<EOF
6994 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6995 EOF
6996
6997 ac_header_dirent=$ac_hdr; break
6998 fi
6999
7000 done
7001 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7002 if test $ac_header_dirent = dirent.h; then
7003   echo "$as_me:7003: checking for opendir in -ldir" >&5
7004 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
7005 if test "${ac_cv_lib_dir_opendir+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   ac_check_lib_save_LIBS=$LIBS
7009 LIBS="-ldir  $LIBS"
7010 cat >conftest.$ac_ext <<_ACEOF
7011 #line 7011 "configure"
7012 #include "confdefs.h"
7013
7014 /* Override any gcc2 internal prototype to avoid an error.  */
7015 #ifdef __cplusplus
7016 extern "C"
7017 #endif
7018 /* We use char because int might match the return type of a gcc2
7019    builtin and then its argument prototype would still apply.  */
7020 char opendir ();
7021 int
7022 main ()
7023 {
7024 opendir ();
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:7030: \"$ac_link\"") >&5
7031   (eval $ac_link) 2>&5
7032   ac_status=$?
7033   echo "$as_me:7033: \$? = $ac_status" >&5
7034   (exit $ac_status); } &&
7035          { ac_try='test -s conftest$ac_exeext'
7036   { (eval echo "$as_me:7036: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:7039: \$? = $ac_status" >&5
7040   (exit $ac_status); }; }; then
7041   ac_cv_lib_dir_opendir=yes
7042 else
7043   echo "$as_me: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 ac_cv_lib_dir_opendir=no
7046 fi
7047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7049 fi
7050 echo "$as_me:7050: result: $ac_cv_lib_dir_opendir" >&5
7051 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
7052 if test $ac_cv_lib_dir_opendir = yes; then
7053   LIBS="$LIBS -ldir"
7054 fi
7055
7056 else
7057   echo "$as_me:7057: checking for opendir in -lx" >&5
7058 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
7059 if test "${ac_cv_lib_x_opendir+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   ac_check_lib_save_LIBS=$LIBS
7063 LIBS="-lx  $LIBS"
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line 7065 "configure"
7066 #include "confdefs.h"
7067
7068 /* Override any gcc2 internal prototype to avoid an error.  */
7069 #ifdef __cplusplus
7070 extern "C"
7071 #endif
7072 /* We use char because int might match the return type of a gcc2
7073    builtin and then its argument prototype would still apply.  */
7074 char opendir ();
7075 int
7076 main ()
7077 {
7078 opendir ();
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest.$ac_objext conftest$ac_exeext
7084 if { (eval echo "$as_me:7084: \"$ac_link\"") >&5
7085   (eval $ac_link) 2>&5
7086   ac_status=$?
7087   echo "$as_me:7087: \$? = $ac_status" >&5
7088   (exit $ac_status); } &&
7089          { ac_try='test -s conftest$ac_exeext'
7090   { (eval echo "$as_me:7090: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:7093: \$? = $ac_status" >&5
7094   (exit $ac_status); }; }; then
7095   ac_cv_lib_x_opendir=yes
7096 else
7097   echo "$as_me: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 ac_cv_lib_x_opendir=no
7100 fi
7101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7102 LIBS=$ac_check_lib_save_LIBS
7103 fi
7104 echo "$as_me:7104: result: $ac_cv_lib_x_opendir" >&5
7105 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
7106 if test $ac_cv_lib_x_opendir = yes; then
7107   LIBS="$LIBS -lx"
7108 fi
7109
7110 fi
7111
7112 echo "$as_me:7112: checking for ANSI C header files" >&5
7113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7114 if test "${ac_cv_header_stdc+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 #line 7118 "configure"
7119 #include "confdefs.h"
7120 #include <stdlib.h>
7121 #include <stdarg.h>
7122 #include <string.h>
7123 #include <float.h>
7124
7125 _ACEOF
7126 if { (eval echo "$as_me:7126: \"$ac_cpp conftest.$ac_ext\"") >&5
7127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128   ac_status=$?
7129   egrep -v '^ *\+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:7132: \$? = $ac_status" >&5
7133   (exit $ac_status); } >/dev/null; then
7134   if test -s conftest.err; then
7135     ac_cpp_err=$ac_c_preproc_warn_flag
7136   else
7137     ac_cpp_err=
7138   fi
7139 else
7140   ac_cpp_err=yes
7141 fi
7142 if test -z "$ac_cpp_err"; then
7143   ac_cv_header_stdc=yes
7144 else
7145   echo "$as_me: failed program was:" >&5
7146   cat conftest.$ac_ext >&5
7147   ac_cv_header_stdc=no
7148 fi
7149 rm -f conftest.err conftest.$ac_ext
7150
7151 if test $ac_cv_header_stdc = yes; then
7152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7153   cat >conftest.$ac_ext <<_ACEOF
7154 #line 7154 "configure"
7155 #include "confdefs.h"
7156 #include <string.h>
7157
7158 _ACEOF
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160   egrep "memchr" >/dev/null 2>&1; then
7161   :
7162 else
7163   ac_cv_header_stdc=no
7164 fi
7165 rm -f conftest*
7166
7167 fi
7168
7169 if test $ac_cv_header_stdc = yes; then
7170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171   cat >conftest.$ac_ext <<_ACEOF
7172 #line 7172 "configure"
7173 #include "confdefs.h"
7174 #include <stdlib.h>
7175
7176 _ACEOF
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178   egrep "free" >/dev/null 2>&1; then
7179   :
7180 else
7181   ac_cv_header_stdc=no
7182 fi
7183 rm -f conftest*
7184
7185 fi
7186
7187 if test $ac_cv_header_stdc = yes; then
7188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7189   if test "$cross_compiling" = yes; then
7190   :
7191 else
7192   cat >conftest.$ac_ext <<_ACEOF
7193 #line 7193 "configure"
7194 #include "confdefs.h"
7195 #include <ctype.h>
7196 #if ((' ' & 0x0FF) == 0x020)
7197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7199 #else
7200 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7201                      || ('j' <= (c) && (c) <= 'r') \
7202                      || ('s' <= (c) && (c) <= 'z'))
7203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7204 #endif
7205
7206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7207 int
7208 main ()
7209 {
7210   int i;
7211   for (i = 0; i < 256; i++)
7212     if (XOR (islower (i), ISLOWER (i))
7213         || toupper (i) != TOUPPER (i))
7214       exit(2);
7215   exit (0);
7216 }
7217 _ACEOF
7218 rm -f conftest$ac_exeext
7219 if { (eval echo "$as_me:7219: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>&5
7221   ac_status=$?
7222   echo "$as_me:7222: \$? = $ac_status" >&5
7223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224   { (eval echo "$as_me:7224: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:7227: \$? = $ac_status" >&5
7228   (exit $ac_status); }; }; then
7229   :
7230 else
7231   echo "$as_me: program exited with status $ac_status" >&5
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_header_stdc=no
7235 fi
7236 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 fi
7239 fi
7240 echo "$as_me:7240: result: $ac_cv_header_stdc" >&5
7241 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7242 if test $ac_cv_header_stdc = yes; then
7243
7244 cat >>confdefs.h <<\EOF
7245 #define STDC_HEADERS 1
7246 EOF
7247
7248 fi
7249
7250 echo "$as_me:7250: checking for sys/wait.h that is POSIX.1 compatible" >&5
7251 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   cat >conftest.$ac_ext <<_ACEOF
7256 #line 7256 "configure"
7257 #include "confdefs.h"
7258 #include <sys/types.h>
7259 #include <sys/wait.h>
7260 #ifndef WEXITSTATUS
7261 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7262 #endif
7263 #ifndef WIFEXITED
7264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7265 #endif
7266
7267 int
7268 main ()
7269 {
7270   int s;
7271   wait (&s);
7272   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (eval echo "$as_me:7278: \"$ac_compile\"") >&5
7279   (eval $ac_compile) 2>&5
7280   ac_status=$?
7281   echo "$as_me:7281: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -s conftest.$ac_objext'
7284   { (eval echo "$as_me:7284: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:7287: \$? = $ac_status" >&5
7288   (exit $ac_status); }; }; then
7289   ac_cv_header_sys_wait_h=yes
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 ac_cv_header_sys_wait_h=no
7294 fi
7295 rm -f conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 echo "$as_me:7297: result: $ac_cv_header_sys_wait_h" >&5
7298 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7299 if test $ac_cv_header_sys_wait_h = yes; then
7300
7301 cat >>confdefs.h <<\EOF
7302 #define HAVE_SYS_WAIT_H 1
7303 EOF
7304
7305 fi
7306
7307 for ac_header in fcntl.h limits.h unistd.h sys/time.h utmp.h utmpx.h \
7308         termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h usersec.h \
7309         utime.h ulimit.h sys/resource.h gshadow.h shadow.h lastlog.h \
7310         rpc/key_prot.h
7311 do
7312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7313 echo "$as_me:7313: checking for $ac_header" >&5
7314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   cat >conftest.$ac_ext <<_ACEOF
7319 #line 7319 "configure"
7320 #include "confdefs.h"
7321 #include <$ac_header>
7322 _ACEOF
7323 if { (eval echo "$as_me:7323: \"$ac_cpp conftest.$ac_ext\"") >&5
7324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7325   ac_status=$?
7326   egrep -v '^ *\+' conftest.er1 >conftest.err
7327   rm -f conftest.er1
7328   cat conftest.err >&5
7329   echo "$as_me:7329: \$? = $ac_status" >&5
7330   (exit $ac_status); } >/dev/null; then
7331   if test -s conftest.err; then
7332     ac_cpp_err=$ac_c_preproc_warn_flag
7333   else
7334     ac_cpp_err=
7335   fi
7336 else
7337   ac_cpp_err=yes
7338 fi
7339 if test -z "$ac_cpp_err"; then
7340   eval "$as_ac_Header=yes"
7341 else
7342   echo "$as_me: failed program was:" >&5
7343   cat conftest.$ac_ext >&5
7344   eval "$as_ac_Header=no"
7345 fi
7346 rm -f conftest.err conftest.$ac_ext
7347 fi
7348 echo "$as_me:7348: result: `eval echo '${'$as_ac_Header'}'`" >&5
7349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7351   cat >>confdefs.h <<EOF
7352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353 EOF
7354
7355 fi
7356 done
7357
7358 for ac_func in a64l fchmod fchown fsync getgroups gethostname getspnam \
7359         gettimeofday getusershell getutent initgroups lchown lckpwdf lstat \
7360         memcpy memset mkstemp setgroups sigaction strchr updwtmp updwtmpx
7361 do
7362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7363 echo "$as_me:7363: checking for $ac_func" >&5
7364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7365 if eval "test \"\${$as_ac_var+set}\" = set"; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   cat >conftest.$ac_ext <<_ACEOF
7369 #line 7369 "configure"
7370 #include "confdefs.h"
7371 /* System header to define __stub macros and hopefully few prototypes,
7372     which can conflict with char $ac_func (); below.  */
7373 #include <assert.h>
7374 /* Override any gcc2 internal prototype to avoid an error.  */
7375 #ifdef __cplusplus
7376 extern "C"
7377 #endif
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 $ac_func ();
7381 char (*f) ();
7382
7383 int
7384 main ()
7385 {
7386 /* The GNU C library defines this for functions which it implements
7387     to always fail with ENOSYS.  Some functions are actually named
7388     something starting with __ and the normal name is an alias.  */
7389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7390 choke me
7391 #else
7392 f = $ac_func;
7393 #endif
7394
7395   ;
7396   return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (eval echo "$as_me:7400: \"$ac_link\"") >&5
7401   (eval $ac_link) 2>&5
7402   ac_status=$?
7403   echo "$as_me:7403: \$? = $ac_status" >&5
7404   (exit $ac_status); } &&
7405          { ac_try='test -s conftest$ac_exeext'
7406   { (eval echo "$as_me:7406: \"$ac_try\"") >&5
7407   (eval $ac_try) 2>&5
7408   ac_status=$?
7409   echo "$as_me:7409: \$? = $ac_status" >&5
7410   (exit $ac_status); }; }; then
7411   eval "$as_ac_var=yes"
7412 else
7413   echo "$as_me: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7415 eval "$as_ac_var=no"
7416 fi
7417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7418 fi
7419 echo "$as_me:7419: result: `eval echo '${'$as_ac_var'}'`" >&5
7420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7421 if test `eval echo '${'$as_ac_var'}'` = yes; then
7422   cat >>confdefs.h <<EOF
7423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7424 EOF
7425
7426 fi
7427 done
7428
7429 echo "$as_me:7429: checking for $CC option to accept ANSI C" >&5
7430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   ac_cv_prog_cc_stdc=no
7435 ac_save_CC=$CC
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line 7437 "configure"
7438 #include "confdefs.h"
7439 #include <stdarg.h>
7440 #include <stdio.h>
7441 #include <sys/types.h>
7442 #include <sys/stat.h>
7443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7444 struct buf { int x; };
7445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7446 static char *e (p, i)
7447      char **p;
7448      int i;
7449 {
7450   return p[i];
7451 }
7452 static char *f (char * (*g) (char **, int), char **p, ...)
7453 {
7454   char *s;
7455   va_list v;
7456   va_start (v,p);
7457   s = g (p, va_arg (v,int));
7458   va_end (v);
7459   return s;
7460 }
7461 int test (int i, double x);
7462 struct s1 {int (*f) (int a);};
7463 struct s2 {int (*f) (double a);};
7464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7465 int argc;
7466 char **argv;
7467 int
7468 main ()
7469 {
7470 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 # Don't try gcc -ansi; that turns off useful extensions and
7476 # breaks some systems' header files.
7477 # AIX                   -qlanglvl=ansi
7478 # Ultrix and OSF/1      -std1
7479 # HP-UX 10.20 and later -Ae
7480 # HP-UX older versions  -Aa -D_HPUX_SOURCE
7481 # SVR4                  -Xc -D__EXTENSIONS__
7482 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7483 do
7484   CC="$ac_save_CC $ac_arg"
7485   rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:7486: \"$ac_compile\"") >&5
7487   (eval $ac_compile) 2>&5
7488   ac_status=$?
7489   echo "$as_me:7489: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -s conftest.$ac_objext'
7492   { (eval echo "$as_me:7492: \"$ac_try\"") >&5
7493   (eval $ac_try) 2>&5
7494   ac_status=$?
7495   echo "$as_me:7495: \$? = $ac_status" >&5
7496   (exit $ac_status); }; }; then
7497   ac_cv_prog_cc_stdc=$ac_arg
7498 break
7499 else
7500   echo "$as_me: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 fi
7503 rm -f conftest.$ac_objext
7504 done
7505 rm -f conftest.$ac_ext conftest.$ac_objext
7506 CC=$ac_save_CC
7507
7508 fi
7509
7510 case "x$ac_cv_prog_cc_stdc" in
7511   x|xno)
7512     echo "$as_me:7512: result: none needed" >&5
7513 echo "${ECHO_T}none needed" >&6 ;;
7514   *)
7515     echo "$as_me:7515: result: $ac_cv_prog_cc_stdc" >&5
7516 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7517     CC="$CC $ac_cv_prog_cc_stdc" ;;
7518 esac
7519
7520 echo "$as_me:7520: checking for an ANSI C-conforming const" >&5
7521 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7522 if test "${ac_cv_c_const+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   cat >conftest.$ac_ext <<_ACEOF
7526 #line 7526 "configure"
7527 #include "confdefs.h"
7528
7529 int
7530 main ()
7531 {
7532 /* FIXME: Include the comments suggested by Paul. */
7533 #ifndef __cplusplus
7534   /* Ultrix mips cc rejects this.  */
7535   typedef int charset[2];
7536   const charset x;
7537   /* SunOS 4.1.1 cc rejects this.  */
7538   char const *const *ccp;
7539   char **p;
7540   /* NEC SVR4.0.2 mips cc rejects this.  */
7541   struct point {int x, y;};
7542   static struct point const zero = {0,0};
7543   /* AIX XL C 1.02.0.0 rejects this.
7544      It does not let you subtract one const X* pointer from another in
7545      an arm of an if-expression whose if-part is not a constant
7546      expression */
7547   const char *g = "string";
7548   ccp = &g + (g ? g-g : 0);
7549   /* HPUX 7.0 cc rejects these. */
7550   ++ccp;
7551   p = (char**) ccp;
7552   ccp = (char const *const *) p;
7553   { /* SCO 3.2v4 cc rejects this.  */
7554     char *t;
7555     char const *s = 0 ? (char *) 0 : (char const *) 0;
7556
7557     *t++ = 0;
7558   }
7559   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7560     int x[] = {25, 17};
7561     const int *foo = &x[0];
7562     ++foo;
7563   }
7564   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7565     typedef const int *iptr;
7566     iptr p = 0;
7567     ++p;
7568   }
7569   { /* AIX XL C 1.02.0.0 rejects this saying
7570        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7571     struct s { int j; const int *ap[3]; };
7572     struct s *b; b->j = 5;
7573   }
7574   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7575     const int foo = 10;
7576   }
7577 #endif
7578
7579   ;
7580   return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:7584: \"$ac_compile\"") >&5
7585   (eval $ac_compile) 2>&5
7586   ac_status=$?
7587   echo "$as_me:7587: \$? = $ac_status" >&5
7588   (exit $ac_status); } &&
7589          { ac_try='test -s conftest.$ac_objext'
7590   { (eval echo "$as_me:7590: \"$ac_try\"") >&5
7591   (eval $ac_try) 2>&5
7592   ac_status=$?
7593   echo "$as_me:7593: \$? = $ac_status" >&5
7594   (exit $ac_status); }; }; then
7595   ac_cv_c_const=yes
7596 else
7597   echo "$as_me: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 ac_cv_c_const=no
7600 fi
7601 rm -f conftest.$ac_objext conftest.$ac_ext
7602 fi
7603 echo "$as_me:7603: result: $ac_cv_c_const" >&5
7604 echo "${ECHO_T}$ac_cv_c_const" >&6
7605 if test $ac_cv_c_const = no; then
7606
7607 cat >>confdefs.h <<\EOF
7608 #define const
7609 EOF
7610
7611 fi
7612
7613 echo "$as_me:7613: checking for uid_t in sys/types.h" >&5
7614 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7615 if test "${ac_cv_type_uid_t+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   cat >conftest.$ac_ext <<_ACEOF
7619 #line 7619 "configure"
7620 #include "confdefs.h"
7621 #include <sys/types.h>
7622
7623 _ACEOF
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625   egrep "uid_t" >/dev/null 2>&1; then
7626   ac_cv_type_uid_t=yes
7627 else
7628   ac_cv_type_uid_t=no
7629 fi
7630 rm -f conftest*
7631
7632 fi
7633 echo "$as_me:7633: result: $ac_cv_type_uid_t" >&5
7634 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7635 if test $ac_cv_type_uid_t = no; then
7636
7637 cat >>confdefs.h <<\EOF
7638 #define uid_t int
7639 EOF
7640
7641 cat >>confdefs.h <<\EOF
7642 #define gid_t int
7643 EOF
7644
7645 fi
7646
7647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7648
7649 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7650                   inttypes.h stdint.h unistd.h
7651 do
7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 echo "$as_me:7653: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   cat >conftest.$ac_ext <<_ACEOF
7659 #line 7659 "configure"
7660 #include "confdefs.h"
7661 $ac_includes_default
7662 #include <$ac_header>
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (eval echo "$as_me:7665: \"$ac_compile\"") >&5
7666   (eval $ac_compile) 2>&5
7667   ac_status=$?
7668   echo "$as_me:7668: \$? = $ac_status" >&5
7669   (exit $ac_status); } &&
7670          { ac_try='test -s conftest.$ac_objext'
7671   { (eval echo "$as_me:7671: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:7674: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   eval "$as_ac_Header=yes"
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 eval "$as_ac_Header=no"
7681 fi
7682 rm -f conftest.$ac_objext conftest.$ac_ext
7683 fi
7684 echo "$as_me:7684: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7687   cat >>confdefs.h <<EOF
7688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7689 EOF
7690
7691 fi
7692 done
7693
7694 echo "$as_me:7694: checking for off_t" >&5
7695 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7696 if test "${ac_cv_type_off_t+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   cat >conftest.$ac_ext <<_ACEOF
7700 #line 7700 "configure"
7701 #include "confdefs.h"
7702 $ac_includes_default
7703 int
7704 main ()
7705 {
7706 if ((off_t *) 0)
7707   return 0;
7708 if (sizeof (off_t))
7709   return 0;
7710   ;
7711   return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:7715: \"$ac_compile\"") >&5
7716   (eval $ac_compile) 2>&5
7717   ac_status=$?
7718   echo "$as_me:7718: \$? = $ac_status" >&5
7719   (exit $ac_status); } &&
7720          { ac_try='test -s conftest.$ac_objext'
7721   { (eval echo "$as_me:7721: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:7724: \$? = $ac_status" >&5
7725   (exit $ac_status); }; }; then
7726   ac_cv_type_off_t=yes
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_cv_type_off_t=no
7731 fi
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 echo "$as_me:7734: result: $ac_cv_type_off_t" >&5
7735 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7736 if test $ac_cv_type_off_t = yes; then
7737   :
7738 else
7739
7740 cat >>confdefs.h <<EOF
7741 #define off_t long
7742 EOF
7743
7744 fi
7745
7746 echo "$as_me:7746: checking for pid_t" >&5
7747 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7748 if test "${ac_cv_type_pid_t+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 #line 7752 "configure"
7753 #include "confdefs.h"
7754 $ac_includes_default
7755 int
7756 main ()
7757 {
7758 if ((pid_t *) 0)
7759   return 0;
7760 if (sizeof (pid_t))
7761   return 0;
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (eval echo "$as_me:7767: \"$ac_compile\"") >&5
7768   (eval $ac_compile) 2>&5
7769   ac_status=$?
7770   echo "$as_me:7770: \$? = $ac_status" >&5
7771   (exit $ac_status); } &&
7772          { ac_try='test -s conftest.$ac_objext'
7773   { (eval echo "$as_me:7773: \"$ac_try\"") >&5
7774   (eval $ac_try) 2>&5
7775   ac_status=$?
7776   echo "$as_me:7776: \$? = $ac_status" >&5
7777   (exit $ac_status); }; }; then
7778   ac_cv_type_pid_t=yes
7779 else
7780   echo "$as_me: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7782 ac_cv_type_pid_t=no
7783 fi
7784 rm -f conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 echo "$as_me:7786: result: $ac_cv_type_pid_t" >&5
7787 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7788 if test $ac_cv_type_pid_t = yes; then
7789   :
7790 else
7791
7792 cat >>confdefs.h <<EOF
7793 #define pid_t int
7794 EOF
7795
7796 fi
7797
7798 echo "$as_me:7798: checking for mode_t" >&5
7799 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7800 if test "${ac_cv_type_mode_t+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   cat >conftest.$ac_ext <<_ACEOF
7804 #line 7804 "configure"
7805 #include "confdefs.h"
7806 $ac_includes_default
7807 int
7808 main ()
7809 {
7810 if ((mode_t *) 0)
7811   return 0;
7812 if (sizeof (mode_t))
7813   return 0;
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:7819: \"$ac_compile\"") >&5
7820   (eval $ac_compile) 2>&5
7821   ac_status=$?
7822   echo "$as_me:7822: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -s conftest.$ac_objext'
7825   { (eval echo "$as_me:7825: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:7828: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_cv_type_mode_t=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 ac_cv_type_mode_t=no
7835 fi
7836 rm -f conftest.$ac_objext conftest.$ac_ext
7837 fi
7838 echo "$as_me:7838: result: $ac_cv_type_mode_t" >&5
7839 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7840 if test $ac_cv_type_mode_t = yes; then
7841   :
7842 else
7843
7844 cat >>confdefs.h <<EOF
7845 #define mode_t int
7846 EOF
7847
7848 fi
7849
7850 echo "$as_me:7850: checking for struct stat.st_rdev" >&5
7851 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7852 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   cat >conftest.$ac_ext <<_ACEOF
7856 #line 7856 "configure"
7857 #include "confdefs.h"
7858 $ac_includes_default
7859 int
7860 main ()
7861 {
7862 static struct stat ac_aggr;
7863 if (ac_aggr.st_rdev)
7864 return 0;
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest.$ac_objext
7870 if { (eval echo "$as_me:7870: \"$ac_compile\"") >&5
7871   (eval $ac_compile) 2>&5
7872   ac_status=$?
7873   echo "$as_me:7873: \$? = $ac_status" >&5
7874   (exit $ac_status); } &&
7875          { ac_try='test -s conftest.$ac_objext'
7876   { (eval echo "$as_me:7876: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:7879: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   ac_cv_member_struct_stat_st_rdev=yes
7882 else
7883   echo "$as_me: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 ac_cv_member_struct_stat_st_rdev=no
7886 fi
7887 rm -f conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 echo "$as_me:7889: result: $ac_cv_member_struct_stat_st_rdev" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7891 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7892
7893 cat >>confdefs.h <<EOF
7894 #define HAVE_STRUCT_STAT_ST_RDEV 1
7895 EOF
7896
7897 cat >>confdefs.h <<\EOF
7898 #define HAVE_ST_RDEV 1
7899 EOF
7900
7901 fi
7902
7903 echo "$as_me:7903: checking whether stat file-mode macros are broken" >&5
7904 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7905 if test "${ac_cv_header_stat_broken+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   cat >conftest.$ac_ext <<_ACEOF
7909 #line 7909 "configure"
7910 #include "confdefs.h"
7911 #include <sys/types.h>
7912 #include <sys/stat.h>
7913
7914 #if defined(S_ISBLK) && defined(S_IFDIR)
7915 # if S_ISBLK (S_IFDIR)
7916 You lose.
7917 # endif
7918 #endif
7919
7920 #if defined(S_ISBLK) && defined(S_IFCHR)
7921 # if S_ISBLK (S_IFCHR)
7922 You lose.
7923 # endif
7924 #endif
7925
7926 #if defined(S_ISLNK) && defined(S_IFREG)
7927 # if S_ISLNK (S_IFREG)
7928 You lose.
7929 # endif
7930 #endif
7931
7932 #if defined(S_ISSOCK) && defined(S_IFREG)
7933 # if S_ISSOCK (S_IFREG)
7934 You lose.
7935 # endif
7936 #endif
7937
7938 _ACEOF
7939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940   egrep "You lose" >/dev/null 2>&1; then
7941   ac_cv_header_stat_broken=yes
7942 else
7943   ac_cv_header_stat_broken=no
7944 fi
7945 rm -f conftest*
7946
7947 fi
7948 echo "$as_me:7948: result: $ac_cv_header_stat_broken" >&5
7949 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7950 if test $ac_cv_header_stat_broken = yes; then
7951
7952 cat >>confdefs.h <<\EOF
7953 #define STAT_MACROS_BROKEN 1
7954 EOF
7955
7956 fi
7957
7958 echo "$as_me:7958: checking whether time.h and sys/time.h may both be included" >&5
7959 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7960 if test "${ac_cv_header_time+set}" = set; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963   cat >conftest.$ac_ext <<_ACEOF
7964 #line 7964 "configure"
7965 #include "confdefs.h"
7966 #include <sys/types.h>
7967 #include <sys/time.h>
7968 #include <time.h>
7969
7970 int
7971 main ()
7972 {
7973 if ((struct tm *) 0)
7974 return 0;
7975   ;
7976   return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:7980: \"$ac_compile\"") >&5
7981   (eval $ac_compile) 2>&5
7982   ac_status=$?
7983   echo "$as_me:7983: \$? = $ac_status" >&5
7984   (exit $ac_status); } &&
7985          { ac_try='test -s conftest.$ac_objext'
7986   { (eval echo "$as_me:7986: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:7989: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   ac_cv_header_time=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 ac_cv_header_time=no
7996 fi
7997 rm -f conftest.$ac_objext conftest.$ac_ext
7998 fi
7999 echo "$as_me:7999: result: $ac_cv_header_time" >&5
8000 echo "${ECHO_T}$ac_cv_header_time" >&6
8001 if test $ac_cv_header_time = yes; then
8002
8003 cat >>confdefs.h <<\EOF
8004 #define TIME_WITH_SYS_TIME 1
8005 EOF
8006
8007 fi
8008
8009 echo "$as_me:8009: checking whether struct tm is in sys/time.h or time.h" >&5
8010 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8011 if test "${ac_cv_struct_tm+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   cat >conftest.$ac_ext <<_ACEOF
8015 #line 8015 "configure"
8016 #include "confdefs.h"
8017 #include <sys/types.h>
8018 #include <time.h>
8019
8020 int
8021 main ()
8022 {
8023 struct tm *tp; tp->tm_sec;
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:8029: \"$ac_compile\"") >&5
8030   (eval $ac_compile) 2>&5
8031   ac_status=$?
8032   echo "$as_me:8032: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -s conftest.$ac_objext'
8035   { (eval echo "$as_me:8035: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:8038: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   ac_cv_struct_tm=time.h
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 ac_cv_struct_tm=sys/time.h
8045 fi
8046 rm -f conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 echo "$as_me:8048: result: $ac_cv_struct_tm" >&5
8049 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8050 if test $ac_cv_struct_tm = sys/time.h; then
8051
8052 cat >>confdefs.h <<\EOF
8053 #define TM_IN_SYS_TIME 1
8054 EOF
8055
8056 fi
8057
8058 echo "$as_me:8058: checking for pw_age in struct passwd" >&5
8059 echo $ECHO_N "checking for pw_age in struct passwd... $ECHO_C" >&6
8060 if test "${ac_cv_struct_passwd_pw_age+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   cat >conftest.$ac_ext <<_ACEOF
8064 #line 8064 "configure"
8065 #include "confdefs.h"
8066 #include <pwd.h>
8067 int
8068 main ()
8069 {
8070  struct passwd pw;  pw.pw_age = "";
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:8076: \"$ac_compile\"") >&5
8077   (eval $ac_compile) 2>&5
8078   ac_status=$?
8079   echo "$as_me:8079: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -s conftest.$ac_objext'
8082   { (eval echo "$as_me:8082: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:8085: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   ac_cv_struct_passwd_pw_age=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 ac_cv_struct_passwd_pw_age=no
8092 fi
8093 rm -f conftest.$ac_objext conftest.$ac_ext
8094 fi
8095 echo "$as_me:8095: result: $ac_cv_struct_passwd_pw_age" >&5
8096 echo "${ECHO_T}$ac_cv_struct_passwd_pw_age" >&6
8097
8098 if test "$ac_cv_struct_passwd_pw_age" = "yes"; then
8099         cat >>confdefs.h <<\EOF
8100 #define ATT_AGE 1
8101 EOF
8102
8103 fi
8104
8105 echo "$as_me:8105: checking for pw_comment in struct passwd" >&5
8106 echo $ECHO_N "checking for pw_comment in struct passwd... $ECHO_C" >&6
8107 if test "${ac_cv_struct_passwd_pw_comment+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   cat >conftest.$ac_ext <<_ACEOF
8111 #line 8111 "configure"
8112 #include "confdefs.h"
8113 #include <pwd.h>
8114 int
8115 main ()
8116 {
8117  struct passwd pw;  pw.pw_comment = "";
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (eval echo "$as_me:8123: \"$ac_compile\"") >&5
8124   (eval $ac_compile) 2>&5
8125   ac_status=$?
8126   echo "$as_me:8126: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -s conftest.$ac_objext'
8129   { (eval echo "$as_me:8129: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:8132: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_struct_passwd_pw_comment=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 ac_cv_struct_passwd_pw_comment=no
8139 fi
8140 rm -f conftest.$ac_objext conftest.$ac_ext
8141 fi
8142 echo "$as_me:8142: result: $ac_cv_struct_passwd_pw_comment" >&5
8143 echo "${ECHO_T}$ac_cv_struct_passwd_pw_comment" >&6
8144
8145 if test "$ac_cv_struct_passwd_pw_comment" = "yes"; then
8146         cat >>confdefs.h <<\EOF
8147 #define ATT_COMMENT 1
8148 EOF
8149
8150 fi
8151
8152 echo "$as_me:8152: checking for pw_quota in struct passwd" >&5
8153 echo $ECHO_N "checking for pw_quota in struct passwd... $ECHO_C" >&6
8154 if test "${ac_cv_struct_passwd_pw_quota+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   cat >conftest.$ac_ext <<_ACEOF
8158 #line 8158 "configure"
8159 #include "confdefs.h"
8160 #include <pwd.h>
8161 int
8162 main ()
8163 {
8164  struct passwd pw;  pw.pw_quota = 0;
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:8170: \"$ac_compile\"") >&5
8171   (eval $ac_compile) 2>&5
8172   ac_status=$?
8173   echo "$as_me:8173: \$? = $ac_status" >&5
8174   (exit $ac_status); } &&
8175          { ac_try='test -s conftest.$ac_objext'
8176   { (eval echo "$as_me:8176: \"$ac_try\"") >&5
8177   (eval $ac_try) 2>&5
8178   ac_status=$?
8179   echo "$as_me:8179: \$? = $ac_status" >&5
8180   (exit $ac_status); }; }; then
8181   ac_cv_struct_passwd_pw_quota=yes
8182 else
8183   echo "$as_me: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 ac_cv_struct_passwd_pw_quota=no
8186 fi
8187 rm -f conftest.$ac_objext conftest.$ac_ext
8188 fi
8189 echo "$as_me:8189: result: $ac_cv_struct_passwd_pw_quota" >&5
8190 echo "${ECHO_T}$ac_cv_struct_passwd_pw_quota" >&6
8191
8192 if test "$ac_cv_struct_passwd_pw_quota" = "yes"; then
8193         cat >>confdefs.h <<\EOF
8194 #define BSD_QUOTA 1
8195 EOF
8196
8197 fi
8198
8199 if test "$ac_cv_header_utmp_h" = "yes"; then
8200         echo "$as_me:8200: checking for ut_host in struct utmp" >&5
8201 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
8202 if test "${ac_cv_struct_utmp_ut_host+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   cat >conftest.$ac_ext <<_ACEOF
8206 #line 8206 "configure"
8207 #include "confdefs.h"
8208 #include <utmp.h>
8209 int
8210 main ()
8211 {
8212  struct utmp ut;  char *cp = ut.ut_host;
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:8218: \"$ac_compile\"") >&5
8219   (eval $ac_compile) 2>&5
8220   ac_status=$?
8221   echo "$as_me:8221: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -s conftest.$ac_objext'
8224   { (eval echo "$as_me:8224: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:8227: \$? = $ac_status" >&5
8228   (exit $ac_status); }; }; then
8229   ac_cv_struct_utmp_ut_host=yes
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 ac_cv_struct_utmp_ut_host=no
8234 fi
8235 rm -f conftest.$ac_objext conftest.$ac_ext
8236 fi
8237 echo "$as_me:8237: result: $ac_cv_struct_utmp_ut_host" >&5
8238 echo "${ECHO_T}$ac_cv_struct_utmp_ut_host" >&6
8239
8240         if test "$ac_cv_struct_utmp_ut_host" = "yes"; then
8241                 cat >>confdefs.h <<\EOF
8242 #define UT_HOST 1
8243 EOF
8244
8245         fi
8246
8247         echo "$as_me:8247: checking for ut_user in struct utmp" >&5
8248 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
8249 if test "${ac_cv_struct_utmp_ut_user+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   cat >conftest.$ac_ext <<_ACEOF
8253 #line 8253 "configure"
8254 #include "confdefs.h"
8255 #include <utmp.h>
8256 int
8257 main ()
8258 {
8259  struct utmp ut;  char *cp = ut.ut_user;
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (eval echo "$as_me:8265: \"$ac_compile\"") >&5
8266   (eval $ac_compile) 2>&5
8267   ac_status=$?
8268   echo "$as_me:8268: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -s conftest.$ac_objext'
8271   { (eval echo "$as_me:8271: \"$ac_try\"") >&5
8272   (eval $ac_try) 2>&5
8273   ac_status=$?
8274   echo "$as_me:8274: \$? = $ac_status" >&5
8275   (exit $ac_status); }; }; then
8276   ac_cv_struct_utmp_ut_user=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 ac_cv_struct_utmp_ut_user=no
8281 fi
8282 rm -f conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 echo "$as_me:8284: result: $ac_cv_struct_utmp_ut_user" >&5
8285 echo "${ECHO_T}$ac_cv_struct_utmp_ut_user" >&6
8286
8287         if test "$ac_cv_struct_utmp_ut_user" = "no"; then
8288                 cat >>confdefs.h <<\EOF
8289 #define ut_user ut_name
8290 EOF
8291
8292         fi
8293 fi
8294
8295 if test "$ac_cv_header_lastlog_h" = "yes"; then
8296         echo "$as_me:8296: checking for ll_host in struct lastlog" >&5
8297 echo $ECHO_N "checking for ll_host in struct lastlog... $ECHO_C" >&6
8298 if test "${ac_cv_struct_lastlog_ll_host+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   cat >conftest.$ac_ext <<_ACEOF
8302 #line 8302 "configure"
8303 #include "confdefs.h"
8304 #include <lastlog.h>
8305 int
8306 main ()
8307 {
8308  struct lastlog ll;  char *cp = ll.ll_host;
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:8314: \"$ac_compile\"") >&5
8315   (eval $ac_compile) 2>&5
8316   ac_status=$?
8317   echo "$as_me:8317: \$? = $ac_status" >&5
8318   (exit $ac_status); } &&
8319          { ac_try='test -s conftest.$ac_objext'
8320   { (eval echo "$as_me:8320: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:8323: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   ac_cv_struct_lastlog_ll_host=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 ac_cv_struct_lastlog_ll_host=no
8330 fi
8331 rm -f conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 echo "$as_me:8333: result: $ac_cv_struct_lastlog_ll_host" >&5
8334 echo "${ECHO_T}$ac_cv_struct_lastlog_ll_host" >&6
8335
8336         if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
8337                 cat >>confdefs.h <<\EOF
8338 #define HAVE_LL_HOST 1
8339 EOF
8340
8341         fi
8342 fi
8343
8344 echo "$as_me:8344: checking type of array argument to getgroups" >&5
8345 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
8346 if test "${ac_cv_type_getgroups+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   if test "$cross_compiling" = yes; then
8350   ac_cv_type_getgroups=cross
8351 else
8352   cat >conftest.$ac_ext <<_ACEOF
8353 #line 8353 "configure"
8354 #include "confdefs.h"
8355 /* Thanks to Mike Rendell for this test.  */
8356 #include <sys/types.h>
8357 #define NGID 256
8358 #undef MAX
8359 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8360
8361 int
8362 main ()
8363 {
8364   gid_t gidset[NGID];
8365   int i, n;
8366   union { gid_t gval; long lval; }  val;
8367
8368   val.lval = -1;
8369   for (i = 0; i < NGID; i++)
8370     gidset[i] = val.gval;
8371   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8372                  gidset);
8373   /* Exit non-zero if getgroups seems to require an array of ints.  This
8374      happens when gid_t is short but getgroups modifies an array of ints.  */
8375   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8376 }
8377 _ACEOF
8378 rm -f conftest$ac_exeext
8379 if { (eval echo "$as_me:8379: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>&5
8381   ac_status=$?
8382   echo "$as_me:8382: \$? = $ac_status" >&5
8383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8384   { (eval echo "$as_me:8384: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:8387: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   ac_cv_type_getgroups=gid_t
8390 else
8391   echo "$as_me: program exited with status $ac_status" >&5
8392 echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 ac_cv_type_getgroups=int
8395 fi
8396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 if test $ac_cv_type_getgroups = cross; then
8399         cat >conftest.$ac_ext <<_ACEOF
8400 #line 8400 "configure"
8401 #include "confdefs.h"
8402 #include <unistd.h>
8403
8404 _ACEOF
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8407   ac_cv_type_getgroups=gid_t
8408 else
8409   ac_cv_type_getgroups=int
8410 fi
8411 rm -f conftest*
8412
8413 fi
8414 fi
8415 echo "$as_me:8415: result: $ac_cv_type_getgroups" >&5
8416 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
8417
8418 cat >>confdefs.h <<EOF
8419 #define GETGROUPS_T $ac_cv_type_getgroups
8420 EOF
8421
8422 if test $ac_cv_c_compiler_gnu = yes; then
8423     echo "$as_me:8423: checking whether $CC needs -traditional" >&5
8424 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8425 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428     ac_pattern="Autoconf.*'x'"
8429   cat >conftest.$ac_ext <<_ACEOF
8430 #line 8430 "configure"
8431 #include "confdefs.h"
8432 #include <sgtty.h>
8433 Autoconf TIOCGETP
8434 _ACEOF
8435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8436   egrep "$ac_pattern" >/dev/null 2>&1; then
8437   ac_cv_prog_gcc_traditional=yes
8438 else
8439   ac_cv_prog_gcc_traditional=no
8440 fi
8441 rm -f conftest*
8442
8443   if test $ac_cv_prog_gcc_traditional = no; then
8444     cat >conftest.$ac_ext <<_ACEOF
8445 #line 8445 "configure"
8446 #include "confdefs.h"
8447 #include <termio.h>
8448 Autoconf TCGETA
8449 _ACEOF
8450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8451   egrep "$ac_pattern" >/dev/null 2>&1; then
8452   ac_cv_prog_gcc_traditional=yes
8453 fi
8454 rm -f conftest*
8455
8456   fi
8457 fi
8458 echo "$as_me:8458: result: $ac_cv_prog_gcc_traditional" >&5
8459 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
8460   if test $ac_cv_prog_gcc_traditional = yes; then
8461     CC="$CC -traditional"
8462   fi
8463 fi
8464
8465 echo "$as_me:8465: checking return type of signal handlers" >&5
8466 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8467 if test "${ac_cv_type_signal+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   cat >conftest.$ac_ext <<_ACEOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8473 #include <sys/types.h>
8474 #include <signal.h>
8475 #ifdef signal
8476 # undef signal
8477 #endif
8478 #ifdef __cplusplus
8479 extern "C" void (*signal (int, void (*)(int)))(int);
8480 #else
8481 void (*signal ()) ();
8482 #endif
8483
8484 int
8485 main ()
8486 {
8487 int i;
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext
8493 if { (eval echo "$as_me:8493: \"$ac_compile\"") >&5
8494   (eval $ac_compile) 2>&5
8495   ac_status=$?
8496   echo "$as_me:8496: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:8499: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:8502: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_type_signal=void
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8508 ac_cv_type_signal=int
8509 fi
8510 rm -f conftest.$ac_objext conftest.$ac_ext
8511 fi
8512 echo "$as_me:8512: result: $ac_cv_type_signal" >&5
8513 echo "${ECHO_T}$ac_cv_type_signal" >&6
8514
8515 cat >>confdefs.h <<EOF
8516 #define RETSIGTYPE $ac_cv_type_signal
8517 EOF
8518
8519 echo "$as_me:8519: checking whether utime accepts a null argument" >&5
8520 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
8521 if test "${ac_cv_func_utime_null+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   rm -f conftest.data; >conftest.data
8525 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
8526 if test "$cross_compiling" = yes; then
8527   ac_cv_func_utime_null=no
8528 else
8529   cat >conftest.$ac_ext <<_ACEOF
8530 #line 8530 "configure"
8531 #include "confdefs.h"
8532 $ac_includes_default
8533 int
8534 main ()
8535 {
8536 struct stat s, t;
8537   exit (!(stat ("conftest.data", &s) == 0
8538           && utime ("conftest.data", (long *)0) == 0
8539           && stat ("conftest.data", &t) == 0
8540           && t.st_mtime >= s.st_mtime
8541           && t.st_mtime - s.st_mtime < 120));
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest$ac_exeext
8547 if { (eval echo "$as_me:8547: \"$ac_link\"") >&5
8548   (eval $ac_link) 2>&5
8549   ac_status=$?
8550   echo "$as_me:8550: \$? = $ac_status" >&5
8551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8552   { (eval echo "$as_me:8552: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:8555: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   ac_cv_func_utime_null=yes
8558 else
8559   echo "$as_me: program exited with status $ac_status" >&5
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 ac_cv_func_utime_null=no
8563 fi
8564 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 rm -f core core.* *.core
8567 fi
8568 echo "$as_me:8568: result: $ac_cv_func_utime_null" >&5
8569 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
8570 if test $ac_cv_func_utime_null = yes; then
8571
8572 cat >>confdefs.h <<\EOF
8573 #define HAVE_UTIME_NULL 1
8574 EOF
8575
8576 fi
8577 rm -f conftest.data
8578
8579 for ac_func in strftime
8580 do
8581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582 echo "$as_me:8582: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_var+set}\" = set"; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   cat >conftest.$ac_ext <<_ACEOF
8588 #line 8588 "configure"
8589 #include "confdefs.h"
8590 /* System header to define __stub macros and hopefully few prototypes,
8591     which can conflict with char $ac_func (); below.  */
8592 #include <assert.h>
8593 /* Override any gcc2 internal prototype to avoid an error.  */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 /* We use char because int might match the return type of a gcc2
8598    builtin and then its argument prototype would still apply.  */
8599 char $ac_func ();
8600 char (*f) ();
8601
8602 int
8603 main ()
8604 {
8605 /* The GNU C library defines this for functions which it implements
8606     to always fail with ENOSYS.  Some functions are actually named
8607     something starting with __ and the normal name is an alias.  */
8608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8609 choke me
8610 #else
8611 f = $ac_func;
8612 #endif
8613
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:8619: \"$ac_link\"") >&5
8620   (eval $ac_link) 2>&5
8621   ac_status=$?
8622   echo "$as_me:8622: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -s conftest$ac_exeext'
8625   { (eval echo "$as_me:8625: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:8628: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   eval "$as_ac_var=yes"
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 eval "$as_ac_var=no"
8635 fi
8636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8637 fi
8638 echo "$as_me:8638: result: `eval echo '${'$as_ac_var'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8640 if test `eval echo '${'$as_ac_var'}'` = yes; then
8641   cat >>confdefs.h <<EOF
8642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8643 EOF
8644
8645 else
8646   # strftime is in -lintl on SCO UNIX.
8647 echo "$as_me:8647: checking for strftime in -lintl" >&5
8648 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
8649 if test "${ac_cv_lib_intl_strftime+set}" = set; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652   ac_check_lib_save_LIBS=$LIBS
8653 LIBS="-lintl  $LIBS"
8654 cat >conftest.$ac_ext <<_ACEOF
8655 #line 8655 "configure"
8656 #include "confdefs.h"
8657
8658 /* Override any gcc2 internal prototype to avoid an error.  */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663    builtin and then its argument prototype would still apply.  */
8664 char strftime ();
8665 int
8666 main ()
8667 {
8668 strftime ();
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:8674: \"$ac_link\"") >&5
8675   (eval $ac_link) 2>&5
8676   ac_status=$?
8677   echo "$as_me:8677: \$? = $ac_status" >&5
8678   (exit $ac_status); } &&
8679          { ac_try='test -s conftest$ac_exeext'
8680   { (eval echo "$as_me:8680: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:8683: \$? = $ac_status" >&5
8684   (exit $ac_status); }; }; then
8685   ac_cv_lib_intl_strftime=yes
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8689 ac_cv_lib_intl_strftime=no
8690 fi
8691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8693 fi
8694 echo "$as_me:8694: result: $ac_cv_lib_intl_strftime" >&5
8695 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
8696 if test $ac_cv_lib_intl_strftime = yes; then
8697   cat >>confdefs.h <<\EOF
8698 #define HAVE_STRFTIME 1
8699 EOF
8700
8701 LIBS="-lintl $LIBS"
8702 fi
8703
8704 fi
8705 done
8706
8707 for ac_func in mkdir putgrent putpwent putspent rename rmdir
8708 do
8709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8710 echo "$as_me:8710: checking for $ac_func" >&5
8711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8712 if eval "test \"\${$as_ac_var+set}\" = set"; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   cat >conftest.$ac_ext <<_ACEOF
8716 #line 8716 "configure"
8717 #include "confdefs.h"
8718 /* System header to define __stub macros and hopefully few prototypes,
8719     which can conflict with char $ac_func (); below.  */
8720 #include <assert.h>
8721 /* Override any gcc2 internal prototype to avoid an error.  */
8722 #ifdef __cplusplus
8723 extern "C"
8724 #endif
8725 /* We use char because int might match the return type of a gcc2
8726    builtin and then its argument prototype would still apply.  */
8727 char $ac_func ();
8728 char (*f) ();
8729
8730 int
8731 main ()
8732 {
8733 /* The GNU C library defines this for functions which it implements
8734     to always fail with ENOSYS.  Some functions are actually named
8735     something starting with __ and the normal name is an alias.  */
8736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8737 choke me
8738 #else
8739 f = $ac_func;
8740 #endif
8741
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:8747: \"$ac_link\"") >&5
8748   (eval $ac_link) 2>&5
8749   ac_status=$?
8750   echo "$as_me:8750: \$? = $ac_status" >&5
8751   (exit $ac_status); } &&
8752          { ac_try='test -s conftest$ac_exeext'
8753   { (eval echo "$as_me:8753: \"$ac_try\"") >&5
8754   (eval $ac_try) 2>&5
8755   ac_status=$?
8756   echo "$as_me:8756: \$? = $ac_status" >&5
8757   (exit $ac_status); }; }; then
8758   eval "$as_ac_var=yes"
8759 else
8760   echo "$as_me: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8762 eval "$as_ac_var=no"
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 fi
8766 echo "$as_me:8766: result: `eval echo '${'$as_ac_var'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8768 if test `eval echo '${'$as_ac_var'}'` = yes; then
8769   cat >>confdefs.h <<EOF
8770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8771 EOF
8772
8773 else
8774   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8775 fi
8776 done
8777
8778 for ac_func in sgetgrent sgetpwent sgetspent
8779 do
8780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8781 echo "$as_me:8781: checking for $ac_func" >&5
8782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8783 if eval "test \"\${$as_ac_var+set}\" = set"; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   cat >conftest.$ac_ext <<_ACEOF
8787 #line 8787 "configure"
8788 #include "confdefs.h"
8789 /* System header to define __stub macros and hopefully few prototypes,
8790     which can conflict with char $ac_func (); below.  */
8791 #include <assert.h>
8792 /* Override any gcc2 internal prototype to avoid an error.  */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 /* We use char because int might match the return type of a gcc2
8797    builtin and then its argument prototype would still apply.  */
8798 char $ac_func ();
8799 char (*f) ();
8800
8801 int
8802 main ()
8803 {
8804 /* The GNU C library defines this for functions which it implements
8805     to always fail with ENOSYS.  Some functions are actually named
8806     something starting with __ and the normal name is an alias.  */
8807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8808 choke me
8809 #else
8810 f = $ac_func;
8811 #endif
8812
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:8818: \"$ac_link\"") >&5
8819   (eval $ac_link) 2>&5
8820   ac_status=$?
8821   echo "$as_me:8821: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -s conftest$ac_exeext'
8824   { (eval echo "$as_me:8824: \"$ac_try\"") >&5
8825   (eval $ac_try) 2>&5
8826   ac_status=$?
8827   echo "$as_me:8827: \$? = $ac_status" >&5
8828   (exit $ac_status); }; }; then
8829   eval "$as_ac_var=yes"
8830 else
8831   echo "$as_me: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 eval "$as_ac_var=no"
8834 fi
8835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8836 fi
8837 echo "$as_me:8837: result: `eval echo '${'$as_ac_var'}'`" >&5
8838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8839 if test `eval echo '${'$as_ac_var'}'` = yes; then
8840   cat >>confdefs.h <<EOF
8841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8842 EOF
8843
8844 else
8845   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8846 fi
8847 done
8848
8849 for ac_func in snprintf strcasecmp strdup strerror strstr
8850 do
8851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 echo "$as_me:8852: checking for $ac_func" >&5
8853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_var+set}\" = set"; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857   cat >conftest.$ac_ext <<_ACEOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8860 /* System header to define __stub macros and hopefully few prototypes,
8861     which can conflict with char $ac_func (); below.  */
8862 #include <assert.h>
8863 /* Override any gcc2 internal prototype to avoid an error.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 /* We use char because int might match the return type of a gcc2
8868    builtin and then its argument prototype would still apply.  */
8869 char $ac_func ();
8870 char (*f) ();
8871
8872 int
8873 main ()
8874 {
8875 /* The GNU C library defines this for functions which it implements
8876     to always fail with ENOSYS.  Some functions are actually named
8877     something starting with __ and the normal name is an alias.  */
8878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8879 choke me
8880 #else
8881 f = $ac_func;
8882 #endif
8883
8884   ;
8885   return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (eval echo "$as_me:8889: \"$ac_link\"") >&5
8890   (eval $ac_link) 2>&5
8891   ac_status=$?
8892   echo "$as_me:8892: \$? = $ac_status" >&5
8893   (exit $ac_status); } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (eval echo "$as_me:8895: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:8898: \$? = $ac_status" >&5
8899   (exit $ac_status); }; }; then
8900   eval "$as_ac_var=yes"
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 eval "$as_ac_var=no"
8905 fi
8906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8907 fi
8908 echo "$as_me:8908: result: `eval echo '${'$as_ac_var'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8910 if test `eval echo '${'$as_ac_var'}'` = yes; then
8911   cat >>confdefs.h <<EOF
8912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8913 EOF
8914
8915 else
8916   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8917 fi
8918 done
8919
8920 echo "$as_me:8920: checking for setpgrp" >&5
8921 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
8922 if test "${ac_cv_func_setpgrp+set}" = set; then
8923   echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925   cat >conftest.$ac_ext <<_ACEOF
8926 #line 8926 "configure"
8927 #include "confdefs.h"
8928 /* System header to define __stub macros and hopefully few prototypes,
8929     which can conflict with char setpgrp (); below.  */
8930 #include <assert.h>
8931 /* Override any gcc2 internal prototype to avoid an error.  */
8932 #ifdef __cplusplus
8933 extern "C"
8934 #endif
8935 /* We use char because int might match the return type of a gcc2
8936    builtin and then its argument prototype would still apply.  */
8937 char setpgrp ();
8938 char (*f) ();
8939
8940 int
8941 main ()
8942 {
8943 /* The GNU C library defines this for functions which it implements
8944     to always fail with ENOSYS.  Some functions are actually named
8945     something starting with __ and the normal name is an alias.  */
8946 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
8947 choke me
8948 #else
8949 f = setpgrp;
8950 #endif
8951
8952   ;
8953   return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:8957: \"$ac_link\"") >&5
8958   (eval $ac_link) 2>&5
8959   ac_status=$?
8960   echo "$as_me:8960: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -s conftest$ac_exeext'
8963   { (eval echo "$as_me:8963: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:8966: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_cv_func_setpgrp=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 ac_cv_func_setpgrp=no
8973 fi
8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8975 fi
8976 echo "$as_me:8976: result: $ac_cv_func_setpgrp" >&5
8977 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
8978
8979 echo "$as_me:8979: checking whether setpgrp takes no argument" >&5
8980 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
8981 if test "${ac_cv_func_setpgrp_void+set}" = set; then
8982   echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984   if test "$cross_compiling" = yes; then
8985   { { echo "$as_me:8985: error: cannot check setpgrp if cross compiling" >&5
8986 echo "$as_me: error: cannot check setpgrp if cross compiling" >&2;}
8987    { (exit 1); exit 1; }; }
8988 else
8989   cat >conftest.$ac_ext <<_ACEOF
8990 #line 8990 "configure"
8991 #include "confdefs.h"
8992 #if HAVE_UNISTD_H
8993 # include <unistd.h>
8994 #endif
8995
8996 int
8997 main ()
8998 {
8999 /* If this system has a BSD-style setpgrp, which takes arguments, exit
9000    successfully.  */
9001   exit (setpgrp (1,1) == -1);
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 rm -f conftest$ac_exeext
9007 if { (eval echo "$as_me:9007: \"$ac_link\"") >&5
9008   (eval $ac_link) 2>&5
9009   ac_status=$?
9010   echo "$as_me:9010: \$? = $ac_status" >&5
9011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9012   { (eval echo "$as_me:9012: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:9015: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   ac_cv_func_setpgrp_void=no
9018 else
9019   echo "$as_me: program exited with status $ac_status" >&5
9020 echo "$as_me: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 ac_cv_func_setpgrp_void=yes
9023 fi
9024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 fi
9027 echo "$as_me:9027: result: $ac_cv_func_setpgrp_void" >&5
9028 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
9029 if test $ac_cv_func_setpgrp_void = yes; then
9030
9031 cat >>confdefs.h <<\EOF
9032 #define SETPGRP_VOID 1
9033 EOF
9034
9035 fi
9036
9037 if test "$ac_cv_header_shadow_h" = "yes"; then
9038 echo "$as_me:9038: checking for working shadow group support" >&5
9039 echo $ECHO_N "checking for working shadow group support... $ECHO_C" >&6
9040 if test "${ac_cv_libc_shadowgrp+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   if test "$cross_compiling" = yes; then
9044   ac_cv_libc_shadowgrp=no
9045 else
9046   cat >conftest.$ac_ext <<_ACEOF
9047 #line 9047 "configure"
9048 #include "confdefs.h"
9049
9050 #include <shadow.h>
9051 main()
9052 {
9053         struct sgrp *sg = sgetsgent("test:x::");
9054         /* NYS libc on Red Hat 3.0.3 has broken shadow group support */
9055         return !sg || !sg->sg_adm || !sg->sg_mem;
9056 }
9057
9058 _ACEOF
9059 rm -f conftest$ac_exeext
9060 if { (eval echo "$as_me:9060: \"$ac_link\"") >&5
9061   (eval $ac_link) 2>&5
9062   ac_status=$?
9063   echo "$as_me:9063: \$? = $ac_status" >&5
9064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9065   { (eval echo "$as_me:9065: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:9068: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_cv_libc_shadowgrp=yes
9071 else
9072   echo "$as_me: program exited with status $ac_status" >&5
9073 echo "$as_me: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9075 ac_cv_libc_shadowgrp=no
9076 fi
9077 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9078 fi
9079 fi
9080 echo "$as_me:9080: result: $ac_cv_libc_shadowgrp" >&5
9081 echo "${ECHO_T}$ac_cv_libc_shadowgrp" >&6
9082
9083 if test "$ac_cv_libc_shadowgrp" = "yes"; then
9084         cat >>confdefs.h <<\EOF
9085 #define HAVE_SHADOWGRP 1
9086 EOF
9087
9088 fi
9089 fi
9090
9091 echo "$as_me:9091: checking location of shared mail directory" >&5
9092 echo $ECHO_N "checking location of shared mail directory... $ECHO_C" >&6
9093 for maildir in /var/spool/mail /var/mail /usr/spool/mail /usr/mail NONE; do
9094         if test "$maildir" = "NONE"; then
9095                 echo "$as_me:9095: result: None" >&5
9096 echo "${ECHO_T}None" >&6
9097         elif test -d $maildir; then
9098                 cat >>confdefs.h <<EOF
9099 #define MAIL_SPOOL_DIR "$maildir"
9100 EOF
9101
9102                 echo "$as_me:9102: result: $maildir" >&5
9103 echo "${ECHO_T}$maildir" >&6
9104                 break
9105         fi
9106 done
9107
9108 echo "$as_me:9108: checking location of user mail file" >&5
9109 echo $ECHO_N "checking location of user mail file... $ECHO_C" >&6
9110 for mailfile in Mailbox mailbox Mail mail .mail NONE; do
9111         if test "$mailfile" = "NONE"; then
9112                 echo "$as_me:9112: result: None" >&5
9113 echo "${ECHO_T}None" >&6
9114         elif test -f $HOME/$mailfile; then
9115                 cat >>confdefs.h <<EOF
9116 #define MAIL_SPOOL_FILE "$mailfile"
9117 EOF
9118
9119                 echo "$as_me:9119: result: $mailfile" >&5
9120 echo "${ECHO_T}$mailfile" >&6
9121                 break
9122         fi
9123 done
9124
9125 echo "$as_me:9125: checking location of utmp" >&5
9126 echo $ECHO_N "checking location of utmp... $ECHO_C" >&6
9127 for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do
9128         if test "$utmpdir" = "NONE"; then
9129                 { echo "$as_me:9129: WARNING: utmp file not found" >&5
9130 echo "$as_me: WARNING: utmp file not found" >&2;}
9131         elif test -f $utmpdir/utmp; then
9132                 cat >>confdefs.h <<EOF
9133 #define _UTMP_FILE "$utmpdir/utmp"
9134 EOF
9135
9136                 echo "$as_me:9136: result: $utmpdir" >&5
9137 echo "${ECHO_T}$utmpdir" >&6
9138                 break
9139         fi
9140 done
9141
9142 echo "$as_me:9142: checking location of faillog/lastlog/wtmp" >&5
9143 echo $ECHO_N "checking location of faillog/lastlog/wtmp... $ECHO_C" >&6
9144 for logdir in /var/log /var/adm /usr/adm /etc; do
9145         if test -d $logdir; then
9146                 cat >>confdefs.h <<EOF
9147 #define _WTMP_FILE "$logdir/wtmp"
9148 EOF
9149
9150                 cat >>confdefs.h <<EOF
9151 #define LASTLOG_FILE "$logdir/lastlog"
9152 EOF
9153
9154                 cat >>confdefs.h <<EOF
9155 #define FAILLOG_FILE "$logdir/faillog"
9156 EOF
9157
9158                 echo "$as_me:9158: result: $logdir" >&5
9159 echo "${ECHO_T}$logdir" >&6
9160                 break
9161         fi
9162 done
9163
9164 echo "$as_me:9164: checking location of the passwd program" >&5
9165 echo $ECHO_N "checking location of the passwd program... $ECHO_C" >&6
9166 if test -f /usr/bin/passwd; then
9167         passwd_dir=/usr/bin
9168 else
9169         passwd_dir=/bin
9170 fi
9171 cat >>confdefs.h <<EOF
9172 #define PASSWD_PROGRAM "$passwd_dir/passwd"
9173 EOF
9174
9175 echo "$as_me:9175: result: $passwd_dir" >&5
9176 echo "${ECHO_T}$passwd_dir" >&6
9177
9178 cat >>confdefs.h <<\EOF
9179 #define SHADOWPWD 1
9180 EOF
9181
9182 cat >>confdefs.h <<\EOF
9183 #define USG 1
9184 EOF
9185
9186 cat >>confdefs.h <<\EOF
9187 #define AGING 1
9188 EOF
9189
9190 cat >>confdefs.h <<\EOF
9191 #define USE_SYSLOG 1
9192 EOF
9193
9194 cat >>confdefs.h <<\EOF
9195 #define RLOGIN 1
9196 EOF
9197
9198 cat >>confdefs.h <<\EOF
9199 #define RUSEROK 0
9200 EOF
9201
9202 cat >>confdefs.h <<\EOF
9203 #define getpass libshadow_getpass
9204 EOF
9205
9206 # Check whether --enable-desrpc or --disable-desrpc was given.
9207 if test "${enable_desrpc+set}" = set; then
9208   enableval="$enable_desrpc"
9209
9210 fi;
9211 # Check whether --enable-shadowgrp or --disable-shadowgrp was given.
9212 if test "${enable_shadowgrp+set}" = set; then
9213   enableval="$enable_shadowgrp"
9214
9215 fi;
9216
9217 # Check whether --with-libcrack or --without-libcrack was given.
9218 if test "${with_libcrack+set}" = set; then
9219   withval="$with_libcrack"
9220
9221 fi;
9222
9223 # Check whether --with-libcrypt or --without-libcrypt was given.
9224 if test "${with_libcrypt+set}" = set; then
9225   withval="$with_libcrypt"
9226
9227 fi;
9228
9229 # Check whether --with-libopie or --without-libopie was given.
9230 if test "${with_libopie+set}" = set; then
9231   withval="$with_libopie"
9232
9233 fi;
9234
9235 # Check whether --with-libpam or --without-libpam was given.
9236 if test "${with_libpam+set}" = set; then
9237   withval="$with_libpam"
9238
9239 fi;
9240
9241 # Check whether --with-libskey or --without-libskey was given.
9242 if test "${with_libskey+set}" = set; then
9243   withval="$with_libskey"
9244
9245 fi;
9246
9247 # Check whether --with-libtcfs or --without-libtcfs was given.
9248 if test "${with_libtcfs+set}" = set; then
9249   withval="$with_libtcfs"
9250
9251 fi;
9252
9253 echo "$as_me:9253: checking for inet_ntoa" >&5
9254 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
9255 if test "${ac_cv_func_inet_ntoa+set}" = set; then
9256   echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258   cat >conftest.$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9261 /* System header to define __stub macros and hopefully few prototypes,
9262     which can conflict with char inet_ntoa (); below.  */
9263 #include <assert.h>
9264 /* Override any gcc2 internal prototype to avoid an error.  */
9265 #ifdef __cplusplus
9266 extern "C"
9267 #endif
9268 /* We use char because int might match the return type of a gcc2
9269    builtin and then its argument prototype would still apply.  */
9270 char inet_ntoa ();
9271 char (*f) ();
9272
9273 int
9274 main ()
9275 {
9276 /* The GNU C library defines this for functions which it implements
9277     to always fail with ENOSYS.  Some functions are actually named
9278     something starting with __ and the normal name is an alias.  */
9279 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
9280 choke me
9281 #else
9282 f = inet_ntoa;
9283 #endif
9284
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:9290: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>&5
9292   ac_status=$?
9293   echo "$as_me:9293: \$? = $ac_status" >&5
9294   (exit $ac_status); } &&
9295          { ac_try='test -s conftest$ac_exeext'
9296   { (eval echo "$as_me:9296: \"$ac_try\"") >&5
9297   (eval $ac_try) 2>&5
9298   ac_status=$?
9299   echo "$as_me:9299: \$? = $ac_status" >&5
9300   (exit $ac_status); }; }; then
9301   ac_cv_func_inet_ntoa=yes
9302 else
9303   echo "$as_me: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9305 ac_cv_func_inet_ntoa=no
9306 fi
9307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9308 fi
9309 echo "$as_me:9309: result: $ac_cv_func_inet_ntoa" >&5
9310 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
9311 if test $ac_cv_func_inet_ntoa = yes; then
9312   :
9313 else
9314
9315 echo "$as_me:9315: checking for inet_ntoa in -linet" >&5
9316 echo $ECHO_N "checking for inet_ntoa in -linet... $ECHO_C" >&6
9317 if test "${ac_cv_lib_inet_inet_ntoa+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-linet  $LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9323 #line 9323 "configure"
9324 #include "confdefs.h"
9325
9326 /* Override any gcc2 internal prototype to avoid an error.  */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 /* We use char because int might match the return type of a gcc2
9331    builtin and then its argument prototype would still apply.  */
9332 char inet_ntoa ();
9333 int
9334 main ()
9335 {
9336 inet_ntoa ();
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:9342: \"$ac_link\"") >&5
9343   (eval $ac_link) 2>&5
9344   ac_status=$?
9345   echo "$as_me:9345: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -s conftest$ac_exeext'
9348   { (eval echo "$as_me:9348: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:9351: \$? = $ac_status" >&5
9352   (exit $ac_status); }; }; then
9353   ac_cv_lib_inet_inet_ntoa=yes
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 cat conftest.$ac_ext >&5
9357 ac_cv_lib_inet_inet_ntoa=no
9358 fi
9359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9361 fi
9362 echo "$as_me:9362: result: $ac_cv_lib_inet_inet_ntoa" >&5
9363 echo "${ECHO_T}$ac_cv_lib_inet_inet_ntoa" >&6
9364 if test $ac_cv_lib_inet_inet_ntoa = yes; then
9365   cat >>confdefs.h <<EOF
9366 #define HAVE_LIBINET 1
9367 EOF
9368
9369   LIBS="-linet $LIBS"
9370
9371 fi
9372
9373 fi
9374
9375 echo "$as_me:9375: checking for socket" >&5
9376 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9377 if test "${ac_cv_func_socket+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9383 /* System header to define __stub macros and hopefully few prototypes,
9384     which can conflict with char socket (); below.  */
9385 #include <assert.h>
9386 /* Override any gcc2 internal prototype to avoid an error.  */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 /* We use char because int might match the return type of a gcc2
9391    builtin and then its argument prototype would still apply.  */
9392 char socket ();
9393 char (*f) ();
9394
9395 int
9396 main ()
9397 {
9398 /* The GNU C library defines this for functions which it implements
9399     to always fail with ENOSYS.  Some functions are actually named
9400     something starting with __ and the normal name is an alias.  */
9401 #if defined (__stub_socket) || defined (__stub___socket)
9402 choke me
9403 #else
9404 f = socket;
9405 #endif
9406
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:9412: \"$ac_link\"") >&5
9413   (eval $ac_link) 2>&5
9414   ac_status=$?
9415   echo "$as_me:9415: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -s conftest$ac_exeext'
9418   { (eval echo "$as_me:9418: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:9421: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_func_socket=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_cv_func_socket=no
9428 fi
9429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9430 fi
9431 echo "$as_me:9431: result: $ac_cv_func_socket" >&5
9432 echo "${ECHO_T}$ac_cv_func_socket" >&6
9433 if test $ac_cv_func_socket = yes; then
9434   :
9435 else
9436
9437 echo "$as_me:9437: checking for socket in -lsocket" >&5
9438 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9439 if test "${ac_cv_lib_socket_socket+set}" = set; then
9440   echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442   ac_check_lib_save_LIBS=$LIBS
9443 LIBS="-lsocket  $LIBS"
9444 cat >conftest.$ac_ext <<_ACEOF
9445 #line 9445 "configure"
9446 #include "confdefs.h"
9447
9448 /* Override any gcc2 internal prototype to avoid an error.  */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 /* We use char because int might match the return type of a gcc2
9453    builtin and then its argument prototype would still apply.  */
9454 char socket ();
9455 int
9456 main ()
9457 {
9458 socket ();
9459   ;
9460   return 0;
9461 }
9462 _ACEOF
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (eval echo "$as_me:9464: \"$ac_link\"") >&5
9465   (eval $ac_link) 2>&5
9466   ac_status=$?
9467   echo "$as_me:9467: \$? = $ac_status" >&5
9468   (exit $ac_status); } &&
9469          { ac_try='test -s conftest$ac_exeext'
9470   { (eval echo "$as_me:9470: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:9473: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   ac_cv_lib_socket_socket=yes
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 ac_cv_lib_socket_socket=no
9480 fi
9481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9483 fi
9484 echo "$as_me:9484: result: $ac_cv_lib_socket_socket" >&5
9485 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9486 if test $ac_cv_lib_socket_socket = yes; then
9487   cat >>confdefs.h <<EOF
9488 #define HAVE_LIBSOCKET 1
9489 EOF
9490
9491   LIBS="-lsocket $LIBS"
9492
9493 fi
9494
9495 fi
9496
9497 echo "$as_me:9497: checking for gethostbyname" >&5
9498 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9499 if test "${ac_cv_func_gethostbyname+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   cat >conftest.$ac_ext <<_ACEOF
9503 #line 9503 "configure"
9504 #include "confdefs.h"
9505 /* System header to define __stub macros and hopefully few prototypes,
9506     which can conflict with char gethostbyname (); below.  */
9507 #include <assert.h>
9508 /* Override any gcc2 internal prototype to avoid an error.  */
9509 #ifdef __cplusplus
9510 extern "C"
9511 #endif
9512 /* We use char because int might match the return type of a gcc2
9513    builtin and then its argument prototype would still apply.  */
9514 char gethostbyname ();
9515 char (*f) ();
9516
9517 int
9518 main ()
9519 {
9520 /* The GNU C library defines this for functions which it implements
9521     to always fail with ENOSYS.  Some functions are actually named
9522     something starting with __ and the normal name is an alias.  */
9523 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9524 choke me
9525 #else
9526 f = gethostbyname;
9527 #endif
9528
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:9534: \"$ac_link\"") >&5
9535   (eval $ac_link) 2>&5
9536   ac_status=$?
9537   echo "$as_me:9537: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -s conftest$ac_exeext'
9540   { (eval echo "$as_me:9540: \"$ac_try\"") >&5
9541   (eval $ac_try) 2>&5
9542   ac_status=$?
9543   echo "$as_me:9543: \$? = $ac_status" >&5
9544   (exit $ac_status); }; }; then
9545   ac_cv_func_gethostbyname=yes
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9549 ac_cv_func_gethostbyname=no
9550 fi
9551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9552 fi
9553 echo "$as_me:9553: result: $ac_cv_func_gethostbyname" >&5
9554 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9555 if test $ac_cv_func_gethostbyname = yes; then
9556   :
9557 else
9558
9559 echo "$as_me:9559: checking for gethostbyname in -lnsl" >&5
9560 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9561 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   ac_check_lib_save_LIBS=$LIBS
9565 LIBS="-lnsl  $LIBS"
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line 9567 "configure"
9568 #include "confdefs.h"
9569
9570 /* Override any gcc2 internal prototype to avoid an error.  */
9571 #ifdef __cplusplus
9572 extern "C"
9573 #endif
9574 /* We use char because int might match the return type of a gcc2
9575    builtin and then its argument prototype would still apply.  */
9576 char gethostbyname ();
9577 int
9578 main ()
9579 {
9580 gethostbyname ();
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (eval echo "$as_me:9586: \"$ac_link\"") >&5
9587   (eval $ac_link) 2>&5
9588   ac_status=$?
9589   echo "$as_me:9589: \$? = $ac_status" >&5
9590   (exit $ac_status); } &&
9591          { ac_try='test -s conftest$ac_exeext'
9592   { (eval echo "$as_me:9592: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:9595: \$? = $ac_status" >&5
9596   (exit $ac_status); }; }; then
9597   ac_cv_lib_nsl_gethostbyname=yes
9598 else
9599   echo "$as_me: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 ac_cv_lib_nsl_gethostbyname=no
9602 fi
9603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9605 fi
9606 echo "$as_me:9606: result: $ac_cv_lib_nsl_gethostbyname" >&5
9607 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9608 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9609   cat >>confdefs.h <<EOF
9610 #define HAVE_LIBNSL 1
9611 EOF
9612
9613   LIBS="-lnsl $LIBS"
9614
9615 fi
9616
9617 fi
9618
9619 if test "$enable_desrpc" != "no" -a "$ac_cv_header_rpc_key_prot_h" = "yes" ; then
9620         echo "$as_me:9620: checking for getsecretkey" >&5
9621 echo $ECHO_N "checking for getsecretkey... $ECHO_C" >&6
9622 if test "${ac_cv_func_getsecretkey+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625   cat >conftest.$ac_ext <<_ACEOF
9626 #line 9626 "configure"
9627 #include "confdefs.h"
9628 /* System header to define __stub macros and hopefully few prototypes,
9629     which can conflict with char getsecretkey (); below.  */
9630 #include <assert.h>
9631 /* Override any gcc2 internal prototype to avoid an error.  */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 /* We use char because int might match the return type of a gcc2
9636    builtin and then its argument prototype would still apply.  */
9637 char getsecretkey ();
9638 char (*f) ();
9639
9640 int
9641 main ()
9642 {
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined (__stub_getsecretkey) || defined (__stub___getsecretkey)
9647 choke me
9648 #else
9649 f = getsecretkey;
9650 #endif
9651
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:9657: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>&5
9659   ac_status=$?
9660   echo "$as_me:9660: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -s conftest$ac_exeext'
9663   { (eval echo "$as_me:9663: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:9666: \$? = $ac_status" >&5
9667   (exit $ac_status); }; }; then
9668   ac_cv_func_getsecretkey=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 ac_cv_func_getsecretkey=no
9673 fi
9674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9675 fi
9676 echo "$as_me:9676: result: $ac_cv_func_getsecretkey" >&5
9677 echo "${ECHO_T}$ac_cv_func_getsecretkey" >&6
9678 if test $ac_cv_func_getsecretkey = yes; then
9679   cat >>confdefs.h <<\EOF
9680 #define DES_RPC 1
9681 EOF
9682
9683 else
9684   echo "$as_me:9684: checking for getsecretkey in -lrpcsvc" >&5
9685 echo $ECHO_N "checking for getsecretkey in -lrpcsvc... $ECHO_C" >&6
9686 if test "${ac_cv_lib_rpcsvc_getsecretkey+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-lrpcsvc  $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 #line 9692 "configure"
9693 #include "confdefs.h"
9694
9695 /* Override any gcc2 internal prototype to avoid an error.  */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700    builtin and then its argument prototype would still apply.  */
9701 char getsecretkey ();
9702 int
9703 main ()
9704 {
9705 getsecretkey ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:9711: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>&5
9713   ac_status=$?
9714   echo "$as_me:9714: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -s conftest$ac_exeext'
9717   { (eval echo "$as_me:9717: \"$ac_try\"") >&5
9718   (eval $ac_try) 2>&5
9719   ac_status=$?
9720   echo "$as_me:9720: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722   ac_cv_lib_rpcsvc_getsecretkey=yes
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9726 ac_cv_lib_rpcsvc_getsecretkey=no
9727 fi
9728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9730 fi
9731 echo "$as_me:9731: result: $ac_cv_lib_rpcsvc_getsecretkey" >&5
9732 echo "${ECHO_T}$ac_cv_lib_rpcsvc_getsecretkey" >&6
9733 if test $ac_cv_lib_rpcsvc_getsecretkey = yes; then
9734   cat >>confdefs.h <<\EOF
9735 #define DES_RPC 1
9736 EOF
9737
9738 fi
9739
9740 fi
9741
9742 fi
9743
9744 if test "$enable_shadowgrp" != "no"; then
9745         cat >>confdefs.h <<\EOF
9746 #define SHADOWGRP 1
9747 EOF
9748
9749 fi
9750
9751 if test "$with_libcrypt" != "no"; then
9752         echo "$as_me:9752: checking for crypt in -lcrypt" >&5
9753 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9754 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   ac_check_lib_save_LIBS=$LIBS
9758 LIBS="-lcrypt  $LIBS"
9759 cat >conftest.$ac_ext <<_ACEOF
9760 #line 9760 "configure"
9761 #include "confdefs.h"
9762
9763 /* Override any gcc2 internal prototype to avoid an error.  */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 /* We use char because int might match the return type of a gcc2
9768    builtin and then its argument prototype would still apply.  */
9769 char crypt ();
9770 int
9771 main ()
9772 {
9773 crypt ();
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (eval echo "$as_me:9779: \"$ac_link\"") >&5
9780   (eval $ac_link) 2>&5
9781   ac_status=$?
9782   echo "$as_me:9782: \$? = $ac_status" >&5
9783   (exit $ac_status); } &&
9784          { ac_try='test -s conftest$ac_exeext'
9785   { (eval echo "$as_me:9785: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:9788: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }; then
9790   ac_cv_lib_crypt_crypt=yes
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9794 ac_cv_lib_crypt_crypt=no
9795 fi
9796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9798 fi
9799 echo "$as_me:9799: result: $ac_cv_lib_crypt_crypt" >&5
9800 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9801 if test $ac_cv_lib_crypt_crypt = yes; then
9802   cat >>confdefs.h <<\EOF
9803 #define HAVE_LIBCRYPT 1
9804 EOF
9805  LIBCRYPT=-lcrypt
9806 fi
9807
9808 fi
9809
9810 if test "$with_libcrack" != "no"; then
9811         echo "checking cracklib flavour, don't be surprised by the results"
9812         echo "$as_me:9812: checking for FascistCheck in -lcrack" >&5
9813 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
9814 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   ac_check_lib_save_LIBS=$LIBS
9818 LIBS="-lcrack  $LIBS"
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line 9820 "configure"
9821 #include "confdefs.h"
9822
9823 /* Override any gcc2 internal prototype to avoid an error.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 /* We use char because int might match the return type of a gcc2
9828    builtin and then its argument prototype would still apply.  */
9829 char FascistCheck ();
9830 int
9831 main ()
9832 {
9833 FascistCheck ();
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:9839: \"$ac_link\"") >&5
9840   (eval $ac_link) 2>&5
9841   ac_status=$?
9842   echo "$as_me:9842: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -s conftest$ac_exeext'
9845   { (eval echo "$as_me:9845: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:9848: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   ac_cv_lib_crack_FascistCheck=yes
9851 else
9852   echo "$as_me: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 ac_cv_lib_crack_FascistCheck=no
9855 fi
9856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9858 fi
9859 echo "$as_me:9859: result: $ac_cv_lib_crack_FascistCheck" >&5
9860 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
9861 if test $ac_cv_lib_crack_FascistCheck = yes; then
9862   cat >>confdefs.h <<\EOF
9863 #define HAVE_LIBCRACK 1
9864 EOF
9865  LIBCRACK=-lcrack
9866 fi
9867
9868         echo "$as_me:9868: checking for FascistHistory in -lcrack" >&5
9869 echo $ECHO_N "checking for FascistHistory in -lcrack... $ECHO_C" >&6
9870 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   ac_check_lib_save_LIBS=$LIBS
9874 LIBS="-lcrack  $LIBS"
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line 9876 "configure"
9877 #include "confdefs.h"
9878
9879 /* Override any gcc2 internal prototype to avoid an error.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 /* We use char because int might match the return type of a gcc2
9884    builtin and then its argument prototype would still apply.  */
9885 char FascistHistory ();
9886 int
9887 main ()
9888 {
9889 FascistHistory ();
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:9895: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>&5
9897   ac_status=$?
9898   echo "$as_me:9898: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (eval echo "$as_me:9901: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:9904: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_lib_crack_FascistHistory=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 ac_cv_lib_crack_FascistHistory=no
9911 fi
9912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9913 LIBS=$ac_check_lib_save_LIBS
9914 fi
9915 echo "$as_me:9915: result: $ac_cv_lib_crack_FascistHistory" >&5
9916 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistory" >&6
9917 if test $ac_cv_lib_crack_FascistHistory = yes; then
9918   cat >>confdefs.h <<\EOF
9919 #define HAVE_LIBCRACK_HIST 1
9920 EOF
9921
9922 fi
9923
9924         echo "$as_me:9924: checking for FascistHistoryPw in -lcrack" >&5
9925 echo $ECHO_N "checking for FascistHistoryPw in -lcrack... $ECHO_C" >&6
9926 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then
9927   echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929   ac_check_lib_save_LIBS=$LIBS
9930 LIBS="-lcrack  $LIBS"
9931 cat >conftest.$ac_ext <<_ACEOF
9932 #line 9932 "configure"
9933 #include "confdefs.h"
9934
9935 /* Override any gcc2 internal prototype to avoid an error.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 /* We use char because int might match the return type of a gcc2
9940    builtin and then its argument prototype would still apply.  */
9941 char FascistHistoryPw ();
9942 int
9943 main ()
9944 {
9945 FascistHistoryPw ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:9951: \"$ac_link\"") >&5
9952   (eval $ac_link) 2>&5
9953   ac_status=$?
9954   echo "$as_me:9954: \$? = $ac_status" >&5
9955   (exit $ac_status); } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (eval echo "$as_me:9957: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:9960: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962   ac_cv_lib_crack_FascistHistoryPw=yes
9963 else
9964   echo "$as_me: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 ac_cv_lib_crack_FascistHistoryPw=no
9967 fi
9968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9969 LIBS=$ac_check_lib_save_LIBS
9970 fi
9971 echo "$as_me:9971: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
9972 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistoryPw" >&6
9973 if test $ac_cv_lib_crack_FascistHistoryPw = yes; then
9974   cat >>confdefs.h <<\EOF
9975 #define HAVE_LIBCRACK_PW 1
9976 EOF
9977
9978 fi
9979
9980 fi
9981
9982 if test "$with_libskey" = "yes"; then
9983         echo "$as_me:9983: checking for MD5Init in -lmd" >&5
9984 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
9985 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-lmd  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line 9991 "configure"
9992 #include "confdefs.h"
9993
9994 /* Override any gcc2 internal prototype to avoid an error.  */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 /* We use char because int might match the return type of a gcc2
9999    builtin and then its argument prototype would still apply.  */
10000 char MD5Init ();
10001 int
10002 main ()
10003 {
10004 MD5Init ();
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:10010: \"$ac_link\"") >&5
10011   (eval $ac_link) 2>&5
10012   ac_status=$?
10013   echo "$as_me:10013: \$? = $ac_status" >&5
10014   (exit $ac_status); } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:10016: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:10019: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_lib_md_MD5Init=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 cat conftest.$ac_ext >&5
10025 ac_cv_lib_md_MD5Init=no
10026 fi
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10029 fi
10030 echo "$as_me:10030: result: $ac_cv_lib_md_MD5Init" >&5
10031 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
10032 if test $ac_cv_lib_md_MD5Init = yes; then
10033   LIBMD=-lmd
10034 fi
10035
10036         echo "$as_me:10036: checking for skeychallenge in -lskey" >&5
10037 echo $ECHO_N "checking for skeychallenge in -lskey... $ECHO_C" >&6
10038 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lskey $LIBMD $LIBCRYPT $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10046
10047 /* Override any gcc2 internal prototype to avoid an error.  */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 /* We use char because int might match the return type of a gcc2
10052    builtin and then its argument prototype would still apply.  */
10053 char skeychallenge ();
10054 int
10055 main ()
10056 {
10057 skeychallenge ();
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:10063: \"$ac_link\"") >&5
10064   (eval $ac_link) 2>&5
10065   ac_status=$?
10066   echo "$as_me:10066: \$? = $ac_status" >&5
10067   (exit $ac_status); } &&
10068          { ac_try='test -s conftest$ac_exeext'
10069   { (eval echo "$as_me:10069: \"$ac_try\"") >&5
10070   (eval $ac_try) 2>&5
10071   ac_status=$?
10072   echo "$as_me:10072: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_cv_lib_skey_skeychallenge=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 ac_cv_lib_skey_skeychallenge=no
10079 fi
10080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_lib_save_LIBS
10082 fi
10083 echo "$as_me:10083: result: $ac_cv_lib_skey_skeychallenge" >&5
10084 echo "${ECHO_T}$ac_cv_lib_skey_skeychallenge" >&6
10085 if test $ac_cv_lib_skey_skeychallenge = yes; then
10086   cat >>confdefs.h <<\EOF
10087 #define SKEY 1
10088 EOF
10089  LIBSKEY=-lskey
10090 fi
10091
10092 elif test "$with_libopie" = "yes"; then
10093         echo "$as_me:10093: checking for opiechallenge in -lopie" >&5
10094 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6
10095 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-lopie $LIBCRYPT $LIBS"
10100 cat >conftest.$ac_ext <<_ACEOF
10101 #line 10101 "configure"
10102 #include "confdefs.h"
10103
10104 /* Override any gcc2 internal prototype to avoid an error.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 /* We use char because int might match the return type of a gcc2
10109    builtin and then its argument prototype would still apply.  */
10110 char opiechallenge ();
10111 int
10112 main ()
10113 {
10114 opiechallenge ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:10120: \"$ac_link\"") >&5
10121   (eval $ac_link) 2>&5
10122   ac_status=$?
10123   echo "$as_me:10123: \$? = $ac_status" >&5
10124   (exit $ac_status); } &&
10125          { ac_try='test -s conftest$ac_exeext'
10126   { (eval echo "$as_me:10126: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:10129: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ac_cv_lib_opie_opiechallenge=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 ac_cv_lib_opie_opiechallenge=no
10136 fi
10137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 echo "$as_me:10140: result: $ac_cv_lib_opie_opiechallenge" >&5
10141 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6
10142 if test $ac_cv_lib_opie_opiechallenge = yes; then
10143   cat >>confdefs.h <<\EOF
10144 #define OPIE 1
10145 EOF
10146  LIBSKEY=-lopie
10147 fi
10148
10149 fi
10150
10151 if test "$with_libtcfs" = "yes"; then
10152         echo "$as_me:10152: checking for tcfs_encrypt_key in -ltcfs" >&5
10153 echo $ECHO_N "checking for tcfs_encrypt_key in -ltcfs... $ECHO_C" >&6
10154 if test "${ac_cv_lib_tcfs_tcfs_encrypt_key+set}" = set; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-ltcfs -lgdbm $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line 10160 "configure"
10161 #include "confdefs.h"
10162
10163 /* Override any gcc2 internal prototype to avoid an error.  */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 /* We use char because int might match the return type of a gcc2
10168    builtin and then its argument prototype would still apply.  */
10169 char tcfs_encrypt_key ();
10170 int
10171 main ()
10172 {
10173 tcfs_encrypt_key ();
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (eval echo "$as_me:10179: \"$ac_link\"") >&5
10180   (eval $ac_link) 2>&5
10181   ac_status=$?
10182   echo "$as_me:10182: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (eval echo "$as_me:10185: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:10188: \$? = $ac_status" >&5
10189   (exit $ac_status); }; }; then
10190   ac_cv_lib_tcfs_tcfs_encrypt_key=yes
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 ac_cv_lib_tcfs_tcfs_encrypt_key=no
10195 fi
10196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10197 LIBS=$ac_check_lib_save_LIBS
10198 fi
10199 echo "$as_me:10199: result: $ac_cv_lib_tcfs_tcfs_encrypt_key" >&5
10200 echo "${ECHO_T}$ac_cv_lib_tcfs_tcfs_encrypt_key" >&6
10201 if test $ac_cv_lib_tcfs_tcfs_encrypt_key = yes; then
10202   cat >>confdefs.h <<\EOF
10203 #define HAVE_TCFS 1
10204 EOF
10205  cat >>confdefs.h <<\EOF
10206 #define TCFS_GDBM_SUPPORT 1
10207 EOF
10208  LIBTCFS="-ltcfs -lgdbm"
10209 fi
10210
10211 fi
10212
10213 if test "$with_libpam" = "yes"; then
10214         echo "$as_me:10214: checking for pam_start in -lpam" >&5
10215 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
10216 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   ac_check_lib_save_LIBS=$LIBS
10220 LIBS="-lpam  $LIBS"
10221 cat >conftest.$ac_ext <<_ACEOF
10222 #line 10222 "configure"
10223 #include "confdefs.h"
10224
10225 /* Override any gcc2 internal prototype to avoid an error.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230    builtin and then its argument prototype would still apply.  */
10231 char pam_start ();
10232 int
10233 main ()
10234 {
10235 pam_start ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:10241: \"$ac_link\"") >&5
10242   (eval $ac_link) 2>&5
10243   ac_status=$?
10244   echo "$as_me:10244: \$? = $ac_status" >&5
10245   (exit $ac_status); } &&
10246          { ac_try='test -s conftest$ac_exeext'
10247   { (eval echo "$as_me:10247: \"$ac_try\"") >&5
10248   (eval $ac_try) 2>&5
10249   ac_status=$?
10250   echo "$as_me:10250: \$? = $ac_status" >&5
10251   (exit $ac_status); }; }; then
10252   ac_cv_lib_pam_pam_start=yes
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 ac_cv_lib_pam_pam_start=no
10257 fi
10258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10260 fi
10261 echo "$as_me:10261: result: $ac_cv_lib_pam_pam_start" >&5
10262 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
10263 if test $ac_cv_lib_pam_pam_start = yes; then
10264   cat >>confdefs.h <<\EOF
10265 #define USE_PAM 1
10266 EOF
10267
10268                 LIBPAM="-lpam"
10269                 echo "$as_me:10269: checking for main in -lpam_misc" >&5
10270 echo $ECHO_N "checking for main in -lpam_misc... $ECHO_C" >&6
10271 if test "${ac_cv_lib_pam_misc_main+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lpam_misc { { echo "$as_me:10275: error: libpam_misc is missing" >&5
10276 echo "$as_me: error: libpam_misc is missing" >&2;}
10277    { (exit 1); exit 1; }; }
10278                  $LIBS"
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line 10280 "configure"
10281 #include "confdefs.h"
10282
10283 int
10284 main ()
10285 {
10286 main ();
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (eval echo "$as_me:10292: \"$ac_link\"") >&5
10293   (eval $ac_link) 2>&5
10294   ac_status=$?
10295   echo "$as_me:10295: \$? = $ac_status" >&5
10296   (exit $ac_status); } &&
10297          { ac_try='test -s conftest$ac_exeext'
10298   { (eval echo "$as_me:10298: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:10301: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_lib_pam_misc_main=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 cat conftest.$ac_ext >&5
10307 ac_cv_lib_pam_misc_main=no
10308 fi
10309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10311 fi
10312 echo "$as_me:10312: result: $ac_cv_lib_pam_misc_main" >&5
10313 echo "${ECHO_T}$ac_cv_lib_pam_misc_main" >&6
10314 if test $ac_cv_lib_pam_misc_main = yes; then
10315   LIBPAM="$LIBPAM -lpam_misc"
10316 fi
10317
10318                 echo "$as_me:10318: checking use login access checking if PAM not used" >&5
10319 echo $ECHO_N "checking use login access checking if PAM not used... $ECHO_C" >&6
10320                 cat >>confdefs.h <<\EOF
10321 #define LOGIN_ACCESS 1
10322 EOF
10323
10324                 echo "$as_me:10324: result: yes" >&5
10325 echo "${ECHO_T}yes" >&6
10326
10327 fi
10328
10329         echo "$as_me:10329: checking use login and su access checking if PAM not used" >&5
10330 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
10331         echo "$as_me:10331: result: no" >&5
10332 echo "${ECHO_T}no" >&6
10333 else
10334         echo "$as_me:10334: checking use login and su access checking if PAM not used" >&5
10335 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
10336         cat >>confdefs.h <<\EOF
10337 #define LOGIN_ACCESS 1
10338 EOF
10339
10340         cat >>confdefs.h <<\EOF
10341 #define SU_ACCESS 1
10342 EOF
10343
10344         echo "$as_me:10344: result: yes" >&5
10345 echo "${ECHO_T}yes" >&6
10346 fi
10347
10348 ALL_LINGUAS="cs el fr pl sv uk"
10349 if test -n "$ac_tool_prefix"; then
10350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10352 echo "$as_me:10352: checking for $ac_word" >&5
10353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10354 if test "${ac_cv_prog_RANLIB+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   if test -n "$RANLIB"; then
10358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10359 else
10360   ac_save_IFS=$IFS; IFS=$ac_path_separator
10361 ac_dummy="$PATH"
10362 for ac_dir in $ac_dummy; do
10363   IFS=$ac_save_IFS
10364   test -z "$ac_dir" && ac_dir=.
10365   $as_executable_p "$ac_dir/$ac_word" || continue
10366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10367 echo "$as_me:10367: found $ac_dir/$ac_word" >&5
10368 break
10369 done
10370
10371 fi
10372 fi
10373 RANLIB=$ac_cv_prog_RANLIB
10374 if test -n "$RANLIB"; then
10375   echo "$as_me:10375: result: $RANLIB" >&5
10376 echo "${ECHO_T}$RANLIB" >&6
10377 else
10378   echo "$as_me:10378: result: no" >&5
10379 echo "${ECHO_T}no" >&6
10380 fi
10381
10382 fi
10383 if test -z "$ac_cv_prog_RANLIB"; then
10384   ac_ct_RANLIB=$RANLIB
10385   # Extract the first word of "ranlib", so it can be a program name with args.
10386 set dummy ranlib; ac_word=$2
10387 echo "$as_me:10387: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   if test -n "$ac_ct_RANLIB"; then
10393   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10394 else
10395   ac_save_IFS=$IFS; IFS=$ac_path_separator
10396 ac_dummy="$PATH"
10397 for ac_dir in $ac_dummy; do
10398   IFS=$ac_save_IFS
10399   test -z "$ac_dir" && ac_dir=.
10400   $as_executable_p "$ac_dir/$ac_word" || continue
10401 ac_cv_prog_ac_ct_RANLIB="ranlib"
10402 echo "$as_me:10402: found $ac_dir/$ac_word" >&5
10403 break
10404 done
10405
10406   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10407 fi
10408 fi
10409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10410 if test -n "$ac_ct_RANLIB"; then
10411   echo "$as_me:10411: result: $ac_ct_RANLIB" >&5
10412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10413 else
10414   echo "$as_me:10414: result: no" >&5
10415 echo "${ECHO_T}no" >&6
10416 fi
10417
10418   RANLIB=$ac_ct_RANLIB
10419 else
10420   RANLIB="$ac_cv_prog_RANLIB"
10421 fi
10422
10423 echo "$as_me:10423: checking for inline" >&5
10424 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10425 if test "${ac_cv_c_inline+set}" = set; then
10426   echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428   ac_cv_c_inline=no
10429 for ac_kw in inline __inline__ __inline; do
10430   cat >conftest.$ac_ext <<_ACEOF
10431 #line 10431 "configure"
10432 #include "confdefs.h"
10433 #ifndef __cplusplus
10434 static $ac_kw int static_foo () {return 0; }
10435 $ac_kw int foo () {return 0; }
10436 #endif
10437
10438 _ACEOF
10439 rm -f conftest.$ac_objext
10440 if { (eval echo "$as_me:10440: \"$ac_compile\"") >&5
10441   (eval $ac_compile) 2>&5
10442   ac_status=$?
10443   echo "$as_me:10443: \$? = $ac_status" >&5
10444   (exit $ac_status); } &&
10445          { ac_try='test -s conftest.$ac_objext'
10446   { (eval echo "$as_me:10446: \"$ac_try\"") >&5
10447   (eval $ac_try) 2>&5
10448   ac_status=$?
10449   echo "$as_me:10449: \$? = $ac_status" >&5
10450   (exit $ac_status); }; }; then
10451   ac_cv_c_inline=$ac_kw; break
10452 else
10453   echo "$as_me: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10455 fi
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10457 done
10458
10459 fi
10460 echo "$as_me:10460: result: $ac_cv_c_inline" >&5
10461 echo "${ECHO_T}$ac_cv_c_inline" >&6
10462 case $ac_cv_c_inline in
10463   inline | yes) ;;
10464   no)
10465 cat >>confdefs.h <<\EOF
10466 #define inline
10467 EOF
10468  ;;
10469   *)  cat >>confdefs.h <<EOF
10470 #define inline $ac_cv_c_inline
10471 EOF
10472  ;;
10473 esac
10474
10475 echo "$as_me:10475: checking for size_t" >&5
10476 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10477 if test "${ac_cv_type_size_t+set}" = set; then
10478   echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480   cat >conftest.$ac_ext <<_ACEOF
10481 #line 10481 "configure"
10482 #include "confdefs.h"
10483 $ac_includes_default
10484 int
10485 main ()
10486 {
10487 if ((size_t *) 0)
10488   return 0;
10489 if (sizeof (size_t))
10490   return 0;
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:10496: \"$ac_compile\"") >&5
10497   (eval $ac_compile) 2>&5
10498   ac_status=$?
10499   echo "$as_me:10499: \$? = $ac_status" >&5
10500   (exit $ac_status); } &&
10501          { ac_try='test -s conftest.$ac_objext'
10502   { (eval echo "$as_me:10502: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:10505: \$? = $ac_status" >&5
10506   (exit $ac_status); }; }; then
10507   ac_cv_type_size_t=yes
10508 else
10509   echo "$as_me: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 ac_cv_type_size_t=no
10512 fi
10513 rm -f conftest.$ac_objext conftest.$ac_ext
10514 fi
10515 echo "$as_me:10515: result: $ac_cv_type_size_t" >&5
10516 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10517 if test $ac_cv_type_size_t = yes; then
10518   :
10519 else
10520
10521 cat >>confdefs.h <<EOF
10522 #define size_t unsigned
10523 EOF
10524
10525 fi
10526
10527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10528 # for constant arguments.  Useless!
10529 echo "$as_me:10529: checking for working alloca.h" >&5
10530 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10531 if test "${ac_cv_working_alloca_h+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534   cat >conftest.$ac_ext <<_ACEOF
10535 #line 10535 "configure"
10536 #include "confdefs.h"
10537 #include <alloca.h>
10538 int
10539 main ()
10540 {
10541 char *p = (char *) alloca (2 * sizeof (int));
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:10547: \"$ac_link\"") >&5
10548   (eval $ac_link) 2>&5
10549   ac_status=$?
10550   echo "$as_me:10550: \$? = $ac_status" >&5
10551   (exit $ac_status); } &&
10552          { ac_try='test -s conftest$ac_exeext'
10553   { (eval echo "$as_me:10553: \"$ac_try\"") >&5
10554   (eval $ac_try) 2>&5
10555   ac_status=$?
10556   echo "$as_me:10556: \$? = $ac_status" >&5
10557   (exit $ac_status); }; }; then
10558   ac_cv_working_alloca_h=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_working_alloca_h=no
10563 fi
10564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10565 fi
10566 echo "$as_me:10566: result: $ac_cv_working_alloca_h" >&5
10567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10568 if test $ac_cv_working_alloca_h = yes; then
10569
10570 cat >>confdefs.h <<\EOF
10571 #define HAVE_ALLOCA_H 1
10572 EOF
10573
10574 fi
10575
10576 echo "$as_me:10576: checking for alloca" >&5
10577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10578 if test "${ac_cv_func_alloca_works+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 #line 10582 "configure"
10583 #include "confdefs.h"
10584 #ifdef __GNUC__
10585 # define alloca __builtin_alloca
10586 #else
10587 # ifdef _MSC_VER
10588 #  include <malloc.h>
10589 #  define alloca _alloca
10590 # else
10591 #  if HAVE_ALLOCA_H
10592 #   include <alloca.h>
10593 #  else
10594 #   ifdef _AIX
10595  #pragma alloca
10596 #   else
10597 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10598 char *alloca ();
10599 #    endif
10600 #   endif
10601 #  endif
10602 # endif
10603 #endif
10604
10605 int
10606 main ()
10607 {
10608 char *p = (char *) alloca (1);
10609   ;
10610   return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (eval echo "$as_me:10614: \"$ac_link\"") >&5
10615   (eval $ac_link) 2>&5
10616   ac_status=$?
10617   echo "$as_me:10617: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -s conftest$ac_exeext'
10620   { (eval echo "$as_me:10620: \"$ac_try\"") >&5
10621   (eval $ac_try) 2>&5
10622   ac_status=$?
10623   echo "$as_me:10623: \$? = $ac_status" >&5
10624   (exit $ac_status); }; }; then
10625   ac_cv_func_alloca_works=yes
10626 else
10627   echo "$as_me: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10629 ac_cv_func_alloca_works=no
10630 fi
10631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10632 fi
10633 echo "$as_me:10633: result: $ac_cv_func_alloca_works" >&5
10634 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10635
10636 if test $ac_cv_func_alloca_works = yes; then
10637
10638 cat >>confdefs.h <<\EOF
10639 #define HAVE_ALLOCA 1
10640 EOF
10641
10642 else
10643   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10644 # that cause trouble.  Some versions do not even contain alloca or
10645 # contain a buggy version.  If you still want to use their alloca,
10646 # use ar to extract alloca.o from them instead of compiling alloca.c.
10647
10648 ALLOCA=alloca.$ac_objext
10649
10650 cat >>confdefs.h <<\EOF
10651 #define C_ALLOCA 1
10652 EOF
10653
10654 echo "$as_me:10654: checking whether \`alloca.c' needs Cray hooks" >&5
10655 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10656 if test "${ac_cv_os_cray+set}" = set; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659   cat >conftest.$ac_ext <<_ACEOF
10660 #line 10660 "configure"
10661 #include "confdefs.h"
10662 #if defined(CRAY) && ! defined(CRAY2)
10663 webecray
10664 #else
10665 wenotbecray
10666 #endif
10667
10668 _ACEOF
10669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670   egrep "webecray" >/dev/null 2>&1; then
10671   ac_cv_os_cray=yes
10672 else
10673   ac_cv_os_cray=no
10674 fi
10675 rm -f conftest*
10676
10677 fi
10678 echo "$as_me:10678: result: $ac_cv_os_cray" >&5
10679 echo "${ECHO_T}$ac_cv_os_cray" >&6
10680 if test $ac_cv_os_cray = yes; then
10681   for ac_func in _getb67 GETB67 getb67; do
10682     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 echo "$as_me:10683: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_var+set}\" = set"; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   cat >conftest.$ac_ext <<_ACEOF
10689 #line 10689 "configure"
10690 #include "confdefs.h"
10691 /* System header to define __stub macros and hopefully few prototypes,
10692     which can conflict with char $ac_func (); below.  */
10693 #include <assert.h>
10694 /* Override any gcc2 internal prototype to avoid an error.  */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 /* We use char because int might match the return type of a gcc2
10699    builtin and then its argument prototype would still apply.  */
10700 char $ac_func ();
10701 char (*f) ();
10702
10703 int
10704 main ()
10705 {
10706 /* The GNU C library defines this for functions which it implements
10707     to always fail with ENOSYS.  Some functions are actually named
10708     something starting with __ and the normal name is an alias.  */
10709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710 choke me
10711 #else
10712 f = $ac_func;
10713 #endif
10714
10715   ;
10716   return 0;
10717 }
10718 _ACEOF
10719 rm -f conftest.$ac_objext conftest$ac_exeext
10720 if { (eval echo "$as_me:10720: \"$ac_link\"") >&5
10721   (eval $ac_link) 2>&5
10722   ac_status=$?
10723   echo "$as_me:10723: \$? = $ac_status" >&5
10724   (exit $ac_status); } &&
10725          { ac_try='test -s conftest$ac_exeext'
10726   { (eval echo "$as_me:10726: \"$ac_try\"") >&5
10727   (eval $ac_try) 2>&5
10728   ac_status=$?
10729   echo "$as_me:10729: \$? = $ac_status" >&5
10730   (exit $ac_status); }; }; then
10731   eval "$as_ac_var=yes"
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 cat conftest.$ac_ext >&5
10735 eval "$as_ac_var=no"
10736 fi
10737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10738 fi
10739 echo "$as_me:10739: result: `eval echo '${'$as_ac_var'}'`" >&5
10740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10741 if test `eval echo '${'$as_ac_var'}'` = yes; then
10742
10743 cat >>confdefs.h <<EOF
10744 #define CRAY_STACKSEG_END $ac_func
10745 EOF
10746
10747     break
10748 fi
10749
10750   done
10751 fi
10752
10753 echo "$as_me:10753: checking stack direction for C alloca" >&5
10754 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10755 if test "${ac_cv_c_stack_direction+set}" = set; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   if test "$cross_compiling" = yes; then
10759   ac_cv_c_stack_direction=0
10760 else
10761   cat >conftest.$ac_ext <<_ACEOF
10762 #line 10762 "configure"
10763 #include "confdefs.h"
10764 int
10765 find_stack_direction ()
10766 {
10767   static char *addr = 0;
10768   auto char dummy;
10769   if (addr == 0)
10770     {
10771       addr = &dummy;
10772       return find_stack_direction ();
10773     }
10774   else
10775     return (&dummy > addr) ? 1 : -1;
10776 }
10777
10778 int
10779 main ()
10780 {
10781   exit (find_stack_direction () < 0);
10782 }
10783 _ACEOF
10784 rm -f conftest$ac_exeext
10785 if { (eval echo "$as_me:10785: \"$ac_link\"") >&5
10786   (eval $ac_link) 2>&5
10787   ac_status=$?
10788   echo "$as_me:10788: \$? = $ac_status" >&5
10789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10790   { (eval echo "$as_me:10790: \"$ac_try\"") >&5
10791   (eval $ac_try) 2>&5
10792   ac_status=$?
10793   echo "$as_me:10793: \$? = $ac_status" >&5
10794   (exit $ac_status); }; }; then
10795   ac_cv_c_stack_direction=1
10796 else
10797   echo "$as_me: program exited with status $ac_status" >&5
10798 echo "$as_me: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 ac_cv_c_stack_direction=-1
10801 fi
10802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10803 fi
10804 fi
10805 echo "$as_me:10805: result: $ac_cv_c_stack_direction" >&5
10806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10807
10808 cat >>confdefs.h <<EOF
10809 #define STACK_DIRECTION $ac_cv_c_stack_direction
10810 EOF
10811
10812 fi
10813
10814 for ac_header in stdlib.h unistd.h
10815 do
10816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 echo "$as_me:10817: checking for $ac_header" >&5
10818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   cat >conftest.$ac_ext <<_ACEOF
10823 #line 10823 "configure"
10824 #include "confdefs.h"
10825 #include <$ac_header>
10826 _ACEOF
10827 if { (eval echo "$as_me:10827: \"$ac_cpp conftest.$ac_ext\"") >&5
10828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10829   ac_status=$?
10830   egrep -v '^ *\+' conftest.er1 >conftest.err
10831   rm -f conftest.er1
10832   cat conftest.err >&5
10833   echo "$as_me:10833: \$? = $ac_status" >&5
10834   (exit $ac_status); } >/dev/null; then
10835   if test -s conftest.err; then
10836     ac_cpp_err=$ac_c_preproc_warn_flag
10837   else
10838     ac_cpp_err=
10839   fi
10840 else
10841   ac_cpp_err=yes
10842 fi
10843 if test -z "$ac_cpp_err"; then
10844   eval "$as_ac_Header=yes"
10845 else
10846   echo "$as_me: failed program was:" >&5
10847   cat conftest.$ac_ext >&5
10848   eval "$as_ac_Header=no"
10849 fi
10850 rm -f conftest.err conftest.$ac_ext
10851 fi
10852 echo "$as_me:10852: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10855   cat >>confdefs.h <<EOF
10856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857 EOF
10858
10859 fi
10860 done
10861
10862 for ac_func in getpagesize
10863 do
10864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10865 echo "$as_me:10865: checking for $ac_func" >&5
10866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_var+set}\" = set"; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   cat >conftest.$ac_ext <<_ACEOF
10871 #line 10871 "configure"
10872 #include "confdefs.h"
10873 /* System header to define __stub macros and hopefully few prototypes,
10874     which can conflict with char $ac_func (); below.  */
10875 #include <assert.h>
10876 /* Override any gcc2 internal prototype to avoid an error.  */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 /* We use char because int might match the return type of a gcc2
10881    builtin and then its argument prototype would still apply.  */
10882 char $ac_func ();
10883 char (*f) ();
10884
10885 int
10886 main ()
10887 {
10888 /* The GNU C library defines this for functions which it implements
10889     to always fail with ENOSYS.  Some functions are actually named
10890     something starting with __ and the normal name is an alias.  */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10892 choke me
10893 #else
10894 f = $ac_func;
10895 #endif
10896
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:10902: \"$ac_link\"") >&5
10903   (eval $ac_link) 2>&5
10904   ac_status=$?
10905   echo "$as_me:10905: \$? = $ac_status" >&5
10906   (exit $ac_status); } &&
10907          { ac_try='test -s conftest$ac_exeext'
10908   { (eval echo "$as_me:10908: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:10911: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   eval "$as_ac_var=yes"
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 eval "$as_ac_var=no"
10918 fi
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 fi
10921 echo "$as_me:10921: result: `eval echo '${'$as_ac_var'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924   cat >>confdefs.h <<EOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 EOF
10927
10928 fi
10929 done
10930
10931 echo "$as_me:10931: checking for working mmap" >&5
10932 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10933 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   if test "$cross_compiling" = yes; then
10937   ac_cv_func_mmap_fixed_mapped=no
10938 else
10939   cat >conftest.$ac_ext <<_ACEOF
10940 #line 10940 "configure"
10941 #include "confdefs.h"
10942 $ac_includes_default
10943 /* Thanks to Mike Haertel and Jim Avera for this test.
10944    Here is a matrix of mmap possibilities:
10945         mmap private not fixed
10946         mmap private fixed at somewhere currently unmapped
10947         mmap private fixed at somewhere already mapped
10948         mmap shared not fixed
10949         mmap shared fixed at somewhere currently unmapped
10950         mmap shared fixed at somewhere already mapped
10951    For private mappings, we should verify that changes cannot be read()
10952    back from the file, nor mmap's back from the file at a different
10953    address.  (There have been systems where private was not correctly
10954    implemented like the infamous i386 svr4.0, and systems where the
10955    VM page cache was not coherent with the file system buffer cache
10956    like early versions of FreeBSD and possibly contemporary NetBSD.)
10957    For shared mappings, we should conversely verify that changes get
10958    propogated back to all the places they're supposed to be.
10959
10960    Grep wants private fixed already mapped.
10961    The main things grep needs to know about mmap are:
10962    * does it exist and is it safe to write into the mmap'd area
10963    * how to use it (BSD variants)  */
10964
10965 #include <fcntl.h>
10966 #include <sys/mman.h>
10967
10968 #if !STDC_HEADERS && !HAVE_STDLIB_H
10969 char *malloc ();
10970 #endif
10971
10972 /* This mess was copied from the GNU getpagesize.h.  */
10973 #if !HAVE_GETPAGESIZE
10974 /* Assume that all systems that can run configure have sys/param.h.  */
10975 # if !HAVE_SYS_PARAM_H
10976 #  define HAVE_SYS_PARAM_H 1
10977 # endif
10978
10979 # ifdef _SC_PAGESIZE
10980 #  define getpagesize() sysconf(_SC_PAGESIZE)
10981 # else /* no _SC_PAGESIZE */
10982 #  if HAVE_SYS_PARAM_H
10983 #   include <sys/param.h>
10984 #   ifdef EXEC_PAGESIZE
10985 #    define getpagesize() EXEC_PAGESIZE
10986 #   else /* no EXEC_PAGESIZE */
10987 #    ifdef NBPG
10988 #     define getpagesize() NBPG * CLSIZE
10989 #     ifndef CLSIZE
10990 #      define CLSIZE 1
10991 #     endif /* no CLSIZE */
10992 #    else /* no NBPG */
10993 #     ifdef NBPC
10994 #      define getpagesize() NBPC
10995 #     else /* no NBPC */
10996 #      ifdef PAGESIZE
10997 #       define getpagesize() PAGESIZE
10998 #      endif /* PAGESIZE */
10999 #     endif /* no NBPC */
11000 #    endif /* no NBPG */
11001 #   endif /* no EXEC_PAGESIZE */
11002 #  else /* no HAVE_SYS_PARAM_H */
11003 #   define getpagesize() 8192   /* punt totally */
11004 #  endif /* no HAVE_SYS_PARAM_H */
11005 # endif /* no _SC_PAGESIZE */
11006
11007 #endif /* no HAVE_GETPAGESIZE */
11008
11009 int
11010 main ()
11011 {
11012   char *data, *data2, *data3;
11013   int i, pagesize;
11014   int fd;
11015
11016   pagesize = getpagesize ();
11017
11018   /* First, make a file with some known garbage in it. */
11019   data = (char *) malloc (pagesize);
11020   if (!data)
11021     exit (1);
11022   for (i = 0; i < pagesize; ++i)
11023     *(data + i) = rand ();
11024   umask (0);
11025   fd = creat ("conftest.mmap", 0600);
11026   if (fd < 0)
11027     exit (1);
11028   if (write (fd, data, pagesize) != pagesize)
11029     exit (1);
11030   close (fd);
11031
11032   /* Next, try to mmap the file at a fixed address which already has
11033      something else allocated at it.  If we can, also make sure that
11034      we see the same garbage.  */
11035   fd = open ("conftest.mmap", O_RDWR);
11036   if (fd < 0)
11037     exit (1);
11038   data2 = (char *) malloc (2 * pagesize);
11039   if (!data2)
11040     exit (1);
11041   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
11042   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11043                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11044     exit (1);
11045   for (i = 0; i < pagesize; ++i)
11046     if (*(data + i) != *(data2 + i))
11047       exit (1);
11048
11049   /* Finally, make sure that changes to the mapped area do not
11050      percolate back to the file as seen by read().  (This is a bug on
11051      some variants of i386 svr4.0.)  */
11052   for (i = 0; i < pagesize; ++i)
11053     *(data2 + i) = *(data2 + i) + 1;
11054   data3 = (char *) malloc (pagesize);
11055   if (!data3)
11056     exit (1);
11057   if (read (fd, data3, pagesize) != pagesize)
11058     exit (1);
11059   for (i = 0; i < pagesize; ++i)
11060     if (*(data + i) != *(data3 + i))
11061       exit (1);
11062   close (fd);
11063   exit (0);
11064 }
11065 _ACEOF
11066 rm -f conftest$ac_exeext
11067 if { (eval echo "$as_me:11067: \"$ac_link\"") >&5
11068   (eval $ac_link) 2>&5
11069   ac_status=$?
11070   echo "$as_me:11070: \$? = $ac_status" >&5
11071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11072   { (eval echo "$as_me:11072: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:11075: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ac_cv_func_mmap_fixed_mapped=yes
11078 else
11079   echo "$as_me: program exited with status $ac_status" >&5
11080 echo "$as_me: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11082 ac_cv_func_mmap_fixed_mapped=no
11083 fi
11084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11085 fi
11086 fi
11087 echo "$as_me:11087: result: $ac_cv_func_mmap_fixed_mapped" >&5
11088 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11089 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11090
11091 cat >>confdefs.h <<\EOF
11092 #define HAVE_MMAP 1
11093 EOF
11094
11095 fi
11096 rm -f conftest.mmap
11097
11098     echo "$as_me:11098: checking whether we are using the GNU C Library 2.1 or newer" >&5
11099 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11100 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 #line 11104 "configure"
11105 #include "confdefs.h"
11106
11107 #include <features.h>
11108 #ifdef __GNU_LIBRARY__
11109  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11110   Lucky GNU user
11111  #endif
11112 #endif
11113
11114 _ACEOF
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116   egrep "Lucky GNU user" >/dev/null 2>&1; then
11117   ac_cv_gnu_library_2_1=yes
11118 else
11119   ac_cv_gnu_library_2_1=no
11120 fi
11121 rm -f conftest*
11122
11123 fi
11124 echo "$as_me:11124: result: $ac_cv_gnu_library_2_1" >&5
11125 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11126
11127     GLIBC21="$ac_cv_gnu_library_2_1"
11128
11129 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11130 stdlib.h string.h unistd.h sys/param.h
11131 do
11132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133 echo "$as_me:11133: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   cat >conftest.$ac_ext <<_ACEOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11141 #include <$ac_header>
11142 _ACEOF
11143 if { (eval echo "$as_me:11143: \"$ac_cpp conftest.$ac_ext\"") >&5
11144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11145   ac_status=$?
11146   egrep -v '^ *\+' conftest.er1 >conftest.err
11147   rm -f conftest.er1
11148   cat conftest.err >&5
11149   echo "$as_me:11149: \$? = $ac_status" >&5
11150   (exit $ac_status); } >/dev/null; then
11151   if test -s conftest.err; then
11152     ac_cpp_err=$ac_c_preproc_warn_flag
11153   else
11154     ac_cpp_err=
11155   fi
11156 else
11157   ac_cpp_err=yes
11158 fi
11159 if test -z "$ac_cpp_err"; then
11160   eval "$as_ac_Header=yes"
11161 else
11162   echo "$as_me: failed program was:" >&5
11163   cat conftest.$ac_ext >&5
11164   eval "$as_ac_Header=no"
11165 fi
11166 rm -f conftest.err conftest.$ac_ext
11167 fi
11168 echo "$as_me:11168: result: `eval echo '${'$as_ac_Header'}'`" >&5
11169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11171   cat >>confdefs.h <<EOF
11172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11173 EOF
11174
11175 fi
11176 done
11177
11178 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
11179 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
11180 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
11181 do
11182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11183 echo "$as_me:11183: checking for $ac_func" >&5
11184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11185 if eval "test \"\${$as_ac_var+set}\" = set"; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   cat >conftest.$ac_ext <<_ACEOF
11189 #line 11189 "configure"
11190 #include "confdefs.h"
11191 /* System header to define __stub macros and hopefully few prototypes,
11192     which can conflict with char $ac_func (); below.  */
11193 #include <assert.h>
11194 /* Override any gcc2 internal prototype to avoid an error.  */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 /* We use char because int might match the return type of a gcc2
11199    builtin and then its argument prototype would still apply.  */
11200 char $ac_func ();
11201 char (*f) ();
11202
11203 int
11204 main ()
11205 {
11206 /* The GNU C library defines this for functions which it implements
11207     to always fail with ENOSYS.  Some functions are actually named
11208     something starting with __ and the normal name is an alias.  */
11209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11210 choke me
11211 #else
11212 f = $ac_func;
11213 #endif
11214
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:11220: \"$ac_link\"") >&5
11221   (eval $ac_link) 2>&5
11222   ac_status=$?
11223   echo "$as_me:11223: \$? = $ac_status" >&5
11224   (exit $ac_status); } &&
11225          { ac_try='test -s conftest$ac_exeext'
11226   { (eval echo "$as_me:11226: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:11229: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   eval "$as_ac_var=yes"
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11235 eval "$as_ac_var=no"
11236 fi
11237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11238 fi
11239 echo "$as_me:11239: result: `eval echo '${'$as_ac_var'}'`" >&5
11240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11241 if test `eval echo '${'$as_ac_var'}'` = yes; then
11242   cat >>confdefs.h <<EOF
11243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11244 EOF
11245
11246 fi
11247 done
11248
11249 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11250 if test "${with_libiconv_prefix+set}" = set; then
11251   withval="$with_libiconv_prefix"
11252
11253     for dir in `echo "$withval" | tr : ' '`; do
11254       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
11255       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
11256     done
11257
11258 fi;
11259
11260   echo "$as_me:11260: checking for iconv" >&5
11261 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11262 if test "${am_cv_func_iconv+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265
11266     am_cv_func_iconv="no, consider installing GNU libiconv"
11267     am_cv_lib_iconv=no
11268     cat >conftest.$ac_ext <<_ACEOF
11269 #line 11269 "configure"
11270 #include "confdefs.h"
11271 #include <stdlib.h>
11272 #include <iconv.h>
11273 int
11274 main ()
11275 {
11276 iconv_t cd = iconv_open("","");
11277        iconv(cd,NULL,NULL,NULL,NULL);
11278        iconv_close(cd);
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (eval echo "$as_me:11284: \"$ac_link\"") >&5
11285   (eval $ac_link) 2>&5
11286   ac_status=$?
11287   echo "$as_me:11287: \$? = $ac_status" >&5
11288   (exit $ac_status); } &&
11289          { ac_try='test -s conftest$ac_exeext'
11290   { (eval echo "$as_me:11290: \"$ac_try\"") >&5
11291   (eval $ac_try) 2>&5
11292   ac_status=$?
11293   echo "$as_me:11293: \$? = $ac_status" >&5
11294   (exit $ac_status); }; }; then
11295   am_cv_func_iconv=yes
11296 else
11297   echo "$as_me: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11299 fi
11300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11301     if test "$am_cv_func_iconv" != yes; then
11302       am_save_LIBS="$LIBS"
11303       LIBS="$LIBS -liconv"
11304       cat >conftest.$ac_ext <<_ACEOF
11305 #line 11305 "configure"
11306 #include "confdefs.h"
11307 #include <stdlib.h>
11308 #include <iconv.h>
11309 int
11310 main ()
11311 {
11312 iconv_t cd = iconv_open("","");
11313          iconv(cd,NULL,NULL,NULL,NULL);
11314          iconv_close(cd);
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:11320: \"$ac_link\"") >&5
11321   (eval $ac_link) 2>&5
11322   ac_status=$?
11323   echo "$as_me:11323: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -s conftest$ac_exeext'
11326   { (eval echo "$as_me:11326: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:11329: \$? = $ac_status" >&5
11330   (exit $ac_status); }; }; then
11331   am_cv_lib_iconv=yes
11332         am_cv_func_iconv=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11336 fi
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338       LIBS="$am_save_LIBS"
11339     fi
11340
11341 fi
11342 echo "$as_me:11342: result: $am_cv_func_iconv" >&5
11343 echo "${ECHO_T}$am_cv_func_iconv" >&6
11344   if test "$am_cv_func_iconv" = yes; then
11345
11346 cat >>confdefs.h <<\EOF
11347 #define HAVE_ICONV 1
11348 EOF
11349
11350     echo "$as_me:11350: checking for iconv declaration" >&5
11351 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11352     if test "${am_cv_proto_iconv+set}" = set; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355
11356       cat >conftest.$ac_ext <<_ACEOF
11357 #line 11357 "configure"
11358 #include "confdefs.h"
11359
11360 #include <stdlib.h>
11361 #include <iconv.h>
11362 extern
11363 #ifdef __cplusplus
11364 "C"
11365 #endif
11366 #if defined(__STDC__) || defined(__cplusplus)
11367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11368 #else
11369 size_t iconv();
11370 #endif
11371
11372 int
11373 main ()
11374 {
11375
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (eval echo "$as_me:11381: \"$ac_compile\"") >&5
11382   (eval $ac_compile) 2>&5
11383   ac_status=$?
11384   echo "$as_me:11384: \$? = $ac_status" >&5
11385   (exit $ac_status); } &&
11386          { ac_try='test -s conftest.$ac_objext'
11387   { (eval echo "$as_me:11387: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:11390: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   am_cv_proto_iconv_arg1=""
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11396 am_cv_proto_iconv_arg1="const"
11397 fi
11398 rm -f conftest.$ac_objext conftest.$ac_ext
11399       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11400 fi
11401
11402     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11403     echo "$as_me:11403: result: ${ac_t:-
11404          }$am_cv_proto_iconv" >&5
11405 echo "${ECHO_T}${ac_t:-
11406          }$am_cv_proto_iconv" >&6
11407
11408 cat >>confdefs.h <<EOF
11409 #define ICONV_CONST $am_cv_proto_iconv_arg1
11410 EOF
11411
11412   fi
11413   LIBICONV=
11414   if test "$am_cv_lib_iconv" = yes; then
11415     LIBICONV="-liconv"
11416   fi
11417
11418   echo "$as_me:11418: checking for nl_langinfo and CODESET" >&5
11419 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11420 if test "${am_cv_langinfo_codeset+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   cat >conftest.$ac_ext <<_ACEOF
11424 #line 11424 "configure"
11425 #include "confdefs.h"
11426 #include <langinfo.h>
11427 int
11428 main ()
11429 {
11430 char* cs = nl_langinfo(CODESET);
11431   ;
11432   return 0;
11433 }
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (eval echo "$as_me:11436: \"$ac_link\"") >&5
11437   (eval $ac_link) 2>&5
11438   ac_status=$?
11439   echo "$as_me:11439: \$? = $ac_status" >&5
11440   (exit $ac_status); } &&
11441          { ac_try='test -s conftest$ac_exeext'
11442   { (eval echo "$as_me:11442: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:11445: \$? = $ac_status" >&5
11446   (exit $ac_status); }; }; then
11447   am_cv_langinfo_codeset=yes
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 am_cv_langinfo_codeset=no
11452 fi
11453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454
11455 fi
11456 echo "$as_me:11456: result: $am_cv_langinfo_codeset" >&5
11457 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11458   if test $am_cv_langinfo_codeset = yes; then
11459
11460 cat >>confdefs.h <<\EOF
11461 #define HAVE_LANGINFO_CODESET 1
11462 EOF
11463
11464   fi
11465
11466    if test $ac_cv_header_locale_h = yes; then
11467     echo "$as_me:11467: checking for LC_MESSAGES" >&5
11468 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11469 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   cat >conftest.$ac_ext <<_ACEOF
11473 #line 11473 "configure"
11474 #include "confdefs.h"
11475 #include <locale.h>
11476 int
11477 main ()
11478 {
11479 return LC_MESSAGES
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (eval echo "$as_me:11485: \"$ac_link\"") >&5
11486   (eval $ac_link) 2>&5
11487   ac_status=$?
11488   echo "$as_me:11488: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -s conftest$ac_exeext'
11491   { (eval echo "$as_me:11491: \"$ac_try\"") >&5
11492   (eval $ac_try) 2>&5
11493   ac_status=$?
11494   echo "$as_me:11494: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }; then
11496   am_cv_val_LC_MESSAGES=yes
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11500 am_cv_val_LC_MESSAGES=no
11501 fi
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11503 fi
11504 echo "$as_me:11504: result: $am_cv_val_LC_MESSAGES" >&5
11505 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11506     if test $am_cv_val_LC_MESSAGES = yes; then
11507
11508 cat >>confdefs.h <<\EOF
11509 #define HAVE_LC_MESSAGES 1
11510 EOF
11511
11512     fi
11513   fi
11514    echo "$as_me:11514: checking whether NLS is requested" >&5
11515 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11516         # Check whether --enable-nls or --disable-nls was given.
11517 if test "${enable_nls+set}" = set; then
11518   enableval="$enable_nls"
11519   USE_NLS=$enableval
11520 else
11521   USE_NLS=yes
11522 fi;
11523     echo "$as_me:11523: result: $USE_NLS" >&5
11524 echo "${ECHO_T}$USE_NLS" >&6
11525
11526     BUILD_INCLUDED_LIBINTL=no
11527     USE_INCLUDED_LIBINTL=no
11528     INTLLIBS=
11529
11530         if test "$USE_NLS" = "yes"; then
11531
11532 cat >>confdefs.h <<\EOF
11533 #define ENABLE_NLS 1
11534 EOF
11535
11536       echo "$as_me:11536: checking whether included gettext is requested" >&5
11537 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11538
11539 # Check whether --with-included-gettext or --without-included-gettext was given.
11540 if test "${with_included_gettext+set}" = set; then
11541   withval="$with_included_gettext"
11542   nls_cv_force_use_gnu_gettext=$withval
11543 else
11544   nls_cv_force_use_gnu_gettext=no
11545 fi;
11546       echo "$as_me:11546: result: $nls_cv_force_use_gnu_gettext" >&5
11547 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11548
11549       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11550       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11551                                 CATOBJEXT=NONE
11552
11553         echo "$as_me:11553: checking for libintl.h" >&5
11554 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
11555 if test "${ac_cv_header_libintl_h+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   cat >conftest.$ac_ext <<_ACEOF
11559 #line 11559 "configure"
11560 #include "confdefs.h"
11561 #include <libintl.h>
11562 _ACEOF
11563 if { (eval echo "$as_me:11563: \"$ac_cpp conftest.$ac_ext\"") >&5
11564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11565   ac_status=$?
11566   egrep -v '^ *\+' conftest.er1 >conftest.err
11567   rm -f conftest.er1
11568   cat conftest.err >&5
11569   echo "$as_me:11569: \$? = $ac_status" >&5
11570   (exit $ac_status); } >/dev/null; then
11571   if test -s conftest.err; then
11572     ac_cpp_err=$ac_c_preproc_warn_flag
11573   else
11574     ac_cpp_err=
11575   fi
11576 else
11577   ac_cpp_err=yes
11578 fi
11579 if test -z "$ac_cpp_err"; then
11580   ac_cv_header_libintl_h=yes
11581 else
11582   echo "$as_me: failed program was:" >&5
11583   cat conftest.$ac_ext >&5
11584   ac_cv_header_libintl_h=no
11585 fi
11586 rm -f conftest.err conftest.$ac_ext
11587 fi
11588 echo "$as_me:11588: result: $ac_cv_header_libintl_h" >&5
11589 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
11590 if test $ac_cv_header_libintl_h = yes; then
11591   echo "$as_me:11591: checking for GNU gettext in libc" >&5
11592 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11593 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   cat >conftest.$ac_ext <<_ACEOF
11597 #line 11597 "configure"
11598 #include "confdefs.h"
11599 #include <libintl.h>
11600 extern int _nl_msg_cat_cntr;
11601 int
11602 main ()
11603 {
11604 bindtextdomain ("", "");
11605 return (int) gettext ("") + _nl_msg_cat_cntr
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:11611: \"$ac_link\"") >&5
11612   (eval $ac_link) 2>&5
11613   ac_status=$?
11614   echo "$as_me:11614: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest$ac_exeext'
11617   { (eval echo "$as_me:11617: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:11620: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   gt_cv_func_gnugettext1_libc=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 gt_cv_func_gnugettext1_libc=no
11627 fi
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11629 fi
11630 echo "$as_me:11630: result: $gt_cv_func_gnugettext1_libc" >&5
11631 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11632
11633            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11634              echo "$as_me:11634: checking for GNU gettext in libintl" >&5
11635 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11636 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   gt_save_LIBS="$LIBS"
11640                 LIBS="$LIBS -lintl $LIBICONV"
11641                 cat >conftest.$ac_ext <<_ACEOF
11642 #line 11642 "configure"
11643 #include "confdefs.h"
11644 #include <libintl.h>
11645 extern int _nl_msg_cat_cntr;
11646 int
11647 main ()
11648 {
11649 bindtextdomain ("", "");
11650 return (int) gettext ("") + _nl_msg_cat_cntr
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:11656: \"$ac_link\"") >&5
11657   (eval $ac_link) 2>&5
11658   ac_status=$?
11659   echo "$as_me:11659: \$? = $ac_status" >&5
11660   (exit $ac_status); } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (eval echo "$as_me:11662: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:11665: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   gt_cv_func_gnugettext1_libintl=yes
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 gt_cv_func_gnugettext1_libintl=no
11672 fi
11673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11674                 LIBS="$gt_save_LIBS"
11675 fi
11676 echo "$as_me:11676: result: $gt_cv_func_gnugettext1_libintl" >&5
11677 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11678            fi
11679
11680                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11681               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11682                    && test "$PACKAGE" != gettext; }; then
11683
11684 cat >>confdefs.h <<\EOF
11685 #define HAVE_GETTEXT 1
11686 EOF
11687
11688              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11689                                        INTLLIBS="-lintl $LIBICONV"
11690              fi
11691
11692              gt_save_LIBS="$LIBS"
11693              LIBS="$LIBS $INTLLIBS"
11694
11695 for ac_func in dcgettext
11696 do
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 echo "$as_me:11698: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11700 if eval "test \"\${$as_ac_var+set}\" = set"; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   cat >conftest.$ac_ext <<_ACEOF
11704 #line 11704 "configure"
11705 #include "confdefs.h"
11706 /* System header to define __stub macros and hopefully few prototypes,
11707     which can conflict with char $ac_func (); below.  */
11708 #include <assert.h>
11709 /* Override any gcc2 internal prototype to avoid an error.  */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714    builtin and then its argument prototype would still apply.  */
11715 char $ac_func ();
11716 char (*f) ();
11717
11718 int
11719 main ()
11720 {
11721 /* The GNU C library defines this for functions which it implements
11722     to always fail with ENOSYS.  Some functions are actually named
11723     something starting with __ and the normal name is an alias.  */
11724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11725 choke me
11726 #else
11727 f = $ac_func;
11728 #endif
11729
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (eval echo "$as_me:11735: \"$ac_link\"") >&5
11736   (eval $ac_link) 2>&5
11737   ac_status=$?
11738   echo "$as_me:11738: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -s conftest$ac_exeext'
11741   { (eval echo "$as_me:11741: \"$ac_try\"") >&5
11742   (eval $ac_try) 2>&5
11743   ac_status=$?
11744   echo "$as_me:11744: \$? = $ac_status" >&5
11745   (exit $ac_status); }; }; then
11746   eval "$as_ac_var=yes"
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 eval "$as_ac_var=no"
11751 fi
11752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11753 fi
11754 echo "$as_me:11754: result: `eval echo '${'$as_ac_var'}'`" >&5
11755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11756 if test `eval echo '${'$as_ac_var'}'` = yes; then
11757   cat >>confdefs.h <<EOF
11758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759 EOF
11760
11761 fi
11762 done
11763
11764              LIBS="$gt_save_LIBS"
11765
11766              # Extract the first word of "msgfmt", so it can be a program name with args.
11767 set dummy msgfmt; ac_word=$2
11768 echo "$as_me:11768: checking for $ac_word" >&5
11769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11770 if test "${ac_cv_path_MSGFMT+set}" = set; then
11771   echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773   case "$MSGFMT" in
11774   /*)
11775   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11776   ;;
11777   *)
11778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11779   for ac_dir in $PATH; do
11780     test -z "$ac_dir" && ac_dir=.
11781     if test -f $ac_dir/$ac_word; then
11782       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11783         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11784         break
11785       fi
11786     fi
11787   done
11788   IFS="$ac_save_ifs"
11789   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11790   ;;
11791 esac
11792 fi
11793 MSGFMT="$ac_cv_path_MSGFMT"
11794 if test -n "$MSGFMT"; then
11795   echo "$as_me:11795: result: $MSGFMT" >&5
11796 echo "${ECHO_T}$MSGFMT" >&6
11797 else
11798   echo "$as_me:11798: result: no" >&5
11799 echo "${ECHO_T}no" >&6
11800 fi
11801              if test "$MSGFMT" != "no"; then
11802                # Extract the first word of "gmsgfmt", so it can be a program name with args.
11803 set dummy gmsgfmt; ac_word=$2
11804 echo "$as_me:11804: checking for $ac_word" >&5
11805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11806 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   case $GMSGFMT in
11810   [\\/]* | ?:[\\/]*)
11811   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11812   ;;
11813   *)
11814   ac_save_IFS=$IFS; IFS=$ac_path_separator
11815 ac_dummy="$PATH"
11816 for ac_dir in $ac_dummy; do
11817   IFS=$ac_save_IFS
11818   test -z "$ac_dir" && ac_dir=.
11819   if $as_executable_p "$ac_dir/$ac_word"; then
11820    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
11821    echo "$as_me:11821: found $ac_dir/$ac_word" >&5
11822    break
11823 fi
11824 done
11825
11826   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11827   ;;
11828 esac
11829 fi
11830 GMSGFMT=$ac_cv_path_GMSGFMT
11831
11832 if test -n "$GMSGFMT"; then
11833   echo "$as_me:11833: result: $GMSGFMT" >&5
11834 echo "${ECHO_T}$GMSGFMT" >&6
11835 else
11836   echo "$as_me:11836: result: no" >&5
11837 echo "${ECHO_T}no" >&6
11838 fi
11839
11840              fi
11841
11842              # Extract the first word of "xgettext", so it can be a program name with args.
11843 set dummy xgettext; ac_word=$2
11844 echo "$as_me:11844: checking for $ac_word" >&5
11845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11846 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   case "$XGETTEXT" in
11850   /*)
11851   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11852   ;;
11853   *)
11854   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11855   for ac_dir in $PATH; do
11856     test -z "$ac_dir" && ac_dir=.
11857     if test -f $ac_dir/$ac_word; then
11858       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11859         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11860         break
11861       fi
11862     fi
11863   done
11864   IFS="$ac_save_ifs"
11865   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11866   ;;
11867 esac
11868 fi
11869 XGETTEXT="$ac_cv_path_XGETTEXT"
11870 if test -n "$XGETTEXT"; then
11871   echo "$as_me:11871: result: $XGETTEXT" >&5
11872 echo "${ECHO_T}$XGETTEXT" >&6
11873 else
11874   echo "$as_me:11874: result: no" >&5
11875 echo "${ECHO_T}no" >&6
11876 fi
11877
11878              CATOBJEXT=.gmo
11879            fi
11880
11881 fi
11882
11883         if test "$CATOBJEXT" = "NONE"; then
11884                           nls_cv_use_gnu_gettext=yes
11885         fi
11886       fi
11887
11888       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11889                 INTLOBJS="\$(GETTOBJS)"
11890         # Extract the first word of "msgfmt", so it can be a program name with args.
11891 set dummy msgfmt; ac_word=$2
11892 echo "$as_me:11892: checking for $ac_word" >&5
11893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11894 if test "${ac_cv_path_MSGFMT+set}" = set; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   case "$MSGFMT" in
11898   /*)
11899   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11900   ;;
11901   *)
11902   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11903   for ac_dir in $PATH; do
11904     test -z "$ac_dir" && ac_dir=.
11905     if test -f $ac_dir/$ac_word; then
11906       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11907         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11908         break
11909       fi
11910     fi
11911   done
11912   IFS="$ac_save_ifs"
11913   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
11914   ;;
11915 esac
11916 fi
11917 MSGFMT="$ac_cv_path_MSGFMT"
11918 if test -n "$MSGFMT"; then
11919   echo "$as_me:11919: result: $MSGFMT" >&5
11920 echo "${ECHO_T}$MSGFMT" >&6
11921 else
11922   echo "$as_me:11922: result: no" >&5
11923 echo "${ECHO_T}no" >&6
11924 fi
11925
11926         # Extract the first word of "gmsgfmt", so it can be a program name with args.
11927 set dummy gmsgfmt; ac_word=$2
11928 echo "$as_me:11928: checking for $ac_word" >&5
11929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   case $GMSGFMT in
11934   [\\/]* | ?:[\\/]*)
11935   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11936   ;;
11937   *)
11938   ac_save_IFS=$IFS; IFS=$ac_path_separator
11939 ac_dummy="$PATH"
11940 for ac_dir in $ac_dummy; do
11941   IFS=$ac_save_IFS
11942   test -z "$ac_dir" && ac_dir=.
11943   if $as_executable_p "$ac_dir/$ac_word"; then
11944    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
11945    echo "$as_me:11945: found $ac_dir/$ac_word" >&5
11946    break
11947 fi
11948 done
11949
11950   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11951   ;;
11952 esac
11953 fi
11954 GMSGFMT=$ac_cv_path_GMSGFMT
11955
11956 if test -n "$GMSGFMT"; then
11957   echo "$as_me:11957: result: $GMSGFMT" >&5
11958 echo "${ECHO_T}$GMSGFMT" >&6
11959 else
11960   echo "$as_me:11960: result: no" >&5
11961 echo "${ECHO_T}no" >&6
11962 fi
11963
11964         # Extract the first word of "xgettext", so it can be a program name with args.
11965 set dummy xgettext; ac_word=$2
11966 echo "$as_me:11966: checking for $ac_word" >&5
11967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11968 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   case "$XGETTEXT" in
11972   /*)
11973   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11974   ;;
11975   *)
11976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11977   for ac_dir in $PATH; do
11978     test -z "$ac_dir" && ac_dir=.
11979     if test -f $ac_dir/$ac_word; then
11980       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11981         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11982         break
11983       fi
11984     fi
11985   done
11986   IFS="$ac_save_ifs"
11987   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11988   ;;
11989 esac
11990 fi
11991 XGETTEXT="$ac_cv_path_XGETTEXT"
11992 if test -n "$XGETTEXT"; then
11993   echo "$as_me:11993: result: $XGETTEXT" >&5
11994 echo "${ECHO_T}$XGETTEXT" >&6
11995 else
11996   echo "$as_me:11996: result: no" >&5
11997 echo "${ECHO_T}no" >&6
11998 fi
11999
12000         BUILD_INCLUDED_LIBINTL=yes
12001         USE_INCLUDED_LIBINTL=yes
12002         CATOBJEXT=.gmo
12003         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
12004         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12005       fi
12006
12007             if test "$XGETTEXT" != ":"; then
12008                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12009           : ;
12010         else
12011           echo "$as_me:12011: result: found xgettext program is not GNU xgettext; ignore it" >&5
12012 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12013           XGETTEXT=":"
12014         fi
12015       fi
12016
12017             POSUB=po
12018     fi
12019     ac_config_commands="$ac_config_commands default-2"
12020
12021             if test "$PACKAGE" = gettext; then
12022       BUILD_INCLUDED_LIBINTL=yes
12023     fi
12024
12025                                             for ac_prog in bison
12026 do
12027   # Extract the first word of "$ac_prog", so it can be a program name with args.
12028 set dummy $ac_prog; ac_word=$2
12029 echo "$as_me:12029: checking for $ac_word" >&5
12030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12032   echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034   if test -n "$INTLBISON"; then
12035   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12036 else
12037   ac_save_IFS=$IFS; IFS=$ac_path_separator
12038 ac_dummy="$PATH"
12039 for ac_dir in $ac_dummy; do
12040   IFS=$ac_save_IFS
12041   test -z "$ac_dir" && ac_dir=.
12042   $as_executable_p "$ac_dir/$ac_word" || continue
12043 ac_cv_prog_INTLBISON="$ac_prog"
12044 echo "$as_me:12044: found $ac_dir/$ac_word" >&5
12045 break
12046 done
12047
12048 fi
12049 fi
12050 INTLBISON=$ac_cv_prog_INTLBISON
12051 if test -n "$INTLBISON"; then
12052   echo "$as_me:12052: result: $INTLBISON" >&5
12053 echo "${ECHO_T}$INTLBISON" >&6
12054 else
12055   echo "$as_me:12055: result: no" >&5
12056 echo "${ECHO_T}no" >&6
12057 fi
12058
12059   test -n "$INTLBISON" && break
12060 done
12061
12062     if test -z "$INTLBISON"; then
12063       ac_verc_fail=yes
12064     else
12065             echo "$as_me:12065: checking version of bison" >&5
12066 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12067       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12068       case $ac_prog_version in
12069         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12070         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12071            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12072         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12073       esac
12074       echo "$as_me:12074: result: $ac_prog_version" >&5
12075 echo "${ECHO_T}$ac_prog_version" >&6
12076     fi
12077     if test $ac_verc_fail = yes; then
12078       INTLBISON=:
12079     fi
12080
12081                 for lang in $ALL_LINGUAS; do
12082       GMOFILES="$GMOFILES $lang.gmo"
12083       POFILES="$POFILES $lang.po"
12084     done
12085
12086         nls_cv_header_intl=
12087     nls_cv_header_libgt=
12088
12089         DATADIRNAME=share
12090
12091         INSTOBJEXT=.mo
12092
12093         GENCAT=gencat
12094
12095    if test "x$CATOBJEXT" != "x"; then
12096      if test "x$ALL_LINGUAS" = "x"; then
12097        LINGUAS=
12098      else
12099        echo "$as_me:12099: checking for catalogs to be installed" >&5
12100 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12101        NEW_LINGUAS=
12102        for presentlang in $ALL_LINGUAS; do
12103          useit=no
12104          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
12105            # Use the presentlang catalog if desiredlang is
12106            #   a. equal to presentlang, or
12107            #   b. a variant of presentlang (because in this case,
12108            #      presentlang can be used as a fallback for messages
12109            #      which are not translated in the desiredlang catalog).
12110            case "$desiredlang" in
12111              "$presentlang"*) useit=yes;;
12112            esac
12113          done
12114          if test $useit = yes; then
12115            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12116          fi
12117        done
12118        LINGUAS=$NEW_LINGUAS
12119        echo "$as_me:12119: result: $LINGUAS" >&5
12120 echo "${ECHO_T}$LINGUAS" >&6
12121      fi
12122
12123           if test -n "$LINGUAS"; then
12124        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12125      fi
12126    fi
12127
12128             MKINSTALLDIRS=
12129    if test -n "$ac_aux_dir"; then
12130      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12131    fi
12132    if test -z "$MKINSTALLDIRS"; then
12133      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12134    fi
12135
12136       INTL_LIBTOOL_SUFFIX_PREFIX=
12137
12138 ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in doc/Makefile man/Makefile man/ja/Makefile man/pl/Makefile man/pt_BR/Makefile libmisc/Makefile lib/Makefile src/Makefile contrib/Makefile debian/Makefile etc/Makefile etc/pam.d/Makefile shadow-utils.spec"
12139 cat >confcache <<\_ACEOF
12140 # This file is a shell script that caches the results of configure
12141 # tests run on this system so they can be shared between configure
12142 # scripts and configure runs, see configure's option --config-cache.
12143 # It is not useful on other systems.  If it contains results you don't
12144 # want to keep, you may remove or edit it.
12145 #
12146 # config.status only pays attention to the cache file if you give it
12147 # the --recheck option to rerun configure.
12148 #
12149 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12151 # following values.
12152
12153 _ACEOF
12154
12155 # The following way of writing the cache mishandles newlines in values,
12156 # but we know of no workaround that is simple, portable, and efficient.
12157 # So, don't put newlines in cache variables' values.
12158 # Ultrix sh set writes to stderr and can't be redirected directly,
12159 # and sets the high bit in the cache file unless we assign to the vars.
12160 {
12161   (set) 2>&1 |
12162     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12163     *ac_space=\ *)
12164       # `set' does not quote correctly, so add quotes (double-quote
12165       # substitution turns \\\\ into \\, and sed turns \\ into \).
12166       sed -n \
12167         "s/'/'\\\\''/g;
12168           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12169       ;;
12170     *)
12171       # `set' quotes correctly as required by POSIX, so do not add quotes.
12172       sed -n \
12173         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12174       ;;
12175     esac;
12176 } |
12177   sed '
12178      t clear
12179      : clear
12180      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12181      t end
12182      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12183      : end' >>confcache
12184 if cmp -s $cache_file confcache; then :; else
12185   if test -w $cache_file; then
12186     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12187     cat confcache >$cache_file
12188   else
12189     echo "not updating unwritable cache $cache_file"
12190   fi
12191 fi
12192 rm -f confcache
12193
12194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12195 # Let make expand exec_prefix.
12196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12197
12198 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12199 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12200 # trailing colons and then remove the whole line if VPATH becomes empty
12201 # (actually we leave an empty line to preserve line numbers).
12202 if test "x$srcdir" = x.; then
12203   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12204 s/:*\$(srcdir):*/:/;
12205 s/:*\${srcdir}:*/:/;
12206 s/:*@srcdir@:*/:/;
12207 s/^\([^=]*=[    ]*\):*/\1/;
12208 s/:*$//;
12209 s/^[^=]*=[      ]*$//;
12210 }'
12211 fi
12212
12213 DEFS=-DHAVE_CONFIG_H
12214
12215 : ${CONFIG_STATUS=./config.status}
12216 ac_clean_files_save=$ac_clean_files
12217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12218 { echo "$as_me:12218: creating $CONFIG_STATUS" >&5
12219 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12220 cat >$CONFIG_STATUS <<_ACEOF
12221 #! $SHELL
12222 # Generated automatically by configure.
12223 # Run this file to recreate the current configuration.
12224 # Compiler output produced by configure, useful for debugging
12225 # configure, is in config.log if it exists.
12226
12227 debug=false
12228 SHELL=\${CONFIG_SHELL-$SHELL}
12229 ac_cs_invocation="\$0 \$@"
12230
12231 _ACEOF
12232
12233 cat >>$CONFIG_STATUS <<\_ACEOF
12234 # Be Bourne compatible
12235 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12236   emulate sh
12237   NULLCMD=:
12238 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12239   set -o posix
12240 fi
12241
12242 # Name of the executable.
12243 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12244
12245 if expr a : '\(a\)' >/dev/null 2>&1; then
12246   as_expr=expr
12247 else
12248   as_expr=false
12249 fi
12250
12251 rm -f conf$$ conf$$.exe conf$$.file
12252 echo >conf$$.file
12253 if ln -s conf$$.file conf$$ 2>/dev/null; then
12254   # We could just check for DJGPP; but this test a) works b) is more generic
12255   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12256   if test -f conf$$.exe; then
12257     # Don't use ln at all; we don't have any links
12258     as_ln_s='cp -p'
12259   else
12260     as_ln_s='ln -s'
12261   fi
12262 elif ln conf$$.file conf$$ 2>/dev/null; then
12263   as_ln_s=ln
12264 else
12265   as_ln_s='cp -p'
12266 fi
12267 rm -f conf$$ conf$$.exe conf$$.file
12268
12269 as_executable_p="test -f"
12270
12271 # Support unset when possible.
12272 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12273   as_unset=unset
12274 else
12275   as_unset=false
12276 fi
12277
12278 # NLS nuisances.
12279 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12280 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12281 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12282 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12283 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12284 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12285 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12286 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12287
12288 # IFS
12289 # We need space, tab and new line, in precisely that order.
12290 as_nl='
12291 '
12292 IFS="   $as_nl"
12293
12294 # CDPATH.
12295 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12296
12297 exec 6>&1
12298
12299 _ACEOF
12300
12301 # Files that config.status was made for.
12302 if test -n "$ac_config_files"; then
12303   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12304 fi
12305
12306 if test -n "$ac_config_headers"; then
12307   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12308 fi
12309
12310 if test -n "$ac_config_links"; then
12311   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12312 fi
12313
12314 if test -n "$ac_config_commands"; then
12315   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12316 fi
12317
12318 cat >>$CONFIG_STATUS <<\EOF
12319
12320 ac_cs_usage="\
12321 \`$as_me' instantiates files from templates according to the
12322 current configuration.
12323
12324 Usage: $0 [OPTIONS] [FILE]...
12325
12326   -h, --help       print this help, then exit
12327   -V, --version    print version number, then exit
12328   -d, --debug      don't remove temporary files
12329       --recheck    update $as_me by reconfiguring in the same conditions
12330   --file=FILE[:TEMPLATE]
12331                    instantiate the configuration file FILE
12332   --header=FILE[:TEMPLATE]
12333                    instantiate the configuration header FILE
12334
12335 Configuration files:
12336 $config_files
12337
12338 Configuration headers:
12339 $config_headers
12340
12341 Configuration commands:
12342 $config_commands
12343
12344 Report bugs to <bug-autoconf@gnu.org>."
12345 EOF
12346
12347 cat >>$CONFIG_STATUS <<EOF
12348 ac_cs_version="\\
12349 config.status
12350 configured by $0, generated by GNU Autoconf 2.52,
12351   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12352
12353 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12354 Free Software Foundation, Inc.
12355 This config.status script is free software; the Free Software Foundation
12356 gives unlimited permission to copy, distribute and modify it."
12357 srcdir=$srcdir
12358 INSTALL="$INSTALL"
12359 EOF
12360
12361 cat >>$CONFIG_STATUS <<\EOF
12362 # If no file are specified by the user, then we need to provide default
12363 # value.  By we need to know if files were specified by the user.
12364 ac_need_defaults=:
12365 while test $# != 0
12366 do
12367   case $1 in
12368   --*=*)
12369     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12370     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12371     shift
12372     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12373     shift
12374     ;;
12375   -*);;
12376   *) # This is not an option, so the user has probably given explicit
12377      # arguments.
12378      ac_need_defaults=false;;
12379   esac
12380
12381   case $1 in
12382   # Handling of the options.
12383 EOF
12384 cat >>$CONFIG_STATUS <<EOF
12385   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12386     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12387     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12388 EOF
12389 cat >>$CONFIG_STATUS <<\EOF
12390   --version | --vers* | -V )
12391     echo "$ac_cs_version"; exit 0 ;;
12392   --he | --h)
12393     # Conflict between --help and --header
12394     { { echo "$as_me:12394: error: ambiguous option: $1
12395 Try \`$0 --help' for more information." >&5
12396 echo "$as_me: error: ambiguous option: $1
12397 Try \`$0 --help' for more information." >&2;}
12398    { (exit 1); exit 1; }; };;
12399   --help | --hel | -h )
12400     echo "$ac_cs_usage"; exit 0 ;;
12401   --debug | --d* | -d )
12402     debug=: ;;
12403   --file | --fil | --fi | --f )
12404     shift
12405     CONFIG_FILES="$CONFIG_FILES $1"
12406     ac_need_defaults=false;;
12407   --header | --heade | --head | --hea )
12408     shift
12409     CONFIG_HEADERS="$CONFIG_HEADERS $1"
12410     ac_need_defaults=false;;
12411
12412   # This is an error.
12413   -*) { { echo "$as_me:12413: error: unrecognized option: $1
12414 Try \`$0 --help' for more information." >&5
12415 echo "$as_me: error: unrecognized option: $1
12416 Try \`$0 --help' for more information." >&2;}
12417    { (exit 1); exit 1; }; } ;;
12418
12419   *) ac_config_targets="$ac_config_targets $1" ;;
12420
12421   esac
12422   shift
12423 done
12424
12425 exec 5>>config.log
12426 cat >&5 << _ACEOF
12427
12428 ## ----------------------- ##
12429 ## Running config.status.  ##
12430 ## ----------------------- ##
12431
12432 This file was extended by $as_me 2.52, executed with
12433   CONFIG_FILES    = $CONFIG_FILES
12434   CONFIG_HEADERS  = $CONFIG_HEADERS
12435   CONFIG_LINKS    = $CONFIG_LINKS
12436   CONFIG_COMMANDS = $CONFIG_COMMANDS
12437   > $ac_cs_invocation
12438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12439
12440 _ACEOF
12441 EOF
12442
12443 cat >>$CONFIG_STATUS <<EOF
12444 #
12445 # INIT-COMMANDS section.
12446 #
12447
12448 AMDEP_TRUE="$AMDEP_TRUE"
12449 ac_aux_dir="$ac_aux_dir"
12450
12451 EOF
12452
12453 cat >>$CONFIG_STATUS <<\EOF
12454 for ac_config_target in $ac_config_targets
12455 do
12456   case "$ac_config_target" in
12457   # Handling of arguments.
12458   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12459   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12460   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12461   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12462   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12463   "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
12464   "man/pl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
12465   "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
12466   "libmisc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
12467   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12468   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12469   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
12470   "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
12471   "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
12472   "etc/pam.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
12473   "shadow-utils.spec" ) CONFIG_FILES="$CONFIG_FILES shadow-utils.spec" ;;
12474   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12475   "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
12476   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12477   *) { { echo "$as_me:12477: error: invalid argument: $ac_config_target" >&5
12478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12479    { (exit 1); exit 1; }; };;
12480   esac
12481 done
12482
12483 # If the user did not use the arguments to specify the items to instantiate,
12484 # then the envvar interface is used.  Set only those that are not.
12485 # We use the long form for the default assignment because of an extremely
12486 # bizarre bug on SunOS 4.1.3.
12487 if $ac_need_defaults; then
12488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12490   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12491 fi
12492
12493 # Create a temporary directory, and hook for its removal unless debugging.
12494 $debug ||
12495 {
12496   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12497   trap '{ (exit 1); exit 1; }' 1 2 13 15
12498 }
12499
12500 # Create a (secure) tmp directory for tmp files.
12501 : ${TMPDIR=/tmp}
12502 {
12503   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12504   test -n "$tmp" && test -d "$tmp"
12505 }  ||
12506 {
12507   tmp=$TMPDIR/cs$$-$RANDOM
12508   (umask 077 && mkdir $tmp)
12509 } ||
12510 {
12511    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12512    { (exit 1); exit 1; }
12513 }
12514
12515 EOF
12516
12517 cat >>$CONFIG_STATUS <<EOF
12518
12519 #
12520 # CONFIG_FILES section.
12521 #
12522
12523 # No need to generate the scripts if there are no CONFIG_FILES.
12524 # This happens for instance when ./config.status config.h
12525 if test -n "\$CONFIG_FILES"; then
12526   # Protect against being on the right side of a sed subst in config.status.
12527   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12528    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12529 s,@SHELL@,$SHELL,;t t
12530 s,@exec_prefix@,$exec_prefix,;t t
12531 s,@prefix@,$prefix,;t t
12532 s,@program_transform_name@,$program_transform_name,;t t
12533 s,@bindir@,$bindir,;t t
12534 s,@sbindir@,$sbindir,;t t
12535 s,@libexecdir@,$libexecdir,;t t
12536 s,@datadir@,$datadir,;t t
12537 s,@sysconfdir@,$sysconfdir,;t t
12538 s,@sharedstatedir@,$sharedstatedir,;t t
12539 s,@localstatedir@,$localstatedir,;t t
12540 s,@libdir@,$libdir,;t t
12541 s,@includedir@,$includedir,;t t
12542 s,@oldincludedir@,$oldincludedir,;t t
12543 s,@infodir@,$infodir,;t t
12544 s,@mandir@,$mandir,;t t
12545 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12546 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12547 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12548 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12549 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12550 s,@build_alias@,$build_alias,;t t
12551 s,@host_alias@,$host_alias,;t t
12552 s,@target_alias@,$target_alias,;t t
12553 s,@ECHO_C@,$ECHO_C,;t t
12554 s,@ECHO_N@,$ECHO_N,;t t
12555 s,@ECHO_T@,$ECHO_T,;t t
12556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12557 s,@DEFS@,$DEFS,;t t
12558 s,@LIBS@,$LIBS,;t t
12559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12562 s,@PACKAGE@,$PACKAGE,;t t
12563 s,@VERSION@,$VERSION,;t t
12564 s,@EXEEXT@,$EXEEXT,;t t
12565 s,@OBJEXT@,$OBJEXT,;t t
12566 s,@ACLOCAL@,$ACLOCAL,;t t
12567 s,@AUTOCONF@,$AUTOCONF,;t t
12568 s,@AUTOMAKE@,$AUTOMAKE,;t t
12569 s,@AUTOHEADER@,$AUTOHEADER,;t t
12570 s,@MAKEINFO@,$MAKEINFO,;t t
12571 s,@AMTAR@,$AMTAR,;t t
12572 s,@install_sh@,$install_sh,;t t
12573 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12574 s,@AWK@,$AWK,;t t
12575 s,@SET_MAKE@,$SET_MAKE,;t t
12576 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12577 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12578 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12579 s,@DEPDIR@,$DEPDIR,;t t
12580 s,@CC@,$CC,;t t
12581 s,@CFLAGS@,$CFLAGS,;t t
12582 s,@LDFLAGS@,$LDFLAGS,;t t
12583 s,@CPPFLAGS@,$CPPFLAGS,;t t
12584 s,@ac_ct_CC@,$ac_ct_CC,;t t
12585 s,@am__include@,$am__include,;t t
12586 s,@am__quote@,$am__quote,;t t
12587 s,@CCDEPMODE@,$CCDEPMODE,;t t
12588 s,@LN_S@,$LN_S,;t t
12589 s,@YACC@,$YACC,;t t
12590 s,@CPP@,$CPP,;t t
12591 s,@U@,$U,;t t
12592 s,@ANSI2KNR@,$ANSI2KNR,;t t
12593 s,@build@,$build,;t t
12594 s,@build_cpu@,$build_cpu,;t t
12595 s,@build_vendor@,$build_vendor,;t t
12596 s,@build_os@,$build_os,;t t
12597 s,@host@,$host,;t t
12598 s,@host_cpu@,$host_cpu,;t t
12599 s,@host_vendor@,$host_vendor,;t t
12600 s,@host_os@,$host_os,;t t
12601 s,@ECHO@,$ECHO,;t t
12602 s,@RANLIB@,$RANLIB,;t t
12603 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12604 s,@STRIP@,$STRIP,;t t
12605 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12606 s,@LIBTOOL@,$LIBTOOL,;t t
12607 s,@LIBOBJS@,$LIBOBJS,;t t
12608 s,@LIBCRYPT@,$LIBCRYPT,;t t
12609 s,@LIBCRACK@,$LIBCRACK,;t t
12610 s,@LIBSKEY@,$LIBSKEY,;t t
12611 s,@LIBMD@,$LIBMD,;t t
12612 s,@LIBTCFS@,$LIBTCFS,;t t
12613 s,@LIBPAM@,$LIBPAM,;t t
12614 s,@ALLOCA@,$ALLOCA,;t t
12615 s,@GLIBC21@,$GLIBC21,;t t
12616 s,@LIBICONV@,$LIBICONV,;t t
12617 s,@USE_NLS@,$USE_NLS,;t t
12618 s,@MSGFMT@,$MSGFMT,;t t
12619 s,@GMSGFMT@,$GMSGFMT,;t t
12620 s,@XGETTEXT@,$XGETTEXT,;t t
12621 s,@INTLBISON@,$INTLBISON,;t t
12622 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12623 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12624 s,@CATALOGS@,$CATALOGS,;t t
12625 s,@CATOBJEXT@,$CATOBJEXT,;t t
12626 s,@GMOFILES@,$GMOFILES,;t t
12627 s,@INTLLIBS@,$INTLLIBS,;t t
12628 s,@INTLOBJS@,$INTLOBJS,;t t
12629 s,@POFILES@,$POFILES,;t t
12630 s,@POSUB@,$POSUB,;t t
12631 s,@DATADIRNAME@,$DATADIRNAME,;t t
12632 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12633 s,@GENCAT@,$GENCAT,;t t
12634 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12635 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12636 CEOF
12637
12638 EOF
12639
12640   cat >>$CONFIG_STATUS <<\EOF
12641   # Split the substitutions into bite-sized pieces for seds with
12642   # small command number limits, like on Digital OSF/1 and HP-UX.
12643   ac_max_sed_lines=48
12644   ac_sed_frag=1 # Number of current file.
12645   ac_beg=1 # First line for current file.
12646   ac_end=$ac_max_sed_lines # Line after last line for current file.
12647   ac_more_lines=:
12648   ac_sed_cmds=
12649   while $ac_more_lines; do
12650     if test $ac_beg -gt 1; then
12651       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12652     else
12653       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12654     fi
12655     if test ! -s $tmp/subs.frag; then
12656       ac_more_lines=false
12657     else
12658       # The purpose of the label and of the branching condition is to
12659       # speed up the sed processing (if there are no `@' at all, there
12660       # is no need to browse any of the substitutions).
12661       # These are the two extra sed commands mentioned above.
12662       (echo ':t
12663   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12664       if test -z "$ac_sed_cmds"; then
12665         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12666       else
12667         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12668       fi
12669       ac_sed_frag=`expr $ac_sed_frag + 1`
12670       ac_beg=$ac_end
12671       ac_end=`expr $ac_end + $ac_max_sed_lines`
12672     fi
12673   done
12674   if test -z "$ac_sed_cmds"; then
12675     ac_sed_cmds=cat
12676   fi
12677 fi # test -n "$CONFIG_FILES"
12678
12679 EOF
12680 cat >>$CONFIG_STATUS <<\EOF
12681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12682   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12683   case $ac_file in
12684   - | *:- | *:-:* ) # input from stdin
12685         cat >$tmp/stdin
12686         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12687         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12688   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12689         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12690   * )   ac_file_in=$ac_file.in ;;
12691   esac
12692
12693   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12694   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12695          X"$ac_file" : 'X\(//\)[^/]' \| \
12696          X"$ac_file" : 'X\(//\)$' \| \
12697          X"$ac_file" : 'X\(/\)' \| \
12698          .     : '\(.\)' 2>/dev/null ||
12699 echo X"$ac_file" |
12700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12702           /^X\(\/\/\)$/{ s//\1/; q; }
12703           /^X\(\/\).*/{ s//\1/; q; }
12704           s/.*/./; q'`
12705   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12706     { case "$ac_dir" in
12707   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12708   *)                      as_incr_dir=.;;
12709 esac
12710 as_dummy="$ac_dir"
12711 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12712   case $as_mkdir_dir in
12713     # Skip DOS drivespec
12714     ?:) as_incr_dir=$as_mkdir_dir ;;
12715     *)
12716       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12717       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12718     ;;
12719   esac
12720 done; }
12721
12722     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12723     # A "../" for each directory in $ac_dir_suffix.
12724     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12725   else
12726     ac_dir_suffix= ac_dots=
12727   fi
12728
12729   case $srcdir in
12730   .)  ac_srcdir=.
12731       if test -z "$ac_dots"; then
12732          ac_top_srcdir=.
12733       else
12734          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12735       fi ;;
12736   [\\/]* | ?:[\\/]* )
12737       ac_srcdir=$srcdir$ac_dir_suffix;
12738       ac_top_srcdir=$srcdir ;;
12739   *) # Relative path.
12740     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12741     ac_top_srcdir=$ac_dots$srcdir ;;
12742   esac
12743
12744   case $INSTALL in
12745   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12746   *) ac_INSTALL=$ac_dots$INSTALL ;;
12747   esac
12748
12749   if test x"$ac_file" != x-; then
12750     { echo "$as_me:12750: creating $ac_file" >&5
12751 echo "$as_me: creating $ac_file" >&6;}
12752     rm -f "$ac_file"
12753   fi
12754   # Let's still pretend it is `configure' which instantiates (i.e., don't
12755   # use $as_me), people would be surprised to read:
12756   #    /* config.h.  Generated automatically by config.status.  */
12757   configure_input="Generated automatically from `echo $ac_file_in |
12758                                                  sed 's,.*/,,'` by configure."
12759
12760   # First look for the input files in the build tree, otherwise in the
12761   # src tree.
12762   ac_file_inputs=`IFS=:
12763     for f in $ac_file_in; do
12764       case $f in
12765       -) echo $tmp/stdin ;;
12766       [\\/$]*)
12767          # Absolute (can't be DOS-style, as IFS=:)
12768          test -f "$f" || { { echo "$as_me:12768: error: cannot find input file: $f" >&5
12769 echo "$as_me: error: cannot find input file: $f" >&2;}
12770    { (exit 1); exit 1; }; }
12771          echo $f;;
12772       *) # Relative
12773          if test -f "$f"; then
12774            # Build tree
12775            echo $f
12776          elif test -f "$srcdir/$f"; then
12777            # Source tree
12778            echo $srcdir/$f
12779          else
12780            # /dev/null tree
12781            { { echo "$as_me:12781: error: cannot find input file: $f" >&5
12782 echo "$as_me: error: cannot find input file: $f" >&2;}
12783    { (exit 1); exit 1; }; }
12784          fi;;
12785       esac
12786     done` || { (exit 1); exit 1; }
12787 EOF
12788 cat >>$CONFIG_STATUS <<EOF
12789   sed "$ac_vpsub
12790 $extrasub
12791 EOF
12792 cat >>$CONFIG_STATUS <<\EOF
12793 :t
12794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12795 s,@configure_input@,$configure_input,;t t
12796 s,@srcdir@,$ac_srcdir,;t t
12797 s,@top_srcdir@,$ac_top_srcdir,;t t
12798 s,@INSTALL@,$ac_INSTALL,;t t
12799 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12800   rm -f $tmp/stdin
12801   if test x"$ac_file" != x-; then
12802     mv $tmp/out $ac_file
12803   else
12804     cat $tmp/out
12805     rm -f $tmp/out
12806   fi
12807
12808 done
12809 EOF
12810 cat >>$CONFIG_STATUS <<\EOF
12811
12812 #
12813 # CONFIG_HEADER section.
12814 #
12815
12816 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12817 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12818 #
12819 # ac_d sets the value in "#define NAME VALUE" lines.
12820 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12821 ac_dB='[        ].*$,\1#\2'
12822 ac_dC=' '
12823 ac_dD=',;t'
12824 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12825 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12826 ac_uB='$,\1#\2define\3'
12827 ac_uC=' '
12828 ac_uD=',;t'
12829
12830 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12831   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12832   case $ac_file in
12833   - | *:- | *:-:* ) # input from stdin
12834         cat >$tmp/stdin
12835         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12836         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12837   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12838         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12839   * )   ac_file_in=$ac_file.in ;;
12840   esac
12841
12842   test x"$ac_file" != x- && { echo "$as_me:12842: creating $ac_file" >&5
12843 echo "$as_me: creating $ac_file" >&6;}
12844
12845   # First look for the input files in the build tree, otherwise in the
12846   # src tree.
12847   ac_file_inputs=`IFS=:
12848     for f in $ac_file_in; do
12849       case $f in
12850       -) echo $tmp/stdin ;;
12851       [\\/$]*)
12852          # Absolute (can't be DOS-style, as IFS=:)
12853          test -f "$f" || { { echo "$as_me:12853: error: cannot find input file: $f" >&5
12854 echo "$as_me: error: cannot find input file: $f" >&2;}
12855    { (exit 1); exit 1; }; }
12856          echo $f;;
12857       *) # Relative
12858          if test -f "$f"; then
12859            # Build tree
12860            echo $f
12861          elif test -f "$srcdir/$f"; then
12862            # Source tree
12863            echo $srcdir/$f
12864          else
12865            # /dev/null tree
12866            { { echo "$as_me:12866: error: cannot find input file: $f" >&5
12867 echo "$as_me: error: cannot find input file: $f" >&2;}
12868    { (exit 1); exit 1; }; }
12869          fi;;
12870       esac
12871     done` || { (exit 1); exit 1; }
12872   # Remove the trailing spaces.
12873   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12874
12875 EOF
12876
12877 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12878 # `conftest.undefs', that substitutes the proper values into
12879 # config.h.in to produce config.h.  The first handles `#define'
12880 # templates, and the second `#undef' templates.
12881 # And first: Protect against being on the right side of a sed subst in
12882 # config.status.  Protect against being in an unquoted here document
12883 # in config.status.
12884 rm -f conftest.defines conftest.undefs
12885 # Using a here document instead of a string reduces the quoting nightmare.
12886 # Putting comments in sed scripts is not portable.
12887 #
12888 # `end' is used to avoid that the second main sed command (meant for
12889 # 0-ary CPP macros) applies to n-ary macro definitions.
12890 # See the Autoconf documentation for `clear'.
12891 cat >confdef2sed.sed <<\EOF
12892 s/[\\&,]/\\&/g
12893 s,[\\$`],\\&,g
12894 t clear
12895 : clear
12896 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12897 t end
12898 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12899 : end
12900 EOF
12901 # If some macros were called several times there might be several times
12902 # the same #defines, which is useless.  Nevertheless, we may not want to
12903 # sort them, since we want the *last* AC-DEFINE to be honored.
12904 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12905 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12906 rm -f confdef2sed.sed
12907
12908 # This sed command replaces #undef with comments.  This is necessary, for
12909 # example, in the case of _POSIX_SOURCE, which is predefined and required
12910 # on some systems where configure will not decide to define it.
12911 cat >>conftest.undefs <<\EOF
12912 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12913 EOF
12914
12915 # Break up conftest.defines because some shells have a limit on the size
12916 # of here documents, and old seds have small limits too (100 cmds).
12917 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12918 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12919 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12920 echo '  :' >>$CONFIG_STATUS
12921 rm -f conftest.tail
12922 while grep . conftest.defines >/dev/null
12923 do
12924   # Write a limited-size here document to $tmp/defines.sed.
12925   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12926   # Speed up: don't consider the non `#define' lines.
12927   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12928   # Work around the forget-to-reset-the-flag bug.
12929   echo 't clr' >>$CONFIG_STATUS
12930   echo ': clr' >>$CONFIG_STATUS
12931   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12932   echo 'CEOF
12933   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12934   rm -f $tmp/in
12935   mv $tmp/out $tmp/in
12936 ' >>$CONFIG_STATUS
12937   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12938   rm -f conftest.defines
12939   mv conftest.tail conftest.defines
12940 done
12941 rm -f conftest.defines
12942 echo '  fi # egrep' >>$CONFIG_STATUS
12943 echo >>$CONFIG_STATUS
12944
12945 # Break up conftest.undefs because some shells have a limit on the size
12946 # of here documents, and old seds have small limits too (100 cmds).
12947 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12948 rm -f conftest.tail
12949 while grep . conftest.undefs >/dev/null
12950 do
12951   # Write a limited-size here document to $tmp/undefs.sed.
12952   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12953   # Speed up: don't consider the non `#undef'
12954   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12955   # Work around the forget-to-reset-the-flag bug.
12956   echo 't clr' >>$CONFIG_STATUS
12957   echo ': clr' >>$CONFIG_STATUS
12958   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12959   echo 'CEOF
12960   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12961   rm -f $tmp/in
12962   mv $tmp/out $tmp/in
12963 ' >>$CONFIG_STATUS
12964   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12965   rm -f conftest.undefs
12966   mv conftest.tail conftest.undefs
12967 done
12968 rm -f conftest.undefs
12969
12970 cat >>$CONFIG_STATUS <<\EOF
12971   # Let's still pretend it is `configure' which instantiates (i.e., don't
12972   # use $as_me), people would be surprised to read:
12973   #    /* config.h.  Generated automatically by config.status.  */
12974   if test x"$ac_file" = x-; then
12975     echo "/* Generated automatically by configure.  */" >$tmp/config.h
12976   else
12977     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
12978   fi
12979   cat $tmp/in >>$tmp/config.h
12980   rm -f $tmp/in
12981   if test x"$ac_file" != x-; then
12982     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12983       { echo "$as_me:12983: $ac_file is unchanged" >&5
12984 echo "$as_me: $ac_file is unchanged" >&6;}
12985     else
12986       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12987          X"$ac_file" : 'X\(//\)[^/]' \| \
12988          X"$ac_file" : 'X\(//\)$' \| \
12989          X"$ac_file" : 'X\(/\)' \| \
12990          .     : '\(.\)' 2>/dev/null ||
12991 echo X"$ac_file" |
12992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12994           /^X\(\/\/\)$/{ s//\1/; q; }
12995           /^X\(\/\).*/{ s//\1/; q; }
12996           s/.*/./; q'`
12997       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12998         { case "$ac_dir" in
12999   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13000   *)                      as_incr_dir=.;;
13001 esac
13002 as_dummy="$ac_dir"
13003 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13004   case $as_mkdir_dir in
13005     # Skip DOS drivespec
13006     ?:) as_incr_dir=$as_mkdir_dir ;;
13007     *)
13008       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13009       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13010     ;;
13011   esac
13012 done; }
13013
13014       fi
13015       rm -f $ac_file
13016       mv $tmp/config.h $ac_file
13017     fi
13018   else
13019     cat $tmp/config.h
13020     rm -f $tmp/config.h
13021   fi
13022   # Run the commands associated with the file.
13023   case $ac_file in
13024     config.h ) # update the timestamp
13025 echo timestamp >"./stamp-h1"
13026  ;;
13027   esac
13028 done
13029 EOF
13030 cat >>$CONFIG_STATUS <<\EOF
13031
13032 #
13033 # CONFIG_COMMANDS section.
13034 #
13035 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13036   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13037   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13038
13039   case $ac_dest in
13040     default-1 )
13041 test x"$AMDEP_TRUE" != x"" ||
13042 for mf in $CONFIG_FILES; do
13043   case "$mf" in
13044   Makefile) dirpart=.;;
13045   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
13046   *) continue;;
13047   esac
13048   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13049   # Extract the definition of DEP_FILES from the Makefile without
13050   # running `make'.
13051   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13052   test -z "$DEPDIR" && continue
13053   # When using ansi2knr, U may be empty or an underscore; expand it
13054   U=`sed -n -e '/^U = / s///p' < "$mf"`
13055   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13056   # We invoke sed twice because it is the simplest approach to
13057   # changing $(DEPDIR) to its actual value in the expansion.
13058   for file in `sed -n -e '
13059     /^DEP_FILES = .*\\\\$/ {
13060       s/^DEP_FILES = //
13061       :loop
13062         s/\\\\$//
13063         p
13064         n
13065         /\\\\$/ b loop
13066       p
13067     }
13068     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13069        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13070     # Make sure the directory exists.
13071     test -f "$dirpart/$file" && continue
13072     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
13073     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
13074     # echo "creating $dirpart/$file"
13075     echo '# dummy' > "$dirpart/$file"
13076   done
13077 done
13078  ;;
13079     default-2 ) for ac_file in $CONFIG_FILES; do
13080         # Support "outfile[:infile[:infile...]]"
13081         case "$ac_file" in
13082           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13083         esac
13084         # PO directories have a Makefile.in generated from Makefile.in.in.
13085         case "$ac_file" in */Makefile.in)
13086           # Adjust a relative srcdir.
13087           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13088           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13089           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13090           case "$srcdir" in
13091             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13092             /*) top_srcdir="$srcdir" ;;
13093             *)  top_srcdir="$ac_dots$srcdir" ;;
13094           esac
13095           if test -f "$srcdir/$ac_dir/POTFILES.in"; then
13096             rm -f "$ac_dir/POTFILES"
13097             echo creating "$ac_dir/POTFILES"
13098             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
13099             echo creating "$ac_dir/Makefile"
13100             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13101           fi
13102           ;;
13103         esac
13104       done ;;
13105   esac
13106 done
13107 EOF
13108
13109 cat >>$CONFIG_STATUS <<\EOF
13110
13111 { (exit 0); exit 0; }
13112 EOF
13113 chmod +x $CONFIG_STATUS
13114 ac_clean_files=$ac_clean_files_save
13115
13116 # configure is writing to config.log, and then calls config.status.
13117 # config.status does its own redirection, appending to config.log.
13118 # Unfortunately, on DOS this fails, as config.log is still kept open
13119 # by configure, so config.status won't be able to write to it; its
13120 # output is simply discarded.  So we exec the FD to /dev/null,
13121 # effectively closing config.log, so it can be properly (re)opened and
13122 # appended to by config.status.  When coming back to configure, we
13123 # need to make the FD available again.
13124 if test "$no_create" != yes; then
13125   ac_cs_success=:
13126   exec 5>/dev/null
13127   $SHELL $CONFIG_STATUS || ac_cs_success=false
13128   exec 5>>config.log
13129   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13130   # would make configure fail if this is the last instruction.
13131   $ac_cs_success || { (exit 1); exit 1; }
13132 fi
13133